(lookup_objc_class, lookup_child_selector): Remove
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-23 Adam Fedor <fedor@gnu.org>
2
3 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
4 last argument from complaint function call.
5
6 2002-12-20 Kevin Buettner <kevinb@redhat.com>
7
8 * exec.c (print_section_info): Add FIXME comments regarding format
9 string choices.
10
11 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
12
13 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
14 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
15
16 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
17
18 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
19
20 2002-12-23 David Carlton <carlton@math.stanford.edu>
21
22 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
23 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
24 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
25 information associated to a minsym, not lookup_symbol.
26
27 2002-12-21 Mark Kettenis <kettenis@gnu.org>
28
29 * x86-64-tdep.h (x86_64_init_abi): New prototype.
30 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
31 (x86_64_init_abi): Make non-static. Set number of pseudo
32 registers to 0.
33 (x86_64_gdbarch_init): Remove function.
34 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
35 Remove code dealing with dissambly.
36 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
37 (_initialize_x86_64_linux_tdep): New function.
38 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
39 i386-tdep.o.
40
41 2002-12-14 Mark Kettenis <kettenis@gnu.org>
42
43 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
44 (struct gdb_osabi_handler): Remove member `arch'. Add member
45 `arch_info'.
46 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
47 construct a `struct bfd_arch_info' and store it in the `struct
48 gdb_osabi_handler' that is created.
49 (gdbarch_init_osabi): Check for compatibility based on machine
50 type and architecture.
51 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
52 comment.
53 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
54 second argument in call to gdbarch_register_osabi.
55 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
56 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
57 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
58 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
59 * arm-tdep.c (_initialize_arm_tdep): Likewise.
60 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
61 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
62 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
63 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
64 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
65 * i386-tdep.c (_initialize_i386_tdep): Likewise.
66 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
67 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
68 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
69 _initialize_i386bsd_tdep and updated likewise.
70 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
71 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
72 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
73 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
74 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
75 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
76 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
77 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
78 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
79 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
80
81 2002-12-20 Kevin Buettner <kevinb@redhat.com>
82
83 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
84 DT_MIPS_RLD_MAP case for 64-bit targets.
85
86 2002-12-20 Kevin Buettner <kevinb@redhat.com>
87
88 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
89 ``temp_saved_regs'', not the pointer or other storage contiguous
90 to this pointer.
91
92 2002-12-20 Kevin Buettner <kevinb@redhat.com>
93
94 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
95 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
96 (mips_linux_get_longjmp_target): Delete declarations.
97 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
98 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
99 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
100 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
101 (mips_linux_get_longjmp_target)
102 (mips_linux_svr4_fetch_link_map_offsets): Make static.
103 (mips_linux_init_abi): New function.
104 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
105
106 2002-12-19 Keith Seitz <keiths@redhat.com>
107
108 patch committed by Elena Zannoni <ezannoni@redhat.com>
109 * thread.c (do_captured_list_thread_ids): Call prune_threads and
110 target_find_new_threads. Fix for PR mi/669.
111
112 2002-12-19 David Carlton <carlton@math.stanford.edu>
113
114 * linespec.c (decode_line_1): Move code into decode_all_digits.
115 (decode_all_digits): New function.
116
117 2002-12-19 Kevin Buettner <kevinb@redhat.com>
118
119 * exec.c (print_section_info): Select a format string to use with
120 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
121
122 2002-12-18 Andrew Cagney <ac131313@redhat.com>
123
124 * frame.c (deprecated_update_current_frame_pc_hack): Replace
125 deprecated_update_current_frame_pc_hack.
126 (deprecated_update_frame_base_hack): New function.
127 * frame.h (deprecated_update_frame_pc_hack): Replace
128 (deprecated_update_frame_base_hack): Declare.
129 * infrun.c (normal_stop): Update.
130
131 2002-12-18 Andrew Cagney <ac131313@redhat.com>
132
133 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
134 frame_extra_info_zalloc.
135 (rs6000_frame_args_address): Use get_frame_extra_info.
136 (frame_get_saved_regs): Use get_frame_saved_regs.
137 (frame_initial_stack_address): Use get_frame_saved_regs and
138 get_frame_extra_info.
139 (frame_initial_stack_address): Use get_frame_extra_info.
140
141 2002-12-17 Kevin Buettner <kevinb@redhat.com>
142
143 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
144 array size.
145 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
146 checks for r3900_regnames[].
147
148 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
149
150 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
151 All uses changed
152 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
153
154 2002-12-17 David Carlton <carlton@math.stanford.edu>
155
156 * symtab.c (lookup_partial_symbol): Don't search past the end of
157 the partial symbols.
158
159 2002-12-17 Andrew Cagney <ac131313@redhat.com>
160
161 * stack.c (frame_info): Use get_frame_saved_regs.
162 * breakpoint.c (until_break_command): Use get_frame_pc.
163
164 2002-12-16 Kevin Buettner <kevinb@redhat.com>
165
166 * buildsym.c (block_end_complaint, anon_block_end_complaint)
167 (innerblock_complaint, innerblock_anon_complaint)
168 (blockvector_complaint): Delete deprecated complaint structs.
169 (finish_block, make_blockvector, end_symtab): Replace calls
170 to complain() with calls to complaint().
171 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
172 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
173 (unexpected_type_complaint, bad_sclass_complaint)
174 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
175 Delete deprecated complaint structs.
176 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
177 Replace calls to complain() with calls to complaint().
178 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
179 (unknown_symtype_complaint, unknown_symchar_complaint)
180 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
181 (lbrac_mismatch_complaint, repeated_header_complaint)
182 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
183 Delete deprecated complaint structs.
184 (unknown_symtype_complaint, lbrac_mismatch_complaint)
185 (repeated_header_complaint)
186 (function_outside_compiliation_unit_complaint): New functions.
187 (add_old_header_file, find_corresponding_bincl_psymtab)
188 (set_namestring, find_stab_function_addr, read_dbx_symtab)
189 (process_one_symbol): Replace calls to complain() with, possibly
190 indirect, calls to complaint().
191 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
192 (unknown_attribute_form, unknown_attribute_length)
193 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
194 (const_ignored, botched_modified_type, op_deref2, op_deref4)
195 (basereg_not_handled, dup_user_type_allocation)
196 (dup_user_type_definition, missing_tag, bad_array_element_type)
197 (subscript_data_items, unhandled_array_subscript_format)
198 (unknown_array_subscript_format, not_row_major)
199 (missing_at_name): Delete deprecated complaint structs.
200 (bad_die_ref_complaint, unknown_attribute_form_complaint)
201 (dup_user_type_definition_complaint)
202 (bad_array_element_type_complaint): New functions.
203 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
204 (decode_subscript_data_item, dwarf_read_array_type)
205 (read_tag_string_type, read_subroutine_type, read_func_scope)
206 (locval, scan_partial_symbols, decode_modified_type)
207 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
208 (attribute_size): Replace calls to complain() with, possibly
209 indirect, calls to complaint().
210 * elfread.c (section_info_complaint, section_info_dup_complaint)
211 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
212 Delete deprecated complaint structs.
213 (elf_symtab_read, elfstab_offset_sections): Replace calls to
214 complain() with calls to complaint().
215 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
216 struct.
217 (stub_noname_complaint): New function.
218 (check_typedef, add_mangled_type): Replace calls to complain()
219 with calls to complaint().
220 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
221 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
222 (hpread_unhandled_type_complaint, hpread_struct_complaint)
223 (hpread_array_complaint, hpread_type_lookup_complaint)
224 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
225 (hpread_unhandled_common_complaint)
226 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
227 struct definitions and declarations.
228 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
229 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
230 Replace calls to complain() with, possibly indirect, calls to
231 complaint().
232 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
233 Likewise.
234 * mdebugread.c (bad_file_number_complaint, index_complaint)
235 (aux_index_complaint, block_index_complaint)
236 (unknown_ext_complaint, unknown_sym_complaint)
237 (unknown_st_complaint, block_overflow_complaint)
238 (basic_type_complaint, unknown_type_qual_complaint)
239 (array_index_type_complaint, bad_tag_guess_complaint)
240 (block_member_complaint, stEnd_complaint)
241 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
242 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
243 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
244 (bad_continued_complaint, bad_rfd_entry_complaint)
245 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
246 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
247 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
248 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
249 complaint structs.
250 (index_complaint, unknown_ext_complaint, basic_type_complaint)
251 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
252 (unexpected_type_code_complaint)
253 (function_outside_compilation_unit_complaint): New functions.
254 (parse_symbol, parse_type, upgrade_type, parse_procedure)
255 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
256 Replace calls to complain() with, possibly indirect calls to
257 complaint().
258 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
259 Delete deprecated complaint structs.
260 (lookup__objc_class, lookup_child_selector): Replace complain()
261 with complaint().
262 * remote-vx.c (cant_contact_target): Delete deprecated complaint
263 struct.
264 (vx_lookup_symbol): Replace complain() with complaint().
265 * stabsread.c (invalid_cpp_abbrev_complaint)
266 (invalid_cpp_type_complaint, member_fn_complaint)
267 (const_vol_complaint, error_type_complaint)
268 (invalid_member_complaint, range_type_base_complaint)
269 (reg_value_complaint, vtbl_notfound_complaint)
270 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
271 (unresolved_sym_chain_complaint, stabs_general_complaint)
272 (lrs_general_complaint, multiply_defined_struct): Delete
273 deprecated complaint structs.
274 (invalid_cpp_abbrev_complaint, ref_value_complaint)
275 (stabs_general_complaint, lrs_general_complaint)
276 (msg_unknown_complaint): New functions.
277 (dbx_lookup_type, read_cfront_baseclasses)
278 (read_cfront_member_functions, resolve_symbol_reference)
279 (define_symbol, resolve_live_range, add_live_range, read_type)
280 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
281 (read_one_struct_field, read_baseclasses, read_tilde_fields)
282 (read_cfront_static_fields, attach_fields_to_type)
283 (complain_about_struct_wipeout, read_range_type)
284 (common_block_start, common_block_end, cleanup_undefined_types)
285 (scan_file_globals): Replace complain() with complaint().
286 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
287 Delete deprecated complaint struct declarations.
288 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
289 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
290 (bf_not_found_complaint, ef_complaint, eb_complaint)
291 (function_outside_compilation_unit_complaint): New functions.
292 (record_include_begin, record_include_end, enter_line_range)
293 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
294 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
295 complain() with complaint().
296
297 2002-12-16 Andrew Cagney <ac131313@redhat.com>
298
299 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
300 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
301 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
302 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
303 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
304 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
305 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
306 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
307 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
308 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
309 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
310 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
311 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
312 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
313 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
314 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
315 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
316 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
317 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
318 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
319 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
320 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
321 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
322 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
323 * config/m88k/xm-dgux.h: Delete.
324 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
325 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
326 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
327 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
328 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
329 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
330 * ch-valprint.c: Delete.
331
332 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
333
334 * infrun.c (handle_inferior_event): Rearrange code to resume if
335 no catchpoint triggers for an event.
336
337 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
338
339 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
340 and TARGET_WAITKIND_VFORKED cases.
341
342 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
343
344 * infrun.c (handle_inferior_event): Assume that catchpoints
345 are not affected by DECR_PC_AFTER_BREAK.
346
347 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
348
349 * target.c (update_current_target): Don't inherit DONT_USE.
350 * target.h (struct target_ops): Remove DONT_USE.
351 (target_next): Remove macro.
352
353 2002-12-15 Mark Kettenis <kettenis@gnu.org>
354
355 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
356
357 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
358
359 * arm-tdep.c (convert_from_extended): New argument to hold the
360 type of floating point result we want to convert to. Make input
361 argument const. Fix all callers.
362 (convert_to_extended): Similarly.
363 (arm_extract_return_value): Now takes a regcache argument. Change
364 code to use regcache accessor functions. Correctly extract
365 smaller-than-word results on big-endian machines.
366 (arm_store_return_value): Now takes a regcache argument. Change
367 code to use regcache accessor functions. Correctly zero/sign extend
368 smaller than word results before storing into r0.
369 (arm_gdbarch_init): Register new-style extract_return_value and
370 store_return_value functions.
371
372 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
373
374 * thread-db.c (thread_from_lwp): Uniquify error msg.
375 (lwp_from_thread): Ditto.
376 (check_event): Ditto.
377 (find_new_threads_callback): Ditto.
378 (thread_db_pid_to_str): Ditto.
379
380 2002-12-13 Andrew Cagney <ac131313@redhat.com>
381
382 * frame.h (get_frame_saved_regs): Declare.
383 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
384 pointer.
385 * frame.c (get_frame_saved_regs): New function.
386 (frame_saved_regs_zalloc): Return the allocated saved_regs.
387
388 2002-12-13 Andrew Cagney <ac131313@redhat.com>
389
390 * frame.c (deprecated_update_current_frame_pc_hack): New
391 function.
392 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
393 * infrun.c (normal_stop): Use said function instead of directly
394 modifying the frame's PC.
395
396 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
397
398 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
399
400 2002-12-13 Kevin Buettner <kevinb@redhat.com>
401
402 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
403 config/mips/tm-irix6.h (NUM_REGS): Delete.
404 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
405 (temp_saved_regs): Declare as a pointer rather than an array.
406 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
407 that ``temp_saved_regs'' has storage allocated to it and that
408 it's the correct size.
409
410 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
411
412 * defs.h (init_last_source_visited): New prototype.
413 (add_path): Ditto.
414 * source.c (add_path): New function that adds to a specified path.
415 (mod_path): Change to call add_path.
416 (init_last_source_visited): New function to allow interfaces to
417 initialize static variable: last_source_visited. Part of fix
418 for PR gdb/741.
419 * Makefile.in: Add support for mi/mi-cmd-env.c.
420
421 2002-12-13 Andrew Cagney <ac131313@redhat.com>
422
423 * frame.h (frame_id_unwind): Declare.
424 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
425 id_unwind_cache.
426 (frame_id_unwind_ftype): Declare.
427 * frame.c (frame_id_unwind): New function.
428 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
429 (create_new_frame, get_prev_frame): Pass id_unwind to
430 set_unwind_by_pc.
431 (frame_saved_regs_id_unwind): New function.
432 (frame_saved_regs_id_unwind): New function.
433 * dummy-frame.c (dummy_frame_id_unwind): New function.
434 (struct dummy_frame): Add field id.
435 (generic_push_dummy_frame): Initialize `id'.
436 * dummy-frame.h (dummy_frame_id_unwind): Declare.
437
438 2002-12-13 Andrew Cagney <ac131313@redhat.com>
439
440 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
441 pass that to set_momentary_breakpoint. Move comments to where they
442 belong.
443 * frame.h (set_current_frame): Delete declaration.
444 * frame.c (set_current_frame): Delete function.
445
446 2002-12-13 Andrew Cagney <ac131313@redhat.com>
447
448 * frame.c (frame_extra_info_zalloc): New function.
449 * frame.h (frame_extra_info_zalloc): Declare.
450
451 2002-12-13 Joel Brobecker <brobecker@gnat.com>
452
453 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
454 in the previous prototype change to set_momentary_breakpoint.
455
456 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
457
458 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
459 and saw_child_exec.
460 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
461 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
462 (stop_stepping): Remove outdated check for child vfork events.
463
464 2002-12-12 Andrew Cagney <ac131313@redhat.com>
465
466 * GDB 5.3 released from gdb_5_3-branch.
467
468 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
469
470 * corelow.c (init_core_ops): Delete references to to_require_attach
471 and to_require_detach.
472 * exec.c (init_exec_ops): Likewise.
473 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
474 hppa_require_detach directly.
475 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
476 * inftarg.c (child_detach): Remove.
477 (child_detach_from_process): Rename to child_detach, remove
478 after_fork argument.
479 (child_attach): Remove.
480 (child_attach_to_process): Rename to child_attach, remove after_fork
481 argument.
482 (init_child_ops): Delete references to to_require_attach
483 and to_require_detach.
484 * infttrace.c (hppa_require_attach): Update comment.
485 * target.c (cleanup_target, update_current_target)
486 (init_dummy_target, setup_target_debug): Delete references to
487 to_require_attach and to_require_detach.
488 (find_default_require_detach, find_default_require_attach)
489 (debug_to_require_attach, debug_to_require_detach): Remove
490 functions.
491 * target.h (struct target_ops): Remove to_require_attach
492 and to_require_detach.
493 (target_require_attach, target_require_detach): Delete macros.
494 (find_default_require_detach, find_default_require_attach): Delete
495 prototypes.
496 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
497
498 2002-12-11 Andrew Cagney <ac131313@redhat.com>
499
500 * frame.c (get_frame_extra_info): New function.
501 * frame.h (get_frame_extra_info): Declare.
502
503 2002-12-11 Andrew Cagney <ac131313@redhat.com>
504
505 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
506 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
507 with `struct frame_id'.
508 (set_longjmp_resume_breakpoint): Ditto.
509 * infrun.c (handle_inferior_event): Update.
510 * breakpoint.c (watch_command_1, until_break_command): Update.
511 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
512 (handle_inferior_event, step_over_function): Update.
513 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
514 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
515 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
516 * infcmd.c (finish_command, run_stack_dummy): Update.
517
518 2002-12-11 Kevin Buettner <kevinb@redhat.com>
519
520 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
521 (dwarf2_non_const_array_bound_ignored)
522 (dwarf2_missing_line_number_section)
523 (dwarf2_statement_list_fits_in_line_number_section)
524 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
525 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
526 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
527 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
528 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
529 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
530 (dwarf2_missing_member_fn_type_complaint)
531 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
532 (dwarf2_const_value_length_mismatch)
533 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
534 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
535 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
536 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
537 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
538 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
539 complaints using deprecated struct..
540 (dwarf2_non_const_array_bound_ignored_complaint)
541 (dwarf2_complex_location_expr_complaint)
542 (dwarf2_unsupported_at_frame_base_complaint)
543 (dwarf2_const_value_length_mismatch_complaint)
544 (dwarf2_macros_too_long_complaint)
545 (dwarf2_macro_malformed_definition_complaint)
546 (dwarf2_invalid_attrib_class_complaint): New functions.
547 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
548 (read_structure_scope, read_array_type, read_common_block)
549 (read_tag_pointer_type, read_base_type, read_partial_die)
550 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
551 (new_symbol, dwarf2_const_value, read_type_die)
552 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
553 (parse_macro_definition, dwarf_decode_macros): Replace calls to
554 complain() with, possibly indirect, calls to complaint().
555
556 2002-12-11 Andrew Cagney <cagney@redhat.com>
557
558 * frame.c (deprecated_get_frame_saved_regs): Rename
559 get_frame_saved_regs.
560 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
561 * sparc-tdep.c: Update.
562 * hppa-tdep.c: Update.
563 * h8500-tdep.c: Update.
564
565 2002-12-11 Kevin Buettner <kevinb@redhat.com>
566
567 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
568 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
569 ``char *'' for return and parameter types.
570 * gdbarch.h, gdbarch.c: Regenerate.
571 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
572 return type from ``char *'' to ``const char *''.
573 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
574 const.
575
576 2002-12-11 Mark Kettenis <kettenis@gnu.org>
577
578 * i386-tdep.c: Include "dummy-frame.h".
579 (i386_frame_chain, i386_frame_saved_pc): Replace
580 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
581 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
582
583 2002-12-10 Andrew Cagney <cagney@redhat.com>
584
585 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
586 Change to a function with predicate.
587 * gdbarch.h, gdbarch.c: Re-generate.
588 * frame.c (get_prev_frame): Update. Test
589 DEPRECATED_INIT_FRAME_PC_P.
590 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
591 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
592 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
593 * alpha-tdep.c (alpha_gdbarch_init): Update.
594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
595 * mips-tdep.c (mips_gdbarch_init): Update.
596 * i386-interix-tdep.c (i386_interix_init_abi): Update.
597 * arm-tdep.c: Update comments.
598 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
599 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
600 * frv-tdep.c (frv_gdbarch_init): Ditto.
601 * x86-64-tdep.c (x86_64_init_abi): Ditto.
602 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
603 * s390-tdep.c (s390_gdbarch_init): Ditto.
604 * v850-tdep.c (v850_gdbarch_init): Ditto.
605 * vax-tdep.c (vax_gdbarch_init): Ditto.
606 * sh-tdep.c (sh_gdbarch_init): Ditto.
607 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
609 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
610 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
611 * i386-tdep.c (i386_gdbarch_init): Ditto.
612 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
613 * cris-tdep.c (cris_gdbarch_init): Ditto.
614 * avr-tdep.c (avr_gdbarch_init): Ditto.
615 * arm-tdep.c (arm_gdbarch_init): Ditto.
616 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
617 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
618
619 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
620
621 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
622 CHILD_FOLLOW_FORK.
623 * hppah-nat.c (saved_vfork_pid): Add.
624 (child_post_follow_vfork): Remove.
625 (child_follow_fork): New function.
626 (child_wait): Call detach_breakpoints after receiving the child vfork.
627 Call child_resume directly instead of going through resume ().
628 Make sure we have the exec before reporting the vfork.
629 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
630 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
631 (follow_fork): New function. Call target_follow_fork.
632 (follow_inferior_reset_breakpoints): New function broken out from
633 old follow_inferior_fork.
634 (resume): Remove hack to follow exec after vfork.
635 * inftarg.c (child_post_follow_vfork): Remove.
636 (child_follow_fork): New function.
637 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
638 * target.c (cleanup_target): Replace to_post_follow_vfork with
639 to_follow_fork.
640 (update_current_target): Likewise.
641 (setup_target_debug): Likewise.
642 (debug_to_post_follow_vfork): Remove.
643 (debug_to_follow_fork): New function.
644 * target.h (struct target_ops): Replace to_post_folow_vfork with
645 to_follow_fork.
646 (child_post_follow_vfork): Remove prototype.
647 (child_follow_fork): Add prototype.
648 (target_post_follow_vfork): Remove macro.
649 (target_follow_fork): Add macro.
650
651 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
652
653 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
654 (child_post_follow_vfork): Cancel pending exec event if we follow
655 the parent.
656 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
657 events have been processed. Return a fake TARGET_WAITKIND_EXECD
658 event at the following wait call if necessary.
659 * infrun.c (follow_vfork): Don't follow_exec here.
660 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
661 case about HP/UX 10.20. Remove code pushed down to
662 hppah-nat.c:child_wait.
663 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
664 vfork_in_flight is set.
665
666 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
667
668 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
669 for the parent's fork event.
670 * infrun.c (handle_inferior_event): Only expect one fork event.
671 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
672 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
673
674 2002-12-10 Andrew Cagney <ac131313@redhat.com>
675
676 * PROBLEMS: Delete reference to PR gdb/725.
677
678 * MAINTAINERS (gdb.c++): Add David Carlton.
679
680 2002-12-09 David Carlton <carlton@math.stanford.edu>
681
682 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
683 * cli/cli-cmds.c: Ditto.
684
685 2002-12-09 Andrew Cagney <cagney@redhat.com>
686
687 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
688 function address in <>.
689 * gdbarch.c: Re-generate.
690
691 2002-12-09 David Carlton <carlton@math.stanford.edu>
692
693 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
694
695 2002-12-09 David Carlton <carlton@math.stanford.edu>
696
697 * linespec.c (symtab_from_filename): New function.
698 (decode_line_1): Move code into symtab_from_filename.
699
700 2002-12-09 Kevin Buettner <kevinb@redhat.com>
701
702 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
703
704 2002-12-07 Andrew Cagney <ac131313@redhat.com>
705
706 * f-valprint.c (info_common_command): Use get_frame_pc.
707 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
708 * ax-gdb.c (agent_command): Ditto.
709 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
710 (rs6000_pop_frame): Ditto.
711 (rs6000_frameless_function_invocation): Ditto.
712 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
713 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
714 * macroscope.c (default_macro_scope): Ditto.
715 * stack.c (print_frame_info_base): Ditto.
716 (print_frame, frame_info, print_frame_label_vars): Ditto.
717 (return_command, func_command, get_frame_language): Ditto.
718 * infcmd.c (finish_command): Ditto.
719 * dummy-frame.c (cached_find_dummy_frame): Ditto.
720 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
721 (break_at_finish_at_depth_command_1): Ditto.
722 (break_at_finish_command_1): Ditto.
723 (until_break_command, get_catch_sals): Ditto.
724 * blockframe.c (func_frame_chain_valid): Ditto.
725 (frameless_look_for_prologue): Ditto.
726 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
727
728 2002-12-08 Andrew Cagney <ac131313@redhat.com>
729
730 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
731 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
732
733 2002-12-08 Andrew Cagney <ac131313@redhat.com>
734
735 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
736 to pure functions.
737 * gdbarch.h, gdbarch.c: Re-generate.
738 * frame.c (get_prev_frame): Explictly assign prev's pc with value
739 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
740
741 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
742 declaration to a function returning a CORE_ADDR.
743 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
744 * arch-utils.c (init_frame_pc_noop): Return the PC value.
745 (init_frame_pc_default): Ditto.
746 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
747 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
748 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
749 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
750 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
751 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
752
753 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
754 to init_frame_pc_noop.
755 (i386_interix_init_frame_pc): Delete function.
756 * z8k-tdep.c (init_frame_pc): Delete function.
757 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
758 (INIT_FRAME_PC_FIRST): Ditto.
759 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
760 (INIT_FRAME_PC_FIRST): Ditto.
761 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
762 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
763 init_frame_pc_noop.
764 (INIT_FRAME_PC_FIRST): Convert to an expression.
765 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
766
767 2002-12-08 Andrew Cagney <ac131313@redhat.com>
768
769 * blockframe.c: Use get_frame_base instead of directly accessing
770 the `struct frame_info' member frame.
771 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
772 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
773
774 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
775
776 * Makefile.in (readline_h): Define.
777 (completer.o): Depend on readline_h.
778 (corelow.o): Ditto.
779 (event-top.o): Ditto.
780 (exec.o): Ditto.
781 (solib.o): Ditto.
782 (source.o): Ditto.
783 (symfile.o): Ditto.
784 (symmisc.o): Ditto.
785 (top.o): Ditto.
786 (tracepoint.o): Ditto.
787 (utils.o): Ditto.
788 (cli-dump.o): Ditto.
789 (tui-hooks.o): Ditto.
790 (tuiWin.o): Ditto.
791
792 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
793
794 More cleanup from import of readline 4.3.
795 * completer.h (complete_line, readline_line_completion_function):
796 Update prototypes.
797 (line_completion_function): Removed, not used outside of completer.c.
798 * completer.c (readline_line_completion_function,
799 complete_function, line_completion_function): Use const for first
800 parameter.
801 (line_completion_function): Make static.
802 (filename_completer): filename_completion_function is now called
803 rl_filename_completion_function
804 * corelow.c: Include <readline/readline.h>.
805 * exec.c: Ditto.
806 * solib.c: Ditto.
807 * source.c: Ditto.
808 * symfile.c: Ditto.
809 * symmisc.c: Ditto.
810 * top.c (init_main): No need to coerce
811 readline_line_completion_function anymore.
812 * cli/cli-dump.c: Include <readline/readline.h>.
813
814 2002-12-08 Andrew Cagney <ac131313@redhat.com>
815
816 * stack.c (frame_info): Use get_prev_frame.
817 * blockframe.c (frame_address_in_block): Ditto.
818 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
819 (rs6000_frameless_function_invocation): Ditto.
820 (rs6000_frame_saved_pc): Ditto.
821 (rs6000_frame_chain): Ditto.
822 * arch-utils.c (init_frame_pc_default): Ditto.
823
824 2002-12-08 Andrew Cagney <ac131313@redhat.com>
825
826 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
827 Delete redundant definition.
828
829 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
830
831 Import of readline 4.3:
832 * cli/cli-cmds.c: Include readline/tilde.h.
833 * cli/cli-setshow.c: Ditto.
834 * defs.h: Don't declare tilde_expand anymore, since readline
835 exports it.
836
837 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
838
839 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
840 -Werror on this file.
841
842 2002-12-07 Andrew Cagney <ac131313@redhat.com>
843
844 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
845 the format name.
846 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
847 * gdbarch.c: Regenerate.
848
849 2002-12-06 Andrew Cagney <ac131313@redhat.com>
850
851 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
852 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
853 provide a default value.
854 * gdbarch.h, gdbarch.c: Regenerate.
855 * frame.c (get_prev_frame): Update. Check
856 DEPRECATED_INIT_FRAME_PC_FIRST_P.
857 * s390-tdep.c (s390_gdbarch_init): Update.
858 * mips-tdep.c (mips_gdbarch_init): Update.
859 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
860 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
861 * alpha-tdep.c (alpha_gdbarch_init): Update.
862
863 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
864
865 * ia64-linux-nat.c: Include gdb_string.h.
866 * alpha-nat.c: Ditto.
867 * ppc-linux-nat.c: Ditto.
868 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
869 Update dependencies.
870
871 2002-12-05 Andrew Cagney <ac131313@redhat.com>
872
873 * gdbthread.h: Include "frame.h".
874 (struct thread_info): Replace step_frame_address with
875 step_frame_id.
876 * inferior.h: Include "frame.h".
877 (step_frame_id): Replace external variable step_frame_address.
878 * gdbthread.h (save_infrun_state): Replace step_frame_address
879 parameter with step_frame_id parameter.
880 (load_infrun_state): Ditto.
881 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
882 * infcmd.c (step_frame_id, step_1, step_once): Update.
883 * thread.c (load_infrun_state, save_infrun_state): Update.
884 * infrun.c (clear_proceed_status, save_inferior_status): Update.
885 (handle_inferior_event, step_over_function): Update.
886 (normal_stop, context_switch, restore_inferior_status): Update.
887 (struct inferior_status): Replace step_frame_address with
888 step_frame_id.
889
890 2002-12-05 David Carlton <carlton@math.stanford.edu>
891
892 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
893 DW_TAG_member as well as a declaration as being a C++ static data
894 member.
895 (read_structure_scope): Combine tests for DW_TAG_member and
896 DW_TAG_variable.
897
898 2002-12-05 David Carlton <carlton@math.stanford.edu>
899
900 * linespec.c (decode_compound): New function.
901 (decode_line_1): Move code into decode_compound.
902
903 2002-12-05 David Carlton <carlton@math.stanford.edu>
904
905 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
906 argument.
907 (lookup_symbol_aux): Do the 'field_of_this' check before checking
908 the static block. See PR gdb/804.
909
910 2002-12-05 David Carlton <carlton@math.stanford.edu>
911
912 * symtab.c (lookup_symbol_aux_block): New function.
913 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
914
915 2002-12-05 Andrew Cagney <ac131313@redhat.com>
916
917 * gdbarch.sh: Dump the predicate function and macro values.
918 (read): Print error on standard error.
919 * gdbarch.c: Regenerate.
920
921 2002-12-04 Kevin Buettner <kevinb@redhat.com>
922
923 * Makefile.in (mips_tdep_h): Define.
924 (mips-tdep.o): Add mips_tdep_h to dependency list.
925 * mips-tdep.h: New file.
926 * mips-tdep.c (mips-tdep.h): Include.
927 (enum mips_abi): Move to mips-tdep.h.
928 (mips_abi): New function.
929
930 2002-12-04 David Carlton <carlton@math.stanford.edu>
931
932 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
933
934 2002-12-04 David Carlton <carlton@math.stanford.edu>
935
936 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
937 function.
938 (lookup_symbol_aux_minsyms): New function.
939
940 2002-12-04 J. Brobecker <brobecker@gnat.com>
941
942 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
943
944 2002-12-04 J. Brobecker <brobecker@gnat.com>
945
946 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
947 which is an obsolete macro name.
948
949 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
950
951 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
952 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
953
954 2002-12-03 H.J. Lu (hjl@gnu.org)
955
956 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
957 (create_breakpoints): Make sure the addr_string field is not
958 NULL.
959
960 2002-12-03 Andrew Cagney <ac131313@redhat.com>
961
962 * sparc-nat.c (fetch_inferior_registers)
963 (store_inferior_registers): Add comment on problem of LWP vs
964 threads.
965
966 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
967 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
968 (lin_lwp_store_registers): Remove.
969 (init_lin_lwp_ops): Use fetch_inferior_registers
970 and store_inferior_registers directly.
971 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
972 (store_inferior_registers): Likewise.
973 Fix PR gdb/725.
974
975 2002-12-03 Andrew Cagney <ac131313@redhat.com>
976
977 * frame.h (get_frame_id): Convert to a function.
978 (null_frame_id, frame_id_p): Declare.
979 (frame_id_eq, frame_id_inner): Declare.
980 (frame_id_build): New function.
981 * frame.c (get_frame_id): Update. Use null_frame_id.
982 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
983 frame_id_inner.
984 (null_frame_id, frame_id_p): Define.
985 (frame_id_eq, frame_id_inner): Define.
986 (frame_id_build): New function.
987 * varobj.c (varobj_create): Update.
988 (varobj_update): Update.
989 * valops.c (value_assign): Update.
990 (new_root_variable): Update.
991 * infrun.c (save_inferior_status): Update.
992 * breakpoint.c (watch_command_1): Update.
993
994 2002-12-03 J. Brobecker <brobecker@gnat.com>
995
996 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
997 (SNAP2): Likewise.
998
999 2002-12-03 Andrew Cagney <cagney@redhat.com>
1000
1001 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1002 patch.
1003
1004 * PROBLEMS: Mention PR gdb/725.
1005
1006 2002-12-03 Andreas Schwab <schwab@suse.de>
1007
1008 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1009
1010 2002-12-02 Adam Fedor <fedor@gnu.org>
1011 Klee Dienes <kdienes@apple.com>
1012
1013 * objc-lang.c (objc_printstr): Add width arg to match
1014 printstr prototype.
1015 (compare_selectors): Add 'const' to arg types.
1016 (compare_classes): Likewise.
1017 (find_imps): Cast msym pointer to avoid compiler warning.
1018 (print_object_command): Validate the address before
1019 passing it to the print routine.
1020 (find_objc_msgcall_submethod): Change function argument to
1021 return an int.
1022 * objc-lang.h: Add 'extern' to all function declarations.
1023 (value_nsstring): Add declaration.
1024
1025 2002-12-02 J. Brobecker <brobecker@gnat.com>
1026
1027 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1028 Fixes a build failure on HP/UX.
1029
1030 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1031 failure on HP/UX.
1032 (hpread_has_name): Advance declaration to avoid a compilation warning.
1033 (pst_syms_count): Add missing variable type. By change, the compiler
1034 was defaulting to int, which seems a good choice. Fixes a compilation
1035 warning.
1036 (pst_syms_size): Likewise.
1037
1038 2002-12-02 J. Brobecker <brobecker@gnat.com>
1039
1040 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1041 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1042 later to set the proper gdbarch methods depending on the osabi.
1043 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1044
1045 2002-12-02 J. Brobecker <brobecker@gnat.com>
1046
1047 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1048 * osabi.c (gdb_osabi_name): Add strings images for the two new
1049 enum values.
1050 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1051
1052 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1053
1054 * MAINTAINERS (Java): Global maintainers are responible for Java.
1055 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1056 part Java maintainers.
1057
1058 2002-12-02 J. Brobecker <brobecker@gnat.com>
1059
1060 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1061 Fixes a compilation failure on AiX.
1062
1063 2002-12-02 J. Brobecker <brobecker@gnat.com>
1064
1065 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1066 why aix-thread.o is not listed.
1067
1068 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1069
1070 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1071 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1072 * gdbarch.h, gdbarch.c: Re-generate.
1073 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1074 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1075 * config/pa/tm-hppa.h, frame.h: Update.
1076 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1077 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1078 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1079 * cris-tdep.c, alpha-tdep.c: Update.
1080 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1081 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1082 (get_prev_frame): Ditto.
1083
1084 2002-11-30 Andrew Cagney <cagney@redhat.com>
1085
1086 * exec.c (xfer_memory): Replace boolean with int.
1087 * p-exp.y: Use 0 instead of false.
1088 * corelow.c (gdb_check_format): Change return type to int from
1089 boolean.
1090 * utils.c: Don't include <curses.h> or <term.h> first.
1091
1092 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1093
1094 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1095 (m68hc11_register_byte): Remove.
1096 (m68hc11_gdbarch_init): Don't set the above.
1097
1098 2002-11-29 Andrew Cagney <cagney@redhat.com>
1099
1100 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1101 by calling get_selected_frame.
1102 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1103 set_current_frame, create_new_frame, select_frame and
1104 get_current_frame.
1105 * remote-e7000.c (e7000_start_remote): Ditto.
1106 * remote-mips.c (common_open): Ditto
1107 * remote-rdp.c (remote_rdp_open): Ditto.
1108
1109 2002-11-29 Andreas Schwab <schwab@suse.de>
1110
1111 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1112 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1113 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1114 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1115 read_memory_unsigned_integer instead of read_memory_integer when
1116 dealing with addresses and instruction opcodes.
1117 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1118 (m68k_linux_frame_saved_pc): Likewise.
1119
1120 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1121
1122 * stack.c (selected_frame, select_frame): Move from here ...
1123 * frame.c (selected_frame, select_frame): ... to here. Include
1124 "language.h".
1125 * Makefile.in (frame.o): Update dependencies.
1126 * frame.c (get_selected_frame): New function.
1127 * frame.h (get_selected_frame): Declare.
1128 (deprecated_selected_frame): Rename selected_frame.
1129 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1130 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1131 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1132 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1133 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1134 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1135 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1136 * z8k-tdep.c, cli/cli-cmds.c: Update.
1137
1138 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1139
1140 * frame.h (get_selected_block): Add comments.
1141
1142 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1143
1144 * frame.c (pc_notcurrent): New function.
1145 (find_frame_sal): New function.
1146 * frame.h (find_frame_sal): Declare.
1147 (struct symtab_and_line): Add opaque declaration.
1148 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1149 find_pc_line.
1150 (frame_info): Ditto.
1151 * ada-lang.c (find_printable_frame): Ditto.
1152
1153 2002-11-28 J. Brobecker <brobecker@gnat.com>
1154
1155 * configure.in: Check that the pthdebug library is recent enough
1156 before enabling thread support on native AiX.
1157 * configure: Regenerate.
1158
1159 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1160 from the list of object files as it is now appended by configure
1161 if thread support is enabled.
1162 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1163 if thread support is enabled.
1164
1165 2002-11-28 Andrew Cagney <cagney@redhat.com>
1166
1167 * stack.c (get_selected_block): In-line get_current_block.
1168 * frame.h (get_current_block): Delete declaration.
1169 * blockframe.c (get_current_block): Delete function.
1170
1171 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1172
1173 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1174 USE_GENERIC_DUMMY_FRAMES.
1175 * gdbarch.h, gdbarch.c: Regenerate.
1176 * valops.c, frame.c: Update.
1177 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1178 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1179 * config/pa/tm-hppa.h, blockframe.c: Update.
1180 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1181 * m68k-tdep.c, alpha-tdep.c: Ditto.
1182
1183 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1184 * mips-tdep.c: Ditto.
1185
1186 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1187
1188 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1189 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1190 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1191 * gdbarch.c, gdbarch.h: Re-generate.
1192 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1193 (CALL_DUMMY_LOCATION): Delete macro definition.
1194 (PC_IN_CALL_DUMMY): Delete macro definitions.
1195
1196 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1197 default is already generic_pc_in_call_dummy.
1198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1199 * v850-tdep.c (v850_gdbarch_init): Ditto.
1200 * sh-tdep.c (sh_gdbarch_init): Ditto.
1201 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1202 * mips-tdep.c (mips_gdbarch_init): Ditto.
1203 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1205 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1206 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1207 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1208 * avr-tdep.c (avr_gdbarch_init): Ditto.
1209
1210 * arm-tdep.c (arm_gdbarch_init): Do not set
1211 use_generic_dummy_frames, default is already 1.
1212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1213 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1214 * v850-tdep.c (v850_gdbarch_init): Ditto.
1215 * sh-tdep.c (sh_gdbarch_init): Ditto.
1216 * s390-tdep.c (s390_gdbarch_init): Ditto.
1217 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1219 * mips-tdep.c (mips_gdbarch_init): Ditto.
1220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1222 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1223 * i386-tdep.c (i386_gdbarch_init): Ditto.
1224 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1225 * frv-tdep.c (frv_gdbarch_init): Ditto.
1226 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1227 * cris-tdep.c (cris_gdbarch_init): Ditto.
1228 * avr-tdep.c (avr_gdbarch_init): Ditto.
1229
1230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1231 call_dummy_location, default is already AT_ENTRY_POINT.
1232 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1233 * v850-tdep.c (v850_gdbarch_init): Ditto.
1234 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1235 * sh-tdep.c (sh_gdbarch_init): Ditto.
1236 * s390-tdep.c (s390_gdbarch_init): Ditto.
1237 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1238 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1239 * mips-tdep.c (mips_gdbarch_init): Ditto.
1240 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1243 * i386-tdep.c (i386_gdbarch_init): Ditto.
1244 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1245 * frv-tdep.c (frv_gdbarch_init): Ditto.
1246 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1247 * cris-tdep.c (cris_gdbarch_init): Ditto.
1248 * avr-tdep.c (avr_gdbarch_init): Ditto.
1249 * arm-tdep.c (arm_gdbarch_init): Ditto.
1250 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1251
1252 2002-11-28 Andrew Cagney <cagney@redhat.com>
1253
1254 * frame.h: Update comments on set_current_frame, create_new_frame,
1255 flush_cached_frames, reinit_frame_cache, select_frame and
1256 selected_frame.
1257
1258 2002-11-27 Andrew Cagney <cagney@redhat.com>
1259
1260 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1261 deprecated pc_in_call_dummy function.
1262 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1263 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1264 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1265 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1266 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1267
1268 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1269
1270 * Makefile.in: Remove Tix dependencies.
1271 * acinclude.m4: Ditto.
1272 * aclocal.m4: Ditto.
1273 * configure.in: Ditto.
1274 * configure: Regenerated.
1275
1276 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1277
1278 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1279 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1280 * gdbarch.c: Re-generate.
1281
1282 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1283
1284 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1285 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1286 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1287 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1288 pc_in_call_dummy_at_entry_point.
1289 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1290 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1291 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1292 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1293 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1294 pc_in_call_dummy_on_stack.
1295 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1296 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1297 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1298 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1299 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1300
1301 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1302
1303 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1304 pc_in_call_dummy_before_text_end
1305 (deprecated_pc_in_call_dummy_after_text_end): Rename
1306 pc_in_call_dummy_after_text_end.
1307 (deprecated_pc_in_call_dummy_on_stack): Rename
1308 pc_in_call_dummy_on_stack.
1309 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1310 pc_in_call_dummy_at_entry_point.
1311 * m68k-tdep.c (m68k_gdbarch_init): Update.
1312 * s390-tdep.c (s390_gdbarch_init): Update.
1313 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1314 * vax-tdep.c (vax_gdbarch_init): Update.
1315 * sparc-tdep.c (sparc_gdbarch_init): Update.
1316 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1317 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1318 * i386-tdep.c (i386_gdbarch_init): Update.
1319 * frv-tdep.c (frv_gdbarch_init): Update.
1320 * cris-tdep.c (cris_gdbarch_init): Update.
1321 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1322 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1323 (deprecated_pc_in_call_dummy_after_text_end)
1324 (deprecated_pc_in_call_dummy_on_stack)
1325 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1326 * alpha-tdep.c (alpha_gdbarch_init): Update.
1327
1328 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1329
1330 * acconfig.h (HAVE_PREAD64): Add.
1331 * configure.in: Check for pread64.
1332 * config.in: Regenerated.
1333 * configure: Regenerated.
1334 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1335 * linux-proc.c (linux_proc_xfer_memory): New function.
1336 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1337
1338 2002-11-25 David Carlton <carlton@math.stanford.edu>
1339
1340 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1341 pdi's with no name.
1342
1343 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1344
1345 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1346 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1347
1348 2002-11-25 Jim Blandy <jimb@redhat.com>
1349
1350 * symfile.c (init_objfile_sect_indices): New function.
1351 (default_symfile_offsets): Move the section-index-initializing
1352 stuff into init_objfile_sect_indices, and call that.
1353
1354 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1355 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1356
1357 * symfile.c (syms_from_objfile): Adjust indentation.
1358
1359 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1360 || info_verbose isn't true.
1361
1362 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1363
1364 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1365 default to get_frame_base.
1366 * gdbarch.h, gdbarch.c: Regenerate.
1367 * arch-utils.c (default_frame_address): Delete function.
1368 * arch-utils.h (default_frame_address): Delete declaration
1369
1370 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1371
1372 * varobj.c (find_frame_addr_in_frame_chain):
1373 Use get_frame_base instead of FRAME_FP,
1374 obvious fix.
1375
1376 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1377
1378 * frame.h (FRAME_FP): Delete macro.
1379 (get_frame_base): New function declaration.
1380 * frame.c (get_frame_base): New function.
1381 (get_frame_id): Use ->frame.
1382 (frame_find_by_id): Rewrite to use get_frame_id.
1383 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1384 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1385 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1386 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1387 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1388 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1389 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1390
1391 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1392
1393 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1394
1395 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1396
1397 * frame.c (set_unwind_by_pc): Revert change below, use
1398 PC_IN_CALL_DUMMY.
1399 (get_prev_frame): Ditto.
1400
1401 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1402
1403 * dummy-frame.c (pc_in_dummy_frame): New function.
1404 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1405 (find_dummy_frame): Update comment.
1406 (generic_pop_current_frame): Use get_frame_type.
1407 * dummy-frame.h (pc_in_dummy_frame): Declare.
1408 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1409 (create_new_frame): Use pc_in_dummy_frame.
1410 (get_prev_frame): Use pc_in_dummy_frame.
1411 (frame_saved_regs_register_unwind): Use get_prev_frame.
1412 (deprecated_generic_get_saved_register): Use get_prev_frame.
1413
1414 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1415
1416 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1417 from here ...
1418 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1419 (varobj_create): Note that frame ID should be used.
1420 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1421
1422 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1423
1424 * breakpoint.c: Include "gdb_assert.h".
1425 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1426 not being used.
1427 * Makefile.in (breakpoint.o): Update dependencies.
1428 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1429 deprecated_frame_in_dummy.
1430 * stack.c (print_frame_info_base): Ditto.
1431 (frame_info): Ditto.
1432 (print_frame_info_base): Ditto. Delete dead code.
1433
1434 2002-11-23 Andreas Schwab <schwab@suse.de>
1435
1436 * Makefile.in (m68k_tdep_h): Define.
1437 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1438 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1439 * m68k-tdep.c: Move register number enum ...
1440 * m68k-tdep.h: ... to this new file and rename the constants from
1441 E_* to M68K_*. All uses changed.
1442 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1443 * abug-rom.c: Include "m68k-tdep.h". Use
1444 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1445 * cpu32bug-rom.c: Likewise.
1446 * dbug-rom.c: Likewise.
1447 * m68k-tdep.c: Likewise.
1448 * m68klinux-nat.c: Likewise.
1449 * remote-est.c: Likewise.
1450 * rom68k-rom.c: Likewise.
1451 * config/m68k/tm-linux.h: Likewise.
1452
1453 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1454
1455 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1456 dummy frame initialization code.
1457 * mips-tdep.c (mips_gdbarch_init): Ditto.
1458
1459 2002-11-22 Christopher Faylor <cgf@redhat.com>
1460
1461 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1462 attach will hang.
1463
1464 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1465
1466 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1467 to default_frame_address.
1468 * gdbarch.h, gdbarch.c: Re-generate.
1469
1470 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1471 or frame_locals_address to default_frame_address.
1472 * m68k-tdep.c (m68k_gdbarch_init): Update.
1473 * i386-tdep.c (i386_gdbarch_init): Update.
1474 * frv-tdep.c (frv_gdbarch_init): Update.
1475 * sh-tdep.c (sh_gdbarch_init): Update.
1476 * v850-tdep.c (v850_gdbarch_init): Update.
1477 * sparc-tdep.c (sparc_gdbarch_init): Update.
1478 * mips-tdep.c (mips_gdbarch_init): Update.
1479 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1480 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1482
1483 * cris-tdep.c (cris_frame_args_address): Delete function.
1484 (cris_frame_locals_address): Delete function.
1485 (cris_gdbarch_init): Do not set frame_args_address or
1486 frame_locals_address.
1487
1488 2002-11-22 Michael Snyder <msnyder@redhat.com>
1489
1490 * thread-db.c (thread_db_load): Tell the user what's going on
1491 if dlopen fails on libthread_db.
1492
1493 2002-11-23 Andreas Schwab <schwab@suse.de>
1494
1495 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1496 invariant return values.
1497
1498 2002-11-22 Andreas Schwab <schwab@suse.de>
1499
1500 * valops.c (value_slice): Move declaration of `offset' to avoid
1501 warning.
1502
1503 2002-11-22 Christopher Faylor <cgf@redhat.com>
1504
1505 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1506 (struct so_stuff): Add end_addr field.
1507 (register_loaded_dll): Calculate and store end address of loaded dll.
1508 (solib_address): New function.
1509 (child_solib_loaded_library_pathname): Pass carefully constructed
1510 section info to safe_symbol_file_add rather than ignoring it.
1511 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1512 DLL is loaded.
1513 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1514 (child_create_inferior): Fix a compiler warning.
1515 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1516 (solib_address): Declare new function.
1517
1518 2002-11-22 Andreas Schwab <schwab@suse.de>
1519
1520 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1521 and FPS registers.
1522
1523 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1524
1525 * maint.c (_initialize_maint_cmds): Fix typo. From
1526 Francesco Potorti` <pot@gnu.org>.
1527
1528 2002-11-21 Andrew Cagney <cagney@redhat.com>
1529
1530 * mips-tdep.c (mips_dump_tdep): Delete references to
1531 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1532 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1533 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1534 * printcmd.c (build_address_symbolic): Delete calls to
1535 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1536 (address_info): Ditto.
1537 Fix PR gdb/773.
1538
1539 2002-11-19 Klee Dienes <kdienes@apple.com>
1540 Adam Fedor <fedor@gnu.org>
1541
1542 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1543 the ability to explicitly specify the quote characters and word
1544 break characters; if NULL is specified for either, use the old
1545 behavior of using the characters used by the completer.
1546 (skip_chars): New function. Convenience wrapper around
1547 skip_quoted_chars to provide the original skip_chars behavior.
1548 * completer.h (skip_quoted_chars): Add prototype.
1549
1550 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1551
1552 Problems reported by Paul Eggert.
1553 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1554
1555 2002-11-19 Andreas Schwab <schwab@suse.de>
1556
1557 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1558 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1559 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1560 (m68k_linux_frame_saved_pc): Move to ...
1561 * m68klinux-tdep.c: ... here. New file.
1562 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1563 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1564
1565 2002-11-19 Adam Fedor <fedor@gnu.org>
1566
1567 * objc-exp.y: Revert to old skip_quoted usage.
1568
1569 2002-11-19 Adam Fedor <fedor@gnu.org>
1570
1571 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1572 (objc_lang_h): Define.
1573 (YYFILES): Add objc-exp.tab.c.
1574 (local-maintainer-clean): Remove objc-exp.tab.c.
1575 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1576
1577 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1578
1579 * p-exp.y (typecast rule): Add automatic dereference of
1580 pascal classes if needed.
1581 (THIS): Set current_type.
1582 Automatically dereference pascal classes.
1583 (typebase rule): Add ^typebase recognition.
1584
1585 2002-11-18 Adam Fedor <fedor@gnu.org>
1586
1587 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1588 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1589 (op_name): Handle OP_OBJC_SELF.
1590 * Makefile.in (expprint.o): Add additional depends.
1591
1592 2002-11-18 Adam Fedor <fedor@gnu.org>
1593
1594 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1595 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1596 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1597 * objc-exp.y: Likewise.
1598
1599 2002-11-18 Adam Fedor <fedor@gnu.org>
1600
1601 * gdb/parser-defs.h: (struct objc_class_str): New structure
1602 for parsing ObjC classes.
1603
1604 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1605
1606 * stack.c (frame_relative_level): Copy function from here ...
1607 * frame.c (frame_relative_level): ...to here.
1608
1609 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1610
1611 * frame.h (enum frame_type): Define.
1612 (get_frame_type): Declare.
1613 (struct frame_info): Add field `type'. Delete field
1614 signal_handler_caller.
1615 (deprecated_set_frame_signal_handler_caller): Declare.
1616 * frame.c (get_frame_type): New function.
1617 (deprecated_set_frame_type): New function.
1618 (create_new_frame): Set the frame's type.
1619 (get_prev_frame): Similar.
1620 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1621 * s390-tdep.c: Ditto.
1622 * m68klinux-nat.c: Ditto.
1623 * ns32k-tdep.c: Ditto.
1624 * x86-64-linux-tdep.c: Ditto.
1625 * vax-tdep.c: Ditto.
1626 * rs6000-tdep.c: Ditto.
1627 * ppc-linux-tdep.c: Ditto.
1628 * i386-interix-tdep.c: Ditto.
1629 * mips-tdep.c: Ditto.
1630 * m68k-tdep.c: Ditto.
1631 * hppa-tdep.c: Ditto.
1632 * ia64-tdep.c: Ditto.
1633 * cris-tdep.c: Ditto.
1634 * arm-tdep.c: Ditto.
1635 * alpha-tdep.c: Ditto.
1636 * i386-tdep.c: Ditto.
1637 * stack.c: Ditto.
1638 * ada-lang.c: Ditto.
1639 * blockframe.c: Update.
1640 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1641 deprecated_set_frame_type instead of signal_handler_caller.
1642 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1643 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1644 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1645
1646 2002-11-18 Klee Dienes <kdienes@apple.com>
1647
1648 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1649
1650 2002-11-18 Klee Dienes <kdienes@apple.com>
1651
1652 * buildsym.c (pop_context): Add comment.
1653
1654 2002-11-18 Klee Dienes <kdienes@apple.com>
1655
1656 * buildsym.h (pop_context): Convert to function, defined in
1657 buildsym.c.
1658 * buildsym.c: Include gdb_assert.h.
1659 (pop_context): Implement as C function. Add check for stack
1660 underflow.
1661 * dbxread.c (process_one_symbol): Complain and stop processing
1662 that symbol if we are already at the top of the context stack for
1663 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1664 when processing N_RBRAC.
1665
1666 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1667
1668 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1669 define.
1670 (struct target_waitstatus): Add opaque definition.
1671 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1672 * exec.c (init_exec_ops): Likewise.
1673 * fork-child.c (clone_and_follow_inferior): Remove.
1674 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1675 * inferior.h (clone_and_follow_inferior): Remove prototype.
1676 * infrun.c (follow_fork_mode_both): Remove.
1677 (follow_fork_mode_kind_names): Remove commented out "both".
1678 (follow_inferior_fork): Remove follow_fork_mode_both support.
1679 * inftarg.c (child_clone_and_follow_inferior): Remove.
1680 (child_post_follow_inferior_by_clone): Remove.
1681 (init_child_ops): Don't set to_clone_and_follow_inferior
1682 or to_post_follow_inferior_by_clone.
1683 * target.c (default_clone_and_follow_inferior): Remove.
1684 (cleanup_target): Don't set to_clone_and_follow_inferior
1685 or to_post_follow_inferior_by_clone.
1686 (find_default_clone_and_follow_inferior): Remove.
1687 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1688 (debug_to_clone_and_follow_inferior): Remove.
1689 (debug_to_post_follow_inferior_by_clone): Remove.
1690 (setup_target_debug): Don't set to_clone_and_follow_inferior
1691 or to_post_follow_inferior_by_clone.
1692 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1693 and to_post_follow_inferior_by_clone.
1694 (child_clone_and_follow_inferior): Remove prototype.
1695 (child_post_follow_inferior_by_clone): Remove prototype.
1696 (target_clone_and_follow_inferior): Remove macro.
1697 (target_post_follow_inferior_by_clone): Remove macro.
1698 (find_default_clone_and_follow_inferior): Remove prototype.
1699
1700 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1701
1702 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1703 inferior_has_vforked, and inferior_has_execd instead of
1704 target_has_forked, target_has_vforked, and target_has_execd.
1705 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1706 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1707 (CHILD_WAIT): Define.
1708 (child_wait): Add prototype.
1709 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1710 Add prototype.
1711 (hpux_has_vforked): Likewise, from child_has_vforked.
1712 (hpux_has_execd): Likewise, from child_has_execd.
1713 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1714 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1715 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1716 and hpux_has_syscall_event instead of the target hooks.
1717 * infrun.c (inferior_has_forked, inferior_has_vforked)
1718 (inferior_has_execd): New functions.
1719 * inftarg.c (not_same_real_pid): Remove.
1720 (child_wait): Remove references to not_same_real_pid,
1721 target_has_forked, target_has_vforked, target_has_execd,
1722 and target_has_syscall_event.
1723 (child_has_forked, child_has_vforked, child_has_execd)
1724 (child_has_syscall_event): Remove.
1725 (init_child_ops): Remove references to child_has_forked,
1726 child_has_vforked, child_has_execd, and child_has_syscall_event.
1727 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1728 (hpux_has_vforked): Likewise, from child_has_vforked.
1729 (hpux_has_execd): Likewise, from child_has_execd.
1730 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1731 * target.c (cleanup_target): Remove references to
1732 to_has_forked, to_has_vforked, to_has_execd, and
1733 to_has_syscall_event.
1734 (update_current_target): Likewise.
1735 (setup_target_debug): Likewise.
1736 (debug_to_has_forked): Remove.
1737 (debug_to_has_vforked): Remove.
1738 (debug_to_has_execd): Remove.
1739 (debug_to_has_syscall_event): Remove.
1740 * target.h (struct target_ops): Remove to_has_forked.
1741 to_has_vforked, to_has_execd, and to_has_syscall_event.
1742 (child_has_forked, child_has_vforked, child_has_execd)
1743 (child_has_syscall_event): Remove prototypes.
1744 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1745 prototypes.
1746 (target_has_forked, target_has_vforked, target_has_execd)
1747 (target_has_syscall_event): Remove macros.
1748
1749 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1750
1751 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1752 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1753 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1754 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1755 * target.c (cleanup_target): Remove reference to
1756 to_can_follow_vfork_prior_to_exec.
1757 (update_current_target): Likewise.
1758 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1759 (setup_target_debug): Remove reference to
1760 to_can_follow_vfork_prior_to_exec.
1761 * target.h (struct target_ops): Remove
1762 to_can_follow_vfork_prior_to_exec.
1763 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1764 (target_can_follow_vfork_prior_to_exec): Remove definition.
1765 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1766 define.
1767 * infrun.c (follow_vfork_when_exec): Remove.
1768 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1769 (follow_exec): Likewise.
1770 (handle_inferior_event): Likewise.
1771 (keep_going): Likewise.
1772
1773 2002-11-15 Andrew Cagney <cagney@redhat.com>
1774
1775 * frame.c (generic_unwind_get_saved_register): Make static.
1776 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1777 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1778 defaults to generic_unwind_get_saved_register.
1779 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1781 * frv-tdep.c (frv_gdbarch_init): Ditto.
1782 * i386-tdep.c (i386_gdbarch_init): Ditto.
1783 * s390-tdep.c (s390_gdbarch_init): Ditto.
1784 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1785 * v850-tdep.c (v850_gdbarch_init): Ditto.
1786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1787 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1788 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1789
1790 2002-11-15 Andrew Cagney <cagney@redhat.com>
1791
1792 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1793 i386-tdep.c.
1794
1795 2002-11-15 Andrew Cagney <cagney@redhat.com>
1796
1797 * frame.h (sigtramp_saved_pc): Delete declaration.
1798 * blockframe.c (sigtramp_saved_pc): Delete function.
1799 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1800 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1801 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1802 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1803
1804 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1805
1806 * frame.c (frame_pc_unwind): New function.
1807 (frame_saved_regs_pc_unwind): New function.
1808 (frame_register_unwind): Pass unwind_cache instead of
1809 register_unwind_cache.
1810 (set_unwind_by_pc): Add unwind_pc parameter, set.
1811 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1812 (get_prev_frame): Ditto.
1813 * frame.h (frame_pc_unwind_ftype): Declare.
1814 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1815 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1816 (frame_pc_unwind): Declare.
1817 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1818 (struct dummy_frame): Add comment mentioning that values are for
1819 previous frame.
1820 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1821 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1822 (generic_file_frame_chain_valid): Ditto.
1823 * stack.c (frame_info): Ditto.
1824
1825 2002-11-15 David Carlton <carlton@math.stanford.edu>
1826
1827 * linespec.c (locate_first_half): New function.
1828 (decode_line_1): Move code into locate_first_half.
1829
1830 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1831
1832 * complaints.h: Add comment explaining how to eliminate a
1833 deprecated_complain call.
1834 * complaints.h: Fix spelling errors.
1835
1836 2002-11-15 David Carlton <carlton@math.stanford.edu>
1837
1838 * printcmd.c: Remove #include "disasm.h".
1839
1840 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1841
1842 * frame.h: Move the most relevant interface functions to the start
1843 of the file.
1844
1845 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1846
1847 * regcache.h (deprecated_registers): Rename registers.
1848 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1849 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1850 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1851 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1852 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1853 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1854 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1855 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1856 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1857 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1858 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1859 * v850ice.c: Update.
1860
1861 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1862
1863 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1864 NULL buffer.
1865
1866 2002-11-13 Andrew Cagney <cagney@redhat.com>
1867
1868 * regcache.h (deprecated_read_register_bytes): Rename
1869 read_register_bytes.
1870 (deprecated_write_register_bytes): Rename write_register_bytes.
1871 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1872 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1873 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1874 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1875 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1876 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1877 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1878 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1879 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1880 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1881 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1882 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1883 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1884 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1885
1886 2002-11-13 Jim Blandy <jimb@redhat.com>
1887
1888 * findvar.c (read_var_value): Doc fix.
1889
1890 2002-11-13 Andrew Cagney <cagney@redhat.com>
1891
1892 * regcache.c (struct regcache): Replace passthough_p with
1893 readonly_p.
1894 (regcache_xmalloc): Initialize readonly_p.
1895 (build_regcache): Initialize readonly_p.
1896 (regcache_save): New function.
1897 (regcache_restore): New function.
1898 (regcache_cpy): Re-implement using regcache_save and
1899 regcache_restore.
1900 (regcache_raw_read): Update.
1901 (regcache_cooked_read): When a read-only cache, checked for cached
1902 pseudo register values.
1903 (regcache_raw_write): Assert that the cache is not read-only.
1904 Remove code handling a non-passthrough cache.
1905 * regcache.h (regcache_save): Declare.
1906 (regcache_restore): Declare.
1907
1908 2002-11-13 Andrew Cagney <cagney@redhat.com>
1909
1910 * regcache.c (struct regcache_descr): Add fields
1911 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1912 (init_legacy_regcache_descr): Compute the size of a cooked
1913 register cache and then assign that to sizeof_raw_registers. Set
1914 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1915 (init_legacy_regcache_descr): Ditto.
1916
1917 2002-11-13 Andrew Cagney <cagney@redhat.com>
1918
1919 * regcache.c (register_buffer): Move to near start of file, update
1920 description.
1921 (regcache_raw_read): Use.
1922 (regcache_raw_write): Use.
1923 (struct regcache): Rename raw_registers to registers and
1924 raw_register_valid_p to register_valid_p.
1925 (regcache_xmalloc): Update.
1926 (regcache_xfree): Update.
1927 (register_buffer): Update.
1928 (regcache_cpy): Update.
1929 (regcache_cpy_no_passthrough): Update.
1930 (regcache_valid_p): Update.
1931 (deprecated_grub_regcache_for_registers): Update.
1932 (deprecated_grub_regcache_for_register_valid): Update.
1933 (set_register_cached): Update.
1934 (regcache_raw_write): Update.
1935
1936 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1937
1938 * p-exp.y (name_not_typename): Use copy_name to
1939 set current_type variable for fields of THIS.
1940
1941 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1942
1943 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1944 * monitor.c (init_base_monitor_ops): Likewise.
1945 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1946 * remote-array.c (init_array_ops): Likewise.
1947 * remote-e7000.c (init_e7000_ops): Likewise.
1948 * remote-es.c (init_es1800_ops): Likewise.
1949 (init_es1800_child_ops): Likewise.
1950 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1951 * remote-sim.c (init_gdbsim_ops): Likewise.
1952 * remote-st.c (init_st2000_ops): Likewise.
1953 * sol-thread.c (init_sol_core_ops): Likewise.
1954 (init_sol_thread_ops): Likewise.
1955 * v850ice.c (init_850ice_ops): Likewise.
1956 * win32-nat.c (init_child_ops): Likewise.
1957 * wince.c (init_child_ops): Likewise.
1958
1959 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1960
1961 * utils.c (gdb_realpath): Make rp a constant pointer.
1962
1963 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1964
1965 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1966 a constant buffer; cannonicalize_file_name(); realpath() with a
1967 pathconf() defined buffer, xstrdup().
1968
1969 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1970
1971 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1972 to hang2.C; hang3.c to hang3.C.
1973
1974 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1975
1976 * findvar.c (read_var_value): Reenable TLS code.
1977
1978 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1979 Jim Blandy <jimb@redhat.com>
1980
1981 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1982 * target.c (update_current_target): Add
1983 to_get_thread_local_address.
1984 * target.h (to_get_thread_local_address): Export.
1985 (target_get_thread_local_address): Define.
1986 (target_get_thread_local_address_p): Define.
1987 * thread-db.c: Include solib-svr4.h.
1988 (td_thr_tls_get_addr_p): Define.
1989 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1990 (thread_db_get_thread_local_address): New function.
1991 (init_thread_db_ops): Initialize to_get_thread_local_address.
1992 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1993 * configure: Regenerate.
1994 * config.in: Regenerate.
1995
1996 2002-11-11 David Carlton <carlton@math.stanford.edu>
1997
1998 * linespec.c (set_flags): New function.
1999 (decode_line_1): Move code into set_flags.
2000
2001 2002-11-11 David Carlton <carlton@math.stanford.edu>
2002
2003 * linespec.c (decode_line_1): Move chunks of code to separate
2004 functions.
2005 (initialize_defaults): New function.
2006 (decode_indirect): New function.
2007
2008 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2009
2010 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2011 instead of void_code_ptr.
2012 (sigtramp_saved_pc): Ditto.
2013
2014 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2015 i386_fp_regnum_p.
2016
2017 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2018
2019 * gdbtypes.h (struct main_type): Move artificial flag out of
2020 loc. New member of ``struct field'' named static_kind. Reduce
2021 overloaded meaning of bitsize.
2022 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2023 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2024 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2025
2026 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2027 new fields.
2028 (template_to_fixed_record_type, template_to_static_fixed_type)
2029 (to_record_with_fixed_variant_part): Likewise.
2030 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2031 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2032 * dwarfread.c (struct_type, enum_type): Likewise.
2033 * hpread.c (hpread_read_enum_type)
2034 (hpread_read_function_type, hpread_read_doc_function_type)
2035 (hpread_read_struct_type): Likewise.
2036 * mdebugread.c (parse_symbol): Likewise.
2037
2038 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2039
2040 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2041 * stack.c (print_frame_info_base): Update.
2042 (print_frame_info_base, frame_info): Update.
2043 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2044 (sparc_frame_saved_pc): Update.
2045 * ada-lang.c (find_printable_frame): Update.
2046 * breakpoint.c (deprecated_frame_in_dummy): Update.
2047
2048 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2049
2050 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2051 defined.
2052 (regmap): Extend to cover all registers.
2053 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2054 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2055 definitions.
2056 (fetch_register, sore_register): Simplify.
2057 (old_fetch_inferior_registers, old_store_inferior_registers):
2058 Remove functions.
2059 (cannot_fetch_register, cannot_store_register): Change
2060 implementation to use regmap array to decide which registers
2061 cannot be fetched/stored. This removes $orig_eax from the
2062 registers that cannot be fetched/stored.
2063 (fetch_inferior_registers): Call fetch_register directly instead
2064 of calling old_fetch_inferior_registers.
2065 (store_inferior_registers): Call store_register directly instead
2066 of calling old_store_inferior_registers.
2067 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2068 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2069 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2070
2071 2002-11-09 Klee Dienes <kdienes@apple.com>
2072
2073 * i387-tdep.c (i387_supply_register): When called with NULL as a
2074 buffer, mark the register as not provided (to mirror the behavior
2075 of supply_register).
2076 (i387_supply_fxsave): Ditto.
2077 (i387_supply_fsave): Ditto (inherits the behavior from
2078 i387_supply_register).
2079
2080 2002-11-09 Klee Dienes <kdienes@apple.com>
2081
2082 * blockframe.c (sigtramp_saved_pc): Use
2083 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2084 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2085 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2086
2087 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2088
2089 * frame.c (get_prev_frame): Test prev_p to identify a previously
2090 unwound frame. Initialize prev_p.
2091 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2092 comment.
2093
2094 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2095
2096 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2097 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2098 more comments. Zap dead code.
2099
2100 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2101
2102 * infcmd.c (print_vector_info, print_float_info): Move code that
2103 checks whether the target has any registers and whether there is a
2104 selected frame up, such that it is also used if a target provides
2105 multi-arch definitions of these functions.
2106
2107 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2108
2109 * Makefile.in (DESTDIR): Define.
2110 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2111 prefix.
2112
2113 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2114 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2115
2116 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2117
2118 * i386-linux-tdep.c: Include "reggroups.h".
2119 (i386_linux_register_reggroup_p): New function.
2120 (i386_linux_init_abi): Set register_reggroup_p to
2121 i386_linux_register_reggroup_p.
2122 * i386-tdep.h (i386_register_reggroup_p): Declare.
2123 * i386-tdep.c: Include "reggroups.h".
2124 (i386_init_reggroups): New function.
2125 (i386_add_reggroups): New function.
2126 (i386_register_reggroup_p): New function.
2127 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2128 (_initialize_i386_tdep): Call i386_init_reggroups.
2129 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2130 specific reggroups.
2131
2132 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2133
2134 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2135 request that's available in *BSD.
2136
2137 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2138
2139 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2140 FDOFF_REGNUM.
2141
2142 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2143
2144 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2145 * dummy-frame.c (find_dummy_frame): Rename
2146 generic_find_dummy_frame, make static. Return the dummy frame
2147 instead of the regcache.
2148 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2149 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2150 (dummy_frame_register_unwind): Rename
2151 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2152 * dummy-frame.h (dummy_frame_register_unwind): Rename
2153 generic_call_dummy_register_unwind.
2154
2155 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2156
2157 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2158 except the inclusion of "i386/tm-i386.h", to...
2159 * config/i386/nm-i386v42mp.h: ...here.
2160 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2161
2162 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2163
2164 * Makefile.in (frame.o): Update dependencies.
2165 * blockframe.c (current_frame, frame_obstack_alloc)
2166 (frame_saved_regs_zalloc, get_current_frame)
2167 (set_current_frame, create_new_frame)
2168 (set_unwind_by_pc, get_next_frame)
2169 (flush_cached_frames, reinit_frame_cache)
2170 (frame_saved_regs_register_unwind)
2171 (deprecated_generic_get_saved_register)
2172 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2173 (_initialize_blockframe): Move frame code from here...
2174 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2175 "annotate.h" and "dummy-frame.h".
2176 (_initialize_frame): New function.
2177
2178 2002-11-08 Jim Blandy <jimb@redhat.com>
2179
2180 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2181 when we finish a function a context.
2182 * buildsym.h (outermost_context_p): New macro.
2183 (Bug analyzed by David Edelsohn.)
2184
2185 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2186
2187 * blockframe.c: Include "dummy-frame.h".
2188 (struct dummy_frame, dummy_frame_stack)
2189 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2190 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2191 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2192 (generic_save_call_dummy_addr, generic_pop_current_frame)
2193 (generic_pop_dummy_frame, generic_fix_call_dummy)
2194 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2195 dummy frame code from here...
2196 * dummy-frame.c: ...to here. New file.
2197 * dummy-frame.h: New file.
2198 (generic_call_dummy_register_unwind): Declare.
2199 (generic_find_dummy_frame): Declare.
2200 * Makefile.in (SFILES): Add dummy-frame.c.
2201 (dummy-frame.o): Specify dependencies.
2202 (dummy_frame_h): Define.
2203 (COMMON_OBS): Add dummy-frame.o.
2204 (blockframe.o): Update dependencies.
2205
2206 2002-11-08 Jim Blandy <jimb@redhat.com>
2207
2208 * dwarf2read.c (read_func_scope): Restore local_symbols and
2209 param_symbols after we finish the function context. (Based on a
2210 patch from David Edelsohn.)
2211
2212 2002-11-08 David Carlton <carlton@math.stanford.edu>
2213
2214 * linespec.c (symbol_found): New function.
2215 (minsym_found): New function.
2216 (decode_line_1): Separate out some code into separate functions.
2217
2218 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2219
2220 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2221 the benefit of the interix target.
2222 * i386-tdep.h (i386_frameless_signal_p): Declare.
2223
2224 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2225
2226 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2227 declaration that snuck in from change below.
2228
2229 2002-11-06 Andrew Cagney <cagney@redhat.com>
2230
2231 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2232 all callers.
2233 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2234 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2235 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2236 (i386_mxcsr_regnum_p): new function. Use instead of
2237 MXCSR_REGNUM_P.
2238 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2239 (i386_sse_regnum_p): Declare.
2240 (i386_mxcsr_regnum_p): Declare.
2241 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2242 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2243 (IS_FP_REGNUM): Update definition.
2244 (IS_FPU_CTRL_REGNUM): Update definition..
2245 (IS_SSE_REGNUM): Update definition..
2246 * i386v-nat.c (register_u_addr): Update.
2247 * go32-nat.c (fetch_register): Update.
2248 (store_register): Update.
2249
2250 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2251
2252 Preparation work to convert the hppa targets to multiarch partial.
2253
2254 * hppa-tdep.c: Add new functions replacing macro bodies from
2255 config/pa/tm-hppa.h. These function will be used to initialize
2256 the gdbarch structure. Import some comments from tm-hppa.h,
2257 and place them where appropriate, to avoid loosing them when
2258 we cleanup this file.
2259 (hppa_reg_struct_has_addr): New function.
2260 (hppa_inner_than): New function.
2261 (hppa_stack_align): New function.
2262 (hppa_pc_requires_run_before_use): New function.
2263 (hppa_instruction_nullified): New function.
2264 (hppa_register_byte): New function.
2265 (hppa_register_virtual_type): New function.
2266 (hppa_store_struct_return): New function.
2267 (hppa_cannot_store_register): New function.
2268 (hppa_frame_args_address): New function.
2269 (hppa_frame_locals_address): New function.
2270 (hppa_smash_text_address): New function.
2271 (hppa_coerce_float_to_double): New function. Requires the inclusion
2272 of "language.h".
2273
2274 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2275
2276 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2277 gdbarch-eligible macro to a call to the new associated function
2278 created in hppa-tdep.c.
2279 (INNER_THAN): Likewise.
2280 (STACK_ALIGN): Likewise.
2281 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2282 (INSTRUCTION_NULLIFIED): Likewise.
2283 (REGISTER_BYTE): Likewise.
2284 (REGISTER_VIRTUAL_TYPE): Likewise.
2285 (STORE_STRUCT_RETURN): Likewise.
2286 (CANNOT_STORE_REGISTER): Likewise.
2287 (FRAME_ARGS_ADDRESS): Likewise.
2288 (FRAME_LOCALS_ADDRESS): Likewise.
2289 (SMASH_TEXT_ADDRESS): Likewise.
2290 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2291 (ABOUT_TO_RETURN): Delete, as no longer used.
2292
2293 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2294
2295 * printcmd.c (disassemble_command): Remove obsolete function.
2296 (_initialize_printcmd): Do not create disassemble command here.
2297 * cli/cli-cmds.c (disassemble_command): New function. Implements
2298 disassemble command.
2299 (init_cli_cmds): Create disassemble command here instead.
2300
2301 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2302
2303 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2304
2305 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2306
2307 * regcache.h (regcache_cooked_read_using_offset_hack)
2308 (regcache_cooked_write_using_offset_hack): Delete declarations.
2309 (register_changed): Delete declaration.
2310 * regcache.c (regcache_cooked_read_using_offset_hack)
2311 (regcache_cooked_write_using_offset_hack): Delete functions.
2312 (cooked_xfer_using_offset_hack): Delete function.
2313 (register_changed): Delete function.
2314
2315 2002-11-07 Jim Blandy <jimb@redhat.com>
2316
2317 * macroscope.c: #include "complaints.h".
2318 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2319 but not in the macro table.
2320 * Makefile.in (macroscope.o): Record dependency.
2321
2322 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2323
2324 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2325
2326 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2327
2328 * regcache.c (deprecated_registers_fetched): Update.
2329 * regcache.h (deprecated_registers_fetched): Rename
2330 registers_fetched.
2331 * remote-vxsparc.c (vx_read_register): Update.
2332 * remote-vxmips.c (vx_read_register): Update.
2333 * remote-vx68.c (vx_read_register): Update.
2334 * irix5-nat.c (fetch_core_registers): Update.
2335 * mipsm3-nat.c (fetch_inferior_registers): Update.
2336 * sun3-nat.c (fetch_inferior_registers): Update.
2337 * symm-nat.c (fetch_inferior_registers): Update.
2338 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2339 (fetch_core_registers): Update.
2340 (fetch_kcore_registers): Update.
2341 * mips-nat.c (fetch_inferior_registers): Update.
2342 * corelow.c (get_core_registers): Update.
2343 * a68v-nat.c (fetch_inferior_registers): Update.
2344
2345 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2346
2347 Put in place the framework necessary for multiarching the hppa targets.
2348 * hppa-tdep.c (hppa_gdbarch_init): New function.
2349 (hppa_dump_tdep): New function.
2350 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2351 tdep structure dumper.
2352 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2353 until the multi-arching conversion has partially been completed.
2354
2355 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2356
2357 * valops.c (value_assign): Merge lval_register case into
2358 lval_reg_frame_relative. Use frame_register and
2359 regcache_cooked_write instead of get_saved_register and
2360 write_register_bytes. After flushing the register cache, try to
2361 re-select the selected frame.
2362
2363 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2364
2365 * regcache.h (deprecated_register_valid): Rename register_valid.
2366 * regcache.c: Update.
2367 * ia64-aix-nat.c: Update.
2368 * i386gnu-nat.c: Update.
2369 * alpha-nat.c: Update.
2370 * sparc-nat.c: Update.
2371 * lynx-nat.c: Update.
2372 * remote-mips.c: Update.
2373
2374 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2375
2376 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2377 to end of file, to be more consistent with the pratice followed
2378 by other targets.
2379
2380 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2381
2382 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2383 (print_float_info): Print registers in float_reggroup.
2384 (print_vector_info): Print registers in vector_reggroup.
2385 (default_print_registers_info): When all, print registers in
2386 all_reggroup. Otherwize, print registers in general_reggroup.
2387 (registers_info): Rewrite. Add support for register groups.
2388 Eliminate a goto.
2389
2390 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2391
2392 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2393 ages.
2394 (symtab_symbol_info): Remove eons old ifdeffed out code.
2395 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2396 command.
2397
2398 2002-11-06 Theodore A. Roth <troth@openavr.org>
2399
2400 * c-exp.y: Add missing semi-colons.
2401 * f-exp.y: Add missing semi-colons.
2402 * m2-exp.y: Add missing semi-colons.
2403 * p-exp.y: Add missing semi-colons.
2404 Add empty action to start rule to avoid a type clash error when
2405 building with bison >= 1.50.
2406
2407 2002-11-06 Jim Blandy <jimb@redhat.com>
2408
2409 * macrotab.h (struct macro_source_file): Doc fix.
2410
2411 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2412
2413 * varobj.c (child_exists, cplus_number_of_children): Change
2414 STREQ macro references to strcmp.
2415 (cplus_name_of_child): Change code to handle the fact that
2416 fields are not necessarily contiguous with regards to their
2417 access control. This is a fix for PR gdb/792.
2418
2419 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2420
2421 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2422 * gdbarch.h, gdbarch.c: Regnerate.
2423 * frame.h (frame_register): Declare.
2424 * frame.c (frame_register): New function.
2425 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2426 GET_SAVED_REGISTER, otherwize call
2427 generic_unwind_get_saved_register.
2428 (frame_register_read): Use frame_register instead of
2429 get_saved_register.
2430
2431 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2432
2433 From Jim Ingham <jingham@apple.com>:
2434 * event-top.c (gdb_disable_readline): New function.
2435 (_initialize_event_loop): Move comment.
2436
2437 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2438
2439 * event-loop.c (start_event_loop): Add comment.
2440 Update copyright.
2441
2442 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2443
2444 * infcmd.c (default_print_registers_info): Do not call
2445 PRINT_REGISTER_HOOK.
2446
2447 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2448
2449 * sparc-tdep.c (sparc_print_register_hook): Make static.
2450 (sparc_print_registers_info): New function.
2451 (sparc_do_registers_info): New function.
2452 (sparclet_print_registers_info): New function.
2453 (sparclet_do_registers_info): New function.
2454 (do_sparc_print_registers_info): New function.
2455 (sparc_print_registers): New static function, clone of infcmd.c's
2456 default_print_registers_info.
2457 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2458 (sparclet_do_registers_info): Declare.
2459 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2460 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2461 Re-define.
2462 (sparc_do_registers_info): Declare.
2463 (PRINT_REGISTER_HOOK): Delete macro.
2464 (sparc_print_register_hook): Delete declaration.
2465
2466 2002-11-05 David Carlton <carlton@math.stanford.edu>
2467
2468 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2469 functions.
2470 (lookup_symbol_aux_local): New function.
2471 (lookup_symbol_aux_symtabs): New function.
2472 (lookup_symbol_aux_psymtabs): New function.
2473
2474 2002-11-05 David Carlton <carlton@math.stanford.edu>
2475
2476 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2477 previous values of 'objfile' and 'block'.
2478
2479 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2480
2481 * values.c (value_change_enclosing_type): Set
2482 enclosing_type field correctly also for the case where
2483 more memory needs to be allocated.
2484
2485 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2486
2487 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2488 of puts_filtered.
2489
2490 * i387-tdep.c (i387_print_float_info): Replace calls to
2491 register_read and deprecated_read_register_gen with calls to
2492 frame_register_read, and make the necessary adjustments to the
2493 surrounding code.
2494
2495 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2496
2497 * gdbarch.sh (register_reggroup_p): Allow default value.
2498 * gdbarch.h, gdbarch.c: Regenerate.
2499
2500 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2501
2502 * regcache.h: Add coment indicating replacements for deprecated
2503 functions.
2504
2505 2002-11-02 Andrew Cagney <cagney@redhat.com>
2506
2507 * reggroups.h, reggroups.c: New files.
2508 * regcache.c: Include "reggroups.h".
2509 (enum regcache_dump_what): Add `regcache_dump_groups'.
2510 (regcache_dump): Contract size of the "Type" column. When
2511 specified, dump the register's groups.
2512 (maintenance_print_register_groups): New function.
2513 (_initialize_regcache): Add command `maint print register-groups'.
2514 * Makefile.in (COMMON_OBS): Add reggroups.o
2515 (SFILES): Add reggroups.c.
2516 (reggroups_h): Define.
2517 (regcache.o, gdbarch.o): Update dependencies.
2518 (reggroups.o): Specify dependencies.
2519 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2520 Add opaque declaration for `struct reggroup' in generated .h file.
2521 Include "reggroups.h" in generated .c file.
2522 gdbarch.h, gdbarch.c: Re-generate.
2523
2524 2002-11-02 Andrew Cagney <cagney@redhat.com>
2525
2526 * regcache.h (deprecated_read_register_gen): Rename
2527 read_register_gen.
2528 (deprecated_write_register_gen): Rename write_register_gen.
2529 * i387-tdep.c: Update.
2530 * x86-64-linux-nat.c: Update
2531 * wince.c: Update.
2532 * thread-db.c: Update.
2533 * win32-nat.c: Update.
2534 * mips-tdep.c: Update.
2535 * d10v-tdep.c: Update.
2536 * cris-tdep.c: Update.
2537 * remote-sim.c: Update.
2538 * remote-rdi.c: Update.
2539 * remote-rdp.c: Update.
2540 * frame.c: Update.
2541 * target.c: Update.
2542 * blockframe.c: Update.
2543 * x86-64-tdep.c: Update.
2544 * xstormy16-tdep.c: Update.
2545 * sh-tdep.c: Update.
2546 * s390-tdep.c: Update.
2547 * rs6000-tdep.c: Update.
2548 * sparc-tdep.c: Update.
2549 * i386-tdep.c: Update.
2550 * dwarf2cfi.c: Update.
2551 * regcache.c: Update.
2552
2553 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2554
2555 New interix-specific files:
2556 * config/i386/nm-interix.h: New file.
2557 * config/i386/interix.mh: New file.
2558 * config/i386/interix.mt: New file.
2559 * i386-interix-nat.c: New file.
2560 * i386-interix-tdep.c: New file.
2561
2562 2002-11-01 Andrew Cagney <cagney@redhat.com>
2563
2564 * frame.h (deprecated_generic_get_saved_register): Rename
2565 generic_get_saved_register.
2566 * blockframe.c (deprecated_generic_get_saved_register): Update.
2567 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2568 (xstormy16_frame_saved_register): Update.
2569 * sh-tdep.c (sh_gdbarch_init): Update.
2570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2571 * ia64-tdep.c (ia64_get_saved_register): Update.
2572 * cris-tdep.c (cris_gdbarch_init): Update.
2573 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2574 * arm-tdep.c (arm_gdbarch_init): Update.
2575
2576 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2579
2580 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2581
2582 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2583 trampolines in sigaction.
2584
2585 2002-10-31 Andrew Cagney <cagney@redhat.com>
2586
2587 * h8300-tdep.c: Include "gdb_assert.h".
2588 (h8300_print_register): Add gdbarch, file and frame parameters.
2589 Use frame_read_unsigned_register to read the register's value.
2590 Use fprintf_filtered to display output.
2591 (h8300_print_registers_info): Replace h8300_do_registers_info.
2592 (h8300_gdbarch_init): Set print_registers_info.
2593
2594 2002-10-31 Andrew Cagney <cagney@redhat.com>
2595
2596 * frame.c (frame_read_unsigned_register): New function.
2597 (frame_read_signed_register): New function.
2598 * frame.h (frame_read_unsigned_register): Declare.
2599 (frame_read_signed_register): Declare.
2600
2601 2002-10-31 Andrew Cagney <cagney@redhat.com>
2602
2603 * h8500-tdep.c (h8500_print_registers_info): New static function,
2604 clone of infcmd.c's default_print_registers_info.
2605 (h8500_do_registers_info): New funtion.
2606 (h8500_print_register_hook): Rename print_register_hook, make
2607 static.
2608
2609 * config/h8500/tm-h8500.h: Update copyright.
2610 (DEPRECATED_DO_REGISTERS_INFO): Define.
2611 (h8500_do_registers_info: Declare.
2612 (PRINT_REGISTER_HOOK): Delete macro.
2613 (print_register_hook): Delete function.
2614
2615 2002-10-31 Andrew Cagney <cagney@redhat.com>
2616
2617 * z8k-tdep.c (z8k_print_register_hook): Make static.
2618 (z8k_print_registers_info): New static function, clone of
2619 infcmd.c's default_print_registers_info.
2620 (z8k_do_registers_info): New function. Wrap
2621 z8k_print_registers_info.
2622 * config/z8k/tm-z8k.h: Update copyright.
2623 (PRINT_REGISTER_HOOK): Delete macro.
2624 (z8k_print_register_hook): Delete declaration.
2625 (DEPRECATED_DO_REGISTERS_INFO): Define.
2626 (z8k_do_registers_info): Declare.
2627
2628 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2629
2630 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2631 as this is already provided by value.h, and was actually causing
2632 a compilation error because of a conflict in parameter type
2633 declaration due to a missing const keyword.
2634 (low_text_segment_addres): Fix a compilation warning.
2635
2636 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2637
2638 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2639 registers without a name.
2640 (mips_linux_cannot_store_register): Don't store registers without
2641 a name.
2642
2643 2002-10-28 David Carlton <carlton@math.stanford.edu>
2644
2645 * symtab.c (find_addr_symbol): Delete. (It was already commented
2646 out.)
2647 * symtab.h: Delete prototype for find_addr_symbol.
2648
2649 2002-10-26 Andrew Cagney <cagney@redhat.com>
2650
2651 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2652 DO_REGISTERS_INFO.
2653 gdbarch.h, gdbarch.c: Re-generate.
2654 * infcmd.c (default_print_registers_info): Update reference.
2655 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2656 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2657 * sh-tdep.c (sh_gdbarch_init): Ditto.
2658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2659 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2660
2661 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2662
2663 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2664 cfi_init_extra_frame_info.
2665 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2666 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2667
2668 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2669 target where necessary. Add more comments and remove the ones
2670 that don't provide any useful information.
2671
2672 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2673 deprecated_read_register_dummy with
2674 frame_unwind_unsigned_register.
2675
2676 * i386-tdep.c (i386_extract_struct_value_address): Use
2677 regcache_raw_read_unsigned instead of
2678 regcache_cooked_read_unsigned since we know that the register
2679 we're reading isn't a pseudo register. Rename variable 'val' into
2680 the more descriptive 'addr'.
2681
2682 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2683 (x86_64_push_return_address): Add comment.
2684 (x86_64_pop_frame): Make static.
2685 (examine_argument): Clarify comment.
2686 (x86_64_skip_prologue): Make prolog_expact variable static.
2687
2688 * dwarf2cfi.c: Fix some formatting problems.
2689 (context_cpy, read_encoded_pointer): Clarify comments.
2690
2691 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2692 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2693 i386 target back into x86_64_gdbarch_init. Add some comments and
2694 remove meaningless ones.
2695
2696 2002-10-25 Andrew Cagney <cagney@redhat.com>
2697
2698 * complaints.h (struct deprecated_complaint): Rename `struct
2699 complaint'.
2700 * complaints.c (complain): Update.
2701 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2702 incorrect comment indicating that "symfile.h" was being included
2703 for the `struct complaint' definition.
2704 * remote-vx.c: Update.
2705 * objc-lang.c: Update.
2706 * xcoffread.c: Update.
2707 * hpread.c: Update.
2708 * mdebugread.c: Update.
2709 * stabsread.c: Update.
2710 * dwarf2read.c: Update.
2711 * dwarfread.c: Update.
2712 * elfread.c: Update.
2713 * coffread.c: Update.
2714 * stabsread.h: Update.
2715 * dbxread.c: Update.
2716 * buildsym.c: Update.
2717 * gdbtypes.c: Update.
2718 * macrotab.c: Update.
2719
2720 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2721
2722 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2723 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2724 (x86_64_init_abi): ...new function.
2725
2726 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2727 * i386v-nat.c: Include "i386-tdep.h".
2728
2729 2002-10-25 Andrew Cagney <cagney@redhat.com>
2730
2731 * gdbtypes.c (address_space_name_to_int): Update.
2732 (address_space_int_to_name): Update.
2733 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2734 multi-arch predicate.
2735 (address_class_name_to_type_flags): Ditto.
2736 * gdbarch.h, gdbarch.c: Re-generate.
2737
2738 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2739
2740 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2741
2742 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2743
2744 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2745
2746 * symtab.h (INIT_SAL): Delete macro.
2747 (init_sal): Export.
2748 * symtab.c (init_sal): New function.
2749
2750 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2751 to init_sal function call.
2752 (find_sal_from_funcs_and_line): Ditto.
2753 (all_sals_for_line): Ditto.
2754 * breakpoint.c (create_internal_breakpoint): Ditto.
2755 (create_fork_vfork_event_catchpoint): Ditto.
2756 (create_exec_event_catchpoint): Ditto.
2757 (parse_breakpoint_sals): Ditto.
2758 (watch_command_1): Ditto.
2759 (handle_gnu_4_16_catch_command): Ditto.
2760 (clear_command): Ditto.
2761 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2762 * infcmd.c (run_stack_dummy): Ditto.
2763 * infrun.c (process_event_stop_test): Ditto.
2764 (check_sigtramp2): Ditto.
2765 (step_over_function): Ditto.
2766 * linespec.c (decode_line_2): Ditto.
2767 (decode_line_1): Ditto.
2768 * source.c (line_info): Ditto.
2769 * symtab.c (find_pc_sect_line): Ditto.
2770
2771 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2772
2773 * dwarf2cfi.c (struct context)
2774 (struct context_reg): Moved to dwarf2cfi.h
2775 (context_alloc, frame_state_alloc, context_cpy):
2776 Made extern instead of static, removed prototypes.
2777 * dwarf2cfi.h (struct context)
2778 (struct context_reg): New, moved from dwarf2cfi.c
2779 (context_alloc, frame_state_alloc, context_cpy):
2780 New prototypes.
2781 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2782 Changed from static to extern.
2783 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2784 (LINUX_SIGCONTEXT_FP_OFFSET)
2785 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2786 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2787 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2788 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2789 set_gdbarch_*() calls now use x86-64 specific functions
2790 instead of DWARF2 CFI ones.
2791 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2792 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2793 (x86_64_init_extra_frame_info): New prototypes.
2794
2795 2002-10-23 David Carlton <carlton@math.stanford.edu>
2796
2797 * linespec.c: #include "parser-defs.h".
2798 Delete prototype for find_template_name_end.
2799 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2800
2801 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2802
2803 * NEWS: add recent mi fixes.
2804 * varobj.c (struct varobj): Add new "updated" flag.
2805 (new_variable): Default "updated" flag to 0.
2806 (varobj_set_value): Set "updated" flag to 1 if value
2807 changes.
2808 (varobj_update): Check varobj "updated" flag before
2809 comparing old and refreshed values. Fix for
2810 PR gdb/702.
2811
2812 2002-10-23 David Carlton <carlton@math.stanford.edu>
2813
2814 * parse.c (parse_exp_1): Use BLOCK_START.
2815 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2816 SYMBOL_BLOCK_VALUE.
2817 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2818
2819 2002-10-23 David Carlton <carlton@math.stanford.edu>
2820
2821 * symtab.c: Delete cplusplus_hint.
2822 Delete prototype for find_template_name_end.
2823
2824 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2825
2826 * symtab.h: Update comment.
2827
2828 2002-10-23 Michael Snyder <msnyder@redhat.com>
2829
2830 * printcmd.c (address_info): Restore quotes in output.
2831 * valops.c (value_of_local): Restore quotes in error message.
2832
2833 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2834
2835 * symtab.c (symbol_demangled_name): New function.
2836 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2837 turning most of it into a function.
2838 (symbol_demangled_name): Export.
2839
2840 2002-10-23 Michael Snyder <msnyder@redhat.com>
2841
2842 * valops.c (value_of_local): Restore quotes in error message.
2843
2844 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2845
2846 * symtab.c (symbol_init_language_specific): New function.
2847 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2848 turning most of it into a function.
2849 (symbol_init_language_specific): Export.
2850
2851 2002-10-23 David Carlton <carlton@math.stanford.edu>
2852
2853 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2854 (dwarf_attr_name): Ditto.
2855 (dwarf_type_encoding_name): Ditto.
2856 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2857 (process_die): Handle DW_TAG_namespace,
2858 DW_TAG_imported_declaration, DW_TAG_imported_module.
2859 (read_namespace): New function.
2860
2861 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2862
2863 * configure.in: Define NEW_PROC_API on Interix too.
2864 * configure: Regenerate.
2865
2866 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2867
2868 * configure: Regenerate using the proper version of autoconf.
2869
2870 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2871
2872 * findvar.c (read_var_value): Temporarily disable TLS code, until
2873 complete TLS support is added.
2874
2875 2002-10-21 Jim Blandy <jimb@redhat.com>
2876 Elena Zannoni <ezannoni@redhat.com>
2877
2878 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2879 for thread local storage locations.
2880 (struct symbol): Add objfile field.
2881 (SYMBOL_OBJFILE): Define.
2882 * dwarf2read.c (is_thread_local): New static variable.
2883 (new_symbol): If variable is in thread local fill in address class
2884 and objfile appropriately.
2885 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2886 stack operation.
2887 * printcmd.c (address_info): Print the information for thread
2888 local storage variable.
2889 * findvar.c (read_var_value): In case of thread local variable,
2890 defer to the target vector code to compute address.
2891
2892 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2893
2894 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2895 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2896
2897 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2898
2899 * symtab.h (address_class): Rename
2900 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2901 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2902 * printcmd.c (address_info): Ditto.
2903 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2904
2905 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2906
2907 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2908 DBREG_DRX macro to acces debug registers.
2909
2910 * Makefile.in (i386obsd-tdep.o): New target.
2911
2912 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2913 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2914
2915 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2916 * config/i386/obsd.mt: New file.
2917 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2918 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2919 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2920 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2921 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2922 * i386obsd-tdep.c: New file.
2923
2924 2002-10-19 Adam Fedor <fedor@gnu.org>
2925
2926 * objc-exp.y (name_not_typename): Fix invalid comment.
2927
2928 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2929
2930 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2931 to allocate partial syms and macro byte caches.
2932
2933 2002-10-18 David Carlton <carlton@math.stanford.edu>
2934
2935 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2936
2937 2002-10-18 Adam Fedor <fedor@gnu.org>
2938
2939 * stabsread.c (find_name_end): New function.
2940 (define_symbol): Use it.
2941
2942 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2943
2944 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2945 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2946 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2947 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2948
2949 2002-10-17 David Carlton <carlton@math.stanford.edu>
2950
2951 * symfile.h: Add opaque declaration for struct obstack.
2952 Declare obsavestring to take a const char *.
2953 * symfile.c (obsavestring): Make first argument a const char *.
2954
2955 2002-10-16 Adam Fedor <fedor@gnu.org>
2956
2957 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2958 names when matching breakpoints in current file.
2959
2960 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2961
2962 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2963 (read_tag_pointer_type): Add address class support.
2964 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2965 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2966 New methods.
2967 * gdbarch.h, gdbarch.c: Regenerate.
2968 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2969 (make_type_with_address_space, recursive_type_dump): Add address
2970 class support.
2971 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2972 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2973 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2974
2975 2002-10-16 Klee Dienes <kdienes@apple.com>
2976
2977 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2978 to get the last character of a char[] buffer, not
2979 name[sizeof(vptr_name)-1].
2980
2981 2002-10-14 Adam Fedor <fedor@gnu.org>
2982
2983 * symtab.h: New objc_specific struct.
2984 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2985 (SYMBOL_DEMANGLED_NAME): Likewise.
2986
2987 2002-10-14 Adam Fedor <fedor@gnu.org>
2988
2989 * symfile.c (init_filename_language_table): Add ObjC file extension.
2990
2991 2002-10-14 Adam Fedor <fedor@gnu.org>
2992
2993 * utils.c (puts_filtered_tabular): New function.
2994 (fprintf_symbol_filtered): Get ObjC demangled name.
2995 * defs.h (puts_filtered_tabular): Declared.
2996
2997 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2998
2999 * c-lang.h (c_type_print_varspec_prefix): Delete.
3000 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3001 ``need_post_space'' parameter. Adjust all callers.
3002
3003 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3004
3005 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3006 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3007 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3008 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3009
3010 2002-10-13 Adam Fedor <fedor@gnu.org>
3011
3012 * source.c (print_source_lines): Update comments.
3013
3014 2002-10-13 Adam Fedor <fedor@gnu.org>
3015
3016 * valops.c (value_of_local): New function.
3017 (value_of_this): Use it.
3018 * value.h (value_of_local): Declared.
3019
3020 2002-10-13 Adam Fedor <fedor@gnu.org>
3021
3022 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3023 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3024
3025 2002-10-12 Adam Fedor <fedor@gnu.org>
3026
3027 * language.c (binop_result_type): Add language_objc to case.
3028 (integral_type): Likewise.
3029 (character_type): Likewise.
3030 (string_type): Likewise.
3031 (boolean_type): Likewise.
3032 (structured_type): Likewise.
3033 (binop_type_check): Likewise.
3034
3035 2002-10-11 Adam Fedor <fedor@gnu.org>
3036
3037 * printcmd.c (address_info): Print 'self' for ObjC.
3038
3039 2002-10-11 Adam Fedor <fedor@gnu.org>
3040
3041 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3042 OP_SELF.
3043
3044 2002-10-11 Adam Fedor <fedor@gnu.org>
3045
3046 * language.h (CAST_IS_CONVERSION): Add language_objc.
3047
3048 2002-10-11 Adam Fedor <fedor@gnu.org>
3049
3050 * defs.h (enum language): Add language_objc.
3051
3052 2002-10-11 Klee Dienes <kdienes@apple.com>
3053
3054 * corefile.c (read_memory_typed_address): New function.
3055 * gdbcore.h (read_memory_typed_address): Add prototype.
3056 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3057 to read a value destined for a CORE_ADDR, not read_memory_integer.
3058 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3059 (f77_get_dynamic_lowerbound): Ditto.
3060
3061 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3062
3063 * utils.c (string_to_core_addr): After turning string into
3064 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3065 which will do necessary sign-extension, etc.
3066
3067 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3068
3069 * c-exp.y (THIS): Delete token and grammar rule.
3070 (yylex): Don't return THIS.
3071 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3072 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3073 * demangle.c (cplus_markers): Update comment. Put '$'
3074 first. Remove CPLUS_MARKER.
3075 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3076 * jv-exp.y (THIS): Delete token and grammar rule.
3077 (yylex): Don't return THIS.
3078 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3079 * objc-exp.y (THIS): Delete token and grammar rule.
3080 (yylex): Don't return THIS.
3081 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3082 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3083 (read_member_functions): Likewise for opname.
3084 (read_tilde_fields): Use is_cplus_marker.
3085
3086 * defs.h (CPLUS_MARKER): Don't define.
3087 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3088 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3089 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3090 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3091 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3092
3093 * config/i386/tm-i386v4.h: Delete file.
3094 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3095 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3096 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3097 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3098 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3099 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3100 * config/i386/i386v4.mt (TM_FILE): Likewise.
3101 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3102
3103 2002-10-10 Marko Mlinar <markom@opencores.org>
3104
3105 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3106 accidentially not commited 2002-10-09
3107 * gdbarch.h, gdbarch.c: Re-generate.
3108
3109 2002-10-09 Marko Mlinar <markom@opencores.org>
3110
3111 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3112 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3113 * gdbarch.h, gdbarch.c: Re-generate.
3114
3115 2002-10-08 Petr Sorfa <petrs@caldera.com>
3116
3117 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3118
3119 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3120 so we can work on more than one compilation unit at a time. This
3121 helps prepare GDB to handle inter-CU die references.
3122 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3123 the code to be defined before struct comp_unit_head.
3124 (comp_unit_head): Added new members - offset, cu_head,
3125 begin_die, next and dwarf2_abbrevs.
3126 (dwarf2_abbrevs): Removed single static var; now member of
3127 struct comp_unit_head.
3128 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3129 members.
3130 (psymtab_to_symtab_1): Changed to work with the new
3131 struct comp_unit_head.
3132 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3133 constructs the dwarf2_abbrevs[] inside the cu_header.
3134 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3135 dwarf2_abbrev table to clean up.
3136 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3137 handling of dwarf2_abbrevs inside the cu_header.
3138 (read_partial_die): Now supports the call to the new
3139 dwarf2_lookup_abbrev.
3140 (read_full_die): Now supports the call to the new
3141 dwarf2_lookup_abbrev.
3142
3143 2002-10-06 Christopher Faylor <cgf@redhat.com>
3144
3145 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3146 insure that shell variables, such as "transformed_name" are propagated
3147 to later shell statements in rule.
3148
3149 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3150
3151 * config/i386/nm-i386sco.h: Add protection against
3152 multiple-inclusion. Include "i386/nm-i386v.h".
3153 (REGISTER_U_ADDR): Remove define.
3154 (i386_register_u_addr): Remove prototype.
3155
3156 2002-10-04 Michael Snyder <msnyder@redhat.com>
3157
3158 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3159 before treating it as a single-step event.
3160
3161 2002-10-03 Adam Fedor <fedor@gnu.org>
3162
3163 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3164 (objc_demangle): Remove assignment in if statements, Replace
3165 free with xfree.
3166 (add_msglist): Likewise.
3167 (end_msglist): Likewise.
3168 (complare_selectors): Likewise.
3169 (selectors_info): Likewise.
3170 (compare_classes): Likewise.
3171 (classes_info): Likewise.
3172 (print_object_command): Likewise.
3173 (find_objc_msgcall_submethod): Replace PTR with void *.
3174 * objc-lang.h: Remove check for __STDC__.
3175
3176 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3177
3178 * ui-out.h (ui_out_field_fmt_int): New prototype.
3179 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3180 of field width and alignment.
3181 * stack.c (print_frame_info_base): When printing frame level, use
3182 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3183 PR gdb/192
3184
3185 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3186
3187 * MAINTAINERS: Add self to Write After Approval list.
3188
3189 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3190
3191 * infcmd.c (interrupt_target_command_wrapper): Delete.
3192 (interrupt_target_command): Make non static.
3193 (nofp_registers_info): Make static.
3194 * stack.c (return_command_wrapper): Delete.
3195 (return_command): Make non static.
3196
3197 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3198
3199 * event-top.c (gdb_setup_readline): New function. Code moved from
3200 _initialize_event_loop().
3201 (_initialize_event_loop): Call gdb_setup_readline().
3202
3203 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3204
3205 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3206 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3207 * gdbarch.h, gdbarch.c: Re-generate.
3208
3209 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3210
3211 Fix PR gdb/778
3212 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3213 before recursing.
3214 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3215 of fill_in_vptr_fieldno.
3216
3217 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3218
3219 * inferior.h (registers_info, stepi_command, nexti_command,
3220 continue_command, interrupt_target_command): Export from infcmd.c.
3221 * frame.h (args_info, selected_frame_level_changed_hook,
3222 return_command): Export from stack.c.
3223 * v850ice.c (stepi_command, nexti_command, continue_command): use
3224 prototypes from inferior.h.
3225 * tracepoint.c (registers_info, args_info, locals_info): Use
3226 prototypes from frame.h and inferior.h.
3227 * Makefile.in (mi-main.o): Add dependency on frame.h.
3228
3229 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3230
3231 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3232 value in register 3 adjusted by ppc_gp0_regnum.
3233
3234 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3235
3236 2002-10-02 Marko Mlinar <markom@opencores.org>
3237
3238 * MAINTAINERS: Add myself to the Write After Approval list.
3239
3240 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3241
3242 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3243 of the section for the N64 ABI, fixed.
3244
3245 * config/mips/tm-irix6.h: Include solib.h.
3246
3247 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3248
3249 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3250 GNU operators.
3251
3252 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3253
3254 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3255 and that "mi0" syntax has been removed.
3256
3257 2002-09-30 David Carlton <carlton@math.stanford.edu>
3258
3259 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3260 * ppc-sysv-tdep.c: #include "gdb_string.h".
3261 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3262 pacify GCC.
3263
3264 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3265
3266 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3267 "vrsave"'s register number.
3268
3269 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3270
3271 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3272 use frame_unwind_signed_register to obtain the PC.
3273 (mips_frame_chain): Handle a generic dummy frame.
3274 (mips_init_extra_frame_info): When a generic dummy frame, don't
3275 re-compute the frame base.
3276 (mips_pop_frame): Handle generic dummy frames.
3277 (mips_gdbarch_init): When generic dummy frames, set
3278 use_generic_dummy_frames, push_dummy_frame to
3279 generic_push_dummy_frame, pc_in_call_dummy to
3280 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3281 generic_save_dummy_frame_tos.
3282
3283 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3284
3285 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3286 against TOP when TOP was explictly set.
3287 (generic_push_dummy_frame): Set TOP to zero.
3288
3289 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3290
3291 * event-loop.c (start_event_loop): Rename variable 'result' to
3292 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3293
3294 2002-09-30 Keith Seitz <keiths@redhat.com>
3295
3296 * gdb-events.sh (selected_thread_changed): New event.
3297 * gdb-events.c: Regenerated.
3298 * gdb-events.h: Regenerated.
3299
3300 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3301
3302 * MAINTAINERS: Add self to Write After Approval list.
3303
3304 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3305
3306 * disasm.c: New file.
3307 * disasm.h: New file.
3308 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3309 (compare_lines): Ditto.
3310 (dump_insns): Ditto.
3311 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3312 argument.
3313 (do_assembly_only): Ditto.
3314 (do_disassembly): Renamed to gdb_disassembly and moved to
3315 disasm.c. Sdded uiout argument.
3316 * Makefile.in: Add new files. Reorder SFILES list. Update
3317 dependencies. Include libgdb.a later in the insight executable.
3318
3319 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3320
3321 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3322 bfd/elf64-alpha-fbsd.c.
3323
3324 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3325
3326 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3327 i386gnu-tdep.c.
3328
3329 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3330
3331 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3332 __FUNCTION__.
3333 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3334 function name.
3335 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3336 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3337 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3338 (S_msg_sig_post_reply): Ditto.
3339
3340 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3341
3342 * sh-tdep.c (sh_use_struct_convention): Use definition according
3343 to ABI.
3344 (sh_push_arguments): Store in register with correct endianess.
3345 (sh_default_store_return_value): Ditto.
3346 (sh_gdbarch_init): Set sizeof long double to 8.
3347
3348 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3349
3350 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3351 Fix some whitespace problems.
3352
3353 2002-09-27 David Carlton <carlton@math.stanford.edu>
3354
3355 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3356 (mcore-tdep.o): Ditto.
3357 (ns32k-tdep.o): Ditto.
3358 (ns32knbsd-tdep.o): Ditto.
3359 (sh3-rom.o): Ditto.
3360 (vax-tdep.o): Ditto.
3361 * cris-tdep.c: #include "gdb_string.h"
3362 * mcore-tdep.c: Ditto.
3363 * ns32k-tdep.c: Ditto.
3364 * ns32knbsd-tdep.c: Ditto.
3365 * sh3-rom.c: Ditto.
3366 * vax-tdep.c: Ditto.
3367
3368 2002-09-27 David Carlton <carlton@math.stanford.edu>
3369
3370 * config/djgpp/fnchange.lst: Add entries for
3371 gdb/testsuite/gdb.c++/m-static files.
3372
3373 2002-09-27 Jim Wilson <wilson@redhat.com>
3374
3375 * MAINTAINERS: Add myself to the Write After Approval list.
3376
3377 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3378
3379 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3380
3381
3382 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3383
3384 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3385 frame.
3386
3387 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3388
3389 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3390 (rs6000_struct_return_address): Delete variable.
3391 (rs6000_store_struct_return): Update.
3392 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3393 deprecated_extract_struct_value_address.
3394 (rs6000_frame_align): New function.
3395 (rs6000_gdbarch_init): Set frame_align.
3396
3397 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3398
3399 From Grace Sainsbury <graces@redhat.com>:
3400 * Makefile.in (gdbtk-main.o): New target.
3401 (gdb.o): New target.
3402 (main_h): Define.
3403 (main.o): Update dependencies.
3404 (gdb$(EXEEXT)): Add gdb.o.
3405 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3406 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3407 (SUBDIR_GDBTK_CLEAN): Set.
3408 (install-gdbtk): Install the insight binary.
3409 (uninstall-gdbtk): New target.
3410 (all-gdbtk, clean-gdbtk): New rule.
3411 * top.c (use_windows): Default to zero.
3412 * main.c: Include "main.h".
3413 (main): Delete.
3414 (struct captured_main_args): Delete.
3415 (gdb_main): New function.
3416 * main.h: New file.
3417 * gdb.c: New File.
3418
3419 2002-09-25 Andrew Cagney <cagney@redhat.com>
3420
3421 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3422 (frame_map_regnum_to_name): New function.
3423 (frame_map_name_to_regnum): New function.
3424 * frame.h (frame_map_name_to_regnum): Declare.
3425 (frame_map_regnum_to_name): Declare.
3426 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3427 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3428 * parse.c: Do not include "builtin-regs.h".
3429 (target_map_name_to_register): Delete function.
3430 (write_dollar_variable): Use frame_map_name_to_regnum.
3431 * parser-defs.h (target_map_name_to_register): Delete declaration.
3432 * expprint.c: Include "frame.h".
3433 (print_subexp): Use frame_map_regnum_to_name.
3434 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3435 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3436
3437 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3438
3439 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3440 wasn't saved, and the next innermost frame is a dummy, return the
3441 dummy frame's link register.
3442
3443 2002-09-24 Jim Blandy <jimb@redhat.com>
3444
3445 Fix from Paul Breed:
3446 * main.c (captured_main): Add a `break' after the case for 'b'.
3447
3448 2002-09-24 Keith Seitz <keiths@redhat.com>
3449
3450 * varobj.c (c_type_of_child): Use get_target_type instead
3451 of TYPE_TARGET_TYPE.
3452
3453 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3454
3455 * source.c (get_current_or_default_source_symtab_and_line): Remove
3456 function.
3457 (set_default_source_symtab_and_line): New function. Attempts to
3458 determine a source file to list lines from if one is not currently
3459 defined.
3460 (get_current_source_symtab_and_line): Initialize sal.pc and
3461 sal.end fields.
3462 (set_current_source_symtab_and_line): Mark argument as const.
3463 * source.h: Update declarations and comments.
3464 * linespec.c (decode_line_1): Replace call to removed routine above.
3465 * stack.c (print_frame_info_base): Ditto.
3466 * cli/cli-cmds.c (edit_command): Ditto.
3467 (list_command): Ditto.
3468
3469 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3470
3471 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3472 sal.pc and sal.end fields.
3473 (get_current_or_default_source_symtab_and_line): Ditto.
3474 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3475 so we do not cause a new source symtab to be searched for (reverting an
3476 unintentional change from the 2002-09-20 patch).
3477 * scm-lang.c (scm_unpac): Ditto.
3478
3479 2002-09-21 Andrew Cagney <cagney@redhat.com>
3480
3481 * complaints.c (symfile_explanations): Remove new-line from
3482 ``isolated_message''.
3483 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3484 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3485
3486 2002-09-20 Nick Clifton <nickc@redhat.com>
3487
3488 * NEWS: Announce that V850EA ISA is no longer supported.
3489 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3490
3491 2002-09-20 David Carlton <carlton@math.stanford.edu>
3492
3493 * Makefile.in (c-lang.o): Correct dependencies.
3494 (utils.o): Gather dependencies.
3495 (charset.o): Move.
3496 * c-lang.c: #include "gdb_string.h"
3497
3498 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3499
3500 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3501 * cli/cli-cmds.c (list_command): New function. Implements the new
3502 cli edit command.
3503 (_init_cli_cmds): Add new command definition.
3504 * gdb.1: Document edit command.
3505 * doc/gdb.texinfo: Document edit command.
3506
3507 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3508
3509 * source.c: Make global variables current_source_symtab and
3510 current_source_line static.
3511 (list_command): Moved to cli/cli-cmds.c.
3512 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3513 (get_first_line_listed): New accessor function.
3514 (get_lines_to_list): New accessor function.
3515 (get_current_source_symtab_and_line): New function. Retrieves the
3516 position in the source code that we consider current.
3517 (get_current_or_default_source_symtab_and_line): New function.
3518 Like the above but attempts to determine a default position if one
3519 is not currently defined.
3520 (set_current_source_symtab_and_line): New function. Sets the source
3521 code position considered current and returns the previously set one.
3522 (clear_current_source_symtab_and_line): Reset stored information about
3523 a current source line.
3524 (_initialize_source): Remove registration for the "list" command and
3525 its alias.
3526 * source.h: Add declarations for the new functions above.
3527 * symtab.h: Remove declarations for the global variables mentioned
3528 above.
3529 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3530 obtain current source line.
3531 * linespec.c (decode_line_1): Ditto.
3532 * macroscope.c (default_macro_scope): Ditto.
3533 * scm-lang.c (scm_unpac): Ditto.
3534 * stack.c (print_frame_info_base): Ditto.
3535 * symfile.c (clear_symtab_users): Ditto.
3536 * symtab.c (decode_line_spec): Ditto.
3537 * cli/cli-cmds.c (list_command): Moved here from source.c.
3538 (ambiguous_line_spec): Moved here from source.c.
3539 (_init_cli_cmds): Add definition for "list" and its alias.
3540 * Makefile.in: Update dependencies.
3541
3542 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3543
3544 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3545 with what gcc thinks is correct.
3546
3547 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3548
3549 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3550 multiple register push instruction.
3551
3552 2002-09-19 Jim Blandy <jimb@redhat.com>
3553
3554 Add support for distinct host and target character sets.
3555 * charset.c, charset.h: New files.
3556 * c-exp.y: #include "charset.h".
3557 (yylex): Convert character and string literals to the target
3558 character set, before returning them as the semantic value of the
3559 token.
3560 * c-lang.c: #include "charset.h".
3561 (c_emit_char): Use charset-specific methods to recognize
3562 characters with backslash escape forms, to decide which characters
3563 to print literally and which to print using numeric escape
3564 sequences, and to convert target characters to host characters
3565 before printing.
3566 * utils.c: #include "charset.h".
3567 (no_control_char_error): New function.
3568 (parse_escape): Use charset-specific methods to recognize
3569 backslash escapes, parse `control character' notation, and convert
3570 characters from the host character set to the target character set.
3571 * configure.in: Set the default host character set.
3572 Check where to find iconv, and what its argument types might be.
3573 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3574 * Makefile.in (SFILES): List charset.c.
3575 (COMMON_OBS): List charset.o.
3576 (charset.o): New rule.
3577 (charset_h): New header dependency variable.
3578 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3579 (LIBICONV): New variable, set by configure.
3580 (CLIBS): Include $(LIBICONV) here.
3581 * aclocal.m4, config.in, configure: Regenerated.
3582
3583 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3584
3585 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3586 bison 1.35 warning.
3587
3588 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3589
3590 * gdb_mbuild.sh: New file.
3591
3592 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3593
3594 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3595
3596 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3597
3598 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3599 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3600 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3601 valops.c, value.h: Revert previous change.
3602
3603 2002-09-18 Michael Snyder <msnyder@redhat.com>
3604
3605 Preliminary support for Objective-C:
3606 * defs.h (language_objc): New enum value.
3607 (puts_filtered_tabular): Declaration only, exported from utils.c.
3608 (skip_quoted): Delete, declared in completer.h.
3609 * c-exp.y: Include completer.h.
3610 * p-exp.y: Ditto.
3611 * jv-exp.y: Ditto.
3612 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3613 New operator enum values.
3614 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3615 * language.c (binop_result_type): Handle language_objc case.
3616 (integral_type, character_type, string_type, boolean_type,
3617 structured_type, binop_type_check): Ditto.
3618 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3619 (struct objc_specific): Add to general_symbol_info.
3620 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3621 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3622 * parser-defs.h (struct objc_class_str): New struct type.
3623 (start_msglist, end_msglist, add_msglist): Declaration only,
3624 exported from objc-lang.c.
3625 * value.h (value_of_local, value_nsstring,
3626 call_function_by_hand_expecting_type): Exported from valops.c.
3627 * valops.c (find_function_addr): Export.
3628 (call_function_by_hand_expecting_type): New function.
3629 (value_of_local): New function.
3630 * symfile.c (init_filename_language_table): Add ".m" extension
3631 for Objective-C.
3632 * utils.c (puts_filtered_tabular): New function.
3633 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3634 (set/show demangle): Extend help-string to refer to ObjC.
3635 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3636 * stabsread.c (symbol_reference_defined): Objective-C symbols
3637 may contain colons: make allowances when scanning stabs strings
3638 for colons.
3639 (objc_find_colon): New function.
3640 * printcmd.c (address_info): If language == objc then print
3641 "self" instead of "this".
3642 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3643 OP_NSSTRING, and OP_SELF.
3644 (prefixify_subexp): Ditto.
3645 * source.c (print_source_lines): Mention objc in comment.
3646 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3647 method names.
3648
3649 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3650
3651 * complaints.h: Update copyright.
3652 (struct complaints): Declare.
3653 (struct complaint): Make `message' constant.
3654 (internal_complaint): Declare.
3655 (complaint): Declare.
3656 (complaint_root): Delete declaration.
3657 (symfile_complaints): Delete declaration.
3658 (struct complaints): Add opaque declaration.
3659 (clear_complaints): Add a complaints parameter.
3660 * complaints.c: Update copyright.
3661 (enum complaint_series): Define.
3662 (complaint_root): Delete.
3663 (struct complaints): Define.
3664 (complaint_sentinel, symfile_complaint_book): New variables.
3665 (symfile_explanations, symfile_complaints): New variables.
3666 New variables.
3667 (get_complaints): New function.
3668 (vcomplaint): New function.
3669 (complaint): New function.
3670 (internal_complaint): New function.
3671 (complain): Call vcomplain with symfile_complaint.
3672 (clear_complaints): Rewrite.
3673 (_initialize_complaints): Use add_setshow_command.
3674 * Makefile.in (complaints.o): Update dependencies.
3675 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3676 to call to clear_complaints.
3677 (new_symfile_objfile, reread_symbols): Ditto.
3678 (oldsyms_complaint): Delete.
3679 (empty_symtab_complaint, unknown_option_complaint): Delete.
3680 (free_named_symtabs): Use complaint instead of complain.
3681
3682 2002-09-18 Michael Snyder <msnyder@redhat.com>
3683
3684 Contributed by Apple Computer, Inc. Merged with current sources
3685 by Adam Fedor <fedor@doc.com> [cagney].
3686
3687 * objc-lang.c: First clean-up round: comments, indentation.
3688 * objc-lang.h: Ditto.
3689 * objc-lang.y: Ditto.
3690
3691 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3692
3693 * maint.c (maintenance_internal_error): Print the parameter as the
3694 error message.
3695 (maintenance_internal_warning): New function.
3696 (_initialize_maint_cmds): Add command `maint internal-warning'.
3697
3698 * defs.h (internal_warning, internal_vwarning): Declare.
3699 * utils.c (struct internal_problem): Define.
3700 (internal_vproblem): New function.
3701 (internal_warning): New function.
3702 (internal_vwarning): New function.
3703 (internal_warning_problem, internal_error_problem): New variables.
3704 (internal_verror): Just call internal_vproblem.
3705
3706 2002-09-18 Michael Snyder <msnyder@redhat.com>
3707
3708 * objc-lang.c: New file, support for Objective-C.
3709 Preliminary check-in, not yet integrated into gdb.
3710 * objc-lang.h: New file.
3711 * objc-exp.y: New file.
3712
3713 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3714
3715 * infrun.c (signal_stop_update): Convert definition to ISO C.
3716 (signal_print_update): Ditto.
3717 (signal_pass_update): Ditto.
3718 * inflow.c (terminal_save_ours): Ditto.
3719
3720 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3721 comments.
3722
3723 * config/djgpp/fnchange.lst: Handle name clashes between
3724 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3725 bfd/coff-tic80.c.
3726
3727 * i386-linux-tdep.h: Fix tipo.
3728
3729 2002-09-18 Adam Fedor <fedor@gnu.org>
3730
3731 * MAINTAINERS: Add myself to the Write After Approval list.
3732
3733 2002-09-18 Jim Blandy <jimb@redhat.com>
3734
3735 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3736 texthigh and textlow to reader-specific structs caused
3737 objfile_relocate to miss them. This is fixable, but the work that
3738 the change was supposed to prepare GDB for never got done anyway.
3739
3740 2002-09-18 David Carlton <carlton@math.stanford.edu>
3741
3742 * MAINTAINERS: Alphabetize Write After Approval list.
3743
3744 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3745
3746 Fix PR gdb/709
3747 * values.c (value_static_field): Call read_var_value.
3748
3749 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3750
3751 * valops.c (hand_function_call): Align the initial stack pointer
3752 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3753 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3754 return value.
3755 * mips-tdep.c (mips_frame_align): New function.
3756 (mips_gdbarch_init): Set frame_align.
3757 * gdbarch.sh (FRAME_ALIGN): New method.
3758 * gdbarch.h, gdbarch.c: Re-generate.
3759
3760 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3761
3762 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3763 registers.
3764
3765 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3766
3767 * NEWS: Mention that MIPS $fp behavior changed.
3768 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3769 reference to FP_REGNUM.
3770 (mipsnbsd_cannot_store_register): Ditto.
3771 * mips-linux-nat.c: Update copyright.
3772 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3773 (mips_linux_cannot_store_register): Ditto.
3774 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3775 * config/mips/tm-mips.h: Update copyright.
3776 (FP_REGNUM): Delete macro.
3777 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3778 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3779 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3780 (mips_r3041_reg_names, mips_r3051_reg_names)
3781 (mips_r3081_reg_names): Replace "fp" with "".
3782 Fix PR gdb/480.
3783
3784 2002-09-17 Theodore A. Roth <troth@verinet.com>
3785
3786 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3787 generic_read_register_dummy() (PR gdb/703).
3788 (avr_push_return_address): #if 0 out unused vars.
3789 (avr_gdbarch_init): Enable use of avr_push_return_address().
3790
3791 2002-09-17 Michael Snyder <msnyder@redhat.com>
3792
3793 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3794 RTE will take care of it.
3795
3796 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3797
3798 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3799 invalid, return SP_REGNUM.
3800
3801 2002-09-17 Michael Snyder <msnyder@redhat.com>
3802
3803 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3804 point registers without sign extension.
3805
3806 2002-09-17 Andrew Cagney <cagney@redhat.com>
3807
3808 * blockframe.c (deprecated_read_register_dummy): Rename
3809 generic_read_register_dummy.
3810 * frame.c (frame_unwind_signed_register): New function.
3811 (frame_unwind_unsigned_register): New function.
3812 * frame.h (frame_unwind_signed_register): Declare.
3813 (frame_unwind_unsigned_register): Declare.
3814 (deprecated_read_register_dummy): Rename
3815 generic_read_register_dummy.
3816
3817 * h8300-tdep.c (h8300_frame_chain): Update.
3818 (h8300_frame_saved_pc): Update.
3819 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3820 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3821 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3822 (s390_frame_chain): Update.
3823 * v850-tdep.c (v850_find_callers_reg): Update.
3824 (v850_frame_saved_pc): Update.
3825 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3826 (m32r_find_callers_reg): Update.
3827 (m32r_frame_saved_pc): Update.
3828 * sh-tdep.c (sh_find_callers_reg): Update.
3829 (sh64_get_saved_pr): Update.
3830 (sh_init_extra_frame_info): Update.
3831 (sh_init_extra_frame_info): Update.
3832 (sh64_init_extra_frame_info): Update.
3833 (sh64_init_extra_frame_info): Update.
3834 * mcore-tdep.c (mcore_find_callers_reg): Update.
3835 (mcore_frame_saved_pc): Update.
3836 (mcore_init_extra_frame_info): Update.
3837 * i386-tdep.c (i386_frame_saved_pc): Update.
3838 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3839 (ia64_init_extra_frame_info): Update.
3840 (ia64_init_extra_frame_info): Update.
3841 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3842 * cris-tdep.c (cris_init_extra_frame_info): Update.
3843 * avr-tdep.c (avr_frame_chain): Update.
3844 (avr_init_extra_frame_info): Update.
3845 (avr_frame_saved_pc): Update.
3846 * arm-tdep.c (arm_find_callers_reg): Update.
3847 (arm_init_extra_frame_info): Update.
3848 (arm_frame_saved_pc): Update.
3849
3850 2002-09-17 Tom Tromey <tromey@redhat.com>
3851
3852 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3853 is "'".
3854
3855 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3856
3857 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3858 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3859 NEXT_PROLOGUE_INSN.
3860 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3861 NEXT_PROLOGUE_INSN.
3862
3863 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3864
3865 * osfsolib.c: Remove file, replaced by solib-osf.c.
3866 * Makefile.in: Remove compilation rules for osfsolib.c.
3867
3868 2002-09-16 David Carlton <carlton@math.stanford.edu>
3869
3870 * cp-valprint.c (cp_print_class_method): Correct args to
3871 check_stub_method_group.
3872
3873 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3874
3875 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3876 `set architecture'. Unify naming convention of functions.
3877 (h8300_skip_prologue): Improve prologue analysis.
3878 (h8300_push_arguments): Rewritten to more closely match GCC's
3879 bizarre argument-passing behavior, along with the comment describing
3880 said behavior.
3881 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3882 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3883 sim, remote-e7000.c, remote-hms.c and remote.c
3884
3885 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3886
3887 * i386-tdep.c (gdb_print_insn_i386): Removed.
3888 (i386_print_insn): New function.
3889 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3890 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3891 tm_print_insn_info.
3892
3893 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3894
3895 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3896 zero.
3897
3898 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3899
3900 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3901 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3902 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3903
3904 2002-09-13 Christopher Faylor <cgf@redhat.com>
3905
3906 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3907
3908 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3909
3910 * gdbtypes.c (check_stub_method): Make static.
3911 (check_stub_method_group): New function.
3912 * gdbtypes.h: Update prototypes.
3913 * cp-support.c: New file.
3914 * cp-support.h: New file.
3915
3916 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3917 (update_method_name_from_physname): New function.
3918 (read_member_functions): Correct method names for operators
3919 and v3 constructors/destructors. Separate v2 constructors and
3920 destructors.
3921 * Makefile.in (stabsread.o): Update dependencies.
3922 (SFILES): Add cp-support.c.
3923 (COMMON_OBS): Add cp-support.o.
3924 (cp_support_h, cp-support.o): Add.
3925
3926 * cp-valprint.c (cp_print_class_method): Call
3927 check_stub_method_group instead of check_stub_method. Remove
3928 extraneous QUITs.
3929 * p-valprint.c (pascal_object_print_class_method): Likewise.
3930 * valops.c (search_struct_method): Likewise.
3931 (find_method_list, value_struct_elt_for_reference): Likewise.
3932
3933 2002-09-13 Andrew Cagney <cagney@redhat.com>
3934
3935 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3936 * gdbarch.h, gdbarch.c: Regenerate.
3937
3938 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3939
3940 * frame.c (find_saved_register): Delete function.
3941 * frame.h (find_saved_register): Delete declaration.
3942 Fix PR gdb/631.
3943
3944 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3945
3946 * mips-tdep.c (read_next_frame_reg): Re-hack using
3947 frame_register_unwind.
3948
3949 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3950
3951 * mips-tdep.c (mips_get_saved_register): Re-hack using
3952 frame_register_unwind.
3953
3954 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3955
3956 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3957 vector. Will be useful for Interix.
3958 * gdbarch.h, gdbarch.c: Regenerate.
3959
3960 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3961 name of the malloc function by NAME_OF_MALLOC.
3962
3963 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3964
3965 * value.h (find_function_in_inferior): Add const keyword to
3966 one of the parameters. Allows us to invoke this function with
3967 a const char *.
3968 * valops.c (find_function_in_inferior): Likewise.
3969
3970 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3971
3972 * exec.c (xfer_memory): Fix compilation warning with old versions
3973 of GCC.
3974 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3975
3976 2002-09-12 David Carlton <carlton@math.stanford.edu>
3977
3978 * symtab.h: Run through gdb_indent.h.
3979 Add 2002 to Copyright year list.
3980
3981 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3982
3983 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3984 mach constants.
3985 * MAINTAINERS: Add myself to write after approval list.
3986
3987 2002-09-11 J. Brobecker <brobecker@gnat.com>
3988
3989 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3990
3991 2002-09-11 J. Brobecker <brobecker@gnat.com>
3992
3993 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3994 Interix.
3995
3996 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3997
3998 * procfs.c (do_detach): Clear current signal, not just fault.
3999 Corrects problem with breakpoint trap signal leaking to detached
4000 process on Tru64.
4001
4002 2002-09-10 Michael Snyder <msnyder@redhat.com>
4003
4004 * buildsym.c (finish_block): Protect against null pointer.
4005
4006 2002-09-10 Andrew Cagney <cagney@redhat.com>
4007
4008 * infcmd.c (default_print_registers_info): Send all output to
4009 ``file'' instead of ``gdb_stdout''.
4010
4011 2002-09-10 Michael Snyder <msnyder@redhat.com>
4012
4013 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4014 LONGEST, and use signed register read (addresses are sign-
4015 extended for mips).
4016
4017 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4018
4019 * event-loop.c (gdb_do_one_event): Make public.
4020 * event-loop.h (gdb_do_one_event): Declare.
4021
4022 2002-09-10 Jeff Law <law@redhat.com>
4023
4024 * infttrace.c (child_resume): Simplify and rework to avoid
4025 TT_PROC_CONTINUE.
4026
4027 2002-09-09 Fred Fish <fnf@intrinsity.com>
4028
4029 * printcmd.c (print_scalar_formatted): "len" is the number of
4030 target bytes, NOT the number of target bits.
4031
4032 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4033
4034 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4035 * top.c (init_main): Set rl_terminal_name.
4036
4037 2002-09-08 Aidan Skinner <aidan@velvet.net>
4038
4039 * ada-lang.c (ada_array_bound, ada_type_match,
4040 _initialize_ada_language): Fix K&R definitions.
4041 * ada-tasks.c (get_current_task): Fix K&R definitions.
4042 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4043
4044 2002-09-07 Christopher Faylor <cgf@redhat.com>
4045
4046 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4047 Add XP.
4048
4049 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4050
4051 * i386-tdep.c (i386_register_virtual_type,
4052 i386_register_convertible, i386_register_convert_to_virtual,
4053 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4054 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4055 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4056 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4057 Don't set push_arguments twice.
4058
4059 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4060 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4061 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4062 sigtramp_end to NULL.
4063 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4064 defines.
4065 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4066
4067 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4068 whitespace.
4069
4070 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4071 * gdbarch.h, gdbarch.c: Re-generate.
4072 * blockframe.c (find_pc_sect_partial_function): Convert to use
4073 SIGTRAMP_START_P predicate.
4074
4075 2002-09-05 Michael Snyder <msnyder@redhat.com>
4076
4077 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4078 generic_dummy_frame method and old method. Also distinguish
4079 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4080 (arm_extract_return_value): Use new regcache method.
4081
4082 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4083 adjustment that doesn't conform to the ABI.
4084 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4085 saved regcache, not from current regcache.
4086
4087 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4088
4089 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4090 * README: Update.
4091
4092 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4093
4094 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4095 if arm_apcs_32 is false.
4096
4097 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4098
4099 GDB 5.3 branch created.
4100
4101 2002-09-03 Theodore A. Roth <troth@verinet.com>
4102
4103 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4104 generic_unwind_get_saved_register.
4105
4106 2002-09-03 David Carlton <carlton@math.stanford.edu>
4107
4108 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4109 argument (PR gdb/653). Update call to smash_to_method_type.
4110 (read_structure_scope): Update call to dwarf2_add_member_fn.
4111
4112 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4113
4114 * x86-64-linux-tdep.c: Include gdb_string.h
4115 * x86-64-linux-nat.c: Ditto.
4116
4117 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4118
4119 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4120 when YYDEBUG is set to 1.
4121 * c-exp.y: Likewise.
4122 * f-exp.y: Likewise.
4123 * jv-exp.y: Likewise.
4124 * m2-exp.y: Likewise.
4125 * p-exp.y: Likewise.
4126
4127 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4128
4129 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4130 dependency list.
4131 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4132 solib_svr4_fetch_link_map_offsets to
4133 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4134 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4135 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4136 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4137 solib-svr4.o, and solib-legacy.o.
4138 * config/i386/tm-nbsd.h: Include solib.h.
4139
4140 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4141
4142 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4143 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4144 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4145 comment noting that this needs its own target configuration.
4146 * config/i386/nbsd.mt: New file.
4147 * config/i386/nbsdaout.mt: Remove.
4148 * config/i386/nbsdelf.mt: Ditto.
4149 * config/i386/tm-nbsdaout.h: Ditto.
4150
4151 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4152
4153 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4154 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4155 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4156 tdep->sigtramp_end.
4157 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4158 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4159 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4160
4161 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4162
4163 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4164 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4165 * i386-tdep.h (i386bsd_init_abi): New prototype.
4166 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4167 function declaration.
4168 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4169 for NetBSD-a.out or NetBSD-ELF.
4170 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4171 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4172 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4173 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4174 and nbsd-tdep.h.
4175 (i386nbsd_pc_in_sigtramp): New function.
4176 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4177 i386nbsd_pc_in_sigtramp.
4178 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4179 and i386nbsdelf_init_abi OS ABI handlers.
4180 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4181 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4182
4183 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4184
4185 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4186 registers if the target really has them.
4187
4188 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4189
4190 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4191 than nbsd-tdep.h.
4192
4193 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4194
4195 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4196 list.
4197 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4198 (alphanbsd_skip_sigtramp_frame): New functions.
4199 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4200 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4201 to alphanbsd_sigcontext_addr.
4202
4203 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4204
4205 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4206 list.
4207 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4208 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4209 nbsd_pc_in_sigtramp.
4210 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4211 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4212 * nbsd-tdep.c: Include gdb_string.h.
4213 (nbsd_pc_in_sigtramp): New function.
4214 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4215 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4216 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4217 ppcnbsd_pc_in_sigtramp.
4218 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4219 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4220 shnbsd_pc_in_sigtramp.
4221 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4222 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4223 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4224
4225 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4226
4227 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4228 watchpoints to NULL.
4229 (insert_breakpoints): set val field of watchpoints if NULL.
4230
4231
4232 2002-08-29 Jim Blandy <jimb@redhat.com>
4233
4234 * symtab.c (lookup_symbol_aux): In the cases where we find a
4235 minimal symbol of an appropriate name and use its address to
4236 select a symtab to read and search, use `name' (as passed to us)
4237 as the demangled name when searching the symtab's global and
4238 static blocks, not the minsym's name.
4239
4240 2002-08-29 Keith Seitz <keiths@redhat.com>
4241
4242 * stack.c (print_frame_info_base): Always set current_source_symtab
4243 and current_source_line.
4244
4245 2002-08-29 Donn Terry <donnte@microsoft.com>
4246
4247 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4248
4249 2002-08-28 Keith Seitz <keiths@redhat.com>
4250
4251 * stack.c (select_frame): Add FIXME concerning selected-frame
4252 events.
4253 (select_frame_command): Send selected-frame-level-changed
4254 event notification, but only if the level actually changed.
4255 (up_silently_base): Add selected-frame-level-changed event
4256 notification.
4257 (down_silently_base): Likewise.
4258
4259 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4260
4261 * Makefile.in: Update dependencies for all gdb/*.c files.
4262
4263 2002-08-27 Tom Tromey <tromey@redhat.com>
4264
4265 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4266 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4267 Update dependencies.
4268 * i387-tdep.c: Include gdb_string.h.
4269 * osabi.c: Likewise.
4270 * i386-linux-nat.c: Likewise.
4271 * lin-lwp.c: Likewise.
4272 * ax-gdb.c: Likewise.
4273 * signals/signals.c: Likewise.
4274 * jv-valprint.c: Likewise.
4275 * p-lang.c: Likewise.
4276 * c-valprint.c: Likewise.
4277 * cp-abi.c: Likewise.
4278
4279 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4280
4281 * cli/cli-script.h (copy_command_lines): Export.
4282 * breakpoint.c: Include cli/cli-script.h.
4283 * Makefile.in (breakpoint.o): Update dependencies.
4284
4285 2002-08-26 Michael Snyder <msnyder@redhat.com>
4286
4287 * breakpoint.c (insert_breakpoints): Protect all references
4288 to 'process_warning'. Shorten long lines.
4289
4290 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4291
4292 * cli/cli-script.c (copy_command_lines): New function.
4293 * defs.h (copy_command_lines): Export.
4294 * testsuite/gdb.base/commands.exp: New tests for commands
4295 attached to a temporary breakpoint, and for commands that
4296 delete the breakpoint they are attached to.
4297
4298 2002-08-26 Michael Snyder <msnyder@redhat.com>
4299
4300 * breakpoint.c (bpstat_stop_status): Instead of copying the
4301 pointer to the breakpoint commands struct, make a new copy
4302 of the struct and point to that.
4303 (bpstat_clear): Free the commands struct.
4304 (bpstat_clear_actions): Free the commands struct.
4305 (bpstat_do_actions): Free the command actions. Also execute
4306 the local cleanups, instead of deleting them.
4307 (delete_breakpoint): Leave the commands field of the bpstat
4308 chain alone -- it will be freed later.
4309
4310 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4311
4312 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4313 deleted in 2002-08-20 commit. This function is still used by
4314 ppc-linux-nat.c.
4315
4316 2002-08-26 Keith Seitz <keiths@redhat.com>
4317
4318 * gdb-events.sh: Add selected-frame-level-changed event.
4319 * gdb-events.c: Regenerated.
4320 * gdb-events.h: Regenerated.
4321
4322 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4323
4324 Fix PR gdb/393:
4325 * inflow.c (terminal_save_ours): New function to save terminal
4326 settings.
4327 * inferior.h (terminal_save_ours): Declare.
4328 * target.c (debug_to_terminal_save_ours): New function.
4329 (cleanup_target): Defaults to_terminal_save_ours.
4330 (update_current_target): Inherit to_terminal_save_ours.
4331 (setup_target_debug): Set to_terminal_save_ours.
4332 * target.h (target_terminal_save_ours): New to save terminal settings.
4333 (target_ops): New member to_terminal_save_ours.
4334 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4335 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4336 * inftarg.c (init_child_ops): Likewise.
4337 * m3-nat.c (init_m3_ops): Likewise.
4338 * procfs.c (init_procfs_ops): Likewise.
4339 * wince.c (init_child_ops): Likewise.
4340 * win32-nat.c (init_child_ops): Likewise.
4341 * sol-thread.c (init_sol_thread_ops): Likewise.
4342
4343 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4344
4345 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4346 use regcache_* functions.
4347 (i386_gdbarch_init): Set store_return_value instead of
4348 deprecated_store_return_value.
4349
4350 * regcache.c (regcache_raw_write_signed,
4351 regcache_raw_write_unsigned): New functions.
4352 * regcache.h (regcache_raw_write_signed,
4353 regcache_raw_write_unsigned): New prototypes.
4354
4355 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4356
4357 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4358 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4359 source file dependencies. Cleanup corresponding generator rules.
4360
4361 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4362
4363 * regcache.h (register_offset_hack): Declare.
4364 (regcache_cooked_read_using_offset_hack): Declare.
4365 (regcache_cooked_write_using_offset_hack): Declare.
4366
4367 * regcache.c (register_offset_hack): New function.
4368 (regcache_cooked_read_using_offset_hack): New function.
4369 (regcache_cooked_write_using_offset_hack): New function.
4370 (regcache_dump): Check that the registers, according to their
4371 offset, are packed hard against each other.
4372 (cooked_xfer_using_offset_hack): New function.
4373
4374 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4375
4376 * regcache.c (struct regcache_descr): Add field register_type.
4377 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4378 in as a parameter
4379 (init_regcache_descr): Initialize register_type. Pass the descr
4380 to init_legacy_regcache_descr. Use register_type instead of
4381 REGISTER_VIRTUAL_TYPE.
4382 (register_type): New function.
4383 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4384 * regcache.h (register_type): Declare.
4385
4386 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4387
4388 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4389 instead of deprecated_store_return_value. Fix fallout from
4390 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4391
4392 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4393
4394 * regcache.c (max_register_size): New function.
4395 (init_legacy_regcache_descr): Ensure that max_register_size is
4396 large enough for REGISTER_VIRTUAL_SIZE.
4397 * regcache.h (max_register_size): Declare.
4398
4399 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4400
4401 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4402 store_return_value.
4403 (e500_extract_return_value): Change type of valbuf pointer to
4404 void.
4405
4406 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4407
4408 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4409 workaround.
4410
4411 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4412 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4413 long long) to prevent compiler warning on 64-bit systems.
4414
4415 2002-08-23 Andrew Cagney <cagney@redhat.com>
4416
4417 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4418 (DEPRECATED_STORE_RETURN_VALUE): New method.
4419 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4420 * gdbarch.h, gdbarch.c: Re-generate.
4421
4422 * values.c (set_return_value): Pass current_regcache to
4423 STORE_RETURN_VALUE.
4424 * arch-utils.h (legacy_store_return_value): Declare.
4425 * arch-utils.c (legacy_store_return_value): New function.
4426 (legacy_extract_return_value): Update parameters.
4427
4428 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4429 STORE_RETURN_VALUE.
4430 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4431 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4432 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4433 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4434 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4435 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4436 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4437 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4438 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4439 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4440
4441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4442 * i386-tdep.c (i386_extract_return_value): Update.
4443 * arch-utils.c (legacy_extract_return_value): Update.
4444 * frv-tdep.c (frv_gdbarch_init): Update.
4445 * cris-tdep.c (cris_gdbarch_init): Update.
4446 * d10v-tdep.c (d10v_gdbarch_init): Update.
4447 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4448 * m68k-tdep.c (m68k_gdbarch_init): Update.
4449 * mcore-tdep.c (mcore_gdbarch_init): Update.
4450 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4451 * s390-tdep.c (s390_gdbarch_init): Update.
4452 * sparc-tdep.c (sparc_gdbarch_init): Update.
4453 * sh-tdep.c (sh_gdbarch_init): Update.
4454 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4455 * v850-tdep.c (v850_gdbarch_init): Update.
4456 * avr-tdep.c (avr_gdbarch_init): Update.
4457 * ia64-tdep.c (ia64_gdbarch_init): Update.
4458 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4459 * vax-tdep.c (vax_gdbarch_init): Update.
4460 * alpha-tdep.c (alpha_gdbarch_init): Update.
4461 * arm-tdep.c (arm_gdbarch_init): Update.
4462 * mips-tdep.c (mips_gdbarch_init): Update.
4463 * i386-tdep.c (i386_gdbarch_init): Update.
4464
4465 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4466
4467 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4468 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4469
4470 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4471
4472 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4473 problems.
4474
4475 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4476
4477 * infrun.c (handle_inferior_event): Move a comment outside of a
4478 function call, in order to avoid indent reformatting this part
4479 of the code in an unreadable way.
4480
4481 2002-08-23 Grace Sainsbury <graces@redhat.com>
4482
4483 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4484 when breakpoints fail. Move general breakpoint error messages to
4485 insert_breakpoints.
4486 * breakpoint.c (insert_breakpoints): Change warnings when
4487 breakpoints are nto inserted to specify the type. Remove call to
4488 memory_error when hardware breakpoints can't be inserted. Remove
4489 multiple calls to warning so all messages are sent to the user at
4490 once.
4491 (delete_breakpoints): Make insert error messsages more explicit.
4492
4493 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4494
4495 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4496 gdbserver/ChangeLog.
4497
4498 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4499
4500 * i386-tdep.c: Include "objfiles.h".
4501 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4502 skip_trampoline_code.
4503 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4504 (CPLUS_MARKER): Define to '.'.
4505
4506 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4507 member.
4508 (linux_corefile_thread_callback): Increase args->num_notes.
4509 (linux_make_note_section): Initialize thread_args.num_notes, and
4510 use it to determine whether notes for any threads were created.
4511
4512 2002-08-23 Donn Terry <donnte@microsoft.com>
4513
4514 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4515 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4516 and PCUNKILL.
4517 (write_with_trace): Conditionalize out the switch branch handling
4518 PCSHOLD if the corresponding macro is not defined. Likewise for
4519 PRSABORT and PRSTOP.
4520 This change will be needed by the Interix port.
4521
4522 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4523
4524 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4525 write_register wherever possible instead of manipulating the
4526 register bytes directly.
4527 Assign VALUE_CONTENTS to a variable and use that.
4528 The GPR numbers are now dependent on the architecture.
4529
4530 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4531
4532 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4533 ev_offset fields.
4534 (skip_prologue): Add support for BookE/e500 instructions.
4535 (e500_extract_return_value): New function.
4536 (frame_get_saved_regs): Add support for saving ev registers and
4537 pseudo gpr's.
4538 (e500_store_return_value): New function.
4539 (rs6000_gdbarch_init): Move up default intializations of
4540 deprecated_extract_return_value and store_return_value. Overwrite
4541 init of store_return_value with e500 specific version.
4542 Set extract_return_value for e500.
4543
4544 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4545
4546 * blockframe.c (generic_call_dummy_register_unwind): Use
4547 regcache_cooked_read to catch cases in which the variable is
4548 stored in a pseudo register.
4549
4550 2002-08-22 Andrew Cagney <cagney@redhat.com>
4551
4552 * NEWS: Mention that the i960 has been made obsolete.
4553 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4554 i960-tdep.c
4555 (remote-nrom.o): Obsolete target.
4556 (remote-nindy.o, i960-tdep.o): Ditto.
4557 * remote-nrom.c: Make file obsolete.
4558 * remote-nindy.c, remote-vx960.c: Ditto.
4559 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4560 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4561 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4562 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4563 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4564 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4565 i960-*-vxworks* obsolete.
4566 * MAINTAINERS: Note that the i960 is obsolete.
4567
4568 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4569
4570 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4571 detach to allow reinitialization.
4572
4573 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4574
4575 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4576 attempt).
4577
4578 2002-08-22 Jim Blandy <jimb@redhat.com>
4579
4580 * coffread.c (coff_symfile_read): Don't try to read the line
4581 number table from disk if the image file doesn't have a symbol
4582 table; we'll never actually look at the info anyway, and Windows
4583 ships DLL's with bogus file offsets for the line number data.
4584
4585 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4586
4587 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4588 an e500 executable.
4589
4590 2002-08-21 Michael Snyder <msnyder@redhat.com>
4591
4592 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4593 (MSYMBOL_SIZE): Replace macro with function.
4594 (DEFAULT_MIPS_TYPE): Delete unused macro.
4595 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4596 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4597
4598 2002-08-21 Jim Blandy <jimb@redhat.com>
4599
4600 * valops.c (value_cast): Simplify and correct logic for doing a
4601 static cast from a pointer to a base class to a pointer to a
4602 derived class.
4603
4604 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4605
4606 * infcmd.c (default_print_registers_info): Replace
4607 do_registers_info.
4608 (registers_info): Use gdbarch_print_registers_info instead of
4609 DO_REGISTERS_INFO.
4610 * inferior.h (default_print_registers_info): Replace
4611 do_registers_info.
4612 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4613 (DO_REGISTERS_INFO): Change to a predicate function.
4614 * gdbarch.h, gdbarch.c: Regenerate.
4615
4616 2002-08-21 Keith Seitz <keiths@redhat.com>
4617
4618 * gdb-events.sh: Add target-changed event.
4619 * gdb-events.c: Regenerated.
4620 * gdb-events.c: Regenerated.
4621 * valops.c (value_assign): Add target-changed event notification
4622 to inlval_register, lval_memory, and lval_reg_frame_relative.
4623
4624 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4625
4626 * NEWS: Add an entry regarding the improvement of the next/step
4627 operation on Alpha Tru64 multi-processor machines.
4628
4629 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4630
4631 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4632 directores.
4633 * Makefile.in: Update all _h macro definitions.
4634 * Makefile.in (install-gdbtk): Move to install section.
4635 (rdi-share/libangsd.a): Move to end of file.
4636
4637 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4638
4639 * frame.c (frame_register_unwind): When a register, set addrp to
4640 the register's byte.
4641
4642 2002-08-20 Michael Snyder <msnyder@redhat.com>
4643
4644 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4645 used locally, so move them from the target machine header to here.
4646 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4647 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4648 Make static.
4649 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4650
4651 2002-08-20 Andrew Cagney <cagney@redhat.com>
4652
4653 * NEWS: Mention that the Apollo line was made obsolete.
4654 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4655 m68*-hp-hpux* obsolete.
4656 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4657 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4658 * buildsym.c (make_blockvector): Make static.
4659 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4660 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4661 (ALLDEPFILES): Remove dstread.c.
4662 (dstread.o): Obsolete make rule.
4663 * dstread.c: Makefile obsolete.
4664 * dst.h: Ditto.
4665 * config/m68k/hp300hpux.mt: Ditto.
4666 * config/m68k/hp300hpux.mh: Ditto.
4667 * config/m68k/hp300bsd.mt: Ditto.
4668 * config/m68k/hp300bsd.mh: Ditto.
4669 * config/m68k/apollo68b.mt: Ditto.
4670 * config/m68k/apollo68v.mh: Ditto.
4671 * config/m68k/apollo68b.mh: Ditto.
4672
4673 2002-08-20 Michael Snyder <msnyder@redhat.com>
4674
4675 * mips-tdep.c (mips_in_return_stub): Make static.
4676 (mips_gdbarch_init): Set in_solib_return_trampoline.
4677 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4678
4679 2002-08-20 Michael Snyder <msnyder@redhat.com>
4680
4681 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4682 * gdbarch.c, gdbarch.h: Regenerate.
4683 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4684 Add.
4685 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4686
4687 2002-08-20 Michael Snyder <msnyder@redhat.com>
4688
4689 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4690 (mips_gdbarch_init): Set skip_trampoline_code,
4691 in_solib_call_trampoline.
4692 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4693 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4694
4695 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4696
4697 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4698
4699 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4700 vector type for ev registers.
4701 (e500_pseudo_register_read): New function.
4702 (e500_pseudo_register_write): New function.
4703 (e500_dwarf2_reg_to_regnum): New function.
4704 (PPC_UISA_NOFP_SPRS): New macro.
4705 (PPC_EV_REGS): New macro.
4706 (PPC_GPRS_PSEUDO_REGS): New macro.
4707 (registers_e500): New register set for e500.
4708 (variants): Add e500 variant.
4709 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4710 before setting architectural dependent variations. Initialize ev
4711 registers numbers. Add case for e500 architecture. Set the
4712 number of pseudo registers.
4713
4714 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4715
4716 * rs6000-tdep.c: Clean up comments.
4717
4718 2002-08-20 Andrew Cagney <cagney@redhat.com>
4719
4720 * h8300-tdep.c: Re-indent file.
4721
4722 2002-08-20 Jim Blandy <jimb@redhat.com>
4723
4724 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4725 default for this.
4726
4727 2002-08-20 Keith Seitz <keiths@redhat.com>
4728
4729 * breakpoints.c (watch_command_1): Use internal breakpoint
4730 when setting a watchpoint_scope breakpoint.
4731
4732 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4733
4734 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4735 (build_builtin_type_vec64i): Ditto.
4736 (build_builtin_type_vec128): Ditto.
4737 (build_builtin_type_vec128i): Ditto.
4738
4739 2002-08-19 Michael Snyder <msnyder@redhat.com>
4740
4741 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4742 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4743 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4744 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4745 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4746 CALL_DUMMY_ADDRESS): Delete.
4747 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4748 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4749 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4750 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4751 push_return_address.
4752 (mips_register_raw_size, mips_eabi_use_struct_convention,
4753 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4754 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4755 mips_init_extra_frame_info, mips_eabi_push_arguments,
4756 mips_n32n64_push_arguments, mips_push_return_address,
4757 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4758 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4759
4760 2002-08-19 Michael Snyder <msnyder@redhat.com>
4761
4762 * mips-tdep.c (mips_frame_num_args): New function.
4763 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4764 frame_saved_pc, frame_args_address, frame_locals_address,
4765 frame_num_args, and frame_args_skip.
4766 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4767 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4768 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4769 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4770
4771 2002-08-20 Michael Snyder <msnyder@redhat.com>
4772
4773 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4774 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4775 * mips-tdep.c (mips_store_struct_return): New function.
4776 (mips_extract_struct_value_address): New function.
4777 (mips_gdbarch_init): Set store_struct_return and
4778 extract_struct_value_address.
4779
4780 2002-08-20 David Carlton <carlton@math.stanford.edu>
4781
4782 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4783 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4784 (read_file_scope): Check that line_header is nonzero before
4785 decoding macro information.
4786
4787 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4788
4789 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4790 flag the general-purpose registers as floating-point on targets
4791 that don't support the floating-point registers.
4792
4793 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4794
4795 * rs6000-tdep.c (altivec_register_p): Delete.
4796 (rs6000_do_altivec_registers): Delete.
4797 (rs6000_altivec_registers_info): Delete.
4798 (rs6000_do_registers_info): Delete.
4799 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4800 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4801
4802 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4803
4804 * infcmd.c (do_registers_info): Print vector registers in hex
4805 format only.
4806 (print_vector_info): Check that printing registers
4807 makes sense.
4808 (print_float_info): Ditto.
4809
4810 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4811
4812 * mips-tdep.c (mips_gdbarch_init): Update.
4813 (mips_o32_extract_return_value): Rewrite.
4814 (mips_o32_store_return_value): Rewrite.
4815 (mips_o32_xfer_return_value): New function.
4816 (mips_xfer_register): Tweak debug print message. Allow for
4817 buf_offset when dumping the value transfered.
4818
4819 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4820
4821 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4822 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4823 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4824 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4825 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4826
4827 2002-08-14 Michael Snyder <msnyder@redhat.com>
4828
4829 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4830
4831 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4832
4833 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4834 register.
4835 (P): New macro to define a register as a pseudo register.
4836 (R, R4, R8, R16, FR32, R64, R0): Updated.
4837 (struct variant): Add new fields for number of pseudo registers
4838 and number of total registers.
4839 (tot_num_registers): New macro replacing....
4840 (num_registers): ...deleted macro.
4841 (num_registers): New function.
4842 (num_pseudo_registers): New function.
4843 (variants): Update all variants to intialize new fields correctly.
4844 Postpone initialization of number of pseudo regs and real regs.
4845 (init_variants): New function.
4846 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4847 registers offsets.
4848
4849 2002-08-19 David Carlton <carlton@math.stanford.edu>
4850
4851 * valops.c (search_struct_field): Change error message to treat
4852 return value of 0 from value_static_field as meaning that field is
4853 optimized out.
4854 (value_struct_elt_for_reference): Ditto.
4855 * values.c (value_static_field): Treat an unresolved location the
4856 same as a nonexistent symbol. Fix PR gdb/635.
4857 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4858 enclosed. Fix PR gdb/574.
4859 * MAINTAINERS: Add self to Write After Approval list.
4860
4861 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4862
4863 * mips-tdep.c (mips_xfer_register): New function.
4864 (mips_n32n64_extract_return_value): Rewrite.
4865 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4866 instead of deprecated_extract_return_value.
4867
4868 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4869
4870 * rs6000-tdep.c (TDEP): Delete macro.
4871 (branch_dest): Replace use of TDEP macro with its body.
4872 (rs6000_pop_frame): Ditto.
4873 (rs6000_push_arguments): Ditto.
4874 (rs6000_skip_trampoline_code): Ditto.
4875 (rs6000_frame_saved_pc): Ditto.
4876 (rs6000_frame_chain): Ditto.
4877 (rs6000_register_name): Ditto.
4878 (rs6000_register_byte): Ditto.
4879 (rs6000_register_raw_size): Ditto.
4880 (rs6000_register_virtual_type): Ditto.
4881 (rs6000_register_convertible): Ditto.
4882 (rs6000_convert_from_func_ptr_addr): Ditto.
4883
4884 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4885
4886 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4887 conditionally.
4888 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4889 MIPS_LINUX_JB_ELEMENT_SIZE.
4890 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4891 for MAX_REGISTER_RAW_SIZE arrays.
4892 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4893 MIPS_LINUX_JB_ELEMENT_SIZE.
4894
4895 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4896
4897 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4898
4899 2002-08-19 Aidan Skinner <aidan@velvet.net>
4900
4901 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4902 ada-valprint.c ada-tasks.c.
4903 (YYFILES): Add ada-exp.y.
4904 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4905 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4906 (ada-exp.tab.o): New target.
4907
4908 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4909
4910 * regcache.c (regcache_xfer_part): New function.
4911 (regcache_raw_read_part): New function.
4912 (regcache_raw_write_part): New function.
4913 (regcache_cooked_read_part): New function.
4914 (regcache_cooked_write_part): New function.
4915 * regcache.h (regcache_raw_read_part): Declare.
4916 (regcache_raw_write_part): Declare.
4917 (regcache_cooked_read_part): Declare.
4918 (regcache_cooked_write_part): Declare.
4919
4920 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4921
4922 * remote.c (remote_open_1): Add async_p.
4923 (remote_async_open_1): Delete.
4924 (open_remote_target): Delete.
4925 (remote_open, extended_remote_open): Update calls to remote_open_1.
4926 (remote_async_open, extended_remote_async_open): Call
4927 remote_open_1 instead of remote_async_open_1.
4928
4929 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4930
4931 * blockframe.c: Fix a few coding standard violations.
4932
4933 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4934
4935 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4936 here from ...
4937 * config/i386/tm-i386sco5.h: ... here. File removed.
4938 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4939
4940 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4941 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4942 (TM_FILE): Set to tm-i386.h.
4943 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4944 * config/i386/tm-i386v.h: Remove file.
4945 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4946 instead of "i386/tm-i386v.h".
4947 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4948 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4949 "i386/tm-i386v.h".
4950 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4951 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4952 "i386/tm-i386.h".
4953
4954 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4955
4956 * config/i386/nm-i386v.h: Add protection against
4957 multiple-inclusion.
4958 (i386_register_u_addr): Remove prototype.
4959 (register_u_addr): New prototype.
4960 (REGISTER_U_ADDR): Redefine accordingly.
4961 * i386v-nat.c: Improve several comments.
4962 (i386_register_u_addr): Change signature and rename to
4963 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4964 ubase variable.
4965
4966 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4967
4968 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4969 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4970 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4971 deprecated_extract_return_value.
4972 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4973 rename mips_o32o64_push_arguments.
4974 (mips_gdbarch_init): Update.
4975 (mips_extract_return_value): Delete.
4976 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4977 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4978 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4979 (mips_n32n64_extract_return_value): Clone
4980 mips_extract_return_value.
4981 (mips_store_return_value): Delete.
4982 (mips_o32_store_return_value): Clone mips_store_return_value.
4983 (mips_o64_store_return_value): Clone mips_store_return_value.
4984 (mips_eabi_store_return_value): Clone mips_store_return_value.
4985 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4986
4987 2002-08-18 Aidan Skinner <aidan@velvet.net>
4988
4989 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4990 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4991
4992 2002-08-18 Aidan Skinner <aidan@velvet.net>
4993
4994 * ada-lang.c: Run through gdb_indent.sh.
4995 * ada-lang.h: Run through gdb_indent.sh.
4996 * ada-tasks.c: Run through gdb_indent.sh.
4997 * ada-typeprint.c: Run through gdb_indent.sh.
4998 * ada-valprint.c: Run through gdb_indent.sh.
4999
5000 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5001
5002 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5003 ABI.
5004
5005 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5006
5007 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5008
5009 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5010 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5011
5012 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5013 write_register_gen instead of write_register_bytes.
5014
5015 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5016 i[3456]-*-osf1mk* configurations have been made obsolete.
5017 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5018 i[3456]86-*-osf1mk* hosts obsolete.
5019 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5020 targets obsolete.
5021 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5022 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5023 config/i386/i386m3.mt, config/i386/nm-m3.h,
5024 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5025 config/i386/i386mk.mh, config/i386/i386mk.mt,
5026 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5027 obsolete.
5028 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5029 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5030 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5031
5032 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5033
5034 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5035 (hppa_value_returned_from_stack): Declare.
5036 (hppa_extract_return_value): Declare.
5037 * config/pa/hppa.mt: New file.
5038 * configure.tgt: Recognize hppa*-*-*.
5039 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5040
5041 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5042
5043 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5044 comment.
5045
5046 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5047
5048 * top.c (gdb_rl_operate_and_get_next): Make sure
5049 operate-and-get-next functions correctly even when the history
5050 list is completely filled.
5051
5052 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5053
5054 * MAINTAINERS (Target Instruction Set Architectures): Rename
5055 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5056 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5057 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5058 already listed under Host/Native.
5059
5060 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5061 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5062 mips*-*-*.
5063
5064 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5065
5066 * config/ia64/ia64.mt: New file.
5067 * config/alpha/alpha.mt: New file.
5068 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5069 ia64-linux-gnu. Mention that ia64-elf is broken.
5070 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5071
5072 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5073
5074 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5075 generic_func_frame_valid instead of func_frame_valid.
5076
5077 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5078
5079 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5080 procfs appears to be broken when debugging on multi-processor
5081 machines. So enable software single stepping in order to avoid
5082 using the procfs interface to do next/step operations, using
5083 internal breakpoints instead.
5084
5085 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5086 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5087 make this pc address equal to the value it would have if the
5088 system stepping capability was used. Also set a new flag used
5089 to ensure that we don't readjust the PC one more time later.
5090
5091 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5092 address by DECR_PC_AFTER_BREAK when software single step is
5093 in use for this architecture, as this has already been taken
5094 care of in handle_inferior_event().
5095
5096 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5097
5098 * infrun.c (handle_inferior_event): Minor reformatting, to make
5099 a rather long condition expression easier to read.
5100
5101 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5102
5103 * Makefile.in (gdbtk.o): Move to end of file.
5104 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5105 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5106 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5107 (gdbtk-wrapper.o, gdbres.o): Ditto.
5108
5109 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5110
5111 * Makefile.in (copying.o): Separate out compile rule.
5112 (hpux-thread.o, procfs.o, signals.o): Ditto.
5113 (v850ice.o, z8k-tdep.o): Ditto.
5114 (tui-file.o): Move to TUI section.
5115 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5116 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5117
5118 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5119
5120 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5121 skip_trampoline_code, for better namespace-proofing.
5122
5123 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5124
5125 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5126
5127 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5128
5129 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5130
5131 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5132 signal, check whether we hit a breakpoint before checking for a
5133 single step breakpoint. Otherwise, GDB fails to notice that a
5134 breakpoint has been hit when stepping onto a breakpoint.
5135
5136 2002-08-16 Keith Seitz <keiths@redhat.com>
5137
5138 * gdb-events.sh (clear_gdb_event_hooks): New function.
5139 * gdb-events.c: Regenerate.
5140 * gdb-events.h: Regenerate.
5141
5142 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5143
5144 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5145 not_a_sw_breakpoint.
5146 * breakpoint.h (bpstat_stop_status): Add parameter names.
5147
5148 2002-08-16 Grace Sainsbury <graces@redhat.com>
5149
5150 * remote.c (remote_insert_hw_breakpoint)
5151 (remote_remove_hw_breakpoint): Fix calculation of length field
5152 for Z-packet.
5153
5154 2002-08-15 Michael Snyder <msnyder@redhat.com>
5155
5156 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5157 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5158 (supply_fpregset): Ditto.
5159
5160 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5161 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5162 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5163 (TARGET_READ_SP): Delete.
5164 (DO_REGISTERS_INFO): Delete.
5165 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5166 Delete.
5167 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5168 from macros to functions.
5169
5170 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5171 (mips_register_convertible, mips_register_convert_to_virtual,
5172 mips_register_convert_to_raw): Make static.
5173 (mips_read_sp): New function.
5174 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5175 (mips_do_registers_info): Make static.
5176 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5177 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5178 (mips_register_convert_from_type, mips_register_convert_to_type):
5179 New functions.
5180 (mips_gdbarch_init): Set up function_start_offset,
5181 register_virtual_size, pc_in_sigtramp.
5182
5183 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5184
5185 * infcmd.c (vector_info): New function.
5186 (_initialize_infcmd): Add command "info vector".
5187 (print_vector_info): New function.
5188
5189 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5190 * gdbarch.h, gdbarch.c: Regenerate.
5191
5192 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5193
5194 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5195 ``print_all''. Only print vector registers when ``print_all''.
5196
5197 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5198
5199 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5200 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5201
5202 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5203 Add `args' parameter.
5204 * gdbarch.h, gdbarch.c: Regenerate.
5205
5206 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5207
5208 * infcmd.c (float_info): Call print_float_info.
5209 (print_float_info): New function. By default, print the
5210 floating-point registers.
5211
5212 * arch-utils.h (default_print_float_info): Delete declaration.
5213 * arch-utils.c (default_print_float_info): Delete function.
5214
5215 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5216
5217 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5218 out define.
5219
5220 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5221 FRAME.
5222
5223 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5224 * configure.host: Make i[3456]86-*-aix host obsolete.
5225 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5226 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5227 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5228 config/i386/xm-i386aix.h: Make files obsolete.
5229 * i386aix-nat.c: Make file obsolete.
5230 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5231 (i386aix-nat.o): Make target obsolete.
5232
5233 * config/i386/nm-gnu.h: Removed.
5234 * config/i386/nm-i386gnu.h: New file.
5235 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5236 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5237 Moved here from ...
5238 * config/i386/tm-i386gnu.h: ... here. Removed.
5239 * config/i386/xm-i386gnu.h: Removed.
5240 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5241 (NAT_FILE): Set to nm-i386gnu.h.
5242 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5243 * i386-tdep.c: New file.
5244 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5245 (i386gnu-tdep.o): Specify dependencies.
5246
5247 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5248
5249 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5250 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5251 Adjust a few comments to reflect reality a bit closer.
5252 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5253 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5254 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5255 target_insert_watchpoint, target_remove_watchpoint):
5256 Move defines to ...
5257 * config/i386/nm-i386sco5.h: ... here.
5258 (kernel_u_size): Add prototype. Improve a few comments and add
5259 protection against multiple inclusion.
5260
5261 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5262 out define.
5263
5264 * uw-thread.c (SP_ARG0): Define if not already defined.
5265 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5266
5267 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5268
5269 * config/i386/tm-i386.h: Don't include "regcache.h".
5270
5271 * i387-tdep.h (i387_print_float_info): New prototype.
5272 * i387-tdep.c (print_i387_value, print_i387_ext,
5273 print_i387_status_word, print_i387_control_word): Add `struct
5274 ui_file *' argument and use it for output.
5275 (i387_print_float_info): Renamed from i387_float_info. Add
5276 `struct gdbarch *' and `struct ui_file *' arguments and use the
5277 latter for output.
5278 * i386-tdep.c: Include "i387-tdep.h".
5279 (i386_gdbarch_init): Set print_float_info.
5280 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5281 (FLOAT_INFO): Remove define.
5282
5283 2002-08-13 Michael Snyder <msnyder@redhat.com>
5284
5285 * mips-tdep.c (mips_push_arguments): Rename to
5286 mips_eabi_push_arguments, and tune for EABI.
5287 (MIPS_REGS_HAVE_HOME_P): Delete.
5288 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5289 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5290 Delete references to mips_regs_have_home_p.
5291
5292 2002-08-14 Keith Seitz <keiths@redhat.com>
5293
5294 * Makefile.in (install-gdbtk): Create insight plugin directory.
5295 Install plugins.tcl file.
5296
5297 2002-08-14 Keith Seitz <keiths@redhat.com>
5298
5299 * configure.in: Move SUBDIRS to near top of the file so that
5300 --enable options may add things to it.
5301 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5302 * configure: Regenerate.
5303
5304 2002-08-13 Michael Snyder <msnyder@redhat.com>
5305
5306 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5307 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5308 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5309
5310 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5311
5312 * vax-tdep.c (vax_get_saved_register): Delete function.
5313 (vax_gdbarch_init): Update.
5314 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5315 (ns32k_gdbarch_init): Update.
5316 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5317 (alpha_gdbarch_init): Update.
5318
5319 2002-08-13 Andrew Cagney <cagney@redhat.com>
5320
5321 * regcache.c (init_regcache_descr): Overallocate the
5322 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5323 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5324 nr_raw_registers.
5325 (set_register_cached): Add range checking assertions. Use
5326 current_regcache.
5327
5328 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5329
5330 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5331 numbers for MMX registers.
5332
5333 2002-08-13 Andrew Cagney <cagney@redhat.com>
5334
5335 * i386-tdep.c (i386_gdbarch_init): Use
5336 generic_unwind_get_saved_register.
5337
5338 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5339
5340 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5341 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5342 target vector.
5343 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5344 Delete. Add comment regarding this now-deleted target method.
5345
5346 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5347
5348 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5349 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5350 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5351 real PC and the page number (if it's within the memory bank window).
5352 (m68hc11_pseudo_register_write): Likewise when saving.
5353 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5354 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5355 (m68hc11_register_raw_size): And use 32-bit for it.
5356 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5357 16K memory bank is used by the prog; also use the virtual pc.
5358
5359 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5360
5361 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5362 (m68hc11_gdbarch_init): Install it in gdbarch.
5363 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5364 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5365 (MSYMBOL_SIZE): New for documentation.
5366 (insn_return_kind): Enum to specify how a function returns.
5367 (frame_extra_info): Cleanup and record the return mode.
5368 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5369 register in address computation.
5370 (m68hc11_get_return_insn): New to obtain the return instruction used
5371 by the function.
5372 (m68hc11_frame_init_saved_regs): Take into account the return
5373 instruction used by the function for far and interrupt functions.
5374 (m68hc11_init_extra_frame_info): Take into account page register.
5375 (m68hc11_frame_args_address): Adjust according to the return mode.
5376 (show_regs): Print page register only when it's used.
5377
5378 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5379
5380 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5381 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5382 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5383 registers.
5384 (m68hc11_register_raw_size): Likewise.
5385
5386 2002-08-13 Andrew Cagney <cagney@redhat.com>
5387
5388 * i386-tdep.c (i386_register_name): Handle mmx registers.
5389 (mmx_regnum_p): New function.
5390 (i386_mmx_names): New array.
5391 (mmx_num_regs): New variable.
5392 (i386_pseudo_register_read): New function.
5393 (i386_pseudo_register_write): New function.
5394 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5395
5396 * regcache.c (regcache_raw_read_unsigned): New function.
5397 (regcache_raw_read_signed): New function.
5398 * regcache.h (regcache_raw_read_unsigned): Declare.
5399 (regcache_raw_read_signed): Declare.
5400
5401 2002-08-13 Andrew Cagney <cagney@redhat.com>
5402
5403 * regcache.c (regcache_raw_read_as_address): Delete function.
5404 (regcache_cooked_read_signed): New function.
5405 (regcache_cooked_read_unsigned): New function.
5406 * regcache.h (regcache_cooked_read_signed): Declare.
5407 (regcache_cooked_read_unsigned): Declare.
5408 (regcache_raw_read_as_address): Delete declaration.
5409
5410 * blockframe.c (generic_read_register_dummy): Use
5411 regcache_cooked_read_unsigned.
5412 * i386-tdep.c (i386_extract_struct_value_address): Use
5413 regcache_cooked_read_unsigned.
5414
5415 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5416
5417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5418 double sizes according to ELF ABI flags.
5419 (gdbarch_tdep): Record elf_flags.
5420
5421 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5422
5423 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5424 (m6812_prolog): They can appear in 68HC12 function prologue.
5425 (m68hc11_frame_chain): Cleanup.
5426
5427 2002-08-12 Andrew Cagney <cagney@redhat.com>
5428
5429 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5430 declarations.
5431 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5432 (i386_linux_register_raw_size): Delete function.
5433 (i386_linux_init_abi): Update.
5434 * i386-tdep.c (i386_register_raw_size): Delete function.
5435 (i386_register_byte): Delete function.
5436 (i386_gdbarch_init): Update.
5437 (i386_register_size): Delete array.
5438 (i386_register_offset): Delete array.
5439
5440 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5441 (REGISTER_RAW_SIZE): Delete macro.
5442 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5443 (REGISTER_BYTE): Delete macro.
5444
5445 2002-08-11 Aidan Skinner <aidan@velvet.net>
5446
5447 * ada-lang.c (ada_lookup_partial_symbol)
5448 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5449 prototype names so that grep ^func works properly.
5450
5451 * ada-lang.c (ada_array_element_type)
5452 (ada_lookup_partial_symbol): Fix typos in parameter list.
5453
5454 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5455 Fix prototype names so that grep ^func works properly.
5456
5457 2002-08-10 Andrew Cagney <cagney@redhat.com>
5458 Elena Zannoni <ezannoni@redhat.com>
5459 Martin M. Hunt <hunt@redhat.com>
5460
5461 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5462 (build_builtin_type_vec128i): Set the vector bit.
5463 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5464 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5465 (build_builtin_type_vec64): New function.
5466 (build_builtin_type_vec64i): New function.
5467 (build_gdbtypes): Initialize builtin_type_vec64 and
5468 builtin_type_vec64i.
5469
5470 2002-08-09 Andrew Cagney <cagney@redhat.com>
5471
5472 * regcache.c (regcache_dump): Compare the register offset
5473 with REGISTER_BYTE.
5474 * arch-utils.c (generic_register_byte): New function.
5475 * arch-utils.h (generic_register_byte): Declare.
5476 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5477 * gdbarch.h, gdbarch.c: Regenerate.
5478
5479 2002-08-09 Andrew Cagney <cagney@redhat.com>
5480
5481 * regcache.c: Include "gdbcmd.h"
5482 (_initialize_regcache): Add commands "maintenance print
5483 registers", "maintenance print raw-registers" and "maintenance
5484 print cooked-registers".
5485 (enum regcache_dump_what): Define.
5486 (dump_endian_bytes): New function.
5487 (regcache_dump): New function.
5488 (regcache_print): New function.
5489 (maintenance_print_registers): New function.
5490 (maintenance_print_raw_registers): New function.
5491 (maintenance_print_cooked_registers): New function.
5492 * Makefile.in (regcache.o): Update dependencies.
5493
5494 2002-08-09 Michael Snyder <msnyder@redhat.com>
5495
5496 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5497 (mips_push_arguments): Correct some comments. Use paddr_nz
5498 for printing addresses in debug output. Replace static
5499 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5500 (mips_n32n64_push_arguments): New function, cloned from
5501 mips_push_arguments and tuned for the n32/n64 ABI.
5502 (mips_push_register): Buffer needs dynamic allocation.
5503 (mips_print_register): Ditto.
5504 (do_gp_register_row): Ditto.
5505 (mips_store_return_value): Ditto.
5506 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5507
5508 2002-08-09 Don Howard <dhoward@redhat.com>
5509
5510 * memattr.c (mem_info_command): Print special case of upper bound
5511 as max CORE_ADDR + 1.
5512
5513 2002-08-08 Michael Snyder <msnyder@redhat.com>
5514
5515 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5516 returns structs by ref if they're too big to fit in two registers.
5517
5518 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5519
5520 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5521 saved regs value.
5522 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5523 mips_find_saved_regs().
5524 (mips_pop_frame): Likewise.
5525
5526 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5527
5528 * blockframe.c (frame_saved_regs_register_unwind): Revise
5529 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5530 frames are in use.
5531
5532 2002-08-09 Grace Sainsbury <graces@redhat.com>
5533
5534 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5535 T-packets; the 'a' is not taken as a register number.
5536 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5537 (remote_stopped_data_address): New functions; add to target
5538 vector.
5539 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5540 prototypes to match other implementations of this
5541 function. replace integer argument with pointer -- the length
5542 field in the Z-packet is the length of what is pointed to or 1 if
5543 pointer is null. Add to target vector.
5544 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5545 target vector.
5546
5547 From Mark Salter:
5548 * remote.c (remote_wait): Add support to extract optional
5549 watchpoint information from T-packet. Ignore unrecognized
5550 optional info in T-packet.
5551 (remote_async_wait): Ditto.
5552
5553 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5554
5555 * cli/cli-dump.c: Change fopen modes to use binary open modes
5556 as defined in include/fopen-bin.h throughout.
5557
5558 2002-08-08 Michael Snyder <msnyder@redhat.com>
5559
5560 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5561
5562 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5563
5564 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5565 assertion failure by returning early after a warning.
5566
5567 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5568
5569 * mips-tdep.c (mips_find_saved_regs): Make static.
5570 (mips_frame_init_saved_regs): New function.
5571 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5572 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5573 (mips_find_saved_regs): Delete declaration.
5574
5575 2002-08-08 Grace Sainsbury <graces@redhat.com>
5576
5577 * remote.c (remote_wait, remote_async_wait): Change
5578 thread_num from int to ULONGEST.
5579 (unpack_varlen_hex): Change result parameter from
5580 int * to ULONGEST *.
5581
5582 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5583
5584 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5585 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5586 powerpc*-*-*.
5587 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5588
5589 2002-08-08 Andrew Cagney <cagney@redhat.com>
5590
5591 * gcore.c (override_derive_stack_segment): Delete variable.
5592 (preempt_derive_stack_segment): Delete function.
5593 (derive_stack_segment): Delete function.
5594 (default_derive_stack_segment): Renamed to derive_stack_segment.
5595 (override_derive_heap_segment): Delete variable.
5596 (preempt_derive_heap_segment): Delete function.
5597 (derive_heap_segment): Delete function.
5598 (default_derive_heap_segment): Rename to derive_heap_segment.
5599
5600 2002-08-06 Michael Snyder <msnyder@redhat.com>
5601
5602 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5603 * mips-tdep.c (mips_EABI_use_struct_convention,
5604 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5605 New functions. (mips_use_struct_convention): Delete.
5606 (mips_gdbarch_init): set use_gdbarch_convention.
5607
5608 2002-08-06 Michael Snyder <msnyder@redhat.com>
5609
5610 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5611 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5612 mips_o32_reg_struct_has_addr): New functions.
5613 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5614
5615 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5616
5617 * regcache.c (pseudo_register): Delete function.
5618 (fetch_register): Delete function.
5619 (store_register): Delete function.
5620 (regcache_raw_read, legacy_read_register_gen): Use
5621 target_fetch_registers instead of fetch_register.
5622 (legacy_write_register_gen, regcache_raw_write): Use
5623 target_store_register instead of store_register.
5624 (write_register_bytes): Ditto.
5625
5626 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5627 (STORE_PSEUDO_REGISTER): Delete.
5628 * gdbarch.h, gdbarch.c: Regenerate.
5629
5630 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5631
5632 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5633 write dump file binary.
5634
5635 2002-08-05 Michael Snyder <msnyder@redhat.com>
5636
5637 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5638 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5639 (mips_gdbarch_init): Set N32 target to be mips64.
5640
5641 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5642
5643 * frame.c (find_saved_register): Break out of loop once saved
5644 register address is found. Don't mention sparc in loop comment
5645 anymore.
5646
5647 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5648
5649 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5650 mips_default_saved_regsize to 8.
5651
5652 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5653
5654 * gcore.c: Do not include <sys/procfs.h>.
5655 * Makefile.in (gcore.o): Update dependencies.
5656
5657 2002-08-06 Andrew Cagney <cagney@redhat.com>
5658
5659 * configure.tgt: Make arc-*-* obsolete.
5660 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5661 * MAINTAINERS: Make arc-elf obsolete.
5662 * arc-tdep.c: Make file obsolete.
5663 * config/arc/arc.mt: Ditto.
5664 * config/arc/tm-arc.h: Ditto.
5665
5666 2002-08-05 Theodore A. Roth <troth@verinet.com>
5667
5668 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5669
5670 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5671
5672 * mcore-tdep.c (mcore_gdbarch_init): Use
5673 generic_unwind_get_saved_register instead of
5674 generic_get_saved_register.
5675 * v850-tdep.c (v850_gdbarch_init): Ditto.
5676 * frv-tdep.c (frv_gdbarch_init): Ditto.
5677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5678 * s390-tdep.c (s390_gdbarch_init): Ditto.
5679 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5680 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5681 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5682
5683 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5684
5685 * objfiles.h: Add missing #include "symfile.h"
5686
5687 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5688
5689 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5690
5691 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5692 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5693 of FIELD_BITSIZE.
5694
5695 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5696
5697 * NEWS: Cleanup and nitpick.
5698
5699 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5700
5701 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5702
5703 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5704
5705 * Makefile.in (gdbtk-bp.o): Update dependencies.
5706 (gdbtk-register.o): Ditto.
5707 (gdbtk-varobj.o): Ditto.
5708
5709 2002-08-03 Andrew Cagney <cagney@redhat.com>
5710
5711 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5712 m68hc11_fetch_pseudo_register.
5713 (m68hc11_pseudo_register_write): Replace
5714 m68hc11_store_pseudo_register.
5715 (m68hc11_gdbarch_init): Update.
5716
5717 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5718
5719 * gdbarch.sh: Include "gdb_string.h".
5720 * gdbarch.c: Regenerate.
5721
5722 * regcache.c: Include "gdb_string.h".
5723 * ax-general.c: Ditto.
5724 * varobj.c: Ditto.
5725 * std-regs.c: Ditto.
5726 * fbsd-proc.c: Ditto.
5727 * thread.c: Ditto.
5728
5729 * Makefile.in (regcache.o): Update dependencies.
5730 (thread.o, gdbarch.o): Ditto.
5731 (ax-general.o, gdbarch.o): Ditto.
5732 (varobj.o, std-regs.o): Ditto.
5733 (fbsd-proc.o): Specify dependencies.
5734
5735 2002-08-02 Andrew Cagney <cagney@redhat.com>
5736
5737 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5738 regnum.
5739 (regcache_cooked_write): Ditto.
5740
5741 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5742
5743 * regcache.c (regcache_cooked_read): New function.
5744 (regcache_cooked_write): New function.
5745 (read_register_gen): Rewrite using regcache_cooked_read.
5746 (write_register_gen): Rewrite using regcache_cooked_write.
5747
5748 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5749 Declare.
5750
5751 2002-08-02 Andrew Cagney <cagney@redhat.com>
5752
5753 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5754 Replace the architecture methods register_read and register_write.
5755 * gdbarch.h, gdbarch.c: Regenerate.
5756 * regcache.c (init_regcache_descr): Update.
5757 (read_register_gen): Update.
5758 (write_register_gen): Update.
5759 (supply_register): Update comment.
5760
5761 * sh-tdep.c (sh_gdbarch_init): Update.
5762 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5763 `regcache' and `gdbarch' parameters. Make `buffer' a void
5764 pointer. Update code.
5765 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5766 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5767 void pointer. Update code.
5768 (sh64_register_write): Delete.
5769 (sh4_register_read): Delete.
5770 (sh64_register_read): Delete.
5771 (sh4_register_write): Delete.
5772 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5773 void pointer, `to' parameter a void pointer.
5774 (sh_sh64_register_convert_to_raw): Ditto.
5775
5776 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5777
5778 * mips-tdep.c (mips_register_virtual_type): Use architecture
5779 invariant return values.
5780
5781 2002-08-01 Andrew Cagney <cagney@redhat.com>
5782
5783 * linux-proc.c: Include "gdb_string.h".
5784 * Makefile.in (linux-proc.o): Update dependency list.
5785
5786 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5787
5788 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5789 comment.
5790
5791 2002-08-01 Grace Sainsbury <graces@redhat.com>
5792
5793 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5794 to_insert_watchpoint, to_remove_watchpoint,
5795 to_stopped_by_watchpoint, to_stopped_data_address,
5796 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5797 target vecctor. Define their corresponding macros so they call
5798 them.
5799
5800 * target.c: Add default and debug versions of for
5801 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5802 to_insert_watchpoint, to_remove_watchpoint,
5803 to_stopped_by_watchpoint, to_stopped_data_address,
5804 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5805
5806 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5807
5808 * mips-tdep.c (mips_register_virtual_type): New function.
5809 (mips_gdbarch_init): Register mips_register_virtual_type()
5810 with gdbarch machinery.
5811 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5812 this file instead of tm-bigmips.h.
5813 (MIPS_REGSIZE): Delete this macro.
5814 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5815 multiarch version in mips-tdep.c will be found.
5816
5817 2002-08-01 Andrew Cagney <cagney@redhat.com>
5818
5819 * NEWS: Menion that CHILL has been made obsolete.
5820
5821 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5822 * stabsread.c (read_range_type): Ditto.
5823 * gdbtypes.h: Ditto.
5824 * language.c (binop_type_check): Ditto.
5825 (binop_result_type): Ditto.
5826 (integral_type): Ditto.
5827 (character_type): Ditto.
5828 (string_type): Ditto.
5829 (boolean_type): Ditto.
5830 (structured_type): Ditto.
5831 (lang_bool_type): Ditto.
5832 (binop_type_check): Ditto.
5833 * language.h (_LANG_chill): Ditto.
5834 * dwarfread.c (set_cu_language): Ditto.
5835 * dwarfread.c (CHILL_PRODUCER): Ditto.
5836 * dwarfread.c (handle_producer): Ditto.
5837 * expression.h (enum exp_opcode): Ditto.
5838 * eval.c: Ditto for comments.
5839 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5840 * expprint.c (print_subexp): Ditto.
5841 (print_subexp): Ditto.
5842 * valops.c (value_cast): Ditto.
5843 (search_struct_field): Ditto.
5844 * value.h (COERCE_VARYING_ARRAY): Ditto.
5845 * symfile.c (init_filename_language_table): Ditto.
5846 (add_psymbol_with_dem_name_to_list): Ditto.
5847 * valarith.c (value_binop): Ditto.
5848 (value_neg): Ditto.
5849 * valops.c (value_slice): Ditto.
5850 * symtab.h (union language_specific): Ditto.
5851 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5852 (SYMBOL_DEMANGLED_NAME): Ditto.
5853 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5854 * defs.h (enum language): Ditto.
5855 * symtab.c (got_symtab): Ditto.
5856 * utils.c (fprintf_symbol_filtered): Ditto.
5857
5858 * ch-typeprint.c: Make file obsolete.
5859 * ch-valprint.c: Make file obsolete.
5860 * ch-lang.h: Make file obsolete.
5861 * ch-exp.c: Make file obsolete.
5862 * ch-lang.c: Make file obsolete.
5863
5864 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5865 CHILL_LIB.
5866 (TARGET_FLAGS_TO_PASS): Ditto.
5867 (CHILLFLAGS): Obsolete.
5868 (CHILL): Obsolete.
5869 (CHILL_FOR_TARGET): Obsolete.
5870 (CHILL_LIB): Obsolete.
5871 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5872 ch-valprint.c.
5873 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5874 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5875 ch-lang.o.
5876 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5877 targets.
5878
5879 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5880
5881 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5882 This does not change anything at the moment, but will be helpful
5883 later when full Ada support is integrated.
5884
5885 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5886
5887 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5888 help message.
5889
5890 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5891
5892 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5893 and save it in a local variable. Use variable in later test.
5894
5895 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5896
5897 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5898 test. (Thanks to Daniel Jacobowitz.)
5899
5900 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5901
5902 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5903 (mips_abi_strings): Add "n64".
5904 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5905
5906 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5907
5908 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5909 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5910
5911 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5912
5913 * utils.c (host_pointer_to_address, address_to_host_pointer):
5914 Use gdb_assert() instead of explicit call to internal_error().
5915
5916 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5917
5918 * Makefile.in (rs6000-nat.o): Update dependencies.
5919
5920 From Nicholas Duffek:
5921 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5922 (aix-thread.o): New rule.
5923 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5924 * config/powerpc/aix432.mh: New file.
5925
5926 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5927
5928 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5929 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5930 (fetch_core_registers, ppc_linux_supply_gregset)
5931 (ppc_linux_supply_fpregset): New functions.
5932 (ppc_linux_regset_core_fns): New.
5933 (_initialize_ppc_linux_tdep): Call add_core_fns.
5934 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5935 and ppc_linux_supply_gregset.
5936 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5937 (supply_fpregset): Call ppc_linux_supply_fpregset.
5938 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5939 corelow.o.
5940 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5941
5942 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5943
5944 * symtab.c (lookup_symbol): Demangle before lowercasing.
5945
5946 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5947
5948 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5949 declaration.
5950 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5951 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5952 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5953 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5954 "gdb_string.h".
5955 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5956 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5957 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5958 (avr-tdep.o, mon960-rom.o): Ditto.
5959 (aout_stabs_gnu_h): Define.
5960 (symtab_h): Remove $(gdb_obstack_h).
5961
5962 2002-07-30 Jim Blandy <jimb@redhat.com>
5963
5964 Patch from David Carlton <carlton@math.stanford.edu>:
5965 * gdbinit.in: Move the `dir' commands that add GDB's own source
5966 directory to the search path to the end, so that the `gdb' source
5967 directory will be searched first.
5968
5969 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5970
5971 * gdb_obstack.h: New file.
5972 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5973 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5974 * objfiles.h: Include "gdb_obstack.h".
5975 * Makefile.in (gdb_obstack_h): Define.
5976 (symtab_h): Add $(gdb_obstack_h).
5977 (objfiles_h): Add $(gdb_obstack_h).
5978
5979 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5980 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5981 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5982 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5983 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5984 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5985 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5986 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5987
5988 * Makefile.in (bcache.o): Update dependencies.
5989 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5990 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5991 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5992 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5993 (stabsread.o, symfile.o, symmisc.o): Ditto.
5994 (symtab.o, typeprint.o, macroexp.o): Ditto.
5995 (macrotab.o, mdebugread.o): Ditto.
5996 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5997 (coff_ecoff_h, aout_aout64_h): Define.
5998 (aout_stabs_gnu_h, libaout_h): Define.
5999
6000 2002-07-29 Andrew Cagney <cagney@redhat.com>
6001
6002 * regcache.c (struct regcache_descr): Rename nr_registers to
6003 nr_cooked_registers. Revise comments describing the structure
6004 member fields.
6005 (init_regcache_descr): Update.
6006 (init_legacy_regcache_descr): Update.
6007 (read_register_gen, write_register_gen): When a cooked register in
6008 the raw register range, directly access the value from the raw
6009 register cache.
6010
6011 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6012
6013 * z8k-tdep.c: Do not include "obstack.h".
6014 * h8300-tdep.c, h8500-tdep.c: Ditto.
6015 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6016 * valprint.c, v850-tdep.c: Ditto.
6017 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6018 * mn10200-tdep.c: Ditto.
6019
6020 * Makefile.in (z8k-tdep.o): Update dependencies.
6021 (m68hc11-tdep.o, valprint.o): Ditto.
6022 (v850-tdep.o, d10v-tdep.o): Ditto.
6023 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6024 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6025 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6026 (sh_opc_h, gdb_sim_sh_h): Define.
6027 (elf_sh_h, elf_bfd_h): Define.
6028 (opcode_m68hc11_h): Define.
6029 (OPCODES_SRC, OPCODES_DIR): define.
6030 (OPCODES): Use $(OPCODES_DIR).
6031 (gdb_sim_d10v_h): Rename sim_d10v_h.
6032 (gdb_sim_arm_h): Rename sim_arm_h.
6033
6034 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6035
6036 * utils.c (host_pointer_to_address, address_to_host_pointer):
6037 Change internal_error() message to indicate function responsible
6038 for the error.
6039
6040 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6041
6042 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6043 calls to local_hex_string_custom().
6044
6045 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6046
6047 * irix5-nat.c: Move IRIX shared library support from here...
6048 * solib-irix.c: ...to here. Revised substantially to work with
6049 generic solib framework.
6050
6051 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6052 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6053 * mips-irix-tdep.c: New file.
6054
6055 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6056 (mips-irix-tdep.o, solib-irix.o): New rules.
6057 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6058 solib-irix.o.
6059 * config/mips/irix6.mt (TDEPFILES): Likewise.
6060 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6061
6062 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6063
6064 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6065 disabled (via ``#if 0'') includes.
6066
6067 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6068
6069 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6070 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6071 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6072 Add support for the fpscr register.
6073 * rs6000-nat.c (regmap, fetch_inferior_registers)
6074 (store_inferior_registers, fetch_core_registers): Likewise.
6075
6076 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6077
6078 * rs6000-nat.c (language.h): Include.
6079 (special_regs): Delete this array.
6080 (regmap): New function.
6081 (fetch_register, store_register): Use regmap() to map gdb
6082 register numbers to ptrace register numbers. Also, use
6083 outputs from regmap() to make decisions regarding type of
6084 ptrace() call to make. In particular, don't compare against
6085 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6086 (fetch_inferior_registers, store_inferior_registers): Where
6087 possible, obtain register numbers from tdep struct. Don't
6088 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6089 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6090 (LAST_UISA_SP_REGNUM): Delete.
6091
6092 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6093
6094 * rs6000-nat.c (ppc-tdep.h): Include.
6095 (fetch_registers, store_register, fetch_core_registers): Don't
6096 access registers[] directly. Instead, use supply_register() or
6097 regcache_collect() as appropriate.
6098 (find_toc_address): Format hex address with local_hex_string().
6099
6100 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6101
6102 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6103 bfd/elf32-frv.c.
6104
6105 2002-07-24 Tom Tromey <tromey@redhat.com>
6106
6107 * jv-exp.y: Marked all strings with _().
6108 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6109 internal_error.
6110 (MethodInvocation, CastExpression, parse_number, yyerror,
6111 java_type_from_name, push_expression_name, yylex): Typo fixes.
6112
6113 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6114
6115 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6116 (tee_file_flush, tee_file_write, tee_file_fputs)
6117 (tee_file_isatty): New.
6118 * ui-file.h (tee_file_new): Add prototype.
6119
6120 2002-07-24 Aidan Skinner <aidan@velvet.net>
6121
6122 * ada-lang.c: Change k&r style function definitions to prototyped
6123 form.
6124 * ada-typeprint.c: Change k&r style function definitions to prototyped
6125 form.
6126 * ada-valprint.c: Change k&r style function definitions to prototyped
6127 form.
6128
6129 2002-07-24 Andrew Cagney <cagney@redhat.com>
6130
6131 * README: Remove reference to remote-bug.
6132 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6133 remote-bug.c.
6134 (m88k-nat.o): Delete rule.
6135 (m88k-tdep.o): Delete rule.
6136 (remote-bug.o): Delete rule.
6137 * MAINTAINERS: Mark as obsolete.
6138 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6139 * m88k-tdep.c: Make file obsolete.
6140 * config/m88k/m88k.mh: Ditto.
6141 * config/m88k/delta88v4.mh: Ditto.
6142 * config/m88k/delta88v4.mt: Ditto.
6143 * config/m88k/delta88.mt: Ditto.
6144 * config/m88k/delta88.mh: Ditto.
6145 * remote-bug.c: Ditto.
6146 * config/m88k/tm-delta88.h: Ditto.
6147 * config/m88k/nm-delta88v4.h: Ditto.
6148 * config/m88k/xm-delta88.h: Ditto.
6149 * config/m88k/xm-dgux.h: Ditto.
6150 * config/m88k/tm-m88k.h: Ditto.
6151 * config/m88k/nm-m88k.h: Ditto.
6152 * config/m88k/tm-delta88v4.h: Ditto.
6153 * m88k-nat.c: Ditto.
6154 * cxux-nat.c: Ditto.
6155 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6156 and m88*-*-* obsolete.
6157 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6158 m88*-*-* obsolete.
6159
6160 2002-07-24 Andrew Cagney <cagney@redhat.com>
6161
6162 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6163 constant. Same for local pointer variables.
6164 (extract_signed_integer): Ditto.
6165 * defs.h (extract_unsigned_integer): Update.
6166 (extract_signed_integer): Update.
6167
6168 2002-07-24 Andrew Cagney <cagney@redhat.com>
6169
6170 * regcache.c (regcache_raw_write): Change buf parameter to a
6171 constant void pointer.
6172 (regcache_raw_read): Change buf parameter to a void pointer.
6173 (legacy_write_register_gen): Change myaddr parameter a constant
6174 void pointer.
6175 (supply_register): Change val parameter to a const void pointer.
6176 * regcache.h (regcache_raw_write): Update declaration.
6177 (regcache_raw_read): Update declaration.
6178 (supply_register): Update declaration.
6179
6180 2002-07-24 Tom Tromey <tromey@redhat.com>
6181
6182 * defs.h (gdb_readline_wrapper): Declare.
6183 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6184 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6185 * top.c (gdb_readline_wrapper): New function.
6186 (command_line_input): Use it.
6187
6188 2002-07-24 Andrew Cagney <cagney@redhat.com>
6189
6190 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6191 regcache_read and regcache_write.
6192 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6193 * regcache.c: Update.
6194 * sh-tdep.c (sh64_push_arguments): Update comment.
6195 (sh_pseudo_register_read): Update.
6196 (sh_pseudo_register_write): Update.
6197 (sh4_register_read): Update.
6198 (sh4_register_write): Update.
6199 (sh64_pseudo_register_read): Update.
6200 (sh64_pseudo_register_write): Update.
6201 (sh64_register_read): Update.
6202 (sh64_register_write): Update.
6203 * i386-tdep.c (i386_extract_return_value): Update.
6204 (i386_extract_struct_value_address): Update.
6205 (i386_extract_return_value): Update.
6206 * blockframe.c (generic_read_register_dummy): Update.
6207 (generic_call_dummy_register_unwind): Update
6208 * infrun.c (write_inferior_status_register): Update.
6209
6210 2002-07-23 Jim Blandy <jimb@redhat.com>
6211
6212 * parser-defs.h (expression_context_pc): Make this extern.
6213 (Thanks to Michael Snyder.)
6214
6215 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6216
6217 GDB 5.2.1 released from 5.2 branch.
6218 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6219 * README: Update to mention 5.2.1.
6220
6221 2002-07-23 Mark Salter <msalter@redhat.com>
6222
6223 * remote.c (remote_read_bytes): Fix check for error.
6224
6225 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6226
6227 * aix-thread.c (language.h): Include.
6228 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6229 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6230 Print newlines at end of debug messages.
6231 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6232 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6233
6234 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6235
6236 * aix-thread.c (ppc-tdep.h): Include.
6237 (special_register_p): New function.
6238 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6239 (store_regs_user_thread): Use register number information from
6240 gdbarch_tdep struct instead of hardcoded offsets relative to
6241 FIRST_UISA_SP_REGNUM.
6242 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6243 special_register_p() instead of using FPLAST_REGNUM and
6244 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6245 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6246 will be MQ's register number.
6247
6248 2002-07-22 Michael Snyder <msnyder@redhat.com>
6249
6250 * aix-thread.c (ops): Rename to aix_thread_ops.
6251 (base_ops): Rename to base_target.
6252 (ops_attach): Rename to aix_thread_attach.
6253 (ops_detach): Rename to aix_thread_detach.
6254 (ops_resume): Rename to aix_thread_detach.
6255 (ops_wait): Rename to aix_thread_wait.
6256 (ops_kill): Rename to aix_thread_kill.
6257 (init_ops): Rename to init_aix_thread_ops.
6258 (ops_fetch_register): Rename to aix_thread_fetch_register.
6259 (ops_store_register): Rename to aix_thread_store_register.
6260 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6261 (ops_thread_alive): Rename to aix_thread_thread_alive.
6262 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6263 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6264 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6265 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6266 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6267 (store_regs_lib): Rename to store_regs_user_thread.
6268 (store_regs_kern): Rename to store_regs_kernel_thread.
6269
6270 2002-07-22 Michael Snyder <msnyder@redhat.com>
6271
6272 * aix-thread.c (ops_prepare_to_store): Eliminate.
6273 (init_ops): Don't initialize ops.prepare_to_store.
6274 (store_regs_kern): Pre-fetch register buffers from child,
6275 because some registers may not be in the cache. Copy
6276 regs from register cache only if they are cached.
6277 (store_regs_lib): Copy regs from register cache only
6278 if they are cached.
6279 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6280 fill_gprs64): Ditto.
6281
6282 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6283
6284 * aix-thread.c (gdb_assert.h): Include.
6285 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6286 register sizes (from register cache) match size of buffer holding
6287 register data.
6288 (fill_sprs32): Change parameter types to match those in the ptrace()
6289 buffer.
6290 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6291 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6292
6293 2002-07-22 Michael Snyder <msnyder@redhat.com>
6294
6295 * aix-thread.c (supply_sprs64): Cosmetic change.
6296 (supply_sprs32): Cosmetic change.
6297 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6298 (fill_sprs64): Use regcache_collect instead of read_register.
6299 (store_regs_lib): Use regcache_collect instead of
6300 read_register. Use fill_sprs32 instead of fill_sprs64,
6301 if debugging a 32-bit architecture.
6302 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6303 out of the register cache, instead of passing a pointer into
6304 the register cache directly to ptrace. Use regcache_collect
6305 insteaad of read_register.
6306 (ops_prepare_to_store): Use target_read_registers instead
6307 of read_register_bytes.
6308
6309 2002-07-20 Aidan Skinner <aidan@velvet.net>
6310
6311 * MAINTAINERS: Add self under write after approval.
6312
6313 2002-07-20 Aidan Skinner <aidan@velvet.net>
6314
6315 * ada-tasks.c: Change k&r style function definitions to prototyped
6316 form.
6317
6318 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6319
6320 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6321 * x86-64-tdep.c: Include "objfiles.h".
6322 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6323 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6324
6325 2002-07-17 Michal Ludvig <michal@suse.cz>
6326
6327 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6328 (update_context): Initialise cfa variable.
6329
6330 2002-07-17 Michael Snyder <msnyder@redhat.com>
6331
6332 * aix-thread.c: Shorten some long lines.
6333 Bring comments into line with code spec.
6334
6335 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6336
6337 * infrun.c: Re-indent using gdb_indent.sh.
6338
6339 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6340
6341 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6342 Leave the indentation temporarily untouched, to minimize the diffs.
6343
6344 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6345
6346 * stabsread.c: Make os9k sections of the code obsolete,
6347 for real this time.
6348 * stabsread.h: Make os9k sections of the code obsolete.
6349
6350 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6351
6352 * linux-low.c (regsets_store_inferior_registers): Add free()
6353 at the end of a loop to prevent memory leak.
6354 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6355 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6356 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6357 line a comment.
6358 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6359
6360 2002-07-17 Jim Blandy <jimb@redhat.com>
6361
6362 * macrocmd.c (info_macro_command): Remove newline from error
6363 message.
6364
6365 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6366
6367 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6368 (sh_gdbarch_init): Use it for sh-dsp.
6369
6370 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6371
6372 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6373 64-bit DWARF2 format.
6374
6375 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6376
6377 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6378 <sys/proc.h> when not available.
6379
6380 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6381
6382 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6383 * stabsread.c: Make os9k sections of the code obsolete.
6384 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6385 * config/i386/i386os9k.mt: Make file obsolete.
6386 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6387 (COMMON_OBS): Remove os9kread.o
6388 (SFILES): Remove os9kread.c.
6389 (os9kread.o, remote-os9k.o): Make target obsolete.
6390 * remote-os9k.c: Make file obsolete.
6391 * os9kread.c: Make file obsolete.
6392 * Makefile.in
6393
6394 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6395
6396 * NEWS: Mention that the FR30 has been made obsolete.
6397 * fr30-tdep.c: Make file obsolete.
6398 * config/fr30/tm-fr30.h: Ditto.
6399 * config/fr30/fr30.mt: Ditto.
6400 * configure.tgt: Make fr30-*-elf obsolete.
6401 * MAINTAINERS: Make fr30-elf obsolete.
6402
6403 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6404
6405 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6406 found is not inside a section.
6407
6408 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6409
6410 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6411 strerror().
6412 (pdc_realloc): Use xrealloc() instead of realloc().
6413
6414 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6415
6416 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6417 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6418 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6419 macros.
6420
6421 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6422
6423 * aix-thread.c (ptrace_check): Eliminate goto.
6424 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6425 problem.
6426
6427 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6428
6429 * aix-thread.c (gdbcmd.h): Include.
6430 (DEBUG, DBG, DBG2, dbg): Eliminate.
6431 (debug_aix_thread): New static global.
6432 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6433 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6434 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6435 invocations to DBG and DBG2 macros to test against
6436 ``debug_aix_thread'' and call fprintf_unfiltered().
6437 (_initialize_aix_thread): Add new command "set debug aix-thread".
6438
6439 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6440
6441 From Gerhard Tonn <TON@de.ibm.com>:
6442 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6443 instead of supply_register.
6444
6445 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6446
6447 * dwarf2cfi.c: Include "gdb_assert.h".
6448 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6449 non-NULL.
6450 (update_context): Do not use __func__. Add missing ``break''.
6451 (update_context): Do not use __func__.
6452
6453 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6454
6455 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6456 and its setting. Set gdbarch instruction printing functions
6457 directly. For non-rs6000 case use new function
6458 gdb_print_insn_powerpc.
6459 (gdb_print_insn_powerpc): New function.
6460
6461 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6462
6463 * NEWS: Mention that the d30v has been marked obsolete.
6464 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6465 * configure.tgt: Mark d30v-*-* as obsolete.
6466 * d30v-tdep.c: Mark file as obsolete.
6467 * config/d30v/d30v.mt: Ditto.
6468 * config/d30v/tm-d30v.h: Ditto.
6469
6470 2002-07-13 Aidan Skinner <aidan@velvet.net>
6471
6472 * ada-tasks.c (add_task_entry): replace calls to
6473 malloc() with xmalloc
6474 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6475
6476 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6477 ada_finish_decode_line_1, all_sals_for_line
6478 ada_breakpoint_rewrite): replace calls to free() with xfree()
6479
6480 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6481
6482 From Nicholas Duffek (with minor changes by Martin Hunt,
6483 Louis Hamilton, and Kevin Buettner):
6484 * aix-thread.c: New file.
6485
6486 2002-07-12 Petr Sorfa <petrs@caldera.com>
6487
6488 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6489 complaint for invalid attribute class or form.
6490 (read_func_scope): DW_AT_frame_base
6491 better handling of DW_AT_block*.
6492 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6493 better handling of DW_AT_block*.
6494 (read_common_block): DW_AT_location
6495 better handling of DW_AT_block*.
6496 (read_partial_die): DW_AT_location better handling
6497 of DW_AT_block*.
6498 (new_symbol): DW_AT_external better handling of
6499 DW_AT_block*. Proper initialization of variable
6500 "addr".
6501 (attr_form_is_block): New function that returns true
6502 if the attribute's form is of DW_FORM_block*.
6503
6504 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6505
6506 * valops.c (find_method_list): Remove comment about
6507 removed STATIC_MEMFUNCP argument.
6508 (value_find_oload_method_list): Likewise.
6509
6510 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6511
6512 From Nicholas Duffek:
6513 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6514 target_new_objfile_hook.
6515
6516 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6517
6518 From Nicholas Duffek:
6519 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6520 csect.
6521
6522 2002-07-12 Andrew Cagney <cagney@redhat.com>
6523
6524 * MAINTAINERS: Mention --enable-sim-build-warnings.
6525 (m68hc11-elf): Disable sim build warnings.
6526 (m32r-elf): Mark as broken obsolete candidate.
6527 (x86_64-linux-gnu): Mark as buildable with -Werror.
6528 (arm-elf): Change -w to ``,'' which enables warnings but not
6529 -Werror.
6530
6531 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6532
6533 * bcache.h: Update copyright.
6534 (struct bstring, struct bcache): Move definition to "bcache.c".
6535 Replaced by opaque declaration.
6536 (bcache_xfree): Replace free_bcache.
6537 (bcache_xmalloc, bcache_memory_used): Declare.
6538
6539 * bcache.c: Update copyright.
6540 (struct bstring, struct bcache): Moved to here from "bcache.h".
6541 Update comments.
6542 (bcache_xmalloc, bcache_memory_used): New functions.
6543 (bcache_xfree): Replace function free_bcache.
6544
6545 * Makefile.in (objfiles.o): Add $(bcache_h).
6546 (objfiles_h): Remove $(bcache_h).
6547 (symfile.o): Add $(bcache_h).
6548
6549 * symmisc.c: Update copyright.
6550 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6551 (print_objfile_statistics): Use bcache_memory_used.
6552
6553 * symfile.c: Include "bcache.h".
6554 (reread_symbols): Use bcache_xfree.
6555 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6556 (add_psymbol_to_list): Pass psymbol_cache by value.
6557 (add_psymbol_with_dem_name_to_list): Ditto.
6558
6559 * objfiles.h: Update copyright.
6560 (struct bcache): Declare opaque. Do not include "bcache.h".
6561 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6562 bcache'' pointers.
6563 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6564
6565 * objfiles.c: Include "bcache.h". Update copyright.
6566 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6567 macro_cache.
6568 (free_objfile): Use bcache_xfree.
6569
6570 2002-07-11 Grace Sainsbury <graces@redhat.com>
6571
6572 * monitor.c (monitor_fetch_register): Make name a constant.
6573 (monitor_store_register): Same.
6574
6575 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6576
6577 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6578 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6579 (finish_block) For non-function blocks, hash the symbol table. For
6580 function blocks, mark the symbol table as unhashed.
6581 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6582 (msymbol_hash_iw): Likewise.
6583 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6584 value.
6585 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6586 (lookup_minimal_symbol): Likewise for both.
6587 * symtab.h (struct block): Add `hashtable' flag. Comment the
6588 hashtable.
6589 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6590 (ALL_BLOCK_SYMBOLS): Update.
6591 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6592 (struct symbol): Add `hash_next' pointer.
6593 * symtab.c (lookup_block_symbol): Search using the hash table when
6594 possible.
6595 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6596 (search_symbols, find_addr_symbol): Likewise.
6597
6598 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6599 (read_dst_symtab): Likewise.
6600 * jv-lang.c (get_java_class_symtab): Likewise.
6601 * mdebugread.c: Include "gdb_assert.h".
6602 (shrink_block): Assert that the block being modified is not hashed.
6603 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6604 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6605 symbols.
6606 (dump_symtab): Recognize hashed blocks.
6607 * printcmd.c (print_frame_args): Assert that function blocks do not
6608 have hashed symbol tables.
6609 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6610 (fill_in_ada_prototype, debug_print_block): Likewise.
6611 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6612
6613 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6614
6615 * stack.c (print_frame): Use result of frame_address_in_block()
6616 instead of fi->pc when evaluating symbols.
6617 (backtrace_command_1): Ditto.
6618
6619 2002-07-11 Andrew Cagney <cagney@redhat.com>
6620
6621 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6622 Make static.
6623
6624 * arm-tdep.c (arm_register_name): Make return type constant.
6625
6626 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6627
6628 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6629 prototype.
6630 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6631 * s390-tdep.c (s390_fp_regnum): Ditto.
6632 (s390_read_fp): Ditto.
6633 (s390_pop_frame): Ditto.
6634 (_initialize_s390_tdep): Ditto.
6635 * remote.c (get_remote_state): Ditto.
6636 * procfs.c (mappingflags): Ditto.
6637 * memattr.c (_initialize_mem): Ditto.
6638 * mcore-tdep.c (mcore_pop_frame): Ditto.
6639 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6640 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6641 * language.c (set_case_str): Ditto.
6642 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6643 * frv-tdep.c (new_variant): Ditto.
6644 (frv_stopped_data_address): Ditto.
6645 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6646 (context_alloc): Ditto.
6647 (frame_state_alloc): Ditto.
6648 (unwind_tmp_obstack_init): Ditto.
6649 (unwind_tmp_obstack_free): Ditto.
6650 (cfi_read_fp): Ditto.
6651 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6652 (cris_pop_frame): Ditto.
6653 * c-lang.c (scanning_macro_expansion): Ditto.
6654 (finished_macro_expansion): Ditto.
6655 (c_preprocess_and_parse): Ditto.
6656 * gdbarch.sh: Ditto.
6657 * gdbarch.h, gdbarch.c: Regenerate.
6658 * config/mn10200/tm-mn10200.h: Adjust indentation.
6659 * target.c: Adjust indentation.
6660 * symtab.h: Adjust indentation.
6661 * stabsread.h: Adjust indentation.
6662 * remote-es.c: Adjust indentation.
6663 * os9kread.c: Adjust indentation.
6664
6665 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6666
6667 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6668 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6669
6670 2002-07-10 Grace Sainsbury <graces@redhat.com>
6671
6672 * NEWS: Mention m68k, mcore multi-arching.
6673 * MAINTAINERS: Change status of m68k, mcore to reflect
6674 multi-arching.
6675
6676 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6677
6678 * valops.c (find_overload_match): Free oload_syms.
6679
6680 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6681
6682 Define HAVE_SYS_PROC_H if sys/proc.h exists
6683 * configure.in: Add check for sys/proc.h
6684 * config.in: Regenerate.
6685 * configure: Regenerate.
6686
6687 2002-07-09 Grace Sainsbury <graces@redhat.com>
6688
6689 * config/m68k/tm-m68k.h: Remove macros wrapped in
6690 #if !GDB_MULTI_ARCH.
6691
6692 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6693
6694 * config.in, configure: Regenerate.
6695
6696 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6697
6698 * dwarf2cfi.c: Include "gcore.h".
6699 (execute_stack_op): Fix implementation of the
6700 DW_OP_deref and DW_OP_deref_size operators by letting do their
6701 lookup in the target.
6702
6703 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6704
6705 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6706 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6707 tdep->sc_sp_offset.
6708
6709 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6710
6711 Fix PR gdb/595, gdb/602
6712 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6713 Don't call value_cast, just read the vtable pointer; update comments
6714 to match.
6715
6716 2002-07-05 Grace Sainsbury <graces@redhat.com>
6717
6718 * config/mcore/tm-mcore.h: Remove file.
6719 * config/mcore/mcore.mt: Remove definition of TM_FILE
6720 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6721
6722 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6723
6724 * i386bsd-tdep.c: Include "gdb_string.h".
6725
6726 2002-07-04 Grace Sainsbury <graces@redhat.com>
6727
6728 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6729 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6730 mcore-tdep.
6731 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6732 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6733 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6734 (RETVAL_REGNUM): Move macros from tm-mcore.h
6735 (mcore_reg_struct_has_addr): New function.
6736 (mcore_gdbarch_init): Added initializations for the macros removed
6737 from tm-mcore.h.
6738
6739 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6740
6741 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6742 traditonal string branding within the ELF header.
6743
6744 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6745
6746 * symtab.c (remove_params): New function.
6747 (make_symbol_overload_list): Use it instead of cplus_demangle.
6748 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6749
6750 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6751
6752 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6753
6754 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6755 New variables.
6756 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6757 and tdep->sigtramp_end.
6758 * i386obsd-nat.c: New file.
6759 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6760
6761 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6762 Don't call get_current_frame().
6763
6764 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6765
6766 * i386-nat.c (child_post_startup_inferior): New function
6767 calling i386_cleanup_dregs if
6768 I386_USE_GENERIC_WATCHPOINTS is defined.
6769 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6770 conditional to acknowledge that i386-nat.c has its
6771 own child_post_startup_inferior function.
6772
6773 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6774
6775 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6776 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6777 instead of MAX_REGISTER_RAW_SIZE.
6778 (i386_extract_return_value, i386_extract_struct_value_address):
6779 Convert to use regcache.
6780 (i386_gdbarch_init): Set max_register_raw_size and
6781 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6782 Set extract_return_value and extract_struct_value_address instead
6783 of their deprecated variants.
6784
6785 Convert i386 target to generic dummy frames.
6786 * i386-tdep.c: Include "symfile.h".
6787 (i386_frameless_signal_p): Consider a function to be frameless if
6788 the pc points at the first instruction of the function.
6789 (i386_frame_chain): Handle (generic) call dummies.
6790 (i386_frame_saved_pc): Likewise.
6791 (i386_frame_init_saved_regs): Remove code dealing with call
6792 dummies on the stack.
6793 (i386_push_dummy_frame): Removed.
6794 (i386_call_dummy_words): Removed.
6795 (i386_fix_call_dummy): Removed.
6796 (i386_push_return_address): New function.
6797 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6798 parameter, and don't call get_current_frame.
6799 (i386_pop_frame): New function.
6800 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6801 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6802 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6803 call_dummy_length to 0, set call_dummy_words to NULL, set
6804 sizeof_call_dummy_words to 0, set fix_call_dummy to
6805 generic_fix_call_dummy, set pc_in_call_dummy to
6806 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6807 generic_push_dummy_frame, set push_return_address to
6808 i386_push_return_address and set frame_chain_valid to
6809 generic_file_frame_chain_valid.
6810
6811 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6812
6813 * gdbarch.sh (struct regcache): Add opaque declaration.
6814 (EXTRACT_RETURN_VALUE): New architecture method.
6815 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6816 * gdbarch.h, gdbarch.c: Regenerate.
6817 * arch-utils.c (legacy_extract_return_value): New function.
6818 * arch-utils.h (legacy_extract_return_value): Declare.
6819 * values.c (value_being_returned): Re-enable code handling
6820 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6821 deprecated_grub_regcache_for_registers call to block handling
6822 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6823 (EXTRACT_RETURN_VALUE): Do not define.
6824
6825 2002-07-03 Grace Sainsbury <graces@redhat.com>
6826
6827 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6828 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6829 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6830 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6831 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6832 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6833 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6834 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6835 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6836 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6837 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6838 argument so the function fits the prototype in the architecture
6839 vector.
6840 (mcore_pop_frame): Remove argument so the function fits the
6841 prototype. Use get_current_frame instead of the argument.
6842 (mcore_push_arguments): Change type of struct_return so the
6843 function can be used in the architecture vector.
6844 (mcore_store_struct_return): Add.
6845 (mcore_frame_init_saved_regs): Add.
6846 (mcore_gdbarch_init): Add function calls to replace the macros
6847 removed from tm-mcore.h
6848
6849 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6850
6851 * infcmd.c (print_return_value): Remove compatibility code calling
6852 deprecated_grub_regcache_for_registers.
6853
6854 * values.c: Include "regcache.h".
6855 (value_being_returned): Update. Use
6856 deprecated_grub_regcache_for_registers to extract the register
6857 buffer address.
6858 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6859 ``struct regcache''.
6860 * Makefile.in (values.o): Add dependency on $(regcache_h).
6861
6862 * inferior.h (run_stack_dummy): Change type of second parameter to
6863 a ``struct regcache''.
6864 * valops.c (hand_function_call): Change type of retbuf to ``struct
6865 regcache''. Allocate using regcache_xmalloc, clean using
6866 make_cleanup_regcache_xfree.
6867 * infcmd.c (run_stack_dummy): Update. Use
6868 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6869
6870 * regcache.c (do_regcache_xfree): New function.
6871 (make_cleanup_regcache_xfree): New function.
6872 * regcache.h (make_cleanup_regcache_xfree): Declare.
6873
6874 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6875
6876 * event-top.c (command_line_handler): Don't read past
6877 beginning of buffer.
6878
6879 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6880
6881 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6882 struct frame_id.
6883 (varobj_create): Store frame_id for root.
6884 (varobj_gen_name): Use xasprintf.
6885 (varobj_update): Save and restore frame using get_frame_id() and
6886 frame_find_by_id().
6887 (create_child): Use xasprintf.
6888 (new_root_variable): Initialize frame_id.
6889 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6890 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6891 to prevent memory leak.
6892
6893 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6894
6895 * valops.c (hand_function_call): Move declaration of retbuf to
6896 start of function, allocate using malloc, add a cleanup but before
6897 the inf_status cleanup, cleanup the buffer. Rename local variable
6898 old_chain to inf_status_cleanup.
6899
6900 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6901
6902 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6903
6904 * cli/cli-decode.c (cmd_func_p): New function.
6905 (cmd_func): New function.
6906
6907 * command.h: Add cmd_func() and cmd_func_p().
6908
6909 2002-07-03 Grace Sainsbury <graces@redhat.com>
6910
6911 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6912 (REGISTER_SIZE): Remove.
6913 (MAX_REGISTER_RAW_SIZE): Remove.
6914 (REGISTER_VIRTUAL_TYPE): Remove.
6915 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6916 (REGISTER_NAME): Remove.
6917 (USE_GENERIC_DUMMY_FRAMES): Remove.
6918 (CALL_DUMMY): Remove.
6919 (CALL_DUMMY_START_OFFSET): Remove.
6920 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6921 (CALL_DUMMY_LOCATION): Remove.
6922 (FIX_CALL_DUMMY): Remove.
6923 (CALL_DUMMY_ADDRESS): Remove.
6924 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6925 (SAVE_DUMMY_FRAME_TOS): Remove.
6926 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6927 (mcore_register_virtual_type): New function.
6928 (mcore_register_byte): New function.
6929 (mcore_register_size): New function.
6930 (mcore_register_name): New function.
6931 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6932 macros removed from tm-mcore.h.
6933 (mcore_dump_tdep): Add.
6934 (_initialize_mcore_tdep): Add gdbarch_register call.
6935
6936 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6937
6938 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6939 frameless_look_for_prologue, such that we actually call this
6940 function.
6941
6942 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6943
6944 * frame.h (frame_address_in_block): New function.
6945
6946 * blockframe.c (frame_address_in_block): New function extracted
6947 from get_frame_block().
6948 (get_frame_block): Use frame_address_in_block().
6949 (block_innermost_frame): Use frame_address_in_block() to match
6950 the frame pc address against the block boundaries rather than
6951 the frame pc directly. This prevents a failure when a frame pc
6952 is actually a return-address pointing immediately after the end
6953 of the given block.
6954
6955 2002-07-02 Grace Sainsbury <graces@redhat.com>
6956
6957 * MAINTAINERS: Add self under write after approval.
6958
6959 2002-07-02 Grace Sainsbury <graces@redhat.com>
6960
6961 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6962 used in architecture vector. The default is
6963 m68k_local_breakpoint_from_pc.
6964 (m68k_local_breakpoint_from_pc): Add.
6965 (enum): Add register numbers from tm-m68k.h.
6966 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6967 vector.
6968 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6969 GDB_MULTI_ARCH_PARTIAL.
6970 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6971 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6972 m68k-tdep.c.
6973 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6974 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6975 to enum in m68k-tdep.c
6976
6977 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6978
6979 * solib-osf.c (open_map): Compute the list of shared libraries
6980 loaded by the inferior, rather than the list of libraries loaded
6981 by GDB itself. Otherwise, GDB ends up reading the symbols from
6982 the wrong shared libraries...
6983
6984 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6985
6986 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6987 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6988 macros.
6989 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6990 Remove functions.
6991 (FRAMELESS_SIGNAL): Remove function.
6992 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6993 i386_linux_saved_pc_after_call): Removed.
6994 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6995 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6996 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6997
6998 * i386-tdep.c (i386_frameless_signal_p): New function.
6999 (i386_frame_chain): Deal with frameless signals.
7000 (i386_sigtramp_saved_sp): New function.
7001 (i386_frame_saved_pc): Deal with frameless signals.
7002 (i386_saved_pc_after_call): Make sure the correct value is
7003 returned just after entry into a sigtramp.
7004 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7005 i386fbsd4_sc_sp_offset): New variables.
7006 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7007 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7008 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7009 similiar to what we already did for sc_pc_offset.
7010 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7011 tdep->sc_sp_offset.
7012
7013 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7014
7015 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7016
7017 * config/i386/tm-x86-64linux.h: New.
7018 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7019 definitions.
7020 * config/i386/nm-x86-64.h: Rename to ...
7021 * config/i386/nm-x86-64linux.h: ... this one.
7022 * config/i386/x86-64linux.mh: Reflect the above change.
7023
7024 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7025
7026 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7027 with sigcontext_addr. Add sc_sp_offset.
7028 (i386bsd_sigtramp_saved_pc): Remove prototype.
7029 (i386bsd_sicontext_addr): Add prototype.
7030 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7031 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7032 (i386_svr4_sigtramp_saved_pc): Removed.
7033 (i386_svr4_sigcontext_addr): New function.
7034 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7035 Initialize tdep->sigcontext_addr instead. Initialize
7036 tdep->sc_pc_offset and tdep->sc_sp_offset.
7037 (i386_gdbarch_init): Likewise.
7038 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7039 any more.
7040 (i386bsd_sigtramp_saved_pc): Remove function.
7041 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7042 Initialize tdep->sigcontext_addr instead. Initialize
7043 tdep->sc_pc_offset.
7044 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7045 of tdep->sigtramp_saved_pc.
7046 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7047 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7048 instead.
7049
7050 * i386-tdep.c (i386_frameless_function_invocation,
7051 i386_frame_num_args, i386_frame_init_saved_regs,
7052 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7053 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7054 i386_extract_return_value, i386_store_return_value,
7055 i386_extract_struct_value_address, i386_register_virtual_type,
7056 i386_register_convertible, i386_register_convert_to_virtual,
7057 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7058 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7059 static.
7060
7061 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7062
7063 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7064
7065 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7066 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7067 this macro. Include "value.h".
7068
7069 2002-06-30 Aidan Skinner <aidan@velvet.net>
7070
7071 * ada-exp.tab.c: remove as it's a generated file
7072 * ada-lex.c: remove as it's a generated file
7073
7074 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7075
7076 * config/i386/tm-i386.h (struct frame_info, struct
7077 frame_saved_regs, struct value, struct type): Remove forward
7078 declarations.
7079
7080 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7081 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7082 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7083 (FILL_FPXREGSET): Define.
7084
7085 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7086
7087 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7088 i[3456]86-*-netbsd* case.
7089 * config/i386/tm-obsd.h: Removed.
7090 * config/i386/obsd.mt: Removed.
7091 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7092 core-aout.o.
7093 (MH_CFLAGS): Add -DYYDEBUG=0.
7094
7095 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7096 i386nbsd_sc_pc_offset on OpenBSD too.
7097
7098 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7099 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7100 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7101 define.
7102 * i386bsd-tdep.c: Include "arch-utils.h".
7103 (i386bsd_aout_in_solib_call_trampoline): New function.
7104 (i386bsd_init_abi): Set in_solib_call_trampoline to
7105 i386bsd_aout_in_solib_call_trampoline.
7106 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7107 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7108
7109 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7110
7111 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7112 (struct obstack, struct bcache): Add opaque declarations.
7113 * Makefile.in (macrotab_h): Update
7114
7115 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7116
7117 * blockframe.c (generic_find_dummy_frame): Change return type to
7118 ``struct regcache''.
7119 (struct dummy_frame): Replace field ``registers'' with regcache, a
7120 struct regcache object.
7121 (generic_find_dummy_frame): Update.
7122 (generic_push_dummy_frame): Update. Use regcache_xfree,
7123 regcache_xmalloc and regcache_cpy.
7124 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7125 regcache_xfree.
7126 (deprecated_generic_find_dummy_frame): Update.
7127 (generic_read_register_dummy): Update. Use
7128 regcache_read_as_address.
7129 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7130 (generic_get_saved_register): Update. Use regcache_read.
7131
7132 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7133
7134 * Makefile.in (objfiles_h): Add $(bcache_h).
7135 * objfiles.h: Include "bcache.h".
7136
7137 * Makefile.in (symtab_h): Remove $(bcache_h).
7138 * symtab.h: Do not include "bcache.h".
7139
7140 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7141
7142 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7143 generic_func_frame_chain_valid.
7144
7145 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7146
7147 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7148 * config/i386/tm-fbsd.h: Likewise.
7149
7150 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7151
7152 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7153 generic_unwind_get_saved_register.
7154
7155 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7156
7157 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7158 * regcache.c (supply_register): Add missing argument to
7159 register_buffer call.
7160
7161 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7162
7163 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7164 Solaris /bin/grep does not not like it. From Peter Schauer.
7165
7166 2002-06-26 Tom Tromey <tromey@redhat.com>
7167
7168 * command.h (add_setshow_cmd): Declare.
7169 (add_setshow_cmd_full): Declare.
7170 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7171 returns void. Use add_setshow_cmd_full.
7172 (add_setshow_cmd_full): New function.
7173 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7174 (add_setshow_boolean_cmd): Likewise.
7175
7176 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7177
7178 * config/vax/tm-vax.h: Protect from multiple inclusion.
7179 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7180 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7181 * config/vax/tm-vaxbsd.h: ...here. New file.
7182 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7183
7184 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7185
7186 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7187 (BELIEVE_PCC_PROMOTION): Remove.
7188 (AP_REGNUM): Move to...
7189 * config/vax/nm-vax.h: ...here.
7190 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7191 (vax_breakpoint_from_pc): New function.
7192 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7193 and gdbarch_believe_pcc_promotion.
7194
7195 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7196
7197 * Makefile.in (vax_tdep_h): Define.
7198 (vax-tdep.o): Use $(vax_tdep_h).
7199 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7200 (vax_dump_tdep): New function.
7201 (_initialize_vax_tdep): Register vax_dump_tdep.
7202 * vax-tdep.h: Include osabi.h.
7203 (struct gdbarch_tdep): New.
7204
7205 2002-06-26 Andrew Cagney <cagney@redhat.com>
7206
7207 * frame.h (deprecated_generic_find_dummy_frame): Rename
7208 generic_find_dummy_frame.
7209 * blockframe.c (generic_find_dummy_frame): Make static.
7210 (deprecated_generic_find_dummy_frame): New function.
7211 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7212 generic_find_dummy_frame with deprecated_find_dummy_frame.
7213 (sh64_nofp_frame_init_saved_regs): Ditto.
7214 (sh_fp_frame_init_saved_regs): Ditto.
7215 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7216 (s390_frame_chain): Ditto.
7217 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7218
7219 2002-06-26 Grace Sainsbury <graces@redhat.com>
7220
7221 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7222 gdbarch vector are at the top.
7223 (NUM_REGS): Remove.
7224 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7225 (FRAME_ARGS_ADDRESS): Remove.
7226 (FRAME_LOCALS_ADDRESS): Remove.
7227 (FRAME_NUM_ARGS): Remove.
7228 (FRAME_ARGS_SKIP): Remove.
7229 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7230 (m68k_gdbarch_init): Add gdbarch initializations for macros
7231 undefined in tm-m68k.h
7232
7233 2002-06-26 Grace Sainsbury <graces@redhat.com>
7234
7235 * monitor.h: Add the function regname to monitor_ops
7236 structure. This way NUM_REGS does not have to be a constant.
7237 * monitor.c (monitor_fetch_register): Added support for regname
7238 function. The function is called if the array regnames is NULL.
7239 (monitor_store_register): Same.
7240 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7241 regnames array.
7242 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7243 cpu32bug_cmds.regname to point to new function.
7244 * abug-rom.c (abug_regname): Same as above.
7245 (init_abug_cmds): Same.
7246 * dbug-rom.c (dbug_regname): Same as above.
7247 (init_dbug_cmds): Same.
7248 * remote-est.c (est_regname): Same.
7249 (init_est_cmds): Same.
7250 * rom68k-rom.c (rom68k_regname): Same.
7251 (init_rom68k_cmds): Same.
7252
7253 2002-06-25 Tom Tromey <tromey@redhat.com>
7254
7255 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7256
7257 2002-06-25 Andrew Cagney <cagney@redhat.com>
7258
7259 * infrun.c (stop_registers): Change variable's type to ``struct
7260 regcache'''.
7261 (xmalloc_inferior_status): Delete function.
7262 (free_inferior_status): Delete function.
7263 (normal_stop): Use regcache_cpy.
7264 (struct inferior_status): Change type of fields ``stop_registers''
7265 and ``registers'' to ``struct regcache''.
7266 (write_inferior_status_register): Use regcache_write.
7267 (save_inferior_status): Instead of calling
7268 xmalloc_inferior_status, allocate the inf_status buffer directly.
7269 Use regcache_dup_no_passthrough and regcache_dup to save the
7270 buffers.
7271 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7272 Replace the stop_registers regcache instead of overriding it. Use
7273 regcache_xfree. Instead of calling free_inferior_status, xfree
7274 the buffer directly.
7275 (discard_inferior_status): Use regcache_xfree. Instead of calling
7276 free_inferior_status, xfree the buffer directly.
7277 (build_infrun): Use regcache_xmalloc.
7278 (_initialize_infrun): Delete redundant call to build_infrun.
7279
7280 * Makefile.in (infcmd.o): Add $(regcache_h).
7281
7282 * infcmd.c: Include "regcache.h".
7283 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7284 obtain the address of `stop_registers' register buffer.
7285 (print_return_value): Ditto.
7286
7287 * inferior.h (struct regcache): Add opaque declaration.
7288 (stop_registers): Change variable's declared type to ``struct
7289 regcache''.
7290
7291 2002-06-24 Tom Tromey <tromey@redhat.com>
7292
7293 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7294 * target.c (initialize_targets): Fixed typo in
7295 trust-readonly-sections `show' documentation.
7296
7297 * main.c: Marked all strings with _().
7298
7299 2002-06-24 Don Howard <dhoward@redhat.com>
7300
7301 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7302 that means max CORE_ADDR+1.
7303 (lookup_mem_region): Ditto.
7304 (mem_info_command): Ditto.
7305
7306 2002-06-24 Grace Sainsbury <graces@redhat.com>
7307
7308 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7309 (REGISTER_BYTES_OK): Remove.
7310 (REGISTER_BYTES): Remove.
7311 (STORE_STRUCT_RETURN): Remove.
7312 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7313 (STORE_RETURN_VALUE): Remove.
7314 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7315 (FRAME_CHAIN): Remove.
7316 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7317 (FRAME_SAVED_PC): Remove.
7318 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7319 (m68k_store_struct_return): Add.
7320 (m68k_deprecated_extract_return_value): Add.
7321 (m68k_deprecated_extract_struct_value_address): Add.
7322 (m68k_store_return_value): Add.
7323 (m68k_frame_chain): Add.
7324 (m68k_frameless_function_invocation): Add.
7325 (m68k_frame_saved_pc): Add.
7326 (m68k_gdbarch_init): added set_gdbarch calls for new
7327 functions and deleted macros.
7328
7329 2002-06-23 Tom Tromey <tromey@redhat.com>
7330
7331 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7332 (ALLDEPFILES): Likewise.
7333 (udiheaders): Removed.
7334 (udip2soc.o): Likewise.
7335 (udi2go32.o): Likewise.
7336 (udr.o): Likewise.
7337 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7338
7339 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7340
7341 * infrun.c (_initialize_infrun): Delete unnecessary call to
7342 build_infrun.
7343
7344 * regcache.h: Update comments describing the regcache_cpy family
7345 of functions.
7346 (regcache_save, regcache_restore): Delete declaration.
7347 (regcache_save_no_passthrough): Delete declaration.
7348 (regcache_restore_no_passthrough): Delete declaration.
7349 * regcache.c (regcache_save): Delete function.
7350 (regcache_save_no_passthrough): Delete function.
7351 (regcache_restore): Delete function.
7352 (regcache_restore_no_passthrough): Delete function.
7353
7354 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7355
7356 * config/m68k/tm-m68k.h: Fix typo.
7357 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7358 (m68k_frame_init_saved_regs): Declare.
7359
7360 2002-06-21 Jim Blandy <jimb@redhat.com>
7361
7362 Remove some vestiges of Harris 88k support.
7363 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7364 register numbering quirk.
7365 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7366 odd symbols occurring in Harris 88k ELF targets.
7367
7368 2002-06-21 Tom Tromey <tromey@redhat.com>
7369
7370 * gdb_locale.h: New file.
7371 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7372 (defs_h): Added gdb_locale.h.
7373 * configure, config.in: Rebuilt.
7374 * configure.in (PACKAGE): Define.
7375 * defs.h: Include gdb_locale.h.
7376 * main.c (captured_main): Call setlocale, bindtextdomain,
7377 textdomain.
7378
7379 2002-06-21 Dave Brolley <brolley@redhat.com>
7380
7381 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7382 * config/frv/frv.mt: New file.
7383 * config/frv/tm-frv.h: New file.
7384 * configure.tgt: Support frv-*-*.
7385 * Makefile.in (frv-tdep.o): New target.
7386 * frv-tdep.c: New file.
7387 * NEWS: Mention frv.
7388
7389 2002-06-21 Dave Brolley <brolley@redhat.com>
7390
7391 * MAINTAINERS: Add self to "Write After Approval" list.
7392
7393 2002-06-21 Grace Sainsbury <graces@redhat.com>
7394
7395 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7396 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7397 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7398 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7399 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7400
7401 * m68k-tdep.c: Include arch-utils.h
7402 (m68k_register_raw_size): Add.
7403 (m68k_register_virtual_size): Add.
7404 (m68k_register_virtual_type): Add.
7405 (m68k_register_name): Add.
7406 (m68k_stack_align): Add.
7407 (m68k_register_byte): Add.
7408 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7409 tm-m68k.h.
7410
7411 2002-06-21 Grace Sainsbury <graces@redhat.com>
7412
7413 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7414 m68k_find_saved_regs.
7415 (m68k_pop_frame): Removed saved_regs structure, and replaced
7416 references to it with frame->saved_regs.
7417 (m68k_gdbarch_init): Added function calls to initialize the
7418 gdbarch structure.
7419 (m68k_fix_call_dummy): Add.
7420 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7421 (CALL_DUMMY): Remove.
7422 (CALL_DUMMY_LENGTH): Remove.
7423 (CALL_DUMMY_START_OFFSET): Remove.
7424 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7425 (FIX_CALL_DUMMY): Remove.
7426 (PUSH_DUMMY_FRAME): Remove.
7427 (POP_FRAME): Remove.
7428
7429 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7430
7431 * parse.c (parse_fprintf): New function used to avoid calls to
7432 fprintf in bison parser generated debug code.
7433 * parser-defs.h: Declaration of new parse_fprintf function.
7434 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7435 Set YYDEBUG to 1 by default.
7436 Set YYFPRINTF as parse_fprintf.
7437
7438 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7439
7440 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7441 encoding anymore.
7442 (pointer_encoding, enum ptr_encoding): New.
7443 (execute_cfa_program): Take care about pointer encoding.
7444 (dwarf2_build_frame_info): Only call parse_frame_info for
7445 .debug_frame and .eh_frame.
7446 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7447 fixed augmentation handling, added relative addressing,
7448 ignore duplicate FDEs. Added comments.
7449 * dwarf2cfi.c: Reindented.
7450
7451 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7452
7453 * event-top.c (command_handler): Don't use space_at_cmd_start
7454 unless there is sbrk() on the host. Assign time and space data
7455 to union fields of the appropriate length.
7456
7457 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7458
7459 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7460 x86_64_register_name. Return type changed to 'const char *'.
7461 (x86_64_register_name2nr): Rename to x86_64_register_number.
7462 (x86_64_gdbarch_init): Update to reflect the change.
7463 * x86-64-tdep.h: Ditto.
7464 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7465 (supply_fpregset): Ditto.
7466
7467 2002-06-19 Andrew Cagney <cagney@redhat.com>
7468
7469 * regcache.h: Update copyright.
7470 (struct regcache, struct gdbarch): Add opaque declarations.
7471 (current_regcache): Declare global variable.
7472 (regcache_read, regcache_write): Add gdbarch parameter.
7473 (regcache_save, regcache_save_no_passthrough)
7474 (regcache_restore, regcache_restore_no_passthrough)
7475 (regcache_dup, regcache_dup_no_passthrough)
7476 (regcache_cpy, regcache_cpy_no_passthrough)
7477 (deprecated_grub_regcache_for_registers)
7478 (deprecated_grub_regcache_for_register_valid)
7479 (regcache_valid_p): Add function declarations.
7480
7481 * regcache.c: Update copyright.
7482 (regcache_descr_handle): New global variable.
7483 (struct regcache_descr): Define.
7484 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7485 (regcache_descr, xfree_regcache_descr): New functions.
7486 (struct regcache): Define.
7487 (regcache_xmalloc, regcache_xfree): New functions.
7488 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7489 (regcache_dup, regcache_dup_no_passthrough): New functions.
7490 (regcache_valid_p, regcache_read_as_address): New functions.
7491 (deprecated_grub_regcache_for_registers): New function.
7492 (deprecated_grub_regcache_for_register_valid): New function.
7493 (current_regcache): New global variable.
7494 (register_buffer): Add regcache parameter. Update calls.
7495 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7496 (read_register_gen, write_register_gen): Update register_buffer
7497 call. Test for legacy_p instead of gdbarch_register_read_p or
7498 gdbarch_register_write_p.
7499 (regcache_collect): Update register_buffer call.
7500 (build_regcache): Rewrite. Use deprecated grub functions.
7501 (regcache_save, regcache_save_no_passthrough): New functions.
7502 (regcache_restore, regcache_restore_no_passthrough): New
7503 functions.
7504 (_initialize_regcache): Create the regcache_data_handle. Swap
7505 current_regcache global variable.
7506
7507 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7508 parameter to regcache_read and regcache_write calls.
7509 (sh4_register_read): Ditto.
7510 (sh64_pseudo_register_read): Ditto.
7511 (sh64_register_read): Ditto.
7512 (sh_pseudo_register_write): Ditto.
7513 (sh4_register_write): Ditto.
7514 (sh64_pseudo_register_write): Ditto.
7515 (sh64_register_write): Ditto.
7516
7517 * defs.h (XCALLOC): Define.
7518
7519 2002-06-19 Grace Sainsbury <graces@redhat.com>
7520
7521 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7522 * m68k-tdep.c (m68k_gdbarch_init): Added.
7523 (m68k_dump_tdep): Added.
7524
7525 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7526
7527 * ada-lang.c (fill_in_ada_prototype): Update comment.
7528
7529 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7530
7531 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7532 MIPS_ABI_LAST.
7533 (mips_abi_string, mips_abi_strings): New.
7534 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7535 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7536 tdep->mips_abi_string. Honor mips_abi_string. Default to
7537 O32 if no ABI is found.
7538 (mips_dump_tdep): Use mips_abi_strings.
7539 (mips_abi_update): New function.
7540 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7541 ``set mips abi'' and ``show mips abi''. Check the size of
7542 mips_abi_strings.
7543
7544 2002-06-19 Andrew Cagney <cagney@redhat.com>
7545
7546 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7547 constant.
7548
7549 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7550
7551 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7552 current frame using only the first stack size adjustment. All
7553 subsequent size adjustments are not considered to be part of
7554 the "static" part of the current frame.
7555 Compute the address of the saved registers relative to the
7556 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7557 in use in this frame.
7558
7559 2002-06-18 Don Howard <dhoward@redhat.com>
7560
7561 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7562 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7563 suggesting this solution.
7564
7565 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7566
7567 * config/romp/xm-rtbsd.h: Delete file.
7568 * config/romp/rtbsd.mh: Delete file.
7569
7570 2002-06-18 Keith Seitz <keiths@redhat.com>
7571
7572 * breakpoint.c (condition_command): Post breakpoint_modify
7573 when a condition is added to an existing breakpoint.
7574 (commands_command): Likewise for commands.
7575 (set_ignore_count): Likewise for ignore counts.
7576 If no tty, do not simply return, still need to send event
7577 notification.
7578 (ignore_command): Only print a newline if the command came
7579 from a tty.
7580 Don't call breakpoints_changed, since this is now properly
7581 handled by set_ignore_count.
7582
7583 2002-06-18 Andrew Cagney <cagney@redhat.com>
7584
7585 * MAINTAINERS: Note that cris-elf target can be compiled with
7586 -Werror.
7587 * cris-tdep.c (cris_register_name): Make return type constant.
7588 (cris_breakpoint_from_pc): Ditto.
7589
7590 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7591
7592 * frame.h (struct frame_info): Change type of context to
7593 'struct context'.
7594
7595 2002-06-17 Andrew Cagney <cagney@redhat.com>
7596
7597 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7598 pointer.
7599 * gdbarch.h, gdbarch.c: Regenerate.
7600 * config/mips/tm-mips.h (mips_register_name): Update.
7601 * i386-tdep.h (i386_register_name): Update.
7602 * mips-tdep.c (mips_register_name): Update
7603 * alpha-tdep.c (alpha_register_name): Update.
7604 * arch-utils.c (legacy_register_name): Update.
7605 * arch-utils.h (legacy_register_name): Update.
7606 * avr-tdep.c (avr_register_name): Update.
7607 * ia64-tdep.c (ia64_register_name): Update.
7608 * i386-tdep.c (i386_register_name): Update.
7609 * sparc-tdep.c (sparc32_register_name): Update.
7610 (sparc64_register_name): Update.
7611 (sparclite_register_name): Update.
7612 (sparclet_register_name): Update.
7613 * sh-tdep.c (sh_generic_register_name): Update.
7614 (sh_sh_register_name): Update.
7615 (sh_sh3_register_name): Update.
7616 (sh_sh3e_register_name): Update.
7617 (sh_sh_dsp_register_name): Update.
7618 (sh_sh3_dsp_register_name): Update.
7619 (sh_sh4_register_name): Update.
7620 (sh_sh64_register_name): Update.
7621 * s390-tdep.c (s390_register_name): Update.
7622 * rs6000-tdep.c (rs6000_register_name): Update.
7623 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7624 (ns32k_register_name_32382): Update.
7625 * d10v-tdep.c (d10v_ts2_register_name): Update.
7626 (d10v_ts3_register_name): Update.
7627 * xstormy16-tdep.c (xstormy16_register_name): Update.
7628 * vax-tdep.c (vax_register_name): Update.
7629 * v850-tdep.c (v850_register_name): Update.
7630 * m68hc11-tdep.c (m68hc11_register_name): Update.
7631 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7632 (am33_register_name): Update.
7633
7634 2002-06-17 Grace Sainsbury <graces@redhat.com>
7635
7636 * m68k-tdep.c: Reindented.
7637
7638 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7639
7640 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7641 list of predefined types.
7642
7643 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7644
7645 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7646 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7647 REGISTER_CONVERT_TO_RAW): Remove defines.
7648 (i386_register_virtual_type, i386_register_convertible,
7649 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7650 Remove prototypes.
7651 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7652 macros mentioned above.
7653
7654 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7655 (i386lynx_saved_pc_after_call): Remove prototype.
7656 * i386ly-tdep.c: Include "i386-tdep.h".
7657 (i386lynx_saved_pc_after_call): Make static. Use
7658 read_memory_nobpt instead of read_memory. Use
7659 read_memory_unsigned_integer instead of read_memory_integer.
7660 (i386lynx_init_abi): New function.
7661 (i386lynx_coff_osabi_sniffer): New function.
7662 (_initialize_i386bsd_tdep): New function.
7663
7664 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7665 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7666 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7667 (i386_fix_call_dummy): Remove prototype.
7668 * i386-tdep.c (i386_call_dummy_words): New variable.
7669 (i386_gdbarch_init): Adjust for removal of the
7670 macros mentioned above.
7671
7672 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7673
7674 * command.h (add_setshow_auto_boolean_cmd): Replace
7675 add_set_auto_boolean_cmd.
7676 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7677 add_set_auto_boolean_cmd.
7678 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7679 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7680 mask-address'' command.
7681 (show_mask_address): Add cmd parameter.
7682 * remote.c (add_packet_config_cmd): Update. Change type of
7683 set_func and show_func to cmd_sfunc_ftype.
7684 (_initialize_remote): Update `set remote Z-packet'
7685 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7686 (show_remote_protocol_e_packet_cmd): Ditto.
7687 (show_remote_protocol_E_packet_cmd): Ditto.
7688 (show_remote_protocol_P_packet_cmd): Ditto.
7689 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7690 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7691 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7692 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7693 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7694 (show_remote_protocol_Z_packet_cmd): Ditto.
7695 (show_remote_protocol_binary_download_cmd): Ditto.
7696 (show_remote_cmd): Pass NULL to all of above.
7697
7698 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7699
7700 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7701 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7702 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7703 POP_FRAME): Remove defines.
7704 (i386_push_arguments, i386_store_struct_return,
7705 i386_extract_return_value, i386_store_return_value,
7706 i386_extract_struct_value_address, i386_push_dummy_frame,
7707 i386_pop_frame): Renove prototypes.
7708 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7709 macros mentioned above.
7710
7711 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7712
7713 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7714 add_set_boolean_cmd.
7715 (add_setshow_cmd): New function.
7716 * command.h (add_setshow_boolean_cmd): Replace
7717 add_set_boolean_cmd.
7718 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7719 and ``set rdiromatzero''.
7720 * maint.c (_initialize_maint_cmds): Update commented out code.
7721 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7722 * target.c (initialize_targets): Update `set
7723 trust-readonly-sections'.
7724 * remote.c (_initialize_remote): Update `set remotebreak'.
7725
7726 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7727
7728 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7729 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7730 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7731 fit into multi-arch framework.
7732 (i386_breakpoint_from_pc): New function.
7733 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7734 above.
7735
7736 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7737 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7738 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7739 (i386_frameless_function_invocation, i386_frame_num_args,
7740 i386_frame_init_saved_regs): Remove prototypes.
7741 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7742 macros mentioned above.
7743
7744 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7745
7746 * cli/cli-decode.c (set_cmd_cfunc): Update.
7747 (set_cmd_sfunc): Update.
7748 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7749 (set_cmd_sfunc, set_cmd_cfunc): Update.
7750 * cli/cli-decode.h: Update.
7751
7752 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7753
7754 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7755 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7756
7757 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7758
7759 * defs.h (auto_boolean): Declare enum.
7760 * command.h (cmd_auto_boolean): Delete enum.
7761 * mips-tdep.c (mask_address_var): Update.
7762 (mips_mask_address_p): Update.
7763 (show_mask_address): Update.
7764 * remote.c (struct packet_config): Update.
7765 (update_packet_config): Update.
7766 (show_packet_config_cmd): Update.
7767 (packet_ok): Update.
7768 (add_packet_config_cmd): Update.
7769 (_initialize_remote):
7770 * command.h: Update.
7771 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7772 (do_setshow_command): Update.
7773 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7774 * cli/cli-decode.h: Update.
7775
7776 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7777
7778 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7779 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7780 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7781 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7782 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7783 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7784
7785 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7786 list of DJGPP COFF targets.
7787
7788 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7789 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7790 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7791 (FP0_REGNUM): Remove define.
7792 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7793 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7794 (i386_register_virtual_size): Remove protoype.
7795 * i386-tdep.c (i386_register_virtual_size): Removed.
7796 (i386_extract_return_value, i386_store_return_value): Use
7797 FP0_REGNUM instead of NUM_FREGS to determine whether the
7798 floating-point registers are available.
7799 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7800 Adjust for removal of macros mentioned above.
7801
7802 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7803
7804 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7805 comments.
7806 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7807 Remove prototypes.
7808 (supply_gregset, fill_gregset): Remove use of register keyword and
7809 remove declaration for regmap. Use I386_NUM_GREGS instead of
7810 NUM_REGS and NUM_FREGS.
7811 (FPREGSET_FSAVE_OFFSET): Remove.
7812 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7813 NUM_FREGS to determine whether the floating-point registers are
7814 available.
7815
7816 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7817 gnu_store_registers): Replace usage of NUM_GREGS with
7818 I386_NUM_GREGS.
7819
7820 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7821 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7822 usage of NUM_GREGS with I386_NUM_GREGS.
7823
7824 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7825
7826 * i386bsd-nat.c: Include "i386-tdep.h".
7827 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7828 I386_NUM_GREGS.
7829
7830 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7831 and associated comment. They no longer make any sense, since we
7832 don't use this file anymore on Linux.
7833
7834 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7835 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7836 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7837 elements in these arrays.
7838 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7839 MAX_NUM_REGS.
7840
7841 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7842
7843 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7844 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7845
7846 2002-06-14 Andrew Cagney <cagney@redhat.com>
7847
7848 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7849 EXTRACT_RETURN_VALUE.
7850 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7851 EXTRACT_STRUCT_VALUE_ADDRESS.
7852 * gdbarch.h, gdbarch.c: Regenerate.
7853
7854 * values.c (value_being_returned): Handle
7855 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7856 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7857
7858 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7859 * arm-tdep.c (arm_gdbarch_init): Update.
7860 * avr-tdep.c (avr_gdbarch_init): Update.
7861 * cris-tdep.c (cris_gdbarch_init): Update.
7862 * d10v-tdep.c (d10v_gdbarch_init): Update.
7863 * ia64-tdep.c (ia64_gdbarch_init): Update.
7864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7865 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7866 * s390-tdep.c (s390_gdbarch_init): Update.
7867 * sh-tdep.c (sh_gdbarch_init): Update.
7868 * s390-tdep.c (s390_gdbarch_init): Update.
7869 * sparc-tdep.c (sparc_gdbarch_init): Update.
7870 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7871 * v850-tdep.c (v850_gdbarch_init): Update.
7872 * vax-tdep.c (vax_gdbarch_init): Update.
7873 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7874 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7875
7876 * config/arc/tm-arc.h: Update.
7877 * config/d30v/tm-d30v.h: Update.
7878 * config/fr30/tm-fr30.h: Update.
7879 * config/h8300/tm-h8300.h: Update.
7880 * config/h8500/tm-h8500.h: Update.
7881 * config/i386/tm-i386.h: Update.
7882 * config/i386/tm-ptx.h: Update.
7883 * config/i386/tm-symmetry.h: Update.
7884 * config/i960/tm-i960.h: Update.
7885 * config/m32r/tm-m32r.h: Update.
7886 * config/m68k/tm-delta68.h: Update.
7887 * config/m68k/tm-linux.h: Update.
7888 * config/m68k/tm-m68k.h: Update.
7889 * config/m88k/tm-m88k.h: Update.
7890 * config/mcore/tm-mcore.h: Update.
7891 * config/mips/tm-mips.h: Update.
7892 * config/mn10200/tm-mn10200.h: Update.
7893 * config/pa/tm-hppa.h: Update.
7894 * config/pa/tm-hppa64.h: Update.
7895 * config/sparc/tm-sp64.h: Update.
7896 * config/sparc/tm-sparc.h: Update.
7897 * config/sparc/tm-sparclet.h: Update.
7898 * config/z8k/tm-z8k.h: Update.
7899
7900 2002-06-14 Andrew Cagney <cagney@redhat.com>
7901
7902 * Makefile.in (i386_linux_tdep_h): Define.
7903 (i386_tdep_h, i387_tdep_h): Define.
7904 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7905 $(i386_tdep_h) and $(i387_tdep_h).
7906 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7907
7908 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7909
7910 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7911 Already covered by the default.
7912
7913 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7914 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7915 (i386_gdbarch_init): Initialize long_double_format and long_double
7916 bit.
7917
7918 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7919 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7920 Move these to ...
7921 * config/i386/i386sol2.mh: ... here.
7922 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7923 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7924 (SIGCONTEXT_PC_OFFSET): Remove define.
7925 (IN_SIGTRAMP): Remove define.
7926 * i386-sol2-tdep.c: New file.
7927
7928 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7929 * config/i386/tm-i386nw.h: Removed.
7930
7931 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7932 USE_STRUCT_CONVENTION): Remove defines.
7933 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7934 (get_longjmp_target): Remove prototype.
7935 (IN_SIGTRAMP): Remove define.
7936 (i386bsd_in_sigtramp): Remove prototype.
7937 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7938 function. Update comment accordingly
7939 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7940 (FRAME_SAVED_PC): Remove define.
7941 (i386bsd_frame_saved_pc): Remove prototype.
7942 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7943 GET_LONGJMP_TARGET): Remove defines.
7944 (get_longjmp_target): Remove prototype.
7945 (IN_SIGTRAMP): Remove define.
7946 (i386bsd_in_sigtramp): Remove prototype.
7947 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7948 function. Update comment accordingly
7949 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7950 (FRAME_SAVED_PC): Remove define.
7951 (i386bsd_frame_saved_pc): Remove prototype.
7952 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7953 Remove prototype.
7954 (USE_STRUCT_CONVENTION): Remove prototype.
7955 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7956 declaration.
7957 (_initialize_i386bsd_nat): Revise logic to determine some
7958 constants at compile time when compiling a native GDB. Warn if
7959 things don't match up with what we expect.
7960 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7961 Remove variables.
7962 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7963 to use date stored in `struct gdbarch_tdep'.
7964 (i386bsd_sigcontext_offset): Remove varaible.
7965 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7966 stored in `struct gdbarch_tdep'.
7967 (i386bsd_frame_saved_pc): Make static.
7968 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7969 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7970 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7971 i386fbsd4_sc_pc_offset): New variables.
7972 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7973 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7974 functions.
7975 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7976 functions.
7977 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7978 Modify the value of i386fbsd_sigtramp_start and
7979 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7980 i386fbsd_sigtramp_end.
7981 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7982 function.
7983
7984 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7985 define to i386-linux-tdep.h.
7986 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7987 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7988 defines.
7989 (i386_linux_register_name, i386_linux_register_byte,
7990 i386_linux_register_raw_size): Remove prototypes.
7991 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7992 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7993 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7994 TARGET_WRITE_PC): Remove defines.
7995 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7996 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7997 i386_linux_write_pc): Remove prototypes.
7998 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7999 (get_longjmp_target): Remove prototype.
8000 * i386-linux-tdep.h: New file.
8001 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8002 * i386-linux-tdep.c: Include "i386-tdep.h" and
8003 "i386-linux-tdep.h".
8004 (i386_linux_register_name, i386_linux_register_byte,
8005 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8006 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8007 Make static.
8008 (i386_linux_init_abi): New function.
8009 (_initialize_i386_linux_tdep): New function.
8010
8011 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8012 (i386_saved_pc_after_call): Remove prototype.
8013 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8014 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8015 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8016 (i386_register_name, i386_stab_reg_to_regnum,
8017 i386_dwarf_reg_to_regnum): Remove prototypes.
8018 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8019 SIZEOF_SSE_REGS): Remove defines.
8020 (REGISTER_BYTES): Remove define.
8021 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8022 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8023 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8024 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8025 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8026 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8027 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8028 (get_longjmp_target): Remove prototype.
8029 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8030 (sigtramp_saved_pc): Remove define.
8031 (i386v4_sigtramp_saved_pc): Remove prototype.
8032 * config/i386/tm-go32.h (FRAME_CHAIN,
8033 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8034 (i386go32_frame_saved_pc): Remove prototype.
8035 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8036 (get_longjmp_target): Remove prototype.
8037 * i386-tdep.h: Include "osabi.h".
8038 (enum i386_abi): Removed.
8039 (enum struct_return): New enum.
8040 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8041 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8042 sc_pc_offset members.
8043 (i386_gdbarch_register_os_abi): Remove prototype.
8044 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8045 I386_SSE_NUM_REGS): New defines.
8046 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8047 I386_SSE_SIZEOF_REGS): New defines.
8048 (i386_register_name, i386_register_byte, i386_register_raw_size):
8049 New prototypes.
8050 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8051 (i386bsd_sigtramp_saved_pc): New prototype.
8052 * i386-tdep.c: Don't include "elf-bfd.h".
8053 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8054 i386_frame_chain, i386_saved_pc_after_call): Make static.
8055 (i386_frame_saved_pc): Rewrite to call architecture dependent
8056 function to deal with signal handlers. Make static.
8057 (i386go32_frame_saved_pc): Removed.
8058 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8059 Removed.
8060 (i386_get_longjmp_target): New function.
8061 (default_struct_convention, pcc_struct_convention,
8062 reg_struct_convention, valid_conventions, struct_convention): New
8063 variables.
8064 (i386_use_struct_convention): New function.
8065 (i386v4_sigtramp_saved_pc): Renamed to
8066 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8067 (i386_pc_in_sigtramp): New function.
8068 (i386_abi_names): Removed.
8069 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8070 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8071 Removed.
8072 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8073 i386_gdbarch_register_os_abi): Removed.
8074 (struct i386_abi_handler): Removed.
8075 (i386_abi_handler_list): Removed.
8076 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8077 functions.
8078 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8079 i386_nw_init_abi): New functions.
8080 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8081 Use set_gdbarch_xxx() calls instead of relying on macros for a
8082 number of calls.
8083 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8084 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8085 Register the various architecture variants defined in this file.
8086
8087 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8088
8089 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8090 (struct main_type): Remove arg_types member. Update comments for
8091 struct field.
8092 (TYPE_ARG_TYPES): Remove.
8093 (TYPE_FN_FIELD_ARGS): Update.
8094 (smash_to_method_type): Update prototype.
8095
8096 * c-typeprint.c (cp_type_print_method_args): Take method type
8097 instead of argument list. Use new argument layout. Simplify.
8098 (c_type_print_args): Use new argument layout. Simplify.
8099 (c_type_print_base): Update call to cp_type_print_method_args.
8100 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8101 argument; use die->type instead. Update call to
8102 smash_to_method_type.
8103 (read_structure_scope): Update call to dwarf2_add_member_fn.
8104 * gdbtypes.c (allocate_stub_method): Update comment.
8105 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8106 Use new argument layout.
8107 (check_stub_method): Use new argument layout. Don't count
8108 void as an argument.
8109 (print_arg_types): Update comments. Use new argument layout.
8110 (recursive_dump_type): Don't print arg_types member.
8111 * hpread.c (hpread_read_struct_type): Use new argument layout.
8112 (fixup_class_method_type): Likewise.
8113 (hpread_type_lookup): Likewise.
8114 * stabsread.c (read_type): Update calls to read_args and
8115 smash_to_method_type.
8116 (read_args): Use new argument layout. Simplify.
8117 * valops.c (typecmp): Use new argument layout. Update parameters
8118 and comments. Simplify.
8119 (hand_function_call): Use new argument layout.
8120 (search_struct_method): Update call to typecmp.
8121 (find_overload_match): Use new argument layout.
8122
8123 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8124
8125 * NEWS: Mention multithreaded debug support for gdbserver.
8126
8127 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8128
8129 * MAINTAINERS: Mention NEWS.
8130
8131 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8132
8133 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8134 (struct mips_objfile_private, compare_pdr_entries): New.
8135 (non_heuristic_proc_desc): Read the ".pdr" section if it
8136 is present.
8137
8138 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8139
8140 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8141 (arm_debug): New static variable.
8142 (_initialize_arm_tdep): Add ``set debug arm'' command.
8143
8144 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8145
8146 * Makefile.in (sim_arm_h): Define.
8147 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8148 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8149 (arm_register_sim_regno): New function, map an internal REGNUM
8150 onto a simulator register number.
8151 (arm_gdbarch_init): Set register_sim_regno.
8152
8153 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8154
8155 * MAINTAINERS: Add self.
8156
8157 2002-06-11 Jim Blandy <jimb@redhat.com>
8158
8159 * source.c (source_info): Mention whether the symtab has
8160 information about preprocessor macros.
8161
8162 Call the command `info macro', not `show macro'.
8163 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8164 Fix error message.
8165 (_initialize_macrocmd): Register `info_macro_command' in
8166 `infolist', not `showlist'.
8167
8168 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8169
8170 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8171 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8172 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8173 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8174 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8175 unconditionally.
8176 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8177 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8178 (_initialize_mips_tdep): Remove dead code.
8179 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8180 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8181 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8182 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8183 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8184 MIPS_LAST_FP_ARG_REGNUM): Remove.
8185
8186 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8187
8188 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8189 (unwind_tmp_obstack_free, parse_frame_info)
8190 (update_context, cfi_read_fp, cfi_write_fp)
8191 (cfi_frame_chain, cfi_init_extra_frame_info)
8192 (cfi_virtual_frame_pointer): Use the above function.
8193 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8194
8195 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8196
8197 * v850-tdep.c (v850_type_is_scalar): New function.
8198 (v850_use_struct_convention): Match current gcc implementation
8199 as close as possible.
8200 (v850_push_arguments): Fix stack_offset handling. Don't write
8201 struct_addr into register. This is done by v850_store_struct_return.
8202 (v850_extract_return_value): Care for structs.
8203 (v850_store_return_value): Ditto.
8204 (v850_store_struct_return): Actually write address.
8205
8206 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8207
8208 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8209 without debug information too.
8210
8211 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8212
8213 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8214 Make multi-arch pure.
8215 * gdbarch.h, gdbarch.c: Re-generate.
8216 * arm-tdep.c (arm_print_float_info): Update.
8217 * arch-utils.h (default_print_float_info): Update.
8218 * arch-utils.c (default_print_float_info): Update.
8219 * infcmd.c (float_info): Update call.
8220
8221 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8222
8223 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8224 the front of the initialize list.
8225
8226 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8227
8228 * infrun.c (struct inferior_status): Replace fields
8229 selected_frame_address and selected_level with field
8230 selected_frame_id.
8231 (save_inferior_status): Update. Use get_frame_id.
8232 (struct restore_selected_frame_args): Delete.
8233 (restore_selected_frame): Update. Use frame_find_by_id.
8234 (restore_inferior_status): Update.
8235
8236 * breakpoint.h (struct breakpoint): Change type of
8237 watchpoint_frame to frame_id.
8238 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8239 call to get_current_frame.
8240 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8241 get_current_frame.
8242 (watchpoint_check): Use frame_find_by_id.
8243
8244 * frame.h (record_selected_frame): Delete declaration.
8245 * stack.c (record_selected_frame): Delete function.
8246
8247 * frame.h (struct frame_id): Define.
8248 (get_frame_id): Declare.
8249 (frame_find_by_id): Declare.
8250 * frame.c (frame_find_by_id): New function.
8251 (get_frame_id): New function.
8252
8253 2002-06-10 Andrey Volkov <avolkov@transas.com>
8254
8255 * ser-e7kpc.c: Fix duplicated define and call of
8256 _initialize_ser_e7000pc
8257
8258 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8259
8260 * signals/signals.c (target_signal_from_host): Fix #ifdef
8261 SIGRTMIN case.
8262 (do_target_signal_to_host): Likewise.
8263
8264 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8265
8266 * mips-tdep.c (mips_find_abi_section): New function.
8267 (mips_gdbarch_init): Call it.
8268
8269 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8270
8271 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8272 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8273 after Andrew's 2002-06-08 gdbarch change.
8274
8275 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8276
8277 * i386-linux-nat.c (suppy_gregset): Don't supply
8278 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8279 register cache.
8280 (fill_gregset): Don't fetch it under the same circumstances.
8281
8282 2002-06-09 Andrew Cagney <cagney@redhat.com>
8283
8284 * Makefile.in (callback_h): Define.
8285 (remote_sim_h): Update path to remote-sim.h.
8286 (remote-rdp.o): Add $(callback_h).
8287 (remote-sim.o): Use $(callback_h).
8288 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8289 * remote-rdp.c: Include "gdb/callback.h".
8290
8291 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8292
8293 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8294 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8295
8296 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8297
8298 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8299 * rdi-share/serpardr.c: Ditto.
8300 * rdi-share/unixcomm.c: Ditto.
8301 * rdi-share/serdrv.c: Ditto.
8302 * rdi-share/hostchan.h: Ditto.
8303 * rdi-share/hostchan.c: Ditto.
8304 * rdi-share/host.h: Ditto.
8305 * rdi-share/devsw.c: Ditto.
8306
8307 * objfiles.h: Change type of obj_private to void pointer.
8308 * pa64solib.c: Update copyright. Don't include "assert.h", use
8309 strcmp instead of STREQ, use LONGEST, do not use PTR
8310 * somsolib.c: Ditto.
8311
8312 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8313 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8314 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8315
8316 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8317
8318 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8319 (default_get_saved_register): Delete function.
8320 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8321 generic_unwind_get_saved_register.
8322 * gdbarch.h, gdbarch.c: Re-generate.
8323
8324 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8325
8326 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8327 generic_func_frame_chain_valid.
8328 * gdbarch.h, gdbarch.c: Re-generate.
8329 * blockframe.c (generic_func_frame_chain_valid): Only check
8330 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8331 passing FP to PC_IN_CALL_DUMMY.
8332 Fix PR gdb/360.
8333
8334 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8335
8336 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8337 (register_gdbarch_data): Initialize init_p.
8338 (gdbarch_data): Initialize data pointer using the init function.
8339 (init_gdbarch_data): Delete function.
8340 (gdbarch_update_p): Update.
8341 (initialize_non_multiarch): Update.
8342 (struct gdbarch): Add field initialized_p.
8343 * gdbarch.h, gdbarch.c: Re-generate.
8344
8345 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8346
8347 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8348 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8349 better do the things actually here.
8350 * x86-64-tdep.c (x86_64_register_name2nr): New.
8351 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8352 (x86_64_gdbarch_init): Respect the above change.
8353 * x86-64-tdep.h (x86_64_register_name2nr)
8354 (x86_64_register_nr2name): Add prototypes.
8355 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8356
8357 2002-06-06 Michael Snyder <msnyder@redhat.com>
8358
8359 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8360 Delete extra braces and re-indent.
8361 (d10v_store_return_value): Char return values
8362 must be shifted over by one byte in R0.
8363 (d10v_extract_return_value): Delete extra braces, re-indent.
8364
8365 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8366
8367 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8368 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8369 (d10v_integer_to_address): Rewrite.
8370 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8371 the d10v specific functions which take care of converting to the
8372 correct space.
8373
8374 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8375
8376 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8377 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8378
8379 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8380
8381 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8382 includes.
8383 * config/tm-linux.h: Ditto.
8384 * config/alpha/tm-alphalinux.h: Ditto.
8385 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8386 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8387 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8388 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8389 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8390 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8391 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8392 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8393 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8394 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8395 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8396 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8397 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8398 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8399 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8400 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8401 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8402 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8403 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8404 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8405 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8406 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8407 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8408 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8409 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8410 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8411 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8412 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8413 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8414 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8415 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8416 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8417 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8418 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8419 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8420 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8421 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8422
8423 2002-05-04 Aidan Skinner <aidan@velvet.net>
8424
8425 * ada-exp.tab.c: New file
8426 * ada-exp.y: New file
8427 * ada-lang.c: New file
8428 * ada-lang.h: New file
8429 * ada-lex.c: New file
8430 * ada-lex.l: New file
8431 * ada-tasks.c: New file
8432 * ada-typeprint.c: New file
8433 * ada-valprint.c: New file
8434
8435 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8436
8437 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8438 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8439
8440 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8441
8442 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8443 insetead of ppc-linux-tdep.o.
8444 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8445 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8446
8447 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8448
8449 2002-05-07 Christian Groessler <chris@groessler.org>
8450 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8451 bit register contents for little endian hosts.
8452
8453 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8454
8455 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8456 any maintainer.
8457
8458 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8459
8460 * gdbarch.h: Regenerate.
8461
8462 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8463
8464 * MAINTAINERS: Add everyone to write-after-approval list.
8465
8466 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8467
8468 * stack.c (frame_info): Use frame_register_unwind instead of
8469 saved_regs. Mention when the SP is on the stack or in a register.
8470
8471 * frame.h (frame_register_unwind_ftype): Define. Document.
8472 (struct frame_info): Add field register_unwind and
8473 register_unwind_cache.
8474 (frame_register_unwind): Declare.
8475 (generic_unwind_get_saved_register): Declare.
8476
8477 * frame.c (frame_register_unwind): New function.
8478 (generic_unwind_get_saved_register): New function.
8479
8480 * blockframe.c (generic_call_dummy_register_unwind): New function.
8481 (frame_saved_regs_register_unwind): New function.
8482 (set_unwind_by_pc): New function.
8483 (create_new_frame): New function.
8484 (get_prev_frame): New function.
8485
8486 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8487
8488 * a29k-share/: Delete directory.
8489 * remote-vx29k.c: Delete file.
8490
8491 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8492
8493 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8494 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8495
8496 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8497
8498 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8499 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8500 (sparc64nbsd-nat.o)
8501 (sparcnbsd-nat.o)
8502 (sparcnbsd-tdep.o): New dependency lists.
8503 * NEWS: Note new UltraSPARC NetBSD native configuration.
8504 * configure.host (sparc64-*-netbsd*): New host.
8505 * configure.tgt (sparc-*-netbsdelf*)
8506 (sparc-*-netbsd*): Set gdb_target to nbsd.
8507 (sparc64-*-netbsd*): New target.
8508 * sparc64nbsd-nat.c: New file.
8509 * sparcnbsd-nat.c: New file.
8510 * sparcnbsd-tdep.c: New file.
8511 * sparcnbsd-tdep.h: New file.
8512 * config/sparc/nbsd.mt: New file.
8513 * config/sparc/nbsd64.mh: New file.
8514 * config/sparc/nbsd64.mt: New file.
8515 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8516 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8517 (HOST_IPC): Remove.
8518 * config/sparc/nbsdaout.mt: Remove.
8519 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8520 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8521 (HOST_IPC): Remove.
8522 * config/sparc/nbsdelf.mt: Remove.
8523 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8524 sparc-nat.c compatiblity defines.
8525 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8526 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8527 * config/sparc/tm-nbsd64.h: New file.
8528 * config/sparc/tm-nbsdaout.h: Remove.
8529 * config/sparc/xm-nbsd.h: Remove.
8530
8531 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8532
8533 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8534 * sparc-tdep.c: Include osabi.h.
8535 (gdbarch_tdep): Add osabi member.
8536 (_initialize_sparc_tdep): Use gdbarch_register.
8537 (sparc_gdbarch_init): Use generic OS ABI framework.
8538 (sparc_dump_tdep): New function.
8539
8540 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8541
8542 * corefile.c (do_captured_read_memory_integer): Return non-zero
8543 result.
8544 (safe_read_memory_integer): Copy result of memory read when
8545 status is non-zero. Also, add comments.
8546
8547 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8548
8549 * Makefile.in (ppc_tdep_h): Define.
8550 (ppc-linux-nat.o)
8551 (ppc-linux-tdep.o)
8552 (rs6000-tdep.o): Use $(ppc_tdep_h).
8553 (ppc-sysv-tdep.o)
8554 (ppcnbsd-nat.o)
8555 (ppcnbsd-tdep.o): New dependency lists.
8556 * ppc-tdep.h: Use generic OS ABI framework.
8557 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8558 (ppc_linux_init_abi): New functions.
8559 (ppc_sysv_abi_broken_use_struct_convention)
8560 (ppc_sysv_abi_use_struct_convention)
8561 (ppc_sysv_abi_push_arguments): Move to...
8562 * ppc-sysv-tdep.c: ...here.
8563 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8564 * rs6000-tdep.c (process_note_abi_tag_sections)
8565 (get_elfosabi): Remove.
8566 (rs6000_gdbarch_init): Use generic OS ABI framework.
8567 (rs6000_dump_tdep): New function.
8568 (_initialize_rs6000_tdep): Use gdbarch_register.
8569 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8570 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8571 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8572 of ppc-linux-tdep.o.
8573 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8574 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8575 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8576 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8577 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8578 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8579
8580 2002-05-29 Jim Blandy <jimb@redhat.com>
8581
8582 * macroscope.c (default_macro_scope): Put `void' in empty argument
8583 list.
8584
8585 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8586
8587 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8588 * arch-utils.c: Include "sim-regno.h".
8589 * gdbarch.sh: Don't include "sim-regno.h".
8590 * gdbarch.h, gdbarch.c: Regenerate.
8591 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8592 here.
8593 * arch-utils.h (legacy_register_sim_regno): To here.
8594 * remote-sim.c (legacy_register_sim_regno): Move function from
8595 here.
8596 * arch-utils.c (legacy_register_sim_regno): To here.
8597
8598 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8599
8600 * sim-regno.h: New file.
8601 * Makefile.in (sim_regno_h): Define.
8602 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8603 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8604 (legacy_register_sim_regno): New function.
8605 (one2one_register_sim_regno): New function.
8606 (gdbsim_fetch_register): Rewrite.
8607 (gdbsim_store_register): Only store a register when
8608 REGISTER_SIM_REGNO is valid.
8609 * d10v-tdep.c: Include "sim-regno.h".
8610 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8611 (d10v_ts3_register_sim_regno): Ditto.
8612 * gdbarch.sh: Include "sim-regno.h".
8613 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8614 * gdbarch.h, gdbarch.c: Regenerate.
8615 * arch-utils.h (default_register_sim_regno): Delete declaration.
8616 * arch-utils.c (default_register_sim_regno): Delete function.
8617
8618 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8619
8620 * ppcnbsd-nat.c: Rewrite.
8621 * ppcnbsd-tdep.c: New file.
8622 * ppcnbsd-tdep.h: New file.
8623 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8624 solib.o, and solib-svr4.o.
8625 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8626 nbsd-tdep.o, and corelow.o.
8627
8628 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8629
8630 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8631 `tr' and `sed'. Mention that `broken' targets are not expected to
8632 build.
8633
8634 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8635
8636 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8637 Let PC point right after the prologue before looking up symbols.
8638
8639 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8640
8641 * i386-tdep.c (i386_register_virtual_type): Return
8642 builtin_type_vec128i for SSE registers.
8643
8644 * gdbtypes.h (builtin_type_vec128i): Declare.
8645
8646 * gdbtypes.c (build_builtin_type_vec128i): New function.
8647 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8648 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8649 (build_gdbtypes): Initialize new builtin vector types.
8650 (_initialize_gdbtypes): Register new vector types with gdbarch.
8651
8652 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8653
8654 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8655 since it has been multi-arch'd.
8656 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8657 Move Alpha and VAX multi-arch news entries to same section
8658 as other multi-arch news.
8659
8660 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8661
8662 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8663 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8664 static. Rename some register numbers to put them in ns32k-tdep
8665 private namespace.
8666 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8667 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8668 functions.
8669 (_initialize_ns32k_tdep): Use gdbarch_register.
8670 * ns32k-tdep.h: New file.
8671 * ns32knbsd-tdep.c: New file.
8672 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8673 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8674 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8675 REGISTER_BYTES, REGISTER_BYTE): Remove.
8676 * config/ns32k/tm-ns32k.h: New file.
8677 * config/ns32k/tm-umax.h: Remove.
8678
8679 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8680
8681 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8682 ns32k_store_struct_return, ns32k_extract_return_value,
8683 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8684 functions.
8685 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8686 ns32k_saved_pc_after_call.
8687 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8688 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8689 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8690 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8691 ns32k_extract_struct_value_address.
8692
8693 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8694
8695 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8696 ns32k_fix_call_dummy): New.
8697 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8698 ns32k_call_dummy_words.
8699 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8700 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8701 CALL_DUMMY_NARGS): Remove.
8702 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8703
8704 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8705
8706 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8707 ns32k_frame_saved_pc, ns32k_frame_args_address,
8708 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8709 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8710 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8711 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8712 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8713 (BREAKPOINT): Remove..
8714 (FRAME_CHAIN): Define as ns32k_frame_chain.
8715 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8716 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8717 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8718 (FRAME_FIND_SAVED_REGS): Remove.
8719 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8720 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8721 (POP_FRAME): Define as ns32k_pop_frame.
8722
8723 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8724
8725 * ns32k-tdep.c (ns32k_register_byte_32082,
8726 ns32k_register_byte_32382, ns32k_register_raw_size,
8727 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8728 functions.
8729 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8730 ns32k_register_byte_32382.
8731 * config/ns32k/tm-umax.h: Update copyright years.
8732 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8733 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8734 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8735 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8736 (ns32k_get_enter_addr): Fix prototype.
8737
8738 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8739
8740 * ns32k-tdep.c: Update copyright years.
8741 (ns32k_register_name_32082): New function.
8742 (ns32k_register_name_32382): Ditto.
8743 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8744 (REGISTER_NAME): Define as ns32k_register_name_32382.
8745 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8746 (REGISTER_NAME): Define as ns32k_register_name_32082.
8747
8748 2002-05-24 Jim Blandy <jimb@redhat.com>
8749
8750 * dwarf2read.c (free_line_header): Use xfree, not free.
8751
8752 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8753
8754 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8755 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8756
8757 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8758
8759 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8760
8761 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8762
8763 From Ross Alexander at NEC Europe:
8764 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8765
8766 2002-05-23 Michael Snyder <msnyder@redhat.com>
8767
8768 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8769 for input, rather than parse_and_eval_address.
8770
8771 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8772
8773 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8774 * Makefile.in (sim_d10v_h): Update definition.
8775
8776 2002-05-24 Andrew Cagney <cagney@redhat.com>
8777
8778 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8779 change `2002-05-22 Michael Snyder' below.
8780 (d10v_push_arguments): Ditto.
8781 (d10v_extract_return_value): Ditto.
8782
8783 2002-05-23 Jim Blandy <jimb@redhat.com>
8784
8785 * macrotab.c (check_for_redefinition): Don't complain if the new
8786 definition is the same as the previous one. Take more arguments
8787 to allow the comparison.
8788 (macro_define_object, macro_define_function): Pass more arguments
8789 to check_for_redefinition.
8790
8791 2002-05-22 Michael Snyder <msnyder@redhat.com>
8792
8793 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8794 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8795 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8796 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8797 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8798 Add a temp variable to save a call (and a memory read).
8799 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8800 if possible (so that PC_IN_CALL_DUMMY will work).
8801
8802 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8803
8804 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8805
8806 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8807
8808 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8809 fde->cie_ptr.
8810 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8811 (dwarf2_build_frame_info): Add offset to fde->initial_location
8812 so that frames of shared libraries are mapped correctly.
8813 (execute_stack_op): Change type of 'result' from ULONGEST to
8814 CORE_ADDR.
8815
8816 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8817
8818 * config/alpha/tm-nbsd.h: Include solib.h.
8819
8820 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8821
8822 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8823 assumptions about the host's byte order.
8824
8825 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8826
8827 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8828 to dependency list.
8829 * alphanbsd-tdep.c: Include solib-svr4.h.
8830 * shnbsd-tdep.c: Ditto.
8831
8832 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8833
8834 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8835 nbsd-tdep.h to dependency list.
8836 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8837 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8838 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8839 nbsdaout.mh and nbsdelf.mh consistently.
8840 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8841 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8842 nbsdaout.mt and nbsdelf.mh consistently.
8843 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8844 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8845 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8846 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8847 a.out shared library stuff from here...
8848 * config/nm-nbsdaout.h: ...to here.
8849 * config/tm-nbsd.h: Remove.
8850 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8851 * config/arm/nbsd.mh: Remove.
8852 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8853 nbsd-tdep.o.
8854 * config/arm/nbsdaout.mh: New file.
8855 * config/arm/nbsdelf.mh: New file.
8856 * config/arm/nm-nbsdaout.h: New file.
8857 * config/i386/nbsd.mh: Remove.
8858 * config/i386/nbsd.mt: Remove.
8859 * config/i386/nbsdaout.mh: New file.
8860 * config/i386/nbsdaout.mt: New file.
8861 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8862 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8863 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8864 i386_register_u_addr): Remove.
8865 * config/i386/nm-nbsdaout.h: New file.
8866 * config/i386/nm-nbsdelf.h: Remove.
8867 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8868 (USE_STRUCT_CONVENTION): Remove.
8869 * config/i386/tm-nbsdaout.h: New file.
8870 * config/i386/tm-nbsdelf.h: Remove.
8871 * config/m68k/nbsd.mh: Remove.
8872 * config/m68k/nbsd.mt: Remove.
8873 * config/m68k/nbsdaout.mh: New file.
8874 * config/m68k/nbsdaout.mt: New file.
8875 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8876 * config/m68k/nm-nbsdaout.h: New file.
8877 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8878 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8879 * config/ns32k/nbsd.mh: Remove.
8880 * config/ns32k/nbsd.mt: Remove.
8881 * config/ns32k/nbsdaout.mh: New file.
8882 * config/ns32k/nbsdaout.mt: New file.
8883 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8884 * config/ns32k/nm-nbsdaout.h: New file.
8885 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8886 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8887 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8888 (SVR4_SHARED_LIBS): Remove.
8889 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8890 * config/sparc/nbsd.mh: Remove.
8891 * config/sparc/nbsd.mt: Remove.
8892 * config/sparc/nbsdaout.mh: New file.
8893 * config/sparc/nbsdaout.mt: New file.
8894 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8895 * config/sparc/nbsdelf.mt: New file.
8896 * config/sparc/nm-nbsdaout.h: New file.
8897 * config/sparc/nm-nbsdelf.h: Remove.
8898 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8899 * config/sparc/tm-nbsdaout.h: New file.
8900
8901 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8902
8903 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8904 mipsnbsd-tdep.c
8905 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8906
8907 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8908
8909 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8910 shnbsd-nat.c.
8911 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8912
8913 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8914
8915 * NEWS: Note new MIPS NetBSD native configuration.
8916 * configure.host (mips*-*-netbsd*): New host.
8917 * configure.tgt (mips*-*-netbsd*): New target.
8918 * mipsnbsd-nat.c: New file.
8919 * mipsnbsd-tdep.c: New file.
8920 * mipsnbsd-tdep.h: New file.
8921 * config/mips/nbsd.mh: New file.
8922 * config/mips/nbsd.mt: New file.
8923 * config/mips/nm-nbsd.h: New file.
8924 * config/mips/tm-nbsd.h: New file.
8925
8926 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8927
8928 * Makefile.in (SFILES): Add osabi.c.
8929 (COMMON_OBS): Add osabi.o.
8930 (osabi.o): New dependency list.
8931 * osabi.c: New file.
8932 * osabi.h: New file.
8933 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8934
8935 * Makefile.in (alpha_tdep_h): Define and use instead of
8936 alpha-tdep.h.
8937 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8938 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8939 Remove.
8940 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8941 * alpha-tdep.h: Include osabi.h.
8942 (alpha_abi): Remove.
8943 (gdbarch_tdep): Use generic OS ABI framework.
8944 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8945 gdbarch_register_osabi.
8946 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8947 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8948 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8949
8950 * Makefile.in (sh_tdep_h): Add osabi.h.
8951 * sh-tdep.h (sh_osabi): Remove.
8952 (gdbarch_tdep): Use generic OS ABI framework.
8953 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8954 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8955 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8956 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8957
8958 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8959 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8960 gdbarch_register_osabi.
8961 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8962 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8963 (get_elfosabi): Rename to...
8964 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8965 ABI framework support routines.
8966 (arm_gdbarch_init): Use generic OS ABI framework.
8967 (arm_dump_tdep): Likewise.
8968 (_initialize_arm_tdep): Likewise.
8969 * arm-tdep.h: Include osabi.h.
8970 (arm_abi): Remove.
8971 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8972 osabi member.
8973 (arm_gdbarch_register_os_abi): Remove prototype.
8974 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8975 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8976
8977 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8978 * mips-tdep.c: Include osabi.h.
8979 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8980 OS ABI framework.
8981
8982 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8983
8984 * h8300-tdep.c: Fix formatting.
8985
8986 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8987
8988 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8989 printing vector registers.
8990
8991 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8992
8993 From Fernando Nasser:
8994 * remote.c (remote_async_open_1): Re-throw the exception when the
8995 connection fails.
8996 (remote_cisco_open): Ditto.
8997 (remote_open_1): Ditto.
8998
8999 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9000
9001 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9002 (remote_start_remote): Add uiout parameter. Pass through to
9003 remote_start_remote_dummy.
9004 (remote_open_1): Use catch_exception instead of catch_errors.
9005 (remote_async_open_1): Ditto.
9006 (remote_cisco_open): Ditto.
9007
9008 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9009
9010 * remote.c (remote_start_remote): Replace PTR with void pointer.
9011 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9012 static.
9013
9014 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9015
9016 * gdb_indent.sh: Allow the script to be run in the sim directory.
9017
9018 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9019
9020 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9021 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9022
9023 * corelow.c (core_open): Only call set_gdbarch_from_file if
9024 exec_bfd is NULL.
9025
9026 2002-05-17 Andrey Volkov <avolkov@transas.com>
9027
9028 * h8300-tdep.c: Add support of EXR register
9029 * config/h8300/tm-h8300.h: Ditto.
9030
9031 2002-05-17 Andrey Volkov <avolkov@transas.com>
9032
9033 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9034
9035 2002-05-17 Andrey Volkov <avolkov@transas.com>
9036
9037 * h8300-tdep.c: Change literal regnums to REGNO.
9038
9039 2002-05-17 Jim Blandy <jimb@redhat.com>
9040
9041 * NEWS: Note addition of macro support.
9042
9043 Expand preprocessor macros in C expressions.
9044 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9045 (scan_macro_expansion, scanning_macro_expansion,
9046 finished_macro_expansion): New function declarations.
9047 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9048 variable declarations.
9049 * parser-defs.h (expression_context_pc): New declaration.
9050 * parse.c (expression_context_pc): New variable.
9051 (parse_exp_1): Set expression_context_pc, as well as
9052 expression_context_block.
9053 * c-exp.y (yylex): If we're not already reading the result of a
9054 macro expansion, try to macro-expand the next token. When we're
9055 done scanning a macro expansion, switch back to the mainline text.
9056 Commas and `if's in a macro's expansion don't terminate the input.
9057 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9058 (macro_original_text, macro_expanded_text,
9059 expression_macro_lookup_func, expression_macro_lookup_baton): New
9060 variables.
9061 (scan_macro_expansion, scanning_macro_expansion,
9062 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9063 c_preprocess_and_parse): New functions.
9064 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9065 c_preprocess_and_parse, instead of c_parse.
9066 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9067 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9068
9069 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9070
9071 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9072 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9073 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9074
9075 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9076
9077 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9078
9079 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9080
9081 * Makefile.in (sh_tdep_h): Define and use.
9082 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9083 register enum): Move to...
9084 * * sh-tdep.h: ...here.
9085 * sh-tdep.c: Include sh-tdep.h.
9086 * sh3-rom.c: Likewise.
9087 * shnbsd-tdep.c: Likewise.
9088
9089 2002-05-16 Michael Snyder <msnyder@redhat.com>
9090
9091 * arm-tdep.c: Spelling fix in comment.
9092
9093 2002-05-16 Jim Blandy <jimb@redhat.com>
9094
9095 Add commands for manually expanding macros and showing their
9096 definitions.
9097 * macrocmd.c, macroscope.c, macroscope.h: New files.
9098 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9099 (macroscope_h): New variable.
9100 (HFILES_NO_SRCDIR): Add macroscope.h.
9101 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9102 (macroscope.o, macrocmd.o): New rules.
9103
9104 Teach the Dwarf 2 reader to read macro information.
9105 * dwarf2read.c: #include "macrotab.h".
9106 (dwarf_macinfo_buffer): New variable.
9107 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9108 dwarf_macinfo_size.
9109 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9110 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9111 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9112 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9113 dwarf2_macro_spaces_in_definition): New complaints.
9114 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9115 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9116 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9117 the partial symbol table.
9118 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9119 from what's recorded in the partial symbol table.
9120 (read_file_scope): If the compilation unit has a
9121 `DW_AT_macro_info' attribute, read its macro information.
9122 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9123
9124 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9125
9126 Fix PR gdb/546
9127 * ser-tcp.c: Don't include <netinet/udp.h>.
9128
9129 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9130
9131 * MAINTAINERS: Update my email address.
9132
9133 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9134
9135 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9136 include file of the same name.
9137
9138 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9139
9140 * configure.tgt: Mark v850 as multi-arched.
9141 * config/v850/tm-v850.h: Remove file.
9142 * config/v850/v850.mt: Eliminate TM_FILE.
9143
9144 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9145
9146 * v850-tdep.c: Full multi-arch.
9147 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9148 Define GDB_MULTI_ARCH to 2.
9149
9150 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9151
9152 * p-exp.y (current_type): New static variable.
9153 Carries the type of the expression at the position that is parsed.
9154 (push_current_type, pop_current_type): Two new functions. Used
9155 to store/restore current_type in expression on specific tokens.
9156 (search_field): New static variable. Set to one after parsing a point
9157 as at that point only a FIELDNAME token should be searched.
9158 (FIELDNAME): New token. After a point only a token belonging to
9159 current_type type definition is allowed.
9160 (all over token rules): reset and change current_type according
9161 to rules.
9162 (exp '[' rule): insert implicit array index field if
9163 exp is a pascal string type.
9164
9165 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9166
9167 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9168 frame info. Use frame_info's saved_regs instead of matching member
9169 in extra_frame_info throughout.
9170 (v850_frame_init_saved_regs): New function.
9171 (v850_init_extra_frame_info): Move most functionality into
9172 v850_frame_init_saved_regs().
9173 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9174 (v850_frame_find_saved_regs): Remove declaration.
9175 (FRAME_FIND_SAVED_REGS): Remove definition.
9176 (v850_frame_init_saved_regs): Add declaration.
9177 (FRAME_INIT_SAVED_REGS): Add definition.
9178
9179 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9180
9181 * v850-tdep.c: Begin multi-arch'ing v850.
9182 (v850_target_architecture_hook): Remove function.
9183 (v850_gdbarch_init): New function. Add code previously in
9184 v850_target_architecture_hook().
9185 (_initialize_v850_tdep): Don't set target_architecture_hook.
9186 Call register_gdbarch_init() instead.
9187
9188 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9189
9190 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9191 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9192 (fixup_class_method_type): Likewise.
9193
9194 2002-05-15 Jim Blandy <jimb@redhat.com>
9195
9196 Add macro structures to GDB's symbol tables. Nobody puts anything
9197 in them yet.
9198 * symtab.h (struct symtab): New member: `macro_table'.
9199 * buildsym.h (pending_macros): New global variable.
9200 * buildsym.c: #include "macrotab.h".
9201 (buildsym_init): Initialize `pending_macros'.
9202 (end_symtab): If we found macro information while reading a CU's
9203 debugging info, do build a symtab structure for it. Make the
9204 symtab point to the macro information, and clear the
9205 `pending_macros' pointer which held it while we were reading the
9206 debug info.
9207 (really_free_pendings): Free any pending macro table.
9208 * objfiles.h (struct objfile): New member: `macro_cache'.
9209 * objfiles.c (allocate_objfile): Set allocate and free functions
9210 for the macro cache's objstack.
9211 (free_objfile): Empty the macro cache's obstack.
9212 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9213 set new allocate and free functions for it.
9214 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9215 free functions for the macro cache's objstack. (Why is this
9216 function building its own objfile?)
9217 * symmisc.c (print_objfile_statistics): Print statistics on the
9218 macro bcache.
9219 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9220
9221 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9222
9223 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9224 (REGISTER_U_ADDR): Delete definition.
9225 (arm_register_u_addr): Delete declaration.
9226
9227 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9228
9229 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9230 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9231
9232 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9233
9234 * regcache.c (register_valid): Revise comments refering to "Not
9235 available" and "unavailable".
9236 * frame.c (frame_register_read): Ditto.
9237 * findvar.c (value_of_register): Ditto.
9238
9239 2002-05-15 Andrew Cagney <cagney@redhat.com>
9240
9241 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9242 (remote-sim.o): Update dependencies.
9243 (d10v-tdep.o): Specify dependencies.
9244 (sim_d10v_h): Define.
9245
9246 2002-05-14 Jim Blandy <jimb@redhat.com>
9247
9248 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9249 * macrotab.c (macro_lookup_inclusion, find_definition,
9250 new_macro_table): Same.
9251
9252 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9253 not `! strcmp ()'. This is a dubious improvement.
9254 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9255
9256 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9257 although it's not necessary, to avoid a warning.
9258
9259 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9262 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9263 TYPE_INSTANCE_FLAGS.
9264 (struct main_type): New.
9265 (struct type): Move most members to struct main_type. Change
9266 cv_type and as_type to new type_chain member. Add instance_flags.
9267 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9268 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9269 (finish_cv_type): Remove prototype.
9270 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9271 Set TYPE_CHAIN.
9272 (alloc_type_instance): New function.
9273 (smash_type): New function.
9274 (make_pointer_type, make_reference_type, make_function_type)
9275 (smash_to_member_type, smash_to_method_type): Call smash_type.
9276 (make_qualified_type): New function.
9277 (make_type_with_address_space): Call make_qualified_type.
9278 (make_cv_type): Likewise.
9279 (finish_cv_type): Remove unnecessary function.
9280 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9281 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9282 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9283 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9284 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9285 * hpread.c (hpread_read_struct_type): Likewise.
9286 * stabsread.c (read_struct_type): Likewise.
9287
9288 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9289
9290 * configure.tgt: Add a catch all sh* target, for cases like
9291 sh[2,3,4]-elf and sh-hms.
9292
9293 2002-05-14 Keith Seitz <keiths@redhat.com>
9294
9295 * event-loop.c (create_file_handler): Don't do anything but
9296 update data when we are given a fd which we are already
9297 monitoring.
9298
9299 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9300
9301 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9302 (update_context): Use __func__ in warnings.
9303
9304 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9305
9306 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9307 and tcp_close to net_open and net_close.
9308 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9309 using UDP if requested. Don't try to disable Nagle on UDP
9310 sockets.
9311 * remote.c (remote_serial_open): New function. Warn about UDP.
9312 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9313
9314 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9315
9316 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9317
9318 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9319
9320 * configure.tgt: Remove sh-hms target.
9321 * MAINTAINERS: Don't list sh-hms as a separate target.
9322
9323 2002-05-13 Jim Blandy <jimb@redhat.com>
9324
9325 Add first preprocessor macro-expansion files.
9326 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9327 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9328 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9329 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9330 (COMMON_OBS): Add macrotab.o, macroexp.o.
9331 (macroexp.o, macrotab.o): New rules.
9332
9333 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9334
9335 * config/m88k/tm-m88k.h: Update copyright.
9336 (m88k_target_write_pc): Declare
9337 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9338 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9339 (SHIFT_INST_REGS): Update definition.
9340 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9341 using old definition of TARGET_WRITE_PC.
9342 * regcache.c (generic_target_write_pc): Delete code handling
9343 NNPC_REGNUM.
9344 * gdbarch.sh (NNPC_REGNUM): Delete.
9345 * gdbarch.h, gdbarch.c: Regenerate.
9346
9347 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9348
9349 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9350 builtin reg number.
9351
9352 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9353
9354 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9355 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9356 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9357 access macros.
9358 * c-typeprint.c (cp_type_print_method_args): Likewise.
9359 (c_type_print_args): Likewise.
9360 * d10v-tdep.c (d10v_push_arguments): Likewise.
9361 (d10v_extract_return_value): Likewise.
9362 * expprint.c (print_subexp): Likewise.
9363 * gdbtypes.c (lookup_primitive_typename): Likewise.
9364 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9365 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9366 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9367 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9368 (TYPE_VECTOR): Likewise.
9369 * hpread.c (hpread_read_struct_type)
9370 (fix_static_member_physnames, fixup_class_method_type)
9371 (hpread_type_lookup): Likewise.
9372 * mdebugread.c (parse_symbol, parse_type): Likewise.
9373 * p-lang.c (is_pascal_string_type): Likewise.
9374 * valops.c (hand_function_call): Likewise.
9375 * x86-64-tdep.c (classify_argument): Likewise.
9376
9377 * hpread.c (hpread_read_function_type)
9378 (hpread_read_doc_function_type): Call replace_type.
9379 * dstread.c (create_new_type): Delete.
9380 (decode_dst_structure, process_dst_function): Call alloc_type.
9381 Use type access macros.
9382
9383 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9384
9385 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9386 the're not supported by the current architecture.
9387 (i387_fill_fxsave): Likewise.
9388
9389 2002-05-12 Fred Fish <fnf@redhat.com>
9390
9391 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9392 sect_index_xxx members to index the first slot in section_offsets
9393 if all of the section_offsets are zero.
9394
9395 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9396
9397 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9398 checked in with last change.
9399
9400 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9401
9402 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9403 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9404 config.sub.
9405
9406 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9407
9408 * Makefile.in: Update dependencies.
9409
9410 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9411
9412 * language.c (local_hex_string_custom): Simplify. Do not depend
9413 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9414
9415 * memattr.c (mem_info_command): Replace calls to
9416 longest_local_hex_string and longest_local_hex_string_custom.
9417 * buildsym.c (make_blockvector): Ditto.
9418 * solib.c (info_sharedlibrary_command): Ditto.
9419 * tracepoint.c (tracepoints_info): Ditto.
9420 * symtab.c (print_msymbol_info): Ditto.
9421
9422 * language.c (local_hex_string): Delete.
9423 (local_hex_string_custom): Delete.
9424 (longest_local_hex_string): Rename to local_hex_string.
9425 (longest_local_hex_string_custom): Rename to
9426 local_hex_string_custom.
9427 * language.h (local_hex_string): Change parameter type to LONGEST.
9428 (local_hex_string_custom): Ditto.
9429 (longest_local_hex_string): Delete declaration.
9430 (longest_local_hex_string_custom): Ditto.
9431
9432 * solib.c: Update copyright.
9433 * memattr.c: Update copyright.
9434
9435 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9436
9437 * arch-utils.h (legacy_register_to_value): Declare.
9438 (legacy_value_to_register): Declare.
9439 (legacy_convert_register_p): Declare.
9440 * arch-utils.c (legacy_register_to_value): New function.
9441 (legacy_value_to_register): New function.
9442 (legacy_convert_register_p): New function.
9443
9444 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9445 (VALUE_TO_REGISTER): Define.
9446 (CONVERT_REGISTER_P): Define.
9447 * gdbarch.h, gdbarch.c: Regenerate.
9448
9449 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9450 VALUE_TO_REGISTER.
9451 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9452 CONVERT_REGISTER_P.
9453
9454 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9455 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9456
9457 * Makefile.in: Update dependencies for valops.c.
9458 * valops.c: Include "gdb_assert.h".
9459 (typecmp): Skip THIS parameter to methods.
9460 (find_method_list): Remove static_memfuncp argument,
9461 update callers. Check for stub methods.
9462 (find_value_oload_method_list): Don't set *static_memfuncp.
9463 (find_overload_match): Don't check for stub methods. Assert
9464 that methods are not stubbed. Handle static methods.
9465 (value_find_oload_method_list): Remove static_memfuncp argument.
9466 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9467 to the argument list for static stub methods.
9468 * value.h (value_find_oload_method_list): Update prototype.
9469
9470 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9471
9472 * arch-utils.h (generic_register_size): Declare.
9473 (generic_register_raw_size, generic_register_virtual_size): Delete
9474 declarations.
9475 * arch-utils.c (generic_register_raw_size): Delete.
9476 (generic_register_size): New function.
9477 (generic_register_virtual_size): Delete.
9478
9479 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9480 default generic_register_size.
9481 * gdbarch.h, gdbarch.c: Re-generate.
9482
9483 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9484 register_virtual_size.
9485 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9486 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9487
9488 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9489
9490 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9491 * gdbarch.h, gdbarch.c: Regenerate.
9492 * gnu-v3-abi.c: Update copyright.
9493 (vtable_address_point_offset): Update.
9494 (gnuv3_rtti_type): Update.
9495 (gnuv3_baseclass_offset): Update.
9496 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9497 (init_fetch_link_map_offsets): Update.
9498 * remote.c (get_remote_state): Update.
9499
9500 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9501
9502 * TODO: Remove value_headof/value_from_vtable_info comment.
9503 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9504 * values.c (value_headof, value_from_vtable_info): Delete.
9505 * value.h (value_from_vtable_info): Delete prototype.
9506
9507 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9508
9509 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9510 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9511 $(gdb_regex_h).
9512 (gdb_assert_h): Define.
9513 (gdb_wait_h): Define.
9514 (gdb_regex_h): Define.
9515
9516 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9517
9518 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9519 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9520
9521 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9522
9523 * nbsd-tdep.c: Fix comment.
9524
9525 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9526
9527 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9528 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9529 (nbsd-tdep.o): New dependency list.
9530 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9531 nbsd-tdep.h.
9532 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9533 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9534 * nbsd-tdep.c: New file.
9535 * nbsd-tdep.h: New file.
9536 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9537 nbsd-tdep.h.
9538 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9539 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9540 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9541 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9542
9543 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9544
9545 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9546 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9547 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9548 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9549 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9550 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9551
9552 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9553
9554 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9555 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9556 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9557 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9558 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9559 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9560 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9561
9562 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9563
9564 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9565 fetch_elfcore_registers to...
9566 * i386nbsd-tdep.c: ...here.
9567 (i386nbsd_use_struct_convention): Rename to...
9568 (i386nbsd_aout_use_struct_convention): ...this.
9569 (i386nbsd_supply_reg): New function.
9570 (i386nbsd_fill_reg): New function.
9571 (fetch_core_registers): Use i386nbsd_supply_reg.
9572 (fetch_elfcore_registers): Likewise.
9573 (_initialize_i386nbsd_tdep): New function.
9574 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9575 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9576 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9577 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9578 (i386nbsd_aout_use_struct_convention): ...this.
9579
9580 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9581
9582 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9583 (store_inferior_registers): Use shnbsd_fill_reg.
9584 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9585 sh_nbsd_supply_register): Collapse into...
9586 (shnbsd_supply_reg): ...this.
9587 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9588 (shnbsd_fill_reg): ...this.
9589 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9590 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9591 (fetch_core_registers): Use shnbsd_supply_reg.
9592 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9593 (sh_nbsd_core_fns): Rename to...
9594 (shnbsd_core_fns): ...this.
9595 (sh_nbsd_elfcore_fns): Rename to...
9596 (shnbsd_elfcore_fns): ...this.
9597 (sh_nbsd_init_abi): Rename to...
9598 (shnbsd_init_abi): ...this.
9599 (_initialize_sh_nbsd_tdep): Rename to...
9600 (_initialize_shnbsd_tdep): ...this.
9601 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9602 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9603 sh_nbsd_fill_register): Remove prototypes.
9604 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9605
9606 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9607
9608 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9609 (i387-nat.o): Delete dependency list.
9610 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9611 (x86-64-linux-nat.o): Likewise.
9612 * i387-nat.c: Delete file, moving contents to...
9613 * i387-tdep.c: ...here.
9614 * i387-nat.h: Rename...
9615 * i387-tdep.h: ...to this.
9616 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9617 * i386-linux-nat.c: Likewise.
9618 * i386bsd-nat.c: Likewise.
9619 * i386gnu-nat.c: Likewise.
9620 * i386nbsd-nat.c: Likewise.
9621 * i386v4-nat.c: Likewise.
9622 * x86-64-linux-nat.c: Likewise.
9623 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9624 * config/i386/go32.mh (NATDEPFILES): Likewise.
9625 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9626 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9627 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9628 * config/i386/linux.mh (NATDEPFILES): Likewise.
9629 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9630 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9631 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9632 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9633
9634 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9635
9636 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9637 (alphanbsd-nat.o): Remove dependency list.
9638 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9639 * alphanbsd-nat.c: Delete. Contents moved to...
9640 * alphanbsd-tdep.c: ...here.
9641 (_initialize_alphanbsd_tdep): Register core functions.
9642 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9643
9644 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9645
9646 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9647 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9648 (alphanbsd-nat.o): Likewise.
9649 (alphabsd-tdep.o): New dependency list.
9650 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9651 (fill_gregset): Use alphabsd_fill_reg.
9652 (supply_fpregset): Use alphabsd_supply_fpreg.
9653 (fill_fpregset): Use alphabsd_fill_fpreg.
9654 (fetch_inferior_registers): Use struct reg and struct fpreg
9655 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9656 and alphabsd_supply_fpreg.
9657 (store_inferior_registers): Use struct reg and struct fpreg
9658 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9659 and alphabsd_fill_fpreg.
9660 * alphabsd-tdep.c: New file.
9661 * alphabsd-tdep.h: New file.
9662 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9663 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9664 alphabsd_supply_fpreg.
9665 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9666 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9667
9668 2002-05-11 Eric Christopher <echristo@redhat.com>
9669
9670 * mips-tdep.c (mips_double_register_type): Fix thinko.
9671 (mips_single_register_type): Ditto.
9672 * MAINTAINERS: Add self.
9673
9674 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9675
9676 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9677 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9678 right thing on architectures with different endianness and/or
9679 integer sizes.
9680
9681 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9682
9683 From Christian Limpach <chris@Pin.LU>
9684 * configure.in: Change sed expression which comments out
9685 NATDEPFILES to also comment out continuation lines.
9686 * configure: Regenerate.
9687
9688 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9689
9690 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9691 big patch.
9692
9693 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9694
9695 * sh-tdep.c: Include correct file.
9696
9697 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9698
9699 New support for sh64-elf (sh5) target.
9700
9701 * configure.tgt: For sh64-elf target, default to sh-elf.
9702
9703 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9704 (struct gdbarch_tdep): Add new fields for new registers and ABI
9705 info.
9706
9707 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9708 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9709 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9710 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9711 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9712 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9713 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9714 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9715 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9716 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9717 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9718 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9719 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9720 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9721 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9722 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9723 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9724 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9725 sign_extend, sh64_nofp_frame_init_saved_regs,
9726 sh64_init_extra_frame_info, sh64_get_saved_register,
9727 sh64_extract_struct_value_address, sh64_pop_frame,
9728 sh64_push_arguments, sh64_extract_return_value,
9729 sh64_store_return_value, sh64_show_media_regs,
9730 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9731 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9732 sh_sh64_register_virtual_type,
9733 sh_sh64_register_convert_to_virtual,
9734 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9735 sh64_register_read, sh64_pseudo_register_write,
9736 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9737 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9738 sh64_do_pseudo_register, sh_compact_do_registers_info,
9739 sh64_do_registers_info, sh_gdbarch_init): New functions.
9740
9741 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9742
9743 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9744
9745 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9746
9747 * linespec.c (decode_line_1): Check for a double quote after
9748 a filename correctly.
9749
9750 2002-05-10 Jim Blandy <jimb@redhat.com>
9751
9752 Properly track the size of the current objfile's .debug_line section.
9753 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9754 (DWARF_LINE_SIZE): New macro.
9755 (dwarf2_build_psymtabs_hard): Record the line section's size in
9756 the partial symbol table.
9757 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9758 symbol table.
9759
9760 2002-05-10 Petr Sorfa <petrs@caldera.com>
9761
9762 * ia64-tdep.c: Handle breakpoints on L instruction type
9763 in MLX instruction bundle by moving the breakpoint to
9764 the third slot (X instruction type) as L holds only data.
9765
9766 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9767
9768 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9769 (process_one_symbol): Complain about discarding local symbols
9770 due to a misplaced N_LBRAC entry.
9771
9772 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9773
9774 From Daniel Berlin <dan@cgsoftware.com>
9775 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9776 decrease the depth we are at, in the case of templates.
9777
9778 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9779
9780 * mips-tdep.c (mips_float_register_type): New function.
9781 (mips_double_register_type): New function.
9782 (mips_print_register): Use them.
9783 (do_fp_register_row): Likewise.
9784
9785 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9786
9787 * signals/signals.c (signals): Remove conditional compilation around
9788 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9789 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9790
9791 2002-05-09 Michael Snyder <msnyder@redhat.com>
9792
9793 * remote-rdp.c (remote_rdp_can_run): Remove.
9794
9795 2002-05-09 Tom Tromey <tromey@redhat.com>
9796
9797 * jv-valprint.c (java_val_print): Handle `char' as a special case
9798 of TYPE_CODE_INT.
9799
9800 2002-05-09 Michael Snyder <msnyder@redhat.com>
9801
9802 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9803 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9804 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9805 str r(0123),[sp,#nn].
9806 (arm_skip_prologue): Ditto. Also make disassembly
9807 order-independent by placing it in a loop.
9808
9809 2002-05-06 Michael Snyder <msnyder@redhat.com>
9810
9811 * stabsread.c (read_type): Add recognition for new attribute:
9812 "@V;" means that an array type is actually a vector.
9813 This is analogous to the vector flag that's been added to dwarf2.
9814
9815 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9816
9817 * i386-tdep.h (i386_abi): New enum.
9818 (struct gdbarch_tdep): Replace os_ident member with abi.
9819 (i386_gdbarch_register_os_abi): New prototype.
9820 * i386-tdep.c (i386_abi_names): New array.
9821 (process_note_abi_tag_sections): Removed.
9822 (process_note_sections): New function.
9823 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9824 (struct i386_abi_handler): New struct.
9825 (i386_abi_handler_list): New variable.
9826 (i386_gdbarch_register_os_abi): New function.
9827 (i386_gdbarch_init): Adapt for the changes given above.
9828
9829 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9830
9831 * gregset.h: Say "GNU/Linux".
9832
9833 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9834
9835 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9836 (build_gdbtypes): Build builtin_type_v2_float.
9837 (_initialize_gdbtypes): Register new builtin type.
9838
9839 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9840
9841 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9842 (clear_gdbarch_swap): New function.
9843 (initialize_non_multiarch): Call.
9844 (gdbarch_update_p): Before calling init(), swap out and clear the
9845 existing architecture.
9846 * gdbarch.c: Regenerate.
9847
9848 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9849
9850 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9851 alphanbsd-tdep.c.
9852
9853 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * sh-nbsd-nat.c: Rename to...
9856 * shnbsd-nat.c: ...this.
9857 * sh-nbsd-tdep.c: Rename to...
9858 * shnbsd-tdep.c: ...this.
9859 * sh-nbsd-tdep.h: Rename to...
9860 * shnbsd-tdep.h: ...this.
9861 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9862 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9863
9864 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9865
9866 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9867 concatenation for command help messages.
9868
9869 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9870
9871 * NEWS: Note new sh*-*-netbsdelf* configuration.
9872 * configure.host: Set gdb_host_cpu to sh for all sh*.
9873 (sh*-*-netbsdelf*): New host.
9874 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9875 (sh*-*-netbsdelf*): New target.
9876 * sh-nbsd-nat.c: New file.
9877 * sh-nbsd-tdep.c: New file.
9878 * sh-nbsd-tdep.h: New file.
9879 * config/sh/nbsd.mh: New file.
9880 * config/sh/nbsd.mt: New file.
9881 * config/sh/nm-nbsd.h: New file.
9882 * config/sh/tm-nbsd.h: New file.
9883
9884 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9885
9886 * sh-tdep.c (sh_osabi_names): Declare.
9887 (process_note_abi_tag_sections): New function.
9888 (get_elfosabi): Ditto.
9889 (sh_gdbarch_register_os_abi): Ditto.
9890 (sh_dump_tdep): Ditto.
9891 _initialize_sh_tdep): Use gdbarch_register to register
9892 sh_gdbarch_init and sh_dump_tdep.
9893 * config/sh/tm-sh.h (sh_osabi): Declare.
9894 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9895
9896 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9897
9898 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9899 (thumb_scan_prologue): Ditto.
9900 (arm_find_callers_reg): Ditto.
9901 (arm_frame_chain): Ditto.
9902 (arm_init_extra_frame_info): Ditto.
9903 (arm_frame_saved_pc): Ditto.
9904 (arm_pop_frame): Ditto.
9905 (arm_push_return_address): New function.
9906 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9907 call_dummy_location, call_dummy_breakpoint_offset_p,
9908 call_dummy_breakpoint_offset, call_dummy_p,
9909 call_dummy_stack_adjust_p, call_dummy_words,
9910 sizeof_call_dummy_words, call_dummy_start_offset,
9911 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9912 call_dummy_address, push_return_address and push_dummy_frame for
9913 generic dummy frames.
9914
9915 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9916
9917 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9918 size computation for alloca.
9919 (sh_fp_frame_init_saved_regs): Likewise.
9920
9921 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9922
9923 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9924 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9925 * arm-tdep.c (arm_store_return_value): Use them.
9926 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9927 * remote-rdp.c (remote_rdp_fetch_register): Use
9928 ARM_MAX_REGISTER_RAW_SIZE.
9929 (remote_rdp_store_register): Likewise.
9930
9931 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9932
9933 * dwarf2cfi.c: Code cleanup, removed unused variables,
9934 added default labels to switch {} statements.
9935 * x86-64-tdep.c: Ditto.
9936 * x86-64-linux-nat.c: Ditto.
9937
9938 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9939
9940 * solib.h: Protect against multiple inclusion.
9941
9942 2002-05-06 Jim Blandy <jimb@redhat.com>
9943
9944 Add first preprocessor macro-expansion files.
9945 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9946 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9947 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9948 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9949 (COMMON_OBS): Add macrotab.o, macroexp.o.
9950 (macroexp.o, macrotab.o): New rules.
9951
9952 Separate the job of reading the line number info statement program
9953 header (...expialidocious) out into its own function.
9954 * dwarf2read.c (struct line_head, struct filenames, struct
9955 directories): Replace with...
9956 (struct line_header): New structure, containing the full
9957 contents of the statement program header, including the
9958 include directory and file name tables.
9959 (read_file_scope): If we have line number info, instead of just
9960 calling dwarf_decode_lines to do all the work, call
9961 dwarf_decode_line_header first to get a `struct line_header'
9962 containing the data in the statement program header, and then
9963 pass that to dwarf_decode_lines, which will pick up where that
9964 left off. Be sure to clean up the `struct line_header' object.
9965 (dwarf_decode_line_header, free_line_header, add_include_dir,
9966 add_file_name): New functions.
9967 (dwarf_decode_lines): Move all the code to read the statement
9968 program header into dwarf_decode_line_header. Take the line
9969 header it built as the first argument, instead of the offset to
9970 the compilation unit's line number info. Use the new `struct
9971 line_header' type instead of the old structures. No need to do
9972 cleanups here now, since we don't allocate anything.
9973 (dwarf2_statement_list_fits_in_line_number_section,
9974 dwarf2_line_header_too_long): New complaints.
9975
9976 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9977
9978 * gdbtypes.c (init_vector_type): New function.
9979 (build_builtin_type_vec128): Simplify the representation of SIMD
9980 registers.
9981 (build_gdbtypes): Initialize new builtin vector types.
9982 (_initialize_gdbtypes): Register new vector types with gdbarch.
9983 (builtin_type_v4_float, builtin_type_v4_int32,
9984 builtin_type_v8_int16, builtin_type_v16_int8,
9985 builtin_type_v2_int32, builtin_type_v4_int16,
9986 builtin_type_v8_int8): New (renamed) SIMD types.
9987
9988 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9989
9990 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9991 (i387_fill_fxsave): Likewise.
9992
9993 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9994
9995 * alpha-tdep.c (alpha_extract_return_value): Don't use
9996 non-constant array size in prototype.
9997
9998 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9999
10000 From Brian Taylor <briant at model dot com>:
10001 * ui-out.c (ui_out_field_core_addr): Use the function
10002 longest_local_hex_string_custom'to format addresses > 32 bits
10003 wide.
10004
10005 * ui-out.c (ui_out_field_core_addr): Update comment.
10006
10007 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10008
10009 * stack.c (select_and_print_frame): Make static. Delete the
10010 parameter `level'.
10011 (func_command): Update call.
10012 (select_frame_command): Delete code computing the frame level.
10013 * frame.h (select_and_print_frame): Delete declaration.
10014
10015 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10016
10017 * sparc-tdep.c (sparc_get_saved_register): Comment why
10018 get_prev_frame call is safe.
10019
10020 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10021
10022 * frame.h (select_frame): Delete level parameter.
10023 * stack.c (select_frame): Update. Use frame_relative_level to
10024 obtain the frame's level.
10025 (select_and_print_frame): Update call.
10026 (select_frame_command): Ditto.
10027 (up_silently_base): Ditto.
10028 (down_silently_base): Ditto.
10029 * ocd.c (ocd_start_remote): Ditto.
10030 * remote-rdp.c (remote_rdp_open): Ditto.
10031 * remote-mips.c (mips_initialize): Ditto.
10032 (common_open): Ditto.
10033 * remote-e7000.c (e7000_start_remote): Ditto.
10034 * m3-nat.c (select_thread): Ditto.
10035 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10036 (child_get_current_exception_event): Ditto.
10037 * varobj.c (varobj_create): Ditto.
10038 (varobj_update): Ditto.
10039 (c_value_of_root): Ditto.
10040 * tracepoint.c (finish_tfind_command): Ditto.
10041 * corelow.c (core_open): Ditto.
10042 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10043 * thread.c (info_threads_command): Ditto.
10044 (switch_to_thread): Ditto.
10045 * infrun.c (normal_stop): Ditto.
10046 (restore_selected_frame): Ditto.
10047 (restore_inferior_status): Ditto.
10048 * breakpoint.c (insert_breakpoints): Ditto.
10049 (watchpoint_check): Ditto.
10050 (bpstat_stop_status): Ditto.
10051 (do_enable_breakpoint): Ditto.
10052 * blockframe.c (flush_cached_frames): Ditto.
10053 (reinit_frame_cache): Ditto.
10054
10055 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10056
10057 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10058 maintainer.
10059
10060 2002-05-04 Jim Blandy <jimb@redhat.com>
10061
10062 * gdbtypes.c (replace_type): Doc fix.
10063
10064 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10065
10066 * valprint.c (strcat_longest): Delete commented out function.
10067 Update copyright.
10068
10069 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10070
10071 * MAINTAINERS: Mark a29k as deleted.
10072 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10073 Move new configurations to the top.
10074 * configure.tgt: Remove a29k.
10075 * config/a29k/tm-vx29k.h: Delete.
10076 * config/a29k/vx29k.mt: Delete.
10077 * config/a29k/tm-a29k.h: Delete.
10078 * config/a29k/a29k-udi.mt: Delete.
10079 * config/a29k/a29k.mt: Delete.
10080 * a29k-tdep.c: Delete.
10081 * remote-udi.c: Delete.
10082 * remote-mm.c: Delete.
10083 * remote-eb.c: Delete.
10084 * remote-adapt.c: Delete.
10085 * Makefile.in: Remove obsolete code.
10086 * config/s390/s390x.mt: Ditto.
10087 * config/s390/s390.mt: Ditto.
10088 * config/sparc/sparclynx.mh: Ditto.
10089 * config/sparc/linux.mh: Ditto.
10090 * config/pa/hppaosf.mh: Ditto.
10091 * config/pa/hppabsd.mh: Ditto.
10092 * config/ns32k/nbsd.mt: Ditto.
10093 * config/mips/vr5000.mt: Ditto.
10094 * config/m68k/sun3os4.mh: Ditto.
10095 * config/m68k/nbsd.mt: Ditto.
10096 * config/m68k/m68klynx.mh: Ditto.
10097 * config/m32r/m32r.mt: Ditto.
10098 * config/i386/x86-64linux.mt: Ditto.
10099 * config/i386/nbsdelf.mt: Ditto.
10100 * config/i386/nbsd.mt: Ditto.
10101 * config/i386/i386lynx.mh: Ditto.
10102
10103 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10104
10105 * target.c (debug_print_register): New function. Handle oversize
10106 registers.
10107 (debug_to_fetch_registers): Call.
10108 (debug_to_store_registers): Call.
10109
10110 2002-05-03 Jim Blandy <jimb@redhat.com>
10111
10112 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10113 (read_type): Doc fix.
10114 * gdbtypes.c (replace_type): Doc fix.
10115
10116 * stabsread.c (multiply_defined_struct): New complaint.
10117 (read_struct_type): If the type we were passed isn't empty, or
10118 incomplete, don't read the new struct type into it; complain,
10119 and return the original type unchanged. Take a new `type_code'
10120 argument, which is the type code for the new type.
10121 (read_type): Rather than storing the type's type code here, pass
10122 it as an argument to read_struct_type, and let that take care of
10123 storing it. That way, we don't overwrite the original type code,
10124 so read_struct_type can use it to decide whether we're overwriting
10125 something we shouldn't.
10126 (complain_about_struct_wipeout): New function.
10127
10128 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10129
10130 * gdbarch.sh: Assert that gdbarch is non-NULL.
10131 * gdbarch.c: Regenerate.
10132
10133 2002-05-03 Jason Merrill <jason@redhat.com>
10134
10135 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10136 and return NULL.
10137
10138 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10139
10140 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10141 (x86_64_dwarf2gdb_regno_map_length),
10142 (x86_64_dwarf2_reg_to_regnum): Added.
10143 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10144 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10145 (_initialize_x86_64_tdep): Synced with the change above.
10146 (x86_64_skip_prologue): Reformulated message.
10147
10148 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10149
10150 * f-exp.y: Also use new prev_lexptr variable
10151 to improve error reporting. Based on Michael Snyder
10152 2002-04-24 dated patch to c-exp.y.
10153 * jv-exp.y: Likewise.
10154 * m2-exp.y: Likewise.
10155
10156 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10157
10158 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10159 we are dealing with vectors.
10160
10161 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10162
10163 * config/m68k/tm-nbsd.h: Obvious fix,
10164 correct machine name.
10165
10166 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10167
10168 * p-typeprint.c (pascal_type_print_base): Add support
10169 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10170
10171 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10172
10173 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10174 for fondamental pascal 'char' type.
10175
10176 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10177
10178 * p-lang.h (is_pascal_string_type): Declaration changed,
10179 new sixth argument of type char ** added.
10180 * p-lang.c (is_pascal_string_type): Implementation
10181 changed. Args length_pos, length_size, string_pos, char_size
10182 can now be NULL. New argument arrayname set to the field
10183 name of the char array. Return value set to char array
10184 field index plus one.
10185 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10186 is_pascal_string_type function.
10187
10188 2002-05-02 Andrew Cagney <cagney@redhat.com>
10189
10190 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10191 <cagney@redhat.com> change.
10192 * gdbarch.c: Regenerate.
10193
10194 2002-05-02 Andrew Cagney <cagney@redhat.com>
10195
10196 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10197 before probing for a new one. Detect errorenous gdbarch_init
10198 functions.
10199 * gdbarch.c: Regenerate.
10200
10201 2002-05-01 Andrew Cagney <cagney@redhat.com>
10202
10203 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10204 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10205 * config/v850/tm-v850.h: Ditto. Update copyright.
10206
10207 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10208
10209 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10210 current_gdbarch.
10211
10212 2002-04-30 Michael Snyder <msnyder@redhat.com>
10213
10214 * arm-tdep.c: Whitespace clean-ups.
10215 (arm_skip_prologue): Fix thinko; two lines
10216 should have been removed as part of 4/24 change.
10217
10218 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10219
10220 * rs6000-tdep.c: Added comment describing how fpscr register
10221 numbers were chosen.
10222
10223 2002-04-30 Michael Snyder <msnyder@redhat.com>
10224
10225 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10226
10227 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10228
10229 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10230 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10231 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10232
10233 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10234
10235 From Louis Hamilton <hamilton@redhat.com>:
10236 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10237 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10238 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10239 not bfd-private xcoff data, to determine wordsize.
10240 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10241
10242 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10243
10244 GDB 5.2 released from 5.2 branch.
10245
10246 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10247
10248 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10249 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10250 (x86_64_register_info_table): Added comments with register numbers.
10251
10252 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10253
10254 * rs6000-tdep.c (rs6000_extract_return_value,
10255 rs6000_store_return_value): Handle returning vectors.
10256 (rs6000_gdbarch_init): Use
10257 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10258 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10259 New function.
10260 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10261 vectors.
10262 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10263 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10264
10265 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10266
10267 * hpread.c (hpread_psymtab_to_symtab_1,
10268 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10269 with fprintf_unfiltered (gdb_stderr,...).
10270
10271 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10272
10273 * remote-array.c (printf_monitor, write_monitor,
10274 array_insert_breakpoint, array_remove_breakpoint ):
10275 Replace fprintf (stderr,...
10276 with fprintf_unfiltered (gdb_stderr,....
10277 * remote-es.c: Likewise.
10278 * remote-os9k.c: Likewise.
10279 * remote-st.c: Likewise.
10280
10281 2002-04-28 Andreas Schwab <schwab@suse.de>
10282
10283 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10284 linux-proc.o and gcore.o.
10285
10286 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10287
10288 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10289 code without frame pointers.
10290
10291 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10292
10293 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10294 ON_STACK is needed.
10295
10296 2002-04-26 Ben Elliston <bje@redhat.com>
10297
10298 * target.c (do_xfer_memory): Correct reference to the new option
10299 "trust-readonly-sections".
10300
10301 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10302
10303 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10304 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10305 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10306 vectors.
10307 (read_array_type): Record the fact that this array type is really a
10308 vector (i.e. are passed in by value).
10309
10310 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10311
10312 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10313 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10314 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10315 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10316 * alpha-linux-tdep.c: Include frame.h.
10317 (alpha_linux_sigcontext_addr): New function.
10318 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10319 alpha_linux_sigcontext_addr.
10320 * alpha-osf1-tdep.c: Include gdbcore.h.
10321 (alpha_osf1_sigcontext_addr): New function.
10322 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10323 alpha_osf1_sigcontext_addr.
10324 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10325 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10326
10327 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10328
10329 * stack.c (selected_frame_level):
10330 (select_frame): Do not set selected_frame_level.
10331 * frame.h (selected_frame_level): Delete declaration.
10332
10333 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10334
10335 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10336 convert_from_func_ptr-addr when AIX / PowerOpen.
10337
10338 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10339
10340 * valops.c (hand_function_call): Call
10341 generic_save_call_dummy_addr.
10342 * frame.h (generic_save_call_dummy_addr): Declare.
10343 * blockframe.c (struct dummy_frame): Add fields call_lo and
10344 call_hi.
10345 (generic_find_dummy_frame): Check for PC in range call_lo to
10346 call_hi instead of entry_point_address.
10347 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10348 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10349 (generic_save_call_dummy_addr): New function.
10350
10351 2002-04-24 David S. Miller <davem@redhat.com>
10352
10353 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10354 sparc_skip_prologue.
10355 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10356 information to find prologue when possible.
10357 (sparc_prologue_frameless_p): Call examine_prologue directly.
10358 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10359 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10360 second argument.
10361 (SKIP_PROLOGUE): Likewise.
10362
10363 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10364
10365 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10366 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10367 indicate that the condition it was testing is always true.
10368 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10369 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10370 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10371
10372 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10373
10374 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10375 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10376 tdep->jb_pc and tdep->jb_elt_size.
10377 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10378 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10379 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10380 * alpha-nat.c (get_longjmp_target): Remove.
10381 (JB_ELEMENT_SIZE): Ditto.
10382 (JB_PC): Ditto.
10383 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10384 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10385 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10386 to alpha_get_longjmp_target.
10387 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10388 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10389 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10390
10391 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10392
10393 * README: Update to GDB 5.2.
10394
10395 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10396
10397 * gdbarch.sh (LC_ALL): Set to `c'.
10398
10399 2002-04-25 Theodore A. Roth <troth@verinet.com>
10400
10401 * avr-tdep.c: Ran through gdb_indent.sh.
10402
10403 2002-04-25 Theodore A. Roth <troth@verinet.com>
10404
10405 * MAINTAINERS: Add myself as AVR maintainer.
10406 * NEWS: Note new target avr.
10407
10408 2002-04-25 Theodore A. Roth <troth@verinet.com>
10409
10410 * Makefile.in: Add support for AVR target.
10411 * configure.tgt: Add support for AVR target.
10412 * avr-tdep.c: New file
10413 * config/avr/avr.mt: New file.
10414
10415 2002-04-25 Theodore A. Roth <troth@verinet.com>
10416
10417 * MAINTAINERS: Add myself to write-after-approval.
10418
10419 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10420
10421 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10422 with fprintf_unfiltered (gdb_stderr,....
10423
10424 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10425
10426 Fix PR gdb/508.
10427 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10428
10429 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10430
10431 * p-exp.y: Also use new prev_lexptr variable
10432 to improve error reporting. Based on Michael Snyder
10433 2002-04-24 dated patch to c-exp.y.
10434
10435 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10436
10437 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10438 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10439 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10440 to 0.
10441 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10442 and struct value.
10443 (FUNCTION_START_OFFSET): Remove.
10444 (BREAKPOINT): Ditto.
10445
10446 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10447
10448 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10449 * NEWS: Ditto.
10450
10451 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10452
10453 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10454 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10455 alpha_linux_pc_in_sigtramp.
10456 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10457 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10458 alpha_osf1_pc_in_sigtramp.
10459 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10460 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10461 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10462 alphafbsd_pc_in_sigtramp.
10463 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10464 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10465 alphanbsd_pc_in_sigtramp.
10466 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10467 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10468
10469 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10470
10471 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10472
10473 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10474
10475 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10476 alphanbsd-tdep.c.
10477 (alphanbsd-nat.o): New dependency list.
10478 (alphanbsd-tdep.o): Ditto.
10479 * NEWS: Note new native NetBSD/alpha configuration.
10480 * alphanbsd-nat.c: New file.
10481 * alphanbsd-tdep.c: Ditto.
10482 * configure.host (alpha*-*-netbsd*): New host.
10483 * configure.tgt (alpha*-*-netbsd*): New target.
10484 * config/alpha/nbsd.mh: New file.
10485 * config/alpha/nbsd.mt: Ditto.
10486 * config/alpha/nm-nbsd.h: Ditto.
10487 * config/alpha/tm-nbsd.h: Ditto.
10488
10489 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10490
10491 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10492 (alpha-osf1-tdep.o): New dependency list.
10493 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10494 and skip_sigtramp_frame members.
10495 * alpha-linux-tdep.c: Include gdbcore.h.
10496 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10497 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10498 * alpha-osf1-tdep.c: New file.
10499 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10500 alpha-osf1-dep.c.
10501 (alpha_frame_past_sigtramp_frame): New function.
10502 (alpha_dynamic_sigtramp_offset): Ditto.
10503 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10504 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10505 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10506 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10507 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10508 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10509 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10510 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10511 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10512 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10513 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10514 to find_solib_trampoline_target.
10515 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10516 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10517 (SKIP_TRAMPOLINE_CODE): Remove.
10518 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10519 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10520 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10521 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10522 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10523 (PROC_SIGTRAMP_MAGIC): Ditto.
10524 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10525 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10526 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10527 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10528 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10529
10530 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10531
10532 * NEWS: Note that Alpha targets are now multi-arch.
10533
10534 2002-04-24 Michael Snyder <msnyder@redhat.com>
10535
10536 * parser-defs.h (prev_lexptr): New external variable.
10537 * parse.c (parse_exp_1): Set prev_lexptr to null before
10538 calling the language-specific parser.
10539 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10540 (yyerror): Use prev_lexptr in error reporting.
10541
10542 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10545 * gregset.h: If FILL_FPXREGSET is defined, provide
10546 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10547 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10548 is defined, call fill_fpxregset.
10549
10550 2002-04-24 Roland McGrath <roland@frob.com>
10551
10552 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10553 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10554 (supply_gregset, supply_fpregset): New functions.
10555
10556 * gnu-nat.c (gnu_find_memory_regions): New function.
10557 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10558 (gnu_xfer_memory): Add a cast.
10559
10560 2002-04-24 Michael Snyder <msnyder@redhat.com>
10561
10562 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10563 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10564 of argument regs ("str r(0123), [r11, #-nn"]).
10565 (arm_skip_prologue): Better handling for frameless functions.
10566 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10567 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10568
10569 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10570
10571 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10572 NUM_PSEUDO_REGS can be used.
10573
10574 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10575
10576 * arch-utils.h: Update copyright.
10577
10578 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10579 * gdbarch.h, gdbarch.c: Re-generate.
10580
10581 * inferior.h (IN_SIGTRAMP): Delete definition.
10582 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10583 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10584
10585 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10586 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10587 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10588 (find_proc_framesize): Ditto.
10589 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10590 (alpha_init_extra_frame_info): Ditto.
10591 * infrun.c (handle_inferior_event): Ditto.
10592 (handle_inferior_event): Ditto.
10593 (check_sigtramp2): Ditto.
10594 * blockframe.c (create_new_frame): Ditto.
10595 (get_prev_frame): Ditto.
10596 * ppc-linux-tdep.c: Update comments.
10597 * i386-linux-tdep.c: Update comments.
10598 * breakpoint.c (bpstat_what): Update comment.
10599
10600 2002-04-24 David S. Miller <davem@redhat.com>
10601
10602 * i960-tdep.c (register_in_window_p): New function.
10603 (i960_find_saved_register): Use it instead of
10604 REGISTER_IN_WINDOW_P.
10605 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10606
10607 * symtab.h (find_stab_function_addr): Kill extern.
10608 * minsyms.c (find_stab_function_addr): Remove from here...
10609 * dbxread.c: ... to here, and mark it static.
10610
10611 2002-04-20 David S. Miller <davem@redhat.com>
10612
10613 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10614 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10615
10616 2002-04-21 David S. Miller <davem@redhat.com>
10617
10618 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10619 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10620 (vx_write_register): Likewise.
10621
10622 2002-04-23 J. Brobecker <brobecker@gnat.com>
10623
10624 * source.c (is_regular_file): New function.
10625 (openp): Check wether file to open is a regular file
10626 to avoid opening directories.
10627
10628 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10629
10630 * findvar.c (extract_signed_integer): Cast printf argument
10631 to suppress format warning.
10632 (extract_unsigned_integer): Likewise.
10633 * infcmd.c (registers_info): Likewise.
10634 * top.c (get_prompt_1): Likewise.
10635 * valops.c (value_assign): Likewise.
10636 * valprint.c (print_decimal): Likewise.
10637
10638 2002-04-22 H.J. Lu (hjl@gnu.org)
10639
10640 * c-exp.y (typebase): Support
10641
10642 [long|long long|short] [signed|unsigned] [int|]
10643
10644 and
10645
10646 signed [long|long long|short] int
10647
10648 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10649
10650 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10651 and vax-tdep.h.
10652 * vax-tdep.h: New file.
10653 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10654 Make several routines static.
10655 (vax_get_saved_register): New function.
10656 (vax_gdbarch_init): New function.
10657 (_initialize_vax_tdep): Register vax_gdbarch_init.
10658 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10659 Remove macros now under the control of gdbarch.
10660
10661 2002-04-22 Michael Snyder <msnyder@redhat.com>
10662
10663 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10664 Some whitespace and coding standards tweaks.
10665
10666 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10667
10668 * vax-tdep.c: Include regcache.h.
10669 (vax_call_dummy_words): New.
10670 (sizeof_vax_call_dummy_words): New.
10671 (vax_fix_call_dummy): New function.
10672 (vax_saved_pc_after_call): Ditto.
10673 * config/vax/tm-vax.h: Don't include regcache.h.
10674 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10675 (CALL_DUMMY): Remove.
10676 (CALL_DUMMY_WORDS): Define.
10677 (SIZEOF_CALL_DUMMY_WORDS): Define.
10678 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10679
10680 2002-04-18 Michael Snyder <msnyder@redhat.com>
10681
10682 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10683
10684 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10685
10686 * vax-tdep.c (vax_frame_chain): New function.
10687 (vax_push_dummy_frame): Ditto.
10688 (vax_pop_frame): Ditto.
10689 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10690 (FRAMELESS_FUNCTION_INVOCATION): Use
10691 generic_frameless_function_invocation_not.
10692 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10693 (POP_FRAME): Use vax_pop_frame.
10694
10695 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10696
10697 * vax-tdep.c (vax_store_struct_return): New function.
10698 (vax_extract_return_value): Ditto.
10699 (vax_store_return_value): Ditto.
10700 (vax_extract_struct_value_address): Ditto.
10701 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10702 vax_store_struct_return.
10703 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10704 (STORE_RETURN_VALUE): Use vax_store_return_value.
10705 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10706
10707 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10708
10709 * vax-tdep.c (vax_frame_saved_pc): New function.
10710 (vax_frame_args_address_correct): Ditto.
10711 (vax_frame_args_address): Ditto.
10712 (vax_frame_locals_address): Ditto.
10713 (vax_frame_num_args): Move code to be in proximity to
10714 other frame-related functions.
10715 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10716 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10717 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10718 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10719 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10720
10721 2002-04-22 H.J. Lu (hjl@gnu.org)
10722
10723 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10724 includedir.
10725
10726 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10727
10728 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10729 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10730 (FRAME_INIT_SAVED_REGS): New macro.
10731
10732 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10733
10734 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10735
10736 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10737
10738 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10739 where needed.
10740 (fetch_osf_core_registers): Likewise.
10741 (supply_gregset): Likewise.
10742
10743 2002-04-22 J. Brobecker <brobecker@gnat.com>
10744
10745 * symfile.h (get_section_index): Define.
10746 * symfile.c (get_section_index): New function.
10747 * mdebugread.c (SC_IS_SBSS): New macro.
10748 (SC_IS_BSS): Return true for the scBss storage class only, as
10749 the scSBss storage class refers to the .sbss section.
10750 (parse_partial_symbols): Discard the symbols which associated
10751 section does not exist.
10752 Make sure to use the .sbss section index for symbols which
10753 storage class is scBss, rather than using the .bss section index.
10754
10755 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10756
10757 * vax-tdep.c: Update copyright years.
10758 (vax_register_name): New function.
10759 (vax_register_byte): Ditto.
10760 (vax_register_raw_size): Ditto.
10761 (vax_register_virtual_size): Ditto.
10762 (vax_register_virtual_type): Ditto.
10763 * config/vax/tm-vax.h: Update copyright years.
10764 (REGISTER_NAMES): Remove.
10765 (REGISTER_NAME): Define.
10766 (REGISTER_BYTE): Use vax_register_byte.
10767 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10768 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10769 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10770
10771 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10772
10773 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10774 declaration
10775 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10776
10777 2002-04-21 David S. Miller <davem@redhat.com>
10778
10779 * arch-utils.c (generic_prologue_frameless_p): Kill
10780 SKIP_PROLOGUE_FRAMELESS_P code.
10781 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10782 references.
10783 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10784 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10785 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10786 references.
10787 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10788 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10789 (sparc_gdbarch_init): Pass it to
10790 set_gdbarch_prologue_frameless_p.
10791
10792 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10793
10794 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10795 (alphabsd-nat.o): New dependency list.
10796
10797 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10798
10799 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10800 alphafbsd-tdep.c.
10801 (alpha-linux-tdep.o): New dependency list.
10802 (alphafbsd-tdep.o): Likewise.
10803
10804 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10805
10806 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10807 to here...
10808 * alpha-tdep.c: ...from here.
10809 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10810
10811 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10812
10813 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10814 prototype from here...
10815 * alpha-tdep.h: ...to here.
10816
10817 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10818
10819 * frame.h (selected_frame_level): Document as deprecated.
10820 (frame_relative_level): Declare.
10821 * stack.c (frame_relative_level): New function.
10822 (selected_frame_level): Document as deprecated.
10823 (select_frame): Do not set the selected_frame_level.
10824
10825 * stack.c (frame_info, record_selected_frame): Update.
10826 (frame_command, current_frame_command): Update.
10827 (up_silently_base, up_command, down_silently_base): Update.
10828 (down_command): Update.
10829 * inflow.c (kill_command): Update.
10830 * tracepoint.c (finish_tfind_command): Update.
10831 * corelow.c (core_open): Update.
10832 * thread.c (info_threads_command): Update.
10833 (do_captured_thread_select): Update.
10834 * infcmd.c (finish_command): Update.
10835 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10836
10837 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10838
10839 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10840
10841 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10842
10843 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10844 type const.
10845
10846 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10847
10848 * alphafbsd-tdep.c: Update copyright years. Include
10849 alpha-tdep.h.
10850 (alphafbsd_use_struct_convention): Make static.
10851 (alphafbsd_init_abi): New function.
10852 (_initialize_alphafbsd_tdep): New function.
10853 * config/alpha/tm-fbsd.h: Update copyright years.
10854 (USE_STRUCT_CONVENTION): Remove.
10855
10856 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10857
10858 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10859 an Alpha ABI variant.
10860 (alpha_abi_handler_list): Declare.
10861 (alpha_gdbarch_register_os_abi): New function.
10862 (alpha_gdbarch_init): Give registered ABI variant handlers a
10863 chance to tweak the gdbarch once we have set up defaults.
10864 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10865
10866 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10867
10868 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10869 to standard_coerce_float_to_double.
10870 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10871
10872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10873
10874 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10875 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10876 from gdbarch_tdep rather than a constant.
10877 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10878 the default text address for all Alpha Unix ABIs.
10879 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10880 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10881
10882 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10883
10884 * alpha-tdep.h: New file. Includes several Alpha target constants
10885 taken from...
10886 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10887 let gdbarch deal with.
10888 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10889 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10890 to dependency list.
10891 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10892 Alpha target register names.
10893 * alphabsd-nat.c: Likewise.
10894 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10895 Alpha target register names. Make serveral routines static.
10896 (alpha_get_saved_register): New function.
10897 (alpha_abi_names): New.
10898 (process_note_abi_tag_sections): New function.
10899 (get_elfosabi): New function.
10900 (alpha_gdbarch_init): New function.
10901 (alpha_dump_tdep): New function.
10902 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10903
10904 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10905
10906 * frame.c (find_saved_register): Delete #ifdef
10907 HAVE_REGISTER_WINDOWS code.
10908 * config/sparc/tm-sparc.h: Update comments.
10909 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10910
10911 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10912
10913 * i960-tdep.c (i960_find_saved_register): New function.
10914 (i960_get_saved_register): New function.
10915 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10916 (i960_get_saved_register): Declare.
10917 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10918
10919 2002-04-20 David S. Miller <davem@redhat.com>
10920
10921 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10922
10923 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10924
10925 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10926 instead of NUM_PSEUDO_REGS.
10927
10928 2002-04-20 David S. Miller <davem@redhat.com>
10929
10930 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10931 GDB_MULTI_ARCH_PARTIAL
10932 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10933 define, let tm-sp64.h do it.
10934
10935 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10936
10937 * frame.c (find_saved_register): Avoid a NULL pointer
10938 dereference and actually walk the frame list.
10939
10940 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10941
10942 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10943 sorted in most most-recent-used order. Document.
10944 * gdbarch.h, gdbarch.c: Regenerate.
10945
10946 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10947
10948 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10949 instead of ->prev.
10950 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10951 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10952 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10953 instead of ->prev.
10954
10955 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10956
10957 Fix PR gdb/471.
10958 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10959 (build_builtin_type_vec128): Ditto.
10960 (append_composite_type_field): Fix calculation of type length in
10961 union case.
10962
10963 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10964
10965 * config/djgpp/README: Update.
10966
10967 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10968 compiler warnings.
10969
10970 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10971
10972 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10973 (alpha_setup_arbitrary_frame): ...to this.
10974 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10975 for alpha_setup_arbitrary_frame.
10976
10977 2002-04-18 Andrew Cagney <cagney@redhat.com>
10978
10979 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10980 * gdbarch.h, gdbarch.c: Regenerate.
10981
10982 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10983 * target.h (memory_breakpoint_from_pc): Update declaration.
10984 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10985
10986 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10987 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10988 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10989 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10990 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10991 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10992 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10993 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10994 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10995 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10996 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10997 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10998
10999 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11000 const pointer.
11001 * monitor.c (monitor_insert_breakpoint): Ditto.
11002 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11003
11004 * config/mcore/tm-mcore.h: Update copyright.
11005 * mem-break.c: Ditto.
11006 * xstormy16-tdep.c: Ditto.
11007
11008 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11009
11010 * p-exp.y: Add precedence rule for '^' token.
11011 This removes the shift/reduce conflicts.
11012 Remove the comment concerning these shift/reduce conflicts.
11013
11014 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11015
11016 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11017 (registers_powerpc_nofp): New register set for processors
11018 without floating point unit.
11019
11020 2002-04-18 David S. Miller <davem@redhat.com>
11021
11022 * MAINTAINERS: Add myself to write-after-approval.
11023
11024 2002-04-17 Michael Snyder <msnyder@redhat.com>
11025
11026 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11027
11028 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11029
11030 * rs6000-tdep.c (frame_initial_stack_address): Use
11031 frame_register_read to read the alloca_reg.
11032
11033 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11034
11035 * frame.c (find_saved_register): Find saved registers in the next
11036 not prev frame.
11037 Fix PR gdb/365.
11038
11039 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11040
11041 * gdbarch.sh (LANG): Set to ``c''.
11042
11043 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11044
11045 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11046
11047 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11048
11049 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11050 Update copyright.
11051
11052 * hpread.c (hpread_get_lntt): Add declaration.
11053 Also fix PR gdb/391.
11054
11055 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11056
11057 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11058 * aclocal.m4, configure: Re-generate.
11059 Fix PR gdb/391.
11060
11061 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11062
11063 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11064 instead of tm_print_insn.
11065
11066 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11067
11068 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11069
11070 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11071
11072 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11073 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11074 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11075
11076 2002-04-12 Don Howard <dhoward@redhat.com>
11077
11078 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11079 max_user_call_depth.
11080 (init_cmd_lists): Initialize the new value;
11081 * cli/cli-script.c (execute_user_command): Limit the call depth of
11082 user defined commands. This avoids a core-dump when user commands
11083 are infinitly recursive.
11084
11085 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11086
11087 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11088 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11089 from tdep struct instead of DEFAULT_LR_SAVE.
11090 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11091 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11092 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11093
11094 2002-04-12 Michael Snyder <msnyder@redhat.com>
11095
11096 * Remote.c: Spelling fix.
11097 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11098 If no symbol found for "sbrk", try "_sbrk".
11099 (make_output_phdrs): Use bfd_section_name.
11100 (gcore_copy_callback): Use bfd_section_name.
11101 * eval.c: Indentation fix-ups.
11102 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11103 in case it gets applied to an address that is already
11104 in the instruction space.
11105 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11106 * symfile.c: Fix indentation, long lines.
11107 * source.c: White space fix-up.
11108
11109 2002-04-12 Andrew Cagney <cagney@redhat.com>
11110
11111 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11112 * frame.c (frame_register_read): New function. Return non-zero on
11113 success.
11114 (read_relative_register_raw_bytes_for_frame): Delete.
11115 (read_relative_register_raw_bytes): Delete.
11116 * frame.h (frame_register_read): Declare.
11117 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11118 * sh-tdep.c: Ditto.
11119 * infcmd.c (do_registers_info): Ditto.
11120 * hppa-tdep.c: Ditto.
11121 * rs6000-tdep.c: Ditto.
11122 * h8500-tdep.c: Ditto.
11123 * mips-tdep.c: Ditto.
11124 * h8300-tdep.c: Ditto.
11125 * z8k-tdep.c: Ditto.
11126
11127 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11128
11129 From Jimi X <jimix@watson.ibm.com>:
11130 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11131 64-bit SysV ABI.
11132
11133 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11134
11135 From Jimi X <jimix@watson.ibm.com>:
11136 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11137 bfd info.
11138
11139 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11140
11141 From Jimi X <jimix@watson.ibm.com>:
11142 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11143 register sets for these processor variants.
11144
11145 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * regformats/reg-ppc.dat: Support FPSCR.
11148
11149 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11150
11151 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11152 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11153 Add fpscr as an invalid/unfetchable register.
11154 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11155 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11156 (fill_fpregset): Add support for register fpscr.
11157 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11158 (fill_gregset): Account for the fact that register ``mq'' might
11159 not exist.
11160 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11161 (registers_power): Add fpscr to register set at slot 71.
11162 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11163 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11164
11165 2002-04-11 Michael Snyder <msnyder@redhat.com>
11166
11167 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11168 * configure: Regenerate.
11169 * config.in: Regenerate.
11170 * acconfig.h: Add define for _SYSCALL32.
11171 * core-sol2.c: Remove #define _SYSCALL32.
11172 * solib-legacy.c: Remove #define _SYSCALL32.
11173
11174 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11175
11176 * stack.c (select_frame): Cleanup internal error message, do not
11177 use %p.
11178
11179 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11180
11181 * stack.c (select_frame): Check that selected_frame and the
11182 specified level are as expected.
11183 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11184 Update copyright.
11185 * frame.h (struct frame_info): Add field `level'. Update
11186 copyright.
11187 Work-in-progress PR gdb/464.
11188
11189 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11190
11191 * maint.c (maint_print_section_info): Rename print_section_info.
11192 (print_bfd_section_info, print_objfile_section_info): Update.
11193 * inferior.h (struct gdbarch): Add opaque declaration.
11194 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11195 * gdbarch.h: Regenerate.
11196
11197 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11198
11199 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11200 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11201 (kernel_u_size): Added.
11202 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11203 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11204
11205 2002-04-04 Jim Ingham <jingham@apple.com>
11206
11207 * valarith.c (find_size_for_pointer_math): New function, either returns
11208 the size for a pointer's target, returns 1 for void *, or errors for
11209 incomplete types.
11210 (value_add, value_sub): use find_size_for_pointer_math.
11211
11212 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * linux-low.c (linux_look_up_symbols): New hook.
11215 (linux_target_ops): Add linux_look_up_symbols.
11216 * remote-utils.c (decode_address): New function.
11217 (look_up_one_symbol): New function.
11218 * server.c (handle_query): Call target look_up_symbols hook.
11219 * server.h (look_up_one_symbol): Add prototype.
11220 * target.h (struct target_ops): Add look_up_symbols hook.
11221
11222 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11223
11224 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11225 override FP_REGNUM with frame->fp. Update copyright.
11226 * parse.c (num_std_regs, std_regs): Delete.
11227 (target_map_name_to_register): Do not search std_regs. Update
11228 function description.
11229 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11230 declarations. Update copyright.
11231 Fix PR gdb/251.
11232
11233 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11234
11235 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11236 after the last symbol in a block.
11237
11238 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11239
11240 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11241 is non zero as a found symbol.
11242
11243 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11244
11245 * findvar.c: Include "builtin-regs.h".
11246 (value_of_register): Call value_of_builtin_reg when applicable.
11247 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11248 (target_map_name_to_register): Call
11249 builtin_reg_map_name_to_regnum.
11250 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11251 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11252 (builtin_regs_h): Define.
11253 (builtin-regs.o): New target.
11254 (findvar.o): Add $(builtin_regs_h).
11255 * builtin-regs.c, builtin-regs.h: New files.
11256 * std-regs.c: New file.
11257 Partial fix for PR gdb/251.
11258
11259 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11260
11261 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11262 it's no longer required.
11263
11264 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11265
11266 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11267
11268 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11269
11270 From Jimi X <jimix@watson.ibm.com>:
11271 * rs6000-tdep.c (rs6000_software_single_step): Use
11272 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11273 and size. Use target_insert_breakpoint() and
11274 target_remove_breakpoint() to insert and remove breakpoints
11275 instead of explicit memory reads and writes.
11276
11277 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11278
11279 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11280 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11281 ELF_OBJECT_FORMAT ifdef.
11282
11283 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11284
11285 From Jimi X <jimix@watson.ibm.com>:
11286 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11287
11288 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11289
11290 From Jimi X <jimix@watson.ibm.com>:
11291 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11292 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11293
11294 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11295
11296 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11297 s/asprintf/xasprintf/.
11298 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11299
11300 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11301
11302 I believe Jeff Law denies responsability for this one:
11303 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11304 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11305 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11306 Work-around for PR gdb/366.
11307
11308 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11309
11310 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11311 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11312 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11313
11314 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11315
11316 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11317 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11318 information.
11319
11320 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11321
11322 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11323 maintainer.
11324
11325 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11326
11327 * README (Reporting Bugs in GDB): Document the bug web page as the
11328 prefered way of submitting bugs.
11329 Fix PR gdb/402.
11330
11331 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11332
11333 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11334 -1. Update comment.
11335 * gdbarch.h, gdbarch.c: Re-generate.
11336
11337 2002-04-07 Andreas Schwab <schwab@suse.de>
11338
11339 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11340 buffer to regcache_collect.
11341
11342 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11343
11344 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11345 * gdbarch.c, gdbarch.h: Re-generate.
11346
11347 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11348
11349 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11350 declaration. Fix -Werror.
11351
11352 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11353
11354 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11355 * gdbarch.c: Regenerate.
11356
11357 2002-04-05 Michael Snyder <msnyder@redhat.com>
11358
11359 * breakpoint.c (clear_command): Rewrite middle section to
11360 combine two loops with identical control conditions.
11361 Add a cleanup to eliminate a memory leak.
11362 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11363
11364 2002-04-05 H.J. Lu (hjl@gnu.org)
11365
11366 * solib-svr4.c (bkpt_names): Add "__start".
11367
11368 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11369
11370 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11371 as test for 64 bit target.
11372
11373 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11374
11375 * h8500-tdep.c (h8500_write_fp): Delete function.
11376 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11377 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11378 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11380 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11381 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11382 (s390_write_fp):
11383 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11384 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11385 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11386 (d10v_write_fp): Delete function.
11387 * inferior.h (write_fp, generic_target_write_fp): Delete
11388 declarations.
11389 * regcache.c (generic_target_write_fp): Delete function.
11390 (write_fp): Delete function.
11391 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11392 * gdbarch.h, gdbarch.c: Regenerate.
11393 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11394 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11395 (sparc64_write_fp): Delete declaration.
11396 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11397 (h8500_write_fp): Delete declaration.
11398
11399 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11400
11401 * sparc-tdep.c (sparc64_write_fp): Delete.
11402 (sparc_push_dummy_frame): Replace write_fp call with code to store
11403 the FP directly.
11404 (sparc_gdbarch_init): Do not initialize write_fp.
11405
11406 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11407
11408 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11409 clause.
11410
11411 2002-03-29 Jim Blandy <jimb@redhat.com>
11412
11413 * stack.c (get_selected_block): Add new argument `addr_in_block',
11414 used to return the exact code address we used to select the block,
11415 not just the block.
11416 * blockframe.c (get_frame_block, get_current_block): Same.
11417 * frame.h (get_frame_block, get_current_block,
11418 get_selected_block): Update declarations.
11419 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11420 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11421
11422 2002-04-05 Michael Snyder <msnyder@redhat.com>
11423
11424 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11425 warning message.
11426
11427 2002-04-05 J. Brobecker <brobecker@gnat.com>
11428
11429 * utils.c (xfullpath): New function.
11430 * defs.h (xfullpath): Add declaration.
11431 * source.c (openp): Use xfullpath in place of gdb_realpath to
11432 avoid resolving the basename part of filenames when the
11433 associated file is a symbolic link. This fixes a potential
11434 inconsistency between the filenames known to GDB and the
11435 filenames it prints in the annotations.
11436 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11437 to be able to match a filename with either the real filename, or
11438 the name of any symbolic link to this file.
11439 (lookup_partial_symtab): Ditto.
11440
11441 2002-04-04 Michael Snyder <msnyder@redhat.com>
11442
11443 * breakpoint.c: Add support for hardware breakpoints in overlays.
11444 (overlay_events_enabled): New state variable.
11445 (insert_breakpoints): Use overlay_events_enabled to decide
11446 whether to attempt to set a breakpoint at the overlay load addr.
11447 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11448 (remove_breakpoint): Use overlay_events_enabled to decide
11449 whether breakpoints need to be removed from overlay load addr.
11450 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11451 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11452 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11453 disable_overlay_breakpoints): Update overlay_events_enabled.
11454
11455 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11456
11457 * dwarf2read.c (struct function_range): New.
11458 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11459 (check_cu_functions): New.
11460 (read_file_scope): Initialize global function lists.
11461 Call dwarf_decode_line after processing children.
11462 (read_func_scope): Add to global function list.
11463 (dwarf_decode_lines): Call check_cu_functions everywhere
11464 record_line is called. Call record_line with a linenumber
11465 of 0 to mark sequence ends.
11466
11467 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11468
11469 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11470 change sync with glibc.
11471
11472 2002-04-03 Jim Blandy <jimb@redhat.com>
11473
11474 * configure.in: Call AC_C_INLINE.
11475 * configure: Regenerated.
11476
11477 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11478
11479 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11480 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11481
11482 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11483
11484 * NEWS: Mention gcore support on FreeBSD/i386.
11485
11486 * fbsd-proc.c: New file.
11487 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11488 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11489
11490 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11491 while statement.
11492
11493 2002-03-29 Jim Blandy <jimb@redhat.com>
11494
11495 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11496 unescaped newlines in string literals, but newer ones don't. So
11497 escape them.
11498
11499 2002-03-26 Michael Snyder <msnyder@redhat.com>
11500 Andrew Cagney <cagney@redhat.com>
11501
11502 * cli/cli-dump.c: New file. Dump memory to file,
11503 restore file to memory.
11504 * cli/cli-dump.h: New file.
11505 * Makefile.in: Add rules, dependencies for cli-dump.o.
11506 * NEWS: Mention new commands.
11507
11508 2002-03-28 Michael Snyder <msnyder@redhat.com>
11509
11510 * symfile.c (symbol_file_add): Move test for null symbols to later.
11511
11512 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11513
11514 From veksler at il.ibm.com:
11515 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11516 the xstrduped original path.
11517 Fix PR gdb/417.
11518
11519 2002-03-27 Michael Snyder <msnyder@redhat.com>
11520
11521 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11522 * infcmd.c (_initialize_infcmd): Ditto.
11523 * language.c (_initialize_language): Ditto.
11524 * symfile.c (_initialize_symfile): Ditto.
11525 * top.c (_init_main): Ditto.
11526 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11527
11528 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11529
11530 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11531 vector registers handling.
11532 (skip_prologue): Handle new AltiVec instructions. Fill in new
11533 fields of frame data.
11534 (frame_get_saved_regs): Fill in information for AltiVec registers.
11535
11536 2002-03-27 Jim Blandy <jimb@redhat.com>
11537
11538 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11539 a function; leave this macro here to invoke that function.
11540 (symbol_init_mangled_name): Declaration for that function.
11541 * symtab.c (symbol_init_mangled_name): New function.
11542
11543 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11544
11545 * valarith.c: Replace strerror with safe_strerror.
11546 * tracepoint.c: Ditto.
11547 * lin-lwp.c: Ditto.
11548 * go32-nat.c: Ditto.
11549 * inflow.c: Ditto.
11550 * gnu-nat.c: Ditto.
11551
11552 2002-03-27 Andreas Schwab <schwab@suse.de>
11553
11554 * event-top.c (command_line_handler): Remove useless if.
11555
11556 2002-03-27 Andreas Jaeger <aj@suse.de>
11557
11558 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11559 comment.
11560
11561 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11562
11563 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11564 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11565 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11566 (x86_64_linux_dr_get_status, supply_gregset),
11567 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11568 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11569 (x86_64_register_info_table): Add.
11570 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11571 (x86_64_register_raw_size, x86_64_register_virtual_type),
11572 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11573 general x86_64_register_info_table.
11574 (i386_gdbarch_init): gdbarch_register_bytes is now set
11575 dynamicaly during initialization.
11576 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11577 * gdbserver/linux-x86-64-low.c: Ditto.
11578
11579 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11580
11581 * gdbserver/server.c (main): Call target_signal_to_host_p
11582 and target_signal_to_host on signals received from the remote.
11583 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11584 target_signal_from_host on signals sent to the remote.
11585 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11586 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11587
11588 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11589
11590 * signals/signals.c: Include "server.h" in gdbserver build.
11591 (target_signal_from_name): Don't use STREQ.
11592 (_initialize_signals): Likewise. Don't include function in
11593 gdbserver build.
11594
11595 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11596
11597 * signals.c: Moved to...
11598 * signals/signals.c: Here.
11599 * Makefile (signals.o): Update.
11600
11601 2002-03-26 Jeff Law (law@redhat.com)
11602
11603 * somread.c (som_symtab_read): Remove some commented out code and
11604 updated related comments. Do not set the minimal symbol table to
11605 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11606 in a dynamic executable.
11607 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11608 where we are unable to find the minimal symbol for the given
11609 PC value.
11610
11611 2002-03-25 Jeff Law (law@redhat.com)
11612
11613 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11614
11615 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11616
11617 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11618
11619 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11620
11621 * command.h: Update copyright.
11622 (struct cmd_list_element): Replace definition with opaque
11623 declaration.
11624 (enum cmd_types): Document that it will eventually be moved to
11625 cli/cli-decode.h
11626 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11627 (MALLOCED_REPLACEMENT): Delete macro.
11628 * Makefile.in (cli_decode_h): Add $(command_h).
11629 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11630 * top.c: Include "cli/cli-decode.h".
11631 * completer.c: Include "cli/cli-decode.h".
11632 * maint.c: Include "cli/cli-decode.h".
11633 * cli/cli-decode.h: Include "command.h".
11634 (enum command_class): Delete.
11635 (enum cmd_types): Comment out.
11636 (enum cmd_auto_boolean): Delete.
11637 (enum var_types): Delete.
11638
11639 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11640
11641 * cli/cli-decode.c: Include "gdb_assert.h".
11642 (add_set_or_show_cmd): New static function.
11643 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11644 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11645 all fields, such as func, from the set command.
11646
11647 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11648
11649 * MAINTAINERS (sh-elf): Change warning flag to -w.
11650
11651 2002-03-23 Andrew Cagney <cagney@redhat.com>
11652
11653 * defs.h (error): Add printf format attribute.
11654 * thread-db.c (thread_from_lwp): Fix error format string.
11655 * stack.c (parse_frame_specification): Ditto.
11656 * cli/cli-decode.c (undef_cmd_error): Ditto.
11657 * scm-lang.c (scm_lookup_name): Ditto.
11658 * tracepoint.c (trace_error): Ditto.
11659 * remote-utils.c (usage): Ditto.
11660 * remote.c (compare_sections_command): Ditto.
11661 Fix PR gdb/328.
11662
11663 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11664
11665 * gdbtypes.c (append_composite_type_field): New function.
11666 (init_composite_type): New function.
11667 * gdbtypes.h (append_composite_type_field): Declare.
11668 (init_composite_type): Ditto.
11669
11670 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11671
11672 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11673 function.
11674 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11675 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11676 structure returning convention for SYSV ABI case, but not
11677 for GNU/Linux, FreeBSD, or NetBSD.
11678
11679 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11680
11681 * symtab.h (lookup_block_symbol): Add mangled_name argument
11682 to prototype.
11683
11684 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11685 with new mangled_name argument.
11686 * linespec.c (decode_line_1): Likewise.
11687 * valops (value_of_this): Likewise.
11688 * symtab.c (lookup_transparent_type): Likewise.
11689 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11690 (lookup_symbol): If we are given a mangled name, pass it down
11691 to lookup_symbol_aux.
11692 (lookup_block_symbol): If we are given a mangled name to check
11693 against, only return symbols which match it.
11694
11695 2002-03-22 Christopher Faylor <cgf@redhat.com>
11696
11697 * win32-nat.c (child_create_inferior): Check for proper shell to use
11698 here, in case the user changes it on the fly.
11699 (_initialize_inftarg): Remove shell path considerations.
11700
11701 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11702
11703 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11704 for gdbarch_max_register_raw_size and max_register_virtual_size.
11705 Adjust copyright year.
11706
11707 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11708
11709 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11710 in a function to cover the entire beginning of the function
11711 as well if it does not already.
11712
11713 2002-03-21 Tom Rix <trix@redhat.com>
11714
11715 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11716 (rs6000_ptrace64): Renamed from ptrace64.
11717
11718 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11719
11720 * gdbserver/remote-utils.c (remote_open): Don't call
11721 getprotobyname, we're all using TCP here so just use
11722 IPPROTO_TCP.
11723 * gdbserver/gdbreplay.c (remote_open): Ditto.
11724
11725 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11726
11727 * regcache.c (_initialize_regcache): No need to call
11728 build_regcache() at this time; it gets called whenever
11729 the gdbarch changes.
11730
11731 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11732
11733 * sparc-nat.c: Include sys/param.h where possible.
11734
11735 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11736
11737 Fix PR gdb/422.
11738 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11739 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11740 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11741 complex types.
11742 * stabsread.c (rs6000_builtin_type): Likewise.
11743 (read_sun_floating_type): Likewise.
11744
11745 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11746
11747 * stabsread.c (read_member_functions): Remove skip code for duplicate
11748 constructor/destructor methods. Use standard parsing for these
11749 methods and just do not chain them to the list of methods after
11750 parsing.
11751
11752 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11753
11754 * coffread.c: Remove redundant static declarations. Replace
11755 occurrences of `PTR' with `void *'.
11756 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11757 * top.h (quit_cover): Likewise.
11758 * defs.h (catch_errors): Likewise.
11759
11760 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11761
11762 * defs.h (XMALLOC): Define.
11763 * gdb-events.sh (XMALLOC): Delete macro.
11764 * gdb-events.c, gdb-events.h: Regenerate.
11765 * gdbarch.sh (XMALLOC): Delete macro.
11766 * gdbarch.c: Regenerate.
11767 * serial.c (XMALLOC): Delete macro.
11768 * ui-file.c (XMALLOC): Ditto.
11769 * ser-unix.h (XMALLOC): Ditto.
11770 * sh-tdep.c (XMALLOC): Ditto.
11771 * ui-out.c (XMALLOC): Ditto.
11772 * utils.c (XMALLOC): Ditto.
11773 * i386-tdep.c (XMALLOC): Ditto.
11774 * gdb-events.c (XMALLOC): Ditto.
11775 * d10v-tdep.c (XMALLOC): Ditto.
11776 * cli-out.c (XMALLOC): Ditto.
11777
11778 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11779 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11780 * ui-file.c, ui-out.c: Ditto.
11781
11782 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11783
11784 * command.h (struct cmd_list_element): Add field context.
11785 (set_cmd_context, get_cmd_context): Declare.
11786 * cli/cli-decode.h: Ditto.
11787 * cli/cli-decode.c (get_cmd_context): New function.
11788 (set_cmd_context): New function.
11789 (add_cmd): Initialize context.
11790 Part of fixing PR gdb/145 and PR gdb/146.
11791
11792 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11793
11794 * cli/cli-decode.c (cmd_type): New function.
11795 * command.h (cmd_type): Declare.
11796 * infrun.c (set_schedlock_func): Call function cmd_type.
11797 * kod.c (kod_set_os): Call cmd_type.
11798 * cris-tdep.c (cris_version_update): Use function cmd_type.
11799 (cris_mode_update, cris_abi_update): Ditto.
11800
11801 * command.h: (execute_cmd_post_hook): Declare.
11802 (execute_cmd_pre_hook): Declare.
11803 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11804 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11805 functions. Execute pre/post hook while ensuring that afterwords
11806 hook_in is cleared.
11807 * top.c (execute_command): Use execute_cmd_post_hook, and
11808 execute_cmd_pre_hook to execute pre/post commands.
11809 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11810 hook_stop_stub.
11811 (hook_stop_stub): Call execute_cmd_pre_hook.
11812
11813 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11814
11815 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11816 set'' and this leads to a core dump. Move xstrdup of
11817 operating_system to after check that it is not NULL.
11818
11819 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11820
11821 * kod.c (kod_set_os): Remove unnecessary check that
11822 ``command->type'' is set_cmd.
11823
11824 * valprint.c (set_input_radix): Use input_radix.
11825 (set_output_radix): Use output_radix.
11826 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11827 isn't reverted.
11828
11829 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11830
11831 * value.h (struct value): Delete field ``substring_addr''. Change
11832 aligner fields to force_doublest_align, force_longest_align,
11833 force_core_addr_align and force_pointer_aligh.
11834
11835 * value.h (struct value): Fix typo in above change.
11836
11837 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11838
11839 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11840 to fix internal_error from ``maintenance print architecture''.
11841
11842 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11843
11844 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11845 for gcc versions after gcc-2.8.1.
11846
11847 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11848
11849 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11850 for method resolution. Restore adjustment of ``this'' pointer after
11851 calling value_struct_elt, which was accidentally removed during the
11852 HP merge.
11853
11854 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11855
11856 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11857 value_of_register.
11858 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11859 get_saved_register.
11860 * value.h (value_of_register): Update.
11861
11862 2002-03-14 Richard Henderson <rth@redhat.com>
11863
11864 * configure.in: Detect declaration for canonicalize_file_name.
11865 * utils.c (canonicalize_file_name): Declare, if needed.
11866 (gdb_realpath): Prefer realpath if available and usable.
11867 * config.in, configure: Rebuild.
11868
11869 2002-03-14 Richard Henderson <rth@redhat.com>
11870
11871 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11872 a constant array bound.
11873
11874 * MAINTAINERS: Add myself to write-after-approval.
11875
11876 2002-03-14 Michael Snyder <msnyder@redhat.com>
11877
11878 * symfile.c (syms_from_objfile): Return immediately if no syms.
11879 (symbol_file_add): Return immediately if no syms.
11880 (find_sym_fns): Return immediately if no syms.
11881
11882 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11883
11884 * gdbserver/remote-util.c (remote_open): Print remote-side's
11885 IP address when remote debugging over the network.
11886
11887 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11888
11889 * config/sparc/fbsd.mh: Fix copyright.
11890 * config/sparc/fbsd.mt: Likewise.
11891
11892 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11893
11894 * MAINTAINERS: Fix typo in name of gdb warnings option.
11895 (x86-64): Fix formating so that this can be parsed by awk.
11896
11897 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11898
11899 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11900 * defs.h: Include "gdb/signals.h".
11901 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11902
11903 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11904
11905 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11906 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11907 from x86-64-tdep.h
11908
11909 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11910 Don Howard <dhoward@redhat.com>
11911
11912 * mips-tdep.c (ST0_FR): Define.
11913 (mips2_fp_compat): New function, temporarily disabled.
11914 (mips_read_fp_register_single): New function.
11915 (mips_read_fp_register_double): New function.
11916 (mips_print_register): Use them.
11917 (do_fp_register_row): Likewise.
11918
11919 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11920
11921 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11922 approval''.
11923
11924 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11925
11926 * stabsread.c (read_member_functions): Fix is_stub test for
11927 static member functions, improve comment.
11928
11929 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11930
11931 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11932 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11933 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11934 commands that set boolean values.
11935 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11936 (arm_rdi_resume): Always initialize PC.
11937 (arm_rdi_open): Don't use rslt as a boolean.
11938 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11939 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11940 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11941 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11942
11943 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11944
11945 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11946 * configure: Rebuilt.
11947
11948 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11949
11950 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11951 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11952
11953 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11954
11955 * cli/cli-decode.c (set_cmd_completer): New function.
11956 * command.h (set_cmd_completer): Declare.
11957 * cli/cli-decode.h (set_cmd_completer): Ditto.
11958
11959 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11960 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11961 * win32-nat.c (_initialize_inftarg): Ditto.
11962 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11963 * proc-api.c (_initialize_proc_api): Ditto.
11964 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11965 * source.c (_initialize_source): Ditto.
11966 * exec.c (_initialize_exec): Ditto.
11967 * solib.c (_initialize_solib): Ditto.
11968 * top.c (init_main): Ditto.
11969 * tracepoint.c (_initialize_tracepoint): Ditto.
11970 * symfile.c (_initialize_symfile): Ditto.
11971 * printcmd.c (_initialize_printcmd): Ditto.
11972 * infcmd.c (_initialize_infcmd): Ditto.
11973 * corefile.c (_initialize_core): Ditto.
11974
11975 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11976
11977 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11978
11979 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11980
11981 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11982
11983 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11984
11985 * NEWS: Update headings, 5.2 has branched.
11986
11987 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11990 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11991 (register_addr, REGISTER_RAW_SIZE): Likewise.
11992 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11993 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11994
11995 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11996
11997 * MAINTAINERS (x86-64): Add myself.
11998 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11999 changed value_ptr -> struct value *
12000
12001 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12002
12003 * configure.host (sparc64-*-freebsd): Add.
12004 * configure.tgt: Likewise.
12005 * config/sparc/fbsd.mh: New file.
12006 * config/sparc/fbsd.mt: Likewise.
12007 * config/sparc/nm-fbsd.h: Likewise.
12008 * config/sparc/tm-fbsd.h: Likewise.
12009
12010 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12011
12012 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12013 regformats/reg-s390x.dat.
12014
12015 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12016
12017 * utils.c: Add FIXME explaining true/false problem.
12018
12019 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12020
12021 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12022
12023 2002-02-28 Michael Chastain <mec@shout.net>
12024
12025 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12026
12027 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12028
12029 * gdbserver/linux-s390-low.c: New file.
12030 * regformats/reg-s390.dat: New file.
12031 * regformats/reg-s390x.dat: New file.
12032 * gdbserver/configure.srv: Add S/390.
12033 * gdbserver/Makefile.in: Add S/390.
12034 * configure.tgt: Enable gdbserver for S/390.
12035
12036 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12037
12038 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12039 first line of the doc string for "info dos", except at the end of
12040 the sentence, since the short help stops at the first period.
12041
12042 2002-02-28 Jason Merrill <jason@redhat.com>
12043
12044 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12045
12046 2002-02-27 Fred Fish <fnf@redhat.com>
12047
12048 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12049 comment (dumy -> dummy).
12050
12051 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12052
12053 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12054
12055 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12056
12057 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12058
12059 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12060
12061 * gdbserver/acconfig.h: New file.
12062 * gdbserver/i387-fp.c: New file.
12063 * gdbserver/i387-fp.h: New file.
12064 * gdbserver/linux-x86-64.c: New file.
12065 * regformats/reg-x86-64.dat: New file.
12066 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12067 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12068 * gdbserver/configure.in: Add support for regsets.
12069 * gdbserver/config.in: Regenerate.
12070 * gdbserver/configure: Regenerate.
12071 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12072 * gdbserver/linux-low.h: New file.
12073 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12074 for regsets.
12075 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12076 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12077 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12078 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12079 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12080 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12081 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12082 "i387-fp.h". Add PTRACE_GETREGS and friends.
12083 * gdbserver/regcache.c (supply_register): New function.
12084 (supply_register_by_name): New function.
12085 (collect_register): New function.
12086 (collect_register_by_name): New function.
12087
12088 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12089
12090 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12091 (config.status): Add configure.srv dependency.
12092 (server_h): Add config.h dependency.
12093
12094 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12095
12096 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12097 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12098 * gdbserver/configure.srv: Change i386-*-linux* to use
12099 reg-i386-linux.o.
12100
12101 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12102
12103 * x86-64-tdep.c: Re-indent. Update copyright date.
12104
12105 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12106
12107 From Michal Ludvig <mludvig@suse.cz>:
12108 * x86-64-tdep.c (value.h): Delete.
12109 (gdb_assert.h): Include.
12110 (x86_64_register_convert_to_virtual,
12111 x86_64_register_convert_to_raw ): Add check which lets only
12112 floating-point values to be converted.
12113 (value_push): Delete.
12114 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12115 (i386_gdbarch_init): Number of register_bytes fixed.
12116
12117 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12118
12119 * MAINTAINERS: Add x86-64 target.
12120
12121 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12122
12123 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12124 * osfsolib.c (solib_map_sections): Ditto.
12125 * irix5-nat.c (solib_map_sections): Ditto.
12126 * corelow.c (gdb_check_format): Ditto.
12127 * symfile.c (symfile_bfd_open): Ditto.
12128 * solib.c (solib_map_sections): Ditto.
12129 Fix PR gdb/354.
12130
12131 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12132
12133 * remote.c (_initialize_remote): By default, disable ``e'' and
12134 ``E'' step out-of-range packets.
12135
12136 2002-02-26 Andreas Schwab <schwab@suse.de>
12137
12138 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12139 m68k_linux_frame_saved_pc.
12140 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12141 in_sigtramp.
12142 (SIGCONTEXT_PC_OFFSET): Remove.
12143 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12144 m68k_linux_sigtramp_saved_pc): New functions.
12145 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12146 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12147 (UCONTEXT_PC_OFFSET): Define.
12148 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12149 non-RT and RT signal trampolines.
12150
12151 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12152
12153 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12154 (TARGET_NBPG, STACK_END_ADDR): Delete
12155 (VARIABLES_INSIDE_BLOCK): Delete.
12156
12157 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12158
12159 * utils.c (perror_with_name): Make string parameter constant.
12160 (print_sys_errmsg): Ditto.
12161 (query): Ditto.
12162 * defs.h (perror_with_name): Update.
12163 (print_sys_errmsg): Update.
12164 (query): Update.
12165
12166 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12167
12168 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12169 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12170
12171 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12172
12173 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12174 if it already matches the current architecture from the exec file.
12175 Include arch-utils.h for gdbarch_info_init prototype.
12176 * Makefile.in (rs6000-nat.o): Update dependencies.
12177
12178 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12179
12180 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12181 list of exported variables.
12182
12183 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12184
12185 * gdbserver/configure.srv: New file.
12186 * gdbserver/configure.in: Use configure.srv instead
12187 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12188 from it.
12189 * gdbserver/configure: Regenerated.
12190 * gdbserver/terminal.h: New file.
12191 * gdbserver/Makefile.in: Update for configure changes. Remove
12192 more unneeded include paths.
12193
12194 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12195
12196 From wiz at danbala:
12197 * config/sparc/tm-sp64.h: Fix grammar and typos.
12198 Fix PR gdb/287.
12199
12200 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12201
12202 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12203 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12204 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12205 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12206 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12207 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12208 * s390-tdep.c: Ditto.
12209 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12210 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12211 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12212 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12213 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12214 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12215 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12216 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12217 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12218 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12219 Fix PR gdb/378.
12220
12221 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12222
12223 * lin-thread.c: Delete file.
12224 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12225 to gdb_proc_service.h.
12226 * configure: Re-generate.
12227
12228 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12229 * serial.c (serial_open): Delete check for "ocd".
12230 Fix PR gdb/349.
12231
12232 * Makefile.in (linux-thread.o): Delete target.
12233 * linux-thread.c: Delete file.
12234
12235 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12236 renamed SH files to be consistent.
12237
12238 * symtab.c (sort_search_symbols): Use xfree.
12239
12240 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12241
12242 * arm-linux-tdep.c (arm_linux_init_abi): Register
12243 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12244 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12245 definition with undef, since we don't want the sysvr4 definition.
12246 (SKIP_TRAMPOLINE_CODE): Likewise.
12247
12248 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12249
12250 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12251
12252 * configure.in: (AC_CHECK_FUNCS) Added test for
12253 canonicalize_file_name Regenerated.
12254 * config.in, configure: Regenerated.
12255 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12256 defined use canonicalize_file_name.
12257
12258 2002-02-23 Michael Chastain <mec@shout.net>
12259
12260 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12261
12262 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12263
12264 * README: Remove references to cygnus.com.
12265 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12266 dot com'' form. Remove references to cygnus.com and sourceware.
12267
12268 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12269
12270 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12271 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12272 1003.1-2001 no longer allows "head -1".
12273 * gdb/Makefile.in (version.c): Likewise.
12274 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12275 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12276 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12277
12278 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12279
12280 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12281 * command.h (cmd_cfunc_eq): Declare.
12282 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12283
12284 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12285 ``struct cmd_list_element *''.
12286 * cli/cli-cmds.c (is_complete_command): Update. Use
12287 cmd_cfunc_eq.
12288 * top.c (execute_command): Pass the command to
12289 is_complete_command.
12290 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12291
12292 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12293
12294 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12295 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12296 architecture defines.
12297 * s390-tdep.c (s390_gdbarch_init): Likewise.
12298
12299 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12300
12301 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12302 (arm_linux_push_arguments): Likewise.
12303 (arm_linux_init_abi): Register them. Also register linux-specific
12304 call_dummy_words.
12305 (find_minsym_and_objfile): Use strcmp, not STREQ.
12306 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12307 (arm_linux_call_dummy_words): Delete declaration.
12308 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12309 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12310 declarations.
12311 (LOWEST_PC): Delete.
12312
12313 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12314
12315 * maint.c (print_section_info): Do not prepend `0x' to filepos
12316 output, it will be handled by local_hex_string_custom.
12317
12318 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12319
12320 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12321 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12322 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12323
12324 2002-02-22 Jim Blandy <jimb@redhat.com>
12325
12326 Indicate that the bcache functions don't change the strings
12327 they're passed.
12328 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12329 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12330
12331 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12332
12333 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12334
12335 2002-02-21 Christopher Faylor <cgf@redhat.com>
12336
12337 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12338 find the complete path to a loaded DLL.
12339
12340 2002-02-21 Fred Fish <fnf@redhat.com>
12341
12342 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12343 that marks the end of the range of a function, enter a line number
12344 entry that has a line number of zero and a PC offset that matches
12345 the end of the function. This starts a range of PC's for which no
12346 line number information is known.
12347 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12348 PC's for which no line number info is found (line number is zero)
12349 then we didn't find any valid line information.
12350 * symtab.h: Document use of zero line number entry.
12351
12352 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12353
12354 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12355 (have_ptrace_getvrregs): Define for run time checks.
12356 (gdb_vrregset_t): New type for Altivec register handling.
12357 (fetch_register, store_register): Fetch/store altivec register
12358 when needed.
12359 (fetch_altivec_register, store_altivec_register): New functions.
12360 (supply_vrregset, fill_vrregset): New functions.
12361 (fetch_altivec_registers, store_altivec_registers): New functions.
12362 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12363 registers as well.
12364
12365 2002-02-21 Jiri Smid <smid@suse.cz>
12366
12367 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12368
12369 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12370
12371 * Makefile.in (armnbsd-nat.o): Update dependencies.
12372 * armnbsd-nat.c (supply_gregset): New function. Common code to
12373 supply the integer register set.
12374 (supply_fparegset): New function. Similar for FPA registers.
12375 (fetch_regs, fetch_fp_regs): Use them.
12376 (fetch_core_registers): Likewise.
12377 (fetch_elfcore_registers): New function.
12378 (arm_netbsd_elfcore_fns): New core-file type specification.
12379 (_initialize_arm_netbsd_nat): Register it.
12380
12381 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12382
12383 * armnbsd-nat.c: Include gdbcore.h.
12384 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12385 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12386 'void' to declaration, to shut up ARI.
12387 (fetch_core_registers): Make static. Rewrite using supply_register.
12388 (arm_netbsd_core_fns): New core-file type specification.
12389 (_initialize_arm_netbsd_nat): New function.
12390
12391 2002-02-21 Christopher Faylor <cgf@redhat.com>
12392
12393 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12394 value.
12395
12396 2002-02-20 Christopher Faylor <cgf@redhat.com>
12397
12398 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12399 fails.
12400
12401 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12402
12403 * jv-exp.y (parse_number): Change type of implicit longs
12404 to builtin_type_uint64.
12405
12406 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12407
12408 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12409 to be an integer instead of a `union wait'.
12410
12411 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12412
12413 * mips-linux-nat.c: Call the operating system GNU/Linux.
12414 * mips-linux-tdep.c: Likewise.
12415 * mips-tdep.c: Likewise.
12416
12417 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12418
12419 Fix PR gdb/265.
12420 * jv-exp.y (parse_number): Handle 64-bit integers.
12421
12422 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12423
12424 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12425 AC_STDC_HEADERS to AC_HEADER_STDC.
12426 * gdbserver/configure: Regenerated.
12427
12428 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12429
12430 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12431 is defined.
12432 * sparc-tdep.c (get_longjmp_target): Likewise.
12433
12434 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12435
12436 * News: Add news about ARM and Multi-arch. Mention the new target
12437 arm*-*-netbsd*.
12438
12439 2002-02-19 Jim Blandy <jimb@redhat.com>
12440
12441 * stabsread.c (error_type_complaint): Improve error message.
12442
12443 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * gdbserver/README: Update documentation.
12446 * gdbserver/configure.in: Update configury to match documentation.
12447 * gdbserver/Makefile.in: Likewise.
12448 * gdbserver/configure: Regenerated.
12449 * gdbserver/aclocal.m4: New file, generated by aclocal.
12450 * gdbserver/config.in: New file, generated by autoheader.
12451
12452 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12453
12454 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12455 armnbsd-nat.c.
12456
12457 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12458
12459 * arm-tdep.h (enum arm_float_model): New enum.
12460 (struct gdbarch_tdep): Add fp_model.
12461 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12462 up floating-point conversions until we know the floating-point model
12463 in use by the inferior. Don't complain about being unable to
12464 determine the ABI of the inferior when we don't have one.
12465 (arm_extract_return_value): Support different floating-point models.
12466 (arm_store_return_value): Likewise.
12467 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12468 ARM_FLOAT_SOFT.
12469 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12470
12471 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12472
12473 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12474 of ``current_gdbarch''.
12475
12476 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12477
12478 * armnbsd-nat.c : ANSIfy all function declarations.
12479 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12480 (fetch_inferior_registers): Re-implement in terms of above.
12481 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12482 (store_inferior_registers): Re-implement in terms of above.
12483
12484 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12485
12486 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12487 kernel.
12488 * arm-linux-tdep.c: Likewise.
12489 * config/arm/tm-linux.h: Likewise.
12490
12491 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12492
12493 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12494 * config/arm/nbsd.mt (TM_FILE): Delete.
12495 * config/arm/tm-nbsd.h: Delete.
12496
12497 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12498
12499 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12500 Initialize CALL_DUMMY_LENGTH.
12501
12502 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12503
12504 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12505 function.
12506 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12507 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12508 defines one thing and that is incorrect for this port.
12509 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12510
12511 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12512
12513 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12514
12515 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12516
12517 * win32-nat.c (display_selector): New function. Displays information
12518 about the information returned by GetThreadSelectorEntry API function.
12519 (display_selectors): New function. Displays the infomation of
12520 the selector given as argument, or of CS, DS ans FS selectors
12521 if no argument is given.
12522 ( _initialize_inftarg): Add "w32" as info prefix command.
12523 Add "info w32 selector" as command calling display_selectors.
12524
12525 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12526
12527 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12528 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12529 if not defined.
12530
12531 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12532
12533 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12534
12535 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12536
12537 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12538 (arm_fix_call_dummy): Call it.
12539 (arm_call_dummy_breakpoint_offset): Delete.
12540 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12541 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12542
12543 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12544
12545 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12546 Default to func_frame_chain_valid.
12547 * gdbarch.h, gdbarch.c: Re-generate.
12548 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12549
12550 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12551
12552 * ppc-linux-nat.c: Update copyright.
12553 (fetch_register, store_register): Add tid parameter, don't compute
12554 tid here.
12555 (fetch_ppc_registers, store_ppc_registers): Add tid
12556 parameter. Pass it along to callees.
12557 (fetch_inferior_registers, store_inferior_registers): Compute tid
12558 here, and pass it to calleed functions.
12559 (fill_gregset, supply_fpregset): Clean up formatting.
12560
12561 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12562
12563 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12564 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12565
12566 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12567
12568 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12569 * gdbarch.c gdbarch.h: Regenerate.
12570 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12571 function.
12572 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12573 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12574 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12575
12576 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12577 * arm-tdep.c (arm_get_longjmp_target): New function.
12578 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12579 this to a positive value register arm_get_longjmp_target as the
12580 longjmp handler.
12581 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12582 (arm_linux_init_abi): Set up longjmp description in tdep.
12583 * armnbsd-nat.c (get_longjmp_target): Delete.
12584 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12585 description in tdep.
12586 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12587 (get_longjmp_target): Delete declaration.
12588 (GET_LONGJMP_TARGET): Delete.
12589 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12590 (GET_LONGJMP_TARGET): Delete.
12591
12592 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12593
12594 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12595 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12596 of ``current_gdbarch''.
12597
12598 2002-02-17 Tom Tromey <tromey@redhat.com>
12599
12600 * cli/cli-cmds.c (compare_strings): New function.
12601 (complete_command): Only print each unique item once.
12602 * completer.h (complete_line): Declare.
12603 * completer.c (complete_line): New function.
12604 (line_completion_function): Use it.
12605
12606 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12607
12608 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12609 * gdbarch.h, gdbarch.c: Re-generate.
12610
12611 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12612
12613 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12614
12615 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12616
12617 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12618 * valops.c (value_arg_coerce): Don't take the address of a reference
12619 to convert an argument to a reference.
12620
12621 2002-02-15 Christopher Faylor <cgf@redhat.com>
12622
12623 * win32-nat.c (get_image_name): New function.
12624 (handle_load_dll): Use get_image_name function.
12625 (get_child_debug_event): Avoid registering debug events until possibly
12626 execed process is started.
12627 (child_create_inferior): Allow invocation via shell so that command
12628 line redirection, etc. works ok.
12629 (_initialize_inftarg): Add new command: "set shell" to control whether
12630 a shell is used to start a process.
12631
12632 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12633
12634 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12635 instead of find_register_by_number.
12636 (cannot_store_register): Likewise.
12637
12638 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12639
12640 * dwarf2read.c: Replace fprintf (stderr, ...) by
12641 fprintf_unfiltered (gdb_stderr, ...).
12642
12643 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12644
12645 * gdbserver/gdbserver.1: Document --attach.
12646
12647 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12648
12649 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12650 descriptions.
12651 * arm-tdep.c (arm_default_arm_le_breakpoint)
12652 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12653 (arm_default_thumb_be_breakpoint): New. Initialize them from
12654 traditional breakpoint defines.
12655 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12656 (arm_gdbarch_init): Initialize new breakpoint variables.
12657 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12658 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12659 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12660 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12661 code out to ...
12662 (arm_netbsd_init_abi_common): ... here; new function.
12663 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12664 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12665 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12666 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12667
12668 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12669
12670 * arm-tdep.h (enum arm_abi): New enum.
12671 (struct gdbarch_tdep): New structure.
12672 (LOWEST_PC): Provide a default.
12673 (arm_gdbarch_register_os_abi): Declare new function.
12674 * arm-tdep.c (arm_abi_names): New array.
12675 (process_note_abi_tag_sections): New function.
12676 (get_elfosabi): New function.
12677 (arm_gdbarch_register_os_abi): New function.
12678 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12679 support for that ABI has been built in, then call the appropriate
12680 configuration routine. Use gdbarch_num_regs() to get the number
12681 of registers.
12682 (arm_dump_tdep): New function.
12683 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12684 place-holder functions.
12685 (_initialize_arm_tdep): Register them.
12686 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12687
12688 * armnbsd-tdep.c: New file.
12689 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12690 * config/arm/nbsd.mt (TDEPFILES): Add it.
12691 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12692
12693 * armnbsd-nat.c: Include regcache.h.
12694 * Makefile.in (armnbsd-nat.o): Update dependency list.
12695
12696 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12697
12698 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12699
12700 * gdbserver/Makefile.in: Fix typos in target rules.
12701
12702 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12703
12704 Fix part of PR gdb/267.
12705 * linespec.c (find_methods): Handle constructors specially for now.
12706
12707 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12708
12709 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12710 handling.
12711 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12712 standard_coerce_float_to_double().
12713
12714 2002-02-14 Christopher Faylor <cgf@redhat.com>
12715
12716 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12717 GDBINIT_FILENAME.
12718
12719 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12720
12721 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12722 find_variant_by_name, because it confuses the multiarch
12723 framework. Return NULL if there isn't an architecture with the
12724 user supplied name, instead of forcing a different one without
12725 recording the change with the multiarch machinery.
12726 (find_variant_by_name): Delete.
12727
12728 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12729
12730 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12731 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12732
12733 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12734
12735 * stack.c (print_frame_info_base): When calling
12736 print_frame_info_listing_hook, set current_source_symtab.
12737
12738 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12739
12740 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12741 and remove unused $(INCLUDE_DIR).
12742 Add regcache.c to OBS.
12743 Add generated register protocol files to clean target.
12744 Update dependencies for new objects, obsolete old target code.
12745
12746 * gdbserver/linux-low.c: Remove all platform-specific code to
12747 new files. Remove various dead code. Update to use regcache
12748 functionality.
12749 * gdbserver/remote-utils.c (fromhex): Add return statement
12750 to quiet warning.
12751 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12752 constant.
12753 (input_interrupt): Add integer parameter to match prototype
12754 of a signal handler.
12755 (outreg): Use register_data ().
12756 (prepare_resume_reply): Use gdbserver_expedite_regs.
12757 * gdbserver/server.c (main): Dynamically allocate own_buf because
12758 PBUFSIZ is no longer constant. Use registers_to_string () and
12759 registers_from_string ().
12760 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12761 for error (), fatal (), and warning (). Update definition of
12762 PBUFSIZ to use regcache functionality. Add include guard.
12763 * gdbserver/utils.c (fatal): Add missing ``const''.
12764 (warning): New function.
12765
12766 * regformats/regdat.sh: Include "regcache.h" in generated files.
12767 Provide init_registers () function.
12768 * regformats/regdef.h: Add prototype for set_register_cache ().
12769 Add include guard.
12770
12771 * gdbserver/linux-arm-low.c: New file.
12772 * gdbserver/linux-i386-low.c: New file.
12773 * gdbserver/linux-ia64-low.c: New file.
12774 * gdbserver/linux-m68k-low.c: New file.
12775 * gdbserver/linux-mips-low.c: New file.
12776 * gdbserver/linux-ppc-low.c: New file.
12777 * gdbserver/linux-sh-low.c: New file.
12778
12779 * gdbserver/regcache.c: New file.
12780 * gdbserver/regcache.h: New file.
12781
12782 * gdbserver/low-linux.c: Removed obsolete file.
12783
12784 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12785
12786 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12787 * config/i386/linux.mt: Likewise.
12788 * config/ia64/linux.mt: Likewise.
12789 * config/m68k/linux.mh: Likewise.
12790 * config/powerpc/linux.mh: Likewise.
12791 * config/mips/linux.mt: Likewise.
12792
12793 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12794
12795 * config/i386/i386lynx.mh: Mark gdbserver variables
12796 as (currently) obsolete for this target.
12797 * config/i386/nbsd.mt: Likewise.
12798 * config/i386/nbsdelf.mt: Likewise.
12799 * config/m32r/m32r.mt: Likewise.
12800 * config/m68k/m68klynx.mh: Likewise.
12801 * config/m68k/nbsd.mt: Likewise.
12802 * config/m68k/sun3os4.mh: Likewise.
12803 * config/mips/vr5000.mt: Likewise.
12804 * config/ns32k/nbsd.mt: Likewise.
12805 * config/pa/hppabsd.mh: Likewise.
12806 * config/pa/hppaosf.mh: Likewise.
12807 * config/powerpc/nbsd.mt: Likewise.
12808 * config/rs6000/rs6000lynx.mh: Likewise.
12809 * config/s390/s390.mt: Likewise.
12810 * config/s390/s390x.mt: Likewise.
12811 * config/sparc/sparclynx.mh: Likewise.
12812 * config/sparc/sun4os4.mh: Likewise.
12813 * config/i386/x86-64linux.mt: Likewise.
12814 * config/sparc/linux.mh: Likewise.
12815
12816 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12817
12818 * configure.tgt: Configure gdbserver only for known working
12819 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12820 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12821 SUBDIRS if it is configured. Update comment for ${nativefile}.
12822 * configure: Regenerated.
12823
12824 2002-02-13 Michael Snyder <msnyder@redhat.com>
12825
12826 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12827
12828 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12829 (default_gcore_mach): Just return 0, work around a problem in bfd.
12830 (default_gcore_target): OK to return NULL if exec_bfd is null.
12831 (make_mem_sec): Use a cast, avoid a warning.
12832
12833 * procfs.c (find_memory_regions_callback): Use a cast instead of
12834 calling host_pointer_to_address (which complains if
12835 sizeof (host pointer) != sizeof (target pointer)).
12836 (procfs_make_note_section): Avoid overflow in psargs string.
12837
12838 * procfs.c (procfs_make_note_section): Make the default
12839 implementation return an error.
12840
12841 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12842
12843 * procfs.c (procfs_make_note_section): Provide a default definition
12844 (for alpha-dec-osf4.0f). Fix typos.
12845
12846 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12847
12848 * linux-proc.c: Add include of regcache.h.
12849 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12850
12851 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12852
12853 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12854 * memattr.c (create_mem_region): Disallow useless empty region.
12855 Regions are half-open intervals, so allow [A..B) [B..C) as
12856 non-overlapping.
12857
12858 2002-02-13 Michael Chastain <mec@shout.net>
12859
12860 * defs.h: Kill CONST_PTR.
12861 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12862 * c-lang.c (c_builtin_types): Likewise.
12863 * ch-lang.c (ch_builtin_types): Likewise.
12864 * f-lang.c (f_builtin_types): Likewise.
12865 * language.c (unknown_builtin_types): Likewise.
12866 * m2-lang.c (m2_builtin_types): Likewise.
12867 * p-lang.c (pascal_builtin_types): Likewise.
12868 * scm-lang.c (c_builtin_types): Likewise.
12869
12870 2002-02-13 Keith Seitz <keiths@redhat.com>
12871
12872 * arm-tdep.h (arm_get_next_pc): Add declaration.
12873
12874 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12875
12876 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12877 with other related struct-returning functions.
12878 (arm_extract_struct_value_address): New function.
12879 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12880 initialize float_format, double_format and long_double_format as
12881 appropriate to the endianness of the target.
12882 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12883 (arm_use_struct_convention): Delete declaration.
12884 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12885
12886 2002-02-13 Keith Seitz <keiths@redhat.com>
12887
12888 * defs.h (core_addr_to_string_nz): New function.
12889
12890 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12891
12892 Apply missing bits of 2002-01-15 patch.
12893 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12894 (fill_fpregset): Use i387_fill_fsave.
12895
12896 2002-02-12 Keith Seitz <keiths@redhat.com>
12897
12898 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12899 (core_addr_to_string_nz): New function.
12900
12901 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12902
12903 * arm-linux-nat.c: Really include arm-tdep.h.
12904 * config/arm/tm-linux.h (struct type, struct value): Declare.
12905
12906 2002-02-11 Michael Snyder <msnyder@redhat.com>
12907
12908 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12909 (gcore section): Ifdef for Solaris and Unixware only.
12910 (procfs_do_thread_registers): Unixware needs one lwpstatus
12911 per thread (not one prstatus or pstatus).
12912 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12913 not over all gdb threads. For unixware, call elfcore_write_pstatus
12914 once before iterating over threads.
12915
12916 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12917
12918 * arm-tdep.h: New file.
12919 * arm-tdep.c: Include arm-tdep.h.
12920 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12921 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12922 (arm_print_float_info, arm_register_type, convert_to_extended)
12923 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12924 (arm_extract_return_value, arm_register_name): Make static.
12925 (arm_software_single_step): Similarly. Fix types in declaration.
12926 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12927 (arm_store_return_value, arm_store_struct_return): New functions.
12928 (arm_gdbarch_init): Register the above functions. Also register
12929 call_dummy_start_offset, sizeof_call_dummy_words,
12930 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12931 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12932 max_register_virtual_size, register_size. Set up
12933 prologue_cache.saved_regs here, rather than ...
12934 (_initialize_arm_tdep): ... here.
12935 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12936 declarations.
12937 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12938 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12939 (arm_print_float_info, arm_register_type, convert_to_extended)
12940 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12941 (arm_extract_return_value, arm_register_name): Delete declarations.
12942 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12943 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12944 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12945 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12946 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12947 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12948 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12949 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12950 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12951 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12952 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12953 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12954 interface.
12955 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12956 * remote-rdi.c remote-rdp.c: Likewise.
12957 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12958 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12959 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12960 definition.
12961
12962 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12963 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12964 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12965 from non-ARM_ prefixed definitions.
12966 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12967 all uses of above.
12968 * remote-rdi.c remote-rdp.c: Likewise.
12969 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12970
12971 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12972
12973 * arm-tdep.c (arm_frameless_function_invocation)
12974 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12975 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12976 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12977 (arm_pop_frame, arm_get_next_pc): Make static.
12978 (arm_gdbarch_init): Register above in gdbarch structure.
12979 (arm_read_fp): Renamed from arm_target_read_fp.
12980 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12981 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12982 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12983 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12984 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12985 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12986 (arm_pc_is_thumb_dummy): Delete declarations.
12987 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12988 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12989 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12990 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12991
12992 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12993
12994 * symtab.c (compare_search_syms): New function.
12995 (sort_search_symbols): New function.
12996 (search_symbols): Sort symbols after searching rather than
12997 before.
12998
12999 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13000
13001 * NEWS: Linux -> GNU/Linux.
13002
13003 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13004
13005 * gdbarch.sh: For for level one methods, disallow a definition
13006 when partially multi-arched. Add comments explaining rationale.
13007 * gdbarch.h: Re-generate.
13008
13009 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13010
13011 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13012 multi-arch partial.
13013
13014 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13015
13016 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13017 field. Use diff -u.
13018 * gdbarch.c: Re-generate.
13019
13020 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13021
13022 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13023 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13024 partial.
13025
13026 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13027
13028 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13029 multi-arch partial.
13030 (PUSH_ARGUMENTS): Switch to using predefault.
13031 * gdbarch.c: Regenerate.
13032
13033 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13034
13035 * valops.c (PUSH_ARGUMENTS): Delete definition.
13036 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13037 partial. Default to default_push_arguments.
13038 * gdbarch.h, gdbarch.c: Regenerate.
13039
13040 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13041
13042 * defs.h (throw_exception): Rename return_to_top_level. Update
13043 comments.
13044 * utils.c (error_stream, internal_verror, quit): Ditto.
13045 * top.c (throw_exception, catcher): Ditto.
13046 * sparclet-rom.c (sparclet_load): Ditto.
13047 * remote.c (interrupt_query, minitelnet): Ditto.
13048 * remote-sds.c (interrupt_query): Ditto.
13049 * remote-mips.c (mips_error, mips_kill): Ditto.
13050 * ocd.c (interrupt_query): Ditto.
13051 * monitor.c (monitor_interrupt_query): Ditto.
13052 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13053 * target.h: Update comment.
13054
13055 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13056
13057 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13058
13059 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13060 default_double_format.
13061 * gdbarch.h, gdbarch.c: Re-generate.
13062 * findvar.c (floatformat_unknown): Delete variable definition.
13063 * doublest.h (floatformat_unknown): Delete variable declaration.
13064
13065 2002-02-09 Jim Blandy <jimb@redhat.com>
13066
13067 * stabsread.c (read_type): Add code to parse Sun's syntax for
13068 prototyped function types.
13069
13070 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13071
13072 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13073 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13074
13075 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13076
13077 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13078 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13079 now _initialize_xcoffsolib gets called again and overrides the
13080 commands from solib.c in a native configuration.
13081
13082 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13083
13084 * doublest.c (store_typed_floating): Don't try to return a value.
13085 Fixes PR gdb/290.
13086
13087 2002-02-08 Jim Blandy <jimb@redhat.com>
13088
13089 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13090 is prototyped and has no arguments, print its argument list as
13091 `(void)'.
13092
13093 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13094
13095 * MAINTAINERS (write-after-approval): Add myself.
13096 (paper-trail): I've escaped!
13097
13098 2002-02-08 Christopher Faylor <cgf@redhat.com>
13099
13100 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13101 changes.
13102 (_initialize_check_for_gdb_ini): Ditto.
13103
13104 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13105
13106 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13107 xaprintf -> xasprintf.
13108
13109 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13110
13111 * win32-nat.c: Remove use of printf and sprintf functions.
13112
13113 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13114
13115 * arm-tdep.c (arm_frame_chain_valid): Make static.
13116 (arm_push_arguments): Likewise.
13117 (arm_gdbarch_init): New function.
13118 (_initialize_arm_tdep): Call it.
13119 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13120 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13121 (FRAME_CHAIN_VALID): Delete.
13122 (arm_frame_chain_valid): Delete declaration.
13123 (PUSH_ARGUMENTS): Delete.
13124 (arm_push_arguments): Delete declaration.
13125 (CALL_DUMMY_P): Delete.
13126
13127 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13128 Corinna Vinschen <vinschen@redhat.com>
13129
13130 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13131 on builtin float types.
13132
13133 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13134
13135 * utils.c: Include <curses.h> before "bfd.h".
13136 * tui/tui-hooks.c: Likewise.
13137 * tui/tui.c: Likewise.
13138 * tui/tuiCommand.c: Likewise.
13139 * tui/tuiData.c: Likewise.
13140 * tui/tuiDataWin.c: Likewise.
13141 * tui/tuiDisassem.c: Likewise.
13142 * tui/tuiGeneralWin.c: Likewise.
13143 * tui/tuiIO.c: Likewise.
13144 * tui/tuiLayout.c: Likewise.
13145 * tui/tuiRegs.c: Likewise.
13146 * tui/tuiSource.c: Likewise.
13147 * tui/tuiSourceWin.c: Likewise.
13148 * tui/tuiStack.c: Likewise.
13149 * tui/tuiWin.c: Likewise.
13150
13151 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13152
13153 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13154 to include space for pseudoregs as well. Update loops accordingly.
13155 (sh_fp_frame_init_saved_regs): Ditto.
13156 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13157
13158 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13159
13160 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13161 Add Richard Earnshaw to Arm maintainers.
13162
13163 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13164
13165 * defs.h (warning_begin): Delete declaration.
13166
13167 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13168 Delete macro.
13169
13170 2002-02-07 Michael Snyder <msnyder@redhat.com>
13171
13172 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13173 Logic bug, remove misplaced else.
13174
13175 2002-02-07 Klee Dienes <klee@apple.com>
13176
13177 * fork-inferior.c (fork_inferior): Add '!' to the list of
13178 characters that need to be quoted when building a string for the
13179 shell. Quote '!' specifically with a backslash, since CSH chokes
13180 when trying to evaluate "str!str".
13181
13182 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13183
13184 * rdi-share/host.h: Only provide a typedef for bool if it is not
13185 defined.
13186
13187 2002-02-04 Michael Snyder <msnyder@redhat.com>
13188
13189 * breakpoint.h (enum bptype): Add new overlay event bp type.
13190 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13191
13192 * breakpoint.c (create_internal_breakpoint): New function.
13193 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13194 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13195 (create_thread_event_breakpoint): Ditto.
13196 (create_solib_event_breakpoint): Ditto.
13197 (create_overlay_event_breakpoint): New function.
13198 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13199 (update_breakpoints_after_exec): Delete and re-initialize
13200 overlay event breakpoints after an exec. Add FIXME comment
13201 about longjmp breakpoint.
13202 (print_it_typical): Ignore overlay event breakpoints.
13203 (print_one_breakpoint): Ditto.
13204 (mention): Ditto.
13205 (bpstat_what): Do not stop for overlay event breakpoints.
13206 (delete_breakpoint): Don't delete overlay event breakpoints.
13207 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13208 (breakpoint_re_set): Re-create overlay event breakpoint.
13209
13210 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13211 (overlay_manual_command): Disable overlay breakpoints.
13212 (overlay_off_command): Disable overlay breakpoints.
13213
13214 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13215
13216 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13217 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13218 to here from config/tm-arm.h.
13219 (coff_sym_is_thumb): Make static.
13220 (arm_elf_make_msymbol_special): New function.
13221 (arm_coff_make_msymbol_special): New function.
13222 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13223 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13224 (coff_sym_is_thumb): Delete declaration.
13225 (arm_elf_make_msymbol_special): Declare.
13226 (arm_coff_make_msymbol_special): Declare.
13227 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13228 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13229
13230 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13231
13232 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13233
13234 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13235
13236 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13237 * gdbarch.c gdbarch.h: Regenerate.
13238 * arch-utils.c (default_print_float_info): New function.
13239 * arch-utils.h (default_print_float_info): Prototype it.
13240 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13241 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13242 (PRINT_FLOAT_INFO): Document it.
13243
13244 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13245 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13246 (PRINT_FLOAT_INFO): Define.
13247
13248 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13249
13250 * win32-nat.c (_initialize_check_for_gdb_ini):
13251 Add typecast to sprintf argument to suppress a warning.
13252
13253 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13254
13255 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13256 to allow easier handling of pass state.
13257 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13258 that gives exception name and address.
13259 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13260 and set last_sig value to ourstatus->value.sig. Some missing
13261 exceptions added.
13262 (child_continue): Correctly report continue_status.
13263 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13264 TARGET_SIGNAL_0 (new default value).
13265 (child_resume): consider sig argument passed to decide if
13266 the exception should be passed to debuggee or not.
13267
13268 2002-02-05 Michael Snyder <msnyder@redhat.com>
13269
13270 * regcache.c (fetch_register): Call target_fetch_register
13271 only if we don't call FETCH_PSEUDO_REGISTER.
13272 (store_register): Call target_store_register only if we
13273 don't call STORE_PSEUDO_REGISTER.
13274
13275 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13276
13277 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13278 ELF_MAKE_MSYMBOL_SPECIAL.
13279 * gdbarch.c, gdbarch.h: Regenerate.
13280 * arch-utils.c (default_make_msymbol_special): New function.
13281 * arch-utils.h (default_make_msymbol_special): Export.
13282 * elfread.c (elf_symtab_read): Compile use of
13283 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13284 multiarched.
13285 * coffread.c (coff_symtab_read): Ditto, for
13286 COFF_MAKE_MSYMBOL_SPECIAL.
13287
13288 2002-02-05 Jim Blandy <jimb@redhat.com>
13289
13290 * solib-svr4.c (svr4_truncate_ptr): New function.
13291 (svr4_relocate_section_addresses): Do the address arithmetic with
13292 the appropriate truncation for target addresses, even when
13293 CORE_ADDR is larger than a target address.
13294
13295 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13296
13297 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13298 to (int *).
13299
13300 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13301
13302 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13303 code.
13304
13305 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13306
13307 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13308
13309 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13310
13311 * gdbserver/linux-low.c: Remove unused include files.
13312
13313 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13314
13315 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13316 (read_inferior_memory): Use it.
13317 (write_inferior_memory): Likewise.
13318
13319 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13320
13321 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13322 grubbing through sys_errlist.
13323
13324 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13325
13326 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13327
13328 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13329 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13330
13331 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13332
13333 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13334 (do_sfunc, set_cmd_sfunc): New functions.
13335
13336 * command.h (struct cmd_list_element): Add field func.
13337 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13338 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13339 * cli/cli-decode.h: Ditto.
13340
13341 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13342 (help_all, help_cmd_list): Ditto.
13343 (find_cmd, complete_on_cmdlist): Ditto.
13344 * top.c (execute_command): Ditto.
13345
13346 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13347 function.sfunc.
13348
13349 * infcmd.c (notice_args_read): Fix function signature.
13350
13351 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13352 * cli/cli-decode.c (add_set_cmd): Ditto.
13353 * utils.c (initialize_utils): Ditto.
13354 * maint.c (_initialize_maint_cmds): Ditto.
13355 * infrun.c (_initialize_infrun): Ditto.
13356 * demangle.c (_initialize_demangler): Ditto.
13357 * remote.c (add_packet_config_cmd): Ditto.
13358 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13359 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13360 * proc-api.c (_initialize_proc_api): Ditto.
13361 * kod.c (_initialize_kod): Ditto.
13362 * valprint.c (_initialize_valprint): Ditto.
13363 * top.c (init_main): Ditto.
13364 * infcmd.c (_initialize_infcmd): Ditto.
13365 * corefile.c (_initialize_core): Ditto.
13366 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13367 * arch-utils.c (initialize_current_architecture): Ditto.
13368 (_initialize_gdbarch_utils): Ditto.
13369 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13370
13371 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13372 * wince.c (_initialize_inftarg): Ditto.
13373 * symfile.c (_initialize_symfile): Ditto.
13374 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13375 * language.c (_initialize_language): Ditto.
13376 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13377
13378 2002-02-04 Michael Snyder <msnyder@redhat.com>
13379
13380 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13381
13382 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13383
13384 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13385 Add rules for building the register data files.
13386
13387 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13388
13389 * regformats/regdat.sh: Add braces to the definition of
13390 expedite_regs_${arch}.
13391
13392 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13393
13394 * regformats/regdef.h (struct reg): Add comment describing the
13395 requirements for offset and size fields.
13396
13397 2002-02-04 Andreas Schwab <schwab@suse.de>
13398
13399 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13400 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13401
13402 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13403
13404 * gdbarch.sh (copyright): Update years in generated header.
13405 (SMASH_TEXT_ADDRESS): Add rule.
13406 * gdbarch.h, gdbarch.c: Re-generate.
13407 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13408 * dbxread.c: Likewise.
13409 * dwarfread.c: Likewise.
13410 * elfread.c: Likewise.
13411 * somread.c: Likewise.
13412
13413 * arm-tdep.c (arm_smash_text_address): New function.
13414 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13415
13416 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13417
13418 Add support for hardware watchpoints on win32 native.
13419 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13420 CONTEXT_DEBUG_REGISTERS.
13421 (dr variable): New variable. Static array containing a local copy
13422 of debug registers.
13423 (debug_registers_changed): New variable. Reflects when debug registers
13424 are changed and need to be written to inferior.
13425 (debug_registers_used): New variable. Reflects when any debug register
13426 was set, used when new threads are created.
13427 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13428 i386-nat code.
13429 (thread_rec): Set dr array if id is the thread of current_event .
13430 (child_continue, child_resume): Change the debug registers for all
13431 threads if debug_registers_changed.
13432 (child_add_thread): Change the debug registers if debug_registers_used.
13433 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13434 Link nm.h to new nm-cygwin.h file.
13435 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13436 of hardware registers.
13437
13438 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13439
13440 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13441 Restore behavour broken by 2002-01-20 Andrew Cagney
13442 <ac131313@redhat.com> IEEE_FLOAT removal.
13443
13444 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13445
13446 * c-valprint.c (c_val_print): Pass a proper valaddr to
13447 cp_print_class_method.
13448 * valops.c (search_struct_method): If there is only one method
13449 and args is NULL, return that method.
13450
13451 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13452
13453 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13454 accessing tag_name directly.
13455
13456 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13457
13458 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13459 of accessing tag_name directly.
13460
13461 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13462
13463 PR gdb/280
13464 * gdbtypes.c (replace_type): New function.
13465 * gdbtypes.h (replace_type): Add prototype.
13466 * stabsread.c (read_type): Use replace_type.
13467
13468 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13469
13470 * Makefile.in (memattr.o): Add missing dependencies rule.
13471
13472 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13473
13474 * breakpoint.c (break_at_finish_command): Really export.
13475 (break_at_finish_at_depth_command): Ditto.
13476 (tbreak_at_finish_command): Ditto.
13477 * hppa-tdep.c: Include completer.h.
13478 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13479 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13480
13481 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13482
13483 * utils.c (do_write): New function.
13484 (error_stream): Rewrite combining the code from error_begin and
13485 verror.
13486 (verror): Rewrite using error_stream.
13487 (error_begin): Delete function.
13488
13489 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13490
13491 * utils.c (error_begin): Make static.
13492 * defs.h (error_begin): Delete declaration.
13493
13494 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13495 (decode_line_1): Use cplusplus_error instead of error_begin,
13496 cplusplus_hint and return_to_top_level.
13497 * coffread.c (coff_symfile_read): Use error instead of error_begin
13498 and return_to_top_level.
13499 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13500
13501 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13502
13503 * language.h (type_error, range_error): Make string parameter
13504 constant.
13505 * language.c (warning_pre_print): Delete extern declaration.
13506 * dwarfread.c (warning_pre_print): Ditto.
13507 * language.c (type_error, range_error): Rewrite to use verror and
13508 vwarning instead of warning_begin.
13509
13510 2002-02-01 Michael Snyder <msnyder@redhat.com>
13511
13512 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13513 (set_ignore_count): Move misplaced comment back where it belongs.
13514
13515 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13516
13517 * command.h (NO_FUNCTION): Delete macro.
13518 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13519 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13520 * tracepoint.c (_initialize_tracepoint): Ditto.
13521 * cli/cli-decode.c (add_set_cmd): Ditto.
13522 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13523
13524 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13525
13526 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13527 Update ``this'' pointer when calling virtual functions.
13528
13529 2002-02-01 Michael Snyder <msnyder@redhat.com>
13530
13531 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13532 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13533
13534 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13535
13536 * regformats/reg-arm.dat: New file.
13537 * regformats/reg-i386.dat: New file.
13538 * regformats/reg-ia64.dat: New file.
13539 * regformats/reg-m68k.dat: New file.
13540 * regformats/reg-mips.dat: New file.
13541 * regformats/reg-ppc.dat: New file.
13542 * regformats/reg-sh.dat: New file.
13543 * regformats/regdef.h: New file.
13544 * regformats/regdat.sh: New file.
13545
13546 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13547
13548 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13549 (arm_frame_args_address, arm_frame_locals_address): New functions.
13550 (arm_frame_num_args): New function.
13551 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13552 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13553 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13554
13555 2002-01-31 Michael Snyder <msnyder@redhat.com>
13556
13557 * breakpoint.c (break_at_finish_command): Export.
13558 (break_at_finish_at_depth_command): Export.
13559 (tbreak_at_finish_command): Export.
13560 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13561 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13562 "txbreak" commands, which are HPPA specific.
13563
13564 * printcmd.c (disassemble_command): Remove an ancient
13565 artifact of an old merge.
13566
13567 * symfile.h (enum overlay_debugging_state):
13568 Define enum constant values for overlay mode.
13569 * symfile.c (overlay_debugging): Use enums instead of literals.
13570 (overlay_is_mapped, overlay_auto_command,
13571 overlay_manual_command): Ditto.
13572
13573 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13574 breakpoint_here_p, breakpoint_inserted_here_p,
13575 breakpoint_thread_match, bpstat_stop_status,
13576 describe_other_breakpoints, check_duplicates, clear_command):
13577 Coding standard fixes.
13578
13579 * target.c (target_xfer_memory): Add spaces, coding standard.
13580 (do_xfer_memory): Add missing line to trust-readonly
13581 code: check bfd SEC_READONLY flag for section.
13582
13583 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13584
13585 * PROBLEMS: Fix typo, 5.1->5.1.1.
13586
13587 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13588
13589 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13590 data symbols, since we search based on textlow and texthigh.
13591 (find_pc_sect_symtab): Likewise.
13592
13593 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13594
13595 * defs.h (vwarning): Declare.
13596 * utils.c (vwarning): New function.
13597 (warning): Call vwarning.
13598 (warning_begin): Delete function.
13599
13600 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13601 the warning message.
13602 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13603 warning_begin.
13604
13605 2002-01-30 Michael Snyder <msnyder@redhat.com>
13606
13607 * NEWS: Mention "set trust-readonly-sections" command.
13608 Mention generate-core-file command.
13609
13610 2002-01-15 Michael Snyder <msnyder@redhat.com>
13611
13612 * target.c: New command, "set trust-readonly-sections on".
13613 (do_xfer_memory): Honor the suggestion to trust readonly sections
13614 by reading them from the object file instead of from the target.
13615 (initialize_targets): Register command "set trust-readonly-sections".
13616
13617 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13618
13619 * parse.c (target_map_name_to_register): Simplify, search regs and
13620 pseudo-regs using a single loop.
13621
13622 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13623
13624 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13625
13626 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13627
13628 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13629 * config/i386/i386v42mp.mh: Add i387-nat.o .
13630 * i386v4-nat.c: Include i387-nat.h.
13631 (supply_fpregset): Use i387_supply_fsave.
13632 (fill_fpregset): Use i387_fill_fsave.
13633
13634 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13635
13636 * arm-tdep.c (arm_call_dummy_words): Define.
13637 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13638 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13639 (CALL_DUMMY_WORDS): Define.
13640 (arm_call_dummy_words): Declare.
13641 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13642 (arm_linux_call_dummy_words): Declare.
13643
13644 2002-01-30 Andreas Schwab <schwab@suse.de>
13645
13646 * m68klinux-nat.c: Fix last change to use regcache_collect
13647 instead of referencing registers[] directly.
13648
13649 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13650
13651 * parse.c (target_map_name_to_register): Delete code wrapped in
13652 #ifdef REGISTER_NAME_ALIAS_HOOK.
13653
13654 2002-01-28 Michael Snyder <msnyder@redhat.com>
13655
13656 * regcache.c (legacy_read_register_gen): Need to be able to
13657 read pseudo-register as well as real register.
13658 (legacy_write_register_gen): Ditto.
13659
13660 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13661
13662 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13663 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13664 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13665 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13666 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13667 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13668 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13669 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13670 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13671 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13672 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13673 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13674 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13675 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13676 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13677 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13678 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13679 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13680 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13681 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13682
13683 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13684
13685 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13686 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13687 (initialize_current_architecture): Update target_byte_order using
13688 information from BFD.
13689 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13690 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13691
13692 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13693
13694 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13695 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13696
13697 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13698 #ifdef INVALID_FLOAT.
13699 * infcmd.c (do_registers_info): Ditto.
13700 * values.c (unpack_double): Ditto. Add comment.
13701
13702 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13703 already commented out.
13704
13705 2002-01-26 Andreas Schwab <schwab@suse.de>
13706
13707 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13708 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13709 registers and add support for PTRACE_GETREGS.
13710
13711 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13712
13713 GDB 5.1.1 released from 5.1 branch.
13714 * NEWS: Add 5.1.1 news.
13715 * README: Sync with 5.1 branch.
13716
13717 2002-01-23 Fred Fish <fnf@redhat.com>
13718
13719 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13720 stabstring on initial malloc. Reallocing will copy it for us,
13721 if necessary.
13722
13723 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13724
13725 * Makefile.in (hpread_h): Delete.
13726 (HFILES_NO_SRCDIR): Remove hpread.h.
13727 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13728 (hpread.o): Update dependencies.
13729 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13730
13731 * hp-psymtab-read.c: Remove file.
13732 * hp-symtab-read.c: Remove file.
13733 * hpread.h: Remove file.
13734
13735 * hpread.c: Merge all contents of hp-psymtab-read.c,
13736 hp-symtab-read.c and hpread.h into this file, as it was prior to
13737 January 1999.
13738
13739 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13740 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13741 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13742 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13743
13744 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13745
13746 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13747 fill_gregset): Call gdbarch_tdep() just once, assign result to
13748 variable and use that, instead of calling the function several
13749 times.
13750
13751 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13752
13753 * configure.host: Accept sparcv9 as alias for sparc64.
13754 * configure.tgt: Likewise.
13755
13756 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13757
13758 * solib-aix5.c (build_so_list_from_mapfile)
13759 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13760 arguments is not reversed.
13761 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13762 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13763
13764 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13765
13766 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13767 modified version of obsolete sh_fetch_pseudo_register.
13768 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13769 (sh4_register_read): New function.
13770 (sh_pseudo_register_write): New function. Renamed and modified
13771 version of obsolete sh_store_pseudo_register.
13772 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13773 (sh4_register_write): New function.
13774 (sh_gdbarch_init): Remove setting of gdbarch function
13775 fetch_pseudo_register and store_pseudo_register. Remove setting of
13776 register_convert_to_raw, register_convert_to_virtual,
13777 register_convertible.
13778 (sh_sh4_register_convertible): Delete. No longer needed. All is
13779 taken care by architecture specific functions
13780 register_read/register_write.
13781 (sh_sh4_register_convert_to_virtual): Make static.
13782 (sh_sh4_register_convert_to_raw): Ditto.
13783
13784 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13785
13786 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13787 (floatformat_is_nan, floatformat_mantissa): Ditto.
13788
13789 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13790 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13791 builtin_type_ieee_double_little,
13792 builtin_type_ieee_double_littlebyte_bigword,
13793 builtin_type_m68881_ext, builtin_type_i960_ext,
13794 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13795 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13796 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13797 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13798
13799 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13800
13801 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13802 parameter. Set frameless flag if it exists and depended of
13803 whether the scanned function is frameless or not.
13804 (xstormy16_skip_prologue): If function is frameless, return
13805 result of xstormy16_scan_prologue().
13806 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13807 call.
13808
13809 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13810
13811 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13812 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13813 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13814 sh_sh4_register_byte, sh_sh4_register_raw_size,
13815 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13816 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13817 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13818 sh_store_pseudo_register, sh_do_pseudo_register): Call
13819 gdbarch_tdep() just once, assign result to variable and use that,
13820 instead of calling the function several times.
13821
13822 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13823
13824 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13825 macros instead of LAST_FPU_CTRL_REGNUM.
13826 (store_register): Likewise.
13827
13828 2002-01-21 Jim Blandy <jimb@redhat.com>
13829
13830 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13831 is up-to-date before running the program, not just when a program
13832 exits.
13833
13834 2002-01-21 Fred Fish <fnf@redhat.com>
13835
13836 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13837 when we have found all instructions we are looking for.
13838
13839 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13840
13841 * arm-tdep.c (arm_register_name): New function.
13842 (arm_registers_names): Make static.
13843 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13844 (arm_register_name): Declare.
13845 (REGISTER_NAME): Use it.
13846
13847 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13848 Kevin Buettner <kevinb@redhat.com>
13849
13850 Convert arm targets to new FRAME interface.
13851 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13852 (arm_frame_find_save_regs): Delete.
13853 (arm_frame_init_saved_regs): New.
13854 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13855 Allocate extra_info as required. Convert all uses of fsr.regs
13856 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13857 to use extra_info.
13858 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13859 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13860 (check_prologue_cache, save_prologue_cache): Likewise.
13861 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13862 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13863 (FRAME_FIND_SAVED_REGS): Delete.
13864 (arm_frame_find_saved_regs): Delete prototype.
13865 (arm_frame_init_saved_regs): New prototype.
13866 (FRAME_INIT_SAVED_REGS): Define.
13867
13868 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13869
13870 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13871
13872 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13873
13874 From Jeff Law <law@redhat.com>:
13875 * infttrace.c: Include <sys/pstat.h>.
13876 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13877 exec file if the ttrace equivalent fails.
13878
13879 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13880
13881 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13882 (closeLogFile): Ditto.
13883
13884 2002-01-20 Michael Chastain <mec@shout.net>
13885
13886 * top.c (print_gdb_version): Bump copyright year to 2002.
13887
13888 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13889
13890 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13891 Zannoni and Eli Zaretskii.
13892
13893 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13894
13895 * buildsym.c: Update copyright years.
13896 * c-typeprint.c: Likewise.
13897 * dwarf2read.c: Likewise.
13898 * f-typeprint.c: Likewise.
13899 * gdbtypes.c: Likewise.
13900 * gdbtypes.h: Likewise.
13901 * hp-symtab-read.c: Likewise.
13902 * hpread.c: Likewise.
13903 * mdebugread.c: Likewise.
13904 * p-typeprint.c: Likewise.
13905
13906 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13907
13908 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13909 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13910 byte-order selectable.
13911 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13912 * arch-utils.c: Ditto.
13913 (set_endian): Ditto.
13914 (set_endian_from_file): Ditto.
13915 * gdbserver/low-sim.c (create_inferior): Ditto.
13916 * gdbarch.sh: Ditto.
13917 * gdbarch.h: Re-generate.
13918 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13919 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13920 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13921 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13922 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13923 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13924 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13925 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13926 macro definition.
13927 * config/mips/tm-wince.h: Remove #undef of macro
13928 TARGET_BYTE_ORDER_SELECTABLE.
13929 * config/sh/tm-wince.h: Ditto.
13930
13931 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13932
13933 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13934 member function fields. Add accessor macro
13935 TYPE_FN_FIELD_ARTIFICIAL.
13936 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13937 * c-typeprint.c (c_type_print_base): Skip artificial member
13938 functions.
13939
13940 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13941
13942 * f-typeprint.c: Delete unused function f_type_print_args.
13943 * p-typeprint.c: Delete unused function pascal_type_print_args.
13944
13945 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13946
13947 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13948 comment. Add ``artificial'' to ``union field_location''.
13949
13950 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13951
13952 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13953 * mdebugread.c (parse_symbol): Likewise.
13954 * stabsread.c (define_symbol): Likewise.
13955 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13956 initializing TYPE_FIELD_BITPOS to n (obsolete).
13957 (hpread_doc_function_type): Likewise.
13958 * hpread.c (hpread_function_type): Likewise.
13959
13960 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13961
13962 * configure.in (host_makefile_frag): Only require a host makefile
13963 fragment when a native build.
13964 * configure: Re-generate.
13965
13966 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13967
13968 * doublest.h (floatformat_from_type): Declare.
13969 * doublest.c (floatformat_from_type): New function.
13970 (convert_typed_floating): Use.
13971
13972 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13973 call to function floatformat_from_type.
13974
13975 * gdbarch.sh (IEEE_FLOAT): Delete.
13976 * gdbarch.h, gdbarch.c: Re-generate.
13977 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13978 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13979 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13980 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13981 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13982 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13983 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13984 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13985 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13986 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13987 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13988 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13989
13990 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13991 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13992 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13993 * sh-tdep.c (sh_gdbarch_init): Ditto.
13994 * mips-tdep.c (mips_gdbarch_init): Ditto.
13995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13996 * cris-tdep.c (cris_gdbarch_init): Ditto.
13997
13998 2002-01-20 Jiri Smid <smid@suse.cz>
13999
14000 * configure.host, configure.tgt: Support x86-64.
14001 * NEWS: Note new target x86-64.
14002
14003 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14004 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14005 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14006 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14007 x86-64-linux-nat.o): Fix dependencies.
14008
14009 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14010
14011 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14012 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14013 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14014 * config/sparc/xm-sun4os4.h: Delete file.
14015 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14016
14017 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14018
14019 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14020 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14021 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14022 * config/i386/i386lynx.mh (XM_FILE): Delete.
14023 * config/rs6000/xm-rs6000ly.h: Delete file.
14024 * config/sparc/xm-sparclynx.h: Delete file.
14025 * config/m68k/xm-m68klynx.h: Delete file.
14026 * config/i386/xm-i386lynx.h: Delete file.
14027 * config/xm-lynx.h: Delete file.
14028 * config/djgpp/fnchange.lst: Update.
14029
14030 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14031
14032 * alpha-tdep.c (alpha_register_byte): New function.
14033 (alpha_register_raw_size): Ditto.
14034 (alpha_register_virtual_size): Ditto.
14035 (alpha_skip_prologue_internal): Renamed from
14036 alpha_skip_prologue.
14037 (alpha_skip_prologue): New version that calls
14038 alpha_skip_prologue_internal.
14039 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14040 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14041 second argument from alpha_skip_prologue.
14042 (REGISTER_BYTE): Use alpha_register_byte.
14043 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14044 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14045 (FRAMELESS_FUNCTION_INVOCATION): Use
14046 generic_frameless_function_invocation_not.
14047 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14048 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14049
14050 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14051
14052 * config/mips/xm-news-mips.h: Delete file.
14053 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14054
14055 * config/m88k/xm-m88k.h: Delete file.
14056 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14057 * config/m88k/xm-delta88v4.h: Ditto.
14058 * config/m88k/xm-delta88.h: Ditto.
14059
14060 * config/alpha/xm-fbsd.h: Delete file.
14061 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14062
14063 * config/sparc/xm-sparc.h: Delete file.
14064 * Makefile.in (xm-sun4os4.h): Delete dependency.
14065 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14066 * config/sparc/xm-sun4os4.h: Ditto.
14067 * config/sparc/xm-linux.h: Ditto.
14068
14069 * config/i386/xm-windows.h: Delete file.
14070
14071 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14072
14073 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14074 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14075
14076 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14077
14078 * alpha-tdep.c (alpha_call_dummy_words): New.
14079 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14080 (CALL_DUMMY_P): Define.
14081 (CALL_DUMMY_WORDS): Define.
14082 (SIZEOF_CALL_DUMMY_WORDS): Define.
14083
14084 2002-01-19 Per Bothner <per@bothner.com>
14085
14086 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14087 isn't NULL, which can happen with some gcj-3.x-produced code.
14088
14089 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14090
14091 * alpha-tdep.c (alpha_register_virtual_type): New function.
14092 (alpha_init_frame_pc_first): Ditto.
14093 (alpha_fix_call_dummy): Ditto.
14094 (alpha_store_struct_return): Ditto.
14095 (alpha_extract_struct_value_address): Ditto.
14096 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14097 alpha_register_virtual_type.
14098 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14099 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14100 alpha_extract_struct_value_address.
14101 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14102 (INIT_FRAME_PC): Use init_frame_pc_noop.
14103 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14104
14105 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14106
14107 * i386gnu-nat.c: Include "i386-tdep.h".
14108 (fetch_fpregs): Simplify code dealing with uninitialized floating
14109 point states such that it doesn't require FP7_REGNUM.
14110
14111 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14112
14113 * alpha-tdep.c (frame_extra_info): New.
14114 (alpha_find_saved_regs): Make static. Use
14115 frame->extra_info.
14116 (alpha_frame_init_saved_regs): New function.
14117 (alpha_frame_saved_pc): Use frame->extra_info.
14118 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14119 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14120 (init_extra_frame_info): Rename to...
14121 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14122 (alpha_print_extra_frame_info): New function.
14123 (alpha_frame_locals_address): Ditto.
14124 (alpha_frame_args_address): Ditto.
14125 (alpha_pop_frame): Use frame->extra_info.
14126 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14127 alpha_frame_args_address.
14128 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14129 (alpha_find_saved_regs): Remove prototype.
14130 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14131 (EXTRA_FRAME_INFO): Remove.
14132 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14133 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14134
14135 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14136
14137 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14138 (alpha_cannot_fetch_register): Ditto.
14139 (alpha_cannot_store_register): Ditto.
14140 (alpha_register_convertible): Ditto.
14141 (alpha_use_struct_convention): Ditto.
14142 * config/alpha/tm-alpha.h: Update copyright years.
14143 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14144 (INNER_THAN): Use core_addr_lessthan.
14145 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14146 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14147 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14148 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14149 (FRAME_CHAIN): Remove unnecessary cast.
14150
14151 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14152
14153 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14154 obsolete.
14155
14156 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14157
14158 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14159 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14160 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14161 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14162 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14163 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14164 * x86-64-linux-nat.c: Ditto.
14165
14166 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14167
14168 * alpha-tdep.c (alpha_register_name): New function.
14169 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14170 (REGISTER_NAME): Define.
14171
14172 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14173
14174 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14175
14176 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14177
14178 * alpha-tdep.c: Update copyright years.
14179 (alpha_next_pc): New function.
14180 (alpha_software_single_step): Ditto.
14181 * config/alpha/tm-alpha.h: Add prototype for
14182 alpha_software_single_step.
14183
14184 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14185
14186 * alphabsd-nat.c: Update copyright years.
14187 (fill_gregset): Use regcache_collect.
14188 (fill_fpregset): Likewise.
14189 (fetch_inferior_registers): Only fetch integer registers
14190 if requested to do so.
14191 (store_inferior_registers): Only store integer registers
14192 if requested to do so.
14193
14194 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14195
14196 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14197 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14198 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14199 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14200 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14201 * config/arm/linux.mh (XDEPFILES): Delete.
14202 * config/arm/nbsd.mh (XDEPFILES): Delete.
14203 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14204 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14205 * config/i386/i386m3.mh (XDEPFILES): Delete.
14206 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14207 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14208 * config/i386/fbsd.mh (XDEPFILES): Delete.
14209 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14210 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14211 * config/i386/i386v4.mh (XDEPFILES): Delete.
14212 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14213 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14214 * config/i386/i386aix.mh (XDEPFILES): Delete.
14215 * config/i386/go32.mh (XDEPFILES): Delete.
14216 * config/i386/cygwin.mh (XDEPFILES): Delete.
14217 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14218 * config/i386/i386mach.mh (XDEPFILES): Delete.
14219 * config/i386/i386v32.mh (XDEPFILES): Delete.
14220 * config/i386/linux.mh (XDEPFILES): Delete.
14221 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14222 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14223 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14224 * config/i386/i386sco.mh (XDEPFILES): Delete.
14225 * config/i386/i386v.mh (XDEPFILES): Delete.
14226 * config/i386/nbsd.mh (XDEPFILES): Delete.
14227 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14228 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14229 * config/i386/symmetry.mh (XDEPFILES): Delete.
14230 * config/i386/obsd.mh (XDEPFILES): Delete.
14231 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14232 * config/ia64/linux.mh (XDEPFILES): Delete.
14233 * config/ia64/aix.mh (XDEPFILES): Delete.
14234 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14235 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14236 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14237 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14238 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14239 * config/m68k/linux.mh (XDEPFILES): Delete.
14240 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14241 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14242 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14243 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14244 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14245 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14246 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14247 * config/m88k/delta88.mh (XDEPFILES): Delete.
14248 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14249 * config/m88k/m88k.mh (XDEPFILES): Delete.
14250 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14251 * config/mips/linux.mh (XDEPFILES): Delete.
14252 * config/mips/irix6.mh (XDEPFILES): Delete.
14253 * config/mips/irix5.mh (XDEPFILES): Delete.
14254 * config/mips/irix4.mh (XDEPFILES): Delete.
14255 * config/mips/irix3.mh (XDEPFILES): Delete.
14256 * config/mips/decstation.mh (XDEPFILES): Delete.
14257 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14258 (NATDEPFILES): Move core-aout.o to here.
14259 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14260 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14261 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14262 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14263 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14264 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14265 * config/pa/hpux11.mh (XDEPFILES): Delete.
14266 * config/powerpc/aix.mh (XDEPFILES): Delete.
14267 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14268 * config/powerpc/linux.mh (XDEPFILES): Delete.
14269 * config/romp/rtbsd.mh: Rename XDEPFILES.
14270 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14271 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14272 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14273 * config/s390/s390.mh (XDEPFILES): Delete.
14274 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14275 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14276 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14277 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14278 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14279 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14280 * config/sparc/linux.mh (XDEPFILES): Delete.
14281 * config/vax/vaxult.mh (XDEPFILES): Delete.
14282 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14283 * Makefile.in (DEPFILES): Remove XDEPFILES.
14284
14285 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14286
14287 * utils.c (internal_verror): Fix comments, default is yes not no.
14288 Update queries to match. Default to quit and dump core.
14289
14290 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14291
14292 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14293 copyright.
14294 * defs.h, event-top.c, gdbcmd.h: Ditto.
14295 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14296 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14297 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14298 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14299 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14300 * mi/mi-main.c:Ditto.
14301
14302 * stack.c, symfile.c: Update copyright.
14303
14304 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14305
14306 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14307 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14308 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14309 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14310
14311 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14312
14313 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14314 * gdbserver/low-lynx.c (myattach): Likewise.
14315 * gdbserver/low-nbsd.c (myattach): Likewise.
14316 * gdbserver/low-sim.c (myattach): Likewise.
14317 * gdbserver/low-sparc.c (myattach): Likewise.
14318 * gdbserver/low-sun3.c (myattach): Likewise.
14319
14320 * gdbserver/low-linux.c (myattach): New function.
14321
14322 * gdbserver/server.c (attach_inferior): New function.
14323 (main): Handle "--attach".
14324
14325 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14326
14327 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14328 maintainer.
14329
14330 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14331
14332 * c-typeprint.c (is_type_conversion_operator): Add additional
14333 check for non-conversion operators.
14334
14335 2002-01-15 Michael Snyder <msnyder@redhat.com>
14336
14337 * linux-proc.c: Add "info proc" command, a la procfs.c.
14338 (read_mapping): New function, abstract and re-use code.
14339 (linux_find_memory_regions): Use new func read_mapping.
14340 (linux_info_proc_cmd): New function, implement "info proc".
14341 (_initialize_linux_proc): Add new command "info proc".
14342
14343 2002-01-15 Michael Snyder <msnyder@redhat.com>
14344
14345 * symfile.c (generic_load): Use bfd_map_over_sections method
14346 instead of manipulating bfd structure members directly.
14347 (add_section_size_callback): New function, bfd sections callback
14348 used by generic_load.
14349 (load_sections_callback): New function, bfd sections callback
14350 used by generic_load.
14351
14352 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14353
14354 [Based on work by Jim Blandy]
14355 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14356 (builtin_type_vec128): Export.
14357 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14358 types.
14359 (builtin_type_vec128): New builtin type for 128 bit vector
14360 registers.
14361 (build_gdbtypes): Initialize builtin_type_v16qi and
14362 builtin_type_v8hi. Create the vec128 register builtin type
14363 structure.
14364 (build_builtin_type_vec128): New function.
14365 (_initialize_gdbtypes): Register builtin_type_v16qi and
14366 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14367 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14368 AltiVec register to new builtin type.
14369
14370 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14371
14372 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14373 to make_cv_type.
14374
14375 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14376
14377 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14378 CLEAN_UP_REGISTER_VALUE.
14379 * regcache.c (supply_register): Update only call.
14380
14381 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14382
14383 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14384 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14385 a29k-*-vxworks* targets as obsolete.
14386
14387 2002-01-14 Michael Snyder <msnyder@redhat.com>
14388
14389 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14390 until we can resolve portability issues.
14391 * gregset.h: Remove references to fpxregs.
14392 * gcore.c (gcore_command): Initialize note_sec to NULL.
14393
14394 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14395
14396 * signals.c (target_signal_to_name): Rewrite. Only use
14397 signals[].name when in bounds and non-NULL.
14398
14399 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14400
14401 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14402 * signals.c (target_signal_to_name): Verify that SIG is within the
14403 bounds of the signals array.
14404
14405 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14406
14407 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14408
14409 2002-01-13 Keith Seitz <keiths@redhat.com>
14410
14411 * stack.c (print_frame_info_base): Print the frame's pc
14412 only if when print_frame_info_listing_hook is not defined.
14413
14414 2002-01-13 Keith Seitz <keiths@redhat.com>
14415
14416 * varobj.c (varobj_set_value): Make sure that there were no
14417 errors evaluating the object before attempting to set its
14418 value.
14419 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14420 so this offset adjustment is no longer necessary.
14421 (create_child): Don't set the error flag if the child is
14422 a CPLUS_FAKE_CHILD.
14423 (value_of_child): If value_fetch_lazy fails, return NULL
14424 so that callers will be notified that an error occurred.
14425 (c_value_of_variable): Delay check of variable's validity
14426 until later. We actually want all structs and unions to have
14427 the value "{...}".
14428 Do not return "???" for variables which could not be evaluated.
14429 This error condition must be returned to the caller so that it
14430 can get the error condition from gdb.
14431 (cplus_name_of_child): Adjust index for vptr before figuring
14432 out the name of the child.
14433 (cplus_value_of_child): If a child's (real) parent is not valid,
14434 don't even bother trying to give a value for it. Just return
14435 an error. Change all instances in this function.
14436 (cplus_type_of_child): If our parent is one of the "fake"
14437 parents, we need to get at the type of the real parent, and
14438 derive the child's true type using this information.
14439
14440 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14441
14442 From 2002-01-09 John Marshall <johnm@falch.net>:
14443 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14444 sources.redhat.com, and tweak some related URLs which had
14445 suffered from linkrot.
14446
14447 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14448
14449 From Jeff law:
14450 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14451 structures passed in registers.
14452
14453 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14454
14455 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14456 white space which prevented compilation. Reported by DSK
14457 <dsk@student.unsw.edu.au>.
14458
14459 2002-01-11 Michael Snyder <msnyder@redhat.com>
14460
14461 * symfile.c (build_section_addr_info_from_section_tab):
14462 Use bfd access method instead of manipulating bfd directly.
14463 (syms_from_objfile): Ditto.
14464 (simple_overlay_update_1): Ditto.
14465 (simple_overlay_update): Ditto.
14466 (generic_load): Ditto.
14467 (overlay_unmapped_address): FIXME comment, bfd access methods.
14468 (sections_overlap): FIXME comment, bfd access methods.
14469 (pc_in_mapped_range): FIXME comment, bfd access methods.
14470 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14471 (section_is_mapped): FIXME comment, bfd access methods.
14472 (section_is_overlay): FIXME comment, bfd access methods.
14473
14474 * symfile.c (generic_load): Whitespace and long line cleanups.
14475 Remove duplicate variable, change several local variables to
14476 more appropriate data types.
14477 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14478
14479 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14480
14481 From Peter Schauer:
14482 * language.c (longest_local_hex_string_custom): Use phex_nz to
14483 convert NUM to a hex string.
14484
14485 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14486
14487 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14488 the function.
14489 Update Copyright year.
14490
14491 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14492
14493 * language.c (longest_raw_hex_string): Delete unused function.
14494
14495 2002-01-11 Petr Sorfa <petrs@caldera.com>
14496
14497 * MAINTAINERS (write-after-approval): Add myself.
14498 * dwarf2read.c (read_tag_string_type): Handling of
14499 DW_AT_byte_size.
14500 (read_tag_string_type): FORTRAN fix to prevent propagation of
14501 first string size.
14502 (set_cu_language): Handling of DW_LANG_Fortran95
14503
14504 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14505
14506 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14507 GETPID(inferior_ptid).
14508 (store_inferior_registers): Likewise.
14509
14510 2002-01-10 Jason Merrill <jason@redhat.com>
14511
14512 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14513 Fix DW_OP_minus.
14514
14515 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14516
14517 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14518 and bfd/elf32-sh-nbsd.c.
14519
14520 2002-01-10 Michael Snyder <msnyder@redhat.com>
14521
14522 * NEWS: Mention --pid and corefile/proc-id behavior change.
14523
14524 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14525 * gcore.c: Include cli/cli-decode.h instead of command.h.
14526
14527 * main.c (captured_main): Add new command line option "--pid".
14528 If the second command line argument (following the symbol-file)
14529 begins with a digit, try to attach to it before trying to open
14530 it as a corefile.
14531 (print_gdb_help): Document the "--pid" argument.
14532
14533 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14534
14535 * completer.c (command_completer): New function.
14536
14537 * completer.h <command_completer>: Add prototype.
14538
14539 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14540 completer for the "help" command.
14541
14542 2002-01-09 Jason Merrill <jason@redhat.com>
14543
14544 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14545
14546 2002-01-09 Michael Snyder <msnyder@redhat.com>
14547
14548 * i386-linux-nat.c (fill_fpxregset): Make global.
14549 (store_fpxregset): Ditto.
14550
14551 * gregset.h (gdb_fpxregset_t): Define.
14552 (supply_fpxregset): Prototype.
14553 (fill_fpxregset): Prototype.
14554
14555 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14556
14557 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14558
14559 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14560 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14561 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14562
14563 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14564
14565 * MAINTAINERS: Update target maintainer rules so that any
14566 Maintainer can approve a tested patch for a maintenance-only
14567 target.
14568
14569 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14570
14571 * MAINTAINERS (write-after-approval): Add myself.
14572
14573 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14574 IN_SIGTRAMP.
14575
14576 2002-01-08 Michael Snyder <msnyder@redhat.com>
14577
14578 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14579 real name of the executable, rather than the /proc name.
14580
14581 2002-01-03 Michael Snyder <msnyder@redhat.com>
14582
14583 Implement a "generate-core-file" command in gdb, save target state.
14584 * gcore.c: New file. Implement new command 'generate-core-file'.
14585 Save a corefile image of the current state of the inferior.
14586 * linux-proc.c: Add linux-specific code for saving corefiles.
14587 * target.h (struct target_ops): Add new target vectors for saving
14588 corefiles; to_find_memory_regions and to_make_corefile_notes.
14589 (target_find_memory_regions): New macro.
14590 (target_make_corefile_notes): New macro.
14591 * target.c (update_current_target): Inherit new target methods.
14592 (dummy_find_memory_regions): New place-holder method.
14593 (dummy_make_corefile_notes): New place-holder method.
14594 (init_dummy_target): Initialize new dummy target vectors.
14595 * exec.c (exec_set_find_memory_regions): New function.
14596 Allow the exec_ops vector for memory regions to be taken over.
14597 (exec_make_note_section): New function, target vector method.
14598 * defs.h (exec_set_find_memory_regions): Export prototype.
14599 * procfs.c (proc_find_memory_regions): New function, corefile method.
14600 (procfs_make_note_section): New function, corefile method.
14601 (init_procfs_ops): Set new target vector pointers.
14602 (find_memory_regions_callback): New function.
14603 (procfs_do_thread_registers): New function.
14604 (procfs_corefile_thread_callback): New function.
14605 * sol-thread.c (sol_find_memory_regions): New function.
14606 (sol_make_note_section): New function.
14607 (init_sol_thread_ops): Initialize new target vectors.
14608 * inftarg.c (inftarg_set_find_memory_regions): New function.
14609 Allow to_find_memory_regions vector to be taken over.
14610 (inftarg_set_make_corefile_notes): New function.
14611 Allow to_make_corefile_notes vector to be taken over.
14612 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14613 interface layer if not target_has_execution (may be a corefile).
14614 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14615 * config/sparc/sun4sol2.mh: Ditto.
14616 * config/alpha/alpha-linux.mh: Ditto.
14617 * config/arm/linux.mh: Ditto.
14618 * config/i386/x86-64linux.mh: Ditto.
14619 * config/ia64/linux.mh: Ditto.
14620 * config/m68k/linux.mh: Ditto.
14621 * config/mips/linux.mh: Ditto.
14622 * config/powerpc/linux.mh: Ditto.
14623 * config/sparc/linux.mh: Ditto.
14624
14625 2002-01-07 Michael Snyder <msnyder@redhat.com>
14626
14627 * arm-linux-nat.c: Remove references to regcache.c internal data
14628 (registers[] and register_valid[]).
14629
14630 2002-01-07 Michael Snyder <msnyder@redhat.com>
14631
14632 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14633 so that attaching to a pid will automatically read the process's
14634 symbol file and shlibs.
14635 * Makefile.in: Add rule for linux-proc.o.
14636 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14637 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14638 * config/arm/linux.mh: Ditto.
14639 * config/i386/linux.mh: Ditto.
14640 * config/i386/x86-64linux.mh: Ditto.
14641 * config/ia64/linux.mh: Ditto.
14642 * config/m68k/linux.mh: Ditto.
14643 * config/mips/linux.mh: Ditto.
14644 * config/powerpc/linux.mh: Ditto.
14645 * config/sparc/linux.mh: Ditto.
14646
14647 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14648
14649 * win32-nat.c: Add i386-tdep.h dependency.
14650
14651 2002-01-07 Michael Snyder <msnyder@redhat.com>
14652
14653 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14654 instead of bfd_get_arch_size. Don't bail out just because
14655 there's no exec_bfd.
14656
14657 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14658 * p-valprint.c (pascal_object_print_value): Ditto.
14659 * somread.c (som_symtab_read): Ditto.
14660 * symfile.c (simple_free_overlay_region_table): Ditto.
14661 * valops.c (value_assign): Ditto.
14662
14663 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14664 use tilde_expand and strerror for opening save-tracepoints file.
14665
14666 * thread-db.c (thread_db_new_objfile): Indendation fix.
14667
14668 * infptrace.c (GDB_MAX_ALLOCA): New define.
14669 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14670 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14671 can be overridden with whatever value is appropriate to the host).
14672 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14673 alloca to allocate potentially large buffer.
14674 * rs6000-nat.c (child_xfer_memory): Ditto.
14675 * symm-nat.c (child_xfer_memory): Ditto.
14676 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14677
14678 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14679
14680 From Nick Clifton <nickc@redhat.com>
14681 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14682
14683 2002-01-07 Michael Snyder <msnyder@redhat.com>
14684
14685 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14686 Don't use exec_bfd if it's NULL.
14687
14688 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14689
14690 * valops.c (value_arg_coerce): Fix formatting.
14691
14692 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14693
14694 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14695 * gnu-nat.c: Ditto.
14696
14697 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14698
14699 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14700 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14701 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14702 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14703 z8k-coff have not been multi-arched. Update z8k-coff build
14704 status.
14705
14706 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14707
14708 * MAINTAINERS: Mark a29k target as obsolete.
14709 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14710 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14711 comments.
14712 * NEWS: Note that a29k targets are obsolete.
14713 * a29k-tdep.c: Mark as obsolete.
14714 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14715 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14716 a29k-*-vxworks* targets as obsolete.
14717 * remote-adapt.c: Obsolete.
14718 * remote-eb.c: Obsolete.
14719 * remote-mm.c: Obsolete.
14720 * remote-udi.c: Obsolete.
14721 * config/a29k/a29k-udi.mt: Obsolete.
14722 * config/a29k/a29k.mt: Obsolete.
14723 * config/a29k/tm-a29k.h: Obsolete.
14724 * config/a29k/tm-vx29k.h: Obsolete.
14725 * config/a29k/vx29k.mt: Obsolete.
14726
14727 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14728
14729 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14730 with BFD_ENDIAN_BIG.
14731
14732 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14733
14734 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14735 * configure, config.in: Re-generate.
14736 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14737 * defs.h: Do not include <endian.h>.
14738
14739 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14740
14741 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14742 * config.in: Regenerate.
14743 * configure.in: Update copyright years.
14744 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14745 * configure: Regenerate.
14746 * i386bsd-nat.c: Update copyright years.
14747 (fill_gregset): Use regcache_collect.
14748 (fetch_inferior_registers): Only fetch integer registers
14749 if requested to do so. Add support for XMM registers
14750 using PT_GETXMMREGS.
14751 (store_inferior_registers): Only store integer registers
14752 if requested to do so. Add support for XMM registers
14753 using PT_SETXMMREGS.
14754 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14755 (store_inferior_registers): Remove.
14756 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14757 (fetch_elfcore_registers): New function.
14758 (i386nbsd_elfcore_fns): New.
14759 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14760 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14761 i386bsd-nat.o.
14762 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14763 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14764 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14765 * config/i386/tm-nbsd.h: Update copyright years.
14766 (HAVE_SSE_REGS): Define.
14767 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14768 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14769 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14770 (SIGCONTEXT_PC_OFFSET): Remove.
14771 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14772
14773 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14774
14775 * configure.tgt: Remove powerpc-*-macos* target.
14776 * config/m68k/xm-mpw.h: Delete file.
14777 * config/xm-mpw.h: Delete file.
14778 * ser-mac.c: Delete file.
14779 * mpw-make.sed: Delete file.
14780 * mpw-config.in: Delete file.
14781 * mac-xdep.c: Delete file.
14782 * mac-gdb.r: Delete file.
14783 * mac-defs.h: Delete file.
14784 * mac-nat.c: Delete file.
14785 * config/powerpc/macos.mh: Delete file.
14786 * config/powerpc/macos.mt: Delete file.
14787 * config/powerpc/nm-macos.h: Delete file.
14788 * config/powerpc/tm-macos.h: Delete file.
14789 * source.c (openp, open_source_file): Remove obsolete code.
14790 * top.c (gdb_readline): Ditto.
14791 * utils.c (query): Ditto.
14792 * event-top.c (display_gdb_prompt): Ditto.
14793 * Makefile.in (ser-mac.o): Delete obsolete target.
14794 * NEWS: Update.
14795
14796 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14797
14798 * defs.h (BIG_ENDIAN): Delete macro definition.
14799 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14800 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14801 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14802 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14803 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14804 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14805 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14806 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14807 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14808 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14809 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14810 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14811 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14812 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14813 * gdbarch.c: Re-generate.
14814
14815 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14816
14817 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14818 for core files.
14819
14820 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14821
14822 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14823
14824 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14825
14826 * value.h (value_ptr): Delete typedef.
14827
14828 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14829
14830 * i386nbsd-nat.c: Update copyright years.
14831 Include i386-tdep.h.
14832
14833 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14834
14835 * stabsread.c: Update copyright years.
14836
14837 From Debashis Mahata <debashis.mahata@wipro.com>:
14838 (read_struct_fields): Deal with Sun C compiler erroneous stab
14839 output for structs and unions.
14840 Fix PR gdb/269.
14841
14842 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14843
14844 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14845 prototype.
14846
14847 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14848
14849 * cp-abi.c: Fix whitespace.
14850 (baseclass_offset): New wrapper function.
14851 * cp-abi.h (baseclass_offset): Add prototype.
14852 (struct cp_abi_ops): Add baseclass_offset pointer.
14853
14854 * valops.c (vb_match): Move to...
14855 * gnu-v2-abi.c (vb_match): here.
14856 * valops.c (baseclass_offset): Move to...
14857 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14858
14859 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14860
14861 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14862 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14863 * hpacc-abi.c (init_hpacc_ops): Likewise.
14864
14865 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14866
14867 * valops.c (find_overload_match): Accept obj as a
14868 reference parameter. Update it before returning.
14869 * value.h (find_overload_match): Update prototype.
14870 * eval.c (evaluate_subexp_standard): Pass object to
14871 find_overload_match by reference.
14872
14873 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14874
14875 * valarith.c: Replace value_ptr with struct value pointer. Remove
14876 register attribute from value declarations.
14877 * valops.c: Ditto.
14878 * value.h: Ditto.
14879 * scm-lang.c (scm_lookup_name): Ditto.
14880
14881 2002-01-03 Michael Snyder <msnyder@redhat.com>
14882
14883 Abstract the functionality of iterating over mapped memory
14884 regions into a general purpose iterator function.
14885 * procfs.c (iterate_over_mappings): New function, general purpose
14886 iterator for memory sections.
14887 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14888 (solib_mappings_callback): New function, callback for above.
14889 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14890 (info_mappings_callback): New function, callback for above.
14891
14892 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14893
14894 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14895
14896 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14897 * i386-tdep.c: Include "elf-bfd.h".
14898 (process_note_abi_tag_sections): New function.
14899 (i386_gdbarch_init): Add code to recognize various OS/ABI
14900 combinations.
14901
14902 * maint.c (_initialize_maint_cmds): Add missing \ in
14903 string-literal.
14904
14905 For older changes see ChangeLog-2001
14906 \f
14907 Local Variables:
14908 mode: change-log
14909 left-margin: 8
14910 fill-column: 74
14911 version-control: never
14912 End:
This page took 0.326423 seconds and 5 git commands to generate.