* Makefile.tpl (all-gcc): Use 'make quickstrap' if there was a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12002-12-17 David Carlton <carlton@math.stanford.edu>
2
3 * symtab.c (lookup_partial_symbol): Don't search past the end of
4 the partial symbols.
5
62002-12-17 Andrew Cagney <ac131313@redhat.com>
7
8 * stack.c (frame_info): Use get_frame_saved_regs.
9 * breakpoint.c (until_break_command): Use get_frame_pc.
10
112002-12-16 Kevin Buettner <kevinb@redhat.com>
12
13 * buildsym.c (block_end_complaint, anon_block_end_complaint)
14 (innerblock_complaint, innerblock_anon_complaint)
15 (blockvector_complaint): Delete deprecated complaint structs.
16 (finish_block, make_blockvector, end_symtab): Replace calls
17 to complain() with calls to complaint().
18 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
19 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
20 (unexpected_type_complaint, bad_sclass_complaint)
21 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
22 Delete deprecated complaint structs.
23 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
24 Replace calls to complain() with calls to complaint().
25 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
26 (unknown_symtype_complaint, unknown_symchar_complaint)
27 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
28 (lbrac_mismatch_complaint, repeated_header_complaint)
29 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
30 Delete deprecated complaint structs.
31 (unknown_symtype_complaint, lbrac_mismatch_complaint)
32 (repeated_header_complaint)
33 (function_outside_compiliation_unit_complaint): New functions.
34 (add_old_header_file, find_corresponding_bincl_psymtab)
35 (set_namestring, find_stab_function_addr, read_dbx_symtab)
36 (process_one_symbol): Replace calls to complain() with, possibly
37 indirect, calls to complaint().
38 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
39 (unknown_attribute_form, unknown_attribute_length)
40 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
41 (const_ignored, botched_modified_type, op_deref2, op_deref4)
42 (basereg_not_handled, dup_user_type_allocation)
43 (dup_user_type_definition, missing_tag, bad_array_element_type)
44 (subscript_data_items, unhandled_array_subscript_format)
45 (unknown_array_subscript_format, not_row_major)
46 (missing_at_name): Delete deprecated complaint structs.
47 (bad_die_ref_complaint, unknown_attribute_form_complaint)
48 (dup_user_type_definition_complaint)
49 (bad_array_element_type_complaint): New functions.
50 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
51 (decode_subscript_data_item, dwarf_read_array_type)
52 (read_tag_string_type, read_subroutine_type, read_func_scope)
53 (locval, scan_partial_symbols, decode_modified_type)
54 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
55 (attribute_size): Replace calls to complain() with, possibly
56 indirect, calls to complaint().
57 * elfread.c (section_info_complaint, section_info_dup_complaint)
58 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
59 Delete deprecated complaint structs.
60 (elf_symtab_read, elfstab_offset_sections): Replace calls to
61 complain() with calls to complaint().
62 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
63 struct.
64 (stub_noname_complaint): New function.
65 (check_typedef, add_mangled_type): Replace calls to complain()
66 with calls to complaint().
67 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
68 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
69 (hpread_unhandled_type_complaint, hpread_struct_complaint)
70 (hpread_array_complaint, hpread_type_lookup_complaint)
71 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
72 (hpread_unhandled_common_complaint)
73 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
74 struct definitions and declarations.
75 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
76 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
77 Replace calls to complain() with, possibly indirect, calls to
78 complaint().
79 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
80 Likewise.
81 * mdebugread.c (bad_file_number_complaint, index_complaint)
82 (aux_index_complaint, block_index_complaint)
83 (unknown_ext_complaint, unknown_sym_complaint)
84 (unknown_st_complaint, block_overflow_complaint)
85 (basic_type_complaint, unknown_type_qual_complaint)
86 (array_index_type_complaint, bad_tag_guess_complaint)
87 (block_member_complaint, stEnd_complaint)
88 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
89 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
90 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
91 (bad_continued_complaint, bad_rfd_entry_complaint)
92 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
93 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
94 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
95 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
96 complaint structs.
97 (index_complaint, unknown_ext_complaint, basic_type_complaint)
98 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
99 (unexpected_type_code_complaint)
100 (function_outside_compilation_unit_complaint): New functions.
101 (parse_symbol, parse_type, upgrade_type, parse_procedure)
102 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
103 Replace calls to complain() with, possibly indirect calls to
104 complaint().
105 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
106 Delete deprecated complaint structs.
107 (lookup__objc_class, lookup_child_selector): Replace complain()
108 with complaint().
109 * remote-vx.c (cant_contact_target): Delete deprecated complaint
110 struct.
111 (vx_lookup_symbol): Replace complain() with complaint().
112 * stabsread.c (invalid_cpp_abbrev_complaint)
113 (invalid_cpp_type_complaint, member_fn_complaint)
114 (const_vol_complaint, error_type_complaint)
115 (invalid_member_complaint, range_type_base_complaint)
116 (reg_value_complaint, vtbl_notfound_complaint)
117 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
118 (unresolved_sym_chain_complaint, stabs_general_complaint)
119 (lrs_general_complaint, multiply_defined_struct): Delete
120 deprecated complaint structs.
121 (invalid_cpp_abbrev_complaint, ref_value_complaint)
122 (stabs_general_complaint, lrs_general_complaint)
123 (msg_unknown_complaint): New functions.
124 (dbx_lookup_type, read_cfront_baseclasses)
125 (read_cfront_member_functions, resolve_symbol_reference)
126 (define_symbol, resolve_live_range, add_live_range, read_type)
127 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
128 (read_one_struct_field, read_baseclasses, read_tilde_fields)
129 (read_cfront_static_fields, attach_fields_to_type)
130 (complain_about_struct_wipeout, read_range_type)
131 (common_block_start, common_block_end, cleanup_undefined_types)
132 (scan_file_globals): Replace complain() with complaint().
133 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
134 Delete deprecated complaint struct declarations.
135 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
136 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
137 (bf_not_found_complaint, ef_complaint, eb_complaint)
138 (function_outside_compilation_unit_complaint): New functions.
139 (record_include_begin, record_include_end, enter_line_range)
140 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
141 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
142 complain() with complaint().
143
1442002-12-16 Andrew Cagney <ac131313@redhat.com>
145
146 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
147 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
148 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
149 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
150 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
151 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
152 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
153 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
154 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
155 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
156 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
157 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
158 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
159 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
160 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
161 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
162 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
163 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
164 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
165 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
166 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
167 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
168 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
169 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
170 * config/m88k/xm-dgux.h: Delete.
171 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
172 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
173 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
174 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
175 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
176 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
177 * ch-valprint.c: Delete.
178
1792002-12-15 Daniel Jacobowitz <drow@mvista.com>
180
181 * infrun.c (handle_inferior_event): Rearrange code to resume if
182 no catchpoint triggers for an event.
183
1842002-12-15 Daniel Jacobowitz <drow@mvista.com>
185
186 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
187 and TARGET_WAITKIND_VFORKED cases.
188
1892002-12-15 Daniel Jacobowitz <drow@mvista.com>
190
191 * infrun.c (handle_inferior_event): Assume that catchpoints
192 are not affected by DECR_PC_AFTER_BREAK.
193
1942002-12-15 Daniel Jacobowitz <drow@mvista.com>
195
196 * target.c (update_current_target): Don't inherit DONT_USE.
197 * target.h (struct target_ops): Remove DONT_USE.
198 (target_next): Remove macro.
199
2002002-12-15 Mark Kettenis <kettenis@gnu.org>
201
202 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
203
2042002-12-14 Richard Earnshaw <rearnsha@arm.com>
205
206 * arm-tdep.c (convert_from_extended): New argument to hold the
207 type of floating point result we want to convert to. Make input
208 argument const. Fix all callers.
209 (convert_to_extended): Similarly.
210 (arm_extract_return_value): Now takes a regcache argument. Change
211 code to use regcache accessor functions. Correctly extract
212 smaller-than-word results on big-endian machines.
213 (arm_store_return_value): Now takes a regcache argument. Change
214 code to use regcache accessor functions. Correctly zero/sign extend
215 smaller than word results before storing into r0.
216 (arm_gdbarch_init): Register new-style extract_return_value and
217 store_return_value functions.
218
2192002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
220
221 * thread-db.c (thread_from_lwp): Uniquify error msg.
222 (lwp_from_thread): Ditto.
223 (check_event): Ditto.
224 (find_new_threads_callback): Ditto.
225 (thread_db_pid_to_str): Ditto.
226
2272002-12-13 Andrew Cagney <ac131313@redhat.com>
228
229 * frame.h (get_frame_saved_regs): Declare.
230 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
231 pointer.
232 * frame.c (get_frame_saved_regs): New function.
233 (frame_saved_regs_zalloc): Return the allocated saved_regs.
234
2352002-12-13 Andrew Cagney <ac131313@redhat.com>
236
237 * frame.c (deprecated_update_current_frame_pc_hack): New
238 function.
239 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
240 * infrun.c (normal_stop): Use said function instead of directly
241 modifying the frame's PC.
242
2432002-12-13 Alexandre Oliva <aoliva@redhat.com>
244
245 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
246
2472002-12-13 Kevin Buettner <kevinb@redhat.com>
248
249 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
250 config/mips/tm-irix6.h (NUM_REGS): Delete.
251 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
252 (temp_saved_regs): Declare as a pointer rather than an array.
253 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
254 that ``temp_saved_regs'' has storage allocated to it and that
255 it's the correct size.
256
2572002-12-13 Jeff Johnston <jjohnstn@redhat.com>
258
259 * defs.h (init_last_source_visited): New prototype.
260 (add_path): Ditto.
261 * source.c (add_path): New function that adds to a specified path.
262 (mod_path): Change to call add_path.
263 (init_last_source_visited): New function to allow interfaces to
264 initialize static variable: last_source_visited. Part of fix
265 for PR gdb/741.
266 * Makefile.in: Add support for mi/mi-cmd-env.c.
267
2682002-12-13 Andrew Cagney <ac131313@redhat.com>
269
270 * frame.h (frame_id_unwind): Declare.
271 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
272 id_unwind_cache.
273 (frame_id_unwind_ftype): Declare.
274 * frame.c (frame_id_unwind): New function.
275 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
276 (create_new_frame, get_prev_frame): Pass id_unwind to
277 set_unwind_by_pc.
278 (frame_saved_regs_id_unwind): New function.
279 (frame_saved_regs_id_unwind): New function.
280 * dummy-frame.c (dummy_frame_id_unwind): New function.
281 (struct dummy_frame): Add field id.
282 (generic_push_dummy_frame): Initialize `id'.
283 * dummy-frame.h (dummy_frame_id_unwind): Declare.
284
2852002-12-13 Andrew Cagney <ac131313@redhat.com>
286
287 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
288 pass that to set_momentary_breakpoint. Move comments to where they
289 belong.
290 * frame.h (set_current_frame): Delete declaration.
291 * frame.c (set_current_frame): Delete function.
292
2932002-12-13 Andrew Cagney <ac131313@redhat.com>
294
295 * frame.c (frame_extra_info_zalloc): New function.
296 * frame.h (frame_extra_info_zalloc): Declare.
297
2982002-12-13 Joel Brobecker <brobecker@gnat.com>
299
300 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
301 in the previous prototype change to set_momentary_breakpoint.
302
3032002-12-12 Daniel Jacobowitz <drow@mvista.com>
304
305 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
306 and saw_child_exec.
307 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
308 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
309 (stop_stepping): Remove outdated check for child vfork events.
310
3112002-12-12 Andrew Cagney <ac131313@redhat.com>
312
313 * GDB 5.3 released from gdb_5_3-branch.
314
3152002-12-11 Daniel Jacobowitz <drow@mvista.com>
316
317 * corelow.c (init_core_ops): Delete references to to_require_attach
318 and to_require_detach.
319 * exec.c (init_exec_ops): Likewise.
320 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
321 hppa_require_detach directly.
322 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
323 * inftarg.c (child_detach): Remove.
324 (child_detach_from_process): Rename to child_detach, remove
325 after_fork argument.
326 (child_attach): Remove.
327 (child_attach_to_process): Rename to child_attach, remove after_fork
328 argument.
329 (init_child_ops): Delete references to to_require_attach
330 and to_require_detach.
331 * infttrace.c (hppa_require_attach): Update comment.
332 * target.c (cleanup_target, update_current_target)
333 (init_dummy_target, setup_target_debug): Delete references to
334 to_require_attach and to_require_detach.
335 (find_default_require_detach, find_default_require_attach)
336 (debug_to_require_attach, debug_to_require_detach): Remove
337 functions.
338 * target.h (struct target_ops): Remove to_require_attach
339 and to_require_detach.
340 (target_require_attach, target_require_detach): Delete macros.
341 (find_default_require_detach, find_default_require_attach): Delete
342 prototypes.
343 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
344
3452002-12-11 Andrew Cagney <ac131313@redhat.com>
346
347 * frame.c (get_frame_extra_info): New function.
348 * frame.h (get_frame_extra_info): Declare.
349
3502002-12-11 Andrew Cagney <ac131313@redhat.com>
351
352 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
353 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
354 with `struct frame_id'.
355 (set_longjmp_resume_breakpoint): Ditto.
356 * infrun.c (handle_inferior_event): Update.
357 * breakpoint.c (watch_command_1, until_break_command): Update.
358 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
359 (handle_inferior_event, step_over_function): Update.
360 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
361 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
362 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
363 * infcmd.c (finish_command, run_stack_dummy): Update.
364
3652002-12-11 Kevin Buettner <kevinb@redhat.com>
366
367 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
368 (dwarf2_non_const_array_bound_ignored)
369 (dwarf2_missing_line_number_section)
370 (dwarf2_statement_list_fits_in_line_number_section)
371 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
372 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
373 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
374 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
375 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
376 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
377 (dwarf2_missing_member_fn_type_complaint)
378 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
379 (dwarf2_const_value_length_mismatch)
380 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
381 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
382 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
383 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
384 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
385 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
386 complaints using deprecated struct..
387 (dwarf2_non_const_array_bound_ignored_complaint)
388 (dwarf2_complex_location_expr_complaint)
389 (dwarf2_unsupported_at_frame_base_complaint)
390 (dwarf2_const_value_length_mismatch_complaint)
391 (dwarf2_macros_too_long_complaint)
392 (dwarf2_macro_malformed_definition_complaint)
393 (dwarf2_invalid_attrib_class_complaint): New functions.
394 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
395 (read_structure_scope, read_array_type, read_common_block)
396 (read_tag_pointer_type, read_base_type, read_partial_die)
397 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
398 (new_symbol, dwarf2_const_value, read_type_die)
399 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
400 (parse_macro_definition, dwarf_decode_macros): Replace calls to
401 complain() with, possibly indirect, calls to complaint().
402
4032002-12-11 Andrew Cagney <cagney@redhat.com>
404
405 * frame.c (deprecated_get_frame_saved_regs): Rename
406 get_frame_saved_regs.
407 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
408 * sparc-tdep.c: Update.
409 * hppa-tdep.c: Update.
410 * h8500-tdep.c: Update.
411
4122002-12-11 Kevin Buettner <kevinb@redhat.com>
413
414 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
415 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
416 ``char *'' for return and parameter types.
417 * gdbarch.h, gdbarch.c: Regenerate.
418 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
419 return type from ``char *'' to ``const char *''.
420 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
421 const.
422
4232002-12-11 Mark Kettenis <kettenis@gnu.org>
424
425 * i386-tdep.c: Include "dummy-frame.h".
426 (i386_frame_chain, i386_frame_saved_pc): Replace
427 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
428 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
429
4302002-12-10 Andrew Cagney <cagney@redhat.com>
431
432 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
433 Change to a function with predicate.
434 * gdbarch.h, gdbarch.c: Re-generate.
435 * frame.c (get_prev_frame): Update. Test
436 DEPRECATED_INIT_FRAME_PC_P.
437 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
438 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
439 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
440 * alpha-tdep.c (alpha_gdbarch_init): Update.
441 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
442 * mips-tdep.c (mips_gdbarch_init): Update.
443 * i386-interix-tdep.c (i386_interix_init_abi): Update.
444 * arm-tdep.c: Update comments.
445 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
446 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
447 * frv-tdep.c (frv_gdbarch_init): Ditto.
448 * x86-64-tdep.c (x86_64_init_abi): Ditto.
449 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
450 * s390-tdep.c (s390_gdbarch_init): Ditto.
451 * v850-tdep.c (v850_gdbarch_init): Ditto.
452 * vax-tdep.c (vax_gdbarch_init): Ditto.
453 * sh-tdep.c (sh_gdbarch_init): Ditto.
454 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
456 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
458 * i386-tdep.c (i386_gdbarch_init): Ditto.
459 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
460 * cris-tdep.c (cris_gdbarch_init): Ditto.
461 * avr-tdep.c (avr_gdbarch_init): Ditto.
462 * arm-tdep.c (arm_gdbarch_init): Ditto.
463 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
464 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
465
4662002-12-10 Daniel Jacobowitz <drow@mvista.com>
467
468 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
469 CHILD_FOLLOW_FORK.
470 * hppah-nat.c (saved_vfork_pid): Add.
471 (child_post_follow_vfork): Remove.
472 (child_follow_fork): New function.
473 (child_wait): Call detach_breakpoints after receiving the child vfork.
474 Call child_resume directly instead of going through resume ().
475 Make sure we have the exec before reporting the vfork.
476 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
477 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
478 (follow_fork): New function. Call target_follow_fork.
479 (follow_inferior_reset_breakpoints): New function broken out from
480 old follow_inferior_fork.
481 (resume): Remove hack to follow exec after vfork.
482 * inftarg.c (child_post_follow_vfork): Remove.
483 (child_follow_fork): New function.
484 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
485 * target.c (cleanup_target): Replace to_post_follow_vfork with
486 to_follow_fork.
487 (update_current_target): Likewise.
488 (setup_target_debug): Likewise.
489 (debug_to_post_follow_vfork): Remove.
490 (debug_to_follow_fork): New function.
491 * target.h (struct target_ops): Replace to_post_folow_vfork with
492 to_follow_fork.
493 (child_post_follow_vfork): Remove prototype.
494 (child_follow_fork): Add prototype.
495 (target_post_follow_vfork): Remove macro.
496 (target_follow_fork): Add macro.
497
4982002-12-10 Daniel Jacobowitz <drow@mvista.com>
499
500 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
501 (child_post_follow_vfork): Cancel pending exec event if we follow
502 the parent.
503 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
504 events have been processed. Return a fake TARGET_WAITKIND_EXECD
505 event at the following wait call if necessary.
506 * infrun.c (follow_vfork): Don't follow_exec here.
507 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
508 case about HP/UX 10.20. Remove code pushed down to
509 hppah-nat.c:child_wait.
510 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
511 vfork_in_flight is set.
512
5132002-12-10 Daniel Jacobowitz <drow@mvista.com>
514
515 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
516 for the parent's fork event.
517 * infrun.c (handle_inferior_event): Only expect one fork event.
518 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
519 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
520
5212002-12-10 Andrew Cagney <ac131313@redhat.com>
522
523 * PROBLEMS: Delete reference to PR gdb/725.
524
525 * MAINTAINERS (gdb.c++): Add David Carlton.
526
5272002-12-09 David Carlton <carlton@math.stanford.edu>
528
529 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
530 * cli/cli-cmds.c: Ditto.
531
5322002-12-09 Andrew Cagney <cagney@redhat.com>
533
534 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
535 function address in <>.
536 * gdbarch.c: Re-generate.
537
5382002-12-09 David Carlton <carlton@math.stanford.edu>
539
540 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
541
5422002-12-09 David Carlton <carlton@math.stanford.edu>
543
544 * linespec.c (symtab_from_filename): New function.
545 (decode_line_1): Move code into symtab_from_filename.
546
5472002-12-09 Kevin Buettner <kevinb@redhat.com>
548
549 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
550
5512002-12-07 Andrew Cagney <ac131313@redhat.com>
552
553 * f-valprint.c (info_common_command): Use get_frame_pc.
554 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
555 * ax-gdb.c (agent_command): Ditto.
556 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
557 (rs6000_pop_frame): Ditto.
558 (rs6000_frameless_function_invocation): Ditto.
559 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
560 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
561 * macroscope.c (default_macro_scope): Ditto.
562 * stack.c (print_frame_info_base): Ditto.
563 (print_frame, frame_info, print_frame_label_vars): Ditto.
564 (return_command, func_command, get_frame_language): Ditto.
565 * infcmd.c (finish_command): Ditto.
566 * dummy-frame.c (cached_find_dummy_frame): Ditto.
567 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
568 (break_at_finish_at_depth_command_1): Ditto.
569 (break_at_finish_command_1): Ditto.
570 (until_break_command, get_catch_sals): Ditto.
571 * blockframe.c (func_frame_chain_valid): Ditto.
572 (frameless_look_for_prologue): Ditto.
573 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
574
5752002-12-08 Andrew Cagney <ac131313@redhat.com>
576
577 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
578 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
579
5802002-12-08 Andrew Cagney <ac131313@redhat.com>
581
582 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
583 to pure functions.
584 * gdbarch.h, gdbarch.c: Re-generate.
585 * frame.c (get_prev_frame): Explictly assign prev's pc with value
586 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
587
588 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
589 declaration to a function returning a CORE_ADDR.
590 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
591 * arch-utils.c (init_frame_pc_noop): Return the PC value.
592 (init_frame_pc_default): Ditto.
593 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
594 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
595 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
596 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
597 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
598 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
599
600 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
601 to init_frame_pc_noop.
602 (i386_interix_init_frame_pc): Delete function.
603 * z8k-tdep.c (init_frame_pc): Delete function.
604 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
605 (INIT_FRAME_PC_FIRST): Ditto.
606 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
607 (INIT_FRAME_PC_FIRST): Ditto.
608 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
609 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
610 init_frame_pc_noop.
611 (INIT_FRAME_PC_FIRST): Convert to an expression.
612 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
613
6142002-12-08 Andrew Cagney <ac131313@redhat.com>
615
616 * blockframe.c: Use get_frame_base instead of directly accessing
617 the `struct frame_info' member frame.
618 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
619 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
620
6212002-12-08 Elena Zannoni <ezannoni@redhat.com>
622
623 * Makefile.in (readline_h): Define.
624 (completer.o): Depend on readline_h.
625 (corelow.o): Ditto.
626 (event-top.o): Ditto.
627 (exec.o): Ditto.
628 (solib.o): Ditto.
629 (source.o): Ditto.
630 (symfile.o): Ditto.
631 (symmisc.o): Ditto.
632 (top.o): Ditto.
633 (tracepoint.o): Ditto.
634 (utils.o): Ditto.
635 (cli-dump.o): Ditto.
636 (tui-hooks.o): Ditto.
637 (tuiWin.o): Ditto.
638
6392002-12-08 Elena Zannoni <ezannoni@redhat.com>
640
641 More cleanup from import of readline 4.3.
642 * completer.h (complete_line, readline_line_completion_function):
643 Update prototypes.
644 (line_completion_function): Removed, not used outside of completer.c.
645 * completer.c (readline_line_completion_function,
646 complete_function, line_completion_function): Use const for first
647 parameter.
648 (line_completion_function): Make static.
649 (filename_completer): filename_completion_function is now called
650 rl_filename_completion_function
651 * corelow.c: Include <readline/readline.h>.
652 * exec.c: Ditto.
653 * solib.c: Ditto.
654 * source.c: Ditto.
655 * symfile.c: Ditto.
656 * symmisc.c: Ditto.
657 * top.c (init_main): No need to coerce
658 readline_line_completion_function anymore.
659 * cli/cli-dump.c: Include <readline/readline.h>.
660
6612002-12-08 Andrew Cagney <ac131313@redhat.com>
662
663 * stack.c (frame_info): Use get_prev_frame.
664 * blockframe.c (frame_address_in_block): Ditto.
665 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
666 (rs6000_frameless_function_invocation): Ditto.
667 (rs6000_frame_saved_pc): Ditto.
668 (rs6000_frame_chain): Ditto.
669 * arch-utils.c (init_frame_pc_default): Ditto.
670
6712002-12-08 Andrew Cagney <ac131313@redhat.com>
672
673 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
674 Delete redundant definition.
675
6762002-12-08 Elena Zannoni <ezannoni@redhat.com>
677
678 Import of readline 4.3:
679 * cli/cli-cmds.c: Include readline/tilde.h.
680 * cli/cli-setshow.c: Ditto.
681 * defs.h: Don't declare tilde_expand anymore, since readline
682 exports it.
683
6842002-12-08 Elena Zannoni <ezannoni@redhat.com>
685
686 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
687 -Werror on this file.
688
6892002-12-07 Andrew Cagney <ac131313@redhat.com>
690
691 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
692 the format name.
693 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
694 * gdbarch.c: Regenerate.
695
6962002-12-06 Andrew Cagney <ac131313@redhat.com>
697
698 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
699 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
700 provide a default value.
701 * gdbarch.h, gdbarch.c: Regenerate.
702 * frame.c (get_prev_frame): Update. Check
703 DEPRECATED_INIT_FRAME_PC_FIRST_P.
704 * s390-tdep.c (s390_gdbarch_init): Update.
705 * mips-tdep.c (mips_gdbarch_init): Update.
706 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
707 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
708 * alpha-tdep.c (alpha_gdbarch_init): Update.
709
7102002-12-06 Elena Zannoni <ezannoni@redhat.com>
711
712 * ia64-linux-nat.c: Include gdb_string.h.
713 * alpha-nat.c: Ditto.
714 * ppc-linux-nat.c: Ditto.
715 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
716 Update dependencies.
717
7182002-12-05 Andrew Cagney <ac131313@redhat.com>
719
720 * gdbthread.h: Include "frame.h".
721 (struct thread_info): Replace step_frame_address with
722 step_frame_id.
723 * inferior.h: Include "frame.h".
724 (step_frame_id): Replace external variable step_frame_address.
725 * gdbthread.h (save_infrun_state): Replace step_frame_address
726 parameter with step_frame_id parameter.
727 (load_infrun_state): Ditto.
728 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
729 * infcmd.c (step_frame_id, step_1, step_once): Update.
730 * thread.c (load_infrun_state, save_infrun_state): Update.
731 * infrun.c (clear_proceed_status, save_inferior_status): Update.
732 (handle_inferior_event, step_over_function): Update.
733 (normal_stop, context_switch, restore_inferior_status): Update.
734 (struct inferior_status): Replace step_frame_address with
735 step_frame_id.
736
7372002-12-05 David Carlton <carlton@math.stanford.edu>
738
739 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
740 DW_TAG_member as well as a declaration as being a C++ static data
741 member.
742 (read_structure_scope): Combine tests for DW_TAG_member and
743 DW_TAG_variable.
744
7452002-12-05 David Carlton <carlton@math.stanford.edu>
746
747 * linespec.c (decode_compound): New function.
748 (decode_line_1): Move code into decode_compound.
749
7502002-12-05 David Carlton <carlton@math.stanford.edu>
751
752 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
753 argument.
754 (lookup_symbol_aux): Do the 'field_of_this' check before checking
755 the static block. See PR gdb/804.
756
7572002-12-05 David Carlton <carlton@math.stanford.edu>
758
759 * symtab.c (lookup_symbol_aux_block): New function.
760 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
761
7622002-12-05 Andrew Cagney <ac131313@redhat.com>
763
764 * gdbarch.sh: Dump the predicate function and macro values.
765 (read): Print error on standard error.
766 * gdbarch.c: Regenerate.
767
7682002-12-04 Kevin Buettner <kevinb@redhat.com>
769
770 * Makefile.in (mips_tdep_h): Define.
771 (mips-tdep.o): Add mips_tdep_h to dependency list.
772 * mips-tdep.h: New file.
773 * mips-tdep.c (mips-tdep.h): Include.
774 (enum mips_abi): Move to mips-tdep.h.
775 (mips_abi): New function.
776
7772002-12-04 David Carlton <carlton@math.stanford.edu>
778
779 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
780
7812002-12-04 David Carlton <carlton@math.stanford.edu>
782
783 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
784 function.
785 (lookup_symbol_aux_minsyms): New function.
786
7872002-12-04 J. Brobecker <brobecker@gnat.com>
788
789 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
790
7912002-12-04 J. Brobecker <brobecker@gnat.com>
792
793 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
794 which is an obsolete macro name.
795
7962002-12-04 Daniel Jacobowitz <drow@mvista.com>
797
798 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
799 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
800
8012002-12-03 H.J. Lu (hjl@gnu.org)
802
803 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
804 (create_breakpoints): Make sure the addr_string field is not
805 NULL.
806
8072002-12-03 Andrew Cagney <ac131313@redhat.com>
808
809 * sparc-nat.c (fetch_inferior_registers)
810 (store_inferior_registers): Add comment on problem of LWP vs
811 threads.
812
813 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
814 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
815 (lin_lwp_store_registers): Remove.
816 (init_lin_lwp_ops): Use fetch_inferior_registers
817 and store_inferior_registers directly.
818 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
819 (store_inferior_registers): Likewise.
820 Fix PR gdb/725.
821
8222002-12-03 Andrew Cagney <ac131313@redhat.com>
823
824 * frame.h (get_frame_id): Convert to a function.
825 (null_frame_id, frame_id_p): Declare.
826 (frame_id_eq, frame_id_inner): Declare.
827 (frame_id_build): New function.
828 * frame.c (get_frame_id): Update. Use null_frame_id.
829 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
830 frame_id_inner.
831 (null_frame_id, frame_id_p): Define.
832 (frame_id_eq, frame_id_inner): Define.
833 (frame_id_build): New function.
834 * varobj.c (varobj_create): Update.
835 (varobj_update): Update.
836 * valops.c (value_assign): Update.
837 (new_root_variable): Update.
838 * infrun.c (save_inferior_status): Update.
839 * breakpoint.c (watch_command_1): Update.
840
8412002-12-03 J. Brobecker <brobecker@gnat.com>
842
843 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
844 (SNAP2): Likewise.
845
8462002-12-03 Andrew Cagney <cagney@redhat.com>
847
848 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
849 patch.
850
851 * PROBLEMS: Mention PR gdb/725.
852
8532002-12-03 Andreas Schwab <schwab@suse.de>
854
855 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
856
8572002-12-02 Adam Fedor <fedor@gnu.org>
858 Klee Dienes <kdienes@apple.com>
859
860 * objc-lang.c (objc_printstr): Add width arg to match
861 printstr prototype.
862 (compare_selectors): Add 'const' to arg types.
863 (compare_classes): Likewise.
864 (find_imps): Cast msym pointer to avoid compiler warning.
865 (print_object_command): Validate the address before
866 passing it to the print routine.
867 (find_objc_msgcall_submethod): Change function argument to
868 return an int.
869 * objc-lang.h: Add 'extern' to all function declarations.
870 (value_nsstring): Add declaration.
871
8722002-12-02 J. Brobecker <brobecker@gnat.com>
873
874 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
875 Fixes a build failure on HP/UX.
876
877 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
878 failure on HP/UX.
879 (hpread_has_name): Advance declaration to avoid a compilation warning.
880 (pst_syms_count): Add missing variable type. By change, the compiler
881 was defaulting to int, which seems a good choice. Fixes a compilation
882 warning.
883 (pst_syms_size): Likewise.
884
8852002-12-02 J. Brobecker <brobecker@gnat.com>
886
887 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
888 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
889 later to set the proper gdbarch methods depending on the osabi.
890 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
891
8922002-12-02 J. Brobecker <brobecker@gnat.com>
893
894 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
895 * osabi.c (gdb_osabi_name): Add strings images for the two new
896 enum values.
897 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
898
8992002-12-02 Andrew Cagney <ac131313@redhat.com>
900
901 * MAINTAINERS (Java): Global maintainers are responible for Java.
902 (Past Maintainers): Mention both Anthony Green and Per Bothner as
903 part Java maintainers.
904
9052002-12-02 J. Brobecker <brobecker@gnat.com>
906
907 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
908 Fixes a compilation failure on AiX.
909
9102002-12-02 J. Brobecker <brobecker@gnat.com>
911
912 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
913 why aix-thread.o is not listed.
914
9152002-12-01 Andrew Cagney <ac131313@redhat.com>
916
917 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
918 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
919 * gdbarch.h, gdbarch.c: Re-generate.
920 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
921 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
922 * config/pa/tm-hppa.h, frame.h: Update.
923 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
924 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
925 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
926 * cris-tdep.c, alpha-tdep.c: Update.
927 * frame.c (set_unwind_by_pc, create_new_frame): Use either
928 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
929 (get_prev_frame): Ditto.
930
9312002-11-30 Andrew Cagney <cagney@redhat.com>
932
933 * exec.c (xfer_memory): Replace boolean with int.
934 * p-exp.y: Use 0 instead of false.
935 * corelow.c (gdb_check_format): Change return type to int from
936 boolean.
937 * utils.c: Don't include <curses.h> or <term.h> first.
938
9392002-11-29 Stephane Carrez <stcarrez@nerim.fr>
940
941 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
942 (m68hc11_register_byte): Remove.
943 (m68hc11_gdbarch_init): Don't set the above.
944
9452002-11-29 Andrew Cagney <cagney@redhat.com>
946
947 * remote-mips.c (mips_initialize): Force a selected frame rebuild
948 by calling get_selected_frame.
949 * ocd.c (ocd_start_remote): Use get_selected frame instead of
950 set_current_frame, create_new_frame, select_frame and
951 get_current_frame.
952 * remote-e7000.c (e7000_start_remote): Ditto.
953 * remote-mips.c (common_open): Ditto
954 * remote-rdp.c (remote_rdp_open): Ditto.
955
9562002-11-29 Andreas Schwab <schwab@suse.de>
957
958 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
959 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
960 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
961 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
962 read_memory_unsigned_integer instead of read_memory_integer when
963 dealing with addresses and instruction opcodes.
964 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
965 (m68k_linux_frame_saved_pc): Likewise.
966
9672002-11-29 Andrew Cagney <ac131313@redhat.com>
968
969 * stack.c (selected_frame, select_frame): Move from here ...
970 * frame.c (selected_frame, select_frame): ... to here. Include
971 "language.h".
972 * Makefile.in (frame.o): Update dependencies.
973 * frame.c (get_selected_frame): New function.
974 * frame.h (get_selected_frame): Declare.
975 (deprecated_selected_frame): Rename selected_frame.
976 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
977 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
978 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
979 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
980 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
981 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
982 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
983 * z8k-tdep.c, cli/cli-cmds.c: Update.
984
9852002-11-29 Andrew Cagney <ac131313@redhat.com>
986
987 * frame.h (get_selected_block): Add comments.
988
9892002-11-28 Andrew Cagney <ac131313@redhat.com>
990
991 * frame.c (pc_notcurrent): New function.
992 (find_frame_sal): New function.
993 * frame.h (find_frame_sal): Declare.
994 (struct symtab_and_line): Add opaque declaration.
995 * stack.c (print_frame_info_base): Use find_frame_sal instead of
996 find_pc_line.
997 (frame_info): Ditto.
998 * ada-lang.c (find_printable_frame): Ditto.
999
10002002-11-28 J. Brobecker <brobecker@gnat.com>
1001
1002 * configure.in: Check that the pthdebug library is recent enough
1003 before enabling thread support on native AiX.
1004 * configure: Regenerate.
1005
1006 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1007 from the list of object files as it is now appended by configure
1008 if thread support is enabled.
1009 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1010 if thread support is enabled.
1011
10122002-11-28 Andrew Cagney <cagney@redhat.com>
1013
1014 * stack.c (get_selected_block): In-line get_current_block.
1015 * frame.h (get_current_block): Delete declaration.
1016 * blockframe.c (get_current_block): Delete function.
1017
10182002-11-28 Andrew Cagney <ac131313@redhat.com>
1019
1020 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1021 USE_GENERIC_DUMMY_FRAMES.
1022 * gdbarch.h, gdbarch.c: Regenerate.
1023 * valops.c, frame.c: Update.
1024 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1025 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1026 * config/pa/tm-hppa.h, blockframe.c: Update.
1027 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1028 * m68k-tdep.c, alpha-tdep.c: Ditto.
1029
1030 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1031 * mips-tdep.c: Ditto.
1032
10332002-11-27 Andrew Cagney <ac131313@redhat.com>
1034
1035 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1036 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1037 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1038 * gdbarch.c, gdbarch.h: Re-generate.
1039 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1040 (CALL_DUMMY_LOCATION): Delete macro definition.
1041 (PC_IN_CALL_DUMMY): Delete macro definitions.
1042
1043 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1044 default is already generic_pc_in_call_dummy.
1045 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1046 * v850-tdep.c (v850_gdbarch_init): Ditto.
1047 * sh-tdep.c (sh_gdbarch_init): Ditto.
1048 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1049 * mips-tdep.c (mips_gdbarch_init): Ditto.
1050 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1052 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1053 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1054 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1055 * avr-tdep.c (avr_gdbarch_init): Ditto.
1056
1057 * arm-tdep.c (arm_gdbarch_init): Do not set
1058 use_generic_dummy_frames, default is already 1.
1059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1060 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1061 * v850-tdep.c (v850_gdbarch_init): Ditto.
1062 * sh-tdep.c (sh_gdbarch_init): Ditto.
1063 * s390-tdep.c (s390_gdbarch_init): Ditto.
1064 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1065 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1066 * mips-tdep.c (mips_gdbarch_init): Ditto.
1067 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1069 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1070 * i386-tdep.c (i386_gdbarch_init): Ditto.
1071 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1072 * frv-tdep.c (frv_gdbarch_init): Ditto.
1073 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1074 * cris-tdep.c (cris_gdbarch_init): Ditto.
1075 * avr-tdep.c (avr_gdbarch_init): Ditto.
1076
1077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1078 call_dummy_location, default is already AT_ENTRY_POINT.
1079 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1080 * v850-tdep.c (v850_gdbarch_init): Ditto.
1081 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1082 * sh-tdep.c (sh_gdbarch_init): Ditto.
1083 * s390-tdep.c (s390_gdbarch_init): Ditto.
1084 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1085 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1086 * mips-tdep.c (mips_gdbarch_init): Ditto.
1087 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1089 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1090 * i386-tdep.c (i386_gdbarch_init): Ditto.
1091 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1092 * frv-tdep.c (frv_gdbarch_init): Ditto.
1093 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1094 * cris-tdep.c (cris_gdbarch_init): Ditto.
1095 * avr-tdep.c (avr_gdbarch_init): Ditto.
1096 * arm-tdep.c (arm_gdbarch_init): Ditto.
1097 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1098
10992002-11-28 Andrew Cagney <cagney@redhat.com>
1100
1101 * frame.h: Update comments on set_current_frame, create_new_frame,
1102 flush_cached_frames, reinit_frame_cache, select_frame and
1103 selected_frame.
1104
11052002-11-27 Andrew Cagney <cagney@redhat.com>
1106
1107 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1108 deprecated pc_in_call_dummy function.
1109 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1110 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1111 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1112 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1113 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1114
11152002-11-26 Martin M. Hunt <hunt@redhat.com>
1116
1117 * Makefile.in: Remove Tix dependencies.
1118 * acinclude.m4: Ditto.
1119 * aclocal.m4: Ditto.
1120 * configure.in: Ditto.
1121 * configure: Regenerated.
1122
11232002-11-26 Andrew Cagney <ac131313@redhat.com>
1124
1125 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1126 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1127 * gdbarch.c: Re-generate.
1128
11292002-11-26 Andrew Cagney <ac131313@redhat.com>
1130
1131 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1132 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1133 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1134 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1135 pc_in_call_dummy_at_entry_point.
1136 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1137 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1138 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1139 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1140 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1141 pc_in_call_dummy_on_stack.
1142 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1143 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1144 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1145 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1146 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1147
11482002-11-26 Andrew Cagney <ac131313@redhat.com>
1149
1150 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1151 pc_in_call_dummy_before_text_end
1152 (deprecated_pc_in_call_dummy_after_text_end): Rename
1153 pc_in_call_dummy_after_text_end.
1154 (deprecated_pc_in_call_dummy_on_stack): Rename
1155 pc_in_call_dummy_on_stack.
1156 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1157 pc_in_call_dummy_at_entry_point.
1158 * m68k-tdep.c (m68k_gdbarch_init): Update.
1159 * s390-tdep.c (s390_gdbarch_init): Update.
1160 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1161 * vax-tdep.c (vax_gdbarch_init): Update.
1162 * sparc-tdep.c (sparc_gdbarch_init): Update.
1163 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1164 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1165 * i386-tdep.c (i386_gdbarch_init): Update.
1166 * frv-tdep.c (frv_gdbarch_init): Update.
1167 * cris-tdep.c (cris_gdbarch_init): Update.
1168 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1169 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1170 (deprecated_pc_in_call_dummy_after_text_end)
1171 (deprecated_pc_in_call_dummy_on_stack)
1172 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1173 * alpha-tdep.c (alpha_gdbarch_init): Update.
1174
11752002-11-25 Daniel Jacobowitz <drow@mvista.com>
1176
1177 * acconfig.h (HAVE_PREAD64): Add.
1178 * configure.in: Check for pread64.
1179 * config.in: Regenerated.
1180 * configure: Regenerated.
1181 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1182 * linux-proc.c (linux_proc_xfer_memory): New function.
1183 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1184
11852002-11-25 David Carlton <carlton@math.stanford.edu>
1186
1187 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1188 pdi's with no name.
1189
11902002-11-25 Andrew Cagney <ac131313@redhat.com>
1191
1192 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1193 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1194
11952002-11-25 Jim Blandy <jimb@redhat.com>
1196
1197 * symfile.c (init_objfile_sect_indices): New function.
1198 (default_symfile_offsets): Move the section-index-initializing
1199 stuff into init_objfile_sect_indices, and call that.
1200
1201 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1202 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1203
1204 * symfile.c (syms_from_objfile): Adjust indentation.
1205
1206 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1207 || info_verbose isn't true.
1208
12092002-11-24 Andrew Cagney <ac131313@redhat.com>
1210
1211 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1212 default to get_frame_base.
1213 * gdbarch.h, gdbarch.c: Regenerate.
1214 * arch-utils.c (default_frame_address): Delete function.
1215 * arch-utils.h (default_frame_address): Delete declaration
1216
12172002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1218
1219 * varobj.c (find_frame_addr_in_frame_chain):
1220 Use get_frame_base instead of FRAME_FP,
1221 obvious fix.
1222
12232002-11-19 Andrew Cagney <ac131313@redhat.com>
1224
1225 * frame.h (FRAME_FP): Delete macro.
1226 (get_frame_base): New function declaration.
1227 * frame.c (get_frame_base): New function.
1228 (get_frame_id): Use ->frame.
1229 (frame_find_by_id): Rewrite to use get_frame_id.
1230 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1231 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1232 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1233 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1234 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1235 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1236 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1237
12382002-11-24 Andrew Cagney <ac131313@redhat.com>
1239
1240 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1241
12422002-11-24 Andrew Cagney <ac131313@redhat.com>
1243
1244 * frame.c (set_unwind_by_pc): Revert change below, use
1245 PC_IN_CALL_DUMMY.
1246 (get_prev_frame): Ditto.
1247
12482002-11-24 Andrew Cagney <ac131313@redhat.com>
1249
1250 * dummy-frame.c (pc_in_dummy_frame): New function.
1251 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1252 (find_dummy_frame): Update comment.
1253 (generic_pop_current_frame): Use get_frame_type.
1254 * dummy-frame.h (pc_in_dummy_frame): Declare.
1255 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1256 (create_new_frame): Use pc_in_dummy_frame.
1257 (get_prev_frame): Use pc_in_dummy_frame.
1258 (frame_saved_regs_register_unwind): Use get_prev_frame.
1259 (deprecated_generic_get_saved_register): Use get_prev_frame.
1260
12612002-11-23 Andrew Cagney <ac131313@redhat.com>
1262
1263 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1264 from here ...
1265 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1266 (varobj_create): Note that frame ID should be used.
1267 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1268
12692002-11-23 Andrew Cagney <ac131313@redhat.com>
1270
1271 * breakpoint.c: Include "gdb_assert.h".
1272 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1273 not being used.
1274 * Makefile.in (breakpoint.o): Update dependencies.
1275 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1276 deprecated_frame_in_dummy.
1277 * stack.c (print_frame_info_base): Ditto.
1278 (frame_info): Ditto.
1279 (print_frame_info_base): Ditto. Delete dead code.
1280
12812002-11-23 Andreas Schwab <schwab@suse.de>
1282
1283 * Makefile.in (m68k_tdep_h): Define.
1284 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1285 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1286 * m68k-tdep.c: Move register number enum ...
1287 * m68k-tdep.h: ... to this new file and rename the constants from
1288 E_* to M68K_*. All uses changed.
1289 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1290 * abug-rom.c: Include "m68k-tdep.h". Use
1291 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1292 * cpu32bug-rom.c: Likewise.
1293 * dbug-rom.c: Likewise.
1294 * m68k-tdep.c: Likewise.
1295 * m68klinux-nat.c: Likewise.
1296 * remote-est.c: Likewise.
1297 * rom68k-rom.c: Likewise.
1298 * config/m68k/tm-linux.h: Likewise.
1299
13002002-11-23 Andrew Cagney <ac131313@redhat.com>
1301
1302 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1303 dummy frame initialization code.
1304 * mips-tdep.c (mips_gdbarch_init): Ditto.
1305
13062002-11-22 Christopher Faylor <cgf@redhat.com>
1307
1308 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1309 attach will hang.
1310
13112002-11-22 Andrew Cagney <ac131313@redhat.com>
1312
1313 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1314 to default_frame_address.
1315 * gdbarch.h, gdbarch.c: Re-generate.
1316
1317 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1318 or frame_locals_address to default_frame_address.
1319 * m68k-tdep.c (m68k_gdbarch_init): Update.
1320 * i386-tdep.c (i386_gdbarch_init): Update.
1321 * frv-tdep.c (frv_gdbarch_init): Update.
1322 * sh-tdep.c (sh_gdbarch_init): Update.
1323 * v850-tdep.c (v850_gdbarch_init): Update.
1324 * sparc-tdep.c (sparc_gdbarch_init): Update.
1325 * mips-tdep.c (mips_gdbarch_init): Update.
1326 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1327 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1329
1330 * cris-tdep.c (cris_frame_args_address): Delete function.
1331 (cris_frame_locals_address): Delete function.
1332 (cris_gdbarch_init): Do not set frame_args_address or
1333 frame_locals_address.
1334
13352002-11-22 Michael Snyder <msnyder@redhat.com>
1336
1337 * thread-db.c (thread_db_load): Tell the user what's going on
1338 if dlopen fails on libthread_db.
1339
13402002-11-23 Andreas Schwab <schwab@suse.de>
1341
1342 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1343 invariant return values.
1344
13452002-11-22 Andreas Schwab <schwab@suse.de>
1346
1347 * valops.c (value_slice): Move declaration of `offset' to avoid
1348 warning.
1349
13502002-11-22 Christopher Faylor <cgf@redhat.com>
1351
1352 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1353 (struct so_stuff): Add end_addr field.
1354 (register_loaded_dll): Calculate and store end address of loaded dll.
1355 (solib_address): New function.
1356 (child_solib_loaded_library_pathname): Pass carefully constructed
1357 section info to safe_symbol_file_add rather than ignoring it.
1358 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1359 DLL is loaded.
1360 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1361 (child_create_inferior): Fix a compiler warning.
1362 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1363 (solib_address): Declare new function.
1364
13652002-11-22 Andreas Schwab <schwab@suse.de>
1366
1367 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1368 and FPS registers.
1369
13702002-11-21 Daniel Jacobowitz <drow@mvista.com>
1371
1372 * maint.c (_initialize_maint_cmds): Fix typo. From
1373 Francesco Potorti` <pot@gnu.org>.
1374
13752002-11-21 Andrew Cagney <cagney@redhat.com>
1376
1377 * mips-tdep.c (mips_dump_tdep): Delete references to
1378 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1379 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1380 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1381 * printcmd.c (build_address_symbolic): Delete calls to
1382 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1383 (address_info): Ditto.
1384 Fix PR gdb/773.
1385
13862002-11-19 Klee Dienes <kdienes@apple.com>
1387 Adam Fedor <fedor@gnu.org>
1388
1389 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1390 the ability to explicitly specify the quote characters and word
1391 break characters; if NULL is specified for either, use the old
1392 behavior of using the characters used by the completer.
1393 (skip_chars): New function. Convenience wrapper around
1394 skip_quoted_chars to provide the original skip_chars behavior.
1395 * completer.h (skip_quoted_chars): Add prototype.
1396
13972002-11-19 Andrew Cagney <ac131313@redhat.com>
1398
1399 Problems reported by Paul Eggert.
1400 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1401
14022002-11-19 Andreas Schwab <schwab@suse.de>
1403
1404 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1405 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1406 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1407 (m68k_linux_frame_saved_pc): Move to ...
1408 * m68klinux-tdep.c: ... here. New file.
1409 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1410 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1411
14122002-11-19 Adam Fedor <fedor@gnu.org>
1413
1414 * objc-exp.y: Revert to old skip_quoted usage.
1415
14162002-11-19 Adam Fedor <fedor@gnu.org>
1417
1418 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1419 (objc_lang_h): Define.
1420 (YYFILES): Add objc-exp.tab.c.
1421 (local-maintainer-clean): Remove objc-exp.tab.c.
1422 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1423
14242002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1425
1426 * p-exp.y (typecast rule): Add automatic dereference of
1427 pascal classes if needed.
1428 (THIS): Set current_type.
1429 Automatically dereference pascal classes.
1430 (typebase rule): Add ^typebase recognition.
1431
14322002-11-18 Adam Fedor <fedor@gnu.org>
1433
1434 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1435 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1436 (op_name): Handle OP_OBJC_SELF.
1437 * Makefile.in (expprint.o): Add additional depends.
1438
14392002-11-18 Adam Fedor <fedor@gnu.org>
1440
1441 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1442 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1443 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1444 * objc-exp.y: Likewise.
1445
14462002-11-18 Adam Fedor <fedor@gnu.org>
1447
1448 * gdb/parser-defs.h: (struct objc_class_str): New structure
1449 for parsing ObjC classes.
1450
14512002-11-18 Andrew Cagney <ac131313@redhat.com>
1452
1453 * stack.c (frame_relative_level): Copy function from here ...
1454 * frame.c (frame_relative_level): ...to here.
1455
14562002-11-18 Andrew Cagney <ac131313@redhat.com>
1457
1458 * frame.h (enum frame_type): Define.
1459 (get_frame_type): Declare.
1460 (struct frame_info): Add field `type'. Delete field
1461 signal_handler_caller.
1462 (deprecated_set_frame_signal_handler_caller): Declare.
1463 * frame.c (get_frame_type): New function.
1464 (deprecated_set_frame_type): New function.
1465 (create_new_frame): Set the frame's type.
1466 (get_prev_frame): Similar.
1467 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1468 * s390-tdep.c: Ditto.
1469 * m68klinux-nat.c: Ditto.
1470 * ns32k-tdep.c: Ditto.
1471 * x86-64-linux-tdep.c: Ditto.
1472 * vax-tdep.c: Ditto.
1473 * rs6000-tdep.c: Ditto.
1474 * ppc-linux-tdep.c: Ditto.
1475 * i386-interix-tdep.c: Ditto.
1476 * mips-tdep.c: Ditto.
1477 * m68k-tdep.c: Ditto.
1478 * hppa-tdep.c: Ditto.
1479 * ia64-tdep.c: Ditto.
1480 * cris-tdep.c: Ditto.
1481 * arm-tdep.c: Ditto.
1482 * alpha-tdep.c: Ditto.
1483 * i386-tdep.c: Ditto.
1484 * stack.c: Ditto.
1485 * ada-lang.c: Ditto.
1486 * blockframe.c: Update.
1487 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1488 deprecated_set_frame_type instead of signal_handler_caller.
1489 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1490 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1491 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1492
14932002-11-18 Klee Dienes <kdienes@apple.com>
1494
1495 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1496
14972002-11-18 Klee Dienes <kdienes@apple.com>
1498
1499 * buildsym.c (pop_context): Add comment.
1500
15012002-11-18 Klee Dienes <kdienes@apple.com>
1502
1503 * buildsym.h (pop_context): Convert to function, defined in
1504 buildsym.c.
1505 * buildsym.c: Include gdb_assert.h.
1506 (pop_context): Implement as C function. Add check for stack
1507 underflow.
1508 * dbxread.c (process_one_symbol): Complain and stop processing
1509 that symbol if we are already at the top of the context stack for
1510 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1511 when processing N_RBRAC.
1512
15132002-11-16 Daniel Jacobowitz <drow@mvista.com>
1514
1515 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1516 define.
1517 (struct target_waitstatus): Add opaque definition.
1518 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1519 * exec.c (init_exec_ops): Likewise.
1520 * fork-child.c (clone_and_follow_inferior): Remove.
1521 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1522 * inferior.h (clone_and_follow_inferior): Remove prototype.
1523 * infrun.c (follow_fork_mode_both): Remove.
1524 (follow_fork_mode_kind_names): Remove commented out "both".
1525 (follow_inferior_fork): Remove follow_fork_mode_both support.
1526 * inftarg.c (child_clone_and_follow_inferior): Remove.
1527 (child_post_follow_inferior_by_clone): Remove.
1528 (init_child_ops): Don't set to_clone_and_follow_inferior
1529 or to_post_follow_inferior_by_clone.
1530 * target.c (default_clone_and_follow_inferior): Remove.
1531 (cleanup_target): Don't set to_clone_and_follow_inferior
1532 or to_post_follow_inferior_by_clone.
1533 (find_default_clone_and_follow_inferior): Remove.
1534 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1535 (debug_to_clone_and_follow_inferior): Remove.
1536 (debug_to_post_follow_inferior_by_clone): Remove.
1537 (setup_target_debug): Don't set to_clone_and_follow_inferior
1538 or to_post_follow_inferior_by_clone.
1539 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1540 and to_post_follow_inferior_by_clone.
1541 (child_clone_and_follow_inferior): Remove prototype.
1542 (child_post_follow_inferior_by_clone): Remove prototype.
1543 (target_clone_and_follow_inferior): Remove macro.
1544 (target_post_follow_inferior_by_clone): Remove macro.
1545 (find_default_clone_and_follow_inferior): Remove prototype.
1546
15472002-11-16 Daniel Jacobowitz <drow@mvista.com>
1548
1549 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1550 inferior_has_vforked, and inferior_has_execd instead of
1551 target_has_forked, target_has_vforked, and target_has_execd.
1552 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1553 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1554 (CHILD_WAIT): Define.
1555 (child_wait): Add prototype.
1556 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1557 Add prototype.
1558 (hpux_has_vforked): Likewise, from child_has_vforked.
1559 (hpux_has_execd): Likewise, from child_has_execd.
1560 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1561 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1562 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1563 and hpux_has_syscall_event instead of the target hooks.
1564 * infrun.c (inferior_has_forked, inferior_has_vforked)
1565 (inferior_has_execd): New functions.
1566 * inftarg.c (not_same_real_pid): Remove.
1567 (child_wait): Remove references to not_same_real_pid,
1568 target_has_forked, target_has_vforked, target_has_execd,
1569 and target_has_syscall_event.
1570 (child_has_forked, child_has_vforked, child_has_execd)
1571 (child_has_syscall_event): Remove.
1572 (init_child_ops): Remove references to child_has_forked,
1573 child_has_vforked, child_has_execd, and child_has_syscall_event.
1574 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1575 (hpux_has_vforked): Likewise, from child_has_vforked.
1576 (hpux_has_execd): Likewise, from child_has_execd.
1577 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1578 * target.c (cleanup_target): Remove references to
1579 to_has_forked, to_has_vforked, to_has_execd, and
1580 to_has_syscall_event.
1581 (update_current_target): Likewise.
1582 (setup_target_debug): Likewise.
1583 (debug_to_has_forked): Remove.
1584 (debug_to_has_vforked): Remove.
1585 (debug_to_has_execd): Remove.
1586 (debug_to_has_syscall_event): Remove.
1587 * target.h (struct target_ops): Remove to_has_forked.
1588 to_has_vforked, to_has_execd, and to_has_syscall_event.
1589 (child_has_forked, child_has_vforked, child_has_execd)
1590 (child_has_syscall_event): Remove prototypes.
1591 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1592 prototypes.
1593 (target_has_forked, target_has_vforked, target_has_execd)
1594 (target_has_syscall_event): Remove macros.
1595
15962002-11-16 Daniel Jacobowitz <drow@mvista.com>
1597
1598 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1599 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1600 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1601 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1602 * target.c (cleanup_target): Remove reference to
1603 to_can_follow_vfork_prior_to_exec.
1604 (update_current_target): Likewise.
1605 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1606 (setup_target_debug): Remove reference to
1607 to_can_follow_vfork_prior_to_exec.
1608 * target.h (struct target_ops): Remove
1609 to_can_follow_vfork_prior_to_exec.
1610 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1611 (target_can_follow_vfork_prior_to_exec): Remove definition.
1612 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1613 define.
1614 * infrun.c (follow_vfork_when_exec): Remove.
1615 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1616 (follow_exec): Likewise.
1617 (handle_inferior_event): Likewise.
1618 (keep_going): Likewise.
1619
16202002-11-15 Andrew Cagney <cagney@redhat.com>
1621
1622 * frame.c (generic_unwind_get_saved_register): Make static.
1623 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1624 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1625 defaults to generic_unwind_get_saved_register.
1626 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1627 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1628 * frv-tdep.c (frv_gdbarch_init): Ditto.
1629 * i386-tdep.c (i386_gdbarch_init): Ditto.
1630 * s390-tdep.c (s390_gdbarch_init): Ditto.
1631 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1632 * v850-tdep.c (v850_gdbarch_init): Ditto.
1633 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1634 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1635 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1636
16372002-11-15 Andrew Cagney <cagney@redhat.com>
1638
1639 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1640 i386-tdep.c.
1641
16422002-11-15 Andrew Cagney <cagney@redhat.com>
1643
1644 * frame.h (sigtramp_saved_pc): Delete declaration.
1645 * blockframe.c (sigtramp_saved_pc): Delete function.
1646 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1647 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1648 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1649 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1650
16512002-11-15 Andrew Cagney <ac131313@redhat.com>
1652
1653 * frame.c (frame_pc_unwind): New function.
1654 (frame_saved_regs_pc_unwind): New function.
1655 (frame_register_unwind): Pass unwind_cache instead of
1656 register_unwind_cache.
1657 (set_unwind_by_pc): Add unwind_pc parameter, set.
1658 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1659 (get_prev_frame): Ditto.
1660 * frame.h (frame_pc_unwind_ftype): Declare.
1661 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1662 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1663 (frame_pc_unwind): Declare.
1664 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1665 (struct dummy_frame): Add comment mentioning that values are for
1666 previous frame.
1667 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1668 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1669 (generic_file_frame_chain_valid): Ditto.
1670 * stack.c (frame_info): Ditto.
1671
16722002-11-15 David Carlton <carlton@math.stanford.edu>
1673
1674 * linespec.c (locate_first_half): New function.
1675 (decode_line_1): Move code into locate_first_half.
1676
16772002-11-15 Andrew Cagney <ac131313@redhat.com>
1678
1679 * complaints.h: Add comment explaining how to eliminate a
1680 deprecated_complain call.
1681 * complaints.h: Fix spelling errors.
1682
16832002-11-15 David Carlton <carlton@math.stanford.edu>
1684
1685 * printcmd.c: Remove #include "disasm.h".
1686
16872002-11-14 Andrew Cagney <ac131313@redhat.com>
1688
1689 * frame.h: Move the most relevant interface functions to the start
1690 of the file.
1691
16922002-11-14 Andrew Cagney <ac131313@redhat.com>
1693
1694 * regcache.h (deprecated_registers): Rename registers.
1695 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1696 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1697 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1698 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1699 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1700 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1701 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1702 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1703 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1704 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1705 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1706 * v850ice.c: Update.
1707
1708Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1709
1710 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1711 NULL buffer.
1712
17132002-11-13 Andrew Cagney <cagney@redhat.com>
1714
1715 * regcache.h (deprecated_read_register_bytes): Rename
1716 read_register_bytes.
1717 (deprecated_write_register_bytes): Rename write_register_bytes.
1718 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1719 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1720 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1721 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1722 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1723 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1724 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1725 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1726 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1727 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1728 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1729 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1730 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1731 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1732
17332002-11-13 Jim Blandy <jimb@redhat.com>
1734
1735 * findvar.c (read_var_value): Doc fix.
1736
17372002-11-13 Andrew Cagney <cagney@redhat.com>
1738
1739 * regcache.c (struct regcache): Replace passthough_p with
1740 readonly_p.
1741 (regcache_xmalloc): Initialize readonly_p.
1742 (build_regcache): Initialize readonly_p.
1743 (regcache_save): New function.
1744 (regcache_restore): New function.
1745 (regcache_cpy): Re-implement using regcache_save and
1746 regcache_restore.
1747 (regcache_raw_read): Update.
1748 (regcache_cooked_read): When a read-only cache, checked for cached
1749 pseudo register values.
1750 (regcache_raw_write): Assert that the cache is not read-only.
1751 Remove code handling a non-passthrough cache.
1752 * regcache.h (regcache_save): Declare.
1753 (regcache_restore): Declare.
1754
17552002-11-13 Andrew Cagney <cagney@redhat.com>
1756
1757 * regcache.c (struct regcache_descr): Add fields
1758 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1759 (init_legacy_regcache_descr): Compute the size of a cooked
1760 register cache and then assign that to sizeof_raw_registers. Set
1761 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1762 (init_legacy_regcache_descr): Ditto.
1763
17642002-11-13 Andrew Cagney <cagney@redhat.com>
1765
1766 * regcache.c (register_buffer): Move to near start of file, update
1767 description.
1768 (regcache_raw_read): Use.
1769 (regcache_raw_write): Use.
1770 (struct regcache): Rename raw_registers to registers and
1771 raw_register_valid_p to register_valid_p.
1772 (regcache_xmalloc): Update.
1773 (regcache_xfree): Update.
1774 (register_buffer): Update.
1775 (regcache_cpy): Update.
1776 (regcache_cpy_no_passthrough): Update.
1777 (regcache_valid_p): Update.
1778 (deprecated_grub_regcache_for_registers): Update.
1779 (deprecated_grub_regcache_for_register_valid): Update.
1780 (set_register_cached): Update.
1781 (regcache_raw_write): Update.
1782
17832002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1784
1785 * p-exp.y (name_not_typename): Use copy_name to
1786 set current_type variable for fields of THIS.
1787
17882002-11-12 Daniel Jacobowitz <drow@mvista.com>
1789
1790 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1791 * monitor.c (init_base_monitor_ops): Likewise.
1792 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1793 * remote-array.c (init_array_ops): Likewise.
1794 * remote-e7000.c (init_e7000_ops): Likewise.
1795 * remote-es.c (init_es1800_ops): Likewise.
1796 (init_es1800_child_ops): Likewise.
1797 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1798 * remote-sim.c (init_gdbsim_ops): Likewise.
1799 * remote-st.c (init_st2000_ops): Likewise.
1800 * sol-thread.c (init_sol_core_ops): Likewise.
1801 (init_sol_thread_ops): Likewise.
1802 * v850ice.c (init_850ice_ops): Likewise.
1803 * win32-nat.c (init_child_ops): Likewise.
1804 * wince.c (init_child_ops): Likewise.
1805
18062002-11-12 Andrew Cagney <ac131313@redhat.com>
1807
1808 * utils.c (gdb_realpath): Make rp a constant pointer.
1809
18102002-11-12 Andrew Cagney <ac131313@redhat.com>
1811
1812 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1813 a constant buffer; cannonicalize_file_name(); realpath() with a
1814 pathconf() defined buffer, xstrdup().
1815
18162002-11-12 Andrew Cagney <ac131313@redhat.com>
1817
1818 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1819 to hang2.C; hang3.c to hang3.C.
1820
18212002-11-11 Elena Zannoni <ezannoni@redhat.com>
1822
1823 * findvar.c (read_var_value): Reenable TLS code.
1824
18252002-11-11 Elena Zannoni <ezannoni@redhat.com>
1826 Jim Blandy <jimb@redhat.com>
1827
1828 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1829 * target.c (update_current_target): Add
1830 to_get_thread_local_address.
1831 * target.h (to_get_thread_local_address): Export.
1832 (target_get_thread_local_address): Define.
1833 (target_get_thread_local_address_p): Define.
1834 * thread-db.c: Include solib-svr4.h.
1835 (td_thr_tls_get_addr_p): Define.
1836 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1837 (thread_db_get_thread_local_address): New function.
1838 (init_thread_db_ops): Initialize to_get_thread_local_address.
1839 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1840 * configure: Regenerate.
1841 * config.in: Regenerate.
1842
18432002-11-11 David Carlton <carlton@math.stanford.edu>
1844
1845 * linespec.c (set_flags): New function.
1846 (decode_line_1): Move code into set_flags.
1847
18482002-11-11 David Carlton <carlton@math.stanford.edu>
1849
1850 * linespec.c (decode_line_1): Move chunks of code to separate
1851 functions.
1852 (initialize_defaults): New function.
1853 (decode_indirect): New function.
1854
18552002-11-11 Andrew Cagney <ac131313@redhat.com>
1856
1857 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1858 instead of void_code_ptr.
1859 (sigtramp_saved_pc): Ditto.
1860
1861 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1862 i386_fp_regnum_p.
1863
18642002-11-10 Daniel Jacobowitz <drow@mvista.com>
1865
1866 * gdbtypes.h (struct main_type): Move artificial flag out of
1867 loc. New member of ``struct field'' named static_kind. Reduce
1868 overloaded meaning of bitsize.
1869 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1870 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1871 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1872
1873 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1874 new fields.
1875 (template_to_fixed_record_type, template_to_static_fixed_type)
1876 (to_record_with_fixed_variant_part): Likewise.
1877 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1878 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1879 * dwarfread.c (struct_type, enum_type): Likewise.
1880 * hpread.c (hpread_read_enum_type)
1881 (hpread_read_function_type, hpread_read_doc_function_type)
1882 (hpread_read_struct_type): Likewise.
1883 * mdebugread.c (parse_symbol): Likewise.
1884
18852002-11-10 Andrew Cagney <ac131313@redhat.com>
1886
1887 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1888 * stack.c (print_frame_info_base): Update.
1889 (print_frame_info_base, frame_info): Update.
1890 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1891 (sparc_frame_saved_pc): Update.
1892 * ada-lang.c (find_printable_frame): Update.
1893 * breakpoint.c (deprecated_frame_in_dummy): Update.
1894
18952002-11-09 Mark Kettenis <kettenis@gnu.org>
1896
1897 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1898 defined.
1899 (regmap): Extend to cover all registers.
1900 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1901 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1902 definitions.
1903 (fetch_register, sore_register): Simplify.
1904 (old_fetch_inferior_registers, old_store_inferior_registers):
1905 Remove functions.
1906 (cannot_fetch_register, cannot_store_register): Change
1907 implementation to use regmap array to decide which registers
1908 cannot be fetched/stored. This removes $orig_eax from the
1909 registers that cannot be fetched/stored.
1910 (fetch_inferior_registers): Call fetch_register directly instead
1911 of calling old_fetch_inferior_registers.
1912 (store_inferior_registers): Call store_register directly instead
1913 of calling old_store_inferior_registers.
1914 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1915 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1916 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1917
19182002-11-09 Klee Dienes <kdienes@apple.com>
1919
1920 * i387-tdep.c (i387_supply_register): When called with NULL as a
1921 buffer, mark the register as not provided (to mirror the behavior
1922 of supply_register).
1923 (i387_supply_fxsave): Ditto.
1924 (i387_supply_fsave): Ditto (inherits the behavior from
1925 i387_supply_register).
1926
19272002-11-09 Klee Dienes <kdienes@apple.com>
1928
1929 * blockframe.c (sigtramp_saved_pc): Use
1930 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1931 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1932 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1933
19342002-11-09 Andrew Cagney <ac131313@redhat.com>
1935
1936 * frame.c (get_prev_frame): Test prev_p to identify a previously
1937 unwound frame. Initialize prev_p.
1938 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1939 comment.
1940
19412002-11-09 Andrew Cagney <ac131313@redhat.com>
1942
1943 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1944 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1945 more comments. Zap dead code.
1946
19472002-11-09 Mark Kettenis <kettenis@gnu.org>
1948
1949 * infcmd.c (print_vector_info, print_float_info): Move code that
1950 checks whether the target has any registers and whether there is a
1951 selected frame up, such that it is also used if a target provides
1952 multi-arch definitions of these functions.
1953
19542002-11-08 Andrew Cagney <ac131313@redhat.com>
1955
1956 * Makefile.in (DESTDIR): Define.
1957 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1958 prefix.
1959
1960 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1961 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1962
19632002-11-08 Andrew Cagney <ac131313@redhat.com>
1964
1965 * i386-linux-tdep.c: Include "reggroups.h".
1966 (i386_linux_register_reggroup_p): New function.
1967 (i386_linux_init_abi): Set register_reggroup_p to
1968 i386_linux_register_reggroup_p.
1969 * i386-tdep.h (i386_register_reggroup_p): Declare.
1970 * i386-tdep.c: Include "reggroups.h".
1971 (i386_init_reggroups): New function.
1972 (i386_add_reggroups): New function.
1973 (i386_register_reggroup_p): New function.
1974 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1975 (_initialize_i386_tdep): Call i386_init_reggroups.
1976 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1977 specific reggroups.
1978
19792002-11-09 Mark Kettenis <kettenis@gnu.org>
1980
1981 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1982 request that's available in *BSD.
1983
1984 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1985
1986 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1987 FDOFF_REGNUM.
1988
19892002-11-08 Andrew Cagney <ac131313@redhat.com>
1990
1991 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1992 * dummy-frame.c (find_dummy_frame): Rename
1993 generic_find_dummy_frame, make static. Return the dummy frame
1994 instead of the regcache.
1995 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1996 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1997 (dummy_frame_register_unwind): Rename
1998 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1999 * dummy-frame.h (dummy_frame_register_unwind): Rename
2000 generic_call_dummy_register_unwind.
2001
20022002-11-08 Mark Kettenis <kettenis@gnu.org>
2003
2004 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2005 except the inclusion of "i386/tm-i386.h", to...
2006 * config/i386/nm-i386v42mp.h: ...here.
2007 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2008
20092002-11-08 Andrew Cagney <ac131313@redhat.com>
2010
2011 * Makefile.in (frame.o): Update dependencies.
2012 * blockframe.c (current_frame, frame_obstack_alloc)
2013 (frame_saved_regs_zalloc, get_current_frame)
2014 (set_current_frame, create_new_frame)
2015 (set_unwind_by_pc, get_next_frame)
2016 (flush_cached_frames, reinit_frame_cache)
2017 (frame_saved_regs_register_unwind)
2018 (deprecated_generic_get_saved_register)
2019 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2020 (_initialize_blockframe): Move frame code from here...
2021 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2022 "annotate.h" and "dummy-frame.h".
2023 (_initialize_frame): New function.
2024
20252002-11-08 Jim Blandy <jimb@redhat.com>
2026
2027 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2028 when we finish a function a context.
2029 * buildsym.h (outermost_context_p): New macro.
2030 (Bug analyzed by David Edelsohn.)
2031
20322002-11-08 Andrew Cagney <ac131313@redhat.com>
2033
2034 * blockframe.c: Include "dummy-frame.h".
2035 (struct dummy_frame, dummy_frame_stack)
2036 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2037 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2038 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2039 (generic_save_call_dummy_addr, generic_pop_current_frame)
2040 (generic_pop_dummy_frame, generic_fix_call_dummy)
2041 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2042 dummy frame code from here...
2043 * dummy-frame.c: ...to here. New file.
2044 * dummy-frame.h: New file.
2045 (generic_call_dummy_register_unwind): Declare.
2046 (generic_find_dummy_frame): Declare.
2047 * Makefile.in (SFILES): Add dummy-frame.c.
2048 (dummy-frame.o): Specify dependencies.
2049 (dummy_frame_h): Define.
2050 (COMMON_OBS): Add dummy-frame.o.
2051 (blockframe.o): Update dependencies.
2052
20532002-11-08 Jim Blandy <jimb@redhat.com>
2054
2055 * dwarf2read.c (read_func_scope): Restore local_symbols and
2056 param_symbols after we finish the function context. (Based on a
2057 patch from David Edelsohn.)
2058
20592002-11-08 David Carlton <carlton@math.stanford.edu>
2060
2061 * linespec.c (symbol_found): New function.
2062 (minsym_found): New function.
2063 (decode_line_1): Separate out some code into separate functions.
2064
20652002-11-08 Joel Brobecker <brobecker@gnat.com>
2066
2067 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2068 the benefit of the interix target.
2069 * i386-tdep.h (i386_frameless_signal_p): Declare.
2070
20712002-11-08 Andrew Cagney <ac131313@redhat.com>
2072
2073 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2074 declaration that snuck in from change below.
2075
20762002-11-06 Andrew Cagney <cagney@redhat.com>
2077
2078 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2079 all callers.
2080 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2081 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2082 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2083 (i386_mxcsr_regnum_p): new function. Use instead of
2084 MXCSR_REGNUM_P.
2085 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2086 (i386_sse_regnum_p): Declare.
2087 (i386_mxcsr_regnum_p): Declare.
2088 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2089 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2090 (IS_FP_REGNUM): Update definition.
2091 (IS_FPU_CTRL_REGNUM): Update definition..
2092 (IS_SSE_REGNUM): Update definition..
2093 * i386v-nat.c (register_u_addr): Update.
2094 * go32-nat.c (fetch_register): Update.
2095 (store_register): Update.
2096
20972002-11-07 Joel Brobecker <brobecker@gnat.com>
2098
2099 Preparation work to convert the hppa targets to multiarch partial.
2100
2101 * hppa-tdep.c: Add new functions replacing macro bodies from
2102 config/pa/tm-hppa.h. These function will be used to initialize
2103 the gdbarch structure. Import some comments from tm-hppa.h,
2104 and place them where appropriate, to avoid loosing them when
2105 we cleanup this file.
2106 (hppa_reg_struct_has_addr): New function.
2107 (hppa_inner_than): New function.
2108 (hppa_stack_align): New function.
2109 (hppa_pc_requires_run_before_use): New function.
2110 (hppa_instruction_nullified): New function.
2111 (hppa_register_byte): New function.
2112 (hppa_register_virtual_type): New function.
2113 (hppa_store_struct_return): New function.
2114 (hppa_cannot_store_register): New function.
2115 (hppa_frame_args_address): New function.
2116 (hppa_frame_locals_address): New function.
2117 (hppa_smash_text_address): New function.
2118 (hppa_coerce_float_to_double): New function. Requires the inclusion
2119 of "language.h".
2120
2121 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2122
2123 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2124 gdbarch-eligible macro to a call to the new associated function
2125 created in hppa-tdep.c.
2126 (INNER_THAN): Likewise.
2127 (STACK_ALIGN): Likewise.
2128 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2129 (INSTRUCTION_NULLIFIED): Likewise.
2130 (REGISTER_BYTE): Likewise.
2131 (REGISTER_VIRTUAL_TYPE): Likewise.
2132 (STORE_STRUCT_RETURN): Likewise.
2133 (CANNOT_STORE_REGISTER): Likewise.
2134 (FRAME_ARGS_ADDRESS): Likewise.
2135 (FRAME_LOCALS_ADDRESS): Likewise.
2136 (SMASH_TEXT_ADDRESS): Likewise.
2137 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2138 (ABOUT_TO_RETURN): Delete, as no longer used.
2139
21402002-11-07 Fernando Nasser <fnasser@redhat.com>
2141
2142 * printcmd.c (disassemble_command): Remove obsolete function.
2143 (_initialize_printcmd): Do not create disassemble command here.
2144 * cli/cli-cmds.c (disassemble_command): New function. Implements
2145 disassemble command.
2146 (init_cli_cmds): Create disassemble command here instead.
2147
21482002-11-07 Andrew Cagney <ac131313@redhat.com>
2149
2150 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2151
21522002-11-07 Andrew Cagney <ac131313@redhat.com>
2153
2154 * regcache.h (regcache_cooked_read_using_offset_hack)
2155 (regcache_cooked_write_using_offset_hack): Delete declarations.
2156 (register_changed): Delete declaration.
2157 * regcache.c (regcache_cooked_read_using_offset_hack)
2158 (regcache_cooked_write_using_offset_hack): Delete functions.
2159 (cooked_xfer_using_offset_hack): Delete function.
2160 (register_changed): Delete function.
2161
21622002-11-07 Jim Blandy <jimb@redhat.com>
2163
2164 * macroscope.c: #include "complaints.h".
2165 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2166 but not in the macro table.
2167 * Makefile.in (macroscope.o): Record dependency.
2168
21692002-11-07 Joel Brobecker <brobecker@gnat.com>
2170
2171 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2172
21732002-11-07 Andrew Cagney <ac131313@redhat.com>
2174
2175 * regcache.c (deprecated_registers_fetched): Update.
2176 * regcache.h (deprecated_registers_fetched): Rename
2177 registers_fetched.
2178 * remote-vxsparc.c (vx_read_register): Update.
2179 * remote-vxmips.c (vx_read_register): Update.
2180 * remote-vx68.c (vx_read_register): Update.
2181 * irix5-nat.c (fetch_core_registers): Update.
2182 * mipsm3-nat.c (fetch_inferior_registers): Update.
2183 * sun3-nat.c (fetch_inferior_registers): Update.
2184 * symm-nat.c (fetch_inferior_registers): Update.
2185 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2186 (fetch_core_registers): Update.
2187 (fetch_kcore_registers): Update.
2188 * mips-nat.c (fetch_inferior_registers): Update.
2189 * corelow.c (get_core_registers): Update.
2190 * a68v-nat.c (fetch_inferior_registers): Update.
2191
21922002-11-06 Joel Brobecker <brobecker@gnat.com>
2193
2194 Put in place the framework necessary for multiarching the hppa targets.
2195 * hppa-tdep.c (hppa_gdbarch_init): New function.
2196 (hppa_dump_tdep): New function.
2197 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2198 tdep structure dumper.
2199 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2200 until the multi-arching conversion has partially been completed.
2201
22022002-11-06 Andrew Cagney <ac131313@redhat.com>
2203
2204 * valops.c (value_assign): Merge lval_register case into
2205 lval_reg_frame_relative. Use frame_register and
2206 regcache_cooked_write instead of get_saved_register and
2207 write_register_bytes. After flushing the register cache, try to
2208 re-select the selected frame.
2209
22102002-11-06 Andrew Cagney <ac131313@redhat.com>
2211
2212 * regcache.h (deprecated_register_valid): Rename register_valid.
2213 * regcache.c: Update.
2214 * ia64-aix-nat.c: Update.
2215 * i386gnu-nat.c: Update.
2216 * alpha-nat.c: Update.
2217 * sparc-nat.c: Update.
2218 * lynx-nat.c: Update.
2219 * remote-mips.c: Update.
2220
22212002-11-06 Joel Brobecker <brobecker@gnat.com>
2222
2223 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2224 to end of file, to be more consistent with the pratice followed
2225 by other targets.
2226
22272002-11-06 Andrew Cagney <ac131313@redhat.com>
2228
2229 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2230 (print_float_info): Print registers in float_reggroup.
2231 (print_vector_info): Print registers in vector_reggroup.
2232 (default_print_registers_info): When all, print registers in
2233 all_reggroup. Otherwize, print registers in general_reggroup.
2234 (registers_info): Rewrite. Add support for register groups.
2235 Eliminate a goto.
2236
22372002-11-06 Elena Zannoni <ezannoni@redhat.com>
2238
2239 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2240 ages.
2241 (symtab_symbol_info): Remove eons old ifdeffed out code.
2242 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2243 command.
2244
22452002-11-06 Theodore A. Roth <troth@openavr.org>
2246
2247 * c-exp.y: Add missing semi-colons.
2248 * f-exp.y: Add missing semi-colons.
2249 * m2-exp.y: Add missing semi-colons.
2250 * p-exp.y: Add missing semi-colons.
2251 Add empty action to start rule to avoid a type clash error when
2252 building with bison >= 1.50.
2253
22542002-11-06 Jim Blandy <jimb@redhat.com>
2255
2256 * macrotab.h (struct macro_source_file): Doc fix.
2257
22582002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2259
2260 * varobj.c (child_exists, cplus_number_of_children): Change
2261 STREQ macro references to strcmp.
2262 (cplus_name_of_child): Change code to handle the fact that
2263 fields are not necessarily contiguous with regards to their
2264 access control. This is a fix for PR gdb/792.
2265
22662002-11-05 Andrew Cagney <ac131313@redhat.com>
2267
2268 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2269 * gdbarch.h, gdbarch.c: Regnerate.
2270 * frame.h (frame_register): Declare.
2271 * frame.c (frame_register): New function.
2272 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2273 GET_SAVED_REGISTER, otherwize call
2274 generic_unwind_get_saved_register.
2275 (frame_register_read): Use frame_register instead of
2276 get_saved_register.
2277
22782002-11-05 Elena Zannoni <ezannoni@redhat.com>
2279
2280 From Jim Ingham <jingham@apple.com>:
2281 * event-top.c (gdb_disable_readline): New function.
2282 (_initialize_event_loop): Move comment.
2283
22842002-11-05 Elena Zannoni <ezannoni@redhat.com>
2285
2286 * event-loop.c (start_event_loop): Add comment.
2287 Update copyright.
2288
22892002-11-05 Andrew Cagney <ac131313@redhat.com>
2290
2291 * infcmd.c (default_print_registers_info): Do not call
2292 PRINT_REGISTER_HOOK.
2293
22942002-11-05 Andrew Cagney <ac131313@redhat.com>
2295
2296 * sparc-tdep.c (sparc_print_register_hook): Make static.
2297 (sparc_print_registers_info): New function.
2298 (sparc_do_registers_info): New function.
2299 (sparclet_print_registers_info): New function.
2300 (sparclet_do_registers_info): New function.
2301 (do_sparc_print_registers_info): New function.
2302 (sparc_print_registers): New static function, clone of infcmd.c's
2303 default_print_registers_info.
2304 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2305 (sparclet_do_registers_info): Declare.
2306 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2307 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2308 Re-define.
2309 (sparc_do_registers_info): Declare.
2310 (PRINT_REGISTER_HOOK): Delete macro.
2311 (sparc_print_register_hook): Delete declaration.
2312
23132002-11-05 David Carlton <carlton@math.stanford.edu>
2314
2315 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2316 functions.
2317 (lookup_symbol_aux_local): New function.
2318 (lookup_symbol_aux_symtabs): New function.
2319 (lookup_symbol_aux_psymtabs): New function.
2320
23212002-11-05 David Carlton <carlton@math.stanford.edu>
2322
2323 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2324 previous values of 'objfile' and 'block'.
2325
23262002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2327
2328 * values.c (value_change_enclosing_type): Set
2329 enclosing_type field correctly also for the case where
2330 more memory needs to be allocated.
2331
23322002-11-03 Mark Kettenis <kettenis@gnu.org>
2333
2334 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2335 of puts_filtered.
2336
2337 * i387-tdep.c (i387_print_float_info): Replace calls to
2338 register_read and deprecated_read_register_gen with calls to
2339 frame_register_read, and make the necessary adjustments to the
2340 surrounding code.
2341
23422002-11-02 Andrew Cagney <ac131313@redhat.com>
2343
2344 * gdbarch.sh (register_reggroup_p): Allow default value.
2345 * gdbarch.h, gdbarch.c: Regenerate.
2346
23472002-11-02 Andrew Cagney <ac131313@redhat.com>
2348
2349 * regcache.h: Add coment indicating replacements for deprecated
2350 functions.
2351
23522002-11-02 Andrew Cagney <cagney@redhat.com>
2353
2354 * reggroups.h, reggroups.c: New files.
2355 * regcache.c: Include "reggroups.h".
2356 (enum regcache_dump_what): Add `regcache_dump_groups'.
2357 (regcache_dump): Contract size of the "Type" column. When
2358 specified, dump the register's groups.
2359 (maintenance_print_register_groups): New function.
2360 (_initialize_regcache): Add command `maint print register-groups'.
2361 * Makefile.in (COMMON_OBS): Add reggroups.o
2362 (SFILES): Add reggroups.c.
2363 (reggroups_h): Define.
2364 (regcache.o, gdbarch.o): Update dependencies.
2365 (reggroups.o): Specify dependencies.
2366 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2367 Add opaque declaration for `struct reggroup' in generated .h file.
2368 Include "reggroups.h" in generated .c file.
2369 gdbarch.h, gdbarch.c: Re-generate.
2370
23712002-11-02 Andrew Cagney <cagney@redhat.com>
2372
2373 * regcache.h (deprecated_read_register_gen): Rename
2374 read_register_gen.
2375 (deprecated_write_register_gen): Rename write_register_gen.
2376 * i387-tdep.c: Update.
2377 * x86-64-linux-nat.c: Update
2378 * wince.c: Update.
2379 * thread-db.c: Update.
2380 * win32-nat.c: Update.
2381 * mips-tdep.c: Update.
2382 * d10v-tdep.c: Update.
2383 * cris-tdep.c: Update.
2384 * remote-sim.c: Update.
2385 * remote-rdi.c: Update.
2386 * remote-rdp.c: Update.
2387 * frame.c: Update.
2388 * target.c: Update.
2389 * blockframe.c: Update.
2390 * x86-64-tdep.c: Update.
2391 * xstormy16-tdep.c: Update.
2392 * sh-tdep.c: Update.
2393 * s390-tdep.c: Update.
2394 * rs6000-tdep.c: Update.
2395 * sparc-tdep.c: Update.
2396 * i386-tdep.c: Update.
2397 * dwarf2cfi.c: Update.
2398 * regcache.c: Update.
2399
24002002-11-01 Joel Brobecker <brobecker@gnat.com>
2401
2402 New interix-specific files:
2403 * config/i386/nm-interix.h: New file.
2404 * config/i386/interix.mh: New file.
2405 * config/i386/interix.mt: New file.
2406 * i386-interix-nat.c: New file.
2407 * i386-interix-tdep.c: New file.
2408
24092002-11-01 Andrew Cagney <cagney@redhat.com>
2410
2411 * frame.h (deprecated_generic_get_saved_register): Rename
2412 generic_get_saved_register.
2413 * blockframe.c (deprecated_generic_get_saved_register): Update.
2414 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2415 (xstormy16_frame_saved_register): Update.
2416 * sh-tdep.c (sh_gdbarch_init): Update.
2417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2418 * ia64-tdep.c (ia64_get_saved_register): Update.
2419 * cris-tdep.c (cris_gdbarch_init): Update.
2420 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2421 * arm-tdep.c (arm_gdbarch_init): Update.
2422
24232002-10-31 Daniel Jacobowitz <drow@mvista.com>
2424
2425 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2426
24272002-10-31 Daniel Jacobowitz <drow@mvista.com>
2428
2429 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2430 trampolines in sigaction.
2431
24322002-10-31 Andrew Cagney <cagney@redhat.com>
2433
2434 * h8300-tdep.c: Include "gdb_assert.h".
2435 (h8300_print_register): Add gdbarch, file and frame parameters.
2436 Use frame_read_unsigned_register to read the register's value.
2437 Use fprintf_filtered to display output.
2438 (h8300_print_registers_info): Replace h8300_do_registers_info.
2439 (h8300_gdbarch_init): Set print_registers_info.
2440
24412002-10-31 Andrew Cagney <cagney@redhat.com>
2442
2443 * frame.c (frame_read_unsigned_register): New function.
2444 (frame_read_signed_register): New function.
2445 * frame.h (frame_read_unsigned_register): Declare.
2446 (frame_read_signed_register): Declare.
2447
24482002-10-31 Andrew Cagney <cagney@redhat.com>
2449
2450 * h8500-tdep.c (h8500_print_registers_info): New static function,
2451 clone of infcmd.c's default_print_registers_info.
2452 (h8500_do_registers_info): New funtion.
2453 (h8500_print_register_hook): Rename print_register_hook, make
2454 static.
2455
2456 * config/h8500/tm-h8500.h: Update copyright.
2457 (DEPRECATED_DO_REGISTERS_INFO): Define.
2458 (h8500_do_registers_info: Declare.
2459 (PRINT_REGISTER_HOOK): Delete macro.
2460 (print_register_hook): Delete function.
2461
24622002-10-31 Andrew Cagney <cagney@redhat.com>
2463
2464 * z8k-tdep.c (z8k_print_register_hook): Make static.
2465 (z8k_print_registers_info): New static function, clone of
2466 infcmd.c's default_print_registers_info.
2467 (z8k_do_registers_info): New function. Wrap
2468 z8k_print_registers_info.
2469 * config/z8k/tm-z8k.h: Update copyright.
2470 (PRINT_REGISTER_HOOK): Delete macro.
2471 (z8k_print_register_hook): Delete declaration.
2472 (DEPRECATED_DO_REGISTERS_INFO): Define.
2473 (z8k_do_registers_info): Declare.
2474
24752002-10-30 Joel Brobecker <brobecker@gnat.com>
2476
2477 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2478 as this is already provided by value.h, and was actually causing
2479 a compilation error because of a conflict in parameter type
2480 declaration due to a missing const keyword.
2481 (low_text_segment_addres): Fix a compilation warning.
2482
24832002-10-29 Daniel Jacobowitz <drow@mvista.com>
2484
2485 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2486 registers without a name.
2487 (mips_linux_cannot_store_register): Don't store registers without
2488 a name.
2489
24902002-10-28 David Carlton <carlton@math.stanford.edu>
2491
2492 * symtab.c (find_addr_symbol): Delete. (It was already commented
2493 out.)
2494 * symtab.h: Delete prototype for find_addr_symbol.
2495
24962002-10-26 Andrew Cagney <cagney@redhat.com>
2497
2498 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2499 DO_REGISTERS_INFO.
2500 gdbarch.h, gdbarch.c: Re-generate.
2501 * infcmd.c (default_print_registers_info): Update reference.
2502 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2503 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2504 * sh-tdep.c (sh_gdbarch_init): Ditto.
2505 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2506 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2507
25082002-10-26 Mark Kettenis <kettenis@gnu.org>
2509
2510 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2511 cfi_init_extra_frame_info.
2512 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2513 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2514
2515 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2516 target where necessary. Add more comments and remove the ones
2517 that don't provide any useful information.
2518
2519 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2520 deprecated_read_register_dummy with
2521 frame_unwind_unsigned_register.
2522
2523 * i386-tdep.c (i386_extract_struct_value_address): Use
2524 regcache_raw_read_unsigned instead of
2525 regcache_cooked_read_unsigned since we know that the register
2526 we're reading isn't a pseudo register. Rename variable 'val' into
2527 the more descriptive 'addr'.
2528
2529 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2530 (x86_64_push_return_address): Add comment.
2531 (x86_64_pop_frame): Make static.
2532 (examine_argument): Clarify comment.
2533 (x86_64_skip_prologue): Make prolog_expact variable static.
2534
2535 * dwarf2cfi.c: Fix some formatting problems.
2536 (context_cpy, read_encoded_pointer): Clarify comments.
2537
2538 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2539 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2540 i386 target back into x86_64_gdbarch_init. Add some comments and
2541 remove meaningless ones.
2542
25432002-10-25 Andrew Cagney <cagney@redhat.com>
2544
2545 * complaints.h (struct deprecated_complaint): Rename `struct
2546 complaint'.
2547 * complaints.c (complain): Update.
2548 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2549 incorrect comment indicating that "symfile.h" was being included
2550 for the `struct complaint' definition.
2551 * remote-vx.c: Update.
2552 * objc-lang.c: Update.
2553 * xcoffread.c: Update.
2554 * hpread.c: Update.
2555 * mdebugread.c: Update.
2556 * stabsread.c: Update.
2557 * dwarf2read.c: Update.
2558 * dwarfread.c: Update.
2559 * elfread.c: Update.
2560 * coffread.c: Update.
2561 * stabsread.h: Update.
2562 * dbxread.c: Update.
2563 * buildsym.c: Update.
2564 * gdbtypes.c: Update.
2565 * macrotab.c: Update.
2566
25672002-10-25 Mark Kettenis <kettenis@gnu.org>
2568
2569 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2570 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2571 (x86_64_init_abi): ...new function.
2572
2573 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2574 * i386v-nat.c: Include "i386-tdep.h".
2575
25762002-10-25 Andrew Cagney <cagney@redhat.com>
2577
2578 * gdbtypes.c (address_space_name_to_int): Update.
2579 (address_space_int_to_name): Update.
2580 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2581 multi-arch predicate.
2582 (address_class_name_to_type_flags): Ditto.
2583 * gdbarch.h, gdbarch.c: Re-generate.
2584
2585 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2586
25872002-10-24 Martin M. Hunt <hunt@redhat.com>
2588
2589 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2590
25912002-10-24 Elena Zannoni <ezannoni@redhat.com>
2592
2593 * symtab.h (INIT_SAL): Delete macro.
2594 (init_sal): Export.
2595 * symtab.c (init_sal): New function.
2596
2597 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2598 to init_sal function call.
2599 (find_sal_from_funcs_and_line): Ditto.
2600 (all_sals_for_line): Ditto.
2601 * breakpoint.c (create_internal_breakpoint): Ditto.
2602 (create_fork_vfork_event_catchpoint): Ditto.
2603 (create_exec_event_catchpoint): Ditto.
2604 (parse_breakpoint_sals): Ditto.
2605 (watch_command_1): Ditto.
2606 (handle_gnu_4_16_catch_command): Ditto.
2607 (clear_command): Ditto.
2608 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2609 * infcmd.c (run_stack_dummy): Ditto.
2610 * infrun.c (process_event_stop_test): Ditto.
2611 (check_sigtramp2): Ditto.
2612 (step_over_function): Ditto.
2613 * linespec.c (decode_line_2): Ditto.
2614 (decode_line_1): Ditto.
2615 * source.c (line_info): Ditto.
2616 * symtab.c (find_pc_sect_line): Ditto.
2617
26182002-10-24 Michal Ludvig <mludvig@suse.cz>
2619
2620 * dwarf2cfi.c (struct context)
2621 (struct context_reg): Moved to dwarf2cfi.h
2622 (context_alloc, frame_state_alloc, context_cpy):
2623 Made extern instead of static, removed prototypes.
2624 * dwarf2cfi.h (struct context)
2625 (struct context_reg): New, moved from dwarf2cfi.c
2626 (context_alloc, frame_state_alloc, context_cpy):
2627 New prototypes.
2628 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2629 Changed from static to extern.
2630 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2631 (LINUX_SIGCONTEXT_FP_OFFSET)
2632 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2633 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2634 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2635 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2636 set_gdbarch_*() calls now use x86-64 specific functions
2637 instead of DWARF2 CFI ones.
2638 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2639 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2640 (x86_64_init_extra_frame_info): New prototypes.
2641
26422002-10-23 David Carlton <carlton@math.stanford.edu>
2643
2644 * linespec.c: #include "parser-defs.h".
2645 Delete prototype for find_template_name_end.
2646 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2647
26482002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2649
2650 * NEWS: add recent mi fixes.
2651 * varobj.c (struct varobj): Add new "updated" flag.
2652 (new_variable): Default "updated" flag to 0.
2653 (varobj_set_value): Set "updated" flag to 1 if value
2654 changes.
2655 (varobj_update): Check varobj "updated" flag before
2656 comparing old and refreshed values. Fix for
2657 PR gdb/702.
2658
26592002-10-23 David Carlton <carlton@math.stanford.edu>
2660
2661 * parse.c (parse_exp_1): Use BLOCK_START.
2662 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2663 SYMBOL_BLOCK_VALUE.
2664 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2665
26662002-10-23 David Carlton <carlton@math.stanford.edu>
2667
2668 * symtab.c: Delete cplusplus_hint.
2669 Delete prototype for find_template_name_end.
2670
26712002-10-23 Elena Zannoni <ezannoni@redhat.com>
2672
2673 * symtab.h: Update comment.
2674
26752002-10-23 Michael Snyder <msnyder@redhat.com>
2676
2677 * printcmd.c (address_info): Restore quotes in output.
2678 * valops.c (value_of_local): Restore quotes in error message.
2679
26802002-10-23 Elena Zannoni <ezannoni@redhat.com>
2681
2682 * symtab.c (symbol_demangled_name): New function.
2683 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2684 turning most of it into a function.
2685 (symbol_demangled_name): Export.
2686
26872002-10-23 Michael Snyder <msnyder@redhat.com>
2688
2689 * valops.c (value_of_local): Restore quotes in error message.
2690
26912002-10-23 Elena Zannoni <ezannoni@redhat.com>
2692
2693 * symtab.c (symbol_init_language_specific): New function.
2694 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2695 turning most of it into a function.
2696 (symbol_init_language_specific): Export.
2697
26982002-10-23 David Carlton <carlton@math.stanford.edu>
2699
2700 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2701 (dwarf_attr_name): Ditto.
2702 (dwarf_type_encoding_name): Ditto.
2703 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2704 (process_die): Handle DW_TAG_namespace,
2705 DW_TAG_imported_declaration, DW_TAG_imported_module.
2706 (read_namespace): New function.
2707
27082002-10-22 Joel Brobecker <brobecker@gnat.com>
2709
2710 * configure.in: Define NEW_PROC_API on Interix too.
2711 * configure: Regenerate.
2712
27132002-10-21 Joel Brobecker <brobecker@gnat.com>
2714
2715 * configure: Regenerate using the proper version of autoconf.
2716
27172002-10-21 Elena Zannoni <ezannoni@redhat.com>
2718
2719 * findvar.c (read_var_value): Temporarily disable TLS code, until
2720 complete TLS support is added.
2721
27222002-10-21 Jim Blandy <jimb@redhat.com>
2723 Elena Zannoni <ezannoni@redhat.com>
2724
2725 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2726 for thread local storage locations.
2727 (struct symbol): Add objfile field.
2728 (SYMBOL_OBJFILE): Define.
2729 * dwarf2read.c (is_thread_local): New static variable.
2730 (new_symbol): If variable is in thread local fill in address class
2731 and objfile appropriately.
2732 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2733 stack operation.
2734 * printcmd.c (address_info): Print the information for thread
2735 local storage variable.
2736 * findvar.c (read_var_value): In case of thread local variable,
2737 defer to the target vector code to compute address.
2738
27392002-10-21 Elena Zannoni <ezannoni@redhat.com>
2740
2741 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2742 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2743
27442002-10-21 Elena Zannoni <ezannoni@redhat.com>
2745
2746 * symtab.h (address_class): Rename
2747 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2748 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2749 * printcmd.c (address_info): Ditto.
2750 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2751
27522002-10-20 Mark Kettenis <kettenis@gnu.org>
2753
2754 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2755 DBREG_DRX macro to acces debug registers.
2756
2757 * Makefile.in (i386obsd-tdep.o): New target.
2758
2759 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2760 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2761
2762 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2763 * config/i386/obsd.mt: New file.
2764 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2765 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2766 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2767 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2768 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2769 * i386obsd-tdep.c: New file.
2770
27712002-10-19 Adam Fedor <fedor@gnu.org>
2772
2773 * objc-exp.y (name_not_typename): Fix invalid comment.
2774
27752002-10-20 Mark Kettenis <kettenis@gnu.org>
2776
2777 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2778 to allocate partial syms and macro byte caches.
2779
27802002-10-18 David Carlton <carlton@math.stanford.edu>
2781
2782 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2783
27842002-10-18 Adam Fedor <fedor@gnu.org>
2785
2786 * stabsread.c (find_name_end): New function.
2787 (define_symbol): Use it.
2788
27892002-10-18 Daniel Jacobowitz <drow@mvista.com>
2790
2791 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2792 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2793 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2794 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2795
27962002-10-17 David Carlton <carlton@math.stanford.edu>
2797
2798 * symfile.h: Add opaque declaration for struct obstack.
2799 Declare obsavestring to take a const char *.
2800 * symfile.c (obsavestring): Make first argument a const char *.
2801
28022002-10-16 Adam Fedor <fedor@gnu.org>
2803
2804 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2805 names when matching breakpoints in current file.
2806
28072002-10-16 Kevin Buettner <kevinb@redhat.com>
2808
2809 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2810 (read_tag_pointer_type): Add address class support.
2811 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2812 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2813 New methods.
2814 * gdbarch.h, gdbarch.c: Regenerate.
2815 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2816 (make_type_with_address_space, recursive_type_dump): Add address
2817 class support.
2818 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2819 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2820 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2821
28222002-10-16 Klee Dienes <kdienes@apple.com>
2823
2824 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2825 to get the last character of a char[] buffer, not
2826 name[sizeof(vptr_name)-1].
2827
28282002-10-14 Adam Fedor <fedor@gnu.org>
2829
2830 * symtab.h: New objc_specific struct.
2831 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2832 (SYMBOL_DEMANGLED_NAME): Likewise.
2833
28342002-10-14 Adam Fedor <fedor@gnu.org>
2835
2836 * symfile.c (init_filename_language_table): Add ObjC file extension.
2837
28382002-10-14 Adam Fedor <fedor@gnu.org>
2839
2840 * utils.c (puts_filtered_tabular): New function.
2841 (fprintf_symbol_filtered): Get ObjC demangled name.
2842 * defs.h (puts_filtered_tabular): Declared.
2843
28442002-10-14 Kevin Buettner <kevinb@redhat.com>
2845
2846 * c-lang.h (c_type_print_varspec_prefix): Delete.
2847 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2848 ``need_post_space'' parameter. Adjust all callers.
2849
28502002-10-14 Daniel Jacobowitz <drow@mvista.com>
2851
2852 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2853 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2854 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2855 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2856
28572002-10-13 Adam Fedor <fedor@gnu.org>
2858
2859 * source.c (print_source_lines): Update comments.
2860
28612002-10-13 Adam Fedor <fedor@gnu.org>
2862
2863 * valops.c (value_of_local): New function.
2864 (value_of_this): Use it.
2865 * value.h (value_of_local): Declared.
2866
28672002-10-13 Adam Fedor <fedor@gnu.org>
2868
2869 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2870 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2871
28722002-10-12 Adam Fedor <fedor@gnu.org>
2873
2874 * language.c (binop_result_type): Add language_objc to case.
2875 (integral_type): Likewise.
2876 (character_type): Likewise.
2877 (string_type): Likewise.
2878 (boolean_type): Likewise.
2879 (structured_type): Likewise.
2880 (binop_type_check): Likewise.
2881
28822002-10-11 Adam Fedor <fedor@gnu.org>
2883
2884 * printcmd.c (address_info): Print 'self' for ObjC.
2885
28862002-10-11 Adam Fedor <fedor@gnu.org>
2887
2888 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2889 OP_SELF.
2890
28912002-10-11 Adam Fedor <fedor@gnu.org>
2892
2893 * language.h (CAST_IS_CONVERSION): Add language_objc.
2894
28952002-10-11 Adam Fedor <fedor@gnu.org>
2896
2897 * defs.h (enum language): Add language_objc.
2898
28992002-10-11 Klee Dienes <kdienes@apple.com>
2900
2901 * corefile.c (read_memory_typed_address): New function.
2902 * gdbcore.h (read_memory_typed_address): Add prototype.
2903 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2904 to read a value destined for a CORE_ADDR, not read_memory_integer.
2905 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2906 (f77_get_dynamic_lowerbound): Ditto.
2907
29082002-10-11 Martin M. Hunt <hunt@redhat.com>
2909
2910 * utils.c (string_to_core_addr): After turning string into
2911 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2912 which will do necessary sign-extension, etc.
2913
29142002-10-11 Daniel Jacobowitz <drow@mvista.com>
2915
2916 * c-exp.y (THIS): Delete token and grammar rule.
2917 (yylex): Don't return THIS.
2918 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2919 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2920 * demangle.c (cplus_markers): Update comment. Put '$'
2921 first. Remove CPLUS_MARKER.
2922 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2923 * jv-exp.y (THIS): Delete token and grammar rule.
2924 (yylex): Don't return THIS.
2925 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2926 * objc-exp.y (THIS): Delete token and grammar rule.
2927 (yylex): Don't return THIS.
2928 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2929 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2930 (read_member_functions): Likewise for opname.
2931 (read_tilde_fields): Use is_cplus_marker.
2932
2933 * defs.h (CPLUS_MARKER): Don't define.
2934 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2935 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2936 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2937 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2938 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2939
2940 * config/i386/tm-i386v4.h: Delete file.
2941 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2942 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2943 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2944 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2945 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2946 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2947 * config/i386/i386v4.mt (TM_FILE): Likewise.
2948 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2949
29502002-10-10 Marko Mlinar <markom@opencores.org>
2951
2952 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2953 accidentially not commited 2002-10-09
2954 * gdbarch.h, gdbarch.c: Re-generate.
2955
29562002-10-09 Marko Mlinar <markom@opencores.org>
2957
2958 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2959 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2960 * gdbarch.h, gdbarch.c: Re-generate.
2961
29622002-10-08 Petr Sorfa <petrs@caldera.com>
2963
2964 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2965
2966 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2967 so we can work on more than one compilation unit at a time. This
2968 helps prepare GDB to handle inter-CU die references.
2969 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2970 the code to be defined before struct comp_unit_head.
2971 (comp_unit_head): Added new members - offset, cu_head,
2972 begin_die, next and dwarf2_abbrevs.
2973 (dwarf2_abbrevs): Removed single static var; now member of
2974 struct comp_unit_head.
2975 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2976 members.
2977 (psymtab_to_symtab_1): Changed to work with the new
2978 struct comp_unit_head.
2979 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2980 constructs the dwarf2_abbrevs[] inside the cu_header.
2981 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2982 dwarf2_abbrev table to clean up.
2983 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2984 handling of dwarf2_abbrevs inside the cu_header.
2985 (read_partial_die): Now supports the call to the new
2986 dwarf2_lookup_abbrev.
2987 (read_full_die): Now supports the call to the new
2988 dwarf2_lookup_abbrev.
2989
29902002-10-06 Christopher Faylor <cgf@redhat.com>
2991
2992 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2993 insure that shell variables, such as "transformed_name" are propagated
2994 to later shell statements in rule.
2995
29962002-10-06 Mark Kettenis <kettenis@gnu.org>
2997
2998 * config/i386/nm-i386sco.h: Add protection against
2999 multiple-inclusion. Include "i386/nm-i386v.h".
3000 (REGISTER_U_ADDR): Remove define.
3001 (i386_register_u_addr): Remove prototype.
3002
30032002-10-04 Michael Snyder <msnyder@redhat.com>
3004
3005 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3006 before treating it as a single-step event.
3007
30082002-10-03 Adam Fedor <fedor@gnu.org>
3009
3010 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3011 (objc_demangle): Remove assignment in if statements, Replace
3012 free with xfree.
3013 (add_msglist): Likewise.
3014 (end_msglist): Likewise.
3015 (complare_selectors): Likewise.
3016 (selectors_info): Likewise.
3017 (compare_classes): Likewise.
3018 (classes_info): Likewise.
3019 (print_object_command): Likewise.
3020 (find_objc_msgcall_submethod): Replace PTR with void *.
3021 * objc-lang.h: Remove check for __STDC__.
3022
30232002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3024
3025 * ui-out.h (ui_out_field_fmt_int): New prototype.
3026 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3027 of field width and alignment.
3028 * stack.c (print_frame_info_base): When printing frame level, use
3029 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3030 PR gdb/192
3031
30322002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3033
3034 * MAINTAINERS: Add self to Write After Approval list.
3035
30362002-10-02 Elena Zannoni <ezannoni@redhat.com>
3037
3038 * infcmd.c (interrupt_target_command_wrapper): Delete.
3039 (interrupt_target_command): Make non static.
3040 (nofp_registers_info): Make static.
3041 * stack.c (return_command_wrapper): Delete.
3042 (return_command): Make non static.
3043
30442002-10-02 Elena Zannoni <ezannoni@redhat.com>
3045
3046 * event-top.c (gdb_setup_readline): New function. Code moved from
3047 _initialize_event_loop().
3048 (_initialize_event_loop): Call gdb_setup_readline().
3049
30502002-10-02 Andrew Cagney <ac131313@redhat.com>
3051
3052 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3053 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3054 * gdbarch.h, gdbarch.c: Re-generate.
3055
30562002-10-02 Daniel Jacobowitz <drow@mvista.com>
3057
3058 Fix PR gdb/778
3059 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3060 before recursing.
3061 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3062 of fill_in_vptr_fieldno.
3063
30642002-10-02 Elena Zannoni <ezannoni@redhat.com>
3065
3066 * inferior.h (registers_info, stepi_command, nexti_command,
3067 continue_command, interrupt_target_command): Export from infcmd.c.
3068 * frame.h (args_info, selected_frame_level_changed_hook,
3069 return_command): Export from stack.c.
3070 * v850ice.c (stepi_command, nexti_command, continue_command): use
3071 prototypes from inferior.h.
3072 * tracepoint.c (registers_info, args_info, locals_info): Use
3073 prototypes from frame.h and inferior.h.
3074 * Makefile.in (mi-main.o): Add dependency on frame.h.
3075
30762002-10-02 Andrew Cagney <ac131313@redhat.com>
3077
3078 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3079 value in register 3 adjusted by ppc_gp0_regnum.
3080
3081 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3082
30832002-10-02 Marko Mlinar <markom@opencores.org>
3084
3085 * MAINTAINERS: Add myself to the Write After Approval list.
3086
30872002-10-01 Alexandre Oliva <aoliva@redhat.com>
3088
3089 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3090 of the section for the N64 ABI, fixed.
3091
3092 * config/mips/tm-irix6.h: Include solib.h.
3093
30942002-10-01 Elena Zannoni <ezannoni@redhat.com>
3095
3096 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3097 GNU operators.
3098
30992002-10-01 Andrew Cagney <ac131313@redhat.com>
3100
3101 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3102 and that "mi0" syntax has been removed.
3103
31042002-09-30 David Carlton <carlton@math.stanford.edu>
3105
3106 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3107 * ppc-sysv-tdep.c: #include "gdb_string.h".
3108 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3109 pacify GCC.
3110
31112002-10-01 Andrew Cagney <ac131313@redhat.com>
3112
3113 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3114 "vrsave"'s register number.
3115
31162002-09-30 Andrew Cagney <ac131313@redhat.com>
3117
3118 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3119 use frame_unwind_signed_register to obtain the PC.
3120 (mips_frame_chain): Handle a generic dummy frame.
3121 (mips_init_extra_frame_info): When a generic dummy frame, don't
3122 re-compute the frame base.
3123 (mips_pop_frame): Handle generic dummy frames.
3124 (mips_gdbarch_init): When generic dummy frames, set
3125 use_generic_dummy_frames, push_dummy_frame to
3126 generic_push_dummy_frame, pc_in_call_dummy to
3127 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3128 generic_save_dummy_frame_tos.
3129
31302002-09-30 Andrew Cagney <ac131313@redhat.com>
3131
3132 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3133 against TOP when TOP was explictly set.
3134 (generic_push_dummy_frame): Set TOP to zero.
3135
31362002-09-30 Elena Zannoni <ezannoni@redhat.com>
3137
3138 * event-loop.c (start_event_loop): Rename variable 'result' to
3139 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3140
31412002-09-30 Keith Seitz <keiths@redhat.com>
3142
3143 * gdb-events.sh (selected_thread_changed): New event.
3144 * gdb-events.c: Regenerated.
3145 * gdb-events.h: Regenerated.
3146
31472002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3148
3149 * MAINTAINERS: Add self to Write After Approval list.
3150
31512002-09-30 Fernando Nasser <fnasser@redhat.com>
3152
3153 * disasm.c: New file.
3154 * disasm.h: New file.
3155 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3156 (compare_lines): Ditto.
3157 (dump_insns): Ditto.
3158 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3159 argument.
3160 (do_assembly_only): Ditto.
3161 (do_disassembly): Renamed to gdb_disassembly and moved to
3162 disasm.c. Sdded uiout argument.
3163 * Makefile.in: Add new files. Reorder SFILES list. Update
3164 dependencies. Include libgdb.a later in the insight executable.
3165
31662002-09-29 Andrew Cagney <ac131313@redhat.com>
3167
3168 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3169 bfd/elf64-alpha-fbsd.c.
3170
31712002-09-29 Andrew Cagney <ac131313@redhat.com>
3172
3173 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3174 i386gnu-tdep.c.
3175
31762002-09-29 Andrew Cagney <ac131313@redhat.com>
3177
3178 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3179 __FUNCTION__.
3180 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3181 function name.
3182 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3183 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3184 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3185 (S_msg_sig_post_reply): Ditto.
3186
31872002-09-28 Corinna Vinschen <vinschen@redhat.com>
3188
3189 * sh-tdep.c (sh_use_struct_convention): Use definition according
3190 to ABI.
3191 (sh_push_arguments): Store in register with correct endianess.
3192 (sh_default_store_return_value): Ditto.
3193 (sh_gdbarch_init): Set sizeof long double to 8.
3194
31952002-09-27 Mark Kettenis <kettenis@gnu.org>
3196
3197 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3198 Fix some whitespace problems.
3199
32002002-09-27 David Carlton <carlton@math.stanford.edu>
3201
3202 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3203 (mcore-tdep.o): Ditto.
3204 (ns32k-tdep.o): Ditto.
3205 (ns32knbsd-tdep.o): Ditto.
3206 (sh3-rom.o): Ditto.
3207 (vax-tdep.o): Ditto.
3208 * cris-tdep.c: #include "gdb_string.h"
3209 * mcore-tdep.c: Ditto.
3210 * ns32k-tdep.c: Ditto.
3211 * ns32knbsd-tdep.c: Ditto.
3212 * sh3-rom.c: Ditto.
3213 * vax-tdep.c: Ditto.
3214
32152002-09-27 David Carlton <carlton@math.stanford.edu>
3216
3217 * config/djgpp/fnchange.lst: Add entries for
3218 gdb/testsuite/gdb.c++/m-static files.
3219
32202002-09-27 Jim Wilson <wilson@redhat.com>
3221
3222 * MAINTAINERS: Add myself to the Write After Approval list.
3223
32242002-09-26 Martin M. Hunt <hunt@redhat.com>
3225
3226 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3227
3228
32292002-09-26 Andrew Cagney <ac131313@redhat.com>
3230
3231 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3232 frame.
3233
32342002-09-26 Andrew Cagney <ac131313@redhat.com>
3235
3236 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3237 (rs6000_struct_return_address): Delete variable.
3238 (rs6000_store_struct_return): Update.
3239 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3240 deprecated_extract_struct_value_address.
3241 (rs6000_frame_align): New function.
3242 (rs6000_gdbarch_init): Set frame_align.
3243
32442002-09-26 Andrew Cagney <ac131313@redhat.com>
3245
3246 From Grace Sainsbury <graces@redhat.com>:
3247 * Makefile.in (gdbtk-main.o): New target.
3248 (gdb.o): New target.
3249 (main_h): Define.
3250 (main.o): Update dependencies.
3251 (gdb$(EXEEXT)): Add gdb.o.
3252 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3253 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3254 (SUBDIR_GDBTK_CLEAN): Set.
3255 (install-gdbtk): Install the insight binary.
3256 (uninstall-gdbtk): New target.
3257 (all-gdbtk, clean-gdbtk): New rule.
3258 * top.c (use_windows): Default to zero.
3259 * main.c: Include "main.h".
3260 (main): Delete.
3261 (struct captured_main_args): Delete.
3262 (gdb_main): New function.
3263 * main.h: New file.
3264 * gdb.c: New File.
3265
32662002-09-25 Andrew Cagney <cagney@redhat.com>
3267
3268 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3269 (frame_map_regnum_to_name): New function.
3270 (frame_map_name_to_regnum): New function.
3271 * frame.h (frame_map_name_to_regnum): Declare.
3272 (frame_map_regnum_to_name): Declare.
3273 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3274 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3275 * parse.c: Do not include "builtin-regs.h".
3276 (target_map_name_to_register): Delete function.
3277 (write_dollar_variable): Use frame_map_name_to_regnum.
3278 * parser-defs.h (target_map_name_to_register): Delete declaration.
3279 * expprint.c: Include "frame.h".
3280 (print_subexp): Use frame_map_regnum_to_name.
3281 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3282 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3283
32842002-09-25 Andrew Cagney <ac131313@redhat.com>
3285
3286 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3287 wasn't saved, and the next innermost frame is a dummy, return the
3288 dummy frame's link register.
3289
32902002-09-24 Jim Blandy <jimb@redhat.com>
3291
3292 Fix from Paul Breed:
3293 * main.c (captured_main): Add a `break' after the case for 'b'.
3294
32952002-09-24 Keith Seitz <keiths@redhat.com>
3296
3297 * varobj.c (c_type_of_child): Use get_target_type instead
3298 of TYPE_TARGET_TYPE.
3299
33002002-09-22 Fernando Nasser <fnasser@redhat.com>
3301
3302 * source.c (get_current_or_default_source_symtab_and_line): Remove
3303 function.
3304 (set_default_source_symtab_and_line): New function. Attempts to
3305 determine a source file to list lines from if one is not currently
3306 defined.
3307 (get_current_source_symtab_and_line): Initialize sal.pc and
3308 sal.end fields.
3309 (set_current_source_symtab_and_line): Mark argument as const.
3310 * source.h: Update declarations and comments.
3311 * linespec.c (decode_line_1): Replace call to removed routine above.
3312 * stack.c (print_frame_info_base): Ditto.
3313 * cli/cli-cmds.c (edit_command): Ditto.
3314 (list_command): Ditto.
3315
33162002-09-22 Fernando Nasser <fnasser@redhat.com>
3317
3318 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3319 sal.pc and sal.end fields.
3320 (get_current_or_default_source_symtab_and_line): Ditto.
3321 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3322 so we do not cause a new source symtab to be searched for (reverting an
3323 unintentional change from the 2002-09-20 patch).
3324 * scm-lang.c (scm_unpac): Ditto.
3325
33262002-09-21 Andrew Cagney <cagney@redhat.com>
3327
3328 * complaints.c (symfile_explanations): Remove new-line from
3329 ``isolated_message''.
3330 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3331 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3332
33332002-09-20 Nick Clifton <nickc@redhat.com>
3334
3335 * NEWS: Announce that V850EA ISA is no longer supported.
3336 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3337
33382002-09-20 David Carlton <carlton@math.stanford.edu>
3339
3340 * Makefile.in (c-lang.o): Correct dependencies.
3341 (utils.o): Gather dependencies.
3342 (charset.o): Move.
3343 * c-lang.c: #include "gdb_string.h"
3344
33452002-09-20 Fernando Nasser <fnasser@redhat.com>
3346
3347 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3348 * cli/cli-cmds.c (list_command): New function. Implements the new
3349 cli edit command.
3350 (_init_cli_cmds): Add new command definition.
3351 * gdb.1: Document edit command.
3352 * doc/gdb.texinfo: Document edit command.
3353
33542002-09-20 Fernando Nasser <fnasser@redhat.com>
3355
3356 * source.c: Make global variables current_source_symtab and
3357 current_source_line static.
3358 (list_command): Moved to cli/cli-cmds.c.
3359 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3360 (get_first_line_listed): New accessor function.
3361 (get_lines_to_list): New accessor function.
3362 (get_current_source_symtab_and_line): New function. Retrieves the
3363 position in the source code that we consider current.
3364 (get_current_or_default_source_symtab_and_line): New function.
3365 Like the above but attempts to determine a default position if one
3366 is not currently defined.
3367 (set_current_source_symtab_and_line): New function. Sets the source
3368 code position considered current and returns the previously set one.
3369 (clear_current_source_symtab_and_line): Reset stored information about
3370 a current source line.
3371 (_initialize_source): Remove registration for the "list" command and
3372 its alias.
3373 * source.h: Add declarations for the new functions above.
3374 * symtab.h: Remove declarations for the global variables mentioned
3375 above.
3376 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3377 obtain current source line.
3378 * linespec.c (decode_line_1): Ditto.
3379 * macroscope.c (default_macro_scope): Ditto.
3380 * scm-lang.c (scm_unpac): Ditto.
3381 * stack.c (print_frame_info_base): Ditto.
3382 * symfile.c (clear_symtab_users): Ditto.
3383 * symtab.c (decode_line_spec): Ditto.
3384 * cli/cli-cmds.c (list_command): Moved here from source.c.
3385 (ambiguous_line_spec): Moved here from source.c.
3386 (_init_cli_cmds): Add definition for "list" and its alias.
3387 * Makefile.in: Update dependencies.
3388
33892002-09-20 Corinna Vinschen <vinschen@redhat.com>
3390
3391 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3392 with what gcc thinks is correct.
3393
33942002-09-20 Corinna Vinschen <vinschen@redhat.com>
3395
3396 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3397 multiple register push instruction.
3398
33992002-09-19 Jim Blandy <jimb@redhat.com>
3400
3401 Add support for distinct host and target character sets.
3402 * charset.c, charset.h: New files.
3403 * c-exp.y: #include "charset.h".
3404 (yylex): Convert character and string literals to the target
3405 character set, before returning them as the semantic value of the
3406 token.
3407 * c-lang.c: #include "charset.h".
3408 (c_emit_char): Use charset-specific methods to recognize
3409 characters with backslash escape forms, to decide which characters
3410 to print literally and which to print using numeric escape
3411 sequences, and to convert target characters to host characters
3412 before printing.
3413 * utils.c: #include "charset.h".
3414 (no_control_char_error): New function.
3415 (parse_escape): Use charset-specific methods to recognize
3416 backslash escapes, parse `control character' notation, and convert
3417 characters from the host character set to the target character set.
3418 * configure.in: Set the default host character set.
3419 Check where to find iconv, and what its argument types might be.
3420 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3421 * Makefile.in (SFILES): List charset.c.
3422 (COMMON_OBS): List charset.o.
3423 (charset.o): New rule.
3424 (charset_h): New header dependency variable.
3425 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3426 (LIBICONV): New variable, set by configure.
3427 (CLIBS): Include $(LIBICONV) here.
3428 * aclocal.m4, config.in, configure: Regenerated.
3429
34302002-09-19 Joel Brobecker <brobecker@gnat.com>
3431
3432 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3433 bison 1.35 warning.
3434
34352002-09-19 Richard Earnshaw <rearnsha@arm.com>
3436
3437 * gdb_mbuild.sh: New file.
3438
34392002-09-19 Andrew Cagney <ac131313@redhat.com>
3440
3441 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3442
34432002-09-18 Andrew Cagney <ac131313@redhat.com>
3444
3445 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3446 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3447 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3448 valops.c, value.h: Revert previous change.
3449
34502002-09-18 Michael Snyder <msnyder@redhat.com>
3451
3452 Preliminary support for Objective-C:
3453 * defs.h (language_objc): New enum value.
3454 (puts_filtered_tabular): Declaration only, exported from utils.c.
3455 (skip_quoted): Delete, declared in completer.h.
3456 * c-exp.y: Include completer.h.
3457 * p-exp.y: Ditto.
3458 * jv-exp.y: Ditto.
3459 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3460 New operator enum values.
3461 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3462 * language.c (binop_result_type): Handle language_objc case.
3463 (integral_type, character_type, string_type, boolean_type,
3464 structured_type, binop_type_check): Ditto.
3465 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3466 (struct objc_specific): Add to general_symbol_info.
3467 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3468 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3469 * parser-defs.h (struct objc_class_str): New struct type.
3470 (start_msglist, end_msglist, add_msglist): Declaration only,
3471 exported from objc-lang.c.
3472 * value.h (value_of_local, value_nsstring,
3473 call_function_by_hand_expecting_type): Exported from valops.c.
3474 * valops.c (find_function_addr): Export.
3475 (call_function_by_hand_expecting_type): New function.
3476 (value_of_local): New function.
3477 * symfile.c (init_filename_language_table): Add ".m" extension
3478 for Objective-C.
3479 * utils.c (puts_filtered_tabular): New function.
3480 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3481 (set/show demangle): Extend help-string to refer to ObjC.
3482 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3483 * stabsread.c (symbol_reference_defined): Objective-C symbols
3484 may contain colons: make allowances when scanning stabs strings
3485 for colons.
3486 (objc_find_colon): New function.
3487 * printcmd.c (address_info): If language == objc then print
3488 "self" instead of "this".
3489 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3490 OP_NSSTRING, and OP_SELF.
3491 (prefixify_subexp): Ditto.
3492 * source.c (print_source_lines): Mention objc in comment.
3493 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3494 method names.
3495
34962002-09-18 Andrew Cagney <ac131313@redhat.com>
3497
3498 * complaints.h: Update copyright.
3499 (struct complaints): Declare.
3500 (struct complaint): Make `message' constant.
3501 (internal_complaint): Declare.
3502 (complaint): Declare.
3503 (complaint_root): Delete declaration.
3504 (symfile_complaints): Delete declaration.
3505 (struct complaints): Add opaque declaration.
3506 (clear_complaints): Add a complaints parameter.
3507 * complaints.c: Update copyright.
3508 (enum complaint_series): Define.
3509 (complaint_root): Delete.
3510 (struct complaints): Define.
3511 (complaint_sentinel, symfile_complaint_book): New variables.
3512 (symfile_explanations, symfile_complaints): New variables.
3513 New variables.
3514 (get_complaints): New function.
3515 (vcomplaint): New function.
3516 (complaint): New function.
3517 (internal_complaint): New function.
3518 (complain): Call vcomplain with symfile_complaint.
3519 (clear_complaints): Rewrite.
3520 (_initialize_complaints): Use add_setshow_command.
3521 * Makefile.in (complaints.o): Update dependencies.
3522 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3523 to call to clear_complaints.
3524 (new_symfile_objfile, reread_symbols): Ditto.
3525 (oldsyms_complaint): Delete.
3526 (empty_symtab_complaint, unknown_option_complaint): Delete.
3527 (free_named_symtabs): Use complaint instead of complain.
3528
35292002-09-18 Michael Snyder <msnyder@redhat.com>
3530
3531 Contributed by Apple Computer, Inc. Merged with current sources
3532 by Adam Fedor <fedor@doc.com> [cagney].
3533
3534 * objc-lang.c: First clean-up round: comments, indentation.
3535 * objc-lang.h: Ditto.
3536 * objc-lang.y: Ditto.
3537
35382002-09-18 Andrew Cagney <ac131313@redhat.com>
3539
3540 * maint.c (maintenance_internal_error): Print the parameter as the
3541 error message.
3542 (maintenance_internal_warning): New function.
3543 (_initialize_maint_cmds): Add command `maint internal-warning'.
3544
3545 * defs.h (internal_warning, internal_vwarning): Declare.
3546 * utils.c (struct internal_problem): Define.
3547 (internal_vproblem): New function.
3548 (internal_warning): New function.
3549 (internal_vwarning): New function.
3550 (internal_warning_problem, internal_error_problem): New variables.
3551 (internal_verror): Just call internal_vproblem.
3552
35532002-09-18 Michael Snyder <msnyder@redhat.com>
3554
3555 * objc-lang.c: New file, support for Objective-C.
3556 Preliminary check-in, not yet integrated into gdb.
3557 * objc-lang.h: New file.
3558 * objc-exp.y: New file.
3559
35602002-09-18 Andrew Cagney <ac131313@redhat.com>
3561
3562 * infrun.c (signal_stop_update): Convert definition to ISO C.
3563 (signal_print_update): Ditto.
3564 (signal_pass_update): Ditto.
3565 * inflow.c (terminal_save_ours): Ditto.
3566
3567 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3568 comments.
3569
3570 * config/djgpp/fnchange.lst: Handle name clashes between
3571 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3572 bfd/coff-tic80.c.
3573
3574 * i386-linux-tdep.h: Fix tipo.
3575
35762002-09-18 Adam Fedor <fedor@gnu.org>
3577
3578 * MAINTAINERS: Add myself to the Write After Approval list.
3579
35802002-09-18 Jim Blandy <jimb@redhat.com>
3581
3582 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3583 texthigh and textlow to reader-specific structs caused
3584 objfile_relocate to miss them. This is fixable, but the work that
3585 the change was supposed to prepare GDB for never got done anyway.
3586
35872002-09-18 David Carlton <carlton@math.stanford.edu>
3588
3589 * MAINTAINERS: Alphabetize Write After Approval list.
3590
35912002-09-18 Daniel Jacobowitz <drow@mvista.com>
3592
3593 Fix PR gdb/709
3594 * values.c (value_static_field): Call read_var_value.
3595
35962002-09-18 Andrew Cagney <ac131313@redhat.com>
3597
3598 * valops.c (hand_function_call): Align the initial stack pointer
3599 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3600 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3601 return value.
3602 * mips-tdep.c (mips_frame_align): New function.
3603 (mips_gdbarch_init): Set frame_align.
3604 * gdbarch.sh (FRAME_ALIGN): New method.
3605 * gdbarch.h, gdbarch.c: Re-generate.
3606
36072002-09-18 Michal Ludvig <mludvig@suse.cz>
3608
3609 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3610 registers.
3611
36122002-09-17 Andrew Cagney <ac131313@redhat.com>
3613
3614 * NEWS: Mention that MIPS $fp behavior changed.
3615 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3616 reference to FP_REGNUM.
3617 (mipsnbsd_cannot_store_register): Ditto.
3618 * mips-linux-nat.c: Update copyright.
3619 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3620 (mips_linux_cannot_store_register): Ditto.
3621 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3622 * config/mips/tm-mips.h: Update copyright.
3623 (FP_REGNUM): Delete macro.
3624 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3625 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3626 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3627 (mips_r3041_reg_names, mips_r3051_reg_names)
3628 (mips_r3081_reg_names): Replace "fp" with "".
3629 Fix PR gdb/480.
3630
36312002-09-17 Theodore A. Roth <troth@verinet.com>
3632
3633 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3634 generic_read_register_dummy() (PR gdb/703).
3635 (avr_push_return_address): #if 0 out unused vars.
3636 (avr_gdbarch_init): Enable use of avr_push_return_address().
3637
36382002-09-17 Michael Snyder <msnyder@redhat.com>
3639
3640 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3641 RTE will take care of it.
3642
36432002-09-17 Andrew Cagney <ac131313@redhat.com>
3644
3645 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3646 invalid, return SP_REGNUM.
3647
36482002-09-17 Michael Snyder <msnyder@redhat.com>
3649
3650 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3651 point registers without sign extension.
3652
36532002-09-17 Andrew Cagney <cagney@redhat.com>
3654
3655 * blockframe.c (deprecated_read_register_dummy): Rename
3656 generic_read_register_dummy.
3657 * frame.c (frame_unwind_signed_register): New function.
3658 (frame_unwind_unsigned_register): New function.
3659 * frame.h (frame_unwind_signed_register): Declare.
3660 (frame_unwind_unsigned_register): Declare.
3661 (deprecated_read_register_dummy): Rename
3662 generic_read_register_dummy.
3663
3664 * h8300-tdep.c (h8300_frame_chain): Update.
3665 (h8300_frame_saved_pc): Update.
3666 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3667 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3668 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3669 (s390_frame_chain): Update.
3670 * v850-tdep.c (v850_find_callers_reg): Update.
3671 (v850_frame_saved_pc): Update.
3672 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3673 (m32r_find_callers_reg): Update.
3674 (m32r_frame_saved_pc): Update.
3675 * sh-tdep.c (sh_find_callers_reg): Update.
3676 (sh64_get_saved_pr): Update.
3677 (sh_init_extra_frame_info): Update.
3678 (sh_init_extra_frame_info): Update.
3679 (sh64_init_extra_frame_info): Update.
3680 (sh64_init_extra_frame_info): Update.
3681 * mcore-tdep.c (mcore_find_callers_reg): Update.
3682 (mcore_frame_saved_pc): Update.
3683 (mcore_init_extra_frame_info): Update.
3684 * i386-tdep.c (i386_frame_saved_pc): Update.
3685 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3686 (ia64_init_extra_frame_info): Update.
3687 (ia64_init_extra_frame_info): Update.
3688 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3689 * cris-tdep.c (cris_init_extra_frame_info): Update.
3690 * avr-tdep.c (avr_frame_chain): Update.
3691 (avr_init_extra_frame_info): Update.
3692 (avr_frame_saved_pc): Update.
3693 * arm-tdep.c (arm_find_callers_reg): Update.
3694 (arm_init_extra_frame_info): Update.
3695 (arm_frame_saved_pc): Update.
3696
36972002-09-17 Tom Tromey <tromey@redhat.com>
3698
3699 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3700 is "'".
3701
37022002-09-17 Corinna Vinschen <vinschen@redhat.com>
3703
3704 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3705 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3706 NEXT_PROLOGUE_INSN.
3707 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3708 NEXT_PROLOGUE_INSN.
3709
37102002-09-16 Joel Brobecker <brobecker@gnat.com>
3711
3712 * osfsolib.c: Remove file, replaced by solib-osf.c.
3713 * Makefile.in: Remove compilation rules for osfsolib.c.
3714
37152002-09-16 David Carlton <carlton@math.stanford.edu>
3716
3717 * cp-valprint.c (cp_print_class_method): Correct args to
3718 check_stub_method_group.
3719
37202002-09-16 Corinna Vinschen <vinschen@redhat.com>
3721
3722 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3723 `set architecture'. Unify naming convention of functions.
3724 (h8300_skip_prologue): Improve prologue analysis.
3725 (h8300_push_arguments): Rewritten to more closely match GCC's
3726 bizarre argument-passing behavior, along with the comment describing
3727 said behavior.
3728 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3729 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3730 sim, remote-e7000.c, remote-hms.c and remote.c
3731
37322002-09-15 Mark Kettenis <kettenis@gnu.org>
3733
3734 * i386-tdep.c (gdb_print_insn_i386): Removed.
3735 (i386_print_insn): New function.
3736 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3737 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3738 tm_print_insn_info.
3739
37402002-09-14 Mark Kettenis <kettenis@gnu.org>
3741
3742 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3743 zero.
3744
37452002-09-14 Corinna Vinschen <vinschen@redhat.com>
3746
3747 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3748 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3749 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3750
37512002-09-13 Christopher Faylor <cgf@redhat.com>
3752
3753 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3754
37552002-09-13 Daniel Jacobowitz <drow@mvista.com>
3756
3757 * gdbtypes.c (check_stub_method): Make static.
3758 (check_stub_method_group): New function.
3759 * gdbtypes.h: Update prototypes.
3760 * cp-support.c: New file.
3761 * cp-support.h: New file.
3762
3763 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3764 (update_method_name_from_physname): New function.
3765 (read_member_functions): Correct method names for operators
3766 and v3 constructors/destructors. Separate v2 constructors and
3767 destructors.
3768 * Makefile.in (stabsread.o): Update dependencies.
3769 (SFILES): Add cp-support.c.
3770 (COMMON_OBS): Add cp-support.o.
3771 (cp_support_h, cp-support.o): Add.
3772
3773 * cp-valprint.c (cp_print_class_method): Call
3774 check_stub_method_group instead of check_stub_method. Remove
3775 extraneous QUITs.
3776 * p-valprint.c (pascal_object_print_class_method): Likewise.
3777 * valops.c (search_struct_method): Likewise.
3778 (find_method_list, value_struct_elt_for_reference): Likewise.
3779
37802002-09-13 Andrew Cagney <cagney@redhat.com>
3781
3782 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3783 * gdbarch.h, gdbarch.c: Regenerate.
3784
37852002-09-13 Andrew Cagney <ac131313@redhat.com>
3786
3787 * frame.c (find_saved_register): Delete function.
3788 * frame.h (find_saved_register): Delete declaration.
3789 Fix PR gdb/631.
3790
3791Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3792
3793 * mips-tdep.c (read_next_frame_reg): Re-hack using
3794 frame_register_unwind.
3795
3796Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3797
3798 * mips-tdep.c (mips_get_saved_register): Re-hack using
3799 frame_register_unwind.
3800
38012002-09-12 Joel Brobecker <brobecker@gnat.com>
3802
3803 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3804 vector. Will be useful for Interix.
3805 * gdbarch.h, gdbarch.c: Regenerate.
3806
3807 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3808 name of the malloc function by NAME_OF_MALLOC.
3809
38102002-09-12 Joel Brobecker <brobecker@gnat.com>
3811
3812 * value.h (find_function_in_inferior): Add const keyword to
3813 one of the parameters. Allows us to invoke this function with
3814 a const char *.
3815 * valops.c (find_function_in_inferior): Likewise.
3816
38172002-09-12 Joel Brobecker <brobecker@gnat.com>
3818
3819 * exec.c (xfer_memory): Fix compilation warning with old versions
3820 of GCC.
3821 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3822
38232002-09-12 David Carlton <carlton@math.stanford.edu>
3824
3825 * symtab.h: Run through gdb_indent.h.
3826 Add 2002 to Copyright year list.
3827
38282002-09-12 Alan Modra <amodra@bigpond.net.au>
3829
3830 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3831 mach constants.
3832 * MAINTAINERS: Add myself to write after approval list.
3833
38342002-09-11 J. Brobecker <brobecker@gnat.com>
3835
3836 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3837
38382002-09-11 J. Brobecker <brobecker@gnat.com>
3839
3840 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3841 Interix.
3842
38432002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3844
3845 * procfs.c (do_detach): Clear current signal, not just fault.
3846 Corrects problem with breakpoint trap signal leaking to detached
3847 process on Tru64.
3848
38492002-09-10 Michael Snyder <msnyder@redhat.com>
3850
3851 * buildsym.c (finish_block): Protect against null pointer.
3852
38532002-09-10 Andrew Cagney <cagney@redhat.com>
3854
3855 * infcmd.c (default_print_registers_info): Send all output to
3856 ``file'' instead of ``gdb_stdout''.
3857
38582002-09-10 Michael Snyder <msnyder@redhat.com>
3859
3860 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3861 LONGEST, and use signed register read (addresses are sign-
3862 extended for mips).
3863
38642002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3865
3866 * event-loop.c (gdb_do_one_event): Make public.
3867 * event-loop.h (gdb_do_one_event): Declare.
3868
38692002-09-10 Jeff Law <law@redhat.com>
3870
3871 * infttrace.c (child_resume): Simplify and rework to avoid
3872 TT_PROC_CONTINUE.
3873
38742002-09-09 Fred Fish <fnf@intrinsity.com>
3875
3876 * printcmd.c (print_scalar_formatted): "len" is the number of
3877 target bytes, NOT the number of target bits.
3878
38792002-09-09 Elena Zannoni <ezannoni@redhat.com>
3880
3881 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3882 * top.c (init_main): Set rl_terminal_name.
3883
38842002-09-08 Aidan Skinner <aidan@velvet.net>
3885
3886 * ada-lang.c (ada_array_bound, ada_type_match,
3887 _initialize_ada_language): Fix K&R definitions.
3888 * ada-tasks.c (get_current_task): Fix K&R definitions.
3889 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3890
38912002-09-07 Christopher Faylor <cgf@redhat.com>
3892
3893 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3894 Add XP.
3895
38962002-09-06 Mark Kettenis <kettenis@gnu.org>
3897
3898 * i386-tdep.c (i386_register_virtual_type,
3899 i386_register_convertible, i386_register_convert_to_virtual,
3900 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3901 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3902 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3903 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3904 Don't set push_arguments twice.
3905
3906 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3907 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3908 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3909 sigtramp_end to NULL.
3910 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3911 defines.
3912 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3913
3914 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3915 whitespace.
3916
3917 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3918 * gdbarch.h, gdbarch.c: Re-generate.
3919 * blockframe.c (find_pc_sect_partial_function): Convert to use
3920 SIGTRAMP_START_P predicate.
3921
39222002-09-05 Michael Snyder <msnyder@redhat.com>
3923
3924 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3925 generic_dummy_frame method and old method. Also distinguish
3926 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3927 (arm_extract_return_value): Use new regcache method.
3928
3929 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3930 adjustment that doesn't conform to the ABI.
3931 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3932 saved regcache, not from current regcache.
3933
39342002-09-05 Andrew Cagney <ac131313@redhat.com>
3935
3936 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3937 * README: Update.
3938
39392002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3940
3941 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3942 if arm_apcs_32 is false.
3943
39442002-09-04 Andrew Cagney <ac131313@redhat.com>
3945
3946 GDB 5.3 branch created.
3947
39482002-09-03 Theodore A. Roth <troth@verinet.com>
3949
3950 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3951 generic_unwind_get_saved_register.
3952
39532002-09-03 David Carlton <carlton@math.stanford.edu>
3954
3955 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3956 argument (PR gdb/653). Update call to smash_to_method_type.
3957 (read_structure_scope): Update call to dwarf2_add_member_fn.
3958
39592002-09-03 Michal Ludvig <mludvig@suse.cz>
3960
3961 * x86-64-linux-tdep.c: Include gdb_string.h
3962 * x86-64-linux-nat.c: Ditto.
3963
39642002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3965
3966 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3967 when YYDEBUG is set to 1.
3968 * c-exp.y: Likewise.
3969 * f-exp.y: Likewise.
3970 * jv-exp.y: Likewise.
3971 * m2-exp.y: Likewise.
3972 * p-exp.y: Likewise.
3973
39742002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3975
3976 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3977 dependency list.
3978 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3979 solib_svr4_fetch_link_map_offsets to
3980 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3981 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3982 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3983 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3984 solib-svr4.o, and solib-legacy.o.
3985 * config/i386/tm-nbsd.h: Include solib.h.
3986
39872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3988
3989 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3990 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3991 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3992 comment noting that this needs its own target configuration.
3993 * config/i386/nbsd.mt: New file.
3994 * config/i386/nbsdaout.mt: Remove.
3995 * config/i386/nbsdelf.mt: Ditto.
3996 * config/i386/tm-nbsdaout.h: Ditto.
3997
39982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3999
4000 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4001 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4002 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4003 tdep->sigtramp_end.
4004 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4005 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4006 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4007
40082002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4009
4010 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4011 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4012 * i386-tdep.h (i386bsd_init_abi): New prototype.
4013 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4014 function declaration.
4015 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4016 for NetBSD-a.out or NetBSD-ELF.
4017 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4018 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4019 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4020 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4021 and nbsd-tdep.h.
4022 (i386nbsd_pc_in_sigtramp): New function.
4023 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4024 i386nbsd_pc_in_sigtramp.
4025 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4026 and i386nbsdelf_init_abi OS ABI handlers.
4027 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4028 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4029
40302002-09-02 Mark Kettenis <kettenis@gnu.org>
4031
4032 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4033 registers if the target really has them.
4034
40352002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4036
4037 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4038 than nbsd-tdep.h.
4039
40402002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4041
4042 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4043 list.
4044 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4045 (alphanbsd_skip_sigtramp_frame): New functions.
4046 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4047 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4048 to alphanbsd_sigcontext_addr.
4049
40502002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4051
4052 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4053 list.
4054 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4055 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4056 nbsd_pc_in_sigtramp.
4057 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4058 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4059 * nbsd-tdep.c: Include gdb_string.h.
4060 (nbsd_pc_in_sigtramp): New function.
4061 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4062 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4063 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4064 ppcnbsd_pc_in_sigtramp.
4065 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4066 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4067 shnbsd_pc_in_sigtramp.
4068 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4069 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4070 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4071
40722002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4073
4074 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4075 watchpoints to NULL.
4076 (insert_breakpoints): set val field of watchpoints if NULL.
4077
4078
40792002-08-29 Jim Blandy <jimb@redhat.com>
4080
4081 * symtab.c (lookup_symbol_aux): In the cases where we find a
4082 minimal symbol of an appropriate name and use its address to
4083 select a symtab to read and search, use `name' (as passed to us)
4084 as the demangled name when searching the symtab's global and
4085 static blocks, not the minsym's name.
4086
40872002-08-29 Keith Seitz <keiths@redhat.com>
4088
4089 * stack.c (print_frame_info_base): Always set current_source_symtab
4090 and current_source_line.
4091
40922002-08-29 Donn Terry <donnte@microsoft.com>
4093
4094 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4095
40962002-08-28 Keith Seitz <keiths@redhat.com>
4097
4098 * stack.c (select_frame): Add FIXME concerning selected-frame
4099 events.
4100 (select_frame_command): Send selected-frame-level-changed
4101 event notification, but only if the level actually changed.
4102 (up_silently_base): Add selected-frame-level-changed event
4103 notification.
4104 (down_silently_base): Likewise.
4105
41062002-08-28 Andrew Cagney <ac131313@redhat.com>
4107
4108 * Makefile.in: Update dependencies for all gdb/*.c files.
4109
41102002-08-27 Tom Tromey <tromey@redhat.com>
4111
4112 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4113 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4114 Update dependencies.
4115 * i387-tdep.c: Include gdb_string.h.
4116 * osabi.c: Likewise.
4117 * i386-linux-nat.c: Likewise.
4118 * lin-lwp.c: Likewise.
4119 * ax-gdb.c: Likewise.
4120 * signals/signals.c: Likewise.
4121 * jv-valprint.c: Likewise.
4122 * p-lang.c: Likewise.
4123 * c-valprint.c: Likewise.
4124 * cp-abi.c: Likewise.
4125
41262002-08-27 Elena Zannoni <ezannoni@redhat.com>
4127
4128 * cli/cli-script.h (copy_command_lines): Export.
4129 * breakpoint.c: Include cli/cli-script.h.
4130 * Makefile.in (breakpoint.o): Update dependencies.
4131
41322002-08-26 Michael Snyder <msnyder@redhat.com>
4133
4134 * breakpoint.c (insert_breakpoints): Protect all references
4135 to 'process_warning'. Shorten long lines.
4136
41372002-08-26 Joel Brobecker <brobecker@gnat.com>
4138
4139 * cli/cli-script.c (copy_command_lines): New function.
4140 * defs.h (copy_command_lines): Export.
4141 * testsuite/gdb.base/commands.exp: New tests for commands
4142 attached to a temporary breakpoint, and for commands that
4143 delete the breakpoint they are attached to.
4144
41452002-08-26 Michael Snyder <msnyder@redhat.com>
4146
4147 * breakpoint.c (bpstat_stop_status): Instead of copying the
4148 pointer to the breakpoint commands struct, make a new copy
4149 of the struct and point to that.
4150 (bpstat_clear): Free the commands struct.
4151 (bpstat_clear_actions): Free the commands struct.
4152 (bpstat_do_actions): Free the command actions. Also execute
4153 the local cleanups, instead of deleting them.
4154 (delete_breakpoint): Leave the commands field of the bpstat
4155 chain alone -- it will be freed later.
4156
41572002-08-26 Kevin Buettner <kevinb@redhat.com>
4158
4159 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4160 deleted in 2002-08-20 commit. This function is still used by
4161 ppc-linux-nat.c.
4162
41632002-08-26 Keith Seitz <keiths@redhat.com>
4164
4165 * gdb-events.sh: Add selected-frame-level-changed event.
4166 * gdb-events.c: Regenerated.
4167 * gdb-events.h: Regenerated.
4168
41692002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4170
4171 Fix PR gdb/393:
4172 * inflow.c (terminal_save_ours): New function to save terminal
4173 settings.
4174 * inferior.h (terminal_save_ours): Declare.
4175 * target.c (debug_to_terminal_save_ours): New function.
4176 (cleanup_target): Defaults to_terminal_save_ours.
4177 (update_current_target): Inherit to_terminal_save_ours.
4178 (setup_target_debug): Set to_terminal_save_ours.
4179 * target.h (target_terminal_save_ours): New to save terminal settings.
4180 (target_ops): New member to_terminal_save_ours.
4181 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4182 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4183 * inftarg.c (init_child_ops): Likewise.
4184 * m3-nat.c (init_m3_ops): Likewise.
4185 * procfs.c (init_procfs_ops): Likewise.
4186 * wince.c (init_child_ops): Likewise.
4187 * win32-nat.c (init_child_ops): Likewise.
4188 * sol-thread.c (init_sol_thread_ops): Likewise.
4189
41902002-08-26 Mark Kettenis <kettenis@gnu.org>
4191
4192 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4193 use regcache_* functions.
4194 (i386_gdbarch_init): Set store_return_value instead of
4195 deprecated_store_return_value.
4196
4197 * regcache.c (regcache_raw_write_signed,
4198 regcache_raw_write_unsigned): New functions.
4199 * regcache.h (regcache_raw_write_signed,
4200 regcache_raw_write_unsigned): New prototypes.
4201
42022002-08-25 Andrew Cagney <ac131313@redhat.com>
4203
4204 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4205 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4206 source file dependencies. Cleanup corresponding generator rules.
4207
42082002-08-25 Andrew Cagney <ac131313@redhat.com>
4209
4210 * regcache.h (register_offset_hack): Declare.
4211 (regcache_cooked_read_using_offset_hack): Declare.
4212 (regcache_cooked_write_using_offset_hack): Declare.
4213
4214 * regcache.c (register_offset_hack): New function.
4215 (regcache_cooked_read_using_offset_hack): New function.
4216 (regcache_cooked_write_using_offset_hack): New function.
4217 (regcache_dump): Check that the registers, according to their
4218 offset, are packed hard against each other.
4219 (cooked_xfer_using_offset_hack): New function.
4220
42212002-08-25 Andrew Cagney <ac131313@redhat.com>
4222
4223 * regcache.c (struct regcache_descr): Add field register_type.
4224 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4225 in as a parameter
4226 (init_regcache_descr): Initialize register_type. Pass the descr
4227 to init_legacy_regcache_descr. Use register_type instead of
4228 REGISTER_VIRTUAL_TYPE.
4229 (register_type): New function.
4230 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4231 * regcache.h (register_type): Declare.
4232
42332002-08-25 Andrew Cagney <ac131313@redhat.com>
4234
4235 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4236 instead of deprecated_store_return_value. Fix fallout from
4237 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4238
42392002-08-25 Andrew Cagney <ac131313@redhat.com>
4240
4241 * regcache.c (max_register_size): New function.
4242 (init_legacy_regcache_descr): Ensure that max_register_size is
4243 large enough for REGISTER_VIRTUAL_SIZE.
4244 * regcache.h (max_register_size): Declare.
4245
42462002-08-24 Andrew Cagney <ac131313@redhat.com>
4247
4248 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4249 store_return_value.
4250 (e500_extract_return_value): Change type of valbuf pointer to
4251 void.
4252
42532002-08-24 Mark Kettenis <kettenis@gnu.org>
4254
4255 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4256 workaround.
4257
4258 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4259 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4260 long long) to prevent compiler warning on 64-bit systems.
4261
42622002-08-23 Andrew Cagney <cagney@redhat.com>
4263
4264 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4265 (DEPRECATED_STORE_RETURN_VALUE): New method.
4266 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4267 * gdbarch.h, gdbarch.c: Re-generate.
4268
4269 * values.c (set_return_value): Pass current_regcache to
4270 STORE_RETURN_VALUE.
4271 * arch-utils.h (legacy_store_return_value): Declare.
4272 * arch-utils.c (legacy_store_return_value): New function.
4273 (legacy_extract_return_value): Update parameters.
4274
4275 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4276 STORE_RETURN_VALUE.
4277 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4278 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4279 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4280 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4281 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4282 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4283 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4284 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4285 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4286 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4287
4288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4289 * i386-tdep.c (i386_extract_return_value): Update.
4290 * arch-utils.c (legacy_extract_return_value): Update.
4291 * frv-tdep.c (frv_gdbarch_init): Update.
4292 * cris-tdep.c (cris_gdbarch_init): Update.
4293 * d10v-tdep.c (d10v_gdbarch_init): Update.
4294 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4295 * m68k-tdep.c (m68k_gdbarch_init): Update.
4296 * mcore-tdep.c (mcore_gdbarch_init): Update.
4297 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4298 * s390-tdep.c (s390_gdbarch_init): Update.
4299 * sparc-tdep.c (sparc_gdbarch_init): Update.
4300 * sh-tdep.c (sh_gdbarch_init): Update.
4301 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4302 * v850-tdep.c (v850_gdbarch_init): Update.
4303 * avr-tdep.c (avr_gdbarch_init): Update.
4304 * ia64-tdep.c (ia64_gdbarch_init): Update.
4305 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4306 * vax-tdep.c (vax_gdbarch_init): Update.
4307 * alpha-tdep.c (alpha_gdbarch_init): Update.
4308 * arm-tdep.c (arm_gdbarch_init): Update.
4309 * mips-tdep.c (mips_gdbarch_init): Update.
4310 * i386-tdep.c (i386_gdbarch_init): Update.
4311
43122002-08-23 Andrew Cagney <ac131313@redhat.com>
4313
4314 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4315 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4316
43172002-08-24 Mark Kettenis <kettenis@gnu.org>
4318
4319 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4320 problems.
4321
43222002-08-23 Joel Brobecker <brobecker@gnat.com>
4323
4324 * infrun.c (handle_inferior_event): Move a comment outside of a
4325 function call, in order to avoid indent reformatting this part
4326 of the code in an unreadable way.
4327
43282002-08-23 Grace Sainsbury <graces@redhat.com>
4329
4330 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4331 when breakpoints fail. Move general breakpoint error messages to
4332 insert_breakpoints.
4333 * breakpoint.c (insert_breakpoints): Change warnings when
4334 breakpoints are nto inserted to specify the type. Remove call to
4335 memory_error when hardware breakpoints can't be inserted. Remove
4336 multiple calls to warning so all messages are sent to the user at
4337 once.
4338 (delete_breakpoints): Make insert error messsages more explicit.
4339
43402002-08-23 Daniel Jacobowitz <drow@mvista.com>
4341
4342 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4343 gdbserver/ChangeLog.
4344
43452002-08-23 Mark Kettenis <kettenis@gnu.org>
4346
4347 * i386-tdep.c: Include "objfiles.h".
4348 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4349 skip_trampoline_code.
4350 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4351 (CPLUS_MARKER): Define to '.'.
4352
4353 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4354 member.
4355 (linux_corefile_thread_callback): Increase args->num_notes.
4356 (linux_make_note_section): Initialize thread_args.num_notes, and
4357 use it to determine whether notes for any threads were created.
4358
43592002-08-23 Donn Terry <donnte@microsoft.com>
4360
4361 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4362 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4363 and PCUNKILL.
4364 (write_with_trace): Conditionalize out the switch branch handling
4365 PCSHOLD if the corresponding macro is not defined. Likewise for
4366 PRSABORT and PRSTOP.
4367 This change will be needed by the Interix port.
4368
43692002-08-22 Elena Zannoni <ezannoni@redhat.com>
4370
4371 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4372 write_register wherever possible instead of manipulating the
4373 register bytes directly.
4374 Assign VALUE_CONTENTS to a variable and use that.
4375 The GPR numbers are now dependent on the architecture.
4376
43772002-08-22 Elena Zannoni <ezannoni@redhat.com>
4378
4379 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4380 ev_offset fields.
4381 (skip_prologue): Add support for BookE/e500 instructions.
4382 (e500_extract_return_value): New function.
4383 (frame_get_saved_regs): Add support for saving ev registers and
4384 pseudo gpr's.
4385 (e500_store_return_value): New function.
4386 (rs6000_gdbarch_init): Move up default intializations of
4387 deprecated_extract_return_value and store_return_value. Overwrite
4388 init of store_return_value with e500 specific version.
4389 Set extract_return_value for e500.
4390
43912002-08-22 Elena Zannoni <ezannoni@redhat.com>
4392
4393 * blockframe.c (generic_call_dummy_register_unwind): Use
4394 regcache_cooked_read to catch cases in which the variable is
4395 stored in a pseudo register.
4396
43972002-08-22 Andrew Cagney <cagney@redhat.com>
4398
4399 * NEWS: Mention that the i960 has been made obsolete.
4400 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4401 i960-tdep.c
4402 (remote-nrom.o): Obsolete target.
4403 (remote-nindy.o, i960-tdep.o): Ditto.
4404 * remote-nrom.c: Make file obsolete.
4405 * remote-nindy.c, remote-vx960.c: Ditto.
4406 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4407 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4408 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4409 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4410 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4411 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4412 i960-*-vxworks* obsolete.
4413 * MAINTAINERS: Note that the i960 is obsolete.
4414
44152002-08-21 Corinna Vinschen <vinschen@redhat.com
4416
4417 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4418 detach to allow reinitialization.
4419
44202002-08-22 Andrew Cagney <ac131313@redhat.com>
4421
4422 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4423 attempt).
4424
44252002-08-22 Jim Blandy <jimb@redhat.com>
4426
4427 * coffread.c (coff_symfile_read): Don't try to read the line
4428 number table from disk if the image file doesn't have a symbol
4429 table; we'll never actually look at the info anyway, and Windows
4430 ships DLL's with bogus file offsets for the line number data.
4431
44322002-08-21 Elena Zannoni <ezannoni@redhat.com>
4433
4434 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4435 an e500 executable.
4436
44372002-08-21 Michael Snyder <msnyder@redhat.com>
4438
4439 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4440 (MSYMBOL_SIZE): Replace macro with function.
4441 (DEFAULT_MIPS_TYPE): Delete unused macro.
4442 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4443 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4444
44452002-08-21 Jim Blandy <jimb@redhat.com>
4446
4447 * valops.c (value_cast): Simplify and correct logic for doing a
4448 static cast from a pointer to a base class to a pointer to a
4449 derived class.
4450
44512002-08-21 Andrew Cagney <ac131313@redhat.com>
4452
4453 * infcmd.c (default_print_registers_info): Replace
4454 do_registers_info.
4455 (registers_info): Use gdbarch_print_registers_info instead of
4456 DO_REGISTERS_INFO.
4457 * inferior.h (default_print_registers_info): Replace
4458 do_registers_info.
4459 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4460 (DO_REGISTERS_INFO): Change to a predicate function.
4461 * gdbarch.h, gdbarch.c: Regenerate.
4462
44632002-08-21 Keith Seitz <keiths@redhat.com>
4464
4465 * gdb-events.sh: Add target-changed event.
4466 * gdb-events.c: Regenerated.
4467 * gdb-events.c: Regenerated.
4468 * valops.c (value_assign): Add target-changed event notification
4469 to inlval_register, lval_memory, and lval_reg_frame_relative.
4470
44712002-08-21 Joel Brobecker <brobecker@gnat.com>
4472
4473 * NEWS: Add an entry regarding the improvement of the next/step
4474 operation on Alpha Tru64 multi-processor machines.
4475
44762002-08-21 Andrew Cagney <ac131313@redhat.com>
4477
4478 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4479 directores.
4480 * Makefile.in: Update all _h macro definitions.
4481 * Makefile.in (install-gdbtk): Move to install section.
4482 (rdi-share/libangsd.a): Move to end of file.
4483
44842002-08-19 Andrew Cagney <ac131313@redhat.com>
4485
4486 * frame.c (frame_register_unwind): When a register, set addrp to
4487 the register's byte.
4488
44892002-08-20 Michael Snyder <msnyder@redhat.com>
4490
4491 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4492 used locally, so move them from the target machine header to here.
4493 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4494 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4495 Make static.
4496 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4497
44982002-08-20 Andrew Cagney <cagney@redhat.com>
4499
4500 * NEWS: Mention that the Apollo line was made obsolete.
4501 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4502 m68*-hp-hpux* obsolete.
4503 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4504 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4505 * buildsym.c (make_blockvector): Make static.
4506 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4507 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4508 (ALLDEPFILES): Remove dstread.c.
4509 (dstread.o): Obsolete make rule.
4510 * dstread.c: Makefile obsolete.
4511 * dst.h: Ditto.
4512 * config/m68k/hp300hpux.mt: Ditto.
4513 * config/m68k/hp300hpux.mh: Ditto.
4514 * config/m68k/hp300bsd.mt: Ditto.
4515 * config/m68k/hp300bsd.mh: Ditto.
4516 * config/m68k/apollo68b.mt: Ditto.
4517 * config/m68k/apollo68v.mh: Ditto.
4518 * config/m68k/apollo68b.mh: Ditto.
4519
45202002-08-20 Michael Snyder <msnyder@redhat.com>
4521
4522 * mips-tdep.c (mips_in_return_stub): Make static.
4523 (mips_gdbarch_init): Set in_solib_return_trampoline.
4524 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4525
45262002-08-20 Michael Snyder <msnyder@redhat.com>
4527
4528 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4529 * gdbarch.c, gdbarch.h: Regenerate.
4530 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4531 Add.
4532 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4533
45342002-08-20 Michael Snyder <msnyder@redhat.com>
4535
4536 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4537 (mips_gdbarch_init): Set skip_trampoline_code,
4538 in_solib_call_trampoline.
4539 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4540 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4541
45422002-08-20 Elena Zannoni <ezannoni@redhat.com>
4543
4544 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4545
4546 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4547 vector type for ev registers.
4548 (e500_pseudo_register_read): New function.
4549 (e500_pseudo_register_write): New function.
4550 (e500_dwarf2_reg_to_regnum): New function.
4551 (PPC_UISA_NOFP_SPRS): New macro.
4552 (PPC_EV_REGS): New macro.
4553 (PPC_GPRS_PSEUDO_REGS): New macro.
4554 (registers_e500): New register set for e500.
4555 (variants): Add e500 variant.
4556 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4557 before setting architectural dependent variations. Initialize ev
4558 registers numbers. Add case for e500 architecture. Set the
4559 number of pseudo registers.
4560
45612002-08-20 Elena Zannoni <ezannoni@redhat.com>
4562
4563 * rs6000-tdep.c: Clean up comments.
4564
45652002-08-20 Andrew Cagney <cagney@redhat.com>
4566
4567 * h8300-tdep.c: Re-indent file.
4568
45692002-08-20 Jim Blandy <jimb@redhat.com>
4570
4571 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4572 default for this.
4573
45742002-08-20 Keith Seitz <keiths@redhat.com>
4575
4576 * breakpoints.c (watch_command_1): Use internal breakpoint
4577 when setting a watchpoint_scope breakpoint.
4578
45792002-08-20 Elena Zannoni <ezannoni@redhat.com>
4580
4581 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4582 (build_builtin_type_vec64i): Ditto.
4583 (build_builtin_type_vec128): Ditto.
4584 (build_builtin_type_vec128i): Ditto.
4585
45862002-08-19 Michael Snyder <msnyder@redhat.com>
4587
4588 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4589 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4590 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4591 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4592 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4593 CALL_DUMMY_ADDRESS): Delete.
4594 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4595 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4596 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4597 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4598 push_return_address.
4599 (mips_register_raw_size, mips_eabi_use_struct_convention,
4600 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4601 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4602 mips_init_extra_frame_info, mips_eabi_push_arguments,
4603 mips_n32n64_push_arguments, mips_push_return_address,
4604 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4605 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4606
46072002-08-19 Michael Snyder <msnyder@redhat.com>
4608
4609 * mips-tdep.c (mips_frame_num_args): New function.
4610 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4611 frame_saved_pc, frame_args_address, frame_locals_address,
4612 frame_num_args, and frame_args_skip.
4613 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4614 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4615 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4616 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4617
46182002-08-20 Michael Snyder <msnyder@redhat.com>
4619
4620 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4621 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4622 * mips-tdep.c (mips_store_struct_return): New function.
4623 (mips_extract_struct_value_address): New function.
4624 (mips_gdbarch_init): Set store_struct_return and
4625 extract_struct_value_address.
4626
46272002-08-20 David Carlton <carlton@math.stanford.edu>
4628
4629 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4630 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4631 (read_file_scope): Check that line_header is nonzero before
4632 decoding macro information.
4633
46342002-08-20 Mark Kettenis <kettenis@gnu.org>
4635
4636 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4637 flag the general-purpose registers as floating-point on targets
4638 that don't support the floating-point registers.
4639
46402002-08-20 Elena Zannoni <ezannoni@redhat.com>
4641
4642 * rs6000-tdep.c (altivec_register_p): Delete.
4643 (rs6000_do_altivec_registers): Delete.
4644 (rs6000_altivec_registers_info): Delete.
4645 (rs6000_do_registers_info): Delete.
4646 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4647 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4648
46492002-08-20 Elena Zannoni <ezannoni@redhat.com>
4650
4651 * infcmd.c (do_registers_info): Print vector registers in hex
4652 format only.
4653 (print_vector_info): Check that printing registers
4654 makes sense.
4655 (print_float_info): Ditto.
4656
46572002-08-20 Andrew Cagney <ac131313@redhat.com>
4658
4659 * mips-tdep.c (mips_gdbarch_init): Update.
4660 (mips_o32_extract_return_value): Rewrite.
4661 (mips_o32_store_return_value): Rewrite.
4662 (mips_o32_xfer_return_value): New function.
4663 (mips_xfer_register): Tweak debug print message. Allow for
4664 buf_offset when dumping the value transfered.
4665
46662002-08-20 Andrew Cagney <ac131313@redhat.com>
4667
4668 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4669 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4670 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4671 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4672 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4673
46742002-08-14 Michael Snyder <msnyder@redhat.com>
4675
4676 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4677
46782002-08-19 Elena Zannoni <ezannoni@redhat.com>
4679
4680 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4681 register.
4682 (P): New macro to define a register as a pseudo register.
4683 (R, R4, R8, R16, FR32, R64, R0): Updated.
4684 (struct variant): Add new fields for number of pseudo registers
4685 and number of total registers.
4686 (tot_num_registers): New macro replacing....
4687 (num_registers): ...deleted macro.
4688 (num_registers): New function.
4689 (num_pseudo_registers): New function.
4690 (variants): Update all variants to intialize new fields correctly.
4691 Postpone initialization of number of pseudo regs and real regs.
4692 (init_variants): New function.
4693 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4694 registers offsets.
4695
46962002-08-19 David Carlton <carlton@math.stanford.edu>
4697
4698 * valops.c (search_struct_field): Change error message to treat
4699 return value of 0 from value_static_field as meaning that field is
4700 optimized out.
4701 (value_struct_elt_for_reference): Ditto.
4702 * values.c (value_static_field): Treat an unresolved location the
4703 same as a nonexistent symbol. Fix PR gdb/635.
4704 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4705 enclosed. Fix PR gdb/574.
4706 * MAINTAINERS: Add self to Write After Approval list.
4707
47082002-08-19 Andrew Cagney <ac131313@redhat.com>
4709
4710 * mips-tdep.c (mips_xfer_register): New function.
4711 (mips_n32n64_extract_return_value): Rewrite.
4712 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4713 instead of deprecated_extract_return_value.
4714
47152002-08-19 Elena Zannoni <ezannoni@redhat.com>
4716
4717 * rs6000-tdep.c (TDEP): Delete macro.
4718 (branch_dest): Replace use of TDEP macro with its body.
4719 (rs6000_pop_frame): Ditto.
4720 (rs6000_push_arguments): Ditto.
4721 (rs6000_skip_trampoline_code): Ditto.
4722 (rs6000_frame_saved_pc): Ditto.
4723 (rs6000_frame_chain): Ditto.
4724 (rs6000_register_name): Ditto.
4725 (rs6000_register_byte): Ditto.
4726 (rs6000_register_raw_size): Ditto.
4727 (rs6000_register_virtual_type): Ditto.
4728 (rs6000_register_convertible): Ditto.
4729 (rs6000_convert_from_func_ptr_addr): Ditto.
4730
47312002-08-19 Daniel Jacobowitz <drow@mvista.com>
4732
4733 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4734 conditionally.
4735 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4736 MIPS_LINUX_JB_ELEMENT_SIZE.
4737 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4738 for MAX_REGISTER_RAW_SIZE arrays.
4739 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4740 MIPS_LINUX_JB_ELEMENT_SIZE.
4741
47422002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4743
4744 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4745
47462002-08-19 Aidan Skinner <aidan@velvet.net>
4747
4748 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4749 ada-valprint.c ada-tasks.c.
4750 (YYFILES): Add ada-exp.y.
4751 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4752 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4753 (ada-exp.tab.o): New target.
4754
47552002-08-18 Andrew Cagney <ac131313@redhat.com>
4756
4757 * regcache.c (regcache_xfer_part): New function.
4758 (regcache_raw_read_part): New function.
4759 (regcache_raw_write_part): New function.
4760 (regcache_cooked_read_part): New function.
4761 (regcache_cooked_write_part): New function.
4762 * regcache.h (regcache_raw_read_part): Declare.
4763 (regcache_raw_write_part): Declare.
4764 (regcache_cooked_read_part): Declare.
4765 (regcache_cooked_write_part): Declare.
4766
47672002-08-18 Daniel Jacobowitz <drow@mvista.com>
4768
4769 * remote.c (remote_open_1): Add async_p.
4770 (remote_async_open_1): Delete.
4771 (open_remote_target): Delete.
4772 (remote_open, extended_remote_open): Update calls to remote_open_1.
4773 (remote_async_open, extended_remote_async_open): Call
4774 remote_open_1 instead of remote_async_open_1.
4775
47762002-08-19 Mark Kettenis <kettenis@gnu.org>
4777
4778 * blockframe.c: Fix a few coding standard violations.
4779
47802002-08-19 Mark Kettenis <kettenis@gnu.org>
4781
4782 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4783 here from ...
4784 * config/i386/tm-i386sco5.h: ... here. File removed.
4785 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4786
4787 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4788 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4789 (TM_FILE): Set to tm-i386.h.
4790 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4791 * config/i386/tm-i386v.h: Remove file.
4792 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4793 instead of "i386/tm-i386v.h".
4794 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4795 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4796 "i386/tm-i386v.h".
4797 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4798 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4799 "i386/tm-i386.h".
4800
48012002-08-18 Mark Kettenis <kettenis@gnu.org>
4802
4803 * config/i386/nm-i386v.h: Add protection against
4804 multiple-inclusion.
4805 (i386_register_u_addr): Remove prototype.
4806 (register_u_addr): New prototype.
4807 (REGISTER_U_ADDR): Redefine accordingly.
4808 * i386v-nat.c: Improve several comments.
4809 (i386_register_u_addr): Change signature and rename to
4810 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4811 ubase variable.
4812
48132002-08-18 Andrew Cagney <ac131313@redhat.com>
4814
4815 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4816 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4817 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4818 deprecated_extract_return_value.
4819 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4820 rename mips_o32o64_push_arguments.
4821 (mips_gdbarch_init): Update.
4822 (mips_extract_return_value): Delete.
4823 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4824 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4825 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4826 (mips_n32n64_extract_return_value): Clone
4827 mips_extract_return_value.
4828 (mips_store_return_value): Delete.
4829 (mips_o32_store_return_value): Clone mips_store_return_value.
4830 (mips_o64_store_return_value): Clone mips_store_return_value.
4831 (mips_eabi_store_return_value): Clone mips_store_return_value.
4832 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4833
48342002-08-18 Aidan Skinner <aidan@velvet.net>
4835
4836 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4837 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4838
48392002-08-18 Aidan Skinner <aidan@velvet.net>
4840
4841 * ada-lang.c: Run through gdb_indent.sh.
4842 * ada-lang.h: Run through gdb_indent.sh.
4843 * ada-tasks.c: Run through gdb_indent.sh.
4844 * ada-typeprint.c: Run through gdb_indent.sh.
4845 * ada-valprint.c: Run through gdb_indent.sh.
4846
48472002-08-18 Andrew Cagney <ac131313@redhat.com>
4848
4849 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4850 ABI.
4851
48522002-08-18 Mark Kettenis <kettenis@gnu.org>
4853
4854 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4855
4856 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4857 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4858
4859 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4860 write_register_gen instead of write_register_bytes.
4861
4862 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4863 i[3456]-*-osf1mk* configurations have been made obsolete.
4864 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4865 i[3456]86-*-osf1mk* hosts obsolete.
4866 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4867 targets obsolete.
4868 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4869 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4870 config/i386/i386m3.mt, config/i386/nm-m3.h,
4871 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4872 config/i386/i386mk.mh, config/i386/i386mk.mt,
4873 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4874 obsolete.
4875 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4876 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4877 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4878
48792002-08-18 Andrew Cagney <ac131313@redhat.com>
4880
4881 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4882 (hppa_value_returned_from_stack): Declare.
4883 (hppa_extract_return_value): Declare.
4884 * config/pa/hppa.mt: New file.
4885 * configure.tgt: Recognize hppa*-*-*.
4886 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4887
48882002-08-18 Mark Kettenis <kettenis@gnu.org>
4889
4890 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4891 comment.
4892
48932002-08-17 Mark Kettenis <kettenis@gnu.org>
4894
4895 * top.c (gdb_rl_operate_and_get_next): Make sure
4896 operate-and-get-next functions correctly even when the history
4897 list is completely filled.
4898
48992002-08-18 Andrew Cagney <ac131313@redhat.com>
4900
4901 * MAINTAINERS (Target Instruction Set Architectures): Rename
4902 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4903 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4904 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4905 already listed under Host/Native.
4906
4907 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4908 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4909 mips*-*-*.
4910
49112002-08-17 Andrew Cagney <ac131313@redhat.com>
4912
4913 * config/ia64/ia64.mt: New file.
4914 * config/alpha/alpha.mt: New file.
4915 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4916 ia64-linux-gnu. Mention that ia64-elf is broken.
4917 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4918
49192002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4920
4921 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4922 generic_func_frame_valid instead of func_frame_valid.
4923
49242002-08-16 Joel Brobecker <brobecker@gnat.com>
4925
4926 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4927 procfs appears to be broken when debugging on multi-processor
4928 machines. So enable software single stepping in order to avoid
4929 using the procfs interface to do next/step operations, using
4930 internal breakpoints instead.
4931
4932 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4933 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4934 make this pc address equal to the value it would have if the
4935 system stepping capability was used. Also set a new flag used
4936 to ensure that we don't readjust the PC one more time later.
4937
4938 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4939 address by DECR_PC_AFTER_BREAK when software single step is
4940 in use for this architecture, as this has already been taken
4941 care of in handle_inferior_event().
4942
49432002-08-16 Joel Brobecker <brobecker@gnat.com>
4944
4945 * infrun.c (handle_inferior_event): Minor reformatting, to make
4946 a rather long condition expression easier to read.
4947
49482002-08-16 Andrew Cagney <ac131313@redhat.com>
4949
4950 * Makefile.in (gdbtk.o): Move to end of file.
4951 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4952 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4953 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4954 (gdbtk-wrapper.o, gdbres.o): Ditto.
4955
49562002-08-16 Andrew Cagney <ac131313@redhat.com>
4957
4958 * Makefile.in (copying.o): Separate out compile rule.
4959 (hpux-thread.o, procfs.o, signals.o): Ditto.
4960 (v850ice.o, z8k-tdep.o): Ditto.
4961 (tui-file.o): Move to TUI section.
4962 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4963 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4964
49652002-08-16 Joel Brobecker <brobecker@gnat.com>
4966
4967 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4968 skip_trampoline_code, for better namespace-proofing.
4969
4970 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4971
49722002-08-16 Joel Brobecker <brobecker@gnat.com>
4973
4974 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4975
49762002-08-16 Joel Brobecker <brobecker@gnat.com>
4977
4978 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4979 signal, check whether we hit a breakpoint before checking for a
4980 single step breakpoint. Otherwise, GDB fails to notice that a
4981 breakpoint has been hit when stepping onto a breakpoint.
4982
49832002-08-16 Keith Seitz <keiths@redhat.com>
4984
4985 * gdb-events.sh (clear_gdb_event_hooks): New function.
4986 * gdb-events.c: Regenerate.
4987 * gdb-events.h: Regenerate.
4988
49892002-08-16 Andrew Cagney <ac131313@redhat.com>
4990
4991 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4992 not_a_sw_breakpoint.
4993 * breakpoint.h (bpstat_stop_status): Add parameter names.
4994
49952002-08-16 Grace Sainsbury <graces@redhat.com>
4996
4997 * remote.c (remote_insert_hw_breakpoint)
4998 (remote_remove_hw_breakpoint): Fix calculation of length field
4999 for Z-packet.
5000
50012002-08-15 Michael Snyder <msnyder@redhat.com>
5002
5003 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5004 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5005 (supply_fpregset): Ditto.
5006
5007 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5008 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5009 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5010 (TARGET_READ_SP): Delete.
5011 (DO_REGISTERS_INFO): Delete.
5012 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5013 Delete.
5014 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5015 from macros to functions.
5016
5017 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5018 (mips_register_convertible, mips_register_convert_to_virtual,
5019 mips_register_convert_to_raw): Make static.
5020 (mips_read_sp): New function.
5021 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5022 (mips_do_registers_info): Make static.
5023 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5024 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5025 (mips_register_convert_from_type, mips_register_convert_to_type):
5026 New functions.
5027 (mips_gdbarch_init): Set up function_start_offset,
5028 register_virtual_size, pc_in_sigtramp.
5029
50302002-08-15 Andrew Cagney <ac131313@redhat.com>
5031
5032 * infcmd.c (vector_info): New function.
5033 (_initialize_infcmd): Add command "info vector".
5034 (print_vector_info): New function.
5035
5036 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5037 * gdbarch.h, gdbarch.c: Regenerate.
5038
50392002-08-15 Andrew Cagney <ac131313@redhat.com>
5040
5041 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5042 ``print_all''. Only print vector registers when ``print_all''.
5043
50442002-08-15 Andrew Cagney <ac131313@redhat.com>
5045
5046 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5047 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5048
5049 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5050 Add `args' parameter.
5051 * gdbarch.h, gdbarch.c: Regenerate.
5052
5053 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5054
5055 * infcmd.c (float_info): Call print_float_info.
5056 (print_float_info): New function. By default, print the
5057 floating-point registers.
5058
5059 * arch-utils.h (default_print_float_info): Delete declaration.
5060 * arch-utils.c (default_print_float_info): Delete function.
5061
50622002-08-16 Mark Kettenis <kettenis@gnu.org>
5063
5064 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5065 out define.
5066
5067 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5068 FRAME.
5069
5070 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5071 * configure.host: Make i[3456]86-*-aix host obsolete.
5072 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5073 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5074 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5075 config/i386/xm-i386aix.h: Make files obsolete.
5076 * i386aix-nat.c: Make file obsolete.
5077 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5078 (i386aix-nat.o): Make target obsolete.
5079
5080 * config/i386/nm-gnu.h: Removed.
5081 * config/i386/nm-i386gnu.h: New file.
5082 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5083 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5084 Moved here from ...
5085 * config/i386/tm-i386gnu.h: ... here. Removed.
5086 * config/i386/xm-i386gnu.h: Removed.
5087 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5088 (NAT_FILE): Set to nm-i386gnu.h.
5089 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5090 * i386-tdep.c: New file.
5091 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5092 (i386gnu-tdep.o): Specify dependencies.
5093
50942002-08-15 Mark Kettenis <kettenis@gnu.org>
5095
5096 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5097 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5098 Adjust a few comments to reflect reality a bit closer.
5099 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5100 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5101 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5102 target_insert_watchpoint, target_remove_watchpoint):
5103 Move defines to ...
5104 * config/i386/nm-i386sco5.h: ... here.
5105 (kernel_u_size): Add prototype. Improve a few comments and add
5106 protection against multiple inclusion.
5107
5108 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5109 out define.
5110
5111 * uw-thread.c (SP_ARG0): Define if not already defined.
5112 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5113
5114 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5115
5116 * config/i386/tm-i386.h: Don't include "regcache.h".
5117
5118 * i387-tdep.h (i387_print_float_info): New prototype.
5119 * i387-tdep.c (print_i387_value, print_i387_ext,
5120 print_i387_status_word, print_i387_control_word): Add `struct
5121 ui_file *' argument and use it for output.
5122 (i387_print_float_info): Renamed from i387_float_info. Add
5123 `struct gdbarch *' and `struct ui_file *' arguments and use the
5124 latter for output.
5125 * i386-tdep.c: Include "i387-tdep.h".
5126 (i386_gdbarch_init): Set print_float_info.
5127 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5128 (FLOAT_INFO): Remove define.
5129
51302002-08-13 Michael Snyder <msnyder@redhat.com>
5131
5132 * mips-tdep.c (mips_push_arguments): Rename to
5133 mips_eabi_push_arguments, and tune for EABI.
5134 (MIPS_REGS_HAVE_HOME_P): Delete.
5135 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5136 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5137 Delete references to mips_regs_have_home_p.
5138
51392002-08-14 Keith Seitz <keiths@redhat.com>
5140
5141 * Makefile.in (install-gdbtk): Create insight plugin directory.
5142 Install plugins.tcl file.
5143
51442002-08-14 Keith Seitz <keiths@redhat.com>
5145
5146 * configure.in: Move SUBDIRS to near top of the file so that
5147 --enable options may add things to it.
5148 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5149 * configure: Regenerate.
5150
51512002-08-13 Michael Snyder <msnyder@redhat.com>
5152
5153 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5154 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5155 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5156
51572002-08-13 Andrew Cagney <ac131313@redhat.com>
5158
5159 * vax-tdep.c (vax_get_saved_register): Delete function.
5160 (vax_gdbarch_init): Update.
5161 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5162 (ns32k_gdbarch_init): Update.
5163 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5164 (alpha_gdbarch_init): Update.
5165
51662002-08-13 Andrew Cagney <cagney@redhat.com>
5167
5168 * regcache.c (init_regcache_descr): Overallocate the
5169 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5170 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5171 nr_raw_registers.
5172 (set_register_cached): Add range checking assertions. Use
5173 current_regcache.
5174
51752002-08-13 Mark Kettenis <kettenis@gnu.org>
5176
5177 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5178 numbers for MMX registers.
5179
51802002-08-13 Andrew Cagney <cagney@redhat.com>
5181
5182 * i386-tdep.c (i386_gdbarch_init): Use
5183 generic_unwind_get_saved_register.
5184
51852002-08-13 Kevin Buettner <kevinb@redhat.com>
5186
5187 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5188 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5189 target vector.
5190 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5191 Delete. Add comment regarding this now-deleted target method.
5192
51932002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5194
5195 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5196 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5197 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5198 real PC and the page number (if it's within the memory bank window).
5199 (m68hc11_pseudo_register_write): Likewise when saving.
5200 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5201 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5202 (m68hc11_register_raw_size): And use 32-bit for it.
5203 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5204 16K memory bank is used by the prog; also use the virtual pc.
5205
52062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5207
5208 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5209 (m68hc11_gdbarch_init): Install it in gdbarch.
5210 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5211 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5212 (MSYMBOL_SIZE): New for documentation.
5213 (insn_return_kind): Enum to specify how a function returns.
5214 (frame_extra_info): Cleanup and record the return mode.
5215 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5216 register in address computation.
5217 (m68hc11_get_return_insn): New to obtain the return instruction used
5218 by the function.
5219 (m68hc11_frame_init_saved_regs): Take into account the return
5220 instruction used by the function for far and interrupt functions.
5221 (m68hc11_init_extra_frame_info): Take into account page register.
5222 (m68hc11_frame_args_address): Adjust according to the return mode.
5223 (show_regs): Print page register only when it's used.
5224
52252002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5226
5227 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5228 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5229 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5230 registers.
5231 (m68hc11_register_raw_size): Likewise.
5232
52332002-08-13 Andrew Cagney <cagney@redhat.com>
5234
5235 * i386-tdep.c (i386_register_name): Handle mmx registers.
5236 (mmx_regnum_p): New function.
5237 (i386_mmx_names): New array.
5238 (mmx_num_regs): New variable.
5239 (i386_pseudo_register_read): New function.
5240 (i386_pseudo_register_write): New function.
5241 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5242
5243 * regcache.c (regcache_raw_read_unsigned): New function.
5244 (regcache_raw_read_signed): New function.
5245 * regcache.h (regcache_raw_read_unsigned): Declare.
5246 (regcache_raw_read_signed): Declare.
5247
52482002-08-13 Andrew Cagney <cagney@redhat.com>
5249
5250 * regcache.c (regcache_raw_read_as_address): Delete function.
5251 (regcache_cooked_read_signed): New function.
5252 (regcache_cooked_read_unsigned): New function.
5253 * regcache.h (regcache_cooked_read_signed): Declare.
5254 (regcache_cooked_read_unsigned): Declare.
5255 (regcache_raw_read_as_address): Delete declaration.
5256
5257 * blockframe.c (generic_read_register_dummy): Use
5258 regcache_cooked_read_unsigned.
5259 * i386-tdep.c (i386_extract_struct_value_address): Use
5260 regcache_cooked_read_unsigned.
5261
52622002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5263
5264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5265 double sizes according to ELF ABI flags.
5266 (gdbarch_tdep): Record elf_flags.
5267
52682002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5269
5270 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5271 (m6812_prolog): They can appear in 68HC12 function prologue.
5272 (m68hc11_frame_chain): Cleanup.
5273
52742002-08-12 Andrew Cagney <cagney@redhat.com>
5275
5276 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5277 declarations.
5278 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5279 (i386_linux_register_raw_size): Delete function.
5280 (i386_linux_init_abi): Update.
5281 * i386-tdep.c (i386_register_raw_size): Delete function.
5282 (i386_register_byte): Delete function.
5283 (i386_gdbarch_init): Update.
5284 (i386_register_size): Delete array.
5285 (i386_register_offset): Delete array.
5286
5287 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5288 (REGISTER_RAW_SIZE): Delete macro.
5289 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5290 (REGISTER_BYTE): Delete macro.
5291
52922002-08-11 Aidan Skinner <aidan@velvet.net>
5293
5294 * ada-lang.c (ada_lookup_partial_symbol)
5295 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5296 prototype names so that grep ^func works properly.
5297
5298 * ada-lang.c (ada_array_element_type)
5299 (ada_lookup_partial_symbol): Fix typos in parameter list.
5300
5301 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5302 Fix prototype names so that grep ^func works properly.
5303
53042002-08-10 Andrew Cagney <cagney@redhat.com>
5305 Elena Zannoni <ezannoni@redhat.com>
5306 Martin M. Hunt <hunt@redhat.com>
5307
5308 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5309 (build_builtin_type_vec128i): Set the vector bit.
5310 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5311 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5312 (build_builtin_type_vec64): New function.
5313 (build_builtin_type_vec64i): New function.
5314 (build_gdbtypes): Initialize builtin_type_vec64 and
5315 builtin_type_vec64i.
5316
53172002-08-09 Andrew Cagney <cagney@redhat.com>
5318
5319 * regcache.c (regcache_dump): Compare the register offset
5320 with REGISTER_BYTE.
5321 * arch-utils.c (generic_register_byte): New function.
5322 * arch-utils.h (generic_register_byte): Declare.
5323 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5324 * gdbarch.h, gdbarch.c: Regenerate.
5325
53262002-08-09 Andrew Cagney <cagney@redhat.com>
5327
5328 * regcache.c: Include "gdbcmd.h"
5329 (_initialize_regcache): Add commands "maintenance print
5330 registers", "maintenance print raw-registers" and "maintenance
5331 print cooked-registers".
5332 (enum regcache_dump_what): Define.
5333 (dump_endian_bytes): New function.
5334 (regcache_dump): New function.
5335 (regcache_print): New function.
5336 (maintenance_print_registers): New function.
5337 (maintenance_print_raw_registers): New function.
5338 (maintenance_print_cooked_registers): New function.
5339 * Makefile.in (regcache.o): Update dependencies.
5340
53412002-08-09 Michael Snyder <msnyder@redhat.com>
5342
5343 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5344 (mips_push_arguments): Correct some comments. Use paddr_nz
5345 for printing addresses in debug output. Replace static
5346 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5347 (mips_n32n64_push_arguments): New function, cloned from
5348 mips_push_arguments and tuned for the n32/n64 ABI.
5349 (mips_push_register): Buffer needs dynamic allocation.
5350 (mips_print_register): Ditto.
5351 (do_gp_register_row): Ditto.
5352 (mips_store_return_value): Ditto.
5353 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5354
53552002-08-09 Don Howard <dhoward@redhat.com>
5356
5357 * memattr.c (mem_info_command): Print special case of upper bound
5358 as max CORE_ADDR + 1.
5359
53602002-08-08 Michael Snyder <msnyder@redhat.com>
5361
5362 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5363 returns structs by ref if they're too big to fit in two registers.
5364
53652002-08-09 Kevin Buettner <kevinb@redhat.com>
5366
5367 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5368 saved regs value.
5369 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5370 mips_find_saved_regs().
5371 (mips_pop_frame): Likewise.
5372
53732002-08-09 Kevin Buettner <kevinb@redhat.com>
5374
5375 * blockframe.c (frame_saved_regs_register_unwind): Revise
5376 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5377 frames are in use.
5378
53792002-08-09 Grace Sainsbury <graces@redhat.com>
5380
5381 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5382 T-packets; the 'a' is not taken as a register number.
5383 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5384 (remote_stopped_data_address): New functions; add to target
5385 vector.
5386 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5387 prototypes to match other implementations of this
5388 function. replace integer argument with pointer -- the length
5389 field in the Z-packet is the length of what is pointed to or 1 if
5390 pointer is null. Add to target vector.
5391 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5392 target vector.
5393
5394 From Mark Salter:
5395 * remote.c (remote_wait): Add support to extract optional
5396 watchpoint information from T-packet. Ignore unrecognized
5397 optional info in T-packet.
5398 (remote_async_wait): Ditto.
5399
54002002-08-09 Corinna Vinschen <vinschen@redhat.com>
5401
5402 * cli/cli-dump.c: Change fopen modes to use binary open modes
5403 as defined in include/fopen-bin.h throughout.
5404
54052002-08-08 Michael Snyder <msnyder@redhat.com>
5406
5407 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5408
54092002-08-08 Kevin Buettner <kevinb@redhat.com>
5410
5411 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5412 assertion failure by returning early after a warning.
5413
54142002-08-08 Kevin Buettner <kevinb@redhat.com>
5415
5416 * mips-tdep.c (mips_find_saved_regs): Make static.
5417 (mips_frame_init_saved_regs): New function.
5418 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5419 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5420 (mips_find_saved_regs): Delete declaration.
5421
54222002-08-08 Grace Sainsbury <graces@redhat.com>
5423
5424 * remote.c (remote_wait, remote_async_wait): Change
5425 thread_num from int to ULONGEST.
5426 (unpack_varlen_hex): Change result parameter from
5427 int * to ULONGEST *.
5428
54292002-08-08 Andrew Cagney <ac131313@redhat.com>
5430
5431 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5432 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5433 powerpc*-*-*.
5434 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5435
54362002-08-08 Andrew Cagney <cagney@redhat.com>
5437
5438 * gcore.c (override_derive_stack_segment): Delete variable.
5439 (preempt_derive_stack_segment): Delete function.
5440 (derive_stack_segment): Delete function.
5441 (default_derive_stack_segment): Renamed to derive_stack_segment.
5442 (override_derive_heap_segment): Delete variable.
5443 (preempt_derive_heap_segment): Delete function.
5444 (derive_heap_segment): Delete function.
5445 (default_derive_heap_segment): Rename to derive_heap_segment.
5446
54472002-08-06 Michael Snyder <msnyder@redhat.com>
5448
5449 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5450 * mips-tdep.c (mips_EABI_use_struct_convention,
5451 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5452 New functions. (mips_use_struct_convention): Delete.
5453 (mips_gdbarch_init): set use_gdbarch_convention.
5454
54552002-08-06 Michael Snyder <msnyder@redhat.com>
5456
5457 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5458 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5459 mips_o32_reg_struct_has_addr): New functions.
5460 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5461
54622002-08-07 Andrew Cagney <ac131313@redhat.com>
5463
5464 * regcache.c (pseudo_register): Delete function.
5465 (fetch_register): Delete function.
5466 (store_register): Delete function.
5467 (regcache_raw_read, legacy_read_register_gen): Use
5468 target_fetch_registers instead of fetch_register.
5469 (legacy_write_register_gen, regcache_raw_write): Use
5470 target_store_register instead of store_register.
5471 (write_register_bytes): Ditto.
5472
5473 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5474 (STORE_PSEUDO_REGISTER): Delete.
5475 * gdbarch.h, gdbarch.c: Regenerate.
5476
54772002-08-06 Corinna Vinschen <vinschen@redhat.com>
5478
5479 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5480 write dump file binary.
5481
54822002-08-05 Michael Snyder <msnyder@redhat.com>
5483
5484 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5485 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5486 (mips_gdbarch_init): Set N32 target to be mips64.
5487
54882002-08-06 Kevin Buettner <kevinb@redhat.com>
5489
5490 * frame.c (find_saved_register): Break out of loop once saved
5491 register address is found. Don't mention sparc in loop comment
5492 anymore.
5493
54942002-08-06 Kevin Buettner <kevinb@redhat.com>
5495
5496 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5497 mips_default_saved_regsize to 8.
5498
54992002-08-06 Andrew Cagney <ac131313@redhat.com>
5500
5501 * gcore.c: Do not include <sys/procfs.h>.
5502 * Makefile.in (gcore.o): Update dependencies.
5503
55042002-08-06 Andrew Cagney <cagney@redhat.com>
5505
5506 * configure.tgt: Make arc-*-* obsolete.
5507 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5508 * MAINTAINERS: Make arc-elf obsolete.
5509 * arc-tdep.c: Make file obsolete.
5510 * config/arc/arc.mt: Ditto.
5511 * config/arc/tm-arc.h: Ditto.
5512
55132002-08-05 Theodore A. Roth <troth@verinet.com>
5514
5515 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5516
55172002-08-05 Andrew Cagney <ac131313@redhat.com>
5518
5519 * mcore-tdep.c (mcore_gdbarch_init): Use
5520 generic_unwind_get_saved_register instead of
5521 generic_get_saved_register.
5522 * v850-tdep.c (v850_gdbarch_init): Ditto.
5523 * frv-tdep.c (frv_gdbarch_init): Ditto.
5524 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5525 * s390-tdep.c (s390_gdbarch_init): Ditto.
5526 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5527 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5528 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5529
55302002-08-05 Joel Brobecker <brobecker@gnat.com>
5531
5532 * objfiles.h: Add missing #include "symfile.h"
5533
5534 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5535
55362002-08-04 Andrew Cagney <ac131313@redhat.com>
5537
5538 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5539 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5540 of FIELD_BITSIZE.
5541
55422002-08-04 Daniel Jacobowitz <drow@mvista.com>
5543
5544 * NEWS: Cleanup and nitpick.
5545
55462002-08-03 Andrew Cagney <ac131313@redhat.com>
5547
5548 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5549
55502002-08-03 Andrew Cagney <ac131313@redhat.com>
5551
5552 * Makefile.in (gdbtk-bp.o): Update dependencies.
5553 (gdbtk-register.o): Ditto.
5554 (gdbtk-varobj.o): Ditto.
5555
55562002-08-03 Andrew Cagney <cagney@redhat.com>
5557
5558 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5559 m68hc11_fetch_pseudo_register.
5560 (m68hc11_pseudo_register_write): Replace
5561 m68hc11_store_pseudo_register.
5562 (m68hc11_gdbarch_init): Update.
5563
5564Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5565
5566 * gdbarch.sh: Include "gdb_string.h".
5567 * gdbarch.c: Regenerate.
5568
5569 * regcache.c: Include "gdb_string.h".
5570 * ax-general.c: Ditto.
5571 * varobj.c: Ditto.
5572 * std-regs.c: Ditto.
5573 * fbsd-proc.c: Ditto.
5574 * thread.c: Ditto.
5575
5576 * Makefile.in (regcache.o): Update dependencies.
5577 (thread.o, gdbarch.o): Ditto.
5578 (ax-general.o, gdbarch.o): Ditto.
5579 (varobj.o, std-regs.o): Ditto.
5580 (fbsd-proc.o): Specify dependencies.
5581
55822002-08-02 Andrew Cagney <cagney@redhat.com>
5583
5584 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5585 regnum.
5586 (regcache_cooked_write): Ditto.
5587
55882002-08-02 Andrew Cagney <ac131313@redhat.com>
5589
5590 * regcache.c (regcache_cooked_read): New function.
5591 (regcache_cooked_write): New function.
5592 (read_register_gen): Rewrite using regcache_cooked_read.
5593 (write_register_gen): Rewrite using regcache_cooked_write.
5594
5595 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5596 Declare.
5597
55982002-08-02 Andrew Cagney <cagney@redhat.com>
5599
5600 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5601 Replace the architecture methods register_read and register_write.
5602 * gdbarch.h, gdbarch.c: Regenerate.
5603 * regcache.c (init_regcache_descr): Update.
5604 (read_register_gen): Update.
5605 (write_register_gen): Update.
5606 (supply_register): Update comment.
5607
5608 * sh-tdep.c (sh_gdbarch_init): Update.
5609 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5610 `regcache' and `gdbarch' parameters. Make `buffer' a void
5611 pointer. Update code.
5612 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5613 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5614 void pointer. Update code.
5615 (sh64_register_write): Delete.
5616 (sh4_register_read): Delete.
5617 (sh64_register_read): Delete.
5618 (sh4_register_write): Delete.
5619 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5620 void pointer, `to' parameter a void pointer.
5621 (sh_sh64_register_convert_to_raw): Ditto.
5622
56232002-08-01 Kevin Buettner <kevinb@redhat.com>
5624
5625 * mips-tdep.c (mips_register_virtual_type): Use architecture
5626 invariant return values.
5627
56282002-08-01 Andrew Cagney <cagney@redhat.com>
5629
5630 * linux-proc.c: Include "gdb_string.h".
5631 * Makefile.in (linux-proc.o): Update dependency list.
5632
56332002-08-01 Kevin Buettner <kevinb@redhat.com>
5634
5635 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5636 comment.
5637
56382002-08-01 Grace Sainsbury <graces@redhat.com>
5639
5640 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5641 to_insert_watchpoint, to_remove_watchpoint,
5642 to_stopped_by_watchpoint, to_stopped_data_address,
5643 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5644 target vecctor. Define their corresponding macros so they call
5645 them.
5646
5647 * target.c: Add default and debug versions of for
5648 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5649 to_insert_watchpoint, to_remove_watchpoint,
5650 to_stopped_by_watchpoint, to_stopped_data_address,
5651 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5652
56532002-08-01 Kevin Buettner <kevinb@redhat.com>
5654
5655 * mips-tdep.c (mips_register_virtual_type): New function.
5656 (mips_gdbarch_init): Register mips_register_virtual_type()
5657 with gdbarch machinery.
5658 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5659 this file instead of tm-bigmips.h.
5660 (MIPS_REGSIZE): Delete this macro.
5661 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5662 multiarch version in mips-tdep.c will be found.
5663
56642002-08-01 Andrew Cagney <cagney@redhat.com>
5665
5666 * NEWS: Menion that CHILL has been made obsolete.
5667
5668 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5669 * stabsread.c (read_range_type): Ditto.
5670 * gdbtypes.h: Ditto.
5671 * language.c (binop_type_check): Ditto.
5672 (binop_result_type): Ditto.
5673 (integral_type): Ditto.
5674 (character_type): Ditto.
5675 (string_type): Ditto.
5676 (boolean_type): Ditto.
5677 (structured_type): Ditto.
5678 (lang_bool_type): Ditto.
5679 (binop_type_check): Ditto.
5680 * language.h (_LANG_chill): Ditto.
5681 * dwarfread.c (set_cu_language): Ditto.
5682 * dwarfread.c (CHILL_PRODUCER): Ditto.
5683 * dwarfread.c (handle_producer): Ditto.
5684 * expression.h (enum exp_opcode): Ditto.
5685 * eval.c: Ditto for comments.
5686 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5687 * expprint.c (print_subexp): Ditto.
5688 (print_subexp): Ditto.
5689 * valops.c (value_cast): Ditto.
5690 (search_struct_field): Ditto.
5691 * value.h (COERCE_VARYING_ARRAY): Ditto.
5692 * symfile.c (init_filename_language_table): Ditto.
5693 (add_psymbol_with_dem_name_to_list): Ditto.
5694 * valarith.c (value_binop): Ditto.
5695 (value_neg): Ditto.
5696 * valops.c (value_slice): Ditto.
5697 * symtab.h (union language_specific): Ditto.
5698 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5699 (SYMBOL_DEMANGLED_NAME): Ditto.
5700 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5701 * defs.h (enum language): Ditto.
5702 * symtab.c (got_symtab): Ditto.
5703 * utils.c (fprintf_symbol_filtered): Ditto.
5704
5705 * ch-typeprint.c: Make file obsolete.
5706 * ch-valprint.c: Make file obsolete.
5707 * ch-lang.h: Make file obsolete.
5708 * ch-exp.c: Make file obsolete.
5709 * ch-lang.c: Make file obsolete.
5710
5711 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5712 CHILL_LIB.
5713 (TARGET_FLAGS_TO_PASS): Ditto.
5714 (CHILLFLAGS): Obsolete.
5715 (CHILL): Obsolete.
5716 (CHILL_FOR_TARGET): Obsolete.
5717 (CHILL_LIB): Obsolete.
5718 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5719 ch-valprint.c.
5720 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5721 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5722 ch-lang.o.
5723 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5724 targets.
5725
57262002-07-31 Joel Brobecker <brobecker@gnat.com>
5727
5728 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5729 This does not change anything at the moment, but will be helpful
5730 later when full Ada support is integrated.
5731
57322002-07-31 Kevin Buettner <kevinb@redhat.com>
5733
5734 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5735 help message.
5736
57372002-07-31 Kevin Buettner <kevinb@redhat.com>
5738
5739 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5740 and save it in a local variable. Use variable in later test.
5741
57422002-07-31 Kevin Buettner <kevinb@redhat.com>
5743
5744 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5745 test. (Thanks to Daniel Jacobowitz.)
5746
57472002-07-31 Kevin Buettner <kevinb@redhat.com>
5748
5749 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5750 (mips_abi_strings): Add "n64".
5751 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5752
57532002-07-31 Kevin Buettner <kevinb@redhat.com>
5754
5755 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5756 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5757
57582002-07-31 Kevin Buettner <kevinb@redhat.com>
5759
5760 * utils.c (host_pointer_to_address, address_to_host_pointer):
5761 Use gdb_assert() instead of explicit call to internal_error().
5762
57632002-07-30 Kevin Buettner <kevinb@redhat.com>
5764
5765 * Makefile.in (rs6000-nat.o): Update dependencies.
5766
5767 From Nicholas Duffek:
5768 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5769 (aix-thread.o): New rule.
5770 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5771 * config/powerpc/aix432.mh: New file.
5772
57732002-07-30 Daniel Jacobowitz <drow@mvista.com>
5774
5775 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5776 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5777 (fetch_core_registers, ppc_linux_supply_gregset)
5778 (ppc_linux_supply_fpregset): New functions.
5779 (ppc_linux_regset_core_fns): New.
5780 (_initialize_ppc_linux_tdep): Call add_core_fns.
5781 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5782 and ppc_linux_supply_gregset.
5783 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5784 (supply_fpregset): Call ppc_linux_supply_fpregset.
5785 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5786 corelow.o.
5787 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5788
57892002-07-30 Daniel Jacobowitz <drow@mvista.com>
5790
5791 * symtab.c (lookup_symbol): Demangle before lowercasing.
5792
57932002-07-30 Andrew Cagney <ac131313@redhat.com>
5794
5795 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5796 declaration.
5797 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5798 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5799 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5800 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5801 "gdb_string.h".
5802 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5803 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5804 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5805 (avr-tdep.o, mon960-rom.o): Ditto.
5806 (aout_stabs_gnu_h): Define.
5807 (symtab_h): Remove $(gdb_obstack_h).
5808
58092002-07-30 Jim Blandy <jimb@redhat.com>
5810
5811 Patch from David Carlton <carlton@math.stanford.edu>:
5812 * gdbinit.in: Move the `dir' commands that add GDB's own source
5813 directory to the search path to the end, so that the `gdb' source
5814 directory will be searched first.
5815
58162002-07-29 Andrew Cagney <ac131313@redhat.com>
5817
5818 * gdb_obstack.h: New file.
5819 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5820 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5821 * objfiles.h: Include "gdb_obstack.h".
5822 * Makefile.in (gdb_obstack_h): Define.
5823 (symtab_h): Add $(gdb_obstack_h).
5824 (objfiles_h): Add $(gdb_obstack_h).
5825
5826 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5827 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5828 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5829 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5830 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5831 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5832 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5833 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5834
5835 * Makefile.in (bcache.o): Update dependencies.
5836 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5837 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5838 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5839 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5840 (stabsread.o, symfile.o, symmisc.o): Ditto.
5841 (symtab.o, typeprint.o, macroexp.o): Ditto.
5842 (macrotab.o, mdebugread.o): Ditto.
5843 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5844 (coff_ecoff_h, aout_aout64_h): Define.
5845 (aout_stabs_gnu_h, libaout_h): Define.
5846
58472002-07-29 Andrew Cagney <cagney@redhat.com>
5848
5849 * regcache.c (struct regcache_descr): Rename nr_registers to
5850 nr_cooked_registers. Revise comments describing the structure
5851 member fields.
5852 (init_regcache_descr): Update.
5853 (init_legacy_regcache_descr): Update.
5854 (read_register_gen, write_register_gen): When a cooked register in
5855 the raw register range, directly access the value from the raw
5856 register cache.
5857
58582002-07-29 Andrew Cagney <ac131313@redhat.com>
5859
5860 * z8k-tdep.c: Do not include "obstack.h".
5861 * h8300-tdep.c, h8500-tdep.c: Ditto.
5862 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5863 * valprint.c, v850-tdep.c: Ditto.
5864 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5865 * mn10200-tdep.c: Ditto.
5866
5867 * Makefile.in (z8k-tdep.o): Update dependencies.
5868 (m68hc11-tdep.o, valprint.o): Ditto.
5869 (v850-tdep.o, d10v-tdep.o): Ditto.
5870 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5871 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5872 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5873 (sh_opc_h, gdb_sim_sh_h): Define.
5874 (elf_sh_h, elf_bfd_h): Define.
5875 (opcode_m68hc11_h): Define.
5876 (OPCODES_SRC, OPCODES_DIR): define.
5877 (OPCODES): Use $(OPCODES_DIR).
5878 (gdb_sim_d10v_h): Rename sim_d10v_h.
5879 (gdb_sim_arm_h): Rename sim_arm_h.
5880
58812002-07-26 Kevin Buettner <kevinb@redhat.com>
5882
5883 * utils.c (host_pointer_to_address, address_to_host_pointer):
5884 Change internal_error() message to indicate function responsible
5885 for the error.
5886
58872002-07-26 Kevin Buettner <kevinb@redhat.com>
5888
5889 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5890 calls to local_hex_string_custom().
5891
58922002-07-26 Kevin Buettner <kevinb@redhat.com>
5893
5894 * irix5-nat.c: Move IRIX shared library support from here...
5895 * solib-irix.c: ...to here. Revised substantially to work with
5896 generic solib framework.
5897
5898 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5899 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5900 * mips-irix-tdep.c: New file.
5901
5902 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5903 (mips-irix-tdep.o, solib-irix.o): New rules.
5904 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5905 solib-irix.o.
5906 * config/mips/irix6.mt (TDEPFILES): Likewise.
5907 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5908
59092002-07-26 Kevin Buettner <kevinb@redhat.com>
5910
5911 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5912 disabled (via ``#if 0'') includes.
5913
59142002-07-26 Kevin Buettner <kevinb@redhat.com>
5915
5916 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5917 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5918 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5919 Add support for the fpscr register.
5920 * rs6000-nat.c (regmap, fetch_inferior_registers)
5921 (store_inferior_registers, fetch_core_registers): Likewise.
5922
59232002-07-26 Kevin Buettner <kevinb@redhat.com>
5924
5925 * rs6000-nat.c (language.h): Include.
5926 (special_regs): Delete this array.
5927 (regmap): New function.
5928 (fetch_register, store_register): Use regmap() to map gdb
5929 register numbers to ptrace register numbers. Also, use
5930 outputs from regmap() to make decisions regarding type of
5931 ptrace() call to make. In particular, don't compare against
5932 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5933 (fetch_inferior_registers, store_inferior_registers): Where
5934 possible, obtain register numbers from tdep struct. Don't
5935 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5936 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5937 (LAST_UISA_SP_REGNUM): Delete.
5938
59392002-07-25 Kevin Buettner <kevinb@redhat.com>
5940
5941 * rs6000-nat.c (ppc-tdep.h): Include.
5942 (fetch_registers, store_register, fetch_core_registers): Don't
5943 access registers[] directly. Instead, use supply_register() or
5944 regcache_collect() as appropriate.
5945 (find_toc_address): Format hex address with local_hex_string().
5946
59472002-07-25 Andrew Cagney <ac131313@redhat.com>
5948
5949 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5950 bfd/elf32-frv.c.
5951
59522002-07-24 Tom Tromey <tromey@redhat.com>
5953
5954 * jv-exp.y: Marked all strings with _().
5955 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5956 internal_error.
5957 (MethodInvocation, CastExpression, parse_number, yyerror,
5958 java_type_from_name, push_expression_name, yylex): Typo fixes.
5959
59602002-07-24 Daniel Jacobowitz <drow@mvista.com>
5961
5962 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5963 (tee_file_flush, tee_file_write, tee_file_fputs)
5964 (tee_file_isatty): New.
5965 * ui-file.h (tee_file_new): Add prototype.
5966
59672002-07-24 Aidan Skinner <aidan@velvet.net>
5968
5969 * ada-lang.c: Change k&r style function definitions to prototyped
5970 form.
5971 * ada-typeprint.c: Change k&r style function definitions to prototyped
5972 form.
5973 * ada-valprint.c: Change k&r style function definitions to prototyped
5974 form.
5975
59762002-07-24 Andrew Cagney <cagney@redhat.com>
5977
5978 * README: Remove reference to remote-bug.
5979 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5980 remote-bug.c.
5981 (m88k-nat.o): Delete rule.
5982 (m88k-tdep.o): Delete rule.
5983 (remote-bug.o): Delete rule.
5984 * MAINTAINERS: Mark as obsolete.
5985 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5986 * m88k-tdep.c: Make file obsolete.
5987 * config/m88k/m88k.mh: Ditto.
5988 * config/m88k/delta88v4.mh: Ditto.
5989 * config/m88k/delta88v4.mt: Ditto.
5990 * config/m88k/delta88.mt: Ditto.
5991 * config/m88k/delta88.mh: Ditto.
5992 * remote-bug.c: Ditto.
5993 * config/m88k/tm-delta88.h: Ditto.
5994 * config/m88k/nm-delta88v4.h: Ditto.
5995 * config/m88k/xm-delta88.h: Ditto.
5996 * config/m88k/xm-dgux.h: Ditto.
5997 * config/m88k/tm-m88k.h: Ditto.
5998 * config/m88k/nm-m88k.h: Ditto.
5999 * config/m88k/tm-delta88v4.h: Ditto.
6000 * m88k-nat.c: Ditto.
6001 * cxux-nat.c: Ditto.
6002 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6003 and m88*-*-* obsolete.
6004 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6005 m88*-*-* obsolete.
6006
60072002-07-24 Andrew Cagney <cagney@redhat.com>
6008
6009 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6010 constant. Same for local pointer variables.
6011 (extract_signed_integer): Ditto.
6012 * defs.h (extract_unsigned_integer): Update.
6013 (extract_signed_integer): Update.
6014
60152002-07-24 Andrew Cagney <cagney@redhat.com>
6016
6017 * regcache.c (regcache_raw_write): Change buf parameter to a
6018 constant void pointer.
6019 (regcache_raw_read): Change buf parameter to a void pointer.
6020 (legacy_write_register_gen): Change myaddr parameter a constant
6021 void pointer.
6022 (supply_register): Change val parameter to a const void pointer.
6023 * regcache.h (regcache_raw_write): Update declaration.
6024 (regcache_raw_read): Update declaration.
6025 (supply_register): Update declaration.
6026
60272002-07-24 Tom Tromey <tromey@redhat.com>
6028
6029 * defs.h (gdb_readline_wrapper): Declare.
6030 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6031 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6032 * top.c (gdb_readline_wrapper): New function.
6033 (command_line_input): Use it.
6034
60352002-07-24 Andrew Cagney <cagney@redhat.com>
6036
6037 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6038 regcache_read and regcache_write.
6039 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6040 * regcache.c: Update.
6041 * sh-tdep.c (sh64_push_arguments): Update comment.
6042 (sh_pseudo_register_read): Update.
6043 (sh_pseudo_register_write): Update.
6044 (sh4_register_read): Update.
6045 (sh4_register_write): Update.
6046 (sh64_pseudo_register_read): Update.
6047 (sh64_pseudo_register_write): Update.
6048 (sh64_register_read): Update.
6049 (sh64_register_write): Update.
6050 * i386-tdep.c (i386_extract_return_value): Update.
6051 (i386_extract_struct_value_address): Update.
6052 (i386_extract_return_value): Update.
6053 * blockframe.c (generic_read_register_dummy): Update.
6054 (generic_call_dummy_register_unwind): Update
6055 * infrun.c (write_inferior_status_register): Update.
6056
60572002-07-23 Jim Blandy <jimb@redhat.com>
6058
6059 * parser-defs.h (expression_context_pc): Make this extern.
6060 (Thanks to Michael Snyder.)
6061
60622002-07-23 Andrew Cagney <ac131313@redhat.com>
6063
6064 GDB 5.2.1 released from 5.2 branch.
6065 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6066 * README: Update to mention 5.2.1.
6067
60682002-07-23 Mark Salter <msalter@redhat.com>
6069
6070 * remote.c (remote_read_bytes): Fix check for error.
6071
60722002-07-22 Kevin Buettner <kevinb@redhat.com>
6073
6074 * aix-thread.c (language.h): Include.
6075 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6076 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6077 Print newlines at end of debug messages.
6078 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6079 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6080
60812002-07-22 Kevin Buettner <kevinb@redhat.com>
6082
6083 * aix-thread.c (ppc-tdep.h): Include.
6084 (special_register_p): New function.
6085 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6086 (store_regs_user_thread): Use register number information from
6087 gdbarch_tdep struct instead of hardcoded offsets relative to
6088 FIRST_UISA_SP_REGNUM.
6089 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6090 special_register_p() instead of using FPLAST_REGNUM and
6091 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6092 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6093 will be MQ's register number.
6094
60952002-07-22 Michael Snyder <msnyder@redhat.com>
6096
6097 * aix-thread.c (ops): Rename to aix_thread_ops.
6098 (base_ops): Rename to base_target.
6099 (ops_attach): Rename to aix_thread_attach.
6100 (ops_detach): Rename to aix_thread_detach.
6101 (ops_resume): Rename to aix_thread_detach.
6102 (ops_wait): Rename to aix_thread_wait.
6103 (ops_kill): Rename to aix_thread_kill.
6104 (init_ops): Rename to init_aix_thread_ops.
6105 (ops_fetch_register): Rename to aix_thread_fetch_register.
6106 (ops_store_register): Rename to aix_thread_store_register.
6107 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6108 (ops_thread_alive): Rename to aix_thread_thread_alive.
6109 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6110 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6111 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6112 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6113 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6114 (store_regs_lib): Rename to store_regs_user_thread.
6115 (store_regs_kern): Rename to store_regs_kernel_thread.
6116
61172002-07-22 Michael Snyder <msnyder@redhat.com>
6118
6119 * aix-thread.c (ops_prepare_to_store): Eliminate.
6120 (init_ops): Don't initialize ops.prepare_to_store.
6121 (store_regs_kern): Pre-fetch register buffers from child,
6122 because some registers may not be in the cache. Copy
6123 regs from register cache only if they are cached.
6124 (store_regs_lib): Copy regs from register cache only
6125 if they are cached.
6126 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6127 fill_gprs64): Ditto.
6128
61292002-07-22 Kevin Buettner <kevinb@redhat.com>
6130
6131 * aix-thread.c (gdb_assert.h): Include.
6132 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6133 register sizes (from register cache) match size of buffer holding
6134 register data.
6135 (fill_sprs32): Change parameter types to match those in the ptrace()
6136 buffer.
6137 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6138 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6139
61402002-07-22 Michael Snyder <msnyder@redhat.com>
6141
6142 * aix-thread.c (supply_sprs64): Cosmetic change.
6143 (supply_sprs32): Cosmetic change.
6144 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6145 (fill_sprs64): Use regcache_collect instead of read_register.
6146 (store_regs_lib): Use regcache_collect instead of
6147 read_register. Use fill_sprs32 instead of fill_sprs64,
6148 if debugging a 32-bit architecture.
6149 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6150 out of the register cache, instead of passing a pointer into
6151 the register cache directly to ptrace. Use regcache_collect
6152 insteaad of read_register.
6153 (ops_prepare_to_store): Use target_read_registers instead
6154 of read_register_bytes.
6155
61562002-07-20 Aidan Skinner <aidan@velvet.net>
6157
6158 * MAINTAINERS: Add self under write after approval.
6159
61602002-07-20 Aidan Skinner <aidan@velvet.net>
6161
6162 * ada-tasks.c: Change k&r style function definitions to prototyped
6163 form.
6164
61652002-07-19 Andrew Cagney <ac131313@redhat.com>
6166
6167 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6168 * x86-64-tdep.c: Include "objfiles.h".
6169 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6170 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6171
61722002-07-17 Michal Ludvig <michal@suse.cz>
6173
6174 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6175 (update_context): Initialise cfa variable.
6176
61772002-07-17 Michael Snyder <msnyder@redhat.com>
6178
6179 * aix-thread.c: Shorten some long lines.
6180 Bring comments into line with code spec.
6181
61822002-07-18 Joel Brobecker <brobecker@gnat.com>
6183
6184 * infrun.c: Re-indent using gdb_indent.sh.
6185
61862002-07-18 Joel Brobecker <brobecker@gnat.com>
6187
6188 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6189 Leave the indentation temporarily untouched, to minimize the diffs.
6190
61912002-07-18 Elena Zannoni <ezannoni@redhat.com>
6192
6193 * stabsread.c: Make os9k sections of the code obsolete,
6194 for real this time.
6195 * stabsread.h: Make os9k sections of the code obsolete.
6196
61972002-07-18 Michal Ludvig <mludvig@suse.cz>
6198
6199 * linux-low.c (regsets_store_inferior_registers): Add free()
6200 at the end of a loop to prevent memory leak.
6201 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6202 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6203 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6204 line a comment.
6205 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6206
62072002-07-17 Jim Blandy <jimb@redhat.com>
6208
6209 * macrocmd.c (info_macro_command): Remove newline from error
6210 message.
6211
62122002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6213
6214 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6215 (sh_gdbarch_init): Use it for sh-dsp.
6216
62172002-07-16 Kevin Buettner <kevinb@redhat.com>
6218
6219 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6220 64-bit DWARF2 format.
6221
62222002-07-16 Joel Brobecker <brobecker@gnat.com>
6223
6224 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6225 <sys/proc.h> when not available.
6226
62272002-07-16 Andrew Cagney <ac131313@redhat.com>
6228
6229 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6230 * stabsread.c: Make os9k sections of the code obsolete.
6231 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6232 * config/i386/i386os9k.mt: Make file obsolete.
6233 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6234 (COMMON_OBS): Remove os9kread.o
6235 (SFILES): Remove os9kread.c.
6236 (os9kread.o, remote-os9k.o): Make target obsolete.
6237 * remote-os9k.c: Make file obsolete.
6238 * os9kread.c: Make file obsolete.
6239 * Makefile.in
6240
62412002-07-16 Andrew Cagney <ac131313@redhat.com>
6242
6243 * NEWS: Mention that the FR30 has been made obsolete.
6244 * fr30-tdep.c: Make file obsolete.
6245 * config/fr30/tm-fr30.h: Ditto.
6246 * config/fr30/fr30.mt: Ditto.
6247 * configure.tgt: Make fr30-*-elf obsolete.
6248 * MAINTAINERS: Make fr30-elf obsolete.
6249
62502002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6251
6252 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6253 found is not inside a section.
6254
62552002-07-15 Kevin Buettner <kevinb@redhat.com>
6256
6257 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6258 strerror().
6259 (pdc_realloc): Use xrealloc() instead of realloc().
6260
62612002-07-15 Kevin Buettner <kevinb@redhat.com>
6262
6263 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6264 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6265 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6266 macros.
6267
62682002-07-15 Kevin Buettner <kevinb@redhat.com>
6269
6270 * aix-thread.c (ptrace_check): Eliminate goto.
6271 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6272 problem.
6273
62742002-07-15 Kevin Buettner <kevinb@redhat.com>
6275
6276 * aix-thread.c (gdbcmd.h): Include.
6277 (DEBUG, DBG, DBG2, dbg): Eliminate.
6278 (debug_aix_thread): New static global.
6279 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6280 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6281 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6282 invocations to DBG and DBG2 macros to test against
6283 ``debug_aix_thread'' and call fprintf_unfiltered().
6284 (_initialize_aix_thread): Add new command "set debug aix-thread".
6285
62862002-07-15 Andrew Cagney <ac131313@redhat.com>
6287
6288 From Gerhard Tonn <TON@de.ibm.com>:
6289 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6290 instead of supply_register.
6291
62922002-07-15 Andrew Cagney <ac131313@redhat.com>
6293
6294 * dwarf2cfi.c: Include "gdb_assert.h".
6295 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6296 non-NULL.
6297 (update_context): Do not use __func__. Add missing ``break''.
6298 (update_context): Do not use __func__.
6299
63002002-07-15 Elena Zannoni <ezannoni@redhat.com>
6301
6302 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6303 and its setting. Set gdbarch instruction printing functions
6304 directly. For non-rs6000 case use new function
6305 gdb_print_insn_powerpc.
6306 (gdb_print_insn_powerpc): New function.
6307
63082002-07-13 Andrew Cagney <ac131313@redhat.com>
6309
6310 * NEWS: Mention that the d30v has been marked obsolete.
6311 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6312 * configure.tgt: Mark d30v-*-* as obsolete.
6313 * d30v-tdep.c: Mark file as obsolete.
6314 * config/d30v/d30v.mt: Ditto.
6315 * config/d30v/tm-d30v.h: Ditto.
6316
63172002-07-13 Aidan Skinner <aidan@velvet.net>
6318
6319 * ada-tasks.c (add_task_entry): replace calls to
6320 malloc() with xmalloc
6321 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6322
6323 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6324 ada_finish_decode_line_1, all_sals_for_line
6325 ada_breakpoint_rewrite): replace calls to free() with xfree()
6326
63272002-07-12 Kevin Buettner <kevinb@redhat.com>
6328
6329 From Nicholas Duffek (with minor changes by Martin Hunt,
6330 Louis Hamilton, and Kevin Buettner):
6331 * aix-thread.c: New file.
6332
63332002-07-12 Petr Sorfa <petrs@caldera.com>
6334
6335 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6336 complaint for invalid attribute class or form.
6337 (read_func_scope): DW_AT_frame_base
6338 better handling of DW_AT_block*.
6339 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6340 better handling of DW_AT_block*.
6341 (read_common_block): DW_AT_location
6342 better handling of DW_AT_block*.
6343 (read_partial_die): DW_AT_location better handling
6344 of DW_AT_block*.
6345 (new_symbol): DW_AT_external better handling of
6346 DW_AT_block*. Proper initialization of variable
6347 "addr".
6348 (attr_form_is_block): New function that returns true
6349 if the attribute's form is of DW_FORM_block*.
6350
63512002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6352
6353 * valops.c (find_method_list): Remove comment about
6354 removed STATIC_MEMFUNCP argument.
6355 (value_find_oload_method_list): Likewise.
6356
63572002-07-12 Kevin Buettner <kevinb@redhat.com>
6358
6359 From Nicholas Duffek:
6360 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6361 target_new_objfile_hook.
6362
63632002-07-12 Kevin Buettner <kevinb@redhat.com>
6364
6365 From Nicholas Duffek:
6366 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6367 csect.
6368
63692002-07-12 Andrew Cagney <cagney@redhat.com>
6370
6371 * MAINTAINERS: Mention --enable-sim-build-warnings.
6372 (m68hc11-elf): Disable sim build warnings.
6373 (m32r-elf): Mark as broken obsolete candidate.
6374 (x86_64-linux-gnu): Mark as buildable with -Werror.
6375 (arm-elf): Change -w to ``,'' which enables warnings but not
6376 -Werror.
6377
63782002-07-12 Andrew Cagney <ac131313@redhat.com>
6379
6380 * bcache.h: Update copyright.
6381 (struct bstring, struct bcache): Move definition to "bcache.c".
6382 Replaced by opaque declaration.
6383 (bcache_xfree): Replace free_bcache.
6384 (bcache_xmalloc, bcache_memory_used): Declare.
6385
6386 * bcache.c: Update copyright.
6387 (struct bstring, struct bcache): Moved to here from "bcache.h".
6388 Update comments.
6389 (bcache_xmalloc, bcache_memory_used): New functions.
6390 (bcache_xfree): Replace function free_bcache.
6391
6392 * Makefile.in (objfiles.o): Add $(bcache_h).
6393 (objfiles_h): Remove $(bcache_h).
6394 (symfile.o): Add $(bcache_h).
6395
6396 * symmisc.c: Update copyright.
6397 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6398 (print_objfile_statistics): Use bcache_memory_used.
6399
6400 * symfile.c: Include "bcache.h".
6401 (reread_symbols): Use bcache_xfree.
6402 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6403 (add_psymbol_to_list): Pass psymbol_cache by value.
6404 (add_psymbol_with_dem_name_to_list): Ditto.
6405
6406 * objfiles.h: Update copyright.
6407 (struct bcache): Declare opaque. Do not include "bcache.h".
6408 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6409 bcache'' pointers.
6410 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6411
6412 * objfiles.c: Include "bcache.h". Update copyright.
6413 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6414 macro_cache.
6415 (free_objfile): Use bcache_xfree.
6416
64172002-07-11 Grace Sainsbury <graces@redhat.com>
6418
6419 * monitor.c (monitor_fetch_register): Make name a constant.
6420 (monitor_store_register): Same.
6421
64222002-07-11 Daniel Jacobowitz <drow@mvista.com>
6423
6424 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6425 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6426 (finish_block) For non-function blocks, hash the symbol table. For
6427 function blocks, mark the symbol table as unhashed.
6428 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6429 (msymbol_hash_iw): Likewise.
6430 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6431 value.
6432 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6433 (lookup_minimal_symbol): Likewise for both.
6434 * symtab.h (struct block): Add `hashtable' flag. Comment the
6435 hashtable.
6436 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6437 (ALL_BLOCK_SYMBOLS): Update.
6438 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6439 (struct symbol): Add `hash_next' pointer.
6440 * symtab.c (lookup_block_symbol): Search using the hash table when
6441 possible.
6442 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6443 (search_symbols, find_addr_symbol): Likewise.
6444
6445 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6446 (read_dst_symtab): Likewise.
6447 * jv-lang.c (get_java_class_symtab): Likewise.
6448 * mdebugread.c: Include "gdb_assert.h".
6449 (shrink_block): Assert that the block being modified is not hashed.
6450 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6451 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6452 symbols.
6453 (dump_symtab): Recognize hashed blocks.
6454 * printcmd.c (print_frame_args): Assert that function blocks do not
6455 have hashed symbol tables.
6456 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6457 (fill_in_ada_prototype, debug_print_block): Likewise.
6458 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6459
64602002-07-11 Corinna Vinschen <vinschen@redhat.com>
6461
6462 * stack.c (print_frame): Use result of frame_address_in_block()
6463 instead of fi->pc when evaluating symbols.
6464 (backtrace_command_1): Ditto.
6465
64662002-07-11 Andrew Cagney <cagney@redhat.com>
6467
6468 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6469 Make static.
6470
6471 * arm-tdep.c (arm_register_name): Make return type constant.
6472
64732002-07-10 Andrew Cagney <ac131313@redhat.com>
6474
6475 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6476 prototype.
6477 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6478 * s390-tdep.c (s390_fp_regnum): Ditto.
6479 (s390_read_fp): Ditto.
6480 (s390_pop_frame): Ditto.
6481 (_initialize_s390_tdep): Ditto.
6482 * remote.c (get_remote_state): Ditto.
6483 * procfs.c (mappingflags): Ditto.
6484 * memattr.c (_initialize_mem): Ditto.
6485 * mcore-tdep.c (mcore_pop_frame): Ditto.
6486 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6487 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6488 * language.c (set_case_str): Ditto.
6489 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6490 * frv-tdep.c (new_variant): Ditto.
6491 (frv_stopped_data_address): Ditto.
6492 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6493 (context_alloc): Ditto.
6494 (frame_state_alloc): Ditto.
6495 (unwind_tmp_obstack_init): Ditto.
6496 (unwind_tmp_obstack_free): Ditto.
6497 (cfi_read_fp): Ditto.
6498 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6499 (cris_pop_frame): Ditto.
6500 * c-lang.c (scanning_macro_expansion): Ditto.
6501 (finished_macro_expansion): Ditto.
6502 (c_preprocess_and_parse): Ditto.
6503 * gdbarch.sh: Ditto.
6504 * gdbarch.h, gdbarch.c: Regenerate.
6505 * config/mn10200/tm-mn10200.h: Adjust indentation.
6506 * target.c: Adjust indentation.
6507 * symtab.h: Adjust indentation.
6508 * stabsread.h: Adjust indentation.
6509 * remote-es.c: Adjust indentation.
6510 * os9kread.c: Adjust indentation.
6511
65122002-07-10 Andrew Cagney <ac131313@redhat.com>
6513
6514 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6515 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6516
65172002-07-10 Grace Sainsbury <graces@redhat.com>
6518
6519 * NEWS: Mention m68k, mcore multi-arching.
6520 * MAINTAINERS: Change status of m68k, mcore to reflect
6521 multi-arching.
6522
65232002-07-10 Daniel Jacobowitz <drow@mvista.com>
6524
6525 * valops.c (find_overload_match): Free oload_syms.
6526
65272002-07-09 Joel Brobecker <brobecker@gnat.com>
6528
6529 Define HAVE_SYS_PROC_H if sys/proc.h exists
6530 * configure.in: Add check for sys/proc.h
6531 * config.in: Regenerate.
6532 * configure: Regenerate.
6533
65342002-07-09 Grace Sainsbury <graces@redhat.com>
6535
6536 * config/m68k/tm-m68k.h: Remove macros wrapped in
6537 #if !GDB_MULTI_ARCH.
6538
65392002-07-08 Andrew Cagney <ac131313@redhat.com>
6540
6541 * config.in, configure: Regenerate.
6542
65432002-07-08 Mark Kettenis <kettenis@gnu.org>
6544
6545 * dwarf2cfi.c: Include "gcore.h".
6546 (execute_stack_op): Fix implementation of the
6547 DW_OP_deref and DW_OP_deref_size operators by letting do their
6548 lookup in the target.
6549
65502002-07-07 Mark Kettenis <kettenis@gnu.org>
6551
6552 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6553 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6554 tdep->sc_sp_offset.
6555
65562002-07-05 Daniel Jacobowitz <drow@mvista.com>
6557
6558 Fix PR gdb/595, gdb/602
6559 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6560 Don't call value_cast, just read the vtable pointer; update comments
6561 to match.
6562
65632002-07-05 Grace Sainsbury <graces@redhat.com>
6564
6565 * config/mcore/tm-mcore.h: Remove file.
6566 * config/mcore/mcore.mt: Remove definition of TM_FILE
6567 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6568
65692002-07-05 Mark Kettenis <kettenis@gnu.org>
6570
6571 * i386bsd-tdep.c: Include "gdb_string.h".
6572
65732002-07-04 Grace Sainsbury <graces@redhat.com>
6574
6575 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6576 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6577 mcore-tdep.
6578 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6579 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6580 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6581 (RETVAL_REGNUM): Move macros from tm-mcore.h
6582 (mcore_reg_struct_has_addr): New function.
6583 (mcore_gdbarch_init): Added initializations for the macros removed
6584 from tm-mcore.h.
6585
65862002-07-04 Mark Kettenis <kettenis@gnu.org>
6587
6588 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6589 traditonal string branding within the ELF header.
6590
65912002-07-04 Daniel Jacobowitz <drow@mvista.com>
6592
6593 * symtab.c (remove_params): New function.
6594 (make_symbol_overload_list): Use it instead of cplus_demangle.
6595 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6596
65972002-07-04 Mark Kettenis <kettenis@gnu.org>
6598
6599 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6600
6601 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6602 New variables.
6603 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6604 and tdep->sigtramp_end.
6605 * i386obsd-nat.c: New file.
6606 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6607
6608 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6609 Don't call get_current_frame().
6610
66112002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6612
6613 * i386-nat.c (child_post_startup_inferior): New function
6614 calling i386_cleanup_dregs if
6615 I386_USE_GENERIC_WATCHPOINTS is defined.
6616 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6617 conditional to acknowledge that i386-nat.c has its
6618 own child_post_startup_inferior function.
6619
66202002-07-04 Mark Kettenis <kettenis@gnu.org>
6621
6622 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6623 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6624 instead of MAX_REGISTER_RAW_SIZE.
6625 (i386_extract_return_value, i386_extract_struct_value_address):
6626 Convert to use regcache.
6627 (i386_gdbarch_init): Set max_register_raw_size and
6628 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6629 Set extract_return_value and extract_struct_value_address instead
6630 of their deprecated variants.
6631
6632 Convert i386 target to generic dummy frames.
6633 * i386-tdep.c: Include "symfile.h".
6634 (i386_frameless_signal_p): Consider a function to be frameless if
6635 the pc points at the first instruction of the function.
6636 (i386_frame_chain): Handle (generic) call dummies.
6637 (i386_frame_saved_pc): Likewise.
6638 (i386_frame_init_saved_regs): Remove code dealing with call
6639 dummies on the stack.
6640 (i386_push_dummy_frame): Removed.
6641 (i386_call_dummy_words): Removed.
6642 (i386_fix_call_dummy): Removed.
6643 (i386_push_return_address): New function.
6644 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6645 parameter, and don't call get_current_frame.
6646 (i386_pop_frame): New function.
6647 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6648 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6649 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6650 call_dummy_length to 0, set call_dummy_words to NULL, set
6651 sizeof_call_dummy_words to 0, set fix_call_dummy to
6652 generic_fix_call_dummy, set pc_in_call_dummy to
6653 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6654 generic_push_dummy_frame, set push_return_address to
6655 i386_push_return_address and set frame_chain_valid to
6656 generic_file_frame_chain_valid.
6657
66582002-07-03 Andrew Cagney <ac131313@redhat.com>
6659
6660 * gdbarch.sh (struct regcache): Add opaque declaration.
6661 (EXTRACT_RETURN_VALUE): New architecture method.
6662 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6663 * gdbarch.h, gdbarch.c: Regenerate.
6664 * arch-utils.c (legacy_extract_return_value): New function.
6665 * arch-utils.h (legacy_extract_return_value): Declare.
6666 * values.c (value_being_returned): Re-enable code handling
6667 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6668 deprecated_grub_regcache_for_registers call to block handling
6669 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6670 (EXTRACT_RETURN_VALUE): Do not define.
6671
66722002-07-03 Grace Sainsbury <graces@redhat.com>
6673
6674 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6675 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6676 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6677 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6678 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6679 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6680 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6681 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6682 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6683 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6684 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6685 argument so the function fits the prototype in the architecture
6686 vector.
6687 (mcore_pop_frame): Remove argument so the function fits the
6688 prototype. Use get_current_frame instead of the argument.
6689 (mcore_push_arguments): Change type of struct_return so the
6690 function can be used in the architecture vector.
6691 (mcore_store_struct_return): Add.
6692 (mcore_frame_init_saved_regs): Add.
6693 (mcore_gdbarch_init): Add function calls to replace the macros
6694 removed from tm-mcore.h
6695
66962002-07-03 Andrew Cagney <ac131313@redhat.com>
6697
6698 * infcmd.c (print_return_value): Remove compatibility code calling
6699 deprecated_grub_regcache_for_registers.
6700
6701 * values.c: Include "regcache.h".
6702 (value_being_returned): Update. Use
6703 deprecated_grub_regcache_for_registers to extract the register
6704 buffer address.
6705 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6706 ``struct regcache''.
6707 * Makefile.in (values.o): Add dependency on $(regcache_h).
6708
6709 * inferior.h (run_stack_dummy): Change type of second parameter to
6710 a ``struct regcache''.
6711 * valops.c (hand_function_call): Change type of retbuf to ``struct
6712 regcache''. Allocate using regcache_xmalloc, clean using
6713 make_cleanup_regcache_xfree.
6714 * infcmd.c (run_stack_dummy): Update. Use
6715 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6716
6717 * regcache.c (do_regcache_xfree): New function.
6718 (make_cleanup_regcache_xfree): New function.
6719 * regcache.h (make_cleanup_regcache_xfree): Declare.
6720
67212002-07-03 Martin M. Hunt <hunt@redhat.com>
6722
6723 * event-top.c (command_line_handler): Don't read past
6724 beginning of buffer.
6725
67262002-07-03 Martin M. Hunt <hunt@redhat.com>
6727
6728 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6729 struct frame_id.
6730 (varobj_create): Store frame_id for root.
6731 (varobj_gen_name): Use xasprintf.
6732 (varobj_update): Save and restore frame using get_frame_id() and
6733 frame_find_by_id().
6734 (create_child): Use xasprintf.
6735 (new_root_variable): Initialize frame_id.
6736 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6737 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6738 to prevent memory leak.
6739
67402002-07-03 Andrew Cagney <ac131313@redhat.com>
6741
6742 * valops.c (hand_function_call): Move declaration of retbuf to
6743 start of function, allocate using malloc, add a cleanup but before
6744 the inf_status cleanup, cleanup the buffer. Rename local variable
6745 old_chain to inf_status_cleanup.
6746
67472002-07-03 Martin M. Hunt <hunt@redhat.com>
6748
6749 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6750
6751 * cli/cli-decode.c (cmd_func_p): New function.
6752 (cmd_func): New function.
6753
6754 * command.h: Add cmd_func() and cmd_func_p().
6755
67562002-07-03 Grace Sainsbury <graces@redhat.com>
6757
6758 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6759 (REGISTER_SIZE): Remove.
6760 (MAX_REGISTER_RAW_SIZE): Remove.
6761 (REGISTER_VIRTUAL_TYPE): Remove.
6762 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6763 (REGISTER_NAME): Remove.
6764 (USE_GENERIC_DUMMY_FRAMES): Remove.
6765 (CALL_DUMMY): Remove.
6766 (CALL_DUMMY_START_OFFSET): Remove.
6767 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6768 (CALL_DUMMY_LOCATION): Remove.
6769 (FIX_CALL_DUMMY): Remove.
6770 (CALL_DUMMY_ADDRESS): Remove.
6771 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6772 (SAVE_DUMMY_FRAME_TOS): Remove.
6773 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6774 (mcore_register_virtual_type): New function.
6775 (mcore_register_byte): New function.
6776 (mcore_register_size): New function.
6777 (mcore_register_name): New function.
6778 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6779 macros removed from tm-mcore.h.
6780 (mcore_dump_tdep): Add.
6781 (_initialize_mcore_tdep): Add gdbarch_register call.
6782
67832002-07-03 Mark Kettenis <kettenis@gnu.org>
6784
6785 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6786 frameless_look_for_prologue, such that we actually call this
6787 function.
6788
67892002-07-02 Joel Brobecker <brobecker@gnat.com>
6790
6791 * frame.h (frame_address_in_block): New function.
6792
6793 * blockframe.c (frame_address_in_block): New function extracted
6794 from get_frame_block().
6795 (get_frame_block): Use frame_address_in_block().
6796 (block_innermost_frame): Use frame_address_in_block() to match
6797 the frame pc address against the block boundaries rather than
6798 the frame pc directly. This prevents a failure when a frame pc
6799 is actually a return-address pointing immediately after the end
6800 of the given block.
6801
68022002-07-02 Grace Sainsbury <graces@redhat.com>
6803
6804 * MAINTAINERS: Add self under write after approval.
6805
68062002-07-02 Grace Sainsbury <graces@redhat.com>
6807
6808 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6809 used in architecture vector. The default is
6810 m68k_local_breakpoint_from_pc.
6811 (m68k_local_breakpoint_from_pc): Add.
6812 (enum): Add register numbers from tm-m68k.h.
6813 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6814 vector.
6815 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6816 GDB_MULTI_ARCH_PARTIAL.
6817 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6818 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6819 m68k-tdep.c.
6820 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6821 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6822 to enum in m68k-tdep.c
6823
68242002-07-02 Joel Brobecker <brobecker@gnat.com>
6825
6826 * solib-osf.c (open_map): Compute the list of shared libraries
6827 loaded by the inferior, rather than the list of libraries loaded
6828 by GDB itself. Otherwise, GDB ends up reading the symbols from
6829 the wrong shared libraries...
6830
68312002-07-02 Mark Kettenis <kettenis@gnu.org>
6832
6833 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6834 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6835 macros.
6836 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6837 Remove functions.
6838 (FRAMELESS_SIGNAL): Remove function.
6839 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6840 i386_linux_saved_pc_after_call): Removed.
6841 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6842 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6843 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6844
6845 * i386-tdep.c (i386_frameless_signal_p): New function.
6846 (i386_frame_chain): Deal with frameless signals.
6847 (i386_sigtramp_saved_sp): New function.
6848 (i386_frame_saved_pc): Deal with frameless signals.
6849 (i386_saved_pc_after_call): Make sure the correct value is
6850 returned just after entry into a sigtramp.
6851 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6852 i386fbsd4_sc_sp_offset): New variables.
6853 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6854 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6855 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6856 similiar to what we already did for sc_pc_offset.
6857 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6858 tdep->sc_sp_offset.
6859
6860 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6861
68622002-07-02 Michal Ludvig <mludvig@suse.cz>
6863
6864 * config/i386/tm-x86-64linux.h: New.
6865 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6866 definitions.
6867 * config/i386/nm-x86-64.h: Rename to ...
6868 * config/i386/nm-x86-64linux.h: ... this one.
6869 * config/i386/x86-64linux.mh: Reflect the above change.
6870
68712002-07-01 Mark Kettenis <kettenis@gnu.org>
6872
6873 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6874 with sigcontext_addr. Add sc_sp_offset.
6875 (i386bsd_sigtramp_saved_pc): Remove prototype.
6876 (i386bsd_sicontext_addr): Add prototype.
6877 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6878 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6879 (i386_svr4_sigtramp_saved_pc): Removed.
6880 (i386_svr4_sigcontext_addr): New function.
6881 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6882 Initialize tdep->sigcontext_addr instead. Initialize
6883 tdep->sc_pc_offset and tdep->sc_sp_offset.
6884 (i386_gdbarch_init): Likewise.
6885 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6886 any more.
6887 (i386bsd_sigtramp_saved_pc): Remove function.
6888 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6889 Initialize tdep->sigcontext_addr instead. Initialize
6890 tdep->sc_pc_offset.
6891 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6892 of tdep->sigtramp_saved_pc.
6893 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6894 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6895 instead.
6896
6897 * i386-tdep.c (i386_frameless_function_invocation,
6898 i386_frame_num_args, i386_frame_init_saved_regs,
6899 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6900 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6901 i386_extract_return_value, i386_store_return_value,
6902 i386_extract_struct_value_address, i386_register_virtual_type,
6903 i386_register_convertible, i386_register_convert_to_virtual,
6904 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6905 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6906 static.
6907
69082002-07-01 Mark Kettenis <kettenis@gnu.org>
6909
6910 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6911
6912 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6913 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6914 this macro. Include "value.h".
6915
69162002-06-30 Aidan Skinner <aidan@velvet.net>
6917
6918 * ada-exp.tab.c: remove as it's a generated file
6919 * ada-lex.c: remove as it's a generated file
6920
69212002-06-30 Mark Kettenis <kettenis@gnu.org>
6922
6923 * config/i386/tm-i386.h (struct frame_info, struct
6924 frame_saved_regs, struct value, struct type): Remove forward
6925 declarations.
6926
6927 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6928 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6929 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6930 (FILL_FPXREGSET): Define.
6931
6932 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6933
6934 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6935 i[3456]86-*-netbsd* case.
6936 * config/i386/tm-obsd.h: Removed.
6937 * config/i386/obsd.mt: Removed.
6938 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6939 core-aout.o.
6940 (MH_CFLAGS): Add -DYYDEBUG=0.
6941
6942 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6943 i386nbsd_sc_pc_offset on OpenBSD too.
6944
6945 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6946 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6947 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6948 define.
6949 * i386bsd-tdep.c: Include "arch-utils.h".
6950 (i386bsd_aout_in_solib_call_trampoline): New function.
6951 (i386bsd_init_abi): Set in_solib_call_trampoline to
6952 i386bsd_aout_in_solib_call_trampoline.
6953 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6954 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6955
69562002-06-28 Andrew Cagney <ac131313@redhat.com>
6957
6958 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6959 (struct obstack, struct bcache): Add opaque declarations.
6960 * Makefile.in (macrotab_h): Update
6961
69622002-06-28 Andrew Cagney <ac131313@redhat.com>
6963
6964 * blockframe.c (generic_find_dummy_frame): Change return type to
6965 ``struct regcache''.
6966 (struct dummy_frame): Replace field ``registers'' with regcache, a
6967 struct regcache object.
6968 (generic_find_dummy_frame): Update.
6969 (generic_push_dummy_frame): Update. Use regcache_xfree,
6970 regcache_xmalloc and regcache_cpy.
6971 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6972 regcache_xfree.
6973 (deprecated_generic_find_dummy_frame): Update.
6974 (generic_read_register_dummy): Update. Use
6975 regcache_read_as_address.
6976 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6977 (generic_get_saved_register): Update. Use regcache_read.
6978
69792002-06-28 Andrew Cagney <ac131313@redhat.com>
6980
6981 * Makefile.in (objfiles_h): Add $(bcache_h).
6982 * objfiles.h: Include "bcache.h".
6983
6984 * Makefile.in (symtab_h): Remove $(bcache_h).
6985 * symtab.h: Do not include "bcache.h".
6986
69872002-06-28 Andrew Cagney <ac131313@redhat.com>
6988
6989 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6990 generic_func_frame_chain_valid.
6991
69922002-06-28 David O'Brien <obrien@FreeBSD.org>
6993
6994 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6995 * config/i386/tm-fbsd.h: Likewise.
6996
69972002-06-28 Andrew Cagney <ac131313@redhat.com>
6998
6999 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7000 generic_unwind_get_saved_register.
7001
70022002-06-27 Andrew Cagney <ac131313@redhat.com>
7003
7004 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7005 * regcache.c (supply_register): Add missing argument to
7006 register_buffer call.
7007
70082002-06-27 Andrew Cagney <ac131313@redhat.com>
7009
7010 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7011 Solaris /bin/grep does not not like it. From Peter Schauer.
7012
70132002-06-26 Tom Tromey <tromey@redhat.com>
7014
7015 * command.h (add_setshow_cmd): Declare.
7016 (add_setshow_cmd_full): Declare.
7017 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7018 returns void. Use add_setshow_cmd_full.
7019 (add_setshow_cmd_full): New function.
7020 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7021 (add_setshow_boolean_cmd): Likewise.
7022
70232002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7024
7025 * config/vax/tm-vax.h: Protect from multiple inclusion.
7026 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7027 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7028 * config/vax/tm-vaxbsd.h: ...here. New file.
7029 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7030
70312002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7032
7033 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7034 (BELIEVE_PCC_PROMOTION): Remove.
7035 (AP_REGNUM): Move to...
7036 * config/vax/nm-vax.h: ...here.
7037 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7038 (vax_breakpoint_from_pc): New function.
7039 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7040 and gdbarch_believe_pcc_promotion.
7041
70422002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7043
7044 * Makefile.in (vax_tdep_h): Define.
7045 (vax-tdep.o): Use $(vax_tdep_h).
7046 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7047 (vax_dump_tdep): New function.
7048 (_initialize_vax_tdep): Register vax_dump_tdep.
7049 * vax-tdep.h: Include osabi.h.
7050 (struct gdbarch_tdep): New.
7051
70522002-06-26 Andrew Cagney <cagney@redhat.com>
7053
7054 * frame.h (deprecated_generic_find_dummy_frame): Rename
7055 generic_find_dummy_frame.
7056 * blockframe.c (generic_find_dummy_frame): Make static.
7057 (deprecated_generic_find_dummy_frame): New function.
7058 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7059 generic_find_dummy_frame with deprecated_find_dummy_frame.
7060 (sh64_nofp_frame_init_saved_regs): Ditto.
7061 (sh_fp_frame_init_saved_regs): Ditto.
7062 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7063 (s390_frame_chain): Ditto.
7064 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7065
70662002-06-26 Grace Sainsbury <graces@redhat.com>
7067
7068 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7069 gdbarch vector are at the top.
7070 (NUM_REGS): Remove.
7071 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7072 (FRAME_ARGS_ADDRESS): Remove.
7073 (FRAME_LOCALS_ADDRESS): Remove.
7074 (FRAME_NUM_ARGS): Remove.
7075 (FRAME_ARGS_SKIP): Remove.
7076 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7077 (m68k_gdbarch_init): Add gdbarch initializations for macros
7078 undefined in tm-m68k.h
7079
70802002-06-26 Grace Sainsbury <graces@redhat.com>
7081
7082 * monitor.h: Add the function regname to monitor_ops
7083 structure. This way NUM_REGS does not have to be a constant.
7084 * monitor.c (monitor_fetch_register): Added support for regname
7085 function. The function is called if the array regnames is NULL.
7086 (monitor_store_register): Same.
7087 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7088 regnames array.
7089 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7090 cpu32bug_cmds.regname to point to new function.
7091 * abug-rom.c (abug_regname): Same as above.
7092 (init_abug_cmds): Same.
7093 * dbug-rom.c (dbug_regname): Same as above.
7094 (init_dbug_cmds): Same.
7095 * remote-est.c (est_regname): Same.
7096 (init_est_cmds): Same.
7097 * rom68k-rom.c (rom68k_regname): Same.
7098 (init_rom68k_cmds): Same.
7099
71002002-06-25 Tom Tromey <tromey@redhat.com>
7101
7102 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7103
71042002-06-25 Andrew Cagney <cagney@redhat.com>
7105
7106 * infrun.c (stop_registers): Change variable's type to ``struct
7107 regcache'''.
7108 (xmalloc_inferior_status): Delete function.
7109 (free_inferior_status): Delete function.
7110 (normal_stop): Use regcache_cpy.
7111 (struct inferior_status): Change type of fields ``stop_registers''
7112 and ``registers'' to ``struct regcache''.
7113 (write_inferior_status_register): Use regcache_write.
7114 (save_inferior_status): Instead of calling
7115 xmalloc_inferior_status, allocate the inf_status buffer directly.
7116 Use regcache_dup_no_passthrough and regcache_dup to save the
7117 buffers.
7118 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7119 Replace the stop_registers regcache instead of overriding it. Use
7120 regcache_xfree. Instead of calling free_inferior_status, xfree
7121 the buffer directly.
7122 (discard_inferior_status): Use regcache_xfree. Instead of calling
7123 free_inferior_status, xfree the buffer directly.
7124 (build_infrun): Use regcache_xmalloc.
7125 (_initialize_infrun): Delete redundant call to build_infrun.
7126
7127 * Makefile.in (infcmd.o): Add $(regcache_h).
7128
7129 * infcmd.c: Include "regcache.h".
7130 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7131 obtain the address of `stop_registers' register buffer.
7132 (print_return_value): Ditto.
7133
7134 * inferior.h (struct regcache): Add opaque declaration.
7135 (stop_registers): Change variable's declared type to ``struct
7136 regcache''.
7137
71382002-06-24 Tom Tromey <tromey@redhat.com>
7139
7140 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7141 * target.c (initialize_targets): Fixed typo in
7142 trust-readonly-sections `show' documentation.
7143
7144 * main.c: Marked all strings with _().
7145
71462002-06-24 Don Howard <dhoward@redhat.com>
7147
7148 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7149 that means max CORE_ADDR+1.
7150 (lookup_mem_region): Ditto.
7151 (mem_info_command): Ditto.
7152
71532002-06-24 Grace Sainsbury <graces@redhat.com>
7154
7155 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7156 (REGISTER_BYTES_OK): Remove.
7157 (REGISTER_BYTES): Remove.
7158 (STORE_STRUCT_RETURN): Remove.
7159 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7160 (STORE_RETURN_VALUE): Remove.
7161 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7162 (FRAME_CHAIN): Remove.
7163 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7164 (FRAME_SAVED_PC): Remove.
7165 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7166 (m68k_store_struct_return): Add.
7167 (m68k_deprecated_extract_return_value): Add.
7168 (m68k_deprecated_extract_struct_value_address): Add.
7169 (m68k_store_return_value): Add.
7170 (m68k_frame_chain): Add.
7171 (m68k_frameless_function_invocation): Add.
7172 (m68k_frame_saved_pc): Add.
7173 (m68k_gdbarch_init): added set_gdbarch calls for new
7174 functions and deleted macros.
7175
71762002-06-23 Tom Tromey <tromey@redhat.com>
7177
7178 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7179 (ALLDEPFILES): Likewise.
7180 (udiheaders): Removed.
7181 (udip2soc.o): Likewise.
7182 (udi2go32.o): Likewise.
7183 (udr.o): Likewise.
7184 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7185
71862002-06-22 Andrew Cagney <ac131313@redhat.com>
7187
7188 * infrun.c (_initialize_infrun): Delete unnecessary call to
7189 build_infrun.
7190
7191 * regcache.h: Update comments describing the regcache_cpy family
7192 of functions.
7193 (regcache_save, regcache_restore): Delete declaration.
7194 (regcache_save_no_passthrough): Delete declaration.
7195 (regcache_restore_no_passthrough): Delete declaration.
7196 * regcache.c (regcache_save): Delete function.
7197 (regcache_save_no_passthrough): Delete function.
7198 (regcache_restore): Delete function.
7199 (regcache_restore_no_passthrough): Delete function.
7200
72012002-06-21 Andrew Cagney <ac131313@redhat.com>
7202
7203 * config/m68k/tm-m68k.h: Fix typo.
7204 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7205 (m68k_frame_init_saved_regs): Declare.
7206
72072002-06-21 Jim Blandy <jimb@redhat.com>
7208
7209 Remove some vestiges of Harris 88k support.
7210 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7211 register numbering quirk.
7212 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7213 odd symbols occurring in Harris 88k ELF targets.
7214
72152002-06-21 Tom Tromey <tromey@redhat.com>
7216
7217 * gdb_locale.h: New file.
7218 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7219 (defs_h): Added gdb_locale.h.
7220 * configure, config.in: Rebuilt.
7221 * configure.in (PACKAGE): Define.
7222 * defs.h: Include gdb_locale.h.
7223 * main.c (captured_main): Call setlocale, bindtextdomain,
7224 textdomain.
7225
72262002-06-21 Dave Brolley <brolley@redhat.com>
7227
7228 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7229 * config/frv/frv.mt: New file.
7230 * config/frv/tm-frv.h: New file.
7231 * configure.tgt: Support frv-*-*.
7232 * Makefile.in (frv-tdep.o): New target.
7233 * frv-tdep.c: New file.
7234 * NEWS: Mention frv.
7235
72362002-06-21 Dave Brolley <brolley@redhat.com>
7237
7238 * MAINTAINERS: Add self to "Write After Approval" list.
7239
72402002-06-21 Grace Sainsbury <graces@redhat.com>
7241
7242 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7243 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7244 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7245 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7246 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7247
7248 * m68k-tdep.c: Include arch-utils.h
7249 (m68k_register_raw_size): Add.
7250 (m68k_register_virtual_size): Add.
7251 (m68k_register_virtual_type): Add.
7252 (m68k_register_name): Add.
7253 (m68k_stack_align): Add.
7254 (m68k_register_byte): Add.
7255 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7256 tm-m68k.h.
7257
72582002-06-21 Grace Sainsbury <graces@redhat.com>
7259
7260 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7261 m68k_find_saved_regs.
7262 (m68k_pop_frame): Removed saved_regs structure, and replaced
7263 references to it with frame->saved_regs.
7264 (m68k_gdbarch_init): Added function calls to initialize the
7265 gdbarch structure.
7266 (m68k_fix_call_dummy): Add.
7267 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7268 (CALL_DUMMY): Remove.
7269 (CALL_DUMMY_LENGTH): Remove.
7270 (CALL_DUMMY_START_OFFSET): Remove.
7271 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7272 (FIX_CALL_DUMMY): Remove.
7273 (PUSH_DUMMY_FRAME): Remove.
7274 (POP_FRAME): Remove.
7275
72762002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7277
7278 * parse.c (parse_fprintf): New function used to avoid calls to
7279 fprintf in bison parser generated debug code.
7280 * parser-defs.h: Declaration of new parse_fprintf function.
7281 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7282 Set YYDEBUG to 1 by default.
7283 Set YYFPRINTF as parse_fprintf.
7284
72852002-06-21 Michal Ludvig <mludvig@suse.cz>
7286
7287 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7288 encoding anymore.
7289 (pointer_encoding, enum ptr_encoding): New.
7290 (execute_cfa_program): Take care about pointer encoding.
7291 (dwarf2_build_frame_info): Only call parse_frame_info for
7292 .debug_frame and .eh_frame.
7293 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7294 fixed augmentation handling, added relative addressing,
7295 ignore duplicate FDEs. Added comments.
7296 * dwarf2cfi.c: Reindented.
7297
72982002-06-20 Elena Zannoni <ezannoni@redhat.com>
7299
7300 * event-top.c (command_handler): Don't use space_at_cmd_start
7301 unless there is sbrk() on the host. Assign time and space data
7302 to union fields of the appropriate length.
7303
73042002-06-20 Michal Ludvig <mludvig@suse.cz>
7305
7306 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7307 x86_64_register_name. Return type changed to 'const char *'.
7308 (x86_64_register_name2nr): Rename to x86_64_register_number.
7309 (x86_64_gdbarch_init): Update to reflect the change.
7310 * x86-64-tdep.h: Ditto.
7311 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7312 (supply_fpregset): Ditto.
7313
73142002-06-19 Andrew Cagney <cagney@redhat.com>
7315
7316 * regcache.h: Update copyright.
7317 (struct regcache, struct gdbarch): Add opaque declarations.
7318 (current_regcache): Declare global variable.
7319 (regcache_read, regcache_write): Add gdbarch parameter.
7320 (regcache_save, regcache_save_no_passthrough)
7321 (regcache_restore, regcache_restore_no_passthrough)
7322 (regcache_dup, regcache_dup_no_passthrough)
7323 (regcache_cpy, regcache_cpy_no_passthrough)
7324 (deprecated_grub_regcache_for_registers)
7325 (deprecated_grub_regcache_for_register_valid)
7326 (regcache_valid_p): Add function declarations.
7327
7328 * regcache.c: Update copyright.
7329 (regcache_descr_handle): New global variable.
7330 (struct regcache_descr): Define.
7331 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7332 (regcache_descr, xfree_regcache_descr): New functions.
7333 (struct regcache): Define.
7334 (regcache_xmalloc, regcache_xfree): New functions.
7335 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7336 (regcache_dup, regcache_dup_no_passthrough): New functions.
7337 (regcache_valid_p, regcache_read_as_address): New functions.
7338 (deprecated_grub_regcache_for_registers): New function.
7339 (deprecated_grub_regcache_for_register_valid): New function.
7340 (current_regcache): New global variable.
7341 (register_buffer): Add regcache parameter. Update calls.
7342 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7343 (read_register_gen, write_register_gen): Update register_buffer
7344 call. Test for legacy_p instead of gdbarch_register_read_p or
7345 gdbarch_register_write_p.
7346 (regcache_collect): Update register_buffer call.
7347 (build_regcache): Rewrite. Use deprecated grub functions.
7348 (regcache_save, regcache_save_no_passthrough): New functions.
7349 (regcache_restore, regcache_restore_no_passthrough): New
7350 functions.
7351 (_initialize_regcache): Create the regcache_data_handle. Swap
7352 current_regcache global variable.
7353
7354 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7355 parameter to regcache_read and regcache_write calls.
7356 (sh4_register_read): Ditto.
7357 (sh64_pseudo_register_read): Ditto.
7358 (sh64_register_read): Ditto.
7359 (sh_pseudo_register_write): Ditto.
7360 (sh4_register_write): Ditto.
7361 (sh64_pseudo_register_write): Ditto.
7362 (sh64_register_write): Ditto.
7363
7364 * defs.h (XCALLOC): Define.
7365
73662002-06-19 Grace Sainsbury <graces@redhat.com>
7367
7368 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7369 * m68k-tdep.c (m68k_gdbarch_init): Added.
7370 (m68k_dump_tdep): Added.
7371
73722002-06-19 Daniel Jacobowitz <drow@mvista.com>
7373
7374 * ada-lang.c (fill_in_ada_prototype): Update comment.
7375
73762002-06-19 Daniel Jacobowitz <drow@mvista.com>
7377
7378 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7379 MIPS_ABI_LAST.
7380 (mips_abi_string, mips_abi_strings): New.
7381 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7382 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7383 tdep->mips_abi_string. Honor mips_abi_string. Default to
7384 O32 if no ABI is found.
7385 (mips_dump_tdep): Use mips_abi_strings.
7386 (mips_abi_update): New function.
7387 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7388 ``set mips abi'' and ``show mips abi''. Check the size of
7389 mips_abi_strings.
7390
73912002-06-19 Andrew Cagney <cagney@redhat.com>
7392
7393 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7394 constant.
7395
73962002-06-18 Joel Brobecker <brobecker@gnat.com>
7397
7398 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7399 current frame using only the first stack size adjustment. All
7400 subsequent size adjustments are not considered to be part of
7401 the "static" part of the current frame.
7402 Compute the address of the saved registers relative to the
7403 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7404 in use in this frame.
7405
74062002-06-18 Don Howard <dhoward@redhat.com>
7407
7408 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7409 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7410 suggesting this solution.
7411
74122002-06-18 Andrew Cagney <ac131313@redhat.com>
7413
7414 * config/romp/xm-rtbsd.h: Delete file.
7415 * config/romp/rtbsd.mh: Delete file.
7416
74172002-06-18 Keith Seitz <keiths@redhat.com>
7418
7419 * breakpoint.c (condition_command): Post breakpoint_modify
7420 when a condition is added to an existing breakpoint.
7421 (commands_command): Likewise for commands.
7422 (set_ignore_count): Likewise for ignore counts.
7423 If no tty, do not simply return, still need to send event
7424 notification.
7425 (ignore_command): Only print a newline if the command came
7426 from a tty.
7427 Don't call breakpoints_changed, since this is now properly
7428 handled by set_ignore_count.
7429
74302002-06-18 Andrew Cagney <cagney@redhat.com>
7431
7432 * MAINTAINERS: Note that cris-elf target can be compiled with
7433 -Werror.
7434 * cris-tdep.c (cris_register_name): Make return type constant.
7435 (cris_breakpoint_from_pc): Ditto.
7436
74372002-06-18 Michal Ludvig <mludvig@suse.cz>
7438
7439 * frame.h (struct frame_info): Change type of context to
7440 'struct context'.
7441
74422002-06-17 Andrew Cagney <cagney@redhat.com>
7443
7444 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7445 pointer.
7446 * gdbarch.h, gdbarch.c: Regenerate.
7447 * config/mips/tm-mips.h (mips_register_name): Update.
7448 * i386-tdep.h (i386_register_name): Update.
7449 * mips-tdep.c (mips_register_name): Update
7450 * alpha-tdep.c (alpha_register_name): Update.
7451 * arch-utils.c (legacy_register_name): Update.
7452 * arch-utils.h (legacy_register_name): Update.
7453 * avr-tdep.c (avr_register_name): Update.
7454 * ia64-tdep.c (ia64_register_name): Update.
7455 * i386-tdep.c (i386_register_name): Update.
7456 * sparc-tdep.c (sparc32_register_name): Update.
7457 (sparc64_register_name): Update.
7458 (sparclite_register_name): Update.
7459 (sparclet_register_name): Update.
7460 * sh-tdep.c (sh_generic_register_name): Update.
7461 (sh_sh_register_name): Update.
7462 (sh_sh3_register_name): Update.
7463 (sh_sh3e_register_name): Update.
7464 (sh_sh_dsp_register_name): Update.
7465 (sh_sh3_dsp_register_name): Update.
7466 (sh_sh4_register_name): Update.
7467 (sh_sh64_register_name): Update.
7468 * s390-tdep.c (s390_register_name): Update.
7469 * rs6000-tdep.c (rs6000_register_name): Update.
7470 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7471 (ns32k_register_name_32382): Update.
7472 * d10v-tdep.c (d10v_ts2_register_name): Update.
7473 (d10v_ts3_register_name): Update.
7474 * xstormy16-tdep.c (xstormy16_register_name): Update.
7475 * vax-tdep.c (vax_register_name): Update.
7476 * v850-tdep.c (v850_register_name): Update.
7477 * m68hc11-tdep.c (m68hc11_register_name): Update.
7478 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7479 (am33_register_name): Update.
7480
74812002-06-17 Grace Sainsbury <graces@redhat.com>
7482
7483 * m68k-tdep.c: Reindented.
7484
74852002-06-17 Andrew Cagney <ac131313@redhat.com>
7486
7487 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7488 list of predefined types.
7489
74902002-06-16 Mark Kettenis <kettenis@gnu.org>
7491
7492 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7493 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7494 REGISTER_CONVERT_TO_RAW): Remove defines.
7495 (i386_register_virtual_type, i386_register_convertible,
7496 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7497 Remove prototypes.
7498 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7499 macros mentioned above.
7500
7501 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7502 (i386lynx_saved_pc_after_call): Remove prototype.
7503 * i386ly-tdep.c: Include "i386-tdep.h".
7504 (i386lynx_saved_pc_after_call): Make static. Use
7505 read_memory_nobpt instead of read_memory. Use
7506 read_memory_unsigned_integer instead of read_memory_integer.
7507 (i386lynx_init_abi): New function.
7508 (i386lynx_coff_osabi_sniffer): New function.
7509 (_initialize_i386bsd_tdep): New function.
7510
7511 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7512 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7513 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7514 (i386_fix_call_dummy): Remove prototype.
7515 * i386-tdep.c (i386_call_dummy_words): New variable.
7516 (i386_gdbarch_init): Adjust for removal of the
7517 macros mentioned above.
7518
75192002-06-15 Andrew Cagney <ac131313@redhat.com>
7520
7521 * command.h (add_setshow_auto_boolean_cmd): Replace
7522 add_set_auto_boolean_cmd.
7523 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7524 add_set_auto_boolean_cmd.
7525 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7526 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7527 mask-address'' command.
7528 (show_mask_address): Add cmd parameter.
7529 * remote.c (add_packet_config_cmd): Update. Change type of
7530 set_func and show_func to cmd_sfunc_ftype.
7531 (_initialize_remote): Update `set remote Z-packet'
7532 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7533 (show_remote_protocol_e_packet_cmd): Ditto.
7534 (show_remote_protocol_E_packet_cmd): Ditto.
7535 (show_remote_protocol_P_packet_cmd): Ditto.
7536 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7537 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7538 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7539 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7540 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7541 (show_remote_protocol_Z_packet_cmd): Ditto.
7542 (show_remote_protocol_binary_download_cmd): Ditto.
7543 (show_remote_cmd): Pass NULL to all of above.
7544
75452002-06-15 Mark Kettenis <kettenis@gnu.org>
7546
7547 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7548 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7549 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7550 POP_FRAME): Remove defines.
7551 (i386_push_arguments, i386_store_struct_return,
7552 i386_extract_return_value, i386_store_return_value,
7553 i386_extract_struct_value_address, i386_push_dummy_frame,
7554 i386_pop_frame): Renove prototypes.
7555 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7556 macros mentioned above.
7557
75582002-06-15 Andrew Cagney <ac131313@redhat.com>
7559
7560 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7561 add_set_boolean_cmd.
7562 (add_setshow_cmd): New function.
7563 * command.h (add_setshow_boolean_cmd): Replace
7564 add_set_boolean_cmd.
7565 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7566 and ``set rdiromatzero''.
7567 * maint.c (_initialize_maint_cmds): Update commented out code.
7568 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7569 * target.c (initialize_targets): Update `set
7570 trust-readonly-sections'.
7571 * remote.c (_initialize_remote): Update `set remotebreak'.
7572
75732002-06-15 Mark Kettenis <kettenis@gnu.org>
7574
7575 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7576 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7577 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7578 fit into multi-arch framework.
7579 (i386_breakpoint_from_pc): New function.
7580 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7581 above.
7582
7583 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7584 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7585 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7586 (i386_frameless_function_invocation, i386_frame_num_args,
7587 i386_frame_init_saved_regs): Remove prototypes.
7588 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7589 macros mentioned above.
7590
75912002-06-15 Andrew Cagney <ac131313@redhat.com>
7592
7593 * cli/cli-decode.c (set_cmd_cfunc): Update.
7594 (set_cmd_sfunc): Update.
7595 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7596 (set_cmd_sfunc, set_cmd_cfunc): Update.
7597 * cli/cli-decode.h: Update.
7598
75992002-06-15 Mark Kettenis <kettenis@gnu.org>
7600
7601 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7602 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7603
76042002-06-15 Andrew Cagney <ac131313@redhat.com>
7605
7606 * defs.h (auto_boolean): Declare enum.
7607 * command.h (cmd_auto_boolean): Delete enum.
7608 * mips-tdep.c (mask_address_var): Update.
7609 (mips_mask_address_p): Update.
7610 (show_mask_address): Update.
7611 * remote.c (struct packet_config): Update.
7612 (update_packet_config): Update.
7613 (show_packet_config_cmd): Update.
7614 (packet_ok): Update.
7615 (add_packet_config_cmd): Update.
7616 (_initialize_remote):
7617 * command.h: Update.
7618 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7619 (do_setshow_command): Update.
7620 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7621 * cli/cli-decode.h: Update.
7622
76232002-06-15 Mark Kettenis <kettenis@gnu.org>
7624
7625 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7626 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7627 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7628 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7629 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7630 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7631
7632 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7633 list of DJGPP COFF targets.
7634
7635 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7636 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7637 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7638 (FP0_REGNUM): Remove define.
7639 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7640 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7641 (i386_register_virtual_size): Remove protoype.
7642 * i386-tdep.c (i386_register_virtual_size): Removed.
7643 (i386_extract_return_value, i386_store_return_value): Use
7644 FP0_REGNUM instead of NUM_FREGS to determine whether the
7645 floating-point registers are available.
7646 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7647 Adjust for removal of macros mentioned above.
7648
76492002-06-15 Mark Kettenis <kettenis@gnu.org>
7650
7651 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7652 comments.
7653 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7654 Remove prototypes.
7655 (supply_gregset, fill_gregset): Remove use of register keyword and
7656 remove declaration for regmap. Use I386_NUM_GREGS instead of
7657 NUM_REGS and NUM_FREGS.
7658 (FPREGSET_FSAVE_OFFSET): Remove.
7659 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7660 NUM_FREGS to determine whether the floating-point registers are
7661 available.
7662
7663 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7664 gnu_store_registers): Replace usage of NUM_GREGS with
7665 I386_NUM_GREGS.
7666
7667 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7668 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7669 usage of NUM_GREGS with I386_NUM_GREGS.
7670
7671 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7672
7673 * i386bsd-nat.c: Include "i386-tdep.h".
7674 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7675 I386_NUM_GREGS.
7676
7677 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7678 and associated comment. They no longer make any sense, since we
7679 don't use this file anymore on Linux.
7680
7681 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7682 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7683 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7684 elements in these arrays.
7685 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7686 MAX_NUM_REGS.
7687
76882002-06-15 Mark Kettenis <kettenis@gnu.org>
7689
7690 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7691 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7692
76932002-06-14 Andrew Cagney <cagney@redhat.com>
7694
7695 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7696 EXTRACT_RETURN_VALUE.
7697 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7698 EXTRACT_STRUCT_VALUE_ADDRESS.
7699 * gdbarch.h, gdbarch.c: Regenerate.
7700
7701 * values.c (value_being_returned): Handle
7702 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7703 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7704
7705 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7706 * arm-tdep.c (arm_gdbarch_init): Update.
7707 * avr-tdep.c (avr_gdbarch_init): Update.
7708 * cris-tdep.c (cris_gdbarch_init): Update.
7709 * d10v-tdep.c (d10v_gdbarch_init): Update.
7710 * ia64-tdep.c (ia64_gdbarch_init): Update.
7711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7712 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7713 * s390-tdep.c (s390_gdbarch_init): Update.
7714 * sh-tdep.c (sh_gdbarch_init): Update.
7715 * s390-tdep.c (s390_gdbarch_init): Update.
7716 * sparc-tdep.c (sparc_gdbarch_init): Update.
7717 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7718 * v850-tdep.c (v850_gdbarch_init): Update.
7719 * vax-tdep.c (vax_gdbarch_init): Update.
7720 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7722
7723 * config/arc/tm-arc.h: Update.
7724 * config/d30v/tm-d30v.h: Update.
7725 * config/fr30/tm-fr30.h: Update.
7726 * config/h8300/tm-h8300.h: Update.
7727 * config/h8500/tm-h8500.h: Update.
7728 * config/i386/tm-i386.h: Update.
7729 * config/i386/tm-ptx.h: Update.
7730 * config/i386/tm-symmetry.h: Update.
7731 * config/i960/tm-i960.h: Update.
7732 * config/m32r/tm-m32r.h: Update.
7733 * config/m68k/tm-delta68.h: Update.
7734 * config/m68k/tm-linux.h: Update.
7735 * config/m68k/tm-m68k.h: Update.
7736 * config/m88k/tm-m88k.h: Update.
7737 * config/mcore/tm-mcore.h: Update.
7738 * config/mips/tm-mips.h: Update.
7739 * config/mn10200/tm-mn10200.h: Update.
7740 * config/pa/tm-hppa.h: Update.
7741 * config/pa/tm-hppa64.h: Update.
7742 * config/sparc/tm-sp64.h: Update.
7743 * config/sparc/tm-sparc.h: Update.
7744 * config/sparc/tm-sparclet.h: Update.
7745 * config/z8k/tm-z8k.h: Update.
7746
77472002-06-14 Andrew Cagney <cagney@redhat.com>
7748
7749 * Makefile.in (i386_linux_tdep_h): Define.
7750 (i386_tdep_h, i387_tdep_h): Define.
7751 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7752 $(i386_tdep_h) and $(i387_tdep_h).
7753 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7754
77552002-06-14 Mark Kettenis <kettenis@gnu.org>
7756
7757 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7758 Already covered by the default.
7759
7760 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7761 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7762 (i386_gdbarch_init): Initialize long_double_format and long_double
7763 bit.
7764
7765 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7766 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7767 Move these to ...
7768 * config/i386/i386sol2.mh: ... here.
7769 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7770 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7771 (SIGCONTEXT_PC_OFFSET): Remove define.
7772 (IN_SIGTRAMP): Remove define.
7773 * i386-sol2-tdep.c: New file.
7774
7775 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7776 * config/i386/tm-i386nw.h: Removed.
7777
7778 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7779 USE_STRUCT_CONVENTION): Remove defines.
7780 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7781 (get_longjmp_target): Remove prototype.
7782 (IN_SIGTRAMP): Remove define.
7783 (i386bsd_in_sigtramp): Remove prototype.
7784 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7785 function. Update comment accordingly
7786 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7787 (FRAME_SAVED_PC): Remove define.
7788 (i386bsd_frame_saved_pc): Remove prototype.
7789 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7790 GET_LONGJMP_TARGET): Remove defines.
7791 (get_longjmp_target): Remove prototype.
7792 (IN_SIGTRAMP): Remove define.
7793 (i386bsd_in_sigtramp): Remove prototype.
7794 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7795 function. Update comment accordingly
7796 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7797 (FRAME_SAVED_PC): Remove define.
7798 (i386bsd_frame_saved_pc): Remove prototype.
7799 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7800 Remove prototype.
7801 (USE_STRUCT_CONVENTION): Remove prototype.
7802 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7803 declaration.
7804 (_initialize_i386bsd_nat): Revise logic to determine some
7805 constants at compile time when compiling a native GDB. Warn if
7806 things don't match up with what we expect.
7807 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7808 Remove variables.
7809 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7810 to use date stored in `struct gdbarch_tdep'.
7811 (i386bsd_sigcontext_offset): Remove varaible.
7812 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7813 stored in `struct gdbarch_tdep'.
7814 (i386bsd_frame_saved_pc): Make static.
7815 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7816 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7817 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7818 i386fbsd4_sc_pc_offset): New variables.
7819 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7820 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7821 functions.
7822 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7823 functions.
7824 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7825 Modify the value of i386fbsd_sigtramp_start and
7826 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7827 i386fbsd_sigtramp_end.
7828 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7829 function.
7830
7831 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7832 define to i386-linux-tdep.h.
7833 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7834 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7835 defines.
7836 (i386_linux_register_name, i386_linux_register_byte,
7837 i386_linux_register_raw_size): Remove prototypes.
7838 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7839 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7840 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7841 TARGET_WRITE_PC): Remove defines.
7842 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7843 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7844 i386_linux_write_pc): Remove prototypes.
7845 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7846 (get_longjmp_target): Remove prototype.
7847 * i386-linux-tdep.h: New file.
7848 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7849 * i386-linux-tdep.c: Include "i386-tdep.h" and
7850 "i386-linux-tdep.h".
7851 (i386_linux_register_name, i386_linux_register_byte,
7852 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7853 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7854 Make static.
7855 (i386_linux_init_abi): New function.
7856 (_initialize_i386_linux_tdep): New function.
7857
7858 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7859 (i386_saved_pc_after_call): Remove prototype.
7860 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7861 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7862 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7863 (i386_register_name, i386_stab_reg_to_regnum,
7864 i386_dwarf_reg_to_regnum): Remove prototypes.
7865 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7866 SIZEOF_SSE_REGS): Remove defines.
7867 (REGISTER_BYTES): Remove define.
7868 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7869 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7870 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7871 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7872 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7873 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7874 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7875 (get_longjmp_target): Remove prototype.
7876 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7877 (sigtramp_saved_pc): Remove define.
7878 (i386v4_sigtramp_saved_pc): Remove prototype.
7879 * config/i386/tm-go32.h (FRAME_CHAIN,
7880 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7881 (i386go32_frame_saved_pc): Remove prototype.
7882 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7883 (get_longjmp_target): Remove prototype.
7884 * i386-tdep.h: Include "osabi.h".
7885 (enum i386_abi): Removed.
7886 (enum struct_return): New enum.
7887 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7888 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7889 sc_pc_offset members.
7890 (i386_gdbarch_register_os_abi): Remove prototype.
7891 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7892 I386_SSE_NUM_REGS): New defines.
7893 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7894 I386_SSE_SIZEOF_REGS): New defines.
7895 (i386_register_name, i386_register_byte, i386_register_raw_size):
7896 New prototypes.
7897 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7898 (i386bsd_sigtramp_saved_pc): New prototype.
7899 * i386-tdep.c: Don't include "elf-bfd.h".
7900 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7901 i386_frame_chain, i386_saved_pc_after_call): Make static.
7902 (i386_frame_saved_pc): Rewrite to call architecture dependent
7903 function to deal with signal handlers. Make static.
7904 (i386go32_frame_saved_pc): Removed.
7905 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7906 Removed.
7907 (i386_get_longjmp_target): New function.
7908 (default_struct_convention, pcc_struct_convention,
7909 reg_struct_convention, valid_conventions, struct_convention): New
7910 variables.
7911 (i386_use_struct_convention): New function.
7912 (i386v4_sigtramp_saved_pc): Renamed to
7913 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7914 (i386_pc_in_sigtramp): New function.
7915 (i386_abi_names): Removed.
7916 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7917 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7918 Removed.
7919 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7920 i386_gdbarch_register_os_abi): Removed.
7921 (struct i386_abi_handler): Removed.
7922 (i386_abi_handler_list): Removed.
7923 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7924 functions.
7925 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7926 i386_nw_init_abi): New functions.
7927 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7928 Use set_gdbarch_xxx() calls instead of relying on macros for a
7929 number of calls.
7930 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7931 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7932 Register the various architecture variants defined in this file.
7933
79342002-06-14 Daniel Jacobowitz <drow@mvista.com>
7935
7936 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7937 (struct main_type): Remove arg_types member. Update comments for
7938 struct field.
7939 (TYPE_ARG_TYPES): Remove.
7940 (TYPE_FN_FIELD_ARGS): Update.
7941 (smash_to_method_type): Update prototype.
7942
7943 * c-typeprint.c (cp_type_print_method_args): Take method type
7944 instead of argument list. Use new argument layout. Simplify.
7945 (c_type_print_args): Use new argument layout. Simplify.
7946 (c_type_print_base): Update call to cp_type_print_method_args.
7947 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7948 argument; use die->type instead. Update call to
7949 smash_to_method_type.
7950 (read_structure_scope): Update call to dwarf2_add_member_fn.
7951 * gdbtypes.c (allocate_stub_method): Update comment.
7952 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7953 Use new argument layout.
7954 (check_stub_method): Use new argument layout. Don't count
7955 void as an argument.
7956 (print_arg_types): Update comments. Use new argument layout.
7957 (recursive_dump_type): Don't print arg_types member.
7958 * hpread.c (hpread_read_struct_type): Use new argument layout.
7959 (fixup_class_method_type): Likewise.
7960 (hpread_type_lookup): Likewise.
7961 * stabsread.c (read_type): Update calls to read_args and
7962 smash_to_method_type.
7963 (read_args): Use new argument layout. Simplify.
7964 * valops.c (typecmp): Use new argument layout. Update parameters
7965 and comments. Simplify.
7966 (hand_function_call): Use new argument layout.
7967 (search_struct_method): Update call to typecmp.
7968 (find_overload_match): Use new argument layout.
7969
79702002-06-13 Daniel Jacobowitz <drow@mvista.com>
7971
7972 * NEWS: Mention multithreaded debug support for gdbserver.
7973
79742002-06-13 Daniel Jacobowitz <drow@mvista.com>
7975
7976 * MAINTAINERS: Mention NEWS.
7977
79782002-06-13 Daniel Jacobowitz <drow@mvista.com>
7979
7980 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7981 (struct mips_objfile_private, compare_pdr_entries): New.
7982 (non_heuristic_proc_desc): Read the ".pdr" section if it
7983 is present.
7984
79852002-06-12 Andrew Cagney <ac131313@redhat.com>
7986
7987 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7988 (arm_debug): New static variable.
7989 (_initialize_arm_tdep): Add ``set debug arm'' command.
7990
79912002-06-12 Andrew Cagney <ac131313@redhat.com>
7992
7993 * Makefile.in (sim_arm_h): Define.
7994 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7995 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7996 (arm_register_sim_regno): New function, map an internal REGNUM
7997 onto a simulator register number.
7998 (arm_gdbarch_init): Set register_sim_regno.
7999
80002002-06-09 Aldy Hernandez <aldyh@redhat.com>
8001
8002 * MAINTAINERS: Add self.
8003
80042002-06-11 Jim Blandy <jimb@redhat.com>
8005
8006 * source.c (source_info): Mention whether the symtab has
8007 information about preprocessor macros.
8008
8009 Call the command `info macro', not `show macro'.
8010 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8011 Fix error message.
8012 (_initialize_macrocmd): Register `info_macro_command' in
8013 `infolist', not `showlist'.
8014
80152002-06-11 Daniel Jacobowitz <drow@mvista.com>
8016
8017 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8018 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8019 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8020 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8021 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8022 unconditionally.
8023 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8024 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8025 (_initialize_mips_tdep): Remove dead code.
8026 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8027 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8028 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8029 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8030 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8031 MIPS_LAST_FP_ARG_REGNUM): Remove.
8032
80332002-06-11 Michal Ludvig <mludvig@suse.cz>
8034
8035 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8036 (unwind_tmp_obstack_free, parse_frame_info)
8037 (update_context, cfi_read_fp, cfi_write_fp)
8038 (cfi_frame_chain, cfi_init_extra_frame_info)
8039 (cfi_virtual_frame_pointer): Use the above function.
8040 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8041
80422002-06-11 Corinna Vinschen <vinschen@redhat.com>
8043
8044 * v850-tdep.c (v850_type_is_scalar): New function.
8045 (v850_use_struct_convention): Match current gcc implementation
8046 as close as possible.
8047 (v850_push_arguments): Fix stack_offset handling. Don't write
8048 struct_addr into register. This is done by v850_store_struct_return.
8049 (v850_extract_return_value): Care for structs.
8050 (v850_store_return_value): Ditto.
8051 (v850_store_struct_return): Actually write address.
8052
80532002-06-11 Michal Ludvig <mludvig@suse.cz>
8054
8055 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8056 without debug information too.
8057
80582002-06-10 Andrew Cagney <ac131313@redhat.com>
8059
8060 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8061 Make multi-arch pure.
8062 * gdbarch.h, gdbarch.c: Re-generate.
8063 * arm-tdep.c (arm_print_float_info): Update.
8064 * arch-utils.h (default_print_float_info): Update.
8065 * arch-utils.c (default_print_float_info): Update.
8066 * infcmd.c (float_info): Update call.
8067
80682002-06-10 Andrew Cagney <ac131313@redhat.com>
8069
8070 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8071 the front of the initialize list.
8072
80732002-06-10 Andrew Cagney <ac131313@redhat.com>
8074
8075 * infrun.c (struct inferior_status): Replace fields
8076 selected_frame_address and selected_level with field
8077 selected_frame_id.
8078 (save_inferior_status): Update. Use get_frame_id.
8079 (struct restore_selected_frame_args): Delete.
8080 (restore_selected_frame): Update. Use frame_find_by_id.
8081 (restore_inferior_status): Update.
8082
8083 * breakpoint.h (struct breakpoint): Change type of
8084 watchpoint_frame to frame_id.
8085 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8086 call to get_current_frame.
8087 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8088 get_current_frame.
8089 (watchpoint_check): Use frame_find_by_id.
8090
8091 * frame.h (record_selected_frame): Delete declaration.
8092 * stack.c (record_selected_frame): Delete function.
8093
8094 * frame.h (struct frame_id): Define.
8095 (get_frame_id): Declare.
8096 (frame_find_by_id): Declare.
8097 * frame.c (frame_find_by_id): New function.
8098 (get_frame_id): New function.
8099
81002002-06-10 Andrey Volkov <avolkov@transas.com>
8101
8102 * ser-e7kpc.c: Fix duplicated define and call of
8103 _initialize_ser_e7000pc
8104
81052002-06-09 Daniel Jacobowitz <drow@mvista.com>
8106
8107 * signals/signals.c (target_signal_from_host): Fix #ifdef
8108 SIGRTMIN case.
8109 (do_target_signal_to_host): Likewise.
8110
81112002-06-09 Daniel Jacobowitz <drow@mvista.com>
8112
8113 * mips-tdep.c (mips_find_abi_section): New function.
8114 (mips_gdbarch_init): Call it.
8115
81162002-06-09 Mark Kettenis <kettenis@gnu.org>
8117
8118 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8119 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8120 after Andrew's 2002-06-08 gdbarch change.
8121
81222002-06-09 Mark Kettenis <kettenis@gnu.org>
8123
8124 * i386-linux-nat.c (suppy_gregset): Don't supply
8125 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8126 register cache.
8127 (fill_gregset): Don't fetch it under the same circumstances.
8128
81292002-06-09 Andrew Cagney <cagney@redhat.com>
8130
8131 * Makefile.in (callback_h): Define.
8132 (remote_sim_h): Update path to remote-sim.h.
8133 (remote-rdp.o): Add $(callback_h).
8134 (remote-sim.o): Use $(callback_h).
8135 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8136 * remote-rdp.c: Include "gdb/callback.h".
8137
81382002-06-09 Mark Kettenis <kettenis@gnu.org>
8139
8140 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8141 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8142
81432002-06-08 Andrew Cagney <ac131313@redhat.com>
8144
8145 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8146 * rdi-share/serpardr.c: Ditto.
8147 * rdi-share/unixcomm.c: Ditto.
8148 * rdi-share/serdrv.c: Ditto.
8149 * rdi-share/hostchan.h: Ditto.
8150 * rdi-share/hostchan.c: Ditto.
8151 * rdi-share/host.h: Ditto.
8152 * rdi-share/devsw.c: Ditto.
8153
8154 * objfiles.h: Change type of obj_private to void pointer.
8155 * pa64solib.c: Update copyright. Don't include "assert.h", use
8156 strcmp instead of STREQ, use LONGEST, do not use PTR
8157 * somsolib.c: Ditto.
8158
8159 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8160 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8161 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8162
81632002-06-08 Andrew Cagney <ac131313@redhat.com>
8164
8165 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8166 (default_get_saved_register): Delete function.
8167 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8168 generic_unwind_get_saved_register.
8169 * gdbarch.h, gdbarch.c: Re-generate.
8170
81712002-06-08 Andrew Cagney <ac131313@redhat.com>
8172
8173 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8174 generic_func_frame_chain_valid.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * blockframe.c (generic_func_frame_chain_valid): Only check
8177 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8178 passing FP to PC_IN_CALL_DUMMY.
8179 Fix PR gdb/360.
8180
81812002-06-08 Andrew Cagney <ac131313@redhat.com>
8182
8183 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8184 (register_gdbarch_data): Initialize init_p.
8185 (gdbarch_data): Initialize data pointer using the init function.
8186 (init_gdbarch_data): Delete function.
8187 (gdbarch_update_p): Update.
8188 (initialize_non_multiarch): Update.
8189 (struct gdbarch): Add field initialized_p.
8190 * gdbarch.h, gdbarch.c: Re-generate.
8191
81922002-06-07 Michal Ludvig <mludvig@suse.cz>
8193
8194 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8195 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8196 better do the things actually here.
8197 * x86-64-tdep.c (x86_64_register_name2nr): New.
8198 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8199 (x86_64_gdbarch_init): Respect the above change.
8200 * x86-64-tdep.h (x86_64_register_name2nr)
8201 (x86_64_register_nr2name): Add prototypes.
8202 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8203
82042002-06-06 Michael Snyder <msnyder@redhat.com>
8205
8206 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8207 Delete extra braces and re-indent.
8208 (d10v_store_return_value): Char return values
8209 must be shifted over by one byte in R0.
8210 (d10v_extract_return_value): Delete extra braces, re-indent.
8211
82122002-06-06 Elena Zannoni <ezannoni@redhat.com>
8213
8214 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8215 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8216 (d10v_integer_to_address): Rewrite.
8217 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8218 the d10v specific functions which take care of converting to the
8219 correct space.
8220
82212002-06-06 Elena Zannoni <ezannoni@redhat.com>
8222
8223 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8224 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8225
82262002-06-02 Andrew Cagney <ac131313@redhat.com>
8227
8228 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8229 includes.
8230 * config/tm-linux.h: Ditto.
8231 * config/alpha/tm-alphalinux.h: Ditto.
8232 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8233 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8234 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8235 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8236 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8237 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8238 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8239 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8240 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8241 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8242 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8243 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8244 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8245 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8246 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8247 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8248 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8249 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8250 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8251 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8252 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8253 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8254 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8255 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8256 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8257 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8258 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8259 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8260 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8261 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8262 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8263 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8264 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8265 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8266 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8267 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8268 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8269
82702002-05-04 Aidan Skinner <aidan@velvet.net>
8271
8272 * ada-exp.tab.c: New file
8273 * ada-exp.y: New file
8274 * ada-lang.c: New file
8275 * ada-lang.h: New file
8276 * ada-lex.c: New file
8277 * ada-lex.l: New file
8278 * ada-tasks.c: New file
8279 * ada-typeprint.c: New file
8280 * ada-valprint.c: New file
8281
82822002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8283
8284 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8285 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8286
82872002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8288
8289 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8290 insetead of ppc-linux-tdep.o.
8291 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8292 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8293
82942002-06-02 Andrew Cagney <ac131313@redhat.com>
8295
8296 2002-05-07 Christian Groessler <chris@groessler.org>
8297 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8298 bit register contents for little endian hosts.
8299
83002002-06-01 Andrew Cagney <ac131313@redhat.com>
8301
8302 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8303 any maintainer.
8304
83052002-06-01 Andrew Cagney <ac131313@redhat.com>
8306
8307 * gdbarch.h: Regenerate.
8308
83092002-06-01 Andrew Cagney <ac131313@redhat.com>
8310
8311 * MAINTAINERS: Add everyone to write-after-approval list.
8312
83132002-06-01 Andrew Cagney <ac131313@redhat.com>
8314
8315 * stack.c (frame_info): Use frame_register_unwind instead of
8316 saved_regs. Mention when the SP is on the stack or in a register.
8317
8318 * frame.h (frame_register_unwind_ftype): Define. Document.
8319 (struct frame_info): Add field register_unwind and
8320 register_unwind_cache.
8321 (frame_register_unwind): Declare.
8322 (generic_unwind_get_saved_register): Declare.
8323
8324 * frame.c (frame_register_unwind): New function.
8325 (generic_unwind_get_saved_register): New function.
8326
8327 * blockframe.c (generic_call_dummy_register_unwind): New function.
8328 (frame_saved_regs_register_unwind): New function.
8329 (set_unwind_by_pc): New function.
8330 (create_new_frame): New function.
8331 (get_prev_frame): New function.
8332
83332002-05-30 Andrew Cagney <ac131313@redhat.com>
8334
8335 * a29k-share/: Delete directory.
8336 * remote-vx29k.c: Delete file.
8337
83382002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8339
8340 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8341 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8342
83432002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8344
8345 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8346 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8347 (sparc64nbsd-nat.o)
8348 (sparcnbsd-nat.o)
8349 (sparcnbsd-tdep.o): New dependency lists.
8350 * NEWS: Note new UltraSPARC NetBSD native configuration.
8351 * configure.host (sparc64-*-netbsd*): New host.
8352 * configure.tgt (sparc-*-netbsdelf*)
8353 (sparc-*-netbsd*): Set gdb_target to nbsd.
8354 (sparc64-*-netbsd*): New target.
8355 * sparc64nbsd-nat.c: New file.
8356 * sparcnbsd-nat.c: New file.
8357 * sparcnbsd-tdep.c: New file.
8358 * sparcnbsd-tdep.h: New file.
8359 * config/sparc/nbsd.mt: New file.
8360 * config/sparc/nbsd64.mh: New file.
8361 * config/sparc/nbsd64.mt: New file.
8362 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8363 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8364 (HOST_IPC): Remove.
8365 * config/sparc/nbsdaout.mt: Remove.
8366 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8367 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8368 (HOST_IPC): Remove.
8369 * config/sparc/nbsdelf.mt: Remove.
8370 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8371 sparc-nat.c compatiblity defines.
8372 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8373 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8374 * config/sparc/tm-nbsd64.h: New file.
8375 * config/sparc/tm-nbsdaout.h: Remove.
8376 * config/sparc/xm-nbsd.h: Remove.
8377
83782002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8379
8380 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8381 * sparc-tdep.c: Include osabi.h.
8382 (gdbarch_tdep): Add osabi member.
8383 (_initialize_sparc_tdep): Use gdbarch_register.
8384 (sparc_gdbarch_init): Use generic OS ABI framework.
8385 (sparc_dump_tdep): New function.
8386
83872002-05-30 Kevin Buettner <kevinb@redhat.com>
8388
8389 * corefile.c (do_captured_read_memory_integer): Return non-zero
8390 result.
8391 (safe_read_memory_integer): Copy result of memory read when
8392 status is non-zero. Also, add comments.
8393
83942002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8395
8396 * Makefile.in (ppc_tdep_h): Define.
8397 (ppc-linux-nat.o)
8398 (ppc-linux-tdep.o)
8399 (rs6000-tdep.o): Use $(ppc_tdep_h).
8400 (ppc-sysv-tdep.o)
8401 (ppcnbsd-nat.o)
8402 (ppcnbsd-tdep.o): New dependency lists.
8403 * ppc-tdep.h: Use generic OS ABI framework.
8404 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8405 (ppc_linux_init_abi): New functions.
8406 (ppc_sysv_abi_broken_use_struct_convention)
8407 (ppc_sysv_abi_use_struct_convention)
8408 (ppc_sysv_abi_push_arguments): Move to...
8409 * ppc-sysv-tdep.c: ...here.
8410 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8411 * rs6000-tdep.c (process_note_abi_tag_sections)
8412 (get_elfosabi): Remove.
8413 (rs6000_gdbarch_init): Use generic OS ABI framework.
8414 (rs6000_dump_tdep): New function.
8415 (_initialize_rs6000_tdep): Use gdbarch_register.
8416 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8417 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8418 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8419 of ppc-linux-tdep.o.
8420 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8421 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8422 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8423 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8424 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8425 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8426
84272002-05-29 Jim Blandy <jimb@redhat.com>
8428
8429 * macroscope.c (default_macro_scope): Put `void' in empty argument
8430 list.
8431
84322002-05-29 Andrew Cagney <ac131313@redhat.com>
8433
8434 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8435 * arch-utils.c: Include "sim-regno.h".
8436 * gdbarch.sh: Don't include "sim-regno.h".
8437 * gdbarch.h, gdbarch.c: Regenerate.
8438 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8439 here.
8440 * arch-utils.h (legacy_register_sim_regno): To here.
8441 * remote-sim.c (legacy_register_sim_regno): Move function from
8442 here.
8443 * arch-utils.c (legacy_register_sim_regno): To here.
8444
84452002-05-28 Andrew Cagney <ac131313@redhat.com>
8446
8447 * sim-regno.h: New file.
8448 * Makefile.in (sim_regno_h): Define.
8449 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8450 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8451 (legacy_register_sim_regno): New function.
8452 (one2one_register_sim_regno): New function.
8453 (gdbsim_fetch_register): Rewrite.
8454 (gdbsim_store_register): Only store a register when
8455 REGISTER_SIM_REGNO is valid.
8456 * d10v-tdep.c: Include "sim-regno.h".
8457 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8458 (d10v_ts3_register_sim_regno): Ditto.
8459 * gdbarch.sh: Include "sim-regno.h".
8460 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8461 * gdbarch.h, gdbarch.c: Regenerate.
8462 * arch-utils.h (default_register_sim_regno): Delete declaration.
8463 * arch-utils.c (default_register_sim_regno): Delete function.
8464
84652002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8466
8467 * ppcnbsd-nat.c: Rewrite.
8468 * ppcnbsd-tdep.c: New file.
8469 * ppcnbsd-tdep.h: New file.
8470 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8471 solib.o, and solib-svr4.o.
8472 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8473 nbsd-tdep.o, and corelow.o.
8474
84752002-05-28 Andrew Cagney <ac131313@redhat.com>
8476
8477 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8478 `tr' and `sed'. Mention that `broken' targets are not expected to
8479 build.
8480
84812002-05-27 Michal Ludvig <mludvig@suse.cz>
8482
8483 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8484 Let PC point right after the prologue before looking up symbols.
8485
84862002-05-27 Martin M. Hunt <hunt@redhat.com>
8487
8488 * i386-tdep.c (i386_register_virtual_type): Return
8489 builtin_type_vec128i for SSE registers.
8490
8491 * gdbtypes.h (builtin_type_vec128i): Declare.
8492
8493 * gdbtypes.c (build_builtin_type_vec128i): New function.
8494 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8495 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8496 (build_gdbtypes): Initialize new builtin vector types.
8497 (_initialize_gdbtypes): Register new vector types with gdbarch.
8498
84992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8500
8501 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8502 since it has been multi-arch'd.
8503 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8504 Move Alpha and VAX multi-arch news entries to same section
8505 as other multi-arch news.
8506
85072002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8508
8509 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8510 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8511 static. Rename some register numbers to put them in ns32k-tdep
8512 private namespace.
8513 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8514 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8515 functions.
8516 (_initialize_ns32k_tdep): Use gdbarch_register.
8517 * ns32k-tdep.h: New file.
8518 * ns32knbsd-tdep.c: New file.
8519 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8520 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8521 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8522 REGISTER_BYTES, REGISTER_BYTE): Remove.
8523 * config/ns32k/tm-ns32k.h: New file.
8524 * config/ns32k/tm-umax.h: Remove.
8525
85262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8527
8528 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8529 ns32k_store_struct_return, ns32k_extract_return_value,
8530 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8531 functions.
8532 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8533 ns32k_saved_pc_after_call.
8534 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8535 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8536 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8537 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8538 ns32k_extract_struct_value_address.
8539
85402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8541
8542 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8543 ns32k_fix_call_dummy): New.
8544 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8545 ns32k_call_dummy_words.
8546 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8547 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8548 CALL_DUMMY_NARGS): Remove.
8549 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8550
85512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8552
8553 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8554 ns32k_frame_saved_pc, ns32k_frame_args_address,
8555 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8556 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8557 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8558 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8559 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8560 (BREAKPOINT): Remove..
8561 (FRAME_CHAIN): Define as ns32k_frame_chain.
8562 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8563 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8564 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8565 (FRAME_FIND_SAVED_REGS): Remove.
8566 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8567 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8568 (POP_FRAME): Define as ns32k_pop_frame.
8569
85702002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8571
8572 * ns32k-tdep.c (ns32k_register_byte_32082,
8573 ns32k_register_byte_32382, ns32k_register_raw_size,
8574 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8575 functions.
8576 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8577 ns32k_register_byte_32382.
8578 * config/ns32k/tm-umax.h: Update copyright years.
8579 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8580 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8581 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8582 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8583 (ns32k_get_enter_addr): Fix prototype.
8584
85852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8586
8587 * ns32k-tdep.c: Update copyright years.
8588 (ns32k_register_name_32082): New function.
8589 (ns32k_register_name_32382): Ditto.
8590 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8591 (REGISTER_NAME): Define as ns32k_register_name_32382.
8592 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8593 (REGISTER_NAME): Define as ns32k_register_name_32082.
8594
85952002-05-24 Jim Blandy <jimb@redhat.com>
8596
8597 * dwarf2read.c (free_line_header): Use xfree, not free.
8598
85992002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8600
8601 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8602 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8603
86042002-05-23 Andrew Cagney <ac131313@redhat.com>
8605
8606 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8607
86082002-05-23 Andrew Cagney <ac131313@redhat.com>
8609
8610 From Ross Alexander at NEC Europe:
8611 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8612
86132002-05-23 Michael Snyder <msnyder@redhat.com>
8614
8615 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8616 for input, rather than parse_and_eval_address.
8617
86182002-05-23 Andrew Cagney <ac131313@redhat.com>
8619
8620 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8621 * Makefile.in (sim_d10v_h): Update definition.
8622
86232002-05-24 Andrew Cagney <cagney@redhat.com>
8624
8625 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8626 change `2002-05-22 Michael Snyder' below.
8627 (d10v_push_arguments): Ditto.
8628 (d10v_extract_return_value): Ditto.
8629
86302002-05-23 Jim Blandy <jimb@redhat.com>
8631
8632 * macrotab.c (check_for_redefinition): Don't complain if the new
8633 definition is the same as the previous one. Take more arguments
8634 to allow the comparison.
8635 (macro_define_object, macro_define_function): Pass more arguments
8636 to check_for_redefinition.
8637
86382002-05-22 Michael Snyder <msnyder@redhat.com>
8639
8640 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8641 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8642 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8643 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8644 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8645 Add a temp variable to save a call (and a memory read).
8646 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8647 if possible (so that PC_IN_CALL_DUMMY will work).
8648
86492002-05-22 Corinna Vinschen <vinschen@redhat.com>
8650
8651 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8652
86532002-05-22 Michal Ludvig <mludvig@suse.cz>
8654
8655 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8656 fde->cie_ptr.
8657 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8658 (dwarf2_build_frame_info): Add offset to fde->initial_location
8659 so that frames of shared libraries are mapped correctly.
8660 (execute_stack_op): Change type of 'result' from ULONGEST to
8661 CORE_ADDR.
8662
86632002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8664
8665 * config/alpha/tm-nbsd.h: Include solib.h.
8666
86672002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8668
8669 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8670 assumptions about the host's byte order.
8671
86722002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8673
8674 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8675 to dependency list.
8676 * alphanbsd-tdep.c: Include solib-svr4.h.
8677 * shnbsd-tdep.c: Ditto.
8678
86792002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8680
8681 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8682 nbsd-tdep.h to dependency list.
8683 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8684 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8685 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8686 nbsdaout.mh and nbsdelf.mh consistently.
8687 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8688 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8689 nbsdaout.mt and nbsdelf.mh consistently.
8690 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8691 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8692 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8693 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8694 a.out shared library stuff from here...
8695 * config/nm-nbsdaout.h: ...to here.
8696 * config/tm-nbsd.h: Remove.
8697 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8698 * config/arm/nbsd.mh: Remove.
8699 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8700 nbsd-tdep.o.
8701 * config/arm/nbsdaout.mh: New file.
8702 * config/arm/nbsdelf.mh: New file.
8703 * config/arm/nm-nbsdaout.h: New file.
8704 * config/i386/nbsd.mh: Remove.
8705 * config/i386/nbsd.mt: Remove.
8706 * config/i386/nbsdaout.mh: New file.
8707 * config/i386/nbsdaout.mt: New file.
8708 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8709 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8710 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8711 i386_register_u_addr): Remove.
8712 * config/i386/nm-nbsdaout.h: New file.
8713 * config/i386/nm-nbsdelf.h: Remove.
8714 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8715 (USE_STRUCT_CONVENTION): Remove.
8716 * config/i386/tm-nbsdaout.h: New file.
8717 * config/i386/tm-nbsdelf.h: Remove.
8718 * config/m68k/nbsd.mh: Remove.
8719 * config/m68k/nbsd.mt: Remove.
8720 * config/m68k/nbsdaout.mh: New file.
8721 * config/m68k/nbsdaout.mt: New file.
8722 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8723 * config/m68k/nm-nbsdaout.h: New file.
8724 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8725 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8726 * config/ns32k/nbsd.mh: Remove.
8727 * config/ns32k/nbsd.mt: Remove.
8728 * config/ns32k/nbsdaout.mh: New file.
8729 * config/ns32k/nbsdaout.mt: New file.
8730 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8731 * config/ns32k/nm-nbsdaout.h: New file.
8732 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8733 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8734 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8735 (SVR4_SHARED_LIBS): Remove.
8736 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8737 * config/sparc/nbsd.mh: Remove.
8738 * config/sparc/nbsd.mt: Remove.
8739 * config/sparc/nbsdaout.mh: New file.
8740 * config/sparc/nbsdaout.mt: New file.
8741 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8742 * config/sparc/nbsdelf.mt: New file.
8743 * config/sparc/nm-nbsdaout.h: New file.
8744 * config/sparc/nm-nbsdelf.h: Remove.
8745 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8746 * config/sparc/tm-nbsdaout.h: New file.
8747
87482002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8749
8750 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8751 mipsnbsd-tdep.c
8752 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8753
87542002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8755
8756 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8757 shnbsd-nat.c.
8758 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8759
87602002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8761
8762 * NEWS: Note new MIPS NetBSD native configuration.
8763 * configure.host (mips*-*-netbsd*): New host.
8764 * configure.tgt (mips*-*-netbsd*): New target.
8765 * mipsnbsd-nat.c: New file.
8766 * mipsnbsd-tdep.c: New file.
8767 * mipsnbsd-tdep.h: New file.
8768 * config/mips/nbsd.mh: New file.
8769 * config/mips/nbsd.mt: New file.
8770 * config/mips/nm-nbsd.h: New file.
8771 * config/mips/tm-nbsd.h: New file.
8772
87732002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8774
8775 * Makefile.in (SFILES): Add osabi.c.
8776 (COMMON_OBS): Add osabi.o.
8777 (osabi.o): New dependency list.
8778 * osabi.c: New file.
8779 * osabi.h: New file.
8780 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8781
8782 * Makefile.in (alpha_tdep_h): Define and use instead of
8783 alpha-tdep.h.
8784 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8785 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8786 Remove.
8787 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8788 * alpha-tdep.h: Include osabi.h.
8789 (alpha_abi): Remove.
8790 (gdbarch_tdep): Use generic OS ABI framework.
8791 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8792 gdbarch_register_osabi.
8793 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8794 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8795 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8796
8797 * Makefile.in (sh_tdep_h): Add osabi.h.
8798 * sh-tdep.h (sh_osabi): Remove.
8799 (gdbarch_tdep): Use generic OS ABI framework.
8800 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8801 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8802 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8803 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8804
8805 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8806 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8807 gdbarch_register_osabi.
8808 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8809 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8810 (get_elfosabi): Rename to...
8811 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8812 ABI framework support routines.
8813 (arm_gdbarch_init): Use generic OS ABI framework.
8814 (arm_dump_tdep): Likewise.
8815 (_initialize_arm_tdep): Likewise.
8816 * arm-tdep.h: Include osabi.h.
8817 (arm_abi): Remove.
8818 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8819 osabi member.
8820 (arm_gdbarch_register_os_abi): Remove prototype.
8821 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8822 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8823
8824 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8825 * mips-tdep.c: Include osabi.h.
8826 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8827 OS ABI framework.
8828
88292002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8830
8831 * h8300-tdep.c: Fix formatting.
8832
88332002-05-20 Elena Zannoni <ezannoni@redhat.com>
8834
8835 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8836 printing vector registers.
8837
88382002-05-19 Andrew Cagney <ac131313@redhat.com>
8839
8840 From Fernando Nasser:
8841 * remote.c (remote_async_open_1): Re-throw the exception when the
8842 connection fails.
8843 (remote_cisco_open): Ditto.
8844 (remote_open_1): Ditto.
8845
88462002-05-19 Andrew Cagney <ac131313@redhat.com>
8847
8848 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8849 (remote_start_remote): Add uiout parameter. Pass through to
8850 remote_start_remote_dummy.
8851 (remote_open_1): Use catch_exception instead of catch_errors.
8852 (remote_async_open_1): Ditto.
8853 (remote_cisco_open): Ditto.
8854
88552002-05-19 Andrew Cagney <ac131313@redhat.com>
8856
8857 * remote.c (remote_start_remote): Replace PTR with void pointer.
8858 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8859 static.
8860
88612002-05-18 Andrew Cagney <ac131313@redhat.com>
8862
8863 * gdb_indent.sh: Allow the script to be run in the sim directory.
8864
88652002-05-18 Mark Kettenis <kettenis@gnu.org>
8866
8867 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8868 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8869
8870 * corelow.c (core_open): Only call set_gdbarch_from_file if
8871 exec_bfd is NULL.
8872
88732002-05-17 Andrey Volkov <avolkov@transas.com>
8874
8875 * h8300-tdep.c: Add support of EXR register
8876 * config/h8300/tm-h8300.h: Ditto.
8877
88782002-05-17 Andrey Volkov <avolkov@transas.com>
8879
8880 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8881
88822002-05-17 Andrey Volkov <avolkov@transas.com>
8883
8884 * h8300-tdep.c: Change literal regnums to REGNO.
8885
88862002-05-17 Jim Blandy <jimb@redhat.com>
8887
8888 * NEWS: Note addition of macro support.
8889
8890 Expand preprocessor macros in C expressions.
8891 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8892 (scan_macro_expansion, scanning_macro_expansion,
8893 finished_macro_expansion): New function declarations.
8894 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8895 variable declarations.
8896 * parser-defs.h (expression_context_pc): New declaration.
8897 * parse.c (expression_context_pc): New variable.
8898 (parse_exp_1): Set expression_context_pc, as well as
8899 expression_context_block.
8900 * c-exp.y (yylex): If we're not already reading the result of a
8901 macro expansion, try to macro-expand the next token. When we're
8902 done scanning a macro expansion, switch back to the mainline text.
8903 Commas and `if's in a macro's expansion don't terminate the input.
8904 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8905 (macro_original_text, macro_expanded_text,
8906 expression_macro_lookup_func, expression_macro_lookup_baton): New
8907 variables.
8908 (scan_macro_expansion, scanning_macro_expansion,
8909 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8910 c_preprocess_and_parse): New functions.
8911 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8912 c_preprocess_and_parse, instead of c_parse.
8913 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8914 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8915
8916Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8917
8918 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8919 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8920 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8921
89222002-05-17 Corinna Vinschen <vinschen@redhat.com>
8923
8924 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8925
89262002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8927
8928 * Makefile.in (sh_tdep_h): Define and use.
8929 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8930 register enum): Move to...
8931 * * sh-tdep.h: ...here.
8932 * sh-tdep.c: Include sh-tdep.h.
8933 * sh3-rom.c: Likewise.
8934 * shnbsd-tdep.c: Likewise.
8935
89362002-05-16 Michael Snyder <msnyder@redhat.com>
8937
8938 * arm-tdep.c: Spelling fix in comment.
8939
89402002-05-16 Jim Blandy <jimb@redhat.com>
8941
8942 Add commands for manually expanding macros and showing their
8943 definitions.
8944 * macrocmd.c, macroscope.c, macroscope.h: New files.
8945 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8946 (macroscope_h): New variable.
8947 (HFILES_NO_SRCDIR): Add macroscope.h.
8948 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8949 (macroscope.o, macrocmd.o): New rules.
8950
8951 Teach the Dwarf 2 reader to read macro information.
8952 * dwarf2read.c: #include "macrotab.h".
8953 (dwarf_macinfo_buffer): New variable.
8954 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8955 dwarf_macinfo_size.
8956 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8957 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8958 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8959 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8960 dwarf2_macro_spaces_in_definition): New complaints.
8961 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8962 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8963 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8964 the partial symbol table.
8965 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8966 from what's recorded in the partial symbol table.
8967 (read_file_scope): If the compilation unit has a
8968 `DW_AT_macro_info' attribute, read its macro information.
8969 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8970
89712002-05-16 Daniel Jacobowitz <drow@mvista.com>
8972
8973 Fix PR gdb/546
8974 * ser-tcp.c: Don't include <netinet/udp.h>.
8975
89762002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8977
8978 * MAINTAINERS: Update my email address.
8979
89802002-05-16 Richard Earnshaw <rearnsha@arm.com>
8981
8982 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8983 include file of the same name.
8984
89852002-05-16 Corinna Vinschen <vinschen@redhat.com>
8986
8987 * configure.tgt: Mark v850 as multi-arched.
8988 * config/v850/tm-v850.h: Remove file.
8989 * config/v850/v850.mt: Eliminate TM_FILE.
8990
89912002-05-16 Corinna Vinschen <vinschen@redhat.com>
8992
8993 * v850-tdep.c: Full multi-arch.
8994 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8995 Define GDB_MULTI_ARCH to 2.
8996
89972002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8998
8999 * p-exp.y (current_type): New static variable.
9000 Carries the type of the expression at the position that is parsed.
9001 (push_current_type, pop_current_type): Two new functions. Used
9002 to store/restore current_type in expression on specific tokens.
9003 (search_field): New static variable. Set to one after parsing a point
9004 as at that point only a FIELDNAME token should be searched.
9005 (FIELDNAME): New token. After a point only a token belonging to
9006 current_type type definition is allowed.
9007 (all over token rules): reset and change current_type according
9008 to rules.
9009 (exp '[' rule): insert implicit array index field if
9010 exp is a pascal string type.
9011
90122002-05-16 Corinna Vinschen <vinschen@redhat.com>
9013
9014 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9015 frame info. Use frame_info's saved_regs instead of matching member
9016 in extra_frame_info throughout.
9017 (v850_frame_init_saved_regs): New function.
9018 (v850_init_extra_frame_info): Move most functionality into
9019 v850_frame_init_saved_regs().
9020 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9021 (v850_frame_find_saved_regs): Remove declaration.
9022 (FRAME_FIND_SAVED_REGS): Remove definition.
9023 (v850_frame_init_saved_regs): Add declaration.
9024 (FRAME_INIT_SAVED_REGS): Add definition.
9025
90262002-05-16 Corinna Vinschen <vinschen@redhat.com>
9027
9028 * v850-tdep.c: Begin multi-arch'ing v850.
9029 (v850_target_architecture_hook): Remove function.
9030 (v850_gdbarch_init): New function. Add code previously in
9031 v850_target_architecture_hook().
9032 (_initialize_v850_tdep): Don't set target_architecture_hook.
9033 Call register_gdbarch_init() instead.
9034
90352002-05-16 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9038 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9039 (fixup_class_method_type): Likewise.
9040
90412002-05-15 Jim Blandy <jimb@redhat.com>
9042
9043 Add macro structures to GDB's symbol tables. Nobody puts anything
9044 in them yet.
9045 * symtab.h (struct symtab): New member: `macro_table'.
9046 * buildsym.h (pending_macros): New global variable.
9047 * buildsym.c: #include "macrotab.h".
9048 (buildsym_init): Initialize `pending_macros'.
9049 (end_symtab): If we found macro information while reading a CU's
9050 debugging info, do build a symtab structure for it. Make the
9051 symtab point to the macro information, and clear the
9052 `pending_macros' pointer which held it while we were reading the
9053 debug info.
9054 (really_free_pendings): Free any pending macro table.
9055 * objfiles.h (struct objfile): New member: `macro_cache'.
9056 * objfiles.c (allocate_objfile): Set allocate and free functions
9057 for the macro cache's objstack.
9058 (free_objfile): Empty the macro cache's obstack.
9059 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9060 set new allocate and free functions for it.
9061 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9062 free functions for the macro cache's objstack. (Why is this
9063 function building its own objfile?)
9064 * symmisc.c (print_objfile_statistics): Print statistics on the
9065 macro bcache.
9066 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9067
90682002-05-15 Richard Earnshaw <rearnsha@arm.com>
9069
9070 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9071 (REGISTER_U_ADDR): Delete definition.
9072 (arm_register_u_addr): Delete declaration.
9073
90742002-05-15 Richard Earnshaw <rearnsha@arm.com>
9075
9076 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9077 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9078
90792002-05-14 Andrew Cagney <ac131313@redhat.com>
9080
9081 * regcache.c (register_valid): Revise comments refering to "Not
9082 available" and "unavailable".
9083 * frame.c (frame_register_read): Ditto.
9084 * findvar.c (value_of_register): Ditto.
9085
90862002-05-15 Andrew Cagney <cagney@redhat.com>
9087
9088 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9089 (remote-sim.o): Update dependencies.
9090 (d10v-tdep.o): Specify dependencies.
9091 (sim_d10v_h): Define.
9092
90932002-05-14 Jim Blandy <jimb@redhat.com>
9094
9095 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9096 * macrotab.c (macro_lookup_inclusion, find_definition,
9097 new_macro_table): Same.
9098
9099 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9100 not `! strcmp ()'. This is a dubious improvement.
9101 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9102
9103 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9104 although it's not necessary, to avoid a warning.
9105
91062002-05-14 Daniel Jacobowitz <drow@mvista.com>
9107
9108 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9109 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9110 TYPE_INSTANCE_FLAGS.
9111 (struct main_type): New.
9112 (struct type): Move most members to struct main_type. Change
9113 cv_type and as_type to new type_chain member. Add instance_flags.
9114 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9115 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9116 (finish_cv_type): Remove prototype.
9117 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9118 Set TYPE_CHAIN.
9119 (alloc_type_instance): New function.
9120 (smash_type): New function.
9121 (make_pointer_type, make_reference_type, make_function_type)
9122 (smash_to_member_type, smash_to_method_type): Call smash_type.
9123 (make_qualified_type): New function.
9124 (make_type_with_address_space): Call make_qualified_type.
9125 (make_cv_type): Likewise.
9126 (finish_cv_type): Remove unnecessary function.
9127 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9128 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9129 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9130 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9131 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9132 * hpread.c (hpread_read_struct_type): Likewise.
9133 * stabsread.c (read_struct_type): Likewise.
9134
91352002-05-14 Elena Zannoni <ezannoni@redhat.com>
9136
9137 * configure.tgt: Add a catch all sh* target, for cases like
9138 sh[2,3,4]-elf and sh-hms.
9139
91402002-05-14 Keith Seitz <keiths@redhat.com>
9141
9142 * event-loop.c (create_file_handler): Don't do anything but
9143 update data when we are given a fd which we are already
9144 monitoring.
9145
91462002-05-14 Michal Ludvig <mludvig@suse.cz>
9147
9148 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9149 (update_context): Use __func__ in warnings.
9150
91512002-05-14 Daniel Jacobowitz <drow@mvista.com>
9152
9153 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9154 and tcp_close to net_open and net_close.
9155 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9156 using UDP if requested. Don't try to disable Nagle on UDP
9157 sockets.
9158 * remote.c (remote_serial_open): New function. Warn about UDP.
9159 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9160
91612002-05-13 Elena Zannoni <ezannoni@redhat.com>
9162
9163 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9164
91652002-05-13 Elena Zannoni <ezannoni@redhat.com>
9166
9167 * configure.tgt: Remove sh-hms target.
9168 * MAINTAINERS: Don't list sh-hms as a separate target.
9169
91702002-05-13 Jim Blandy <jimb@redhat.com>
9171
9172 Add first preprocessor macro-expansion files.
9173 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9174 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9175 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9176 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9177 (COMMON_OBS): Add macrotab.o, macroexp.o.
9178 (macroexp.o, macrotab.o): New rules.
9179
91802002-05-13 Andrew Cagney <ac131313@redhat.com>
9181
9182 * config/m88k/tm-m88k.h: Update copyright.
9183 (m88k_target_write_pc): Declare
9184 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9185 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9186 (SHIFT_INST_REGS): Update definition.
9187 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9188 using old definition of TARGET_WRITE_PC.
9189 * regcache.c (generic_target_write_pc): Delete code handling
9190 NNPC_REGNUM.
9191 * gdbarch.sh (NNPC_REGNUM): Delete.
9192 * gdbarch.h, gdbarch.c: Regenerate.
9193
91942002-05-13 Richard Earnshaw <rearnsha@arm.com>
9195
9196 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9197 builtin reg number.
9198
91992002-05-13 Daniel Jacobowitz <drow@mvista.com>
9200
9201 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9202 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9203 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9204 access macros.
9205 * c-typeprint.c (cp_type_print_method_args): Likewise.
9206 (c_type_print_args): Likewise.
9207 * d10v-tdep.c (d10v_push_arguments): Likewise.
9208 (d10v_extract_return_value): Likewise.
9209 * expprint.c (print_subexp): Likewise.
9210 * gdbtypes.c (lookup_primitive_typename): Likewise.
9211 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9212 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9213 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9214 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9215 (TYPE_VECTOR): Likewise.
9216 * hpread.c (hpread_read_struct_type)
9217 (fix_static_member_physnames, fixup_class_method_type)
9218 (hpread_type_lookup): Likewise.
9219 * mdebugread.c (parse_symbol, parse_type): Likewise.
9220 * p-lang.c (is_pascal_string_type): Likewise.
9221 * valops.c (hand_function_call): Likewise.
9222 * x86-64-tdep.c (classify_argument): Likewise.
9223
9224 * hpread.c (hpread_read_function_type)
9225 (hpread_read_doc_function_type): Call replace_type.
9226 * dstread.c (create_new_type): Delete.
9227 (decode_dst_structure, process_dst_function): Call alloc_type.
9228 Use type access macros.
9229
92302002-05-12 Mark Kettenis <kettenis@gnu.org>
9231
9232 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9233 the're not supported by the current architecture.
9234 (i387_fill_fxsave): Likewise.
9235
92362002-05-12 Fred Fish <fnf@redhat.com>
9237
9238 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9239 sect_index_xxx members to index the first slot in section_offsets
9240 if all of the section_offsets are zero.
9241
92422002-05-12 Mark Kettenis <kettenis@gnu.org>
9243
9244 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9245 checked in with last change.
9246
92472002-05-12 Mark Kettenis <kettenis@gnu.org>
9248
9249 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9250 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9251 config.sub.
9252
92532002-05-12 Daniel Jacobowitz <drow@mvista.com>
9254
9255 * Makefile.in: Update dependencies.
9256
92572002-05-11 Andrew Cagney <ac131313@redhat.com>
9258
9259 * language.c (local_hex_string_custom): Simplify. Do not depend
9260 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9261
9262 * memattr.c (mem_info_command): Replace calls to
9263 longest_local_hex_string and longest_local_hex_string_custom.
9264 * buildsym.c (make_blockvector): Ditto.
9265 * solib.c (info_sharedlibrary_command): Ditto.
9266 * tracepoint.c (tracepoints_info): Ditto.
9267 * symtab.c (print_msymbol_info): Ditto.
9268
9269 * language.c (local_hex_string): Delete.
9270 (local_hex_string_custom): Delete.
9271 (longest_local_hex_string): Rename to local_hex_string.
9272 (longest_local_hex_string_custom): Rename to
9273 local_hex_string_custom.
9274 * language.h (local_hex_string): Change parameter type to LONGEST.
9275 (local_hex_string_custom): Ditto.
9276 (longest_local_hex_string): Delete declaration.
9277 (longest_local_hex_string_custom): Ditto.
9278
9279 * solib.c: Update copyright.
9280 * memattr.c: Update copyright.
9281
92822002-05-11 Andrew Cagney <ac131313@redhat.com>
9283
9284 * arch-utils.h (legacy_register_to_value): Declare.
9285 (legacy_value_to_register): Declare.
9286 (legacy_convert_register_p): Declare.
9287 * arch-utils.c (legacy_register_to_value): New function.
9288 (legacy_value_to_register): New function.
9289 (legacy_convert_register_p): New function.
9290
9291 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9292 (VALUE_TO_REGISTER): Define.
9293 (CONVERT_REGISTER_P): Define.
9294 * gdbarch.h, gdbarch.c: Regenerate.
9295
9296 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9297 VALUE_TO_REGISTER.
9298 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9299 CONVERT_REGISTER_P.
9300
93012005-05-11 Daniel Jacobowitz <drow@mvista.com>
9302 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9303
9304 * Makefile.in: Update dependencies for valops.c.
9305 * valops.c: Include "gdb_assert.h".
9306 (typecmp): Skip THIS parameter to methods.
9307 (find_method_list): Remove static_memfuncp argument,
9308 update callers. Check for stub methods.
9309 (find_value_oload_method_list): Don't set *static_memfuncp.
9310 (find_overload_match): Don't check for stub methods. Assert
9311 that methods are not stubbed. Handle static methods.
9312 (value_find_oload_method_list): Remove static_memfuncp argument.
9313 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9314 to the argument list for static stub methods.
9315 * value.h (value_find_oload_method_list): Update prototype.
9316
93172002-05-11 Andrew Cagney <ac131313@redhat.com>
9318
9319 * arch-utils.h (generic_register_size): Declare.
9320 (generic_register_raw_size, generic_register_virtual_size): Delete
9321 declarations.
9322 * arch-utils.c (generic_register_raw_size): Delete.
9323 (generic_register_size): New function.
9324 (generic_register_virtual_size): Delete.
9325
9326 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9327 default generic_register_size.
9328 * gdbarch.h, gdbarch.c: Re-generate.
9329
9330 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9331 register_virtual_size.
9332 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9333 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9334
93352002-05-11 Andrew Cagney <ac131313@redhat.com>
9336
9337 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9338 * gdbarch.h, gdbarch.c: Regenerate.
9339 * gnu-v3-abi.c: Update copyright.
9340 (vtable_address_point_offset): Update.
9341 (gnuv3_rtti_type): Update.
9342 (gnuv3_baseclass_offset): Update.
9343 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9344 (init_fetch_link_map_offsets): Update.
9345 * remote.c (get_remote_state): Update.
9346
93472002-05-11 Daniel Jacobowitz <drow@mvista.com>
9348
9349 * TODO: Remove value_headof/value_from_vtable_info comment.
9350 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9351 * values.c (value_headof, value_from_vtable_info): Delete.
9352 * value.h (value_from_vtable_info): Delete prototype.
9353
93542002-05-11 Andrew Cagney <ac131313@redhat.com>
9355
9356 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9357 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9358 $(gdb_regex_h).
9359 (gdb_assert_h): Define.
9360 (gdb_wait_h): Define.
9361 (gdb_regex_h): Define.
9362
93632002-05-11 Daniel Jacobowitz <drow@mvista.com>
9364
9365 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9366 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9367
93682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9369
9370 * nbsd-tdep.c: Fix comment.
9371
93722002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9373
9374 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9375 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9376 (nbsd-tdep.o): New dependency list.
9377 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9378 nbsd-tdep.h.
9379 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9380 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9381 * nbsd-tdep.c: New file.
9382 * nbsd-tdep.h: New file.
9383 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9384 nbsd-tdep.h.
9385 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9386 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9387 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9388 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9389
93902002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9391
9392 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9393 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9394 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9395 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9396 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9397 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9398
93992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9400
9401 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9402 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9403 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9404 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9405 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9406 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9407 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9408
94092002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9410
9411 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9412 fetch_elfcore_registers to...
9413 * i386nbsd-tdep.c: ...here.
9414 (i386nbsd_use_struct_convention): Rename to...
9415 (i386nbsd_aout_use_struct_convention): ...this.
9416 (i386nbsd_supply_reg): New function.
9417 (i386nbsd_fill_reg): New function.
9418 (fetch_core_registers): Use i386nbsd_supply_reg.
9419 (fetch_elfcore_registers): Likewise.
9420 (_initialize_i386nbsd_tdep): New function.
9421 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9422 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9423 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9424 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9425 (i386nbsd_aout_use_struct_convention): ...this.
9426
94272002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9428
9429 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9430 (store_inferior_registers): Use shnbsd_fill_reg.
9431 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9432 sh_nbsd_supply_register): Collapse into...
9433 (shnbsd_supply_reg): ...this.
9434 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9435 (shnbsd_fill_reg): ...this.
9436 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9437 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9438 (fetch_core_registers): Use shnbsd_supply_reg.
9439 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9440 (sh_nbsd_core_fns): Rename to...
9441 (shnbsd_core_fns): ...this.
9442 (sh_nbsd_elfcore_fns): Rename to...
9443 (shnbsd_elfcore_fns): ...this.
9444 (sh_nbsd_init_abi): Rename to...
9445 (shnbsd_init_abi): ...this.
9446 (_initialize_sh_nbsd_tdep): Rename to...
9447 (_initialize_shnbsd_tdep): ...this.
9448 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9449 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9450 sh_nbsd_fill_register): Remove prototypes.
9451 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9452
94532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9454
9455 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9456 (i387-nat.o): Delete dependency list.
9457 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9458 (x86-64-linux-nat.o): Likewise.
9459 * i387-nat.c: Delete file, moving contents to...
9460 * i387-tdep.c: ...here.
9461 * i387-nat.h: Rename...
9462 * i387-tdep.h: ...to this.
9463 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9464 * i386-linux-nat.c: Likewise.
9465 * i386bsd-nat.c: Likewise.
9466 * i386gnu-nat.c: Likewise.
9467 * i386nbsd-nat.c: Likewise.
9468 * i386v4-nat.c: Likewise.
9469 * x86-64-linux-nat.c: Likewise.
9470 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9471 * config/i386/go32.mh (NATDEPFILES): Likewise.
9472 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9473 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9474 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9475 * config/i386/linux.mh (NATDEPFILES): Likewise.
9476 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9477 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9478 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9479 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9480
94812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9484 (alphanbsd-nat.o): Remove dependency list.
9485 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9486 * alphanbsd-nat.c: Delete. Contents moved to...
9487 * alphanbsd-tdep.c: ...here.
9488 (_initialize_alphanbsd_tdep): Register core functions.
9489 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9490
94912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9492
9493 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9494 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9495 (alphanbsd-nat.o): Likewise.
9496 (alphabsd-tdep.o): New dependency list.
9497 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9498 (fill_gregset): Use alphabsd_fill_reg.
9499 (supply_fpregset): Use alphabsd_supply_fpreg.
9500 (fill_fpregset): Use alphabsd_fill_fpreg.
9501 (fetch_inferior_registers): Use struct reg and struct fpreg
9502 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9503 and alphabsd_supply_fpreg.
9504 (store_inferior_registers): Use struct reg and struct fpreg
9505 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9506 and alphabsd_fill_fpreg.
9507 * alphabsd-tdep.c: New file.
9508 * alphabsd-tdep.h: New file.
9509 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9510 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9511 alphabsd_supply_fpreg.
9512 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9513 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9514
95152002-05-11 Eric Christopher <echristo@redhat.com>
9516
9517 * mips-tdep.c (mips_double_register_type): Fix thinko.
9518 (mips_single_register_type): Ditto.
9519 * MAINTAINERS: Add self.
9520
95212002-05-11 Mark Kettenis <kettenis@gnu.org>
9522
9523 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9524 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9525 right thing on architectures with different endianness and/or
9526 integer sizes.
9527
95282002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9529
9530 From Christian Limpach <chris@Pin.LU>
9531 * configure.in: Change sed expression which comments out
9532 NATDEPFILES to also comment out continuation lines.
9533 * configure: Regenerate.
9534
95352002-05-10 Elena Zannoni <ezannoni@redhat.com>
9536
9537 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9538 big patch.
9539
95402002-05-10 Elena Zannoni <ezannoni@redhat.com>
9541
9542 * sh-tdep.c: Include correct file.
9543
95442002-05-10 Elena Zannoni <ezannoni@redhat.com>
9545
9546 New support for sh64-elf (sh5) target.
9547
9548 * configure.tgt: For sh64-elf target, default to sh-elf.
9549
9550 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9551 (struct gdbarch_tdep): Add new fields for new registers and ABI
9552 info.
9553
9554 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9555 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9556 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9557 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9558 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9559 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9560 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9561 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9562 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9563 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9564 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9565 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9566 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9567 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9568 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9569 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9570 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9571 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9572 sign_extend, sh64_nofp_frame_init_saved_regs,
9573 sh64_init_extra_frame_info, sh64_get_saved_register,
9574 sh64_extract_struct_value_address, sh64_pop_frame,
9575 sh64_push_arguments, sh64_extract_return_value,
9576 sh64_store_return_value, sh64_show_media_regs,
9577 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9578 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9579 sh_sh64_register_virtual_type,
9580 sh_sh64_register_convert_to_virtual,
9581 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9582 sh64_register_read, sh64_pseudo_register_write,
9583 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9584 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9585 sh64_do_pseudo_register, sh_compact_do_registers_info,
9586 sh64_do_registers_info, sh_gdbarch_init): New functions.
9587
95882002-05-10 Elena Zannoni <ezannoni@redhat.com>
9589
9590 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9591
95922002-05-10 Daniel Jacobowitz <drow@mvista.com>
9593
9594 * linespec.c (decode_line_1): Check for a double quote after
9595 a filename correctly.
9596
95972002-05-10 Jim Blandy <jimb@redhat.com>
9598
9599 Properly track the size of the current objfile's .debug_line section.
9600 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9601 (DWARF_LINE_SIZE): New macro.
9602 (dwarf2_build_psymtabs_hard): Record the line section's size in
9603 the partial symbol table.
9604 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9605 symbol table.
9606
96072002-05-10 Petr Sorfa <petrs@caldera.com>
9608
9609 * ia64-tdep.c: Handle breakpoints on L instruction type
9610 in MLX instruction bundle by moving the breakpoint to
9611 the third slot (X instruction type) as L holds only data.
9612
96132002-05-10 Kevin Buettner <kevinb@redhat.com>
9614
9615 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9616 (process_one_symbol): Complain about discarding local symbols
9617 due to a misplaced N_LBRAC entry.
9618
96192002-05-09 Elena Zannoni <ezannoni@redhat.com>
9620
9621 From Daniel Berlin <dan@cgsoftware.com>
9622 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9623 decrease the depth we are at, in the case of templates.
9624
96252002-05-09 Daniel Jacobowitz <drow@mvista.com>
9626
9627 * mips-tdep.c (mips_float_register_type): New function.
9628 (mips_double_register_type): New function.
9629 (mips_print_register): Use them.
9630 (do_fp_register_row): Likewise.
9631
96322002-05-09 Daniel Jacobowitz <drow@mvista.com>
9633
9634 * signals/signals.c (signals): Remove conditional compilation around
9635 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9636 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9637
96382002-05-09 Michael Snyder <msnyder@redhat.com>
9639
9640 * remote-rdp.c (remote_rdp_can_run): Remove.
9641
96422002-05-09 Tom Tromey <tromey@redhat.com>
9643
9644 * jv-valprint.c (java_val_print): Handle `char' as a special case
9645 of TYPE_CODE_INT.
9646
96472002-05-09 Michael Snyder <msnyder@redhat.com>
9648
9649 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9650 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9651 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9652 str r(0123),[sp,#nn].
9653 (arm_skip_prologue): Ditto. Also make disassembly
9654 order-independent by placing it in a loop.
9655
96562002-05-06 Michael Snyder <msnyder@redhat.com>
9657
9658 * stabsread.c (read_type): Add recognition for new attribute:
9659 "@V;" means that an array type is actually a vector.
9660 This is analogous to the vector flag that's been added to dwarf2.
9661
96622002-05-09 Mark Kettenis <kettenis@gnu.org>
9663
9664 * i386-tdep.h (i386_abi): New enum.
9665 (struct gdbarch_tdep): Replace os_ident member with abi.
9666 (i386_gdbarch_register_os_abi): New prototype.
9667 * i386-tdep.c (i386_abi_names): New array.
9668 (process_note_abi_tag_sections): Removed.
9669 (process_note_sections): New function.
9670 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9671 (struct i386_abi_handler): New struct.
9672 (i386_abi_handler_list): New variable.
9673 (i386_gdbarch_register_os_abi): New function.
9674 (i386_gdbarch_init): Adapt for the changes given above.
9675
96762002-05-08 Daniel Jacobowitz <drow@mvista.com>
9677
9678 * gregset.h: Say "GNU/Linux".
9679
96802002-05-08 Elena Zannoni <ezannoni@redhat.com>
9681
9682 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9683 (build_gdbtypes): Build builtin_type_v2_float.
9684 (_initialize_gdbtypes): Register new builtin type.
9685
96862002-05-08 Andrew Cagney <ac131313@redhat.com>
9687
9688 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9689 (clear_gdbarch_swap): New function.
9690 (initialize_non_multiarch): Call.
9691 (gdbarch_update_p): Before calling init(), swap out and clear the
9692 existing architecture.
9693 * gdbarch.c: Regenerate.
9694
96952002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9696
9697 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9698 alphanbsd-tdep.c.
9699
97002002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9701
9702 * sh-nbsd-nat.c: Rename to...
9703 * shnbsd-nat.c: ...this.
9704 * sh-nbsd-tdep.c: Rename to...
9705 * shnbsd-tdep.c: ...this.
9706 * sh-nbsd-tdep.h: Rename to...
9707 * shnbsd-tdep.h: ...this.
9708 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9709 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9710
97112002-05-08 Richard Earnshaw <rearnsha@arm.com>
9712
9713 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9714 concatenation for command help messages.
9715
97162002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9717
9718 * NEWS: Note new sh*-*-netbsdelf* configuration.
9719 * configure.host: Set gdb_host_cpu to sh for all sh*.
9720 (sh*-*-netbsdelf*): New host.
9721 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9722 (sh*-*-netbsdelf*): New target.
9723 * sh-nbsd-nat.c: New file.
9724 * sh-nbsd-tdep.c: New file.
9725 * sh-nbsd-tdep.h: New file.
9726 * config/sh/nbsd.mh: New file.
9727 * config/sh/nbsd.mt: New file.
9728 * config/sh/nm-nbsd.h: New file.
9729 * config/sh/tm-nbsd.h: New file.
9730
97312002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9732
9733 * sh-tdep.c (sh_osabi_names): Declare.
9734 (process_note_abi_tag_sections): New function.
9735 (get_elfosabi): Ditto.
9736 (sh_gdbarch_register_os_abi): Ditto.
9737 (sh_dump_tdep): Ditto.
9738 _initialize_sh_tdep): Use gdbarch_register to register
9739 sh_gdbarch_init and sh_dump_tdep.
9740 * config/sh/tm-sh.h (sh_osabi): Declare.
9741 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9742
97432002-05-07 Andrew Cagney <ac131313@redhat.com>
9744
9745 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9746 (thumb_scan_prologue): Ditto.
9747 (arm_find_callers_reg): Ditto.
9748 (arm_frame_chain): Ditto.
9749 (arm_init_extra_frame_info): Ditto.
9750 (arm_frame_saved_pc): Ditto.
9751 (arm_pop_frame): Ditto.
9752 (arm_push_return_address): New function.
9753 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9754 call_dummy_location, call_dummy_breakpoint_offset_p,
9755 call_dummy_breakpoint_offset, call_dummy_p,
9756 call_dummy_stack_adjust_p, call_dummy_words,
9757 sizeof_call_dummy_words, call_dummy_start_offset,
9758 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9759 call_dummy_address, push_return_address and push_dummy_frame for
9760 generic dummy frames.
9761
97622002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9763
9764 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9765 size computation for alloca.
9766 (sh_fp_frame_init_saved_regs): Likewise.
9767
97682002-05-07 Richard Earnshaw <rearnsha@arm.com>
9769
9770 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9771 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9772 * arm-tdep.c (arm_store_return_value): Use them.
9773 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9774 * remote-rdp.c (remote_rdp_fetch_register): Use
9775 ARM_MAX_REGISTER_RAW_SIZE.
9776 (remote_rdp_store_register): Likewise.
9777
97782002-05-07 Michal Ludvig <mludvig@suse.cz>
9779
9780 * dwarf2cfi.c: Code cleanup, removed unused variables,
9781 added default labels to switch {} statements.
9782 * x86-64-tdep.c: Ditto.
9783 * x86-64-linux-nat.c: Ditto.
9784
97852002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9786
9787 * solib.h: Protect against multiple inclusion.
9788
97892002-05-06 Jim Blandy <jimb@redhat.com>
9790
9791 Add first preprocessor macro-expansion files.
9792 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9793 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9794 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9795 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9796 (COMMON_OBS): Add macrotab.o, macroexp.o.
9797 (macroexp.o, macrotab.o): New rules.
9798
9799 Separate the job of reading the line number info statement program
9800 header (...expialidocious) out into its own function.
9801 * dwarf2read.c (struct line_head, struct filenames, struct
9802 directories): Replace with...
9803 (struct line_header): New structure, containing the full
9804 contents of the statement program header, including the
9805 include directory and file name tables.
9806 (read_file_scope): If we have line number info, instead of just
9807 calling dwarf_decode_lines to do all the work, call
9808 dwarf_decode_line_header first to get a `struct line_header'
9809 containing the data in the statement program header, and then
9810 pass that to dwarf_decode_lines, which will pick up where that
9811 left off. Be sure to clean up the `struct line_header' object.
9812 (dwarf_decode_line_header, free_line_header, add_include_dir,
9813 add_file_name): New functions.
9814 (dwarf_decode_lines): Move all the code to read the statement
9815 program header into dwarf_decode_line_header. Take the line
9816 header it built as the first argument, instead of the offset to
9817 the compilation unit's line number info. Use the new `struct
9818 line_header' type instead of the old structures. No need to do
9819 cleanups here now, since we don't allocate anything.
9820 (dwarf2_statement_list_fits_in_line_number_section,
9821 dwarf2_line_header_too_long): New complaints.
9822
98232002-05-06 Elena Zannoni <ezannoni@redhat.com>
9824
9825 * gdbtypes.c (init_vector_type): New function.
9826 (build_builtin_type_vec128): Simplify the representation of SIMD
9827 registers.
9828 (build_gdbtypes): Initialize new builtin vector types.
9829 (_initialize_gdbtypes): Register new vector types with gdbarch.
9830 (builtin_type_v4_float, builtin_type_v4_int32,
9831 builtin_type_v8_int16, builtin_type_v16_int8,
9832 builtin_type_v2_int32, builtin_type_v4_int16,
9833 builtin_type_v8_int8): New (renamed) SIMD types.
9834
98352002-05-06 Mark Kettenis <kettenis@gnu.org>
9836
9837 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9838 (i387_fill_fxsave): Likewise.
9839
98402002-05-05 Alexandre Oliva <aoliva@redhat.com>
9841
9842 * alpha-tdep.c (alpha_extract_return_value): Don't use
9843 non-constant array size in prototype.
9844
98452002-05-04 Andrew Cagney <ac131313@redhat.com>
9846
9847 From Brian Taylor <briant at model dot com>:
9848 * ui-out.c (ui_out_field_core_addr): Use the function
9849 longest_local_hex_string_custom'to format addresses > 32 bits
9850 wide.
9851
9852 * ui-out.c (ui_out_field_core_addr): Update comment.
9853
98542002-05-04 Andrew Cagney <ac131313@redhat.com>
9855
9856 * stack.c (select_and_print_frame): Make static. Delete the
9857 parameter `level'.
9858 (func_command): Update call.
9859 (select_frame_command): Delete code computing the frame level.
9860 * frame.h (select_and_print_frame): Delete declaration.
9861
98622002-05-04 Andrew Cagney <ac131313@redhat.com>
9863
9864 * sparc-tdep.c (sparc_get_saved_register): Comment why
9865 get_prev_frame call is safe.
9866
98672002-05-04 Andrew Cagney <ac131313@redhat.com>
9868
9869 * frame.h (select_frame): Delete level parameter.
9870 * stack.c (select_frame): Update. Use frame_relative_level to
9871 obtain the frame's level.
9872 (select_and_print_frame): Update call.
9873 (select_frame_command): Ditto.
9874 (up_silently_base): Ditto.
9875 (down_silently_base): Ditto.
9876 * ocd.c (ocd_start_remote): Ditto.
9877 * remote-rdp.c (remote_rdp_open): Ditto.
9878 * remote-mips.c (mips_initialize): Ditto.
9879 (common_open): Ditto.
9880 * remote-e7000.c (e7000_start_remote): Ditto.
9881 * m3-nat.c (select_thread): Ditto.
9882 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9883 (child_get_current_exception_event): Ditto.
9884 * varobj.c (varobj_create): Ditto.
9885 (varobj_update): Ditto.
9886 (c_value_of_root): Ditto.
9887 * tracepoint.c (finish_tfind_command): Ditto.
9888 * corelow.c (core_open): Ditto.
9889 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9890 * thread.c (info_threads_command): Ditto.
9891 (switch_to_thread): Ditto.
9892 * infrun.c (normal_stop): Ditto.
9893 (restore_selected_frame): Ditto.
9894 (restore_inferior_status): Ditto.
9895 * breakpoint.c (insert_breakpoints): Ditto.
9896 (watchpoint_check): Ditto.
9897 (bpstat_stop_status): Ditto.
9898 (do_enable_breakpoint): Ditto.
9899 * blockframe.c (flush_cached_frames): Ditto.
9900 (reinit_frame_cache): Ditto.
9901
99022002-05-04 Andrew Cagney <ac131313@redhat.com>
9903
9904 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9905 maintainer.
9906
99072002-05-04 Jim Blandy <jimb@redhat.com>
9908
9909 * gdbtypes.c (replace_type): Doc fix.
9910
99112002-05-04 Andrew Cagney <ac131313@redhat.com>
9912
9913 * valprint.c (strcat_longest): Delete commented out function.
9914 Update copyright.
9915
99162002-05-04 Andrew Cagney <ac131313@redhat.com>
9917
9918 * MAINTAINERS: Mark a29k as deleted.
9919 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9920 Move new configurations to the top.
9921 * configure.tgt: Remove a29k.
9922 * config/a29k/tm-vx29k.h: Delete.
9923 * config/a29k/vx29k.mt: Delete.
9924 * config/a29k/tm-a29k.h: Delete.
9925 * config/a29k/a29k-udi.mt: Delete.
9926 * config/a29k/a29k.mt: Delete.
9927 * a29k-tdep.c: Delete.
9928 * remote-udi.c: Delete.
9929 * remote-mm.c: Delete.
9930 * remote-eb.c: Delete.
9931 * remote-adapt.c: Delete.
9932 * Makefile.in: Remove obsolete code.
9933 * config/s390/s390x.mt: Ditto.
9934 * config/s390/s390.mt: Ditto.
9935 * config/sparc/sparclynx.mh: Ditto.
9936 * config/sparc/linux.mh: Ditto.
9937 * config/pa/hppaosf.mh: Ditto.
9938 * config/pa/hppabsd.mh: Ditto.
9939 * config/ns32k/nbsd.mt: Ditto.
9940 * config/mips/vr5000.mt: Ditto.
9941 * config/m68k/sun3os4.mh: Ditto.
9942 * config/m68k/nbsd.mt: Ditto.
9943 * config/m68k/m68klynx.mh: Ditto.
9944 * config/m32r/m32r.mt: Ditto.
9945 * config/i386/x86-64linux.mt: Ditto.
9946 * config/i386/nbsdelf.mt: Ditto.
9947 * config/i386/nbsd.mt: Ditto.
9948 * config/i386/i386lynx.mh: Ditto.
9949
99502002-05-04 Andrew Cagney <ac131313@redhat.com>
9951
9952 * target.c (debug_print_register): New function. Handle oversize
9953 registers.
9954 (debug_to_fetch_registers): Call.
9955 (debug_to_store_registers): Call.
9956
99572002-05-03 Jim Blandy <jimb@redhat.com>
9958
9959 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9960 (read_type): Doc fix.
9961 * gdbtypes.c (replace_type): Doc fix.
9962
9963 * stabsread.c (multiply_defined_struct): New complaint.
9964 (read_struct_type): If the type we were passed isn't empty, or
9965 incomplete, don't read the new struct type into it; complain,
9966 and return the original type unchanged. Take a new `type_code'
9967 argument, which is the type code for the new type.
9968 (read_type): Rather than storing the type's type code here, pass
9969 it as an argument to read_struct_type, and let that take care of
9970 storing it. That way, we don't overwrite the original type code,
9971 so read_struct_type can use it to decide whether we're overwriting
9972 something we shouldn't.
9973 (complain_about_struct_wipeout): New function.
9974
99752002-05-03 Andrew Cagney <ac131313@redhat.com>
9976
9977 * gdbarch.sh: Assert that gdbarch is non-NULL.
9978 * gdbarch.c: Regenerate.
9979
99802002-05-03 Jason Merrill <jason@redhat.com>
9981
9982 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9983 and return NULL.
9984
99852002-05-03 Michal Ludvig <mludvig@suse.cz>
9986
9987 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9988 (x86_64_dwarf2gdb_regno_map_length),
9989 (x86_64_dwarf2_reg_to_regnum): Added.
9990 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9991 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9992 (_initialize_x86_64_tdep): Synced with the change above.
9993 (x86_64_skip_prologue): Reformulated message.
9994
99952002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9996
9997 * f-exp.y: Also use new prev_lexptr variable
9998 to improve error reporting. Based on Michael Snyder
9999 2002-04-24 dated patch to c-exp.y.
10000 * jv-exp.y: Likewise.
10001 * m2-exp.y: Likewise.
10002
100032002-05-02 Elena Zannoni <ezannoni@redhat.com>
10004
10005 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10006 we are dealing with vectors.
10007
100082002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10009
10010 * config/m68k/tm-nbsd.h: Obvious fix,
10011 correct machine name.
10012
100132002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10014
10015 * p-typeprint.c (pascal_type_print_base): Add support
10016 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10017
100182002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10019
10020 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10021 for fondamental pascal 'char' type.
10022
100232002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10024
10025 * p-lang.h (is_pascal_string_type): Declaration changed,
10026 new sixth argument of type char ** added.
10027 * p-lang.c (is_pascal_string_type): Implementation
10028 changed. Args length_pos, length_size, string_pos, char_size
10029 can now be NULL. New argument arrayname set to the field
10030 name of the char array. Return value set to char array
10031 field index plus one.
10032 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10033 is_pascal_string_type function.
10034
100352002-05-02 Andrew Cagney <cagney@redhat.com>
10036
10037 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10038 <cagney@redhat.com> change.
10039 * gdbarch.c: Regenerate.
10040
100412002-05-02 Andrew Cagney <cagney@redhat.com>
10042
10043 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10044 before probing for a new one. Detect errorenous gdbarch_init
10045 functions.
10046 * gdbarch.c: Regenerate.
10047
100482002-05-01 Andrew Cagney <cagney@redhat.com>
10049
10050 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10051 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10052 * config/v850/tm-v850.h: Ditto. Update copyright.
10053
100542002-04-30 Andrew Cagney <ac131313@redhat.com>
10055
10056 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10057 current_gdbarch.
10058
100592002-04-30 Michael Snyder <msnyder@redhat.com>
10060
10061 * arm-tdep.c: Whitespace clean-ups.
10062 (arm_skip_prologue): Fix thinko; two lines
10063 should have been removed as part of 4/24 change.
10064
100652002-04-30 Kevin Buettner <kevinb@redhat.com>
10066
10067 * rs6000-tdep.c: Added comment describing how fpscr register
10068 numbers were chosen.
10069
100702002-04-30 Michael Snyder <msnyder@redhat.com>
10071
10072 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10073
100742002-04-29 Elena Zannoni <ezannoni@redhat.com>
10075
10076 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10077 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10078 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10079
100802002-04-29 Kevin Buettner <kevinb@redhat.com>
10081
10082 From Louis Hamilton <hamilton@redhat.com>:
10083 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10084 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10085 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10086 not bfd-private xcoff data, to determine wordsize.
10087 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10088
100892002-04-29 Andrew Cagney <ac131313@redhat.com>
10090
10091 GDB 5.2 released from 5.2 branch.
10092
100932002-04-29 Michal Ludvig <mludvig@suse.cz>
10094
10095 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10096 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10097 (x86_64_register_info_table): Added comments with register numbers.
10098
100992002-04-29 Elena Zannoni <ezannoni@redhat.com>
10100
10101 * rs6000-tdep.c (rs6000_extract_return_value,
10102 rs6000_store_return_value): Handle returning vectors.
10103 (rs6000_gdbarch_init): Use
10104 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10105 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10106 New function.
10107 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10108 vectors.
10109 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10110 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10111
101122002-04-24 Pierre Muller <ics.u-strasbg.fr>
10113
10114 * hpread.c (hpread_psymtab_to_symtab_1,
10115 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10116 with fprintf_unfiltered (gdb_stderr,...).
10117
101182002-04-24 Pierre Muller <ics.u-strasbg.fr>
10119
10120 * remote-array.c (printf_monitor, write_monitor,
10121 array_insert_breakpoint, array_remove_breakpoint ):
10122 Replace fprintf (stderr,...
10123 with fprintf_unfiltered (gdb_stderr,....
10124 * remote-es.c: Likewise.
10125 * remote-os9k.c: Likewise.
10126 * remote-st.c: Likewise.
10127
101282002-04-28 Andreas Schwab <schwab@suse.de>
10129
10130 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10131 linux-proc.o and gcore.o.
10132
101332002-04-26 Michal Ludvig <mludvig@suse.cz>
10134
10135 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10136 code without frame pointers.
10137
101382002-04-26 Andrew Cagney <ac131313@redhat.com>
10139
10140 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10141 ON_STACK is needed.
10142
101432002-04-26 Ben Elliston <bje@redhat.com>
10144
10145 * target.c (do_xfer_memory): Correct reference to the new option
10146 "trust-readonly-sections".
10147
101482002-04-26 Elena Zannoni <ezannoni@redhat.com>
10149
10150 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10151 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10152 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10153 vectors.
10154 (read_array_type): Record the fact that this array type is really a
10155 vector (i.e. are passed in by value).
10156
101572002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10158
10159 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10160 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10161 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10162 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10163 * alpha-linux-tdep.c: Include frame.h.
10164 (alpha_linux_sigcontext_addr): New function.
10165 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10166 alpha_linux_sigcontext_addr.
10167 * alpha-osf1-tdep.c: Include gdbcore.h.
10168 (alpha_osf1_sigcontext_addr): New function.
10169 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10170 alpha_osf1_sigcontext_addr.
10171 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10172 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10173
101742002-04-26 Andrew Cagney <ac131313@redhat.com>
10175
10176 * stack.c (selected_frame_level):
10177 (select_frame): Do not set selected_frame_level.
10178 * frame.h (selected_frame_level): Delete declaration.
10179
101802002-04-26 Andrew Cagney <ac131313@redhat.com>
10181
10182 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10183 convert_from_func_ptr-addr when AIX / PowerOpen.
10184
101852002-04-25 Andrew Cagney <ac131313@redhat.com>
10186
10187 * valops.c (hand_function_call): Call
10188 generic_save_call_dummy_addr.
10189 * frame.h (generic_save_call_dummy_addr): Declare.
10190 * blockframe.c (struct dummy_frame): Add fields call_lo and
10191 call_hi.
10192 (generic_find_dummy_frame): Check for PC in range call_lo to
10193 call_hi instead of entry_point_address.
10194 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10195 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10196 (generic_save_call_dummy_addr): New function.
10197
101982002-04-24 David S. Miller <davem@redhat.com>
10199
10200 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10201 sparc_skip_prologue.
10202 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10203 information to find prologue when possible.
10204 (sparc_prologue_frameless_p): Call examine_prologue directly.
10205 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10206 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10207 second argument.
10208 (SKIP_PROLOGUE): Likewise.
10209
102102002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10211
10212 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10213 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10214 indicate that the condition it was testing is always true.
10215 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10216 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10217 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10218
102192002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10220
10221 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10222 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10223 tdep->jb_pc and tdep->jb_elt_size.
10224 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10225 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10226 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10227 * alpha-nat.c (get_longjmp_target): Remove.
10228 (JB_ELEMENT_SIZE): Ditto.
10229 (JB_PC): Ditto.
10230 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10231 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10232 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10233 to alpha_get_longjmp_target.
10234 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10235 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10236 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10237
102382002-04-25 Andrew Cagney <ac131313@redhat.com>
10239
10240 * README: Update to GDB 5.2.
10241
102422002-04-25 Andrew Cagney <ac131313@redhat.com>
10243
10244 * gdbarch.sh (LC_ALL): Set to `c'.
10245
102462002-04-25 Theodore A. Roth <troth@verinet.com>
10247
10248 * avr-tdep.c: Ran through gdb_indent.sh.
10249
102502002-04-25 Theodore A. Roth <troth@verinet.com>
10251
10252 * MAINTAINERS: Add myself as AVR maintainer.
10253 * NEWS: Note new target avr.
10254
102552002-04-25 Theodore A. Roth <troth@verinet.com>
10256
10257 * Makefile.in: Add support for AVR target.
10258 * configure.tgt: Add support for AVR target.
10259 * avr-tdep.c: New file
10260 * config/avr/avr.mt: New file.
10261
102622002-04-25 Theodore A. Roth <troth@verinet.com>
10263
10264 * MAINTAINERS: Add myself to write-after-approval.
10265
102662002-04-24 Pierre Muller <ics.u-strasbg.fr>
10267
10268 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10269 with fprintf_unfiltered (gdb_stderr,....
10270
102712002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10272
10273 Fix PR gdb/508.
10274 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10275
102762002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10277
10278 * p-exp.y: Also use new prev_lexptr variable
10279 to improve error reporting. Based on Michael Snyder
10280 2002-04-24 dated patch to c-exp.y.
10281
102822002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10283
10284 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10285 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10286 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10287 to 0.
10288 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10289 and struct value.
10290 (FUNCTION_START_OFFSET): Remove.
10291 (BREAKPOINT): Ditto.
10292
102932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10294
10295 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10296 * NEWS: Ditto.
10297
102982002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10299
10300 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10301 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10302 alpha_linux_pc_in_sigtramp.
10303 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10304 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10305 alpha_osf1_pc_in_sigtramp.
10306 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10307 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10308 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10309 alphafbsd_pc_in_sigtramp.
10310 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10311 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10312 alphanbsd_pc_in_sigtramp.
10313 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10314 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10315
103162002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10317
10318 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10319
103202002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10321
10322 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10323 alphanbsd-tdep.c.
10324 (alphanbsd-nat.o): New dependency list.
10325 (alphanbsd-tdep.o): Ditto.
10326 * NEWS: Note new native NetBSD/alpha configuration.
10327 * alphanbsd-nat.c: New file.
10328 * alphanbsd-tdep.c: Ditto.
10329 * configure.host (alpha*-*-netbsd*): New host.
10330 * configure.tgt (alpha*-*-netbsd*): New target.
10331 * config/alpha/nbsd.mh: New file.
10332 * config/alpha/nbsd.mt: Ditto.
10333 * config/alpha/nm-nbsd.h: Ditto.
10334 * config/alpha/tm-nbsd.h: Ditto.
10335
103362002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10337
10338 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10339 (alpha-osf1-tdep.o): New dependency list.
10340 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10341 and skip_sigtramp_frame members.
10342 * alpha-linux-tdep.c: Include gdbcore.h.
10343 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10344 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10345 * alpha-osf1-tdep.c: New file.
10346 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10347 alpha-osf1-dep.c.
10348 (alpha_frame_past_sigtramp_frame): New function.
10349 (alpha_dynamic_sigtramp_offset): Ditto.
10350 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10351 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10352 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10353 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10354 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10355 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10356 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10357 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10358 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10359 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10360 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10361 to find_solib_trampoline_target.
10362 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10363 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10364 (SKIP_TRAMPOLINE_CODE): Remove.
10365 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10366 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10367 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10368 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10369 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10370 (PROC_SIGTRAMP_MAGIC): Ditto.
10371 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10372 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10373 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10374 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10375 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10376
103772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10378
10379 * NEWS: Note that Alpha targets are now multi-arch.
10380
103812002-04-24 Michael Snyder <msnyder@redhat.com>
10382
10383 * parser-defs.h (prev_lexptr): New external variable.
10384 * parse.c (parse_exp_1): Set prev_lexptr to null before
10385 calling the language-specific parser.
10386 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10387 (yyerror): Use prev_lexptr in error reporting.
10388
103892002-04-24 Daniel Jacobowitz <drow@mvista.com>
10390
10391 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10392 * gregset.h: If FILL_FPXREGSET is defined, provide
10393 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10394 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10395 is defined, call fill_fpxregset.
10396
103972002-04-24 Roland McGrath <roland@frob.com>
10398
10399 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10400 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10401 (supply_gregset, supply_fpregset): New functions.
10402
10403 * gnu-nat.c (gnu_find_memory_regions): New function.
10404 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10405 (gnu_xfer_memory): Add a cast.
10406
104072002-04-24 Michael Snyder <msnyder@redhat.com>
10408
10409 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10410 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10411 of argument regs ("str r(0123), [r11, #-nn"]).
10412 (arm_skip_prologue): Better handling for frameless functions.
10413 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10414 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10415
10416Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10417
10418 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10419 NUM_PSEUDO_REGS can be used.
10420
104212002-04-24 Andrew Cagney <ac131313@redhat.com>
10422
10423 * arch-utils.h: Update copyright.
10424
10425 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10426 * gdbarch.h, gdbarch.c: Re-generate.
10427
10428 * inferior.h (IN_SIGTRAMP): Delete definition.
10429 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10430 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10431
10432 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10433 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10434 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10435 (find_proc_framesize): Ditto.
10436 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10437 (alpha_init_extra_frame_info): Ditto.
10438 * infrun.c (handle_inferior_event): Ditto.
10439 (handle_inferior_event): Ditto.
10440 (check_sigtramp2): Ditto.
10441 * blockframe.c (create_new_frame): Ditto.
10442 (get_prev_frame): Ditto.
10443 * ppc-linux-tdep.c: Update comments.
10444 * i386-linux-tdep.c: Update comments.
10445 * breakpoint.c (bpstat_what): Update comment.
10446
104472002-04-24 David S. Miller <davem@redhat.com>
10448
10449 * i960-tdep.c (register_in_window_p): New function.
10450 (i960_find_saved_register): Use it instead of
10451 REGISTER_IN_WINDOW_P.
10452 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10453
10454 * symtab.h (find_stab_function_addr): Kill extern.
10455 * minsyms.c (find_stab_function_addr): Remove from here...
10456 * dbxread.c: ... to here, and mark it static.
10457
104582002-04-20 David S. Miller <davem@redhat.com>
10459
10460 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10461 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10462
104632002-04-21 David S. Miller <davem@redhat.com>
10464
10465 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10466 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10467 (vx_write_register): Likewise.
10468
104692002-04-23 J. Brobecker <brobecker@gnat.com>
10470
10471 * source.c (is_regular_file): New function.
10472 (openp): Check wether file to open is a regular file
10473 to avoid opening directories.
10474
104752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10476
10477 * findvar.c (extract_signed_integer): Cast printf argument
10478 to suppress format warning.
10479 (extract_unsigned_integer): Likewise.
10480 * infcmd.c (registers_info): Likewise.
10481 * top.c (get_prompt_1): Likewise.
10482 * valops.c (value_assign): Likewise.
10483 * valprint.c (print_decimal): Likewise.
10484
104852002-04-22 H.J. Lu (hjl@gnu.org)
10486
10487 * c-exp.y (typebase): Support
10488
10489 [long|long long|short] [signed|unsigned] [int|]
10490
10491 and
10492
10493 signed [long|long long|short] int
10494
104952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10496
10497 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10498 and vax-tdep.h.
10499 * vax-tdep.h: New file.
10500 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10501 Make several routines static.
10502 (vax_get_saved_register): New function.
10503 (vax_gdbarch_init): New function.
10504 (_initialize_vax_tdep): Register vax_gdbarch_init.
10505 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10506 Remove macros now under the control of gdbarch.
10507
105082002-04-22 Michael Snyder <msnyder@redhat.com>
10509
10510 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10511 Some whitespace and coding standards tweaks.
10512
105132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10514
10515 * vax-tdep.c: Include regcache.h.
10516 (vax_call_dummy_words): New.
10517 (sizeof_vax_call_dummy_words): New.
10518 (vax_fix_call_dummy): New function.
10519 (vax_saved_pc_after_call): Ditto.
10520 * config/vax/tm-vax.h: Don't include regcache.h.
10521 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10522 (CALL_DUMMY): Remove.
10523 (CALL_DUMMY_WORDS): Define.
10524 (SIZEOF_CALL_DUMMY_WORDS): Define.
10525 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10526
105272002-04-18 Michael Snyder <msnyder@redhat.com>
10528
10529 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10530
105312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10532
10533 * vax-tdep.c (vax_frame_chain): New function.
10534 (vax_push_dummy_frame): Ditto.
10535 (vax_pop_frame): Ditto.
10536 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10537 (FRAMELESS_FUNCTION_INVOCATION): Use
10538 generic_frameless_function_invocation_not.
10539 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10540 (POP_FRAME): Use vax_pop_frame.
10541
105422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10543
10544 * vax-tdep.c (vax_store_struct_return): New function.
10545 (vax_extract_return_value): Ditto.
10546 (vax_store_return_value): Ditto.
10547 (vax_extract_struct_value_address): Ditto.
10548 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10549 vax_store_struct_return.
10550 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10551 (STORE_RETURN_VALUE): Use vax_store_return_value.
10552 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10553
105542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10555
10556 * vax-tdep.c (vax_frame_saved_pc): New function.
10557 (vax_frame_args_address_correct): Ditto.
10558 (vax_frame_args_address): Ditto.
10559 (vax_frame_locals_address): Ditto.
10560 (vax_frame_num_args): Move code to be in proximity to
10561 other frame-related functions.
10562 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10563 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10564 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10565 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10566 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10567
105682002-04-22 H.J. Lu (hjl@gnu.org)
10569
10570 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10571 includedir.
10572
105732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10574
10575 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10576 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10577 (FRAME_INIT_SAVED_REGS): New macro.
10578
105792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10580
10581 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10582
105832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10584
10585 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10586 where needed.
10587 (fetch_osf_core_registers): Likewise.
10588 (supply_gregset): Likewise.
10589
105902002-04-22 J. Brobecker <brobecker@gnat.com>
10591
10592 * symfile.h (get_section_index): Define.
10593 * symfile.c (get_section_index): New function.
10594 * mdebugread.c (SC_IS_SBSS): New macro.
10595 (SC_IS_BSS): Return true for the scBss storage class only, as
10596 the scSBss storage class refers to the .sbss section.
10597 (parse_partial_symbols): Discard the symbols which associated
10598 section does not exist.
10599 Make sure to use the .sbss section index for symbols which
10600 storage class is scBss, rather than using the .bss section index.
10601
106022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10603
10604 * vax-tdep.c: Update copyright years.
10605 (vax_register_name): New function.
10606 (vax_register_byte): Ditto.
10607 (vax_register_raw_size): Ditto.
10608 (vax_register_virtual_size): Ditto.
10609 (vax_register_virtual_type): Ditto.
10610 * config/vax/tm-vax.h: Update copyright years.
10611 (REGISTER_NAMES): Remove.
10612 (REGISTER_NAME): Define.
10613 (REGISTER_BYTE): Use vax_register_byte.
10614 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10615 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10616 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10617
106182002-04-21 Andrew Cagney <ac131313@redhat.com>
10619
10620 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10621 declaration
10622 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10623
106242002-04-21 David S. Miller <davem@redhat.com>
10625
10626 * arch-utils.c (generic_prologue_frameless_p): Kill
10627 SKIP_PROLOGUE_FRAMELESS_P code.
10628 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10629 references.
10630 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10631 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10632 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10633 references.
10634 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10635 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10636 (sparc_gdbarch_init): Pass it to
10637 set_gdbarch_prologue_frameless_p.
10638
106392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10640
10641 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10642 (alphabsd-nat.o): New dependency list.
10643
106442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10645
10646 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10647 alphafbsd-tdep.c.
10648 (alpha-linux-tdep.o): New dependency list.
10649 (alphafbsd-tdep.o): Likewise.
10650
106512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10652
10653 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10654 to here...
10655 * alpha-tdep.c: ...from here.
10656 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10657
106582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10659
10660 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10661 prototype from here...
10662 * alpha-tdep.h: ...to here.
10663
106642002-04-21 Andrew Cagney <ac131313@redhat.com>
10665
10666 * frame.h (selected_frame_level): Document as deprecated.
10667 (frame_relative_level): Declare.
10668 * stack.c (frame_relative_level): New function.
10669 (selected_frame_level): Document as deprecated.
10670 (select_frame): Do not set the selected_frame_level.
10671
10672 * stack.c (frame_info, record_selected_frame): Update.
10673 (frame_command, current_frame_command): Update.
10674 (up_silently_base, up_command, down_silently_base): Update.
10675 (down_command): Update.
10676 * inflow.c (kill_command): Update.
10677 * tracepoint.c (finish_tfind_command): Update.
10678 * corelow.c (core_open): Update.
10679 * thread.c (info_threads_command): Update.
10680 (do_captured_thread_select): Update.
10681 * infcmd.c (finish_command): Update.
10682 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10683
106842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10685
10686 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10687
106882002-04-21 Andrew Cagney <ac131313@redhat.com>
10689
10690 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10691 type const.
10692
106932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10694
10695 * alphafbsd-tdep.c: Update copyright years. Include
10696 alpha-tdep.h.
10697 (alphafbsd_use_struct_convention): Make static.
10698 (alphafbsd_init_abi): New function.
10699 (_initialize_alphafbsd_tdep): New function.
10700 * config/alpha/tm-fbsd.h: Update copyright years.
10701 (USE_STRUCT_CONVENTION): Remove.
10702
107032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10704
10705 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10706 an Alpha ABI variant.
10707 (alpha_abi_handler_list): Declare.
10708 (alpha_gdbarch_register_os_abi): New function.
10709 (alpha_gdbarch_init): Give registered ABI variant handlers a
10710 chance to tweak the gdbarch once we have set up defaults.
10711 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10712
107132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10714
10715 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10716 to standard_coerce_float_to_double.
10717 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10718
107192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10720
10721 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10722 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10723 from gdbarch_tdep rather than a constant.
10724 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10725 the default text address for all Alpha Unix ABIs.
10726 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10727 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10728
107292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10730
10731 * alpha-tdep.h: New file. Includes several Alpha target constants
10732 taken from...
10733 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10734 let gdbarch deal with.
10735 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10736 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10737 to dependency list.
10738 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10739 Alpha target register names.
10740 * alphabsd-nat.c: Likewise.
10741 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10742 Alpha target register names. Make serveral routines static.
10743 (alpha_get_saved_register): New function.
10744 (alpha_abi_names): New.
10745 (process_note_abi_tag_sections): New function.
10746 (get_elfosabi): New function.
10747 (alpha_gdbarch_init): New function.
10748 (alpha_dump_tdep): New function.
10749 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10750
107512002-04-21 Andrew Cagney <ac131313@redhat.com>
10752
10753 * frame.c (find_saved_register): Delete #ifdef
10754 HAVE_REGISTER_WINDOWS code.
10755 * config/sparc/tm-sparc.h: Update comments.
10756 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10757
107582002-04-21 Andrew Cagney <ac131313@redhat.com>
10759
10760 * i960-tdep.c (i960_find_saved_register): New function.
10761 (i960_get_saved_register): New function.
10762 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10763 (i960_get_saved_register): Declare.
10764 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10765
107662002-04-20 David S. Miller <davem@redhat.com>
10767
10768 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10769
107702002-04-20 Andrew Cagney <ac131313@redhat.com>
10771
10772 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10773 instead of NUM_PSEUDO_REGS.
10774
107752002-04-20 David S. Miller <davem@redhat.com>
10776
10777 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10778 GDB_MULTI_ARCH_PARTIAL
10779 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10780 define, let tm-sp64.h do it.
10781
107822002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10783
10784 * frame.c (find_saved_register): Avoid a NULL pointer
10785 dereference and actually walk the frame list.
10786
107872002-04-20 Andrew Cagney <ac131313@redhat.com>
10788
10789 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10790 sorted in most most-recent-used order. Document.
10791 * gdbarch.h, gdbarch.c: Regenerate.
10792
107932002-04-19 Andrew Cagney <ac131313@redhat.com>
10794
10795 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10796 instead of ->prev.
10797 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10798 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10799 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10800 instead of ->prev.
10801
108022002-04-19 Elena Zannoni <ezannoni@redhat.com>
10803
10804 Fix PR gdb/471.
10805 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10806 (build_builtin_type_vec128): Ditto.
10807 (append_composite_type_field): Fix calculation of type length in
10808 union case.
10809
108102002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10811
10812 * config/djgpp/README: Update.
10813
10814 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10815 compiler warnings.
10816
108172002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10818
10819 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10820 (alpha_setup_arbitrary_frame): ...to this.
10821 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10822 for alpha_setup_arbitrary_frame.
10823
108242002-04-18 Andrew Cagney <cagney@redhat.com>
10825
10826 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10827 * gdbarch.h, gdbarch.c: Regenerate.
10828
10829 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10830 * target.h (memory_breakpoint_from_pc): Update declaration.
10831 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10832
10833 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10834 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10835 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10836 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10837 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10838 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10839 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10840 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10841 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10842 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10843 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10844 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10845
10846 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10847 const pointer.
10848 * monitor.c (monitor_insert_breakpoint): Ditto.
10849 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10850
10851 * config/mcore/tm-mcore.h: Update copyright.
10852 * mem-break.c: Ditto.
10853 * xstormy16-tdep.c: Ditto.
10854
108552002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10856
10857 * p-exp.y: Add precedence rule for '^' token.
10858 This removes the shift/reduce conflicts.
10859 Remove the comment concerning these shift/reduce conflicts.
10860
108612002-04-18 Elena Zannoni <ezannoni@redhat.com>
10862
10863 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10864 (registers_powerpc_nofp): New register set for processors
10865 without floating point unit.
10866
108672002-04-18 David S. Miller <davem@redhat.com>
10868
10869 * MAINTAINERS: Add myself to write-after-approval.
10870
108712002-04-17 Michael Snyder <msnyder@redhat.com>
10872
10873 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10874
108752002-04-17 Andrew Cagney <ac131313@redhat.com>
10876
10877 * rs6000-tdep.c (frame_initial_stack_address): Use
10878 frame_register_read to read the alloca_reg.
10879
108802002-04-17 Andrew Cagney <ac131313@redhat.com>
10881
10882 * frame.c (find_saved_register): Find saved registers in the next
10883 not prev frame.
10884 Fix PR gdb/365.
10885
108862002-04-17 Andrew Cagney <ac131313@redhat.com>
10887
10888 * gdbarch.sh (LANG): Set to ``c''.
10889
108902002-04-15 Andrew Cagney <ac131313@redhat.com>
10891
10892 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10893
108942002-04-15 Andrew Cagney <ac131313@redhat.com>
10895
10896 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10897 Update copyright.
10898
10899 * hpread.c (hpread_get_lntt): Add declaration.
10900 Also fix PR gdb/391.
10901
109022002-04-14 Andrew Cagney <ac131313@redhat.com>
10903
10904 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10905 * aclocal.m4, configure: Re-generate.
10906 Fix PR gdb/391.
10907
109082002-04-14 Elena Zannoni <ezannoni@redhat.com>
10909
10910 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10911 instead of tm_print_insn.
10912
109132002-04-14 Elena Zannoni <ezannoni@redhat.com>
10914
10915 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10916
109172002-04-14 Andrew Cagney <ac131313@redhat.com>
10918
10919 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10920 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10921 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10922
109232002-04-12 Don Howard <dhoward@redhat.com>
10924
10925 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10926 max_user_call_depth.
10927 (init_cmd_lists): Initialize the new value;
10928 * cli/cli-script.c (execute_user_command): Limit the call depth of
10929 user defined commands. This avoids a core-dump when user commands
10930 are infinitly recursive.
10931
109322002-04-12 Kevin Buettner <kevinb@redhat.com>
10933
10934 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10935 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10936 from tdep struct instead of DEFAULT_LR_SAVE.
10937 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10938 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10939 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10940
109412002-04-12 Michael Snyder <msnyder@redhat.com>
10942
10943 * Remote.c: Spelling fix.
10944 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10945 If no symbol found for "sbrk", try "_sbrk".
10946 (make_output_phdrs): Use bfd_section_name.
10947 (gcore_copy_callback): Use bfd_section_name.
10948 * eval.c: Indentation fix-ups.
10949 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10950 in case it gets applied to an address that is already
10951 in the instruction space.
10952 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10953 * symfile.c: Fix indentation, long lines.
10954 * source.c: White space fix-up.
10955
109562002-04-12 Andrew Cagney <cagney@redhat.com>
10957
10958 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10959 * frame.c (frame_register_read): New function. Return non-zero on
10960 success.
10961 (read_relative_register_raw_bytes_for_frame): Delete.
10962 (read_relative_register_raw_bytes): Delete.
10963 * frame.h (frame_register_read): Declare.
10964 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10965 * sh-tdep.c: Ditto.
10966 * infcmd.c (do_registers_info): Ditto.
10967 * hppa-tdep.c: Ditto.
10968 * rs6000-tdep.c: Ditto.
10969 * h8500-tdep.c: Ditto.
10970 * mips-tdep.c: Ditto.
10971 * h8300-tdep.c: Ditto.
10972 * z8k-tdep.c: Ditto.
10973
109742002-04-12 Kevin Buettner <kevinb@redhat.com>
10975
10976 From Jimi X <jimix@watson.ibm.com>:
10977 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10978 64-bit SysV ABI.
10979
109802002-04-12 Kevin Buettner <kevinb@redhat.com>
10981
10982 From Jimi X <jimix@watson.ibm.com>:
10983 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10984 bfd info.
10985
109862002-04-12 Kevin Buettner <kevinb@redhat.com>
10987
10988 From Jimi X <jimix@watson.ibm.com>:
10989 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10990 register sets for these processor variants.
10991
109922002-04-11 Daniel Jacobowitz <drow@mvista.com>
10993
10994 * regformats/reg-ppc.dat: Support FPSCR.
10995
109962002-04-11 Kevin Buettner <kevinb@redhat.com>
10997
10998 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10999 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11000 Add fpscr as an invalid/unfetchable register.
11001 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11002 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11003 (fill_fpregset): Add support for register fpscr.
11004 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11005 (fill_gregset): Account for the fact that register ``mq'' might
11006 not exist.
11007 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11008 (registers_power): Add fpscr to register set at slot 71.
11009 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11010 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11011
110122002-04-11 Michael Snyder <msnyder@redhat.com>
11013
11014 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11015 * configure: Regenerate.
11016 * config.in: Regenerate.
11017 * acconfig.h: Add define for _SYSCALL32.
11018 * core-sol2.c: Remove #define _SYSCALL32.
11019 * solib-legacy.c: Remove #define _SYSCALL32.
11020
110212002-04-10 Andrew Cagney <ac131313@redhat.com>
11022
11023 * stack.c (select_frame): Cleanup internal error message, do not
11024 use %p.
11025
110262002-04-10 Andrew Cagney <ac131313@redhat.com>
11027
11028 * stack.c (select_frame): Check that selected_frame and the
11029 specified level are as expected.
11030 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11031 Update copyright.
11032 * frame.h (struct frame_info): Add field `level'. Update
11033 copyright.
11034 Work-in-progress PR gdb/464.
11035
110362002-04-10 Andrew Cagney <ac131313@redhat.com>
11037
11038 * maint.c (maint_print_section_info): Rename print_section_info.
11039 (print_bfd_section_info, print_objfile_section_info): Update.
11040 * inferior.h (struct gdbarch): Add opaque declaration.
11041 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11042 * gdbarch.h: Regenerate.
11043
110442002-04-10 Michal Ludvig <mludvig@suse.cz>
11045
11046 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11047 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11048 (kernel_u_size): Added.
11049 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11050 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11051
110522002-04-04 Jim Ingham <jingham@apple.com>
11053
11054 * valarith.c (find_size_for_pointer_math): New function, either returns
11055 the size for a pointer's target, returns 1 for void *, or errors for
11056 incomplete types.
11057 (value_add, value_sub): use find_size_for_pointer_math.
11058
110592002-04-09 Daniel Jacobowitz <drow@mvista.com>
11060
11061 * linux-low.c (linux_look_up_symbols): New hook.
11062 (linux_target_ops): Add linux_look_up_symbols.
11063 * remote-utils.c (decode_address): New function.
11064 (look_up_one_symbol): New function.
11065 * server.c (handle_query): Call target look_up_symbols hook.
11066 * server.h (look_up_one_symbol): Add prototype.
11067 * target.h (struct target_ops): Add look_up_symbols hook.
11068
110692002-04-09 Andrew Cagney <ac131313@redhat.com>
11070
11071 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11072 override FP_REGNUM with frame->fp. Update copyright.
11073 * parse.c (num_std_regs, std_regs): Delete.
11074 (target_map_name_to_register): Do not search std_regs. Update
11075 function description.
11076 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11077 declarations. Update copyright.
11078 Fix PR gdb/251.
11079
110802002-04-09 Daniel Jacobowitz <drow@mvista.com>
11081
11082 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11083 after the last symbol in a block.
11084
110852002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11086
11087 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11088 is non zero as a found symbol.
11089
110902002-04-08 Andrew Cagney <ac131313@redhat.com>
11091
11092 * findvar.c: Include "builtin-regs.h".
11093 (value_of_register): Call value_of_builtin_reg when applicable.
11094 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11095 (target_map_name_to_register): Call
11096 builtin_reg_map_name_to_regnum.
11097 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11098 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11099 (builtin_regs_h): Define.
11100 (builtin-regs.o): New target.
11101 (findvar.o): Add $(builtin_regs_h).
11102 * builtin-regs.c, builtin-regs.h: New files.
11103 * std-regs.c: New file.
11104 Partial fix for PR gdb/251.
11105
111062002-04-08 Kevin Buettner <kevinb@redhat.com>
11107
11108 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11109 it's no longer required.
11110
111112002-04-08 Andrew Cagney <ac131313@redhat.com>
11112
11113 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11114
111152002-04-08 Kevin Buettner <kevinb@redhat.com>
11116
11117 From Jimi X <jimix@watson.ibm.com>:
11118 * rs6000-tdep.c (rs6000_software_single_step): Use
11119 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11120 and size. Use target_insert_breakpoint() and
11121 target_remove_breakpoint() to insert and remove breakpoints
11122 instead of explicit memory reads and writes.
11123
111242002-04-08 Kevin Buettner <kevinb@redhat.com>
11125
11126 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11127 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11128 ELF_OBJECT_FORMAT ifdef.
11129
111302002-04-08 Kevin Buettner <kevinb@redhat.com>
11131
11132 From Jimi X <jimix@watson.ibm.com>:
11133 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11134
111352002-04-08 Kevin Buettner <kevinb@redhat.com>
11136
11137 From Jimi X <jimix@watson.ibm.com>:
11138 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11139 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11140
111412002-04-07 Mark Kettenis <kettenis@gnu.org>
11142
11143 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11144 s/asprintf/xasprintf/.
11145 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11146
111472002-04-07 Andrew Cagney <ac131313@redhat.com>
11148
11149 I believe Jeff Law denies responsability for this one:
11150 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11151 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11152 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11153 Work-around for PR gdb/366.
11154
111552002-04-07 Elena Zannoni <ezannoni@redhat.com>
11156
11157 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11158 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11159 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11160
111612002-04-07 Elena Zannoni <ezannoni@redhat.com>
11162
11163 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11164 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11165 information.
11166
111672002-04-07 Andrew Cagney <ac131313@redhat.com>
11168
11169 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11170 maintainer.
11171
111722002-04-07 Andrew Cagney <ac131313@redhat.com>
11173
11174 * README (Reporting Bugs in GDB): Document the bug web page as the
11175 prefered way of submitting bugs.
11176 Fix PR gdb/402.
11177
111782002-04-06 Andrew Cagney <ac131313@redhat.com>
11179
11180 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11181 -1. Update comment.
11182 * gdbarch.h, gdbarch.c: Re-generate.
11183
111842002-04-07 Andreas Schwab <schwab@suse.de>
11185
11186 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11187 buffer to regcache_collect.
11188
111892002-04-06 Andrew Cagney <ac131313@redhat.com>
11190
11191 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11192 * gdbarch.c, gdbarch.h: Re-generate.
11193
111942002-04-06 Andrew Cagney <ac131313@redhat.com>
11195
11196 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11197 declaration. Fix -Werror.
11198
111992002-04-05 Daniel Jacobowitz <drow@mvista.com>
11200
11201 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11202 * gdbarch.c: Regenerate.
11203
112042002-04-05 Michael Snyder <msnyder@redhat.com>
11205
11206 * breakpoint.c (clear_command): Rewrite middle section to
11207 combine two loops with identical control conditions.
11208 Add a cleanup to eliminate a memory leak.
11209 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11210
112112002-04-05 H.J. Lu (hjl@gnu.org)
11212
11213 * solib-svr4.c (bkpt_names): Add "__start".
11214
112152002-04-04 Andrew Cagney <ac131313@redhat.com>
11216
11217 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11218 as test for 64 bit target.
11219
112202002-04-05 Andrew Cagney <ac131313@redhat.com>
11221
11222 * h8500-tdep.c (h8500_write_fp): Delete function.
11223 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11224 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11225 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11227 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11228 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11229 (s390_write_fp):
11230 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11231 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11232 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11233 (d10v_write_fp): Delete function.
11234 * inferior.h (write_fp, generic_target_write_fp): Delete
11235 declarations.
11236 * regcache.c (generic_target_write_fp): Delete function.
11237 (write_fp): Delete function.
11238 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11239 * gdbarch.h, gdbarch.c: Regenerate.
11240 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11241 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11242 (sparc64_write_fp): Delete declaration.
11243 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11244 (h8500_write_fp): Delete declaration.
11245
112462002-04-04 Andrew Cagney <ac131313@redhat.com>
11247
11248 * sparc-tdep.c (sparc64_write_fp): Delete.
11249 (sparc_push_dummy_frame): Replace write_fp call with code to store
11250 the FP directly.
11251 (sparc_gdbarch_init): Do not initialize write_fp.
11252
112532002-04-05 Kevin Buettner <kevinb@redhat.com>
11254
11255 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11256 clause.
11257
112582002-03-29 Jim Blandy <jimb@redhat.com>
11259
11260 * stack.c (get_selected_block): Add new argument `addr_in_block',
11261 used to return the exact code address we used to select the block,
11262 not just the block.
11263 * blockframe.c (get_frame_block, get_current_block): Same.
11264 * frame.h (get_frame_block, get_current_block,
11265 get_selected_block): Update declarations.
11266 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11267 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11268
112692002-04-05 Michael Snyder <msnyder@redhat.com>
11270
11271 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11272 warning message.
11273
112742002-04-05 J. Brobecker <brobecker@gnat.com>
11275
11276 * utils.c (xfullpath): New function.
11277 * defs.h (xfullpath): Add declaration.
11278 * source.c (openp): Use xfullpath in place of gdb_realpath to
11279 avoid resolving the basename part of filenames when the
11280 associated file is a symbolic link. This fixes a potential
11281 inconsistency between the filenames known to GDB and the
11282 filenames it prints in the annotations.
11283 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11284 to be able to match a filename with either the real filename, or
11285 the name of any symbolic link to this file.
11286 (lookup_partial_symtab): Ditto.
11287
112882002-04-04 Michael Snyder <msnyder@redhat.com>
11289
11290 * breakpoint.c: Add support for hardware breakpoints in overlays.
11291 (overlay_events_enabled): New state variable.
11292 (insert_breakpoints): Use overlay_events_enabled to decide
11293 whether to attempt to set a breakpoint at the overlay load addr.
11294 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11295 (remove_breakpoint): Use overlay_events_enabled to decide
11296 whether breakpoints need to be removed from overlay load addr.
11297 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11298 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11299 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11300 disable_overlay_breakpoints): Update overlay_events_enabled.
11301
113022002-04-04 Daniel Jacobowitz <drow@mvista.com>
11303
11304 * dwarf2read.c (struct function_range): New.
11305 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11306 (check_cu_functions): New.
11307 (read_file_scope): Initialize global function lists.
11308 Call dwarf_decode_line after processing children.
11309 (read_func_scope): Add to global function list.
11310 (dwarf_decode_lines): Call check_cu_functions everywhere
11311 record_line is called. Call record_line with a linenumber
11312 of 0 to mark sequence ends.
11313
113142002-04-04 Michal Ludvig <mludvig@suse.cz>
11315
11316 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11317 change sync with glibc.
11318
113192002-04-03 Jim Blandy <jimb@redhat.com>
11320
11321 * configure.in: Call AC_C_INLINE.
11322 * configure: Regenerated.
11323
113242002-04-01 Daniel Jacobowitz <drow@mvista.com>
11325
11326 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11327 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11328
113292002-03-31 Mark Kettenis <kettenis@gnu.org>
11330
11331 * NEWS: Mention gcore support on FreeBSD/i386.
11332
11333 * fbsd-proc.c: New file.
11334 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11335 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11336
11337 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11338 while statement.
11339
113402002-03-29 Jim Blandy <jimb@redhat.com>
11341
11342 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11343 unescaped newlines in string literals, but newer ones don't. So
11344 escape them.
11345
113462002-03-26 Michael Snyder <msnyder@redhat.com>
11347 Andrew Cagney <cagney@redhat.com>
11348
11349 * cli/cli-dump.c: New file. Dump memory to file,
11350 restore file to memory.
11351 * cli/cli-dump.h: New file.
11352 * Makefile.in: Add rules, dependencies for cli-dump.o.
11353 * NEWS: Mention new commands.
11354
113552002-03-28 Michael Snyder <msnyder@redhat.com>
11356
11357 * symfile.c (symbol_file_add): Move test for null symbols to later.
11358
113592002-03-27 Andrew Cagney <ac131313@redhat.com>
11360
11361 From veksler at il.ibm.com:
11362 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11363 the xstrduped original path.
11364 Fix PR gdb/417.
11365
113662002-03-27 Michael Snyder <msnyder@redhat.com>
11367
11368 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11369 * infcmd.c (_initialize_infcmd): Ditto.
11370 * language.c (_initialize_language): Ditto.
11371 * symfile.c (_initialize_symfile): Ditto.
11372 * top.c (_init_main): Ditto.
11373 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11374
113752002-03-27 Elena Zannoni <ezannoni@redhat.com>
11376
11377 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11378 vector registers handling.
11379 (skip_prologue): Handle new AltiVec instructions. Fill in new
11380 fields of frame data.
11381 (frame_get_saved_regs): Fill in information for AltiVec registers.
11382
113832002-03-27 Jim Blandy <jimb@redhat.com>
11384
11385 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11386 a function; leave this macro here to invoke that function.
11387 (symbol_init_mangled_name): Declaration for that function.
11388 * symtab.c (symbol_init_mangled_name): New function.
11389
113902002-03-27 Andrew Cagney <ac131313@redhat.com>
11391
11392 * valarith.c: Replace strerror with safe_strerror.
11393 * tracepoint.c: Ditto.
11394 * lin-lwp.c: Ditto.
11395 * go32-nat.c: Ditto.
11396 * inflow.c: Ditto.
11397 * gnu-nat.c: Ditto.
11398
113992002-03-27 Andreas Schwab <schwab@suse.de>
11400
11401 * event-top.c (command_line_handler): Remove useless if.
11402
114032002-03-27 Andreas Jaeger <aj@suse.de>
11404
11405 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11406 comment.
11407
114082002-03-27 Michal Ludvig <mludvig@suse.cz>
11409
11410 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11411 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11412 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11413 (x86_64_linux_dr_get_status, supply_gregset),
11414 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11415 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11416 (x86_64_register_info_table): Add.
11417 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11418 (x86_64_register_raw_size, x86_64_register_virtual_type),
11419 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11420 general x86_64_register_info_table.
11421 (i386_gdbarch_init): gdbarch_register_bytes is now set
11422 dynamicaly during initialization.
11423 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11424 * gdbserver/linux-x86-64-low.c: Ditto.
11425
114262002-03-27 Daniel Jacobowitz <drow@mvista.com>
11427
11428 * gdbserver/server.c (main): Call target_signal_to_host_p
11429 and target_signal_to_host on signals received from the remote.
11430 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11431 target_signal_from_host on signals sent to the remote.
11432 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11433 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11434
114352002-03-27 Daniel Jacobowitz <drow@mvista.com>
11436
11437 * signals/signals.c: Include "server.h" in gdbserver build.
11438 (target_signal_from_name): Don't use STREQ.
11439 (_initialize_signals): Likewise. Don't include function in
11440 gdbserver build.
11441
114422002-03-27 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * signals.c: Moved to...
11445 * signals/signals.c: Here.
11446 * Makefile (signals.o): Update.
11447
114482002-03-26 Jeff Law (law@redhat.com)
11449
11450 * somread.c (som_symtab_read): Remove some commented out code and
11451 updated related comments. Do not set the minimal symbol table to
11452 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11453 in a dynamic executable.
11454 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11455 where we are unable to find the minimal symbol for the given
11456 PC value.
11457
114582002-03-25 Jeff Law (law@redhat.com)
11459
11460 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11461
114622002-03-25 Michal Ludvig <mludvig@suse.cz>
11463
11464 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11465
114662002-03-23 Andrew Cagney <ac131313@redhat.com>
11467
11468 * command.h: Update copyright.
11469 (struct cmd_list_element): Replace definition with opaque
11470 declaration.
11471 (enum cmd_types): Document that it will eventually be moved to
11472 cli/cli-decode.h
11473 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11474 (MALLOCED_REPLACEMENT): Delete macro.
11475 * Makefile.in (cli_decode_h): Add $(command_h).
11476 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11477 * top.c: Include "cli/cli-decode.h".
11478 * completer.c: Include "cli/cli-decode.h".
11479 * maint.c: Include "cli/cli-decode.h".
11480 * cli/cli-decode.h: Include "command.h".
11481 (enum command_class): Delete.
11482 (enum cmd_types): Comment out.
11483 (enum cmd_auto_boolean): Delete.
11484 (enum var_types): Delete.
11485
114862002-03-23 Andrew Cagney <ac131313@redhat.com>
11487
11488 * cli/cli-decode.c: Include "gdb_assert.h".
11489 (add_set_or_show_cmd): New static function.
11490 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11491 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11492 all fields, such as func, from the set command.
11493
114942002-03-23 Andrew Cagney <ac131313@redhat.com>
11495
11496 * MAINTAINERS (sh-elf): Change warning flag to -w.
11497
114982002-03-23 Andrew Cagney <cagney@redhat.com>
11499
11500 * defs.h (error): Add printf format attribute.
11501 * thread-db.c (thread_from_lwp): Fix error format string.
11502 * stack.c (parse_frame_specification): Ditto.
11503 * cli/cli-decode.c (undef_cmd_error): Ditto.
11504 * scm-lang.c (scm_lookup_name): Ditto.
11505 * tracepoint.c (trace_error): Ditto.
11506 * remote-utils.c (usage): Ditto.
11507 * remote.c (compare_sections_command): Ditto.
11508 Fix PR gdb/328.
11509
115102002-03-22 Andrew Cagney <ac131313@redhat.com>
11511
11512 * gdbtypes.c (append_composite_type_field): New function.
11513 (init_composite_type): New function.
11514 * gdbtypes.h (append_composite_type_field): Declare.
11515 (init_composite_type): Ditto.
11516
115172002-03-22 Elena Zannoni <ezannoni@redhat.com>
11518
11519 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11520 function.
11521 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11522 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11523 structure returning convention for SYSV ABI case, but not
11524 for GNU/Linux, FreeBSD, or NetBSD.
11525
115262002-03-22 Daniel Jacobowitz <drow@mvista.com>
11527
11528 * symtab.h (lookup_block_symbol): Add mangled_name argument
11529 to prototype.
11530
11531 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11532 with new mangled_name argument.
11533 * linespec.c (decode_line_1): Likewise.
11534 * valops (value_of_this): Likewise.
11535 * symtab.c (lookup_transparent_type): Likewise.
11536 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11537 (lookup_symbol): If we are given a mangled name, pass it down
11538 to lookup_symbol_aux.
11539 (lookup_block_symbol): If we are given a mangled name to check
11540 against, only return symbols which match it.
11541
115422002-03-22 Christopher Faylor <cgf@redhat.com>
11543
11544 * win32-nat.c (child_create_inferior): Check for proper shell to use
11545 here, in case the user changes it on the fly.
11546 (_initialize_inftarg): Remove shell path considerations.
11547
115482002-03-21 Elena Zannoni <ezannoni@redhat.com>
11549
11550 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11551 for gdbarch_max_register_raw_size and max_register_virtual_size.
11552 Adjust copyright year.
11553
115542002-03-21 Daniel Jacobowitz <drow@mvista.com>
11555
11556 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11557 in a function to cover the entire beginning of the function
11558 as well if it does not already.
11559
115602002-03-21 Tom Rix <trix@redhat.com>
11561
11562 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11563 (rs6000_ptrace64): Renamed from ptrace64.
11564
115652002-03-20 Martin M. Hunt <hunt@redhat.com>
11566
11567 * gdbserver/remote-utils.c (remote_open): Don't call
11568 getprotobyname, we're all using TCP here so just use
11569 IPPROTO_TCP.
11570 * gdbserver/gdbreplay.c (remote_open): Ditto.
11571
115722002-03-20 Martin M. Hunt <hunt@redhat.com>
11573
11574 * regcache.c (_initialize_regcache): No need to call
11575 build_regcache() at this time; it gets called whenever
11576 the gdbarch changes.
11577
115782002-03-20 David O'Brien <obrien@FreeBSD.org>
11579
11580 * sparc-nat.c: Include sys/param.h where possible.
11581
115822002-03-20 Daniel Jacobowitz <drow@mvista.com>
11583
11584 Fix PR gdb/422.
11585 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11586 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11587 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11588 complex types.
11589 * stabsread.c (rs6000_builtin_type): Likewise.
11590 (read_sun_floating_type): Likewise.
11591
115922002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11593
11594 * stabsread.c (read_member_functions): Remove skip code for duplicate
11595 constructor/destructor methods. Use standard parsing for these
11596 methods and just do not chain them to the list of methods after
11597 parsing.
11598
115992002-03-19 Alexandre Oliva <aoliva@redhat.com>
11600
11601 * coffread.c: Remove redundant static declarations. Replace
11602 occurrences of `PTR' with `void *'.
11603 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11604 * top.h (quit_cover): Likewise.
11605 * defs.h (catch_errors): Likewise.
11606
116072002-03-18 Andrew Cagney <ac131313@redhat.com>
11608
11609 * defs.h (XMALLOC): Define.
11610 * gdb-events.sh (XMALLOC): Delete macro.
11611 * gdb-events.c, gdb-events.h: Regenerate.
11612 * gdbarch.sh (XMALLOC): Delete macro.
11613 * gdbarch.c: Regenerate.
11614 * serial.c (XMALLOC): Delete macro.
11615 * ui-file.c (XMALLOC): Ditto.
11616 * ser-unix.h (XMALLOC): Ditto.
11617 * sh-tdep.c (XMALLOC): Ditto.
11618 * ui-out.c (XMALLOC): Ditto.
11619 * utils.c (XMALLOC): Ditto.
11620 * i386-tdep.c (XMALLOC): Ditto.
11621 * gdb-events.c (XMALLOC): Ditto.
11622 * d10v-tdep.c (XMALLOC): Ditto.
11623 * cli-out.c (XMALLOC): Ditto.
11624
11625 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11626 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11627 * ui-file.c, ui-out.c: Ditto.
11628
116292002-03-18 Andrew Cagney <ac131313@redhat.com>
11630
11631 * command.h (struct cmd_list_element): Add field context.
11632 (set_cmd_context, get_cmd_context): Declare.
11633 * cli/cli-decode.h: Ditto.
11634 * cli/cli-decode.c (get_cmd_context): New function.
11635 (set_cmd_context): New function.
11636 (add_cmd): Initialize context.
11637 Part of fixing PR gdb/145 and PR gdb/146.
11638
116392002-03-17 Andrew Cagney <ac131313@redhat.com>
11640
11641 * cli/cli-decode.c (cmd_type): New function.
11642 * command.h (cmd_type): Declare.
11643 * infrun.c (set_schedlock_func): Call function cmd_type.
11644 * kod.c (kod_set_os): Call cmd_type.
11645 * cris-tdep.c (cris_version_update): Use function cmd_type.
11646 (cris_mode_update, cris_abi_update): Ditto.
11647
11648 * command.h: (execute_cmd_post_hook): Declare.
11649 (execute_cmd_pre_hook): Declare.
11650 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11651 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11652 functions. Execute pre/post hook while ensuring that afterwords
11653 hook_in is cleared.
11654 * top.c (execute_command): Use execute_cmd_post_hook, and
11655 execute_cmd_pre_hook to execute pre/post commands.
11656 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11657 hook_stop_stub.
11658 (hook_stop_stub): Call execute_cmd_pre_hook.
11659
116602002-03-17 Andrew Cagney <ac131313@redhat.com>
11661
11662 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11663 set'' and this leads to a core dump. Move xstrdup of
11664 operating_system to after check that it is not NULL.
11665
116662002-03-17 Andrew Cagney <ac131313@redhat.com>
11667
11668 * kod.c (kod_set_os): Remove unnecessary check that
11669 ``command->type'' is set_cmd.
11670
11671 * valprint.c (set_input_radix): Use input_radix.
11672 (set_output_radix): Use output_radix.
11673 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11674 isn't reverted.
11675
116762002-03-16 Andrew Cagney <ac131313@redhat.com>
11677
11678 * value.h (struct value): Delete field ``substring_addr''. Change
11679 aligner fields to force_doublest_align, force_longest_align,
11680 force_core_addr_align and force_pointer_aligh.
11681
11682 * value.h (struct value): Fix typo in above change.
11683
116842002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11685
11686 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11687 to fix internal_error from ``maintenance print architecture''.
11688
116892002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11690
11691 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11692 for gcc versions after gcc-2.8.1.
11693
116942002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11695
11696 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11697 for method resolution. Restore adjustment of ``this'' pointer after
11698 calling value_struct_elt, which was accidentally removed during the
11699 HP merge.
11700
117012002-03-15 Andrew Cagney <ac131313@redhat.com>
11702
11703 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11704 value_of_register.
11705 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11706 get_saved_register.
11707 * value.h (value_of_register): Update.
11708
117092002-03-14 Richard Henderson <rth@redhat.com>
11710
11711 * configure.in: Detect declaration for canonicalize_file_name.
11712 * utils.c (canonicalize_file_name): Declare, if needed.
11713 (gdb_realpath): Prefer realpath if available and usable.
11714 * config.in, configure: Rebuild.
11715
117162002-03-14 Richard Henderson <rth@redhat.com>
11717
11718 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11719 a constant array bound.
11720
11721 * MAINTAINERS: Add myself to write-after-approval.
11722
117232002-03-14 Michael Snyder <msnyder@redhat.com>
11724
11725 * symfile.c (syms_from_objfile): Return immediately if no syms.
11726 (symbol_file_add): Return immediately if no syms.
11727 (find_sym_fns): Return immediately if no syms.
11728
117292002-03-13 Michal Ludvig <mludvig@suse.cz>
11730
11731 * gdbserver/remote-util.c (remote_open): Print remote-side's
11732 IP address when remote debugging over the network.
11733
117342002-03-12 David O'Brien <obrien@FreeBSD.org>
11735
11736 * config/sparc/fbsd.mh: Fix copyright.
11737 * config/sparc/fbsd.mt: Likewise.
11738
117392002-03-11 Richard Earnshaw <rearnsha@arm.com>
11740
11741 * MAINTAINERS: Fix typo in name of gdb warnings option.
11742 (x86-64): Fix formating so that this can be parsed by awk.
11743
117442002-03-10 Daniel Jacobowitz <drow@mvista.com>
11745
11746 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11747 * defs.h: Include "gdb/signals.h".
11748 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11749
117502002-03-10 Michal Ludvig <mludvig@suse.cz>
11751
11752 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11753 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11754 from x86-64-tdep.h
11755
117562002-03-10 Daniel Jacobowitz <drow@mvista.com>
11757 Don Howard <dhoward@redhat.com>
11758
11759 * mips-tdep.c (ST0_FR): Define.
11760 (mips2_fp_compat): New function, temporarily disabled.
11761 (mips_read_fp_register_single): New function.
11762 (mips_read_fp_register_double): New function.
11763 (mips_print_register): Use them.
11764 (do_fp_register_row): Likewise.
11765
117662002-03-09 Andrew Cagney <ac131313@redhat.com>
11767
11768 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11769 approval''.
11770
117712002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11772
11773 * stabsread.c (read_member_functions): Fix is_stub test for
11774 static member functions, improve comment.
11775
117762002-03-07 Richard Earnshaw <rearnsha@arm.com>
11777
11778 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11779 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11780 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11781 commands that set boolean values.
11782 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11783 (arm_rdi_resume): Always initialize PC.
11784 (arm_rdi_open): Don't use rslt as a boolean.
11785 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11786 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11787 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11788 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11789
117902002-03-06 Alexandre Oliva <aoliva@redhat.com>
11791
11792 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11793 * configure: Rebuilt.
11794
117952002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11796
11797 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11798 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11799
118002002-03-06 Andrew Cagney <ac131313@redhat.com>
11801
11802 * cli/cli-decode.c (set_cmd_completer): New function.
11803 * command.h (set_cmd_completer): Declare.
11804 * cli/cli-decode.h (set_cmd_completer): Ditto.
11805
11806 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11807 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11808 * win32-nat.c (_initialize_inftarg): Ditto.
11809 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11810 * proc-api.c (_initialize_proc_api): Ditto.
11811 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11812 * source.c (_initialize_source): Ditto.
11813 * exec.c (_initialize_exec): Ditto.
11814 * solib.c (_initialize_solib): Ditto.
11815 * top.c (init_main): Ditto.
11816 * tracepoint.c (_initialize_tracepoint): Ditto.
11817 * symfile.c (_initialize_symfile): Ditto.
11818 * printcmd.c (_initialize_printcmd): Ditto.
11819 * infcmd.c (_initialize_infcmd): Ditto.
11820 * corefile.c (_initialize_core): Ditto.
11821
118222002-03-05 Andrew Cagney <ac131313@redhat.com>
11823
11824 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11825
118262002-03-05 Andrew Cagney <ac131313@redhat.com>
11827
11828 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11829
118302002-03-05 Andrew Cagney <ac131313@redhat.com>
11831
11832 * NEWS: Update headings, 5.2 has branched.
11833
118342002-03-04 Daniel Jacobowitz <drow@mvista.com>
11835
11836 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11837 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11838 (register_addr, REGISTER_RAW_SIZE): Likewise.
11839 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11840 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11841
118422002-03-03 Michal Ludvig <mludvig@suse.cz>
11843
11844 * MAINTAINERS (x86-64): Add myself.
11845 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11846 changed value_ptr -> struct value *
11847
118482002-03-01 David O'Brien <obrien@FreeBSD.org>
11849
11850 * configure.host (sparc64-*-freebsd): Add.
11851 * configure.tgt: Likewise.
11852 * config/sparc/fbsd.mh: New file.
11853 * config/sparc/fbsd.mt: Likewise.
11854 * config/sparc/nm-fbsd.h: Likewise.
11855 * config/sparc/tm-fbsd.h: Likewise.
11856
118572002-03-01 Daniel Jacobowitz <drow@mvista.com>
11858
11859 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11860 regformats/reg-s390x.dat.
11861
118622002-03-01 Andrew Cagney <ac131313@redhat.com>
11863
11864 * utils.c: Add FIXME explaining true/false problem.
11865
118662002-02-28 Andrew Cagney <ac131313@redhat.com>
11867
11868 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11869
118702002-02-28 Michael Chastain <mec@shout.net>
11871
11872 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11873
118742002-02-28 Daniel Jacobowitz <drow@mvista.com>
11875
11876 * gdbserver/linux-s390-low.c: New file.
11877 * regformats/reg-s390.dat: New file.
11878 * regformats/reg-s390x.dat: New file.
11879 * gdbserver/configure.srv: Add S/390.
11880 * gdbserver/Makefile.in: Add S/390.
11881 * configure.tgt: Enable gdbserver for S/390.
11882
118832002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11884
11885 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11886 first line of the doc string for "info dos", except at the end of
11887 the sentence, since the short help stops at the first period.
11888
118892002-02-28 Jason Merrill <jason@redhat.com>
11890
11891 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11892
118932002-02-27 Fred Fish <fnf@redhat.com>
11894
11895 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11896 comment (dumy -> dummy).
11897
118982002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11899
11900 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11901
119022002-02-27 Rodney Brown <rbrown64@csc.com.au>
11903
11904 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11905
119062002-02-27 Daniel Jacobowitz <drow@mvista.com>
11907
11908 * gdbserver/acconfig.h: New file.
11909 * gdbserver/i387-fp.c: New file.
11910 * gdbserver/i387-fp.h: New file.
11911 * gdbserver/linux-x86-64.c: New file.
11912 * regformats/reg-x86-64.dat: New file.
11913 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11914 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11915 * gdbserver/configure.in: Add support for regsets.
11916 * gdbserver/config.in: Regenerate.
11917 * gdbserver/configure: Regenerate.
11918 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11919 * gdbserver/linux-low.h: New file.
11920 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11921 for regsets.
11922 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11923 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11924 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11925 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11926 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11927 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11928 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11929 "i387-fp.h". Add PTRACE_GETREGS and friends.
11930 * gdbserver/regcache.c (supply_register): New function.
11931 (supply_register_by_name): New function.
11932 (collect_register): New function.
11933 (collect_register_by_name): New function.
11934
119352002-02-27 Daniel Jacobowitz <drow@mvista.com>
11936
11937 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11938 (config.status): Add configure.srv dependency.
11939 (server_h): Add config.h dependency.
11940
119412002-02-27 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11944 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11945 * gdbserver/configure.srv: Change i386-*-linux* to use
11946 reg-i386-linux.o.
11947
119482002-02-26 Andrew Cagney <ac131313@redhat.com>
11949
11950 * x86-64-tdep.c: Re-indent. Update copyright date.
11951
119522002-02-26 Andrew Cagney <ac131313@redhat.com>
11953
11954 From Michal Ludvig <mludvig@suse.cz>:
11955 * x86-64-tdep.c (value.h): Delete.
11956 (gdb_assert.h): Include.
11957 (x86_64_register_convert_to_virtual,
11958 x86_64_register_convert_to_raw ): Add check which lets only
11959 floating-point values to be converted.
11960 (value_push): Delete.
11961 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11962 (i386_gdbarch_init): Number of register_bytes fixed.
11963
119642002-02-26 Andrew Cagney <ac131313@redhat.com>
11965
11966 * MAINTAINERS: Add x86-64 target.
11967
119682002-02-26 Andrew Cagney <ac131313@redhat.com>
11969
11970 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11971 * osfsolib.c (solib_map_sections): Ditto.
11972 * irix5-nat.c (solib_map_sections): Ditto.
11973 * corelow.c (gdb_check_format): Ditto.
11974 * symfile.c (symfile_bfd_open): Ditto.
11975 * solib.c (solib_map_sections): Ditto.
11976 Fix PR gdb/354.
11977
119782002-02-26 Andrew Cagney <ac131313@redhat.com>
11979
11980 * remote.c (_initialize_remote): By default, disable ``e'' and
11981 ``E'' step out-of-range packets.
11982
119832002-02-26 Andreas Schwab <schwab@suse.de>
11984
11985 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11986 m68k_linux_frame_saved_pc.
11987 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11988 in_sigtramp.
11989 (SIGCONTEXT_PC_OFFSET): Remove.
11990 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11991 m68k_linux_sigtramp_saved_pc): New functions.
11992 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11993 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11994 (UCONTEXT_PC_OFFSET): Define.
11995 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11996 non-RT and RT signal trampolines.
11997
119982002-02-26 Richard Earnshaw <rearnsha@arm.com>
11999
12000 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12001 (TARGET_NBPG, STACK_END_ADDR): Delete
12002 (VARIABLES_INSIDE_BLOCK): Delete.
12003
120042002-02-25 Andrew Cagney <ac131313@redhat.com>
12005
12006 * utils.c (perror_with_name): Make string parameter constant.
12007 (print_sys_errmsg): Ditto.
12008 (query): Ditto.
12009 * defs.h (perror_with_name): Update.
12010 (print_sys_errmsg): Update.
12011 (query): Update.
12012
120132002-02-25 Daniel Jacobowitz <drow@mvista.com>
12014
12015 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12016 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12017
120182002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12019
12020 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12021 if it already matches the current architecture from the exec file.
12022 Include arch-utils.h for gdbarch_info_init prototype.
12023 * Makefile.in (rs6000-nat.o): Update dependencies.
12024
120252002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12026
12027 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12028 list of exported variables.
12029
120302002-02-24 Daniel Jacobowitz <drow@mvista.com>
12031
12032 * gdbserver/configure.srv: New file.
12033 * gdbserver/configure.in: Use configure.srv instead
12034 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12035 from it.
12036 * gdbserver/configure: Regenerated.
12037 * gdbserver/terminal.h: New file.
12038 * gdbserver/Makefile.in: Update for configure changes. Remove
12039 more unneeded include paths.
12040
120412002-02-24 Andrew Cagney <ac131313@redhat.com>
12042
12043 From wiz at danbala:
12044 * config/sparc/tm-sp64.h: Fix grammar and typos.
12045 Fix PR gdb/287.
12046
120472002-02-24 Andrew Cagney <ac131313@redhat.com>
12048
12049 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12050 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12051 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12052 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12053 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12054 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12055 * s390-tdep.c: Ditto.
12056 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12057 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12058 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12059 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12060 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12061 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12062 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12063 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12064 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12065 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12066 Fix PR gdb/378.
12067
120682002-02-23 Andrew Cagney <ac131313@redhat.com>
12069
12070 * lin-thread.c: Delete file.
12071 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12072 to gdb_proc_service.h.
12073 * configure: Re-generate.
12074
12075 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12076 * serial.c (serial_open): Delete check for "ocd".
12077 Fix PR gdb/349.
12078
12079 * Makefile.in (linux-thread.o): Delete target.
12080 * linux-thread.c: Delete file.
12081
12082 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12083 renamed SH files to be consistent.
12084
12085 * symtab.c (sort_search_symbols): Use xfree.
12086
120872002-02-23 Richard Earnshaw <rearnsha@arm.com>
12088
12089 * arm-linux-tdep.c (arm_linux_init_abi): Register
12090 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12091 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12092 definition with undef, since we don't want the sysvr4 definition.
12093 (SKIP_TRAMPOLINE_CODE): Likewise.
12094
120952002-02-23 Andrew Cagney <ac131313@redhat.com>
12096
12097 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12098
12099 * configure.in: (AC_CHECK_FUNCS) Added test for
12100 canonicalize_file_name Regenerated.
12101 * config.in, configure: Regenerated.
12102 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12103 defined use canonicalize_file_name.
12104
121052002-02-23 Michael Chastain <mec@shout.net>
12106
12107 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12108
121092002-02-23 Andrew Cagney <ac131313@redhat.com>
12110
12111 * README: Remove references to cygnus.com.
12112 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12113 dot com'' form. Remove references to cygnus.com and sourceware.
12114
121152002-02-23 Andrew Cagney <ac131313@redhat.com>
12116
12117 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12118 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12119 1003.1-2001 no longer allows "head -1".
12120 * gdb/Makefile.in (version.c): Likewise.
12121 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12122 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12123 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12124
121252002-02-23 Andrew Cagney <ac131313@redhat.com>
12126
12127 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12128 * command.h (cmd_cfunc_eq): Declare.
12129 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12130
12131 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12132 ``struct cmd_list_element *''.
12133 * cli/cli-cmds.c (is_complete_command): Update. Use
12134 cmd_cfunc_eq.
12135 * top.c (execute_command): Pass the command to
12136 is_complete_command.
12137 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12138
121392002-02-23 Andrew Cagney <ac131313@redhat.com>
12140
12141 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12142 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12143 architecture defines.
12144 * s390-tdep.c (s390_gdbarch_init): Likewise.
12145
121462002-02-23 Richard Earnshaw <rearnsha@arm.com>
12147
12148 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12149 (arm_linux_push_arguments): Likewise.
12150 (arm_linux_init_abi): Register them. Also register linux-specific
12151 call_dummy_words.
12152 (find_minsym_and_objfile): Use strcmp, not STREQ.
12153 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12154 (arm_linux_call_dummy_words): Delete declaration.
12155 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12156 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12157 declarations.
12158 (LOWEST_PC): Delete.
12159
121602002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12161
12162 * maint.c (print_section_info): Do not prepend `0x' to filepos
12163 output, it will be handled by local_hex_string_custom.
12164
121652002-02-23 Richard Earnshaw <rearnsha@arm.com>
12166
12167 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12168 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12169 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12170
121712002-02-22 Jim Blandy <jimb@redhat.com>
12172
12173 Indicate that the bcache functions don't change the strings
12174 they're passed.
12175 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12176 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12177
121782002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12179
12180 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12181
121822002-02-21 Christopher Faylor <cgf@redhat.com>
12183
12184 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12185 find the complete path to a loaded DLL.
12186
121872002-02-21 Fred Fish <fnf@redhat.com>
12188
12189 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12190 that marks the end of the range of a function, enter a line number
12191 entry that has a line number of zero and a PC offset that matches
12192 the end of the function. This starts a range of PC's for which no
12193 line number information is known.
12194 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12195 PC's for which no line number info is found (line number is zero)
12196 then we didn't find any valid line information.
12197 * symtab.h: Document use of zero line number entry.
12198
121992002-02-21 Elena Zannoni <ezannoni@redhat.com>
12200
12201 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12202 (have_ptrace_getvrregs): Define for run time checks.
12203 (gdb_vrregset_t): New type for Altivec register handling.
12204 (fetch_register, store_register): Fetch/store altivec register
12205 when needed.
12206 (fetch_altivec_register, store_altivec_register): New functions.
12207 (supply_vrregset, fill_vrregset): New functions.
12208 (fetch_altivec_registers, store_altivec_registers): New functions.
12209 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12210 registers as well.
12211
122122002-02-21 Jiri Smid <smid@suse.cz>
12213
12214 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12215
122162002-02-21 Richard Earnshaw <rearnsha@arm.com>
12217
12218 * Makefile.in (armnbsd-nat.o): Update dependencies.
12219 * armnbsd-nat.c (supply_gregset): New function. Common code to
12220 supply the integer register set.
12221 (supply_fparegset): New function. Similar for FPA registers.
12222 (fetch_regs, fetch_fp_regs): Use them.
12223 (fetch_core_registers): Likewise.
12224 (fetch_elfcore_registers): New function.
12225 (arm_netbsd_elfcore_fns): New core-file type specification.
12226 (_initialize_arm_netbsd_nat): Register it.
12227
122282002-02-21 Richard Earnshaw <rearnsha@arm.com>
12229
12230 * armnbsd-nat.c: Include gdbcore.h.
12231 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12232 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12233 'void' to declaration, to shut up ARI.
12234 (fetch_core_registers): Make static. Rewrite using supply_register.
12235 (arm_netbsd_core_fns): New core-file type specification.
12236 (_initialize_arm_netbsd_nat): New function.
12237
122382002-02-21 Christopher Faylor <cgf@redhat.com>
12239
12240 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12241 value.
12242
122432002-02-20 Christopher Faylor <cgf@redhat.com>
12244
12245 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12246 fails.
12247
122482002-02-20 Daniel Jacobowitz <drow@mvista.com>
12249
12250 * jv-exp.y (parse_number): Change type of implicit longs
12251 to builtin_type_uint64.
12252
122532002-02-20 Daniel Jacobowitz <drow@mvista.com>
12254
12255 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12256 to be an integer instead of a `union wait'.
12257
122582002-02-20 Daniel Jacobowitz <drow@mvista.com>
12259
12260 * mips-linux-nat.c: Call the operating system GNU/Linux.
12261 * mips-linux-tdep.c: Likewise.
12262 * mips-tdep.c: Likewise.
12263
122642002-02-20 Daniel Jacobowitz <drow@mvista.com>
12265
12266 Fix PR gdb/265.
12267 * jv-exp.y (parse_number): Handle 64-bit integers.
12268
122692002-02-20 Daniel Jacobowitz <drow@mvista.com>
12270
12271 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12272 AC_STDC_HEADERS to AC_HEADER_STDC.
12273 * gdbserver/configure: Regenerated.
12274
122752002-02-20 Richard Earnshaw <rearnsha@arm.com>
12276
12277 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12278 is defined.
12279 * sparc-tdep.c (get_longjmp_target): Likewise.
12280
122812002-02-20 Richard Earnshaw <rearnsha@arm.com>
12282
12283 * News: Add news about ARM and Multi-arch. Mention the new target
12284 arm*-*-netbsd*.
12285
122862002-02-19 Jim Blandy <jimb@redhat.com>
12287
12288 * stabsread.c (error_type_complaint): Improve error message.
12289
122902002-02-19 Daniel Jacobowitz <drow@mvista.com>
12291
12292 * gdbserver/README: Update documentation.
12293 * gdbserver/configure.in: Update configury to match documentation.
12294 * gdbserver/Makefile.in: Likewise.
12295 * gdbserver/configure: Regenerated.
12296 * gdbserver/aclocal.m4: New file, generated by aclocal.
12297 * gdbserver/config.in: New file, generated by autoheader.
12298
122992002-02-19 Richard Earnshaw <rearnsha@arm.com>
12300
12301 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12302 armnbsd-nat.c.
12303
123042002-02-19 Richard Earnshaw <rearnsha@arm.com>
12305
12306 * arm-tdep.h (enum arm_float_model): New enum.
12307 (struct gdbarch_tdep): Add fp_model.
12308 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12309 up floating-point conversions until we know the floating-point model
12310 in use by the inferior. Don't complain about being unable to
12311 determine the ABI of the inferior when we don't have one.
12312 (arm_extract_return_value): Support different floating-point models.
12313 (arm_store_return_value): Likewise.
12314 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12315 ARM_FLOAT_SOFT.
12316 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12317
123182002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12319
12320 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12321 of ``current_gdbarch''.
12322
123232002-02-19 Richard Earnshaw <rearnsha@arm.com>
12324
12325 * armnbsd-nat.c : ANSIfy all function declarations.
12326 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12327 (fetch_inferior_registers): Re-implement in terms of above.
12328 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12329 (store_inferior_registers): Re-implement in terms of above.
12330
123312002-02-19 Richard Earnshaw <rearnsha@arm.com>
12332
12333 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12334 kernel.
12335 * arm-linux-tdep.c: Likewise.
12336 * config/arm/tm-linux.h: Likewise.
12337
123382002-02-19 Richard Earnshaw <rearnsha@arm.com>
12339
12340 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12341 * config/arm/nbsd.mt (TM_FILE): Delete.
12342 * config/arm/tm-nbsd.h: Delete.
12343
123442002-02-19 Richard Earnshaw <rearnsha@arm.com>
12345
12346 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12347 Initialize CALL_DUMMY_LENGTH.
12348
123492002-02-19 Richard Earnshaw <rearnsha@arm.com>
12350
12351 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12352 function.
12353 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12354 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12355 defines one thing and that is incorrect for this port.
12356 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12357
123582002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12359
12360 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12361
123622002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12363
12364 * win32-nat.c (display_selector): New function. Displays information
12365 about the information returned by GetThreadSelectorEntry API function.
12366 (display_selectors): New function. Displays the infomation of
12367 the selector given as argument, or of CS, DS ans FS selectors
12368 if no argument is given.
12369 ( _initialize_inftarg): Add "w32" as info prefix command.
12370 Add "info w32 selector" as command calling display_selectors.
12371
123722002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12373
12374 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12375 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12376 if not defined.
12377
123782002-02-18 Richard Earnshaw <rearnsha@arm.com>
12379
12380 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12381
123822002-02-18 Richard Earnshaw <rearnsha@arm.com>
12383
12384 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12385 (arm_fix_call_dummy): Call it.
12386 (arm_call_dummy_breakpoint_offset): Delete.
12387 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12388 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12389
123902002-02-18 Andrew Cagney <ac131313@redhat.com>
12391
12392 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12393 Default to func_frame_chain_valid.
12394 * gdbarch.h, gdbarch.c: Re-generate.
12395 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12396
123972002-02-18 Elena Zannoni <ezannoni@redhat.com>
12398
12399 * ppc-linux-nat.c: Update copyright.
12400 (fetch_register, store_register): Add tid parameter, don't compute
12401 tid here.
12402 (fetch_ppc_registers, store_ppc_registers): Add tid
12403 parameter. Pass it along to callees.
12404 (fetch_inferior_registers, store_inferior_registers): Compute tid
12405 here, and pass it to calleed functions.
12406 (fill_gregset, supply_fpregset): Clean up formatting.
12407
124082002-02-18 Richard Earnshaw <rearnsha@arm.com>
12409
12410 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12411 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12412
124132002-02-18 Richard Earnshaw <rearnsha@arm.com>
12414
12415 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12416 * gdbarch.c gdbarch.h: Regenerate.
12417 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12418 function.
12419 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12420 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12421 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12422
12423 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12424 * arm-tdep.c (arm_get_longjmp_target): New function.
12425 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12426 this to a positive value register arm_get_longjmp_target as the
12427 longjmp handler.
12428 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12429 (arm_linux_init_abi): Set up longjmp description in tdep.
12430 * armnbsd-nat.c (get_longjmp_target): Delete.
12431 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12432 description in tdep.
12433 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12434 (get_longjmp_target): Delete declaration.
12435 (GET_LONGJMP_TARGET): Delete.
12436 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12437 (GET_LONGJMP_TARGET): Delete.
12438
124392002-02-17 Kevin Buettner <kevinb@redhat.com>
12440
12441 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12442 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12443 of ``current_gdbarch''.
12444
124452002-02-17 Tom Tromey <tromey@redhat.com>
12446
12447 * cli/cli-cmds.c (compare_strings): New function.
12448 (complete_command): Only print each unique item once.
12449 * completer.h (complete_line): Declare.
12450 * completer.c (complete_line): New function.
12451 (line_completion_function): Use it.
12452
124532002-02-16 Andrew Cagney <ac131313@redhat.com>
12454
12455 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12456 * gdbarch.h, gdbarch.c: Re-generate.
12457
124582002-02-16 Daniel Jacobowitz <drow@mvista.com>
12459
12460 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12461
124622002-02-16 Daniel Jacobowitz <drow@mvista.com>
12463
12464 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12465 * valops.c (value_arg_coerce): Don't take the address of a reference
12466 to convert an argument to a reference.
12467
124682002-02-15 Christopher Faylor <cgf@redhat.com>
12469
12470 * win32-nat.c (get_image_name): New function.
12471 (handle_load_dll): Use get_image_name function.
12472 (get_child_debug_event): Avoid registering debug events until possibly
12473 execed process is started.
12474 (child_create_inferior): Allow invocation via shell so that command
12475 line redirection, etc. works ok.
12476 (_initialize_inftarg): Add new command: "set shell" to control whether
12477 a shell is used to start a process.
12478
124792002-02-15 Daniel Jacobowitz <drow@mvista.com>
12480
12481 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12482 instead of find_register_by_number.
12483 (cannot_store_register): Likewise.
12484
124852002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12486
12487 * dwarf2read.c: Replace fprintf (stderr, ...) by
12488 fprintf_unfiltered (gdb_stderr, ...).
12489
124902002-02-15 Daniel Jacobowitz <drow@mvista.com>
12491
12492 * gdbserver/gdbserver.1: Document --attach.
12493
124942002-02-15 Richard Earnshaw <rearnsha@arm.com>
12495
12496 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12497 descriptions.
12498 * arm-tdep.c (arm_default_arm_le_breakpoint)
12499 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12500 (arm_default_thumb_be_breakpoint): New. Initialize them from
12501 traditional breakpoint defines.
12502 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12503 (arm_gdbarch_init): Initialize new breakpoint variables.
12504 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12505 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12506 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12507 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12508 code out to ...
12509 (arm_netbsd_init_abi_common): ... here; new function.
12510 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12511 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12512 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12513 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12514
125152002-02-15 Richard Earnshaw <rearnsha@arm.com>
12516
12517 * arm-tdep.h (enum arm_abi): New enum.
12518 (struct gdbarch_tdep): New structure.
12519 (LOWEST_PC): Provide a default.
12520 (arm_gdbarch_register_os_abi): Declare new function.
12521 * arm-tdep.c (arm_abi_names): New array.
12522 (process_note_abi_tag_sections): New function.
12523 (get_elfosabi): New function.
12524 (arm_gdbarch_register_os_abi): New function.
12525 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12526 support for that ABI has been built in, then call the appropriate
12527 configuration routine. Use gdbarch_num_regs() to get the number
12528 of registers.
12529 (arm_dump_tdep): New function.
12530 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12531 place-holder functions.
12532 (_initialize_arm_tdep): Register them.
12533 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12534
12535 * armnbsd-tdep.c: New file.
12536 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12537 * config/arm/nbsd.mt (TDEPFILES): Add it.
12538 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12539
12540 * armnbsd-nat.c: Include regcache.h.
12541 * Makefile.in (armnbsd-nat.o): Update dependency list.
12542
12543 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12544
125452002-02-14 Daniel Jacobowitz <drow@mvista.com>
12546
12547 * gdbserver/Makefile.in: Fix typos in target rules.
12548
125492002-02-14 Daniel Jacobowitz <drow@mvista.com>
12550
12551 Fix part of PR gdb/267.
12552 * linespec.c (find_methods): Handle constructors specially for now.
12553
125542002-02-14 Corinna Vinschen <vinschen@redhat.com>
12555
12556 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12557 handling.
12558 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12559 standard_coerce_float_to_double().
12560
125612002-02-14 Christopher Faylor <cgf@redhat.com>
12562
12563 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12564 GDBINIT_FILENAME.
12565
125662002-02-14 Elena Zannoni <ezannoni@redhat.com>
12567
12568 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12569 find_variant_by_name, because it confuses the multiarch
12570 framework. Return NULL if there isn't an architecture with the
12571 user supplied name, instead of forcing a different one without
12572 recording the change with the multiarch machinery.
12573 (find_variant_by_name): Delete.
12574
125752002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12576
12577 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12578 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12579
125802002-02-13 Martin M. Hunt <hunt@redhat.com>
12581
12582 * stack.c (print_frame_info_base): When calling
12583 print_frame_info_listing_hook, set current_source_symtab.
12584
125852002-02-14 Daniel Jacobowitz <drow@mvista.com>
12586
12587 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12588 and remove unused $(INCLUDE_DIR).
12589 Add regcache.c to OBS.
12590 Add generated register protocol files to clean target.
12591 Update dependencies for new objects, obsolete old target code.
12592
12593 * gdbserver/linux-low.c: Remove all platform-specific code to
12594 new files. Remove various dead code. Update to use regcache
12595 functionality.
12596 * gdbserver/remote-utils.c (fromhex): Add return statement
12597 to quiet warning.
12598 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12599 constant.
12600 (input_interrupt): Add integer parameter to match prototype
12601 of a signal handler.
12602 (outreg): Use register_data ().
12603 (prepare_resume_reply): Use gdbserver_expedite_regs.
12604 * gdbserver/server.c (main): Dynamically allocate own_buf because
12605 PBUFSIZ is no longer constant. Use registers_to_string () and
12606 registers_from_string ().
12607 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12608 for error (), fatal (), and warning (). Update definition of
12609 PBUFSIZ to use regcache functionality. Add include guard.
12610 * gdbserver/utils.c (fatal): Add missing ``const''.
12611 (warning): New function.
12612
12613 * regformats/regdat.sh: Include "regcache.h" in generated files.
12614 Provide init_registers () function.
12615 * regformats/regdef.h: Add prototype for set_register_cache ().
12616 Add include guard.
12617
12618 * gdbserver/linux-arm-low.c: New file.
12619 * gdbserver/linux-i386-low.c: New file.
12620 * gdbserver/linux-ia64-low.c: New file.
12621 * gdbserver/linux-m68k-low.c: New file.
12622 * gdbserver/linux-mips-low.c: New file.
12623 * gdbserver/linux-ppc-low.c: New file.
12624 * gdbserver/linux-sh-low.c: New file.
12625
12626 * gdbserver/regcache.c: New file.
12627 * gdbserver/regcache.h: New file.
12628
12629 * gdbserver/low-linux.c: Removed obsolete file.
12630
126312002-02-14 Daniel Jacobowitz <drow@mvista.com>
12632
12633 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12634 * config/i386/linux.mt: Likewise.
12635 * config/ia64/linux.mt: Likewise.
12636 * config/m68k/linux.mh: Likewise.
12637 * config/powerpc/linux.mh: Likewise.
12638 * config/mips/linux.mt: Likewise.
12639
12640 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12641
12642 * config/i386/i386lynx.mh: Mark gdbserver variables
12643 as (currently) obsolete for this target.
12644 * config/i386/nbsd.mt: Likewise.
12645 * config/i386/nbsdelf.mt: Likewise.
12646 * config/m32r/m32r.mt: Likewise.
12647 * config/m68k/m68klynx.mh: Likewise.
12648 * config/m68k/nbsd.mt: Likewise.
12649 * config/m68k/sun3os4.mh: Likewise.
12650 * config/mips/vr5000.mt: Likewise.
12651 * config/ns32k/nbsd.mt: Likewise.
12652 * config/pa/hppabsd.mh: Likewise.
12653 * config/pa/hppaosf.mh: Likewise.
12654 * config/powerpc/nbsd.mt: Likewise.
12655 * config/rs6000/rs6000lynx.mh: Likewise.
12656 * config/s390/s390.mt: Likewise.
12657 * config/s390/s390x.mt: Likewise.
12658 * config/sparc/sparclynx.mh: Likewise.
12659 * config/sparc/sun4os4.mh: Likewise.
12660 * config/i386/x86-64linux.mt: Likewise.
12661 * config/sparc/linux.mh: Likewise.
12662
126632002-02-14 Daniel Jacobowitz <drow@mvista.com>
12664
12665 * configure.tgt: Configure gdbserver only for known working
12666 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12667 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12668 SUBDIRS if it is configured. Update comment for ${nativefile}.
12669 * configure: Regenerated.
12670
126712002-02-13 Michael Snyder <msnyder@redhat.com>
12672
12673 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12674
12675 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12676 (default_gcore_mach): Just return 0, work around a problem in bfd.
12677 (default_gcore_target): OK to return NULL if exec_bfd is null.
12678 (make_mem_sec): Use a cast, avoid a warning.
12679
12680 * procfs.c (find_memory_regions_callback): Use a cast instead of
12681 calling host_pointer_to_address (which complains if
12682 sizeof (host pointer) != sizeof (target pointer)).
12683 (procfs_make_note_section): Avoid overflow in psargs string.
12684
12685 * procfs.c (procfs_make_note_section): Make the default
12686 implementation return an error.
12687
126882002-02-13 Rodney Brown <rbrown64@csc.com.au>
12689
12690 * procfs.c (procfs_make_note_section): Provide a default definition
12691 (for alpha-dec-osf4.0f). Fix typos.
12692
126932002-02-13 Elena Zannoni <ezannoni@redhat.com>
12694
12695 * linux-proc.c: Add include of regcache.h.
12696 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12697
126982002-02-13 Andrew Cagney <ac131313@redhat.com>
12699
12700 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12701 * memattr.c (create_mem_region): Disallow useless empty region.
12702 Regions are half-open intervals, so allow [A..B) [B..C) as
12703 non-overlapping.
12704
127052002-02-13 Michael Chastain <mec@shout.net>
12706
12707 * defs.h: Kill CONST_PTR.
12708 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12709 * c-lang.c (c_builtin_types): Likewise.
12710 * ch-lang.c (ch_builtin_types): Likewise.
12711 * f-lang.c (f_builtin_types): Likewise.
12712 * language.c (unknown_builtin_types): Likewise.
12713 * m2-lang.c (m2_builtin_types): Likewise.
12714 * p-lang.c (pascal_builtin_types): Likewise.
12715 * scm-lang.c (c_builtin_types): Likewise.
12716
127172002-02-13 Keith Seitz <keiths@redhat.com>
12718
12719 * arm-tdep.h (arm_get_next_pc): Add declaration.
12720
127212002-02-13 Richard Earnshaw <rearnsha@arm.com>
12722
12723 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12724 with other related struct-returning functions.
12725 (arm_extract_struct_value_address): New function.
12726 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12727 initialize float_format, double_format and long_double_format as
12728 appropriate to the endianness of the target.
12729 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12730 (arm_use_struct_convention): Delete declaration.
12731 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12732
127332002-02-13 Keith Seitz <keiths@redhat.com>
12734
12735 * defs.h (core_addr_to_string_nz): New function.
12736
127372002-02-13 Mark Kettenis <kettenis@gnu.org>
12738
12739 Apply missing bits of 2002-01-15 patch.
12740 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12741 (fill_fpregset): Use i387_fill_fsave.
12742
127432002-02-12 Keith Seitz <keiths@redhat.com>
12744
12745 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12746 (core_addr_to_string_nz): New function.
12747
127482002-02-11 Richard Earnshaw <rearnsha@arm.com>
12749
12750 * arm-linux-nat.c: Really include arm-tdep.h.
12751 * config/arm/tm-linux.h (struct type, struct value): Declare.
12752
127532002-02-11 Michael Snyder <msnyder@redhat.com>
12754
12755 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12756 (gcore section): Ifdef for Solaris and Unixware only.
12757 (procfs_do_thread_registers): Unixware needs one lwpstatus
12758 per thread (not one prstatus or pstatus).
12759 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12760 not over all gdb threads. For unixware, call elfcore_write_pstatus
12761 once before iterating over threads.
12762
127632002-02-11 Richard Earnshaw <rearnsha@arm.com>
12764
12765 * arm-tdep.h: New file.
12766 * arm-tdep.c: Include arm-tdep.h.
12767 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12768 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12769 (arm_print_float_info, arm_register_type, convert_to_extended)
12770 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12771 (arm_extract_return_value, arm_register_name): Make static.
12772 (arm_software_single_step): Similarly. Fix types in declaration.
12773 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12774 (arm_store_return_value, arm_store_struct_return): New functions.
12775 (arm_gdbarch_init): Register the above functions. Also register
12776 call_dummy_start_offset, sizeof_call_dummy_words,
12777 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12778 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12779 max_register_virtual_size, register_size. Set up
12780 prologue_cache.saved_regs here, rather than ...
12781 (_initialize_arm_tdep): ... here.
12782 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12783 declarations.
12784 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12785 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12786 (arm_print_float_info, arm_register_type, convert_to_extended)
12787 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12788 (arm_extract_return_value, arm_register_name): Delete declarations.
12789 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12790 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12791 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12792 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12793 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12794 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12795 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12796 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12797 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12798 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12799 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12800 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12801 interface.
12802 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12803 * remote-rdi.c remote-rdp.c: Likewise.
12804 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12805 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12806 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12807 definition.
12808
12809 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12810 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12811 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12812 from non-ARM_ prefixed definitions.
12813 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12814 all uses of above.
12815 * remote-rdi.c remote-rdp.c: Likewise.
12816 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12817
128182002-02-11 Richard Earnshaw <rearnsha@arm.com>
12819
12820 * arm-tdep.c (arm_frameless_function_invocation)
12821 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12822 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12823 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12824 (arm_pop_frame, arm_get_next_pc): Make static.
12825 (arm_gdbarch_init): Register above in gdbarch structure.
12826 (arm_read_fp): Renamed from arm_target_read_fp.
12827 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12828 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12829 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12830 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12831 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12832 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12833 (arm_pc_is_thumb_dummy): Delete declarations.
12834 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12835 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12836 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12837 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12838
128392002-02-10 Daniel Jacobowitz <drow@mvista.com>
12840
12841 * symtab.c (compare_search_syms): New function.
12842 (sort_search_symbols): New function.
12843 (search_symbols): Sort symbols after searching rather than
12844 before.
12845
128462002-02-10 Andrew Cagney <ac131313@redhat.com>
12847
12848 * NEWS: Linux -> GNU/Linux.
12849
128502002-02-10 Andrew Cagney <ac131313@redhat.com>
12851
12852 * gdbarch.sh: For for level one methods, disallow a definition
12853 when partially multi-arched. Add comments explaining rationale.
12854 * gdbarch.h: Re-generate.
12855
128562002-02-10 Andrew Cagney <ac131313@redhat.com>
12857
12858 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12859 multi-arch partial.
12860
128612002-02-10 Andrew Cagney <ac131313@redhat.com>
12862
12863 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12864 field. Use diff -u.
12865 * gdbarch.c: Re-generate.
12866
128672002-02-10 Andrew Cagney <ac131313@redhat.com>
12868
12869 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12870 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12871 partial.
12872
128732002-02-10 Andrew Cagney <ac131313@redhat.com>
12874
12875 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12876 multi-arch partial.
12877 (PUSH_ARGUMENTS): Switch to using predefault.
12878 * gdbarch.c: Regenerate.
12879
128802002-02-10 Andrew Cagney <ac131313@redhat.com>
12881
12882 * valops.c (PUSH_ARGUMENTS): Delete definition.
12883 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12884 partial. Default to default_push_arguments.
12885 * gdbarch.h, gdbarch.c: Regenerate.
12886
128872002-02-09 Andrew Cagney <ac131313@redhat.com>
12888
12889 * defs.h (throw_exception): Rename return_to_top_level. Update
12890 comments.
12891 * utils.c (error_stream, internal_verror, quit): Ditto.
12892 * top.c (throw_exception, catcher): Ditto.
12893 * sparclet-rom.c (sparclet_load): Ditto.
12894 * remote.c (interrupt_query, minitelnet): Ditto.
12895 * remote-sds.c (interrupt_query): Ditto.
12896 * remote-mips.c (mips_error, mips_kill): Ditto.
12897 * ocd.c (interrupt_query): Ditto.
12898 * monitor.c (monitor_interrupt_query): Ditto.
12899 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12900 * target.h: Update comment.
12901
12902 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12903
129042002-02-09 Andrew Cagney <ac131313@redhat.com>
12905
12906 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12907 default_double_format.
12908 * gdbarch.h, gdbarch.c: Re-generate.
12909 * findvar.c (floatformat_unknown): Delete variable definition.
12910 * doublest.h (floatformat_unknown): Delete variable declaration.
12911
129122002-02-09 Jim Blandy <jimb@redhat.com>
12913
12914 * stabsread.c (read_type): Add code to parse Sun's syntax for
12915 prototyped function types.
12916
129172002-02-09 Andrew Cagney <ac131313@redhat.com>
12918
12919 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12920 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12921
129222002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12923
12924 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12925 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12926 now _initialize_xcoffsolib gets called again and overrides the
12927 commands from solib.c in a native configuration.
12928
129292002-02-09 Mark Kettenis <kettenis@gnu.org>
12930
12931 * doublest.c (store_typed_floating): Don't try to return a value.
12932 Fixes PR gdb/290.
12933
129342002-02-08 Jim Blandy <jimb@redhat.com>
12935
12936 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12937 is prototyped and has no arguments, print its argument list as
12938 `(void)'.
12939
129402002-02-08 Chris Demetriou <cgd@broadcom.com>
12941
12942 * MAINTAINERS (write-after-approval): Add myself.
12943 (paper-trail): I've escaped!
12944
129452002-02-08 Christopher Faylor <cgf@redhat.com>
12946
12947 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12948 changes.
12949 (_initialize_check_for_gdb_ini): Ditto.
12950
129512002-02-08 Martin M. Hunt <hunt@redhat.com>
12952
12953 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12954 xaprintf -> xasprintf.
12955
129562002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12957
12958 * win32-nat.c: Remove use of printf and sprintf functions.
12959
129602002-02-08 Richard Earnshaw <rearnsha@arm.com>
12961
12962 * arm-tdep.c (arm_frame_chain_valid): Make static.
12963 (arm_push_arguments): Likewise.
12964 (arm_gdbarch_init): New function.
12965 (_initialize_arm_tdep): Call it.
12966 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12967 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12968 (FRAME_CHAIN_VALID): Delete.
12969 (arm_frame_chain_valid): Delete declaration.
12970 (PUSH_ARGUMENTS): Delete.
12971 (arm_push_arguments): Delete declaration.
12972 (CALL_DUMMY_P): Delete.
12973
129742002-02-08 Andrew Cagney <ac131313@redhat.com>
12975 Corinna Vinschen <vinschen@redhat.com>
12976
12977 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12978 on builtin float types.
12979
129802002-02-08 Daniel Jacobowitz <drow@mvista.com>
12981
12982 * utils.c: Include <curses.h> before "bfd.h".
12983 * tui/tui-hooks.c: Likewise.
12984 * tui/tui.c: Likewise.
12985 * tui/tuiCommand.c: Likewise.
12986 * tui/tuiData.c: Likewise.
12987 * tui/tuiDataWin.c: Likewise.
12988 * tui/tuiDisassem.c: Likewise.
12989 * tui/tuiGeneralWin.c: Likewise.
12990 * tui/tuiIO.c: Likewise.
12991 * tui/tuiLayout.c: Likewise.
12992 * tui/tuiRegs.c: Likewise.
12993 * tui/tuiSource.c: Likewise.
12994 * tui/tuiSourceWin.c: Likewise.
12995 * tui/tuiStack.c: Likewise.
12996 * tui/tuiWin.c: Likewise.
12997
129982002-02-07 Elena Zannoni <ezannoni@redhat.com>
12999
13000 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13001 to include space for pseudoregs as well. Update loops accordingly.
13002 (sh_fp_frame_init_saved_regs): Ditto.
13003 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13004
130052002-02-07 Andrew Cagney <ac131313@redhat.com>
13006
13007 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13008 Add Richard Earnshaw to Arm maintainers.
13009
130102002-02-07 Andrew Cagney <ac131313@redhat.com>
13011
13012 * defs.h (warning_begin): Delete declaration.
13013
13014 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13015 Delete macro.
13016
130172002-02-07 Michael Snyder <msnyder@redhat.com>
13018
13019 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13020 Logic bug, remove misplaced else.
13021
130222002-02-07 Klee Dienes <klee@apple.com>
13023
13024 * fork-inferior.c (fork_inferior): Add '!' to the list of
13025 characters that need to be quoted when building a string for the
13026 shell. Quote '!' specifically with a backslash, since CSH chokes
13027 when trying to evaluate "str!str".
13028
130292002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13030
13031 * rdi-share/host.h: Only provide a typedef for bool if it is not
13032 defined.
13033
130342002-02-04 Michael Snyder <msnyder@redhat.com>
13035
13036 * breakpoint.h (enum bptype): Add new overlay event bp type.
13037 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13038
13039 * breakpoint.c (create_internal_breakpoint): New function.
13040 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13041 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13042 (create_thread_event_breakpoint): Ditto.
13043 (create_solib_event_breakpoint): Ditto.
13044 (create_overlay_event_breakpoint): New function.
13045 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13046 (update_breakpoints_after_exec): Delete and re-initialize
13047 overlay event breakpoints after an exec. Add FIXME comment
13048 about longjmp breakpoint.
13049 (print_it_typical): Ignore overlay event breakpoints.
13050 (print_one_breakpoint): Ditto.
13051 (mention): Ditto.
13052 (bpstat_what): Do not stop for overlay event breakpoints.
13053 (delete_breakpoint): Don't delete overlay event breakpoints.
13054 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13055 (breakpoint_re_set): Re-create overlay event breakpoint.
13056
13057 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13058 (overlay_manual_command): Disable overlay breakpoints.
13059 (overlay_off_command): Disable overlay breakpoints.
13060
130612002-02-06 Richard Earnshaw <rearnsha@arm.com>
13062
13063 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13064 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13065 to here from config/tm-arm.h.
13066 (coff_sym_is_thumb): Make static.
13067 (arm_elf_make_msymbol_special): New function.
13068 (arm_coff_make_msymbol_special): New function.
13069 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13070 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13071 (coff_sym_is_thumb): Delete declaration.
13072 (arm_elf_make_msymbol_special): Declare.
13073 (arm_coff_make_msymbol_special): Declare.
13074 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13075 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13076
130772002-02-06 Richard Earnshaw <rearnsha@arm.com>
13078
13079 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13080
130812002-02-06 Richard Earnshaw <rearnsha@arm.com>
13082
13083 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13084 * gdbarch.c gdbarch.h: Regenerate.
13085 * arch-utils.c (default_print_float_info): New function.
13086 * arch-utils.h (default_print_float_info): Prototype it.
13087 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13088 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13089 (PRINT_FLOAT_INFO): Document it.
13090
13091 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13092 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13093 (PRINT_FLOAT_INFO): Define.
13094
130952002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13096
13097 * win32-nat.c (_initialize_check_for_gdb_ini):
13098 Add typecast to sprintf argument to suppress a warning.
13099
131002002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13101
13102 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13103 to allow easier handling of pass state.
13104 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13105 that gives exception name and address.
13106 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13107 and set last_sig value to ourstatus->value.sig. Some missing
13108 exceptions added.
13109 (child_continue): Correctly report continue_status.
13110 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13111 TARGET_SIGNAL_0 (new default value).
13112 (child_resume): consider sig argument passed to decide if
13113 the exception should be passed to debuggee or not.
13114
131152002-02-05 Michael Snyder <msnyder@redhat.com>
13116
13117 * regcache.c (fetch_register): Call target_fetch_register
13118 only if we don't call FETCH_PSEUDO_REGISTER.
13119 (store_register): Call target_store_register only if we
13120 don't call STORE_PSEUDO_REGISTER.
13121
131222002-02-05 Elena Zannoni <ezannoni@redhat.com>
13123
13124 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13125 ELF_MAKE_MSYMBOL_SPECIAL.
13126 * gdbarch.c, gdbarch.h: Regenerate.
13127 * arch-utils.c (default_make_msymbol_special): New function.
13128 * arch-utils.h (default_make_msymbol_special): Export.
13129 * elfread.c (elf_symtab_read): Compile use of
13130 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13131 multiarched.
13132 * coffread.c (coff_symtab_read): Ditto, for
13133 COFF_MAKE_MSYMBOL_SPECIAL.
13134
131352002-02-05 Jim Blandy <jimb@redhat.com>
13136
13137 * solib-svr4.c (svr4_truncate_ptr): New function.
13138 (svr4_relocate_section_addresses): Do the address arithmetic with
13139 the appropriate truncation for target addresses, even when
13140 CORE_ADDR is larger than a target address.
13141
131422002-02-05 Daniel Jacobowitz <drow@mvista.com>
13143
13144 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13145 to (int *).
13146
131472002-02-05 Daniel Jacobowitz <drow@mvista.com>
13148
13149 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13150 code.
13151
131522002-02-05 Daniel Jacobowitz <drow@mvista.com>
13153
13154 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13155
131562002-02-05 Daniel Jacobowitz <drow@mvista.com>
13157
13158 * gdbserver/linux-low.c: Remove unused include files.
13159
131602002-02-05 Daniel Jacobowitz <drow@mvista.com>
13161
13162 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13163 (read_inferior_memory): Use it.
13164 (write_inferior_memory): Likewise.
13165
131662002-02-05 Daniel Jacobowitz <drow@mvista.com>
13167
13168 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13169 grubbing through sys_errlist.
13170
131712002-02-05 Daniel Jacobowitz <drow@mvista.com>
13172
13173 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13174
131752002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13176 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13177
131782002-02-04 Andrew Cagney <ac131313@redhat.com>
13179
13180 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13181 (do_sfunc, set_cmd_sfunc): New functions.
13182
13183 * command.h (struct cmd_list_element): Add field func.
13184 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13185 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13186 * cli/cli-decode.h: Ditto.
13187
13188 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13189 (help_all, help_cmd_list): Ditto.
13190 (find_cmd, complete_on_cmdlist): Ditto.
13191 * top.c (execute_command): Ditto.
13192
13193 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13194 function.sfunc.
13195
13196 * infcmd.c (notice_args_read): Fix function signature.
13197
13198 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13199 * cli/cli-decode.c (add_set_cmd): Ditto.
13200 * utils.c (initialize_utils): Ditto.
13201 * maint.c (_initialize_maint_cmds): Ditto.
13202 * infrun.c (_initialize_infrun): Ditto.
13203 * demangle.c (_initialize_demangler): Ditto.
13204 * remote.c (add_packet_config_cmd): Ditto.
13205 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13206 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13207 * proc-api.c (_initialize_proc_api): Ditto.
13208 * kod.c (_initialize_kod): Ditto.
13209 * valprint.c (_initialize_valprint): Ditto.
13210 * top.c (init_main): Ditto.
13211 * infcmd.c (_initialize_infcmd): Ditto.
13212 * corefile.c (_initialize_core): Ditto.
13213 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13214 * arch-utils.c (initialize_current_architecture): Ditto.
13215 (_initialize_gdbarch_utils): Ditto.
13216 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13217
13218 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13219 * wince.c (_initialize_inftarg): Ditto.
13220 * symfile.c (_initialize_symfile): Ditto.
13221 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13222 * language.c (_initialize_language): Ditto.
13223 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13224
132252002-02-04 Michael Snyder <msnyder@redhat.com>
13226
13227 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13228
132292002-02-04 Daniel Jacobowitz <drow@mvista.com>
13230
13231 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13232 Add rules for building the register data files.
13233
132342002-02-04 Daniel Jacobowitz <drow@mvista.com>
13235
13236 * regformats/regdat.sh: Add braces to the definition of
13237 expedite_regs_${arch}.
13238
132392002-02-04 Daniel Jacobowitz <drow@mvista.com>
13240
13241 * regformats/regdef.h (struct reg): Add comment describing the
13242 requirements for offset and size fields.
13243
132442002-02-04 Andreas Schwab <schwab@suse.de>
13245
13246 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13247 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13248
132492002-02-04 Richard Earnshaw <rearnsha@arm.com>
13250
13251 * gdbarch.sh (copyright): Update years in generated header.
13252 (SMASH_TEXT_ADDRESS): Add rule.
13253 * gdbarch.h, gdbarch.c: Re-generate.
13254 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13255 * dbxread.c: Likewise.
13256 * dwarfread.c: Likewise.
13257 * elfread.c: Likewise.
13258 * somread.c: Likewise.
13259
13260 * arm-tdep.c (arm_smash_text_address): New function.
13261 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13262
132632002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13264
13265 Add support for hardware watchpoints on win32 native.
13266 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13267 CONTEXT_DEBUG_REGISTERS.
13268 (dr variable): New variable. Static array containing a local copy
13269 of debug registers.
13270 (debug_registers_changed): New variable. Reflects when debug registers
13271 are changed and need to be written to inferior.
13272 (debug_registers_used): New variable. Reflects when any debug register
13273 was set, used when new threads are created.
13274 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13275 i386-nat code.
13276 (thread_rec): Set dr array if id is the thread of current_event .
13277 (child_continue, child_resume): Change the debug registers for all
13278 threads if debug_registers_changed.
13279 (child_add_thread): Change the debug registers if debug_registers_used.
13280 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13281 Link nm.h to new nm-cygwin.h file.
13282 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13283 of hardware registers.
13284
132852002-02-03 Andrew Cagney <ac131313@redhat.com>
13286
13287 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13288 Restore behavour broken by 2002-01-20 Andrew Cagney
13289 <ac131313@redhat.com> IEEE_FLOAT removal.
13290
132912002-02-03 Daniel Jacobowitz <drow@mvista.com>
13292
13293 * c-valprint.c (c_val_print): Pass a proper valaddr to
13294 cp_print_class_method.
13295 * valops.c (search_struct_method): If there is only one method
13296 and args is NULL, return that method.
13297
132982002-02-03 Daniel Jacobowitz <drow@mvista.com>
13299
13300 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13301 accessing tag_name directly.
13302
133032002-02-03 Daniel Jacobowitz <drow@mvista.com>
13304
13305 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13306 of accessing tag_name directly.
13307
133082002-02-03 Daniel Jacobowitz <drow@mvista.com>
13309
13310 PR gdb/280
13311 * gdbtypes.c (replace_type): New function.
13312 * gdbtypes.h (replace_type): Add prototype.
13313 * stabsread.c (read_type): Use replace_type.
13314
133152002-02-03 Richard Earnshaw <rearnsha@arm.com>
13316
13317 * Makefile.in (memattr.o): Add missing dependencies rule.
13318
133192002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13320
13321 * breakpoint.c (break_at_finish_command): Really export.
13322 (break_at_finish_at_depth_command): Ditto.
13323 (tbreak_at_finish_command): Ditto.
13324 * hppa-tdep.c: Include completer.h.
13325 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13326 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13327
133282002-02-01 Andrew Cagney <ac131313@redhat.com>
13329
13330 * utils.c (do_write): New function.
13331 (error_stream): Rewrite combining the code from error_begin and
13332 verror.
13333 (verror): Rewrite using error_stream.
13334 (error_begin): Delete function.
13335
133362002-02-01 Andrew Cagney <ac131313@redhat.com>
13337
13338 * utils.c (error_begin): Make static.
13339 * defs.h (error_begin): Delete declaration.
13340
13341 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13342 (decode_line_1): Use cplusplus_error instead of error_begin,
13343 cplusplus_hint and return_to_top_level.
13344 * coffread.c (coff_symfile_read): Use error instead of error_begin
13345 and return_to_top_level.
13346 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13347
133482002-02-01 Andrew Cagney <ac131313@redhat.com>
13349
13350 * language.h (type_error, range_error): Make string parameter
13351 constant.
13352 * language.c (warning_pre_print): Delete extern declaration.
13353 * dwarfread.c (warning_pre_print): Ditto.
13354 * language.c (type_error, range_error): Rewrite to use verror and
13355 vwarning instead of warning_begin.
13356
133572002-02-01 Michael Snyder <msnyder@redhat.com>
13358
13359 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13360 (set_ignore_count): Move misplaced comment back where it belongs.
13361
133622002-02-01 Andrew Cagney <ac131313@redhat.com>
13363
13364 * command.h (NO_FUNCTION): Delete macro.
13365 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13366 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13367 * tracepoint.c (_initialize_tracepoint): Ditto.
13368 * cli/cli-decode.c (add_set_cmd): Ditto.
13369 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13370
133712002-02-01 Daniel Jacobowitz <drow@mvista.com>
13372
13373 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13374 Update ``this'' pointer when calling virtual functions.
13375
133762002-02-01 Michael Snyder <msnyder@redhat.com>
13377
13378 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13379 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13380
133812002-02-01 Daniel Jacobowitz <drow@mvista.com>
13382
13383 * regformats/reg-arm.dat: New file.
13384 * regformats/reg-i386.dat: New file.
13385 * regformats/reg-ia64.dat: New file.
13386 * regformats/reg-m68k.dat: New file.
13387 * regformats/reg-mips.dat: New file.
13388 * regformats/reg-ppc.dat: New file.
13389 * regformats/reg-sh.dat: New file.
13390 * regformats/regdef.h: New file.
13391 * regformats/regdat.sh: New file.
13392
133932002-02-01 Richard Earnshaw <reanrsha@arm.com>
13394
13395 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13396 (arm_frame_args_address, arm_frame_locals_address): New functions.
13397 (arm_frame_num_args): New function.
13398 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13399 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13400 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13401
134022002-01-31 Michael Snyder <msnyder@redhat.com>
13403
13404 * breakpoint.c (break_at_finish_command): Export.
13405 (break_at_finish_at_depth_command): Export.
13406 (tbreak_at_finish_command): Export.
13407 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13408 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13409 "txbreak" commands, which are HPPA specific.
13410
13411 * printcmd.c (disassemble_command): Remove an ancient
13412 artifact of an old merge.
13413
13414 * symfile.h (enum overlay_debugging_state):
13415 Define enum constant values for overlay mode.
13416 * symfile.c (overlay_debugging): Use enums instead of literals.
13417 (overlay_is_mapped, overlay_auto_command,
13418 overlay_manual_command): Ditto.
13419
13420 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13421 breakpoint_here_p, breakpoint_inserted_here_p,
13422 breakpoint_thread_match, bpstat_stop_status,
13423 describe_other_breakpoints, check_duplicates, clear_command):
13424 Coding standard fixes.
13425
13426 * target.c (target_xfer_memory): Add spaces, coding standard.
13427 (do_xfer_memory): Add missing line to trust-readonly
13428 code: check bfd SEC_READONLY flag for section.
13429
134302002-01-31 Andrew Cagney <ac131313@redhat.com>
13431
13432 * PROBLEMS: Fix typo, 5.1->5.1.1.
13433
134342002-01-30 Daniel Jacobowitz <drow@mvista.com>
13435
13436 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13437 data symbols, since we search based on textlow and texthigh.
13438 (find_pc_sect_symtab): Likewise.
13439
134402002-01-30 Andrew Cagney <ac131313@redhat.com>
13441
13442 * defs.h (vwarning): Declare.
13443 * utils.c (vwarning): New function.
13444 (warning): Call vwarning.
13445 (warning_begin): Delete function.
13446
13447 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13448 the warning message.
13449 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13450 warning_begin.
13451
134522002-01-30 Michael Snyder <msnyder@redhat.com>
13453
13454 * NEWS: Mention "set trust-readonly-sections" command.
13455 Mention generate-core-file command.
13456
134572002-01-15 Michael Snyder <msnyder@redhat.com>
13458
13459 * target.c: New command, "set trust-readonly-sections on".
13460 (do_xfer_memory): Honor the suggestion to trust readonly sections
13461 by reading them from the object file instead of from the target.
13462 (initialize_targets): Register command "set trust-readonly-sections".
13463
134642002-01-29 Andrew Cagney <ac131313@redhat.com>
13465
13466 * parse.c (target_map_name_to_register): Simplify, search regs and
13467 pseudo-regs using a single loop.
13468
134692002-01-30 Andrew Cagney <ac131313@redhat.com>
13470
13471 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13472
134732002-01-15 Rodney Brown <rbrown64@csc.com.au>
13474
13475 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13476 * config/i386/i386v42mp.mh: Add i387-nat.o .
13477 * i386v4-nat.c: Include i387-nat.h.
13478 (supply_fpregset): Use i387_supply_fsave.
13479 (fill_fpregset): Use i387_fill_fsave.
13480
134812002-01-30 Richard Earnshaw <rearnsha@arm.com>
13482
13483 * arm-tdep.c (arm_call_dummy_words): Define.
13484 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13485 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13486 (CALL_DUMMY_WORDS): Define.
13487 (arm_call_dummy_words): Declare.
13488 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13489 (arm_linux_call_dummy_words): Declare.
13490
134912002-01-30 Andreas Schwab <schwab@suse.de>
13492
13493 * m68klinux-nat.c: Fix last change to use regcache_collect
13494 instead of referencing registers[] directly.
13495
134962002-01-29 Andrew Cagney <ac131313@redhat.com>
13497
13498 * parse.c (target_map_name_to_register): Delete code wrapped in
13499 #ifdef REGISTER_NAME_ALIAS_HOOK.
13500
135012002-01-28 Michael Snyder <msnyder@redhat.com>
13502
13503 * regcache.c (legacy_read_register_gen): Need to be able to
13504 read pseudo-register as well as real register.
13505 (legacy_write_register_gen): Ditto.
13506
135072002-01-28 Andrew Cagney <ac131313@redhat.com>
13508
13509 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13510 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13511 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13512 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13513 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13514 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13515 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13516 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13517 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13518 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13519 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13520 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13521 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13522 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13523 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13524 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13525 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13526 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13527 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13528 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13529
135302002-01-28 Andrew Cagney <ac131313@redhat.com>
13531
13532 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13533 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13534 (initialize_current_architecture): Update target_byte_order using
13535 information from BFD.
13536 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13537 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13538
135392002-01-28 Andrew Cagney <ac131313@redhat.com>
13540
13541 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13542 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13543
13544 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13545 #ifdef INVALID_FLOAT.
13546 * infcmd.c (do_registers_info): Ditto.
13547 * values.c (unpack_double): Ditto. Add comment.
13548
13549 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13550 already commented out.
13551
135522002-01-26 Andreas Schwab <schwab@suse.de>
13553
13554 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13555 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13556 registers and add support for PTRACE_GETREGS.
13557
135582002-01-24 Andrew Cagney <ac131313@redhat.com>
13559
13560 GDB 5.1.1 released from 5.1 branch.
13561 * NEWS: Add 5.1.1 news.
13562 * README: Sync with 5.1 branch.
13563
135642002-01-23 Fred Fish <fnf@redhat.com>
13565
13566 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13567 stabstring on initial malloc. Reallocing will copy it for us,
13568 if necessary.
13569
135702002-01-23 Elena Zannoni <ezannoni@redhat.com>
13571
13572 * Makefile.in (hpread_h): Delete.
13573 (HFILES_NO_SRCDIR): Remove hpread.h.
13574 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13575 (hpread.o): Update dependencies.
13576 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13577
13578 * hp-psymtab-read.c: Remove file.
13579 * hp-symtab-read.c: Remove file.
13580 * hpread.h: Remove file.
13581
13582 * hpread.c: Merge all contents of hp-psymtab-read.c,
13583 hp-symtab-read.c and hpread.h into this file, as it was prior to
13584 January 1999.
13585
13586 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13587 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13588 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13589 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13590
135912002-01-23 Elena Zannoni <ezannoni@redhat.com>
13592
13593 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13594 fill_gregset): Call gdbarch_tdep() just once, assign result to
13595 variable and use that, instead of calling the function several
13596 times.
13597
135982002-01-24 Alexandre Oliva <aoliva@redhat.com>
13599
13600 * configure.host: Accept sparcv9 as alias for sparc64.
13601 * configure.tgt: Likewise.
13602
136032002-01-22 Kevin Buettner <kevinb@redhat.com>
13604
13605 * solib-aix5.c (build_so_list_from_mapfile)
13606 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13607 arguments is not reversed.
13608 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13609 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13610
136112002-01-22 Elena Zannoni <ezannoni@redhat.com>
13612
13613 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13614 modified version of obsolete sh_fetch_pseudo_register.
13615 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13616 (sh4_register_read): New function.
13617 (sh_pseudo_register_write): New function. Renamed and modified
13618 version of obsolete sh_store_pseudo_register.
13619 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13620 (sh4_register_write): New function.
13621 (sh_gdbarch_init): Remove setting of gdbarch function
13622 fetch_pseudo_register and store_pseudo_register. Remove setting of
13623 register_convert_to_raw, register_convert_to_virtual,
13624 register_convertible.
13625 (sh_sh4_register_convertible): Delete. No longer needed. All is
13626 taken care by architecture specific functions
13627 register_read/register_write.
13628 (sh_sh4_register_convert_to_virtual): Make static.
13629 (sh_sh4_register_convert_to_raw): Ditto.
13630
136312002-01-22 Andrew Cagney <ac131313@redhat.com>
13632
13633 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13634 (floatformat_is_nan, floatformat_mantissa): Ditto.
13635
13636 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13637 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13638 builtin_type_ieee_double_little,
13639 builtin_type_ieee_double_littlebyte_bigword,
13640 builtin_type_m68881_ext, builtin_type_i960_ext,
13641 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13642 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13643 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13644 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13645
136462002-01-22 Corinna Vinschen <vinschen@redhat.com>
13647
13648 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13649 parameter. Set frameless flag if it exists and depended of
13650 whether the scanned function is frameless or not.
13651 (xstormy16_skip_prologue): If function is frameless, return
13652 result of xstormy16_scan_prologue().
13653 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13654 call.
13655
136562002-01-21 Elena Zannoni <ezannoni@redhat.com>
13657
13658 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13659 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13660 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13661 sh_sh4_register_byte, sh_sh4_register_raw_size,
13662 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13663 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13664 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13665 sh_store_pseudo_register, sh_do_pseudo_register): Call
13666 gdbarch_tdep() just once, assign result to variable and use that,
13667 instead of calling the function several times.
13668
136692002-01-20 Mark Kettenis <kettenis@gnu.org>
13670
13671 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13672 macros instead of LAST_FPU_CTRL_REGNUM.
13673 (store_register): Likewise.
13674
136752002-01-21 Jim Blandy <jimb@redhat.com>
13676
13677 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13678 is up-to-date before running the program, not just when a program
13679 exits.
13680
136812002-01-21 Fred Fish <fnf@redhat.com>
13682
13683 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13684 when we have found all instructions we are looking for.
13685
136862002-01-21 Richard Earnshaw <rearnsha@arm.com>
13687
13688 * arm-tdep.c (arm_register_name): New function.
13689 (arm_registers_names): Make static.
13690 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13691 (arm_register_name): Declare.
13692 (REGISTER_NAME): Use it.
13693
136942002-01-21 Richard Earnshaw <rearnsha@arm.com>
13695 Kevin Buettner <kevinb@redhat.com>
13696
13697 Convert arm targets to new FRAME interface.
13698 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13699 (arm_frame_find_save_regs): Delete.
13700 (arm_frame_init_saved_regs): New.
13701 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13702 Allocate extra_info as required. Convert all uses of fsr.regs
13703 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13704 to use extra_info.
13705 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13706 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13707 (check_prologue_cache, save_prologue_cache): Likewise.
13708 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13709 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13710 (FRAME_FIND_SAVED_REGS): Delete.
13711 (arm_frame_find_saved_regs): Delete prototype.
13712 (arm_frame_init_saved_regs): New prototype.
13713 (FRAME_INIT_SAVED_REGS): Define.
13714
137152002-01-20 Andrew Cagney <ac131313@redhat.com>
13716
13717 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13718
137192002-01-20 Andrew Cagney <ac131313@redhat.com>
13720
13721 From Jeff Law <law@redhat.com>:
13722 * infttrace.c: Include <sys/pstat.h>.
13723 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13724 exec file if the ttrace equivalent fails.
13725
137262002-01-20 Andrew Cagney <ac131313@redhat.com>
13727
13728 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13729 (closeLogFile): Ditto.
13730
137312002-01-20 Michael Chastain <mec@shout.net>
13732
13733 * top.c (print_gdb_version): Bump copyright year to 2002.
13734
137352002-01-20 Andrew Cagney <ac131313@redhat.com>
13736
13737 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13738 Zannoni and Eli Zaretskii.
13739
137402002-01-20 Daniel Jacobowitz <drow@mvista.com>
13741
13742 * buildsym.c: Update copyright years.
13743 * c-typeprint.c: Likewise.
13744 * dwarf2read.c: Likewise.
13745 * f-typeprint.c: Likewise.
13746 * gdbtypes.c: Likewise.
13747 * gdbtypes.h: Likewise.
13748 * hp-symtab-read.c: Likewise.
13749 * hpread.c: Likewise.
13750 * mdebugread.c: Likewise.
13751 * p-typeprint.c: Likewise.
13752
137532002-01-20 Andrew Cagney <ac131313@redhat.com>
13754
13755 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13756 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13757 byte-order selectable.
13758 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13759 * arch-utils.c: Ditto.
13760 (set_endian): Ditto.
13761 (set_endian_from_file): Ditto.
13762 * gdbserver/low-sim.c (create_inferior): Ditto.
13763 * gdbarch.sh: Ditto.
13764 * gdbarch.h: Re-generate.
13765 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13766 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13767 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13768 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13769 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13770 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13771 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13772 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13773 macro definition.
13774 * config/mips/tm-wince.h: Remove #undef of macro
13775 TARGET_BYTE_ORDER_SELECTABLE.
13776 * config/sh/tm-wince.h: Ditto.
13777
137782002-01-20 Daniel Jacobowitz <drow@mvista.com>
13779
13780 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13781 member function fields. Add accessor macro
13782 TYPE_FN_FIELD_ARTIFICIAL.
13783 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13784 * c-typeprint.c (c_type_print_base): Skip artificial member
13785 functions.
13786
137872002-01-20 Daniel Jacobowitz <drow@mvista.com>
13788
13789 * f-typeprint.c: Delete unused function f_type_print_args.
13790 * p-typeprint.c: Delete unused function pascal_type_print_args.
13791
137922002-01-20 Daniel Jacobowitz <drow@mvista.com>
13793
13794 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13795 comment. Add ``artificial'' to ``union field_location''.
13796
13797 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13798
13799 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13800 * mdebugread.c (parse_symbol): Likewise.
13801 * stabsread.c (define_symbol): Likewise.
13802 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13803 initializing TYPE_FIELD_BITPOS to n (obsolete).
13804 (hpread_doc_function_type): Likewise.
13805 * hpread.c (hpread_function_type): Likewise.
13806
138072002-01-20 Andrew Cagney <ac131313@redhat.com>
13808
13809 * configure.in (host_makefile_frag): Only require a host makefile
13810 fragment when a native build.
13811 * configure: Re-generate.
13812
138132002-01-20 Andrew Cagney <ac131313@redhat.com>
13814
13815 * doublest.h (floatformat_from_type): Declare.
13816 * doublest.c (floatformat_from_type): New function.
13817 (convert_typed_floating): Use.
13818
13819 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13820 call to function floatformat_from_type.
13821
13822 * gdbarch.sh (IEEE_FLOAT): Delete.
13823 * gdbarch.h, gdbarch.c: Re-generate.
13824 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13825 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13826 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13827 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13828 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13829 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13830 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13831 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13832 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13833 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13834 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13835 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13836
13837 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13838 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13839 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13840 * sh-tdep.c (sh_gdbarch_init): Ditto.
13841 * mips-tdep.c (mips_gdbarch_init): Ditto.
13842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13843 * cris-tdep.c (cris_gdbarch_init): Ditto.
13844
138452002-01-20 Jiri Smid <smid@suse.cz>
13846
13847 * configure.host, configure.tgt: Support x86-64.
13848 * NEWS: Note new target x86-64.
13849
13850 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13851 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13852 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13853 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13854 x86-64-linux-nat.o): Fix dependencies.
13855
138562002-01-19 Andrew Cagney <ac131313@redhat.com>
13857
13858 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13859 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13860 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13861 * config/sparc/xm-sun4os4.h: Delete file.
13862 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13863
138642002-01-19 Andrew Cagney <ac131313@redhat.com>
13865
13866 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13867 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13868 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13869 * config/i386/i386lynx.mh (XM_FILE): Delete.
13870 * config/rs6000/xm-rs6000ly.h: Delete file.
13871 * config/sparc/xm-sparclynx.h: Delete file.
13872 * config/m68k/xm-m68klynx.h: Delete file.
13873 * config/i386/xm-i386lynx.h: Delete file.
13874 * config/xm-lynx.h: Delete file.
13875 * config/djgpp/fnchange.lst: Update.
13876
138772002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13878
13879 * alpha-tdep.c (alpha_register_byte): New function.
13880 (alpha_register_raw_size): Ditto.
13881 (alpha_register_virtual_size): Ditto.
13882 (alpha_skip_prologue_internal): Renamed from
13883 alpha_skip_prologue.
13884 (alpha_skip_prologue): New version that calls
13885 alpha_skip_prologue_internal.
13886 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13887 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13888 second argument from alpha_skip_prologue.
13889 (REGISTER_BYTE): Use alpha_register_byte.
13890 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13891 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13892 (FRAMELESS_FUNCTION_INVOCATION): Use
13893 generic_frameless_function_invocation_not.
13894 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13895 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13896
138972002-01-19 Andrew Cagney <ac131313@redhat.com>
13898
13899 * config/mips/xm-news-mips.h: Delete file.
13900 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13901
13902 * config/m88k/xm-m88k.h: Delete file.
13903 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13904 * config/m88k/xm-delta88v4.h: Ditto.
13905 * config/m88k/xm-delta88.h: Ditto.
13906
13907 * config/alpha/xm-fbsd.h: Delete file.
13908 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13909
13910 * config/sparc/xm-sparc.h: Delete file.
13911 * Makefile.in (xm-sun4os4.h): Delete dependency.
13912 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13913 * config/sparc/xm-sun4os4.h: Ditto.
13914 * config/sparc/xm-linux.h: Ditto.
13915
13916 * config/i386/xm-windows.h: Delete file.
13917
139182002-01-19 Andrew Cagney <ac131313@redhat.com>
13919
13920 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13921 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13922
139232002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13924
13925 * alpha-tdep.c (alpha_call_dummy_words): New.
13926 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13927 (CALL_DUMMY_P): Define.
13928 (CALL_DUMMY_WORDS): Define.
13929 (SIZEOF_CALL_DUMMY_WORDS): Define.
13930
139312002-01-19 Per Bothner <per@bothner.com>
13932
13933 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13934 isn't NULL, which can happen with some gcj-3.x-produced code.
13935
139362002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13937
13938 * alpha-tdep.c (alpha_register_virtual_type): New function.
13939 (alpha_init_frame_pc_first): Ditto.
13940 (alpha_fix_call_dummy): Ditto.
13941 (alpha_store_struct_return): Ditto.
13942 (alpha_extract_struct_value_address): Ditto.
13943 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13944 alpha_register_virtual_type.
13945 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13946 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13947 alpha_extract_struct_value_address.
13948 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13949 (INIT_FRAME_PC): Use init_frame_pc_noop.
13950 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13951
139522002-01-19 Mark Kettenis <kettenis@gnu.org>
13953
13954 * i386gnu-nat.c: Include "i386-tdep.h".
13955 (fetch_fpregs): Simplify code dealing with uninitialized floating
13956 point states such that it doesn't require FP7_REGNUM.
13957
139582002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13959
13960 * alpha-tdep.c (frame_extra_info): New.
13961 (alpha_find_saved_regs): Make static. Use
13962 frame->extra_info.
13963 (alpha_frame_init_saved_regs): New function.
13964 (alpha_frame_saved_pc): Use frame->extra_info.
13965 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13966 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13967 (init_extra_frame_info): Rename to...
13968 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13969 (alpha_print_extra_frame_info): New function.
13970 (alpha_frame_locals_address): Ditto.
13971 (alpha_frame_args_address): Ditto.
13972 (alpha_pop_frame): Use frame->extra_info.
13973 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13974 alpha_frame_args_address.
13975 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13976 (alpha_find_saved_regs): Remove prototype.
13977 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13978 (EXTRA_FRAME_INFO): Remove.
13979 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13980 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13981
139822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13983
13984 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13985 (alpha_cannot_fetch_register): Ditto.
13986 (alpha_cannot_store_register): Ditto.
13987 (alpha_register_convertible): Ditto.
13988 (alpha_use_struct_convention): Ditto.
13989 * config/alpha/tm-alpha.h: Update copyright years.
13990 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13991 (INNER_THAN): Use core_addr_lessthan.
13992 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13993 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13994 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13995 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13996 (FRAME_CHAIN): Remove unnecessary cast.
13997
139982002-01-18 Andrew Cagney <ac131313@redhat.com>
13999
14000 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14001 obsolete.
14002
140032002-01-18 Andrew Cagney <ac131313@redhat.com>
14004
14005 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14006 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14007 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14008 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14009 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14010 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14011 * x86-64-linux-nat.c: Ditto.
14012
140132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14014
14015 * alpha-tdep.c (alpha_register_name): New function.
14016 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14017 (REGISTER_NAME): Define.
14018
140192002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14020
14021 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14022
140232002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14024
14025 * alpha-tdep.c: Update copyright years.
14026 (alpha_next_pc): New function.
14027 (alpha_software_single_step): Ditto.
14028 * config/alpha/tm-alpha.h: Add prototype for
14029 alpha_software_single_step.
14030
140312002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14032
14033 * alphabsd-nat.c: Update copyright years.
14034 (fill_gregset): Use regcache_collect.
14035 (fill_fpregset): Likewise.
14036 (fetch_inferior_registers): Only fetch integer registers
14037 if requested to do so.
14038 (store_inferior_registers): Only store integer registers
14039 if requested to do so.
14040
140412002-01-17 Andrew Cagney <ac131313@redhat.com>
14042
14043 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14044 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14045 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14046 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14047 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14048 * config/arm/linux.mh (XDEPFILES): Delete.
14049 * config/arm/nbsd.mh (XDEPFILES): Delete.
14050 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14051 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14052 * config/i386/i386m3.mh (XDEPFILES): Delete.
14053 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14054 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14055 * config/i386/fbsd.mh (XDEPFILES): Delete.
14056 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14057 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14058 * config/i386/i386v4.mh (XDEPFILES): Delete.
14059 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14060 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14061 * config/i386/i386aix.mh (XDEPFILES): Delete.
14062 * config/i386/go32.mh (XDEPFILES): Delete.
14063 * config/i386/cygwin.mh (XDEPFILES): Delete.
14064 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14065 * config/i386/i386mach.mh (XDEPFILES): Delete.
14066 * config/i386/i386v32.mh (XDEPFILES): Delete.
14067 * config/i386/linux.mh (XDEPFILES): Delete.
14068 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14069 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14070 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14071 * config/i386/i386sco.mh (XDEPFILES): Delete.
14072 * config/i386/i386v.mh (XDEPFILES): Delete.
14073 * config/i386/nbsd.mh (XDEPFILES): Delete.
14074 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14075 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14076 * config/i386/symmetry.mh (XDEPFILES): Delete.
14077 * config/i386/obsd.mh (XDEPFILES): Delete.
14078 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14079 * config/ia64/linux.mh (XDEPFILES): Delete.
14080 * config/ia64/aix.mh (XDEPFILES): Delete.
14081 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14082 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14083 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14084 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14085 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14086 * config/m68k/linux.mh (XDEPFILES): Delete.
14087 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14088 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14089 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14090 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14091 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14092 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14093 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14094 * config/m88k/delta88.mh (XDEPFILES): Delete.
14095 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14096 * config/m88k/m88k.mh (XDEPFILES): Delete.
14097 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14098 * config/mips/linux.mh (XDEPFILES): Delete.
14099 * config/mips/irix6.mh (XDEPFILES): Delete.
14100 * config/mips/irix5.mh (XDEPFILES): Delete.
14101 * config/mips/irix4.mh (XDEPFILES): Delete.
14102 * config/mips/irix3.mh (XDEPFILES): Delete.
14103 * config/mips/decstation.mh (XDEPFILES): Delete.
14104 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14105 (NATDEPFILES): Move core-aout.o to here.
14106 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14107 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14108 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14109 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14110 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14111 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14112 * config/pa/hpux11.mh (XDEPFILES): Delete.
14113 * config/powerpc/aix.mh (XDEPFILES): Delete.
14114 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14115 * config/powerpc/linux.mh (XDEPFILES): Delete.
14116 * config/romp/rtbsd.mh: Rename XDEPFILES.
14117 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14118 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14119 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14120 * config/s390/s390.mh (XDEPFILES): Delete.
14121 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14122 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14123 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14124 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14125 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14126 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14127 * config/sparc/linux.mh (XDEPFILES): Delete.
14128 * config/vax/vaxult.mh (XDEPFILES): Delete.
14129 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14130 * Makefile.in (DEPFILES): Remove XDEPFILES.
14131
141322002-01-17 Andrew Cagney <ac131313@redhat.com>
14133
14134 * utils.c (internal_verror): Fix comments, default is yes not no.
14135 Update queries to match. Default to quit and dump core.
14136
141372002-01-17 Andrew Cagney <ac131313@redhat.com>
14138
14139 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14140 copyright.
14141 * defs.h, event-top.c, gdbcmd.h: Ditto.
14142 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14143 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14144 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14145 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14146 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14147 * mi/mi-main.c:Ditto.
14148
14149 * stack.c, symfile.c: Update copyright.
14150
141512002-01-17 Daniel Jacobowitz <drow@mvista.com>
14152
14153 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14154 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14155 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14156 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14157
141582002-01-17 Daniel Jacobowitz <drow@mvista.com>
14159
14160 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14161 * gdbserver/low-lynx.c (myattach): Likewise.
14162 * gdbserver/low-nbsd.c (myattach): Likewise.
14163 * gdbserver/low-sim.c (myattach): Likewise.
14164 * gdbserver/low-sparc.c (myattach): Likewise.
14165 * gdbserver/low-sun3.c (myattach): Likewise.
14166
14167 * gdbserver/low-linux.c (myattach): New function.
14168
14169 * gdbserver/server.c (attach_inferior): New function.
14170 (main): Handle "--attach".
14171
141722002-01-16 Andrew Cagney <ac131313@redhat.com>
14173
14174 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14175 maintainer.
14176
141772002-01-15 Daniel Jacobowitz <drow@mvista.com>
14178
14179 * c-typeprint.c (is_type_conversion_operator): Add additional
14180 check for non-conversion operators.
14181
141822002-01-15 Michael Snyder <msnyder@redhat.com>
14183
14184 * linux-proc.c: Add "info proc" command, a la procfs.c.
14185 (read_mapping): New function, abstract and re-use code.
14186 (linux_find_memory_regions): Use new func read_mapping.
14187 (linux_info_proc_cmd): New function, implement "info proc".
14188 (_initialize_linux_proc): Add new command "info proc".
14189
141902002-01-15 Michael Snyder <msnyder@redhat.com>
14191
14192 * symfile.c (generic_load): Use bfd_map_over_sections method
14193 instead of manipulating bfd structure members directly.
14194 (add_section_size_callback): New function, bfd sections callback
14195 used by generic_load.
14196 (load_sections_callback): New function, bfd sections callback
14197 used by generic_load.
14198
141992002-01-15 Elena Zannoni <ezannoni@redhat.com>
14200
14201 [Based on work by Jim Blandy]
14202 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14203 (builtin_type_vec128): Export.
14204 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14205 types.
14206 (builtin_type_vec128): New builtin type for 128 bit vector
14207 registers.
14208 (build_gdbtypes): Initialize builtin_type_v16qi and
14209 builtin_type_v8hi. Create the vec128 register builtin type
14210 structure.
14211 (build_builtin_type_vec128): New function.
14212 (_initialize_gdbtypes): Register builtin_type_v16qi and
14213 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14214 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14215 AltiVec register to new builtin type.
14216
142172001-01-15 Daniel Jacobowitz <drow@mvista.com>
14218
14219 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14220 to make_cv_type.
14221
142222002-01-14 Andrew Cagney <ac131313@redhat.com>
14223
14224 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14225 CLEAN_UP_REGISTER_VALUE.
14226 * regcache.c (supply_register): Update only call.
14227
142282002-01-14 Andrew Cagney <ac131313@redhat.com>
14229
14230 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14231 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14232 a29k-*-vxworks* targets as obsolete.
14233
142342002-01-14 Michael Snyder <msnyder@redhat.com>
14235
14236 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14237 until we can resolve portability issues.
14238 * gregset.h: Remove references to fpxregs.
14239 * gcore.c (gcore_command): Initialize note_sec to NULL.
14240
142412002-01-13 Andrew Cagney <ac131313@redhat.com>
14242
14243 * signals.c (target_signal_to_name): Rewrite. Only use
14244 signals[].name when in bounds and non-NULL.
14245
142462002-01-13 Andrew Cagney <ac131313@redhat.com>
14247
14248 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14249 * signals.c (target_signal_to_name): Verify that SIG is within the
14250 bounds of the signals array.
14251
142522002-01-13 Andrew Cagney <ac131313@redhat.com>
14253
14254 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14255
142562002-01-13 Keith Seitz <keiths@redhat.com>
14257
14258 * stack.c (print_frame_info_base): Print the frame's pc
14259 only if when print_frame_info_listing_hook is not defined.
14260
142612002-01-13 Keith Seitz <keiths@redhat.com>
14262
14263 * varobj.c (varobj_set_value): Make sure that there were no
14264 errors evaluating the object before attempting to set its
14265 value.
14266 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14267 so this offset adjustment is no longer necessary.
14268 (create_child): Don't set the error flag if the child is
14269 a CPLUS_FAKE_CHILD.
14270 (value_of_child): If value_fetch_lazy fails, return NULL
14271 so that callers will be notified that an error occurred.
14272 (c_value_of_variable): Delay check of variable's validity
14273 until later. We actually want all structs and unions to have
14274 the value "{...}".
14275 Do not return "???" for variables which could not be evaluated.
14276 This error condition must be returned to the caller so that it
14277 can get the error condition from gdb.
14278 (cplus_name_of_child): Adjust index for vptr before figuring
14279 out the name of the child.
14280 (cplus_value_of_child): If a child's (real) parent is not valid,
14281 don't even bother trying to give a value for it. Just return
14282 an error. Change all instances in this function.
14283 (cplus_type_of_child): If our parent is one of the "fake"
14284 parents, we need to get at the type of the real parent, and
14285 derive the child's true type using this information.
14286
142872002-01-13 Andrew Cagney <ac131313@redhat.com>
14288
14289 From 2002-01-09 John Marshall <johnm@falch.net>:
14290 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14291 sources.redhat.com, and tweak some related URLs which had
14292 suffered from linkrot.
14293
142942002-01-13 Andrew Cagney <ac131313@redhat.com>
14295
14296 From Jeff law:
14297 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14298 structures passed in registers.
14299
143002002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14301
14302 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14303 white space which prevented compilation. Reported by DSK
14304 <dsk@student.unsw.edu.au>.
14305
143062002-01-11 Michael Snyder <msnyder@redhat.com>
14307
14308 * symfile.c (build_section_addr_info_from_section_tab):
14309 Use bfd access method instead of manipulating bfd directly.
14310 (syms_from_objfile): Ditto.
14311 (simple_overlay_update_1): Ditto.
14312 (simple_overlay_update): Ditto.
14313 (generic_load): Ditto.
14314 (overlay_unmapped_address): FIXME comment, bfd access methods.
14315 (sections_overlap): FIXME comment, bfd access methods.
14316 (pc_in_mapped_range): FIXME comment, bfd access methods.
14317 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14318 (section_is_mapped): FIXME comment, bfd access methods.
14319 (section_is_overlay): FIXME comment, bfd access methods.
14320
14321 * symfile.c (generic_load): Whitespace and long line cleanups.
14322 Remove duplicate variable, change several local variables to
14323 more appropriate data types.
14324 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14325
143262002-01-12 Andrew Cagney <ac131313@redhat.com>
14327
14328 From Peter Schauer:
14329 * language.c (longest_local_hex_string_custom): Use phex_nz to
14330 convert NUM to a hex string.
14331
143322002-01-12 Elena Zannoni <ezannoni@redhat.com>
14333
14334 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14335 the function.
14336 Update Copyright year.
14337
143382002-01-12 Andrew Cagney <ac131313@redhat.com>
14339
14340 * language.c (longest_raw_hex_string): Delete unused function.
14341
143422002-01-11 Petr Sorfa <petrs@caldera.com>
14343
14344 * MAINTAINERS (write-after-approval): Add myself.
14345 * dwarf2read.c (read_tag_string_type): Handling of
14346 DW_AT_byte_size.
14347 (read_tag_string_type): FORTRAN fix to prevent propagation of
14348 first string size.
14349 (set_cu_language): Handling of DW_LANG_Fortran95
14350
143512002-01-11 Richard Earnshaw <rearnsha@arm.com>
14352
14353 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14354 GETPID(inferior_ptid).
14355 (store_inferior_registers): Likewise.
14356
143572002-01-10 Jason Merrill <jason@redhat.com>
14358
14359 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14360 Fix DW_OP_minus.
14361
143622002-01-10 Andrew Cagney <ac131313@redhat.com>
14363
14364 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14365 and bfd/elf32-sh-nbsd.c.
14366
143672002-01-10 Michael Snyder <msnyder@redhat.com>
14368
14369 * NEWS: Mention --pid and corefile/proc-id behavior change.
14370
14371 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14372 * gcore.c: Include cli/cli-decode.h instead of command.h.
14373
14374 * main.c (captured_main): Add new command line option "--pid".
14375 If the second command line argument (following the symbol-file)
14376 begins with a digit, try to attach to it before trying to open
14377 it as a corefile.
14378 (print_gdb_help): Document the "--pid" argument.
14379
143802002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14381
14382 * completer.c (command_completer): New function.
14383
14384 * completer.h <command_completer>: Add prototype.
14385
14386 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14387 completer for the "help" command.
14388
143892002-01-09 Jason Merrill <jason@redhat.com>
14390
14391 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14392
143932002-01-09 Michael Snyder <msnyder@redhat.com>
14394
14395 * i386-linux-nat.c (fill_fpxregset): Make global.
14396 (store_fpxregset): Ditto.
14397
14398 * gregset.h (gdb_fpxregset_t): Define.
14399 (supply_fpxregset): Prototype.
14400 (fill_fpxregset): Prototype.
14401
14402 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14403
144042002-01-09 Richard Earnshaw <rearnsha@arm.com>
14405
14406 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14407 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14408 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14409
144102002-01-09 Andrew Cagney <ac131313@redhat.com>
14411
14412 * MAINTAINERS: Update target maintainer rules so that any
14413 Maintainer can approve a tested patch for a maintenance-only
14414 target.
14415
144162002-01-09 Richard Earnshaw <rearnsha@arm.com>
14417
14418 * MAINTAINERS (write-after-approval): Add myself.
14419
14420 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14421 IN_SIGTRAMP.
14422
144232002-01-08 Michael Snyder <msnyder@redhat.com>
14424
14425 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14426 real name of the executable, rather than the /proc name.
14427
144282002-01-03 Michael Snyder <msnyder@redhat.com>
14429
14430 Implement a "generate-core-file" command in gdb, save target state.
14431 * gcore.c: New file. Implement new command 'generate-core-file'.
14432 Save a corefile image of the current state of the inferior.
14433 * linux-proc.c: Add linux-specific code for saving corefiles.
14434 * target.h (struct target_ops): Add new target vectors for saving
14435 corefiles; to_find_memory_regions and to_make_corefile_notes.
14436 (target_find_memory_regions): New macro.
14437 (target_make_corefile_notes): New macro.
14438 * target.c (update_current_target): Inherit new target methods.
14439 (dummy_find_memory_regions): New place-holder method.
14440 (dummy_make_corefile_notes): New place-holder method.
14441 (init_dummy_target): Initialize new dummy target vectors.
14442 * exec.c (exec_set_find_memory_regions): New function.
14443 Allow the exec_ops vector for memory regions to be taken over.
14444 (exec_make_note_section): New function, target vector method.
14445 * defs.h (exec_set_find_memory_regions): Export prototype.
14446 * procfs.c (proc_find_memory_regions): New function, corefile method.
14447 (procfs_make_note_section): New function, corefile method.
14448 (init_procfs_ops): Set new target vector pointers.
14449 (find_memory_regions_callback): New function.
14450 (procfs_do_thread_registers): New function.
14451 (procfs_corefile_thread_callback): New function.
14452 * sol-thread.c (sol_find_memory_regions): New function.
14453 (sol_make_note_section): New function.
14454 (init_sol_thread_ops): Initialize new target vectors.
14455 * inftarg.c (inftarg_set_find_memory_regions): New function.
14456 Allow to_find_memory_regions vector to be taken over.
14457 (inftarg_set_make_corefile_notes): New function.
14458 Allow to_make_corefile_notes vector to be taken over.
14459 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14460 interface layer if not target_has_execution (may be a corefile).
14461 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14462 * config/sparc/sun4sol2.mh: Ditto.
14463 * config/alpha/alpha-linux.mh: Ditto.
14464 * config/arm/linux.mh: Ditto.
14465 * config/i386/x86-64linux.mh: Ditto.
14466 * config/ia64/linux.mh: Ditto.
14467 * config/m68k/linux.mh: Ditto.
14468 * config/mips/linux.mh: Ditto.
14469 * config/powerpc/linux.mh: Ditto.
14470 * config/sparc/linux.mh: Ditto.
14471
144722002-01-07 Michael Snyder <msnyder@redhat.com>
14473
14474 * arm-linux-nat.c: Remove references to regcache.c internal data
14475 (registers[] and register_valid[]).
14476
144772002-01-07 Michael Snyder <msnyder@redhat.com>
14478
14479 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14480 so that attaching to a pid will automatically read the process's
14481 symbol file and shlibs.
14482 * Makefile.in: Add rule for linux-proc.o.
14483 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14484 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14485 * config/arm/linux.mh: Ditto.
14486 * config/i386/linux.mh: Ditto.
14487 * config/i386/x86-64linux.mh: Ditto.
14488 * config/ia64/linux.mh: Ditto.
14489 * config/m68k/linux.mh: Ditto.
14490 * config/mips/linux.mh: Ditto.
14491 * config/powerpc/linux.mh: Ditto.
14492 * config/sparc/linux.mh: Ditto.
14493
144942002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14495
14496 * win32-nat.c: Add i386-tdep.h dependency.
14497
144982002-01-07 Michael Snyder <msnyder@redhat.com>
14499
14500 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14501 instead of bfd_get_arch_size. Don't bail out just because
14502 there's no exec_bfd.
14503
14504 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14505 * p-valprint.c (pascal_object_print_value): Ditto.
14506 * somread.c (som_symtab_read): Ditto.
14507 * symfile.c (simple_free_overlay_region_table): Ditto.
14508 * valops.c (value_assign): Ditto.
14509
14510 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14511 use tilde_expand and strerror for opening save-tracepoints file.
14512
14513 * thread-db.c (thread_db_new_objfile): Indendation fix.
14514
14515 * infptrace.c (GDB_MAX_ALLOCA): New define.
14516 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14517 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14518 can be overridden with whatever value is appropriate to the host).
14519 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14520 alloca to allocate potentially large buffer.
14521 * rs6000-nat.c (child_xfer_memory): Ditto.
14522 * symm-nat.c (child_xfer_memory): Ditto.
14523 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14524
145252002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14526
14527 From Nick Clifton <nickc@redhat.com>
14528 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14529
145302002-01-07 Michael Snyder <msnyder@redhat.com>
14531
14532 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14533 Don't use exec_bfd if it's NULL.
14534
145352002-01-06 Mark Kettenis <kettenis@gnu.org>
14536
14537 * valops.c (value_arg_coerce): Fix formatting.
14538
145392002-01-06 Andrew Cagney <ac131313@redhat.com>
14540
14541 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14542 * gnu-nat.c: Ditto.
14543
145442002-01-06 Andrew Cagney <ac131313@redhat.com>
14545
14546 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14547 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14548 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14549 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14550 z8k-coff have not been multi-arched. Update z8k-coff build
14551 status.
14552
145532002-01-06 Andrew Cagney <ac131313@redhat.com>
14554
14555 * MAINTAINERS: Mark a29k target as obsolete.
14556 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14557 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14558 comments.
14559 * NEWS: Note that a29k targets are obsolete.
14560 * a29k-tdep.c: Mark as obsolete.
14561 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14562 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14563 a29k-*-vxworks* targets as obsolete.
14564 * remote-adapt.c: Obsolete.
14565 * remote-eb.c: Obsolete.
14566 * remote-mm.c: Obsolete.
14567 * remote-udi.c: Obsolete.
14568 * config/a29k/a29k-udi.mt: Obsolete.
14569 * config/a29k/a29k.mt: Obsolete.
14570 * config/a29k/tm-a29k.h: Obsolete.
14571 * config/a29k/tm-vx29k.h: Obsolete.
14572 * config/a29k/vx29k.mt: Obsolete.
14573
145742002-01-05 Andrew Cagney <ac131313@redhat.com>
14575
14576 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14577 with BFD_ENDIAN_BIG.
14578
145792002-01-05 Andrew Cagney <ac131313@redhat.com>
14580
14581 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14582 * configure, config.in: Re-generate.
14583 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14584 * defs.h: Do not include <endian.h>.
14585
145862002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14587
14588 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14589 * config.in: Regenerate.
14590 * configure.in: Update copyright years.
14591 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14592 * configure: Regenerate.
14593 * i386bsd-nat.c: Update copyright years.
14594 (fill_gregset): Use regcache_collect.
14595 (fetch_inferior_registers): Only fetch integer registers
14596 if requested to do so. Add support for XMM registers
14597 using PT_GETXMMREGS.
14598 (store_inferior_registers): Only store integer registers
14599 if requested to do so. Add support for XMM registers
14600 using PT_SETXMMREGS.
14601 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14602 (store_inferior_registers): Remove.
14603 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14604 (fetch_elfcore_registers): New function.
14605 (i386nbsd_elfcore_fns): New.
14606 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14607 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14608 i386bsd-nat.o.
14609 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14610 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14611 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14612 * config/i386/tm-nbsd.h: Update copyright years.
14613 (HAVE_SSE_REGS): Define.
14614 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14615 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14616 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14617 (SIGCONTEXT_PC_OFFSET): Remove.
14618 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14619
146202002-01-05 Andrew Cagney <ac131313@redhat.com>
14621
14622 * configure.tgt: Remove powerpc-*-macos* target.
14623 * config/m68k/xm-mpw.h: Delete file.
14624 * config/xm-mpw.h: Delete file.
14625 * ser-mac.c: Delete file.
14626 * mpw-make.sed: Delete file.
14627 * mpw-config.in: Delete file.
14628 * mac-xdep.c: Delete file.
14629 * mac-gdb.r: Delete file.
14630 * mac-defs.h: Delete file.
14631 * mac-nat.c: Delete file.
14632 * config/powerpc/macos.mh: Delete file.
14633 * config/powerpc/macos.mt: Delete file.
14634 * config/powerpc/nm-macos.h: Delete file.
14635 * config/powerpc/tm-macos.h: Delete file.
14636 * source.c (openp, open_source_file): Remove obsolete code.
14637 * top.c (gdb_readline): Ditto.
14638 * utils.c (query): Ditto.
14639 * event-top.c (display_gdb_prompt): Ditto.
14640 * Makefile.in (ser-mac.o): Delete obsolete target.
14641 * NEWS: Update.
14642
146432002-01-04 Andrew Cagney <ac131313@redhat.com>
14644
14645 * defs.h (BIG_ENDIAN): Delete macro definition.
14646 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14647 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14648 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14649 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14650 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14651 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14652 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14653 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14654 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14655 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14656 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14657 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14658 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14659 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14660 * gdbarch.c: Re-generate.
14661
146622002-01-04 Daniel Jacobowitz <drow@mvista.com>
14663
14664 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14665 for core files.
14666
146672002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14668
14669 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14670
146712002-01-04 Andrew Cagney <ac131313@redhat.com>
14672
14673 * value.h (value_ptr): Delete typedef.
14674
146752002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14676
14677 * i386nbsd-nat.c: Update copyright years.
14678 Include i386-tdep.h.
14679
146802002-01-04 Elena Zannoni <ezannoni@redhat.com>
14681
14682 * stabsread.c: Update copyright years.
14683
14684 From Debashis Mahata <debashis.mahata@wipro.com>:
14685 (read_struct_fields): Deal with Sun C compiler erroneous stab
14686 output for structs and unions.
14687 Fix PR gdb/269.
14688
146892002-01-04 Daniel Jacobowitz <drow@mvista.com>
14690
14691 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14692 prototype.
14693
146942002-01-04 Daniel Jacobowitz <drow@mvista.com>
14695
14696 * cp-abi.c: Fix whitespace.
14697 (baseclass_offset): New wrapper function.
14698 * cp-abi.h (baseclass_offset): Add prototype.
14699 (struct cp_abi_ops): Add baseclass_offset pointer.
14700
14701 * valops.c (vb_match): Move to...
14702 * gnu-v2-abi.c (vb_match): here.
14703 * valops.c (baseclass_offset): Move to...
14704 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14705
14706 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14707
14708 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14709 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14710 * hpacc-abi.c (init_hpacc_ops): Likewise.
14711
147122002-01-04 Daniel Jacobowitz <drow@mvista.com>
14713
14714 * valops.c (find_overload_match): Accept obj as a
14715 reference parameter. Update it before returning.
14716 * value.h (find_overload_match): Update prototype.
14717 * eval.c (evaluate_subexp_standard): Pass object to
14718 find_overload_match by reference.
14719
147202002-01-03 Andrew Cagney <ac131313@redhat.com>
14721
14722 * valarith.c: Replace value_ptr with struct value pointer. Remove
14723 register attribute from value declarations.
14724 * valops.c: Ditto.
14725 * value.h: Ditto.
14726 * scm-lang.c (scm_lookup_name): Ditto.
14727
147282002-01-03 Michael Snyder <msnyder@redhat.com>
14729
14730 Abstract the functionality of iterating over mapped memory
14731 regions into a general purpose iterator function.
14732 * procfs.c (iterate_over_mappings): New function, general purpose
14733 iterator for memory sections.
14734 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14735 (solib_mappings_callback): New function, callback for above.
14736 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14737 (info_mappings_callback): New function, callback for above.
14738
14739 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14740
147412002-01-01 Mark Kettenis <kettenis@gnu.org>
14742
14743 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14744 * i386-tdep.c: Include "elf-bfd.h".
14745 (process_note_abi_tag_sections): New function.
14746 (i386_gdbarch_init): Add code to recognize various OS/ABI
14747 combinations.
14748
14749 * maint.c (_initialize_maint_cmds): Add missing \ in
14750 string-literal.
14751
14752For older changes see ChangeLog-2001
14753\f
14754Local Variables:
14755mode: change-log
14756left-margin: 8
14757fill-column: 74
14758version-control: never
14759End:
This page took 0.077213 seconds and 4 git commands to generate.