* doc/fdl.texi: Revert the last change.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
2
3 * doc/fdl.texi: Revert the last change.
4
5 2002-12-29 Mark Kettenis <kettenis@gnu.org>
6
7 * tracepoint.c (ISATTY): Removed.
8
9 2002-12-26 J. Brobecker <brobecker@gnat.com>
10
11 Continuing work to convert the hppa targets to multiarch partil.
12
13 * hppa-tdep.c: Add some missing forward declarations.
14 (frameless_function_invocation): Prefix the function name
15 by "hppa_" to avoid polluting the namespace. Update all calls
16 to use the new function name.
17 (saved_pc_after_call): Ditto.
18 (init_extra_frame_info): Ditto.
19 (frame_chain): Ditto.
20 (push_dummy_frame): Ditto.
21 (target_read_pc): Ditto.
22 (target_write_pc): Ditto.
23 (in_solib_call_trampoline): Ditto.
24 (in_solib_return_trampoline): Ditto.
25 (skip_trampoline_code): Ditto.
26 (hppa_read_fp): New function, renamed from target_read_fp.
27 (hppa_target_read_fp): New function, using hppa_read_fp.
28 This function conforms to the function profile for the
29 READ_FP gdbarch method.
30 (hppa_extract_struct_value_address): New function, extracted
31 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
32 macro.
33 (hppa_frame_num_args): New function.
34 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
35
36 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
37 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
38 for the switch to multiarch partial.
39 Update some of the macros definitions to match some changes
40 described above in the name of the function they are calling.
41 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
42 not be straightforward to convert. Do now wrap it inside
43 "#if !... #endif" to remember that this macro has still not
44 been taken care of.
45 (FIX_CALL_DUMMY): Likewise.
46
47 2002-12-26 J. Brobecker <brobecker@gnat.com>
48
49 Continuing work to convert the hppa targets to multiarch partial.
50
51 * hppa-tdep.c (hppa_register_raw_size): New function replacing
52 the body of macro REGISTER_RAW_SIZE.
53 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
54 config/pa/tm-hppah.h. These functions will be used to initialize
55 the gdbarch structure.
56 (hppa_hpux_pc_in_sigtramp): New function.
57 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
58 (hppa_hpux_frame_base_before_sigtramp): New function.
59 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
60 Add gdbcore.h #include.
61 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
62 of this gdbarch-eligible macro to a call to the new associated
63 function.
64 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
65 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
66 into a call to the new associated function.
67 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
68 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
69 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
70
71 2002-12-24 David Carlton <carlton@math.stanford.edu>
72
73 * config/sparc/tm-sparc.h: Delete duplicate definition of
74 DEPRECATED_PC_IN_CALL_DUMMY.
75
76 2002-12-24 Kevin Buettner <kevinb@redhat.com>
77
78 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
79 $(gdb_assert_h).
80 * configure.tgt: Recognize mips64*-*-linux*.
81 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
82 (supply_32_bit_reg): New function.
83 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
84 (fill_gregset): Use regcache_collect() instead of
85 deprecated_registers[].
86 (register_addr): Change name to mips_linux_register_addr().
87 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
88 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
89 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
90 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
91 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
92 (MIPS64_LINUX_JB_PC): New defines.
93 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
94 (mips64_elf_fpregset_t): New typedefs.
95 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
96 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
97 (mips64_linux_register_addr, set_mips_linux_register_addr)
98 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
99 (init_register_addr_data)
100 New functions.
101 (fetch_core_registers): Add support for core file formats with 64-bit
102 registers.
103 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
104 (register_addr_data): New static global variable.
105 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
106 gdbarch_register_osabi() for each MIPS machine.
107 * config/mips/linux64.mt: New file.
108 * config/mips/tm-linux64.h: New file.
109
110 2002-12-23 Adam Fedor <fedor@gnu.org>
111
112 * maint.c (maintenance_demangle): Add switch to demangle
113 ObjC language symbols as well.
114
115 2002-12-23 Adam Fedor <fedor@gnu.org>
116
117 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
118 last argument from complaint function call.
119
120 2002-12-23 Kevin Buettner <kevinb@redhat.com>
121
122 * exec.c (print_section_info): Add FIXME comments regarding format
123 string choices.
124
125 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
126
127 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
128 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
129
130 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
131
132 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
133
134 2002-12-23 David Carlton <carlton@math.stanford.edu>
135
136 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
137 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
138 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
139 information associated to a minsym, not lookup_symbol.
140
141 2002-12-21 Mark Kettenis <kettenis@gnu.org>
142
143 * x86-64-tdep.h (x86_64_init_abi): New prototype.
144 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
145 (x86_64_init_abi): Make non-static. Set number of pseudo
146 registers to 0.
147 (x86_64_gdbarch_init): Remove function.
148 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
149 Remove code dealing with dissambly.
150 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
151 (_initialize_x86_64_linux_tdep): New function.
152 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
153 i386-tdep.o.
154
155 2002-12-14 Mark Kettenis <kettenis@gnu.org>
156
157 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
158 (struct gdb_osabi_handler): Remove member `arch'. Add member
159 `arch_info'.
160 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
161 construct a `struct bfd_arch_info' and store it in the `struct
162 gdb_osabi_handler' that is created.
163 (gdbarch_init_osabi): Check for compatibility based on machine
164 type and architecture.
165 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
166 comment.
167 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
168 second argument in call to gdbarch_register_osabi.
169 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
170 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
171 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
172 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
173 * arm-tdep.c (_initialize_arm_tdep): Likewise.
174 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
175 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
176 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
177 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
178 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
179 * i386-tdep.c (_initialize_i386_tdep): Likewise.
180 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
181 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
182 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
183 _initialize_i386bsd_tdep and updated likewise.
184 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
185 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
186 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
187 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
188 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
189 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
190 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
191 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
192 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
193 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
194
195 2002-12-20 Kevin Buettner <kevinb@redhat.com>
196
197 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
198 DT_MIPS_RLD_MAP case for 64-bit targets.
199
200 2002-12-20 Kevin Buettner <kevinb@redhat.com>
201
202 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
203 ``temp_saved_regs'', not the pointer or other storage contiguous
204 to this pointer.
205
206 2002-12-20 Kevin Buettner <kevinb@redhat.com>
207
208 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
209 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
210 (mips_linux_get_longjmp_target): Delete declarations.
211 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
212 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
213 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
214 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
215 (mips_linux_get_longjmp_target)
216 (mips_linux_svr4_fetch_link_map_offsets): Make static.
217 (mips_linux_init_abi): New function.
218 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
219
220 2002-12-19 Keith Seitz <keiths@redhat.com>
221
222 patch committed by Elena Zannoni <ezannoni@redhat.com>
223 * thread.c (do_captured_list_thread_ids): Call prune_threads and
224 target_find_new_threads. Fix for PR mi/669.
225
226 2002-12-19 David Carlton <carlton@math.stanford.edu>
227
228 * linespec.c (decode_line_1): Move code into decode_all_digits.
229 (decode_all_digits): New function.
230
231 2002-12-19 Kevin Buettner <kevinb@redhat.com>
232
233 * exec.c (print_section_info): Select a format string to use with
234 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
235
236 2002-12-18 Andrew Cagney <ac131313@redhat.com>
237
238 * frame.c (deprecated_update_current_frame_pc_hack): Replace
239 deprecated_update_current_frame_pc_hack.
240 (deprecated_update_frame_base_hack): New function.
241 * frame.h (deprecated_update_frame_pc_hack): Replace
242 (deprecated_update_frame_base_hack): Declare.
243 * infrun.c (normal_stop): Update.
244
245 2002-12-18 Andrew Cagney <ac131313@redhat.com>
246
247 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
248 frame_extra_info_zalloc.
249 (rs6000_frame_args_address): Use get_frame_extra_info.
250 (frame_get_saved_regs): Use get_frame_saved_regs.
251 (frame_initial_stack_address): Use get_frame_saved_regs and
252 get_frame_extra_info.
253 (frame_initial_stack_address): Use get_frame_extra_info.
254
255 2002-12-17 Kevin Buettner <kevinb@redhat.com>
256
257 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
258 array size.
259 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
260 checks for r3900_regnames[].
261
262 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
263
264 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
265 All uses changed
266 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
267
268 2002-12-17 David Carlton <carlton@math.stanford.edu>
269
270 * symtab.c (lookup_partial_symbol): Don't search past the end of
271 the partial symbols.
272
273 2002-12-17 Andrew Cagney <ac131313@redhat.com>
274
275 * stack.c (frame_info): Use get_frame_saved_regs.
276 * breakpoint.c (until_break_command): Use get_frame_pc.
277
278 2002-12-16 Kevin Buettner <kevinb@redhat.com>
279
280 * buildsym.c (block_end_complaint, anon_block_end_complaint)
281 (innerblock_complaint, innerblock_anon_complaint)
282 (blockvector_complaint): Delete deprecated complaint structs.
283 (finish_block, make_blockvector, end_symtab): Replace calls
284 to complain() with calls to complaint().
285 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
286 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
287 (unexpected_type_complaint, bad_sclass_complaint)
288 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
289 Delete deprecated complaint structs.
290 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
291 Replace calls to complain() with calls to complaint().
292 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
293 (unknown_symtype_complaint, unknown_symchar_complaint)
294 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
295 (lbrac_mismatch_complaint, repeated_header_complaint)
296 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
297 Delete deprecated complaint structs.
298 (unknown_symtype_complaint, lbrac_mismatch_complaint)
299 (repeated_header_complaint)
300 (function_outside_compiliation_unit_complaint): New functions.
301 (add_old_header_file, find_corresponding_bincl_psymtab)
302 (set_namestring, find_stab_function_addr, read_dbx_symtab)
303 (process_one_symbol): Replace calls to complain() with, possibly
304 indirect, calls to complaint().
305 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
306 (unknown_attribute_form, unknown_attribute_length)
307 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
308 (const_ignored, botched_modified_type, op_deref2, op_deref4)
309 (basereg_not_handled, dup_user_type_allocation)
310 (dup_user_type_definition, missing_tag, bad_array_element_type)
311 (subscript_data_items, unhandled_array_subscript_format)
312 (unknown_array_subscript_format, not_row_major)
313 (missing_at_name): Delete deprecated complaint structs.
314 (bad_die_ref_complaint, unknown_attribute_form_complaint)
315 (dup_user_type_definition_complaint)
316 (bad_array_element_type_complaint): New functions.
317 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
318 (decode_subscript_data_item, dwarf_read_array_type)
319 (read_tag_string_type, read_subroutine_type, read_func_scope)
320 (locval, scan_partial_symbols, decode_modified_type)
321 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
322 (attribute_size): Replace calls to complain() with, possibly
323 indirect, calls to complaint().
324 * elfread.c (section_info_complaint, section_info_dup_complaint)
325 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
326 Delete deprecated complaint structs.
327 (elf_symtab_read, elfstab_offset_sections): Replace calls to
328 complain() with calls to complaint().
329 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
330 struct.
331 (stub_noname_complaint): New function.
332 (check_typedef, add_mangled_type): Replace calls to complain()
333 with calls to complaint().
334 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
335 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
336 (hpread_unhandled_type_complaint, hpread_struct_complaint)
337 (hpread_array_complaint, hpread_type_lookup_complaint)
338 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
339 (hpread_unhandled_common_complaint)
340 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
341 struct definitions and declarations.
342 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
343 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
344 Replace calls to complain() with, possibly indirect, calls to
345 complaint().
346 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
347 Likewise.
348 * mdebugread.c (bad_file_number_complaint, index_complaint)
349 (aux_index_complaint, block_index_complaint)
350 (unknown_ext_complaint, unknown_sym_complaint)
351 (unknown_st_complaint, block_overflow_complaint)
352 (basic_type_complaint, unknown_type_qual_complaint)
353 (array_index_type_complaint, bad_tag_guess_complaint)
354 (block_member_complaint, stEnd_complaint)
355 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
356 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
357 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
358 (bad_continued_complaint, bad_rfd_entry_complaint)
359 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
360 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
361 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
362 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
363 complaint structs.
364 (index_complaint, unknown_ext_complaint, basic_type_complaint)
365 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
366 (unexpected_type_code_complaint)
367 (function_outside_compilation_unit_complaint): New functions.
368 (parse_symbol, parse_type, upgrade_type, parse_procedure)
369 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
370 Replace calls to complain() with, possibly indirect calls to
371 complaint().
372 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
373 Delete deprecated complaint structs.
374 (lookup__objc_class, lookup_child_selector): Replace complain()
375 with complaint().
376 * remote-vx.c (cant_contact_target): Delete deprecated complaint
377 struct.
378 (vx_lookup_symbol): Replace complain() with complaint().
379 * stabsread.c (invalid_cpp_abbrev_complaint)
380 (invalid_cpp_type_complaint, member_fn_complaint)
381 (const_vol_complaint, error_type_complaint)
382 (invalid_member_complaint, range_type_base_complaint)
383 (reg_value_complaint, vtbl_notfound_complaint)
384 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
385 (unresolved_sym_chain_complaint, stabs_general_complaint)
386 (lrs_general_complaint, multiply_defined_struct): Delete
387 deprecated complaint structs.
388 (invalid_cpp_abbrev_complaint, ref_value_complaint)
389 (stabs_general_complaint, lrs_general_complaint)
390 (msg_unknown_complaint): New functions.
391 (dbx_lookup_type, read_cfront_baseclasses)
392 (read_cfront_member_functions, resolve_symbol_reference)
393 (define_symbol, resolve_live_range, add_live_range, read_type)
394 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
395 (read_one_struct_field, read_baseclasses, read_tilde_fields)
396 (read_cfront_static_fields, attach_fields_to_type)
397 (complain_about_struct_wipeout, read_range_type)
398 (common_block_start, common_block_end, cleanup_undefined_types)
399 (scan_file_globals): Replace complain() with complaint().
400 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
401 Delete deprecated complaint struct declarations.
402 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
403 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
404 (bf_not_found_complaint, ef_complaint, eb_complaint)
405 (function_outside_compilation_unit_complaint): New functions.
406 (record_include_begin, record_include_end, enter_line_range)
407 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
408 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
409 complain() with complaint().
410
411 2002-12-16 Andrew Cagney <ac131313@redhat.com>
412
413 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
414 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
415 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
416 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
417 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
418 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
419 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
420 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
421 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
422 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
423 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
424 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
425 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
426 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
427 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
428 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
429 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
430 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
431 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
432 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
433 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
434 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
435 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
436 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
437 * config/m88k/xm-dgux.h: Delete.
438 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
439 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
440 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
441 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
442 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
443 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
444 * ch-valprint.c: Delete.
445
446 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
447
448 * infrun.c (handle_inferior_event): Rearrange code to resume if
449 no catchpoint triggers for an event.
450
451 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
452
453 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
454 and TARGET_WAITKIND_VFORKED cases.
455
456 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
457
458 * infrun.c (handle_inferior_event): Assume that catchpoints
459 are not affected by DECR_PC_AFTER_BREAK.
460
461 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
462
463 * target.c (update_current_target): Don't inherit DONT_USE.
464 * target.h (struct target_ops): Remove DONT_USE.
465 (target_next): Remove macro.
466
467 2002-12-15 Mark Kettenis <kettenis@gnu.org>
468
469 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
470
471 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
472
473 * arm-tdep.c (convert_from_extended): New argument to hold the
474 type of floating point result we want to convert to. Make input
475 argument const. Fix all callers.
476 (convert_to_extended): Similarly.
477 (arm_extract_return_value): Now takes a regcache argument. Change
478 code to use regcache accessor functions. Correctly extract
479 smaller-than-word results on big-endian machines.
480 (arm_store_return_value): Now takes a regcache argument. Change
481 code to use regcache accessor functions. Correctly zero/sign extend
482 smaller than word results before storing into r0.
483 (arm_gdbarch_init): Register new-style extract_return_value and
484 store_return_value functions.
485
486 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
487
488 * thread-db.c (thread_from_lwp): Uniquify error msg.
489 (lwp_from_thread): Ditto.
490 (check_event): Ditto.
491 (find_new_threads_callback): Ditto.
492 (thread_db_pid_to_str): Ditto.
493
494 2002-12-13 Andrew Cagney <ac131313@redhat.com>
495
496 * frame.h (get_frame_saved_regs): Declare.
497 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
498 pointer.
499 * frame.c (get_frame_saved_regs): New function.
500 (frame_saved_regs_zalloc): Return the allocated saved_regs.
501
502 2002-12-13 Andrew Cagney <ac131313@redhat.com>
503
504 * frame.c (deprecated_update_current_frame_pc_hack): New
505 function.
506 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
507 * infrun.c (normal_stop): Use said function instead of directly
508 modifying the frame's PC.
509
510 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
511
512 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
513
514 2002-12-13 Kevin Buettner <kevinb@redhat.com>
515
516 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
517 config/mips/tm-irix6.h (NUM_REGS): Delete.
518 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
519 (temp_saved_regs): Declare as a pointer rather than an array.
520 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
521 that ``temp_saved_regs'' has storage allocated to it and that
522 it's the correct size.
523
524 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
525
526 * defs.h (init_last_source_visited): New prototype.
527 (add_path): Ditto.
528 * source.c (add_path): New function that adds to a specified path.
529 (mod_path): Change to call add_path.
530 (init_last_source_visited): New function to allow interfaces to
531 initialize static variable: last_source_visited. Part of fix
532 for PR gdb/741.
533 * Makefile.in: Add support for mi/mi-cmd-env.c.
534
535 2002-12-13 Andrew Cagney <ac131313@redhat.com>
536
537 * frame.h (frame_id_unwind): Declare.
538 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
539 id_unwind_cache.
540 (frame_id_unwind_ftype): Declare.
541 * frame.c (frame_id_unwind): New function.
542 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
543 (create_new_frame, get_prev_frame): Pass id_unwind to
544 set_unwind_by_pc.
545 (frame_saved_regs_id_unwind): New function.
546 (frame_saved_regs_id_unwind): New function.
547 * dummy-frame.c (dummy_frame_id_unwind): New function.
548 (struct dummy_frame): Add field id.
549 (generic_push_dummy_frame): Initialize `id'.
550 * dummy-frame.h (dummy_frame_id_unwind): Declare.
551
552 2002-12-13 Andrew Cagney <ac131313@redhat.com>
553
554 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
555 pass that to set_momentary_breakpoint. Move comments to where they
556 belong.
557 * frame.h (set_current_frame): Delete declaration.
558 * frame.c (set_current_frame): Delete function.
559
560 2002-12-13 Andrew Cagney <ac131313@redhat.com>
561
562 * frame.c (frame_extra_info_zalloc): New function.
563 * frame.h (frame_extra_info_zalloc): Declare.
564
565 2002-12-13 Joel Brobecker <brobecker@gnat.com>
566
567 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
568 in the previous prototype change to set_momentary_breakpoint.
569
570 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
571
572 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
573 and saw_child_exec.
574 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
575 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
576 (stop_stepping): Remove outdated check for child vfork events.
577
578 2002-12-12 Andrew Cagney <ac131313@redhat.com>
579
580 * GDB 5.3 released from gdb_5_3-branch.
581
582 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
583
584 * corelow.c (init_core_ops): Delete references to to_require_attach
585 and to_require_detach.
586 * exec.c (init_exec_ops): Likewise.
587 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
588 hppa_require_detach directly.
589 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
590 * inftarg.c (child_detach): Remove.
591 (child_detach_from_process): Rename to child_detach, remove
592 after_fork argument.
593 (child_attach): Remove.
594 (child_attach_to_process): Rename to child_attach, remove after_fork
595 argument.
596 (init_child_ops): Delete references to to_require_attach
597 and to_require_detach.
598 * infttrace.c (hppa_require_attach): Update comment.
599 * target.c (cleanup_target, update_current_target)
600 (init_dummy_target, setup_target_debug): Delete references to
601 to_require_attach and to_require_detach.
602 (find_default_require_detach, find_default_require_attach)
603 (debug_to_require_attach, debug_to_require_detach): Remove
604 functions.
605 * target.h (struct target_ops): Remove to_require_attach
606 and to_require_detach.
607 (target_require_attach, target_require_detach): Delete macros.
608 (find_default_require_detach, find_default_require_attach): Delete
609 prototypes.
610 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
611
612 2002-12-11 Andrew Cagney <ac131313@redhat.com>
613
614 * frame.c (get_frame_extra_info): New function.
615 * frame.h (get_frame_extra_info): Declare.
616
617 2002-12-11 Andrew Cagney <ac131313@redhat.com>
618
619 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
620 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
621 with `struct frame_id'.
622 (set_longjmp_resume_breakpoint): Ditto.
623 * infrun.c (handle_inferior_event): Update.
624 * breakpoint.c (watch_command_1, until_break_command): Update.
625 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
626 (handle_inferior_event, step_over_function): Update.
627 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
628 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
629 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
630 * infcmd.c (finish_command, run_stack_dummy): Update.
631
632 2002-12-11 Kevin Buettner <kevinb@redhat.com>
633
634 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
635 (dwarf2_non_const_array_bound_ignored)
636 (dwarf2_missing_line_number_section)
637 (dwarf2_statement_list_fits_in_line_number_section)
638 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
639 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
640 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
641 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
642 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
643 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
644 (dwarf2_missing_member_fn_type_complaint)
645 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
646 (dwarf2_const_value_length_mismatch)
647 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
648 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
649 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
650 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
651 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
652 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
653 complaints using deprecated struct..
654 (dwarf2_non_const_array_bound_ignored_complaint)
655 (dwarf2_complex_location_expr_complaint)
656 (dwarf2_unsupported_at_frame_base_complaint)
657 (dwarf2_const_value_length_mismatch_complaint)
658 (dwarf2_macros_too_long_complaint)
659 (dwarf2_macro_malformed_definition_complaint)
660 (dwarf2_invalid_attrib_class_complaint): New functions.
661 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
662 (read_structure_scope, read_array_type, read_common_block)
663 (read_tag_pointer_type, read_base_type, read_partial_die)
664 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
665 (new_symbol, dwarf2_const_value, read_type_die)
666 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
667 (parse_macro_definition, dwarf_decode_macros): Replace calls to
668 complain() with, possibly indirect, calls to complaint().
669
670 2002-12-11 Andrew Cagney <cagney@redhat.com>
671
672 * frame.c (deprecated_get_frame_saved_regs): Rename
673 get_frame_saved_regs.
674 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
675 * sparc-tdep.c: Update.
676 * hppa-tdep.c: Update.
677 * h8500-tdep.c: Update.
678
679 2002-12-11 Kevin Buettner <kevinb@redhat.com>
680
681 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
682 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
683 ``char *'' for return and parameter types.
684 * gdbarch.h, gdbarch.c: Regenerate.
685 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
686 return type from ``char *'' to ``const char *''.
687 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
688 const.
689
690 2002-12-11 Mark Kettenis <kettenis@gnu.org>
691
692 * i386-tdep.c: Include "dummy-frame.h".
693 (i386_frame_chain, i386_frame_saved_pc): Replace
694 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
695 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
696
697 2002-12-10 Andrew Cagney <cagney@redhat.com>
698
699 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
700 Change to a function with predicate.
701 * gdbarch.h, gdbarch.c: Re-generate.
702 * frame.c (get_prev_frame): Update. Test
703 DEPRECATED_INIT_FRAME_PC_P.
704 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
705 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
706 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
707 * alpha-tdep.c (alpha_gdbarch_init): Update.
708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
709 * mips-tdep.c (mips_gdbarch_init): Update.
710 * i386-interix-tdep.c (i386_interix_init_abi): Update.
711 * arm-tdep.c: Update comments.
712 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
713 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
714 * frv-tdep.c (frv_gdbarch_init): Ditto.
715 * x86-64-tdep.c (x86_64_init_abi): Ditto.
716 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
717 * s390-tdep.c (s390_gdbarch_init): Ditto.
718 * v850-tdep.c (v850_gdbarch_init): Ditto.
719 * vax-tdep.c (vax_gdbarch_init): Ditto.
720 * sh-tdep.c (sh_gdbarch_init): Ditto.
721 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
723 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
725 * i386-tdep.c (i386_gdbarch_init): Ditto.
726 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
727 * cris-tdep.c (cris_gdbarch_init): Ditto.
728 * avr-tdep.c (avr_gdbarch_init): Ditto.
729 * arm-tdep.c (arm_gdbarch_init): Ditto.
730 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
731 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
732
733 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
734
735 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
736 CHILD_FOLLOW_FORK.
737 * hppah-nat.c (saved_vfork_pid): Add.
738 (child_post_follow_vfork): Remove.
739 (child_follow_fork): New function.
740 (child_wait): Call detach_breakpoints after receiving the child vfork.
741 Call child_resume directly instead of going through resume ().
742 Make sure we have the exec before reporting the vfork.
743 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
744 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
745 (follow_fork): New function. Call target_follow_fork.
746 (follow_inferior_reset_breakpoints): New function broken out from
747 old follow_inferior_fork.
748 (resume): Remove hack to follow exec after vfork.
749 * inftarg.c (child_post_follow_vfork): Remove.
750 (child_follow_fork): New function.
751 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
752 * target.c (cleanup_target): Replace to_post_follow_vfork with
753 to_follow_fork.
754 (update_current_target): Likewise.
755 (setup_target_debug): Likewise.
756 (debug_to_post_follow_vfork): Remove.
757 (debug_to_follow_fork): New function.
758 * target.h (struct target_ops): Replace to_post_folow_vfork with
759 to_follow_fork.
760 (child_post_follow_vfork): Remove prototype.
761 (child_follow_fork): Add prototype.
762 (target_post_follow_vfork): Remove macro.
763 (target_follow_fork): Add macro.
764
765 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
766
767 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
768 (child_post_follow_vfork): Cancel pending exec event if we follow
769 the parent.
770 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
771 events have been processed. Return a fake TARGET_WAITKIND_EXECD
772 event at the following wait call if necessary.
773 * infrun.c (follow_vfork): Don't follow_exec here.
774 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
775 case about HP/UX 10.20. Remove code pushed down to
776 hppah-nat.c:child_wait.
777 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
778 vfork_in_flight is set.
779
780 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
781
782 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
783 for the parent's fork event.
784 * infrun.c (handle_inferior_event): Only expect one fork event.
785 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
786 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
787
788 2002-12-10 Andrew Cagney <ac131313@redhat.com>
789
790 * PROBLEMS: Delete reference to PR gdb/725.
791
792 * MAINTAINERS (gdb.c++): Add David Carlton.
793
794 2002-12-09 David Carlton <carlton@math.stanford.edu>
795
796 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
797 * cli/cli-cmds.c: Ditto.
798
799 2002-12-09 Andrew Cagney <cagney@redhat.com>
800
801 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
802 function address in <>.
803 * gdbarch.c: Re-generate.
804
805 2002-12-09 David Carlton <carlton@math.stanford.edu>
806
807 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
808
809 2002-12-09 David Carlton <carlton@math.stanford.edu>
810
811 * linespec.c (symtab_from_filename): New function.
812 (decode_line_1): Move code into symtab_from_filename.
813
814 2002-12-09 Kevin Buettner <kevinb@redhat.com>
815
816 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
817
818 2002-12-07 Andrew Cagney <ac131313@redhat.com>
819
820 * f-valprint.c (info_common_command): Use get_frame_pc.
821 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
822 * ax-gdb.c (agent_command): Ditto.
823 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
824 (rs6000_pop_frame): Ditto.
825 (rs6000_frameless_function_invocation): Ditto.
826 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
827 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
828 * macroscope.c (default_macro_scope): Ditto.
829 * stack.c (print_frame_info_base): Ditto.
830 (print_frame, frame_info, print_frame_label_vars): Ditto.
831 (return_command, func_command, get_frame_language): Ditto.
832 * infcmd.c (finish_command): Ditto.
833 * dummy-frame.c (cached_find_dummy_frame): Ditto.
834 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
835 (break_at_finish_at_depth_command_1): Ditto.
836 (break_at_finish_command_1): Ditto.
837 (until_break_command, get_catch_sals): Ditto.
838 * blockframe.c (func_frame_chain_valid): Ditto.
839 (frameless_look_for_prologue): Ditto.
840 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
841
842 2002-12-08 Andrew Cagney <ac131313@redhat.com>
843
844 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
845 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
846
847 2002-12-08 Andrew Cagney <ac131313@redhat.com>
848
849 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
850 to pure functions.
851 * gdbarch.h, gdbarch.c: Re-generate.
852 * frame.c (get_prev_frame): Explictly assign prev's pc with value
853 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
854
855 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
856 declaration to a function returning a CORE_ADDR.
857 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
858 * arch-utils.c (init_frame_pc_noop): Return the PC value.
859 (init_frame_pc_default): Ditto.
860 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
861 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
862 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
863 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
864 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
865 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
866
867 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
868 to init_frame_pc_noop.
869 (i386_interix_init_frame_pc): Delete function.
870 * z8k-tdep.c (init_frame_pc): Delete function.
871 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
872 (INIT_FRAME_PC_FIRST): Ditto.
873 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
874 (INIT_FRAME_PC_FIRST): Ditto.
875 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
876 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
877 init_frame_pc_noop.
878 (INIT_FRAME_PC_FIRST): Convert to an expression.
879 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
880
881 2002-12-08 Andrew Cagney <ac131313@redhat.com>
882
883 * blockframe.c: Use get_frame_base instead of directly accessing
884 the `struct frame_info' member frame.
885 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
886 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
887
888 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
889
890 * Makefile.in (readline_h): Define.
891 (completer.o): Depend on readline_h.
892 (corelow.o): Ditto.
893 (event-top.o): Ditto.
894 (exec.o): Ditto.
895 (solib.o): Ditto.
896 (source.o): Ditto.
897 (symfile.o): Ditto.
898 (symmisc.o): Ditto.
899 (top.o): Ditto.
900 (tracepoint.o): Ditto.
901 (utils.o): Ditto.
902 (cli-dump.o): Ditto.
903 (tui-hooks.o): Ditto.
904 (tuiWin.o): Ditto.
905
906 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
907
908 More cleanup from import of readline 4.3.
909 * completer.h (complete_line, readline_line_completion_function):
910 Update prototypes.
911 (line_completion_function): Removed, not used outside of completer.c.
912 * completer.c (readline_line_completion_function,
913 complete_function, line_completion_function): Use const for first
914 parameter.
915 (line_completion_function): Make static.
916 (filename_completer): filename_completion_function is now called
917 rl_filename_completion_function
918 * corelow.c: Include <readline/readline.h>.
919 * exec.c: Ditto.
920 * solib.c: Ditto.
921 * source.c: Ditto.
922 * symfile.c: Ditto.
923 * symmisc.c: Ditto.
924 * top.c (init_main): No need to coerce
925 readline_line_completion_function anymore.
926 * cli/cli-dump.c: Include <readline/readline.h>.
927
928 2002-12-08 Andrew Cagney <ac131313@redhat.com>
929
930 * stack.c (frame_info): Use get_prev_frame.
931 * blockframe.c (frame_address_in_block): Ditto.
932 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
933 (rs6000_frameless_function_invocation): Ditto.
934 (rs6000_frame_saved_pc): Ditto.
935 (rs6000_frame_chain): Ditto.
936 * arch-utils.c (init_frame_pc_default): Ditto.
937
938 2002-12-08 Andrew Cagney <ac131313@redhat.com>
939
940 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
941 Delete redundant definition.
942
943 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
944
945 Import of readline 4.3:
946 * cli/cli-cmds.c: Include readline/tilde.h.
947 * cli/cli-setshow.c: Ditto.
948 * defs.h: Don't declare tilde_expand anymore, since readline
949 exports it.
950
951 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
952
953 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
954 -Werror on this file.
955
956 2002-12-07 Andrew Cagney <ac131313@redhat.com>
957
958 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
959 the format name.
960 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
961 * gdbarch.c: Regenerate.
962
963 2002-12-06 Andrew Cagney <ac131313@redhat.com>
964
965 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
966 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
967 provide a default value.
968 * gdbarch.h, gdbarch.c: Regenerate.
969 * frame.c (get_prev_frame): Update. Check
970 DEPRECATED_INIT_FRAME_PC_FIRST_P.
971 * s390-tdep.c (s390_gdbarch_init): Update.
972 * mips-tdep.c (mips_gdbarch_init): Update.
973 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
974 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
975 * alpha-tdep.c (alpha_gdbarch_init): Update.
976
977 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
978
979 * ia64-linux-nat.c: Include gdb_string.h.
980 * alpha-nat.c: Ditto.
981 * ppc-linux-nat.c: Ditto.
982 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
983 Update dependencies.
984
985 2002-12-05 Andrew Cagney <ac131313@redhat.com>
986
987 * gdbthread.h: Include "frame.h".
988 (struct thread_info): Replace step_frame_address with
989 step_frame_id.
990 * inferior.h: Include "frame.h".
991 (step_frame_id): Replace external variable step_frame_address.
992 * gdbthread.h (save_infrun_state): Replace step_frame_address
993 parameter with step_frame_id parameter.
994 (load_infrun_state): Ditto.
995 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
996 * infcmd.c (step_frame_id, step_1, step_once): Update.
997 * thread.c (load_infrun_state, save_infrun_state): Update.
998 * infrun.c (clear_proceed_status, save_inferior_status): Update.
999 (handle_inferior_event, step_over_function): Update.
1000 (normal_stop, context_switch, restore_inferior_status): Update.
1001 (struct inferior_status): Replace step_frame_address with
1002 step_frame_id.
1003
1004 2002-12-05 David Carlton <carlton@math.stanford.edu>
1005
1006 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1007 DW_TAG_member as well as a declaration as being a C++ static data
1008 member.
1009 (read_structure_scope): Combine tests for DW_TAG_member and
1010 DW_TAG_variable.
1011
1012 2002-12-05 David Carlton <carlton@math.stanford.edu>
1013
1014 * linespec.c (decode_compound): New function.
1015 (decode_line_1): Move code into decode_compound.
1016
1017 2002-12-05 David Carlton <carlton@math.stanford.edu>
1018
1019 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1020 argument.
1021 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1022 the static block. See PR gdb/804.
1023
1024 2002-12-05 David Carlton <carlton@math.stanford.edu>
1025
1026 * symtab.c (lookup_symbol_aux_block): New function.
1027 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1028
1029 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1030
1031 * gdbarch.sh: Dump the predicate function and macro values.
1032 (read): Print error on standard error.
1033 * gdbarch.c: Regenerate.
1034
1035 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1036
1037 * Makefile.in (mips_tdep_h): Define.
1038 (mips-tdep.o): Add mips_tdep_h to dependency list.
1039 * mips-tdep.h: New file.
1040 * mips-tdep.c (mips-tdep.h): Include.
1041 (enum mips_abi): Move to mips-tdep.h.
1042 (mips_abi): New function.
1043
1044 2002-12-04 David Carlton <carlton@math.stanford.edu>
1045
1046 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1047
1048 2002-12-04 David Carlton <carlton@math.stanford.edu>
1049
1050 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1051 function.
1052 (lookup_symbol_aux_minsyms): New function.
1053
1054 2002-12-04 J. Brobecker <brobecker@gnat.com>
1055
1056 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1057
1058 2002-12-04 J. Brobecker <brobecker@gnat.com>
1059
1060 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1061 which is an obsolete macro name.
1062
1063 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1064
1065 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1066 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1067
1068 2002-12-03 H.J. Lu (hjl@gnu.org)
1069
1070 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1071 (create_breakpoints): Make sure the addr_string field is not
1072 NULL.
1073
1074 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1075
1076 * sparc-nat.c (fetch_inferior_registers)
1077 (store_inferior_registers): Add comment on problem of LWP vs
1078 threads.
1079
1080 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1081 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1082 (lin_lwp_store_registers): Remove.
1083 (init_lin_lwp_ops): Use fetch_inferior_registers
1084 and store_inferior_registers directly.
1085 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1086 (store_inferior_registers): Likewise.
1087 Fix PR gdb/725.
1088
1089 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1090
1091 * frame.h (get_frame_id): Convert to a function.
1092 (null_frame_id, frame_id_p): Declare.
1093 (frame_id_eq, frame_id_inner): Declare.
1094 (frame_id_build): New function.
1095 * frame.c (get_frame_id): Update. Use null_frame_id.
1096 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1097 frame_id_inner.
1098 (null_frame_id, frame_id_p): Define.
1099 (frame_id_eq, frame_id_inner): Define.
1100 (frame_id_build): New function.
1101 * varobj.c (varobj_create): Update.
1102 (varobj_update): Update.
1103 * valops.c (value_assign): Update.
1104 (new_root_variable): Update.
1105 * infrun.c (save_inferior_status): Update.
1106 * breakpoint.c (watch_command_1): Update.
1107
1108 2002-12-03 J. Brobecker <brobecker@gnat.com>
1109
1110 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1111 (SNAP2): Likewise.
1112
1113 2002-12-03 Andrew Cagney <cagney@redhat.com>
1114
1115 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1116 patch.
1117
1118 * PROBLEMS: Mention PR gdb/725.
1119
1120 2002-12-03 Andreas Schwab <schwab@suse.de>
1121
1122 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1123
1124 2002-12-02 Adam Fedor <fedor@gnu.org>
1125 Klee Dienes <kdienes@apple.com>
1126
1127 * objc-lang.c (objc_printstr): Add width arg to match
1128 printstr prototype.
1129 (compare_selectors): Add 'const' to arg types.
1130 (compare_classes): Likewise.
1131 (find_imps): Cast msym pointer to avoid compiler warning.
1132 (print_object_command): Validate the address before
1133 passing it to the print routine.
1134 (find_objc_msgcall_submethod): Change function argument to
1135 return an int.
1136 * objc-lang.h: Add 'extern' to all function declarations.
1137 (value_nsstring): Add declaration.
1138
1139 2002-12-02 J. Brobecker <brobecker@gnat.com>
1140
1141 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1142 Fixes a build failure on HP/UX.
1143
1144 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1145 failure on HP/UX.
1146 (hpread_has_name): Advance declaration to avoid a compilation warning.
1147 (pst_syms_count): Add missing variable type. By change, the compiler
1148 was defaulting to int, which seems a good choice. Fixes a compilation
1149 warning.
1150 (pst_syms_size): Likewise.
1151
1152 2002-12-02 J. Brobecker <brobecker@gnat.com>
1153
1154 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1155 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1156 later to set the proper gdbarch methods depending on the osabi.
1157 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1158
1159 2002-12-02 J. Brobecker <brobecker@gnat.com>
1160
1161 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1162 * osabi.c (gdb_osabi_name): Add strings images for the two new
1163 enum values.
1164 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1165
1166 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1167
1168 * MAINTAINERS (Java): Global maintainers are responible for Java.
1169 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1170 part Java maintainers.
1171
1172 2002-12-02 J. Brobecker <brobecker@gnat.com>
1173
1174 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1175 Fixes a compilation failure on AiX.
1176
1177 2002-12-02 J. Brobecker <brobecker@gnat.com>
1178
1179 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1180 why aix-thread.o is not listed.
1181
1182 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1183
1184 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1185 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1186 * gdbarch.h, gdbarch.c: Re-generate.
1187 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1188 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1189 * config/pa/tm-hppa.h, frame.h: Update.
1190 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1191 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1192 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1193 * cris-tdep.c, alpha-tdep.c: Update.
1194 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1195 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1196 (get_prev_frame): Ditto.
1197
1198 2002-11-30 Andrew Cagney <cagney@redhat.com>
1199
1200 * exec.c (xfer_memory): Replace boolean with int.
1201 * p-exp.y: Use 0 instead of false.
1202 * corelow.c (gdb_check_format): Change return type to int from
1203 boolean.
1204 * utils.c: Don't include <curses.h> or <term.h> first.
1205
1206 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1207
1208 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1209 (m68hc11_register_byte): Remove.
1210 (m68hc11_gdbarch_init): Don't set the above.
1211
1212 2002-11-29 Andrew Cagney <cagney@redhat.com>
1213
1214 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1215 by calling get_selected_frame.
1216 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1217 set_current_frame, create_new_frame, select_frame and
1218 get_current_frame.
1219 * remote-e7000.c (e7000_start_remote): Ditto.
1220 * remote-mips.c (common_open): Ditto
1221 * remote-rdp.c (remote_rdp_open): Ditto.
1222
1223 2002-11-29 Andreas Schwab <schwab@suse.de>
1224
1225 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1226 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1227 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1228 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1229 read_memory_unsigned_integer instead of read_memory_integer when
1230 dealing with addresses and instruction opcodes.
1231 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1232 (m68k_linux_frame_saved_pc): Likewise.
1233
1234 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1235
1236 * stack.c (selected_frame, select_frame): Move from here ...
1237 * frame.c (selected_frame, select_frame): ... to here. Include
1238 "language.h".
1239 * Makefile.in (frame.o): Update dependencies.
1240 * frame.c (get_selected_frame): New function.
1241 * frame.h (get_selected_frame): Declare.
1242 (deprecated_selected_frame): Rename selected_frame.
1243 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1244 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1245 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1246 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1247 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1248 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1249 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1250 * z8k-tdep.c, cli/cli-cmds.c: Update.
1251
1252 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1253
1254 * frame.h (get_selected_block): Add comments.
1255
1256 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1257
1258 * frame.c (pc_notcurrent): New function.
1259 (find_frame_sal): New function.
1260 * frame.h (find_frame_sal): Declare.
1261 (struct symtab_and_line): Add opaque declaration.
1262 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1263 find_pc_line.
1264 (frame_info): Ditto.
1265 * ada-lang.c (find_printable_frame): Ditto.
1266
1267 2002-11-28 J. Brobecker <brobecker@gnat.com>
1268
1269 * configure.in: Check that the pthdebug library is recent enough
1270 before enabling thread support on native AiX.
1271 * configure: Regenerate.
1272
1273 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1274 from the list of object files as it is now appended by configure
1275 if thread support is enabled.
1276 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1277 if thread support is enabled.
1278
1279 2002-11-28 Andrew Cagney <cagney@redhat.com>
1280
1281 * stack.c (get_selected_block): In-line get_current_block.
1282 * frame.h (get_current_block): Delete declaration.
1283 * blockframe.c (get_current_block): Delete function.
1284
1285 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1286
1287 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1288 USE_GENERIC_DUMMY_FRAMES.
1289 * gdbarch.h, gdbarch.c: Regenerate.
1290 * valops.c, frame.c: Update.
1291 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1292 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1293 * config/pa/tm-hppa.h, blockframe.c: Update.
1294 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1295 * m68k-tdep.c, alpha-tdep.c: Ditto.
1296
1297 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1298 * mips-tdep.c: Ditto.
1299
1300 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1301
1302 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1303 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1304 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1305 * gdbarch.c, gdbarch.h: Re-generate.
1306 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1307 (CALL_DUMMY_LOCATION): Delete macro definition.
1308 (PC_IN_CALL_DUMMY): Delete macro definitions.
1309
1310 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1311 default is already generic_pc_in_call_dummy.
1312 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1313 * v850-tdep.c (v850_gdbarch_init): Ditto.
1314 * sh-tdep.c (sh_gdbarch_init): Ditto.
1315 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1316 * mips-tdep.c (mips_gdbarch_init): Ditto.
1317 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1319 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1320 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1321 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1322 * avr-tdep.c (avr_gdbarch_init): Ditto.
1323
1324 * arm-tdep.c (arm_gdbarch_init): Do not set
1325 use_generic_dummy_frames, default is already 1.
1326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1327 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1328 * v850-tdep.c (v850_gdbarch_init): Ditto.
1329 * sh-tdep.c (sh_gdbarch_init): Ditto.
1330 * s390-tdep.c (s390_gdbarch_init): Ditto.
1331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1332 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1333 * mips-tdep.c (mips_gdbarch_init): Ditto.
1334 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1336 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1337 * i386-tdep.c (i386_gdbarch_init): Ditto.
1338 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1339 * frv-tdep.c (frv_gdbarch_init): Ditto.
1340 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1341 * cris-tdep.c (cris_gdbarch_init): Ditto.
1342 * avr-tdep.c (avr_gdbarch_init): Ditto.
1343
1344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1345 call_dummy_location, default is already AT_ENTRY_POINT.
1346 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1347 * v850-tdep.c (v850_gdbarch_init): Ditto.
1348 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1349 * sh-tdep.c (sh_gdbarch_init): Ditto.
1350 * s390-tdep.c (s390_gdbarch_init): Ditto.
1351 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1352 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1353 * mips-tdep.c (mips_gdbarch_init): Ditto.
1354 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1356 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1357 * i386-tdep.c (i386_gdbarch_init): Ditto.
1358 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1359 * frv-tdep.c (frv_gdbarch_init): Ditto.
1360 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1361 * cris-tdep.c (cris_gdbarch_init): Ditto.
1362 * avr-tdep.c (avr_gdbarch_init): Ditto.
1363 * arm-tdep.c (arm_gdbarch_init): Ditto.
1364 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1365
1366 2002-11-28 Andrew Cagney <cagney@redhat.com>
1367
1368 * frame.h: Update comments on set_current_frame, create_new_frame,
1369 flush_cached_frames, reinit_frame_cache, select_frame and
1370 selected_frame.
1371
1372 2002-11-27 Andrew Cagney <cagney@redhat.com>
1373
1374 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1375 deprecated pc_in_call_dummy function.
1376 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1377 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1378 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1379 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1380 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1381
1382 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1383
1384 * Makefile.in: Remove Tix dependencies.
1385 * acinclude.m4: Ditto.
1386 * aclocal.m4: Ditto.
1387 * configure.in: Ditto.
1388 * configure: Regenerated.
1389
1390 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1391
1392 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1393 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1394 * gdbarch.c: Re-generate.
1395
1396 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1397
1398 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1399 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1400 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1401 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1402 pc_in_call_dummy_at_entry_point.
1403 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1404 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1405 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1406 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1407 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1408 pc_in_call_dummy_on_stack.
1409 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1410 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1411 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1412 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1413 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1414
1415 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1416
1417 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1418 pc_in_call_dummy_before_text_end
1419 (deprecated_pc_in_call_dummy_after_text_end): Rename
1420 pc_in_call_dummy_after_text_end.
1421 (deprecated_pc_in_call_dummy_on_stack): Rename
1422 pc_in_call_dummy_on_stack.
1423 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1424 pc_in_call_dummy_at_entry_point.
1425 * m68k-tdep.c (m68k_gdbarch_init): Update.
1426 * s390-tdep.c (s390_gdbarch_init): Update.
1427 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1428 * vax-tdep.c (vax_gdbarch_init): Update.
1429 * sparc-tdep.c (sparc_gdbarch_init): Update.
1430 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1432 * i386-tdep.c (i386_gdbarch_init): Update.
1433 * frv-tdep.c (frv_gdbarch_init): Update.
1434 * cris-tdep.c (cris_gdbarch_init): Update.
1435 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1436 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1437 (deprecated_pc_in_call_dummy_after_text_end)
1438 (deprecated_pc_in_call_dummy_on_stack)
1439 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1440 * alpha-tdep.c (alpha_gdbarch_init): Update.
1441
1442 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1443
1444 * acconfig.h (HAVE_PREAD64): Add.
1445 * configure.in: Check for pread64.
1446 * config.in: Regenerated.
1447 * configure: Regenerated.
1448 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1449 * linux-proc.c (linux_proc_xfer_memory): New function.
1450 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1451
1452 2002-11-25 David Carlton <carlton@math.stanford.edu>
1453
1454 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1455 pdi's with no name.
1456
1457 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1458
1459 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1460 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1461
1462 2002-11-25 Jim Blandy <jimb@redhat.com>
1463
1464 * symfile.c (init_objfile_sect_indices): New function.
1465 (default_symfile_offsets): Move the section-index-initializing
1466 stuff into init_objfile_sect_indices, and call that.
1467
1468 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1469 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1470
1471 * symfile.c (syms_from_objfile): Adjust indentation.
1472
1473 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1474 || info_verbose isn't true.
1475
1476 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1477
1478 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1479 default to get_frame_base.
1480 * gdbarch.h, gdbarch.c: Regenerate.
1481 * arch-utils.c (default_frame_address): Delete function.
1482 * arch-utils.h (default_frame_address): Delete declaration
1483
1484 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1485
1486 * varobj.c (find_frame_addr_in_frame_chain):
1487 Use get_frame_base instead of FRAME_FP,
1488 obvious fix.
1489
1490 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1491
1492 * frame.h (FRAME_FP): Delete macro.
1493 (get_frame_base): New function declaration.
1494 * frame.c (get_frame_base): New function.
1495 (get_frame_id): Use ->frame.
1496 (frame_find_by_id): Rewrite to use get_frame_id.
1497 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1498 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1499 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1500 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1501 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1502 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1503 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1504
1505 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1506
1507 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1508
1509 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1510
1511 * frame.c (set_unwind_by_pc): Revert change below, use
1512 PC_IN_CALL_DUMMY.
1513 (get_prev_frame): Ditto.
1514
1515 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1516
1517 * dummy-frame.c (pc_in_dummy_frame): New function.
1518 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1519 (find_dummy_frame): Update comment.
1520 (generic_pop_current_frame): Use get_frame_type.
1521 * dummy-frame.h (pc_in_dummy_frame): Declare.
1522 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1523 (create_new_frame): Use pc_in_dummy_frame.
1524 (get_prev_frame): Use pc_in_dummy_frame.
1525 (frame_saved_regs_register_unwind): Use get_prev_frame.
1526 (deprecated_generic_get_saved_register): Use get_prev_frame.
1527
1528 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1529
1530 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1531 from here ...
1532 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1533 (varobj_create): Note that frame ID should be used.
1534 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1535
1536 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1537
1538 * breakpoint.c: Include "gdb_assert.h".
1539 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1540 not being used.
1541 * Makefile.in (breakpoint.o): Update dependencies.
1542 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1543 deprecated_frame_in_dummy.
1544 * stack.c (print_frame_info_base): Ditto.
1545 (frame_info): Ditto.
1546 (print_frame_info_base): Ditto. Delete dead code.
1547
1548 2002-11-23 Andreas Schwab <schwab@suse.de>
1549
1550 * Makefile.in (m68k_tdep_h): Define.
1551 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1552 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1553 * m68k-tdep.c: Move register number enum ...
1554 * m68k-tdep.h: ... to this new file and rename the constants from
1555 E_* to M68K_*. All uses changed.
1556 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1557 * abug-rom.c: Include "m68k-tdep.h". Use
1558 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1559 * cpu32bug-rom.c: Likewise.
1560 * dbug-rom.c: Likewise.
1561 * m68k-tdep.c: Likewise.
1562 * m68klinux-nat.c: Likewise.
1563 * remote-est.c: Likewise.
1564 * rom68k-rom.c: Likewise.
1565 * config/m68k/tm-linux.h: Likewise.
1566
1567 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1568
1569 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1570 dummy frame initialization code.
1571 * mips-tdep.c (mips_gdbarch_init): Ditto.
1572
1573 2002-11-22 Christopher Faylor <cgf@redhat.com>
1574
1575 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1576 attach will hang.
1577
1578 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1579
1580 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1581 to default_frame_address.
1582 * gdbarch.h, gdbarch.c: Re-generate.
1583
1584 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1585 or frame_locals_address to default_frame_address.
1586 * m68k-tdep.c (m68k_gdbarch_init): Update.
1587 * i386-tdep.c (i386_gdbarch_init): Update.
1588 * frv-tdep.c (frv_gdbarch_init): Update.
1589 * sh-tdep.c (sh_gdbarch_init): Update.
1590 * v850-tdep.c (v850_gdbarch_init): Update.
1591 * sparc-tdep.c (sparc_gdbarch_init): Update.
1592 * mips-tdep.c (mips_gdbarch_init): Update.
1593 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1594 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1596
1597 * cris-tdep.c (cris_frame_args_address): Delete function.
1598 (cris_frame_locals_address): Delete function.
1599 (cris_gdbarch_init): Do not set frame_args_address or
1600 frame_locals_address.
1601
1602 2002-11-22 Michael Snyder <msnyder@redhat.com>
1603
1604 * thread-db.c (thread_db_load): Tell the user what's going on
1605 if dlopen fails on libthread_db.
1606
1607 2002-11-23 Andreas Schwab <schwab@suse.de>
1608
1609 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1610 invariant return values.
1611
1612 2002-11-22 Andreas Schwab <schwab@suse.de>
1613
1614 * valops.c (value_slice): Move declaration of `offset' to avoid
1615 warning.
1616
1617 2002-11-22 Christopher Faylor <cgf@redhat.com>
1618
1619 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1620 (struct so_stuff): Add end_addr field.
1621 (register_loaded_dll): Calculate and store end address of loaded dll.
1622 (solib_address): New function.
1623 (child_solib_loaded_library_pathname): Pass carefully constructed
1624 section info to safe_symbol_file_add rather than ignoring it.
1625 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1626 DLL is loaded.
1627 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1628 (child_create_inferior): Fix a compiler warning.
1629 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1630 (solib_address): Declare new function.
1631
1632 2002-11-22 Andreas Schwab <schwab@suse.de>
1633
1634 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1635 and FPS registers.
1636
1637 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1638
1639 * maint.c (_initialize_maint_cmds): Fix typo. From
1640 Francesco Potorti` <pot@gnu.org>.
1641
1642 2002-11-21 Andrew Cagney <cagney@redhat.com>
1643
1644 * mips-tdep.c (mips_dump_tdep): Delete references to
1645 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1646 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1647 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1648 * printcmd.c (build_address_symbolic): Delete calls to
1649 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1650 (address_info): Ditto.
1651 Fix PR gdb/773.
1652
1653 2002-11-19 Klee Dienes <kdienes@apple.com>
1654 Adam Fedor <fedor@gnu.org>
1655
1656 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1657 the ability to explicitly specify the quote characters and word
1658 break characters; if NULL is specified for either, use the old
1659 behavior of using the characters used by the completer.
1660 (skip_chars): New function. Convenience wrapper around
1661 skip_quoted_chars to provide the original skip_chars behavior.
1662 * completer.h (skip_quoted_chars): Add prototype.
1663
1664 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1665
1666 Problems reported by Paul Eggert.
1667 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1668
1669 2002-11-19 Andreas Schwab <schwab@suse.de>
1670
1671 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1672 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1673 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1674 (m68k_linux_frame_saved_pc): Move to ...
1675 * m68klinux-tdep.c: ... here. New file.
1676 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1677 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1678
1679 2002-11-19 Adam Fedor <fedor@gnu.org>
1680
1681 * objc-exp.y: Revert to old skip_quoted usage.
1682
1683 2002-11-19 Adam Fedor <fedor@gnu.org>
1684
1685 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1686 (objc_lang_h): Define.
1687 (YYFILES): Add objc-exp.tab.c.
1688 (local-maintainer-clean): Remove objc-exp.tab.c.
1689 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1690
1691 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1692
1693 * p-exp.y (typecast rule): Add automatic dereference of
1694 pascal classes if needed.
1695 (THIS): Set current_type.
1696 Automatically dereference pascal classes.
1697 (typebase rule): Add ^typebase recognition.
1698
1699 2002-11-18 Adam Fedor <fedor@gnu.org>
1700
1701 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1702 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1703 (op_name): Handle OP_OBJC_SELF.
1704 * Makefile.in (expprint.o): Add additional depends.
1705
1706 2002-11-18 Adam Fedor <fedor@gnu.org>
1707
1708 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1709 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1710 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1711 * objc-exp.y: Likewise.
1712
1713 2002-11-18 Adam Fedor <fedor@gnu.org>
1714
1715 * gdb/parser-defs.h: (struct objc_class_str): New structure
1716 for parsing ObjC classes.
1717
1718 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1719
1720 * stack.c (frame_relative_level): Copy function from here ...
1721 * frame.c (frame_relative_level): ...to here.
1722
1723 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1724
1725 * frame.h (enum frame_type): Define.
1726 (get_frame_type): Declare.
1727 (struct frame_info): Add field `type'. Delete field
1728 signal_handler_caller.
1729 (deprecated_set_frame_signal_handler_caller): Declare.
1730 * frame.c (get_frame_type): New function.
1731 (deprecated_set_frame_type): New function.
1732 (create_new_frame): Set the frame's type.
1733 (get_prev_frame): Similar.
1734 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1735 * s390-tdep.c: Ditto.
1736 * m68klinux-nat.c: Ditto.
1737 * ns32k-tdep.c: Ditto.
1738 * x86-64-linux-tdep.c: Ditto.
1739 * vax-tdep.c: Ditto.
1740 * rs6000-tdep.c: Ditto.
1741 * ppc-linux-tdep.c: Ditto.
1742 * i386-interix-tdep.c: Ditto.
1743 * mips-tdep.c: Ditto.
1744 * m68k-tdep.c: Ditto.
1745 * hppa-tdep.c: Ditto.
1746 * ia64-tdep.c: Ditto.
1747 * cris-tdep.c: Ditto.
1748 * arm-tdep.c: Ditto.
1749 * alpha-tdep.c: Ditto.
1750 * i386-tdep.c: Ditto.
1751 * stack.c: Ditto.
1752 * ada-lang.c: Ditto.
1753 * blockframe.c: Update.
1754 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1755 deprecated_set_frame_type instead of signal_handler_caller.
1756 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1757 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1758 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1759
1760 2002-11-18 Klee Dienes <kdienes@apple.com>
1761
1762 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1763
1764 2002-11-18 Klee Dienes <kdienes@apple.com>
1765
1766 * buildsym.c (pop_context): Add comment.
1767
1768 2002-11-18 Klee Dienes <kdienes@apple.com>
1769
1770 * buildsym.h (pop_context): Convert to function, defined in
1771 buildsym.c.
1772 * buildsym.c: Include gdb_assert.h.
1773 (pop_context): Implement as C function. Add check for stack
1774 underflow.
1775 * dbxread.c (process_one_symbol): Complain and stop processing
1776 that symbol if we are already at the top of the context stack for
1777 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1778 when processing N_RBRAC.
1779
1780 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1781
1782 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1783 define.
1784 (struct target_waitstatus): Add opaque definition.
1785 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1786 * exec.c (init_exec_ops): Likewise.
1787 * fork-child.c (clone_and_follow_inferior): Remove.
1788 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1789 * inferior.h (clone_and_follow_inferior): Remove prototype.
1790 * infrun.c (follow_fork_mode_both): Remove.
1791 (follow_fork_mode_kind_names): Remove commented out "both".
1792 (follow_inferior_fork): Remove follow_fork_mode_both support.
1793 * inftarg.c (child_clone_and_follow_inferior): Remove.
1794 (child_post_follow_inferior_by_clone): Remove.
1795 (init_child_ops): Don't set to_clone_and_follow_inferior
1796 or to_post_follow_inferior_by_clone.
1797 * target.c (default_clone_and_follow_inferior): Remove.
1798 (cleanup_target): Don't set to_clone_and_follow_inferior
1799 or to_post_follow_inferior_by_clone.
1800 (find_default_clone_and_follow_inferior): Remove.
1801 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1802 (debug_to_clone_and_follow_inferior): Remove.
1803 (debug_to_post_follow_inferior_by_clone): Remove.
1804 (setup_target_debug): Don't set to_clone_and_follow_inferior
1805 or to_post_follow_inferior_by_clone.
1806 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1807 and to_post_follow_inferior_by_clone.
1808 (child_clone_and_follow_inferior): Remove prototype.
1809 (child_post_follow_inferior_by_clone): Remove prototype.
1810 (target_clone_and_follow_inferior): Remove macro.
1811 (target_post_follow_inferior_by_clone): Remove macro.
1812 (find_default_clone_and_follow_inferior): Remove prototype.
1813
1814 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1815
1816 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1817 inferior_has_vforked, and inferior_has_execd instead of
1818 target_has_forked, target_has_vforked, and target_has_execd.
1819 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1820 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1821 (CHILD_WAIT): Define.
1822 (child_wait): Add prototype.
1823 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1824 Add prototype.
1825 (hpux_has_vforked): Likewise, from child_has_vforked.
1826 (hpux_has_execd): Likewise, from child_has_execd.
1827 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1828 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1829 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1830 and hpux_has_syscall_event instead of the target hooks.
1831 * infrun.c (inferior_has_forked, inferior_has_vforked)
1832 (inferior_has_execd): New functions.
1833 * inftarg.c (not_same_real_pid): Remove.
1834 (child_wait): Remove references to not_same_real_pid,
1835 target_has_forked, target_has_vforked, target_has_execd,
1836 and target_has_syscall_event.
1837 (child_has_forked, child_has_vforked, child_has_execd)
1838 (child_has_syscall_event): Remove.
1839 (init_child_ops): Remove references to child_has_forked,
1840 child_has_vforked, child_has_execd, and child_has_syscall_event.
1841 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1842 (hpux_has_vforked): Likewise, from child_has_vforked.
1843 (hpux_has_execd): Likewise, from child_has_execd.
1844 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1845 * target.c (cleanup_target): Remove references to
1846 to_has_forked, to_has_vforked, to_has_execd, and
1847 to_has_syscall_event.
1848 (update_current_target): Likewise.
1849 (setup_target_debug): Likewise.
1850 (debug_to_has_forked): Remove.
1851 (debug_to_has_vforked): Remove.
1852 (debug_to_has_execd): Remove.
1853 (debug_to_has_syscall_event): Remove.
1854 * target.h (struct target_ops): Remove to_has_forked.
1855 to_has_vforked, to_has_execd, and to_has_syscall_event.
1856 (child_has_forked, child_has_vforked, child_has_execd)
1857 (child_has_syscall_event): Remove prototypes.
1858 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1859 prototypes.
1860 (target_has_forked, target_has_vforked, target_has_execd)
1861 (target_has_syscall_event): Remove macros.
1862
1863 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1864
1865 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1866 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1867 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1868 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1869 * target.c (cleanup_target): Remove reference to
1870 to_can_follow_vfork_prior_to_exec.
1871 (update_current_target): Likewise.
1872 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1873 (setup_target_debug): Remove reference to
1874 to_can_follow_vfork_prior_to_exec.
1875 * target.h (struct target_ops): Remove
1876 to_can_follow_vfork_prior_to_exec.
1877 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1878 (target_can_follow_vfork_prior_to_exec): Remove definition.
1879 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1880 define.
1881 * infrun.c (follow_vfork_when_exec): Remove.
1882 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1883 (follow_exec): Likewise.
1884 (handle_inferior_event): Likewise.
1885 (keep_going): Likewise.
1886
1887 2002-11-15 Andrew Cagney <cagney@redhat.com>
1888
1889 * frame.c (generic_unwind_get_saved_register): Make static.
1890 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1891 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1892 defaults to generic_unwind_get_saved_register.
1893 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1894 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1895 * frv-tdep.c (frv_gdbarch_init): Ditto.
1896 * i386-tdep.c (i386_gdbarch_init): Ditto.
1897 * s390-tdep.c (s390_gdbarch_init): Ditto.
1898 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1899 * v850-tdep.c (v850_gdbarch_init): Ditto.
1900 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1901 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1902 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1903
1904 2002-11-15 Andrew Cagney <cagney@redhat.com>
1905
1906 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1907 i386-tdep.c.
1908
1909 2002-11-15 Andrew Cagney <cagney@redhat.com>
1910
1911 * frame.h (sigtramp_saved_pc): Delete declaration.
1912 * blockframe.c (sigtramp_saved_pc): Delete function.
1913 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1914 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1915 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1916 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1917
1918 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1919
1920 * frame.c (frame_pc_unwind): New function.
1921 (frame_saved_regs_pc_unwind): New function.
1922 (frame_register_unwind): Pass unwind_cache instead of
1923 register_unwind_cache.
1924 (set_unwind_by_pc): Add unwind_pc parameter, set.
1925 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1926 (get_prev_frame): Ditto.
1927 * frame.h (frame_pc_unwind_ftype): Declare.
1928 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1929 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1930 (frame_pc_unwind): Declare.
1931 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1932 (struct dummy_frame): Add comment mentioning that values are for
1933 previous frame.
1934 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1935 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1936 (generic_file_frame_chain_valid): Ditto.
1937 * stack.c (frame_info): Ditto.
1938
1939 2002-11-15 David Carlton <carlton@math.stanford.edu>
1940
1941 * linespec.c (locate_first_half): New function.
1942 (decode_line_1): Move code into locate_first_half.
1943
1944 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1945
1946 * complaints.h: Add comment explaining how to eliminate a
1947 deprecated_complain call.
1948 * complaints.h: Fix spelling errors.
1949
1950 2002-11-15 David Carlton <carlton@math.stanford.edu>
1951
1952 * printcmd.c: Remove #include "disasm.h".
1953
1954 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1955
1956 * frame.h: Move the most relevant interface functions to the start
1957 of the file.
1958
1959 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1960
1961 * regcache.h (deprecated_registers): Rename registers.
1962 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1963 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1964 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1965 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1966 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1967 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1968 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1969 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1970 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1971 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1972 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1973 * v850ice.c: Update.
1974
1975 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1976
1977 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1978 NULL buffer.
1979
1980 2002-11-13 Andrew Cagney <cagney@redhat.com>
1981
1982 * regcache.h (deprecated_read_register_bytes): Rename
1983 read_register_bytes.
1984 (deprecated_write_register_bytes): Rename write_register_bytes.
1985 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1986 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1987 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1988 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1989 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1990 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1991 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1992 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1993 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1994 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1995 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1996 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1997 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1998 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1999
2000 2002-11-13 Jim Blandy <jimb@redhat.com>
2001
2002 * findvar.c (read_var_value): Doc fix.
2003
2004 2002-11-13 Andrew Cagney <cagney@redhat.com>
2005
2006 * regcache.c (struct regcache): Replace passthough_p with
2007 readonly_p.
2008 (regcache_xmalloc): Initialize readonly_p.
2009 (build_regcache): Initialize readonly_p.
2010 (regcache_save): New function.
2011 (regcache_restore): New function.
2012 (regcache_cpy): Re-implement using regcache_save and
2013 regcache_restore.
2014 (regcache_raw_read): Update.
2015 (regcache_cooked_read): When a read-only cache, checked for cached
2016 pseudo register values.
2017 (regcache_raw_write): Assert that the cache is not read-only.
2018 Remove code handling a non-passthrough cache.
2019 * regcache.h (regcache_save): Declare.
2020 (regcache_restore): Declare.
2021
2022 2002-11-13 Andrew Cagney <cagney@redhat.com>
2023
2024 * regcache.c (struct regcache_descr): Add fields
2025 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2026 (init_legacy_regcache_descr): Compute the size of a cooked
2027 register cache and then assign that to sizeof_raw_registers. Set
2028 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2029 (init_legacy_regcache_descr): Ditto.
2030
2031 2002-11-13 Andrew Cagney <cagney@redhat.com>
2032
2033 * regcache.c (register_buffer): Move to near start of file, update
2034 description.
2035 (regcache_raw_read): Use.
2036 (regcache_raw_write): Use.
2037 (struct regcache): Rename raw_registers to registers and
2038 raw_register_valid_p to register_valid_p.
2039 (regcache_xmalloc): Update.
2040 (regcache_xfree): Update.
2041 (register_buffer): Update.
2042 (regcache_cpy): Update.
2043 (regcache_cpy_no_passthrough): Update.
2044 (regcache_valid_p): Update.
2045 (deprecated_grub_regcache_for_registers): Update.
2046 (deprecated_grub_regcache_for_register_valid): Update.
2047 (set_register_cached): Update.
2048 (regcache_raw_write): Update.
2049
2050 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2051
2052 * p-exp.y (name_not_typename): Use copy_name to
2053 set current_type variable for fields of THIS.
2054
2055 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2056
2057 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2058 * monitor.c (init_base_monitor_ops): Likewise.
2059 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2060 * remote-array.c (init_array_ops): Likewise.
2061 * remote-e7000.c (init_e7000_ops): Likewise.
2062 * remote-es.c (init_es1800_ops): Likewise.
2063 (init_es1800_child_ops): Likewise.
2064 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2065 * remote-sim.c (init_gdbsim_ops): Likewise.
2066 * remote-st.c (init_st2000_ops): Likewise.
2067 * sol-thread.c (init_sol_core_ops): Likewise.
2068 (init_sol_thread_ops): Likewise.
2069 * v850ice.c (init_850ice_ops): Likewise.
2070 * win32-nat.c (init_child_ops): Likewise.
2071 * wince.c (init_child_ops): Likewise.
2072
2073 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2074
2075 * utils.c (gdb_realpath): Make rp a constant pointer.
2076
2077 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2078
2079 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2080 a constant buffer; cannonicalize_file_name(); realpath() with a
2081 pathconf() defined buffer, xstrdup().
2082
2083 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2084
2085 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2086 to hang2.C; hang3.c to hang3.C.
2087
2088 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2089
2090 * findvar.c (read_var_value): Reenable TLS code.
2091
2092 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2093 Jim Blandy <jimb@redhat.com>
2094
2095 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2096 * target.c (update_current_target): Add
2097 to_get_thread_local_address.
2098 * target.h (to_get_thread_local_address): Export.
2099 (target_get_thread_local_address): Define.
2100 (target_get_thread_local_address_p): Define.
2101 * thread-db.c: Include solib-svr4.h.
2102 (td_thr_tls_get_addr_p): Define.
2103 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2104 (thread_db_get_thread_local_address): New function.
2105 (init_thread_db_ops): Initialize to_get_thread_local_address.
2106 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2107 * configure: Regenerate.
2108 * config.in: Regenerate.
2109
2110 2002-11-11 David Carlton <carlton@math.stanford.edu>
2111
2112 * linespec.c (set_flags): New function.
2113 (decode_line_1): Move code into set_flags.
2114
2115 2002-11-11 David Carlton <carlton@math.stanford.edu>
2116
2117 * linespec.c (decode_line_1): Move chunks of code to separate
2118 functions.
2119 (initialize_defaults): New function.
2120 (decode_indirect): New function.
2121
2122 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2123
2124 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2125 instead of void_code_ptr.
2126 (sigtramp_saved_pc): Ditto.
2127
2128 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2129 i386_fp_regnum_p.
2130
2131 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2132
2133 * gdbtypes.h (struct main_type): Move artificial flag out of
2134 loc. New member of ``struct field'' named static_kind. Reduce
2135 overloaded meaning of bitsize.
2136 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2137 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2138 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2139
2140 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2141 new fields.
2142 (template_to_fixed_record_type, template_to_static_fixed_type)
2143 (to_record_with_fixed_variant_part): Likewise.
2144 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2145 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2146 * dwarfread.c (struct_type, enum_type): Likewise.
2147 * hpread.c (hpread_read_enum_type)
2148 (hpread_read_function_type, hpread_read_doc_function_type)
2149 (hpread_read_struct_type): Likewise.
2150 * mdebugread.c (parse_symbol): Likewise.
2151
2152 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2153
2154 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2155 * stack.c (print_frame_info_base): Update.
2156 (print_frame_info_base, frame_info): Update.
2157 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2158 (sparc_frame_saved_pc): Update.
2159 * ada-lang.c (find_printable_frame): Update.
2160 * breakpoint.c (deprecated_frame_in_dummy): Update.
2161
2162 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2163
2164 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2165 defined.
2166 (regmap): Extend to cover all registers.
2167 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2168 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2169 definitions.
2170 (fetch_register, sore_register): Simplify.
2171 (old_fetch_inferior_registers, old_store_inferior_registers):
2172 Remove functions.
2173 (cannot_fetch_register, cannot_store_register): Change
2174 implementation to use regmap array to decide which registers
2175 cannot be fetched/stored. This removes $orig_eax from the
2176 registers that cannot be fetched/stored.
2177 (fetch_inferior_registers): Call fetch_register directly instead
2178 of calling old_fetch_inferior_registers.
2179 (store_inferior_registers): Call store_register directly instead
2180 of calling old_store_inferior_registers.
2181 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2182 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2183 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2184
2185 2002-11-09 Klee Dienes <kdienes@apple.com>
2186
2187 * i387-tdep.c (i387_supply_register): When called with NULL as a
2188 buffer, mark the register as not provided (to mirror the behavior
2189 of supply_register).
2190 (i387_supply_fxsave): Ditto.
2191 (i387_supply_fsave): Ditto (inherits the behavior from
2192 i387_supply_register).
2193
2194 2002-11-09 Klee Dienes <kdienes@apple.com>
2195
2196 * blockframe.c (sigtramp_saved_pc): Use
2197 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2198 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2199 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2200
2201 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2202
2203 * frame.c (get_prev_frame): Test prev_p to identify a previously
2204 unwound frame. Initialize prev_p.
2205 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2206 comment.
2207
2208 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2209
2210 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2211 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2212 more comments. Zap dead code.
2213
2214 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2215
2216 * infcmd.c (print_vector_info, print_float_info): Move code that
2217 checks whether the target has any registers and whether there is a
2218 selected frame up, such that it is also used if a target provides
2219 multi-arch definitions of these functions.
2220
2221 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2222
2223 * Makefile.in (DESTDIR): Define.
2224 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2225 prefix.
2226
2227 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2228 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2229
2230 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2231
2232 * i386-linux-tdep.c: Include "reggroups.h".
2233 (i386_linux_register_reggroup_p): New function.
2234 (i386_linux_init_abi): Set register_reggroup_p to
2235 i386_linux_register_reggroup_p.
2236 * i386-tdep.h (i386_register_reggroup_p): Declare.
2237 * i386-tdep.c: Include "reggroups.h".
2238 (i386_init_reggroups): New function.
2239 (i386_add_reggroups): New function.
2240 (i386_register_reggroup_p): New function.
2241 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2242 (_initialize_i386_tdep): Call i386_init_reggroups.
2243 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2244 specific reggroups.
2245
2246 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2247
2248 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2249 request that's available in *BSD.
2250
2251 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2252
2253 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2254 FDOFF_REGNUM.
2255
2256 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2257
2258 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2259 * dummy-frame.c (find_dummy_frame): Rename
2260 generic_find_dummy_frame, make static. Return the dummy frame
2261 instead of the regcache.
2262 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2263 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2264 (dummy_frame_register_unwind): Rename
2265 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2266 * dummy-frame.h (dummy_frame_register_unwind): Rename
2267 generic_call_dummy_register_unwind.
2268
2269 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2270
2271 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2272 except the inclusion of "i386/tm-i386.h", to...
2273 * config/i386/nm-i386v42mp.h: ...here.
2274 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2275
2276 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2277
2278 * Makefile.in (frame.o): Update dependencies.
2279 * blockframe.c (current_frame, frame_obstack_alloc)
2280 (frame_saved_regs_zalloc, get_current_frame)
2281 (set_current_frame, create_new_frame)
2282 (set_unwind_by_pc, get_next_frame)
2283 (flush_cached_frames, reinit_frame_cache)
2284 (frame_saved_regs_register_unwind)
2285 (deprecated_generic_get_saved_register)
2286 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2287 (_initialize_blockframe): Move frame code from here...
2288 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2289 "annotate.h" and "dummy-frame.h".
2290 (_initialize_frame): New function.
2291
2292 2002-11-08 Jim Blandy <jimb@redhat.com>
2293
2294 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2295 when we finish a function a context.
2296 * buildsym.h (outermost_context_p): New macro.
2297 (Bug analyzed by David Edelsohn.)
2298
2299 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2300
2301 * blockframe.c: Include "dummy-frame.h".
2302 (struct dummy_frame, dummy_frame_stack)
2303 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2304 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2305 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2306 (generic_save_call_dummy_addr, generic_pop_current_frame)
2307 (generic_pop_dummy_frame, generic_fix_call_dummy)
2308 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2309 dummy frame code from here...
2310 * dummy-frame.c: ...to here. New file.
2311 * dummy-frame.h: New file.
2312 (generic_call_dummy_register_unwind): Declare.
2313 (generic_find_dummy_frame): Declare.
2314 * Makefile.in (SFILES): Add dummy-frame.c.
2315 (dummy-frame.o): Specify dependencies.
2316 (dummy_frame_h): Define.
2317 (COMMON_OBS): Add dummy-frame.o.
2318 (blockframe.o): Update dependencies.
2319
2320 2002-11-08 Jim Blandy <jimb@redhat.com>
2321
2322 * dwarf2read.c (read_func_scope): Restore local_symbols and
2323 param_symbols after we finish the function context. (Based on a
2324 patch from David Edelsohn.)
2325
2326 2002-11-08 David Carlton <carlton@math.stanford.edu>
2327
2328 * linespec.c (symbol_found): New function.
2329 (minsym_found): New function.
2330 (decode_line_1): Separate out some code into separate functions.
2331
2332 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2333
2334 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2335 the benefit of the interix target.
2336 * i386-tdep.h (i386_frameless_signal_p): Declare.
2337
2338 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2339
2340 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2341 declaration that snuck in from change below.
2342
2343 2002-11-06 Andrew Cagney <cagney@redhat.com>
2344
2345 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2346 all callers.
2347 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2348 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2349 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2350 (i386_mxcsr_regnum_p): new function. Use instead of
2351 MXCSR_REGNUM_P.
2352 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2353 (i386_sse_regnum_p): Declare.
2354 (i386_mxcsr_regnum_p): Declare.
2355 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2356 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2357 (IS_FP_REGNUM): Update definition.
2358 (IS_FPU_CTRL_REGNUM): Update definition..
2359 (IS_SSE_REGNUM): Update definition..
2360 * i386v-nat.c (register_u_addr): Update.
2361 * go32-nat.c (fetch_register): Update.
2362 (store_register): Update.
2363
2364 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2365
2366 Preparation work to convert the hppa targets to multiarch partial.
2367
2368 * hppa-tdep.c: Add new functions replacing macro bodies from
2369 config/pa/tm-hppa.h. These function will be used to initialize
2370 the gdbarch structure. Import some comments from tm-hppa.h,
2371 and place them where appropriate, to avoid loosing them when
2372 we cleanup this file.
2373 (hppa_reg_struct_has_addr): New function.
2374 (hppa_inner_than): New function.
2375 (hppa_stack_align): New function.
2376 (hppa_pc_requires_run_before_use): New function.
2377 (hppa_instruction_nullified): New function.
2378 (hppa_register_byte): New function.
2379 (hppa_register_virtual_type): New function.
2380 (hppa_store_struct_return): New function.
2381 (hppa_cannot_store_register): New function.
2382 (hppa_frame_args_address): New function.
2383 (hppa_frame_locals_address): New function.
2384 (hppa_smash_text_address): New function.
2385 (hppa_coerce_float_to_double): New function. Requires the inclusion
2386 of "language.h".
2387
2388 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2389
2390 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2391 gdbarch-eligible macro to a call to the new associated function
2392 created in hppa-tdep.c.
2393 (INNER_THAN): Likewise.
2394 (STACK_ALIGN): Likewise.
2395 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2396 (INSTRUCTION_NULLIFIED): Likewise.
2397 (REGISTER_BYTE): Likewise.
2398 (REGISTER_VIRTUAL_TYPE): Likewise.
2399 (STORE_STRUCT_RETURN): Likewise.
2400 (CANNOT_STORE_REGISTER): Likewise.
2401 (FRAME_ARGS_ADDRESS): Likewise.
2402 (FRAME_LOCALS_ADDRESS): Likewise.
2403 (SMASH_TEXT_ADDRESS): Likewise.
2404 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2405 (ABOUT_TO_RETURN): Delete, as no longer used.
2406
2407 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2408
2409 * printcmd.c (disassemble_command): Remove obsolete function.
2410 (_initialize_printcmd): Do not create disassemble command here.
2411 * cli/cli-cmds.c (disassemble_command): New function. Implements
2412 disassemble command.
2413 (init_cli_cmds): Create disassemble command here instead.
2414
2415 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2416
2417 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2418
2419 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2420
2421 * regcache.h (regcache_cooked_read_using_offset_hack)
2422 (regcache_cooked_write_using_offset_hack): Delete declarations.
2423 (register_changed): Delete declaration.
2424 * regcache.c (regcache_cooked_read_using_offset_hack)
2425 (regcache_cooked_write_using_offset_hack): Delete functions.
2426 (cooked_xfer_using_offset_hack): Delete function.
2427 (register_changed): Delete function.
2428
2429 2002-11-07 Jim Blandy <jimb@redhat.com>
2430
2431 * macroscope.c: #include "complaints.h".
2432 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2433 but not in the macro table.
2434 * Makefile.in (macroscope.o): Record dependency.
2435
2436 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2437
2438 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2439
2440 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2441
2442 * regcache.c (deprecated_registers_fetched): Update.
2443 * regcache.h (deprecated_registers_fetched): Rename
2444 registers_fetched.
2445 * remote-vxsparc.c (vx_read_register): Update.
2446 * remote-vxmips.c (vx_read_register): Update.
2447 * remote-vx68.c (vx_read_register): Update.
2448 * irix5-nat.c (fetch_core_registers): Update.
2449 * mipsm3-nat.c (fetch_inferior_registers): Update.
2450 * sun3-nat.c (fetch_inferior_registers): Update.
2451 * symm-nat.c (fetch_inferior_registers): Update.
2452 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2453 (fetch_core_registers): Update.
2454 (fetch_kcore_registers): Update.
2455 * mips-nat.c (fetch_inferior_registers): Update.
2456 * corelow.c (get_core_registers): Update.
2457 * a68v-nat.c (fetch_inferior_registers): Update.
2458
2459 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2460
2461 Put in place the framework necessary for multiarching the hppa targets.
2462 * hppa-tdep.c (hppa_gdbarch_init): New function.
2463 (hppa_dump_tdep): New function.
2464 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2465 tdep structure dumper.
2466 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2467 until the multi-arching conversion has partially been completed.
2468
2469 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2470
2471 * valops.c (value_assign): Merge lval_register case into
2472 lval_reg_frame_relative. Use frame_register and
2473 regcache_cooked_write instead of get_saved_register and
2474 write_register_bytes. After flushing the register cache, try to
2475 re-select the selected frame.
2476
2477 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2478
2479 * regcache.h (deprecated_register_valid): Rename register_valid.
2480 * regcache.c: Update.
2481 * ia64-aix-nat.c: Update.
2482 * i386gnu-nat.c: Update.
2483 * alpha-nat.c: Update.
2484 * sparc-nat.c: Update.
2485 * lynx-nat.c: Update.
2486 * remote-mips.c: Update.
2487
2488 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2489
2490 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2491 to end of file, to be more consistent with the pratice followed
2492 by other targets.
2493
2494 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2495
2496 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2497 (print_float_info): Print registers in float_reggroup.
2498 (print_vector_info): Print registers in vector_reggroup.
2499 (default_print_registers_info): When all, print registers in
2500 all_reggroup. Otherwize, print registers in general_reggroup.
2501 (registers_info): Rewrite. Add support for register groups.
2502 Eliminate a goto.
2503
2504 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2505
2506 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2507 ages.
2508 (symtab_symbol_info): Remove eons old ifdeffed out code.
2509 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2510 command.
2511
2512 2002-11-06 Theodore A. Roth <troth@openavr.org>
2513
2514 * c-exp.y: Add missing semi-colons.
2515 * f-exp.y: Add missing semi-colons.
2516 * m2-exp.y: Add missing semi-colons.
2517 * p-exp.y: Add missing semi-colons.
2518 Add empty action to start rule to avoid a type clash error when
2519 building with bison >= 1.50.
2520
2521 2002-11-06 Jim Blandy <jimb@redhat.com>
2522
2523 * macrotab.h (struct macro_source_file): Doc fix.
2524
2525 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2526
2527 * varobj.c (child_exists, cplus_number_of_children): Change
2528 STREQ macro references to strcmp.
2529 (cplus_name_of_child): Change code to handle the fact that
2530 fields are not necessarily contiguous with regards to their
2531 access control. This is a fix for PR gdb/792.
2532
2533 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2534
2535 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2536 * gdbarch.h, gdbarch.c: Regnerate.
2537 * frame.h (frame_register): Declare.
2538 * frame.c (frame_register): New function.
2539 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2540 GET_SAVED_REGISTER, otherwize call
2541 generic_unwind_get_saved_register.
2542 (frame_register_read): Use frame_register instead of
2543 get_saved_register.
2544
2545 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2546
2547 From Jim Ingham <jingham@apple.com>:
2548 * event-top.c (gdb_disable_readline): New function.
2549 (_initialize_event_loop): Move comment.
2550
2551 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2552
2553 * event-loop.c (start_event_loop): Add comment.
2554 Update copyright.
2555
2556 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2557
2558 * infcmd.c (default_print_registers_info): Do not call
2559 PRINT_REGISTER_HOOK.
2560
2561 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2562
2563 * sparc-tdep.c (sparc_print_register_hook): Make static.
2564 (sparc_print_registers_info): New function.
2565 (sparc_do_registers_info): New function.
2566 (sparclet_print_registers_info): New function.
2567 (sparclet_do_registers_info): New function.
2568 (do_sparc_print_registers_info): New function.
2569 (sparc_print_registers): New static function, clone of infcmd.c's
2570 default_print_registers_info.
2571 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2572 (sparclet_do_registers_info): Declare.
2573 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2574 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2575 Re-define.
2576 (sparc_do_registers_info): Declare.
2577 (PRINT_REGISTER_HOOK): Delete macro.
2578 (sparc_print_register_hook): Delete declaration.
2579
2580 2002-11-05 David Carlton <carlton@math.stanford.edu>
2581
2582 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2583 functions.
2584 (lookup_symbol_aux_local): New function.
2585 (lookup_symbol_aux_symtabs): New function.
2586 (lookup_symbol_aux_psymtabs): New function.
2587
2588 2002-11-05 David Carlton <carlton@math.stanford.edu>
2589
2590 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2591 previous values of 'objfile' and 'block'.
2592
2593 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2594
2595 * values.c (value_change_enclosing_type): Set
2596 enclosing_type field correctly also for the case where
2597 more memory needs to be allocated.
2598
2599 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2600
2601 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2602 of puts_filtered.
2603
2604 * i387-tdep.c (i387_print_float_info): Replace calls to
2605 register_read and deprecated_read_register_gen with calls to
2606 frame_register_read, and make the necessary adjustments to the
2607 surrounding code.
2608
2609 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2610
2611 * gdbarch.sh (register_reggroup_p): Allow default value.
2612 * gdbarch.h, gdbarch.c: Regenerate.
2613
2614 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2615
2616 * regcache.h: Add coment indicating replacements for deprecated
2617 functions.
2618
2619 2002-11-02 Andrew Cagney <cagney@redhat.com>
2620
2621 * reggroups.h, reggroups.c: New files.
2622 * regcache.c: Include "reggroups.h".
2623 (enum regcache_dump_what): Add `regcache_dump_groups'.
2624 (regcache_dump): Contract size of the "Type" column. When
2625 specified, dump the register's groups.
2626 (maintenance_print_register_groups): New function.
2627 (_initialize_regcache): Add command `maint print register-groups'.
2628 * Makefile.in (COMMON_OBS): Add reggroups.o
2629 (SFILES): Add reggroups.c.
2630 (reggroups_h): Define.
2631 (regcache.o, gdbarch.o): Update dependencies.
2632 (reggroups.o): Specify dependencies.
2633 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2634 Add opaque declaration for `struct reggroup' in generated .h file.
2635 Include "reggroups.h" in generated .c file.
2636 gdbarch.h, gdbarch.c: Re-generate.
2637
2638 2002-11-02 Andrew Cagney <cagney@redhat.com>
2639
2640 * regcache.h (deprecated_read_register_gen): Rename
2641 read_register_gen.
2642 (deprecated_write_register_gen): Rename write_register_gen.
2643 * i387-tdep.c: Update.
2644 * x86-64-linux-nat.c: Update
2645 * wince.c: Update.
2646 * thread-db.c: Update.
2647 * win32-nat.c: Update.
2648 * mips-tdep.c: Update.
2649 * d10v-tdep.c: Update.
2650 * cris-tdep.c: Update.
2651 * remote-sim.c: Update.
2652 * remote-rdi.c: Update.
2653 * remote-rdp.c: Update.
2654 * frame.c: Update.
2655 * target.c: Update.
2656 * blockframe.c: Update.
2657 * x86-64-tdep.c: Update.
2658 * xstormy16-tdep.c: Update.
2659 * sh-tdep.c: Update.
2660 * s390-tdep.c: Update.
2661 * rs6000-tdep.c: Update.
2662 * sparc-tdep.c: Update.
2663 * i386-tdep.c: Update.
2664 * dwarf2cfi.c: Update.
2665 * regcache.c: Update.
2666
2667 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2668
2669 New interix-specific files:
2670 * config/i386/nm-interix.h: New file.
2671 * config/i386/interix.mh: New file.
2672 * config/i386/interix.mt: New file.
2673 * i386-interix-nat.c: New file.
2674 * i386-interix-tdep.c: New file.
2675
2676 2002-11-01 Andrew Cagney <cagney@redhat.com>
2677
2678 * frame.h (deprecated_generic_get_saved_register): Rename
2679 generic_get_saved_register.
2680 * blockframe.c (deprecated_generic_get_saved_register): Update.
2681 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2682 (xstormy16_frame_saved_register): Update.
2683 * sh-tdep.c (sh_gdbarch_init): Update.
2684 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2685 * ia64-tdep.c (ia64_get_saved_register): Update.
2686 * cris-tdep.c (cris_gdbarch_init): Update.
2687 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2688 * arm-tdep.c (arm_gdbarch_init): Update.
2689
2690 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2691
2692 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2693
2694 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2695
2696 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2697 trampolines in sigaction.
2698
2699 2002-10-31 Andrew Cagney <cagney@redhat.com>
2700
2701 * h8300-tdep.c: Include "gdb_assert.h".
2702 (h8300_print_register): Add gdbarch, file and frame parameters.
2703 Use frame_read_unsigned_register to read the register's value.
2704 Use fprintf_filtered to display output.
2705 (h8300_print_registers_info): Replace h8300_do_registers_info.
2706 (h8300_gdbarch_init): Set print_registers_info.
2707
2708 2002-10-31 Andrew Cagney <cagney@redhat.com>
2709
2710 * frame.c (frame_read_unsigned_register): New function.
2711 (frame_read_signed_register): New function.
2712 * frame.h (frame_read_unsigned_register): Declare.
2713 (frame_read_signed_register): Declare.
2714
2715 2002-10-31 Andrew Cagney <cagney@redhat.com>
2716
2717 * h8500-tdep.c (h8500_print_registers_info): New static function,
2718 clone of infcmd.c's default_print_registers_info.
2719 (h8500_do_registers_info): New funtion.
2720 (h8500_print_register_hook): Rename print_register_hook, make
2721 static.
2722
2723 * config/h8500/tm-h8500.h: Update copyright.
2724 (DEPRECATED_DO_REGISTERS_INFO): Define.
2725 (h8500_do_registers_info: Declare.
2726 (PRINT_REGISTER_HOOK): Delete macro.
2727 (print_register_hook): Delete function.
2728
2729 2002-10-31 Andrew Cagney <cagney@redhat.com>
2730
2731 * z8k-tdep.c (z8k_print_register_hook): Make static.
2732 (z8k_print_registers_info): New static function, clone of
2733 infcmd.c's default_print_registers_info.
2734 (z8k_do_registers_info): New function. Wrap
2735 z8k_print_registers_info.
2736 * config/z8k/tm-z8k.h: Update copyright.
2737 (PRINT_REGISTER_HOOK): Delete macro.
2738 (z8k_print_register_hook): Delete declaration.
2739 (DEPRECATED_DO_REGISTERS_INFO): Define.
2740 (z8k_do_registers_info): Declare.
2741
2742 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2743
2744 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2745 as this is already provided by value.h, and was actually causing
2746 a compilation error because of a conflict in parameter type
2747 declaration due to a missing const keyword.
2748 (low_text_segment_addres): Fix a compilation warning.
2749
2750 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2751
2752 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2753 registers without a name.
2754 (mips_linux_cannot_store_register): Don't store registers without
2755 a name.
2756
2757 2002-10-28 David Carlton <carlton@math.stanford.edu>
2758
2759 * symtab.c (find_addr_symbol): Delete. (It was already commented
2760 out.)
2761 * symtab.h: Delete prototype for find_addr_symbol.
2762
2763 2002-10-26 Andrew Cagney <cagney@redhat.com>
2764
2765 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2766 DO_REGISTERS_INFO.
2767 gdbarch.h, gdbarch.c: Re-generate.
2768 * infcmd.c (default_print_registers_info): Update reference.
2769 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2770 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2771 * sh-tdep.c (sh_gdbarch_init): Ditto.
2772 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2773 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2774
2775 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2776
2777 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2778 cfi_init_extra_frame_info.
2779 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2780 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2781
2782 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2783 target where necessary. Add more comments and remove the ones
2784 that don't provide any useful information.
2785
2786 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2787 deprecated_read_register_dummy with
2788 frame_unwind_unsigned_register.
2789
2790 * i386-tdep.c (i386_extract_struct_value_address): Use
2791 regcache_raw_read_unsigned instead of
2792 regcache_cooked_read_unsigned since we know that the register
2793 we're reading isn't a pseudo register. Rename variable 'val' into
2794 the more descriptive 'addr'.
2795
2796 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2797 (x86_64_push_return_address): Add comment.
2798 (x86_64_pop_frame): Make static.
2799 (examine_argument): Clarify comment.
2800 (x86_64_skip_prologue): Make prolog_expact variable static.
2801
2802 * dwarf2cfi.c: Fix some formatting problems.
2803 (context_cpy, read_encoded_pointer): Clarify comments.
2804
2805 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2806 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2807 i386 target back into x86_64_gdbarch_init. Add some comments and
2808 remove meaningless ones.
2809
2810 2002-10-25 Andrew Cagney <cagney@redhat.com>
2811
2812 * complaints.h (struct deprecated_complaint): Rename `struct
2813 complaint'.
2814 * complaints.c (complain): Update.
2815 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2816 incorrect comment indicating that "symfile.h" was being included
2817 for the `struct complaint' definition.
2818 * remote-vx.c: Update.
2819 * objc-lang.c: Update.
2820 * xcoffread.c: Update.
2821 * hpread.c: Update.
2822 * mdebugread.c: Update.
2823 * stabsread.c: Update.
2824 * dwarf2read.c: Update.
2825 * dwarfread.c: Update.
2826 * elfread.c: Update.
2827 * coffread.c: Update.
2828 * stabsread.h: Update.
2829 * dbxread.c: Update.
2830 * buildsym.c: Update.
2831 * gdbtypes.c: Update.
2832 * macrotab.c: Update.
2833
2834 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2835
2836 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2837 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2838 (x86_64_init_abi): ...new function.
2839
2840 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2841 * i386v-nat.c: Include "i386-tdep.h".
2842
2843 2002-10-25 Andrew Cagney <cagney@redhat.com>
2844
2845 * gdbtypes.c (address_space_name_to_int): Update.
2846 (address_space_int_to_name): Update.
2847 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2848 multi-arch predicate.
2849 (address_class_name_to_type_flags): Ditto.
2850 * gdbarch.h, gdbarch.c: Re-generate.
2851
2852 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2853
2854 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2855
2856 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2857
2858 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2859
2860 * symtab.h (INIT_SAL): Delete macro.
2861 (init_sal): Export.
2862 * symtab.c (init_sal): New function.
2863
2864 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2865 to init_sal function call.
2866 (find_sal_from_funcs_and_line): Ditto.
2867 (all_sals_for_line): Ditto.
2868 * breakpoint.c (create_internal_breakpoint): Ditto.
2869 (create_fork_vfork_event_catchpoint): Ditto.
2870 (create_exec_event_catchpoint): Ditto.
2871 (parse_breakpoint_sals): Ditto.
2872 (watch_command_1): Ditto.
2873 (handle_gnu_4_16_catch_command): Ditto.
2874 (clear_command): Ditto.
2875 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2876 * infcmd.c (run_stack_dummy): Ditto.
2877 * infrun.c (process_event_stop_test): Ditto.
2878 (check_sigtramp2): Ditto.
2879 (step_over_function): Ditto.
2880 * linespec.c (decode_line_2): Ditto.
2881 (decode_line_1): Ditto.
2882 * source.c (line_info): Ditto.
2883 * symtab.c (find_pc_sect_line): Ditto.
2884
2885 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2886
2887 * dwarf2cfi.c (struct context)
2888 (struct context_reg): Moved to dwarf2cfi.h
2889 (context_alloc, frame_state_alloc, context_cpy):
2890 Made extern instead of static, removed prototypes.
2891 * dwarf2cfi.h (struct context)
2892 (struct context_reg): New, moved from dwarf2cfi.c
2893 (context_alloc, frame_state_alloc, context_cpy):
2894 New prototypes.
2895 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2896 Changed from static to extern.
2897 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2898 (LINUX_SIGCONTEXT_FP_OFFSET)
2899 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2900 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2901 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2902 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2903 set_gdbarch_*() calls now use x86-64 specific functions
2904 instead of DWARF2 CFI ones.
2905 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2906 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2907 (x86_64_init_extra_frame_info): New prototypes.
2908
2909 2002-10-23 David Carlton <carlton@math.stanford.edu>
2910
2911 * linespec.c: #include "parser-defs.h".
2912 Delete prototype for find_template_name_end.
2913 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2914
2915 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2916
2917 * NEWS: add recent mi fixes.
2918 * varobj.c (struct varobj): Add new "updated" flag.
2919 (new_variable): Default "updated" flag to 0.
2920 (varobj_set_value): Set "updated" flag to 1 if value
2921 changes.
2922 (varobj_update): Check varobj "updated" flag before
2923 comparing old and refreshed values. Fix for
2924 PR gdb/702.
2925
2926 2002-10-23 David Carlton <carlton@math.stanford.edu>
2927
2928 * parse.c (parse_exp_1): Use BLOCK_START.
2929 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2930 SYMBOL_BLOCK_VALUE.
2931 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2932
2933 2002-10-23 David Carlton <carlton@math.stanford.edu>
2934
2935 * symtab.c: Delete cplusplus_hint.
2936 Delete prototype for find_template_name_end.
2937
2938 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2939
2940 * symtab.h: Update comment.
2941
2942 2002-10-23 Michael Snyder <msnyder@redhat.com>
2943
2944 * printcmd.c (address_info): Restore quotes in output.
2945 * valops.c (value_of_local): Restore quotes in error message.
2946
2947 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2948
2949 * symtab.c (symbol_demangled_name): New function.
2950 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2951 turning most of it into a function.
2952 (symbol_demangled_name): Export.
2953
2954 2002-10-23 Michael Snyder <msnyder@redhat.com>
2955
2956 * valops.c (value_of_local): Restore quotes in error message.
2957
2958 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2959
2960 * symtab.c (symbol_init_language_specific): New function.
2961 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2962 turning most of it into a function.
2963 (symbol_init_language_specific): Export.
2964
2965 2002-10-23 David Carlton <carlton@math.stanford.edu>
2966
2967 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2968 (dwarf_attr_name): Ditto.
2969 (dwarf_type_encoding_name): Ditto.
2970 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2971 (process_die): Handle DW_TAG_namespace,
2972 DW_TAG_imported_declaration, DW_TAG_imported_module.
2973 (read_namespace): New function.
2974
2975 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2976
2977 * configure.in: Define NEW_PROC_API on Interix too.
2978 * configure: Regenerate.
2979
2980 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2981
2982 * configure: Regenerate using the proper version of autoconf.
2983
2984 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2985
2986 * findvar.c (read_var_value): Temporarily disable TLS code, until
2987 complete TLS support is added.
2988
2989 2002-10-21 Jim Blandy <jimb@redhat.com>
2990 Elena Zannoni <ezannoni@redhat.com>
2991
2992 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2993 for thread local storage locations.
2994 (struct symbol): Add objfile field.
2995 (SYMBOL_OBJFILE): Define.
2996 * dwarf2read.c (is_thread_local): New static variable.
2997 (new_symbol): If variable is in thread local fill in address class
2998 and objfile appropriately.
2999 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3000 stack operation.
3001 * printcmd.c (address_info): Print the information for thread
3002 local storage variable.
3003 * findvar.c (read_var_value): In case of thread local variable,
3004 defer to the target vector code to compute address.
3005
3006 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3007
3008 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3009 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3010
3011 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3012
3013 * symtab.h (address_class): Rename
3014 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3015 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3016 * printcmd.c (address_info): Ditto.
3017 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3018
3019 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3020
3021 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3022 DBREG_DRX macro to acces debug registers.
3023
3024 * Makefile.in (i386obsd-tdep.o): New target.
3025
3026 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3027 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3028
3029 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3030 * config/i386/obsd.mt: New file.
3031 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3032 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3033 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3034 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3035 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3036 * i386obsd-tdep.c: New file.
3037
3038 2002-10-19 Adam Fedor <fedor@gnu.org>
3039
3040 * objc-exp.y (name_not_typename): Fix invalid comment.
3041
3042 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3043
3044 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3045 to allocate partial syms and macro byte caches.
3046
3047 2002-10-18 David Carlton <carlton@math.stanford.edu>
3048
3049 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3050
3051 2002-10-18 Adam Fedor <fedor@gnu.org>
3052
3053 * stabsread.c (find_name_end): New function.
3054 (define_symbol): Use it.
3055
3056 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3057
3058 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3059 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3060 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3061 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3062
3063 2002-10-17 David Carlton <carlton@math.stanford.edu>
3064
3065 * symfile.h: Add opaque declaration for struct obstack.
3066 Declare obsavestring to take a const char *.
3067 * symfile.c (obsavestring): Make first argument a const char *.
3068
3069 2002-10-16 Adam Fedor <fedor@gnu.org>
3070
3071 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3072 names when matching breakpoints in current file.
3073
3074 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3075
3076 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3077 (read_tag_pointer_type): Add address class support.
3078 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3079 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3080 New methods.
3081 * gdbarch.h, gdbarch.c: Regenerate.
3082 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3083 (make_type_with_address_space, recursive_type_dump): Add address
3084 class support.
3085 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3086 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3087 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3088
3089 2002-10-16 Klee Dienes <kdienes@apple.com>
3090
3091 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3092 to get the last character of a char[] buffer, not
3093 name[sizeof(vptr_name)-1].
3094
3095 2002-10-14 Adam Fedor <fedor@gnu.org>
3096
3097 * symtab.h: New objc_specific struct.
3098 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3099 (SYMBOL_DEMANGLED_NAME): Likewise.
3100
3101 2002-10-14 Adam Fedor <fedor@gnu.org>
3102
3103 * symfile.c (init_filename_language_table): Add ObjC file extension.
3104
3105 2002-10-14 Adam Fedor <fedor@gnu.org>
3106
3107 * utils.c (puts_filtered_tabular): New function.
3108 (fprintf_symbol_filtered): Get ObjC demangled name.
3109 * defs.h (puts_filtered_tabular): Declared.
3110
3111 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3112
3113 * c-lang.h (c_type_print_varspec_prefix): Delete.
3114 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3115 ``need_post_space'' parameter. Adjust all callers.
3116
3117 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3118
3119 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3120 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3121 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3122 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3123
3124 2002-10-13 Adam Fedor <fedor@gnu.org>
3125
3126 * source.c (print_source_lines): Update comments.
3127
3128 2002-10-13 Adam Fedor <fedor@gnu.org>
3129
3130 * valops.c (value_of_local): New function.
3131 (value_of_this): Use it.
3132 * value.h (value_of_local): Declared.
3133
3134 2002-10-13 Adam Fedor <fedor@gnu.org>
3135
3136 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3137 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3138
3139 2002-10-12 Adam Fedor <fedor@gnu.org>
3140
3141 * language.c (binop_result_type): Add language_objc to case.
3142 (integral_type): Likewise.
3143 (character_type): Likewise.
3144 (string_type): Likewise.
3145 (boolean_type): Likewise.
3146 (structured_type): Likewise.
3147 (binop_type_check): Likewise.
3148
3149 2002-10-11 Adam Fedor <fedor@gnu.org>
3150
3151 * printcmd.c (address_info): Print 'self' for ObjC.
3152
3153 2002-10-11 Adam Fedor <fedor@gnu.org>
3154
3155 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3156 OP_SELF.
3157
3158 2002-10-11 Adam Fedor <fedor@gnu.org>
3159
3160 * language.h (CAST_IS_CONVERSION): Add language_objc.
3161
3162 2002-10-11 Adam Fedor <fedor@gnu.org>
3163
3164 * defs.h (enum language): Add language_objc.
3165
3166 2002-10-11 Klee Dienes <kdienes@apple.com>
3167
3168 * corefile.c (read_memory_typed_address): New function.
3169 * gdbcore.h (read_memory_typed_address): Add prototype.
3170 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3171 to read a value destined for a CORE_ADDR, not read_memory_integer.
3172 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3173 (f77_get_dynamic_lowerbound): Ditto.
3174
3175 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3176
3177 * utils.c (string_to_core_addr): After turning string into
3178 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3179 which will do necessary sign-extension, etc.
3180
3181 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3182
3183 * c-exp.y (THIS): Delete token and grammar rule.
3184 (yylex): Don't return THIS.
3185 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3186 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3187 * demangle.c (cplus_markers): Update comment. Put '$'
3188 first. Remove CPLUS_MARKER.
3189 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3190 * jv-exp.y (THIS): Delete token and grammar rule.
3191 (yylex): Don't return THIS.
3192 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3193 * objc-exp.y (THIS): Delete token and grammar rule.
3194 (yylex): Don't return THIS.
3195 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3196 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3197 (read_member_functions): Likewise for opname.
3198 (read_tilde_fields): Use is_cplus_marker.
3199
3200 * defs.h (CPLUS_MARKER): Don't define.
3201 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3202 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3203 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3204 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3205 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3206
3207 * config/i386/tm-i386v4.h: Delete file.
3208 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3209 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3210 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3211 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3212 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3213 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3214 * config/i386/i386v4.mt (TM_FILE): Likewise.
3215 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3216
3217 2002-10-10 Marko Mlinar <markom@opencores.org>
3218
3219 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3220 accidentially not commited 2002-10-09
3221 * gdbarch.h, gdbarch.c: Re-generate.
3222
3223 2002-10-09 Marko Mlinar <markom@opencores.org>
3224
3225 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3226 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3227 * gdbarch.h, gdbarch.c: Re-generate.
3228
3229 2002-10-08 Petr Sorfa <petrs@caldera.com>
3230
3231 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3232
3233 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3234 so we can work on more than one compilation unit at a time. This
3235 helps prepare GDB to handle inter-CU die references.
3236 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3237 the code to be defined before struct comp_unit_head.
3238 (comp_unit_head): Added new members - offset, cu_head,
3239 begin_die, next and dwarf2_abbrevs.
3240 (dwarf2_abbrevs): Removed single static var; now member of
3241 struct comp_unit_head.
3242 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3243 members.
3244 (psymtab_to_symtab_1): Changed to work with the new
3245 struct comp_unit_head.
3246 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3247 constructs the dwarf2_abbrevs[] inside the cu_header.
3248 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3249 dwarf2_abbrev table to clean up.
3250 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3251 handling of dwarf2_abbrevs inside the cu_header.
3252 (read_partial_die): Now supports the call to the new
3253 dwarf2_lookup_abbrev.
3254 (read_full_die): Now supports the call to the new
3255 dwarf2_lookup_abbrev.
3256
3257 2002-10-06 Christopher Faylor <cgf@redhat.com>
3258
3259 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3260 insure that shell variables, such as "transformed_name" are propagated
3261 to later shell statements in rule.
3262
3263 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3264
3265 * config/i386/nm-i386sco.h: Add protection against
3266 multiple-inclusion. Include "i386/nm-i386v.h".
3267 (REGISTER_U_ADDR): Remove define.
3268 (i386_register_u_addr): Remove prototype.
3269
3270 2002-10-04 Michael Snyder <msnyder@redhat.com>
3271
3272 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3273 before treating it as a single-step event.
3274
3275 2002-10-03 Adam Fedor <fedor@gnu.org>
3276
3277 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3278 (objc_demangle): Remove assignment in if statements, Replace
3279 free with xfree.
3280 (add_msglist): Likewise.
3281 (end_msglist): Likewise.
3282 (complare_selectors): Likewise.
3283 (selectors_info): Likewise.
3284 (compare_classes): Likewise.
3285 (classes_info): Likewise.
3286 (print_object_command): Likewise.
3287 (find_objc_msgcall_submethod): Replace PTR with void *.
3288 * objc-lang.h: Remove check for __STDC__.
3289
3290 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3291
3292 * ui-out.h (ui_out_field_fmt_int): New prototype.
3293 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3294 of field width and alignment.
3295 * stack.c (print_frame_info_base): When printing frame level, use
3296 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3297 PR gdb/192
3298
3299 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3300
3301 * MAINTAINERS: Add self to Write After Approval list.
3302
3303 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3304
3305 * infcmd.c (interrupt_target_command_wrapper): Delete.
3306 (interrupt_target_command): Make non static.
3307 (nofp_registers_info): Make static.
3308 * stack.c (return_command_wrapper): Delete.
3309 (return_command): Make non static.
3310
3311 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3312
3313 * event-top.c (gdb_setup_readline): New function. Code moved from
3314 _initialize_event_loop().
3315 (_initialize_event_loop): Call gdb_setup_readline().
3316
3317 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3318
3319 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3320 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3321 * gdbarch.h, gdbarch.c: Re-generate.
3322
3323 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3324
3325 Fix PR gdb/778
3326 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3327 before recursing.
3328 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3329 of fill_in_vptr_fieldno.
3330
3331 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3332
3333 * inferior.h (registers_info, stepi_command, nexti_command,
3334 continue_command, interrupt_target_command): Export from infcmd.c.
3335 * frame.h (args_info, selected_frame_level_changed_hook,
3336 return_command): Export from stack.c.
3337 * v850ice.c (stepi_command, nexti_command, continue_command): use
3338 prototypes from inferior.h.
3339 * tracepoint.c (registers_info, args_info, locals_info): Use
3340 prototypes from frame.h and inferior.h.
3341 * Makefile.in (mi-main.o): Add dependency on frame.h.
3342
3343 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3344
3345 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3346 value in register 3 adjusted by ppc_gp0_regnum.
3347
3348 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3349
3350 2002-10-02 Marko Mlinar <markom@opencores.org>
3351
3352 * MAINTAINERS: Add myself to the Write After Approval list.
3353
3354 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3355
3356 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3357 of the section for the N64 ABI, fixed.
3358
3359 * config/mips/tm-irix6.h: Include solib.h.
3360
3361 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3362
3363 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3364 GNU operators.
3365
3366 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3367
3368 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3369 and that "mi0" syntax has been removed.
3370
3371 2002-09-30 David Carlton <carlton@math.stanford.edu>
3372
3373 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3374 * ppc-sysv-tdep.c: #include "gdb_string.h".
3375 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3376 pacify GCC.
3377
3378 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3379
3380 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3381 "vrsave"'s register number.
3382
3383 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3384
3385 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3386 use frame_unwind_signed_register to obtain the PC.
3387 (mips_frame_chain): Handle a generic dummy frame.
3388 (mips_init_extra_frame_info): When a generic dummy frame, don't
3389 re-compute the frame base.
3390 (mips_pop_frame): Handle generic dummy frames.
3391 (mips_gdbarch_init): When generic dummy frames, set
3392 use_generic_dummy_frames, push_dummy_frame to
3393 generic_push_dummy_frame, pc_in_call_dummy to
3394 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3395 generic_save_dummy_frame_tos.
3396
3397 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3398
3399 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3400 against TOP when TOP was explictly set.
3401 (generic_push_dummy_frame): Set TOP to zero.
3402
3403 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3404
3405 * event-loop.c (start_event_loop): Rename variable 'result' to
3406 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3407
3408 2002-09-30 Keith Seitz <keiths@redhat.com>
3409
3410 * gdb-events.sh (selected_thread_changed): New event.
3411 * gdb-events.c: Regenerated.
3412 * gdb-events.h: Regenerated.
3413
3414 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3415
3416 * MAINTAINERS: Add self to Write After Approval list.
3417
3418 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3419
3420 * disasm.c: New file.
3421 * disasm.h: New file.
3422 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3423 (compare_lines): Ditto.
3424 (dump_insns): Ditto.
3425 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3426 argument.
3427 (do_assembly_only): Ditto.
3428 (do_disassembly): Renamed to gdb_disassembly and moved to
3429 disasm.c. Sdded uiout argument.
3430 * Makefile.in: Add new files. Reorder SFILES list. Update
3431 dependencies. Include libgdb.a later in the insight executable.
3432
3433 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3434
3435 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3436 bfd/elf64-alpha-fbsd.c.
3437
3438 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3439
3440 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3441 i386gnu-tdep.c.
3442
3443 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3444
3445 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3446 __FUNCTION__.
3447 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3448 function name.
3449 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3450 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3451 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3452 (S_msg_sig_post_reply): Ditto.
3453
3454 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3455
3456 * sh-tdep.c (sh_use_struct_convention): Use definition according
3457 to ABI.
3458 (sh_push_arguments): Store in register with correct endianess.
3459 (sh_default_store_return_value): Ditto.
3460 (sh_gdbarch_init): Set sizeof long double to 8.
3461
3462 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3463
3464 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3465 Fix some whitespace problems.
3466
3467 2002-09-27 David Carlton <carlton@math.stanford.edu>
3468
3469 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3470 (mcore-tdep.o): Ditto.
3471 (ns32k-tdep.o): Ditto.
3472 (ns32knbsd-tdep.o): Ditto.
3473 (sh3-rom.o): Ditto.
3474 (vax-tdep.o): Ditto.
3475 * cris-tdep.c: #include "gdb_string.h"
3476 * mcore-tdep.c: Ditto.
3477 * ns32k-tdep.c: Ditto.
3478 * ns32knbsd-tdep.c: Ditto.
3479 * sh3-rom.c: Ditto.
3480 * vax-tdep.c: Ditto.
3481
3482 2002-09-27 David Carlton <carlton@math.stanford.edu>
3483
3484 * config/djgpp/fnchange.lst: Add entries for
3485 gdb/testsuite/gdb.c++/m-static files.
3486
3487 2002-09-27 Jim Wilson <wilson@redhat.com>
3488
3489 * MAINTAINERS: Add myself to the Write After Approval list.
3490
3491 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3492
3493 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3494
3495
3496 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3497
3498 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3499 frame.
3500
3501 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3502
3503 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3504 (rs6000_struct_return_address): Delete variable.
3505 (rs6000_store_struct_return): Update.
3506 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3507 deprecated_extract_struct_value_address.
3508 (rs6000_frame_align): New function.
3509 (rs6000_gdbarch_init): Set frame_align.
3510
3511 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3512
3513 From Grace Sainsbury <graces@redhat.com>:
3514 * Makefile.in (gdbtk-main.o): New target.
3515 (gdb.o): New target.
3516 (main_h): Define.
3517 (main.o): Update dependencies.
3518 (gdb$(EXEEXT)): Add gdb.o.
3519 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3520 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3521 (SUBDIR_GDBTK_CLEAN): Set.
3522 (install-gdbtk): Install the insight binary.
3523 (uninstall-gdbtk): New target.
3524 (all-gdbtk, clean-gdbtk): New rule.
3525 * top.c (use_windows): Default to zero.
3526 * main.c: Include "main.h".
3527 (main): Delete.
3528 (struct captured_main_args): Delete.
3529 (gdb_main): New function.
3530 * main.h: New file.
3531 * gdb.c: New File.
3532
3533 2002-09-25 Andrew Cagney <cagney@redhat.com>
3534
3535 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3536 (frame_map_regnum_to_name): New function.
3537 (frame_map_name_to_regnum): New function.
3538 * frame.h (frame_map_name_to_regnum): Declare.
3539 (frame_map_regnum_to_name): Declare.
3540 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3541 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3542 * parse.c: Do not include "builtin-regs.h".
3543 (target_map_name_to_register): Delete function.
3544 (write_dollar_variable): Use frame_map_name_to_regnum.
3545 * parser-defs.h (target_map_name_to_register): Delete declaration.
3546 * expprint.c: Include "frame.h".
3547 (print_subexp): Use frame_map_regnum_to_name.
3548 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3549 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3550
3551 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3552
3553 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3554 wasn't saved, and the next innermost frame is a dummy, return the
3555 dummy frame's link register.
3556
3557 2002-09-24 Jim Blandy <jimb@redhat.com>
3558
3559 Fix from Paul Breed:
3560 * main.c (captured_main): Add a `break' after the case for 'b'.
3561
3562 2002-09-24 Keith Seitz <keiths@redhat.com>
3563
3564 * varobj.c (c_type_of_child): Use get_target_type instead
3565 of TYPE_TARGET_TYPE.
3566
3567 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3568
3569 * source.c (get_current_or_default_source_symtab_and_line): Remove
3570 function.
3571 (set_default_source_symtab_and_line): New function. Attempts to
3572 determine a source file to list lines from if one is not currently
3573 defined.
3574 (get_current_source_symtab_and_line): Initialize sal.pc and
3575 sal.end fields.
3576 (set_current_source_symtab_and_line): Mark argument as const.
3577 * source.h: Update declarations and comments.
3578 * linespec.c (decode_line_1): Replace call to removed routine above.
3579 * stack.c (print_frame_info_base): Ditto.
3580 * cli/cli-cmds.c (edit_command): Ditto.
3581 (list_command): Ditto.
3582
3583 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3584
3585 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3586 sal.pc and sal.end fields.
3587 (get_current_or_default_source_symtab_and_line): Ditto.
3588 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3589 so we do not cause a new source symtab to be searched for (reverting an
3590 unintentional change from the 2002-09-20 patch).
3591 * scm-lang.c (scm_unpac): Ditto.
3592
3593 2002-09-21 Andrew Cagney <cagney@redhat.com>
3594
3595 * complaints.c (symfile_explanations): Remove new-line from
3596 ``isolated_message''.
3597 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3598 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3599
3600 2002-09-20 Nick Clifton <nickc@redhat.com>
3601
3602 * NEWS: Announce that V850EA ISA is no longer supported.
3603 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3604
3605 2002-09-20 David Carlton <carlton@math.stanford.edu>
3606
3607 * Makefile.in (c-lang.o): Correct dependencies.
3608 (utils.o): Gather dependencies.
3609 (charset.o): Move.
3610 * c-lang.c: #include "gdb_string.h"
3611
3612 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3613
3614 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3615 * cli/cli-cmds.c (list_command): New function. Implements the new
3616 cli edit command.
3617 (_init_cli_cmds): Add new command definition.
3618 * gdb.1: Document edit command.
3619 * doc/gdb.texinfo: Document edit command.
3620
3621 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3622
3623 * source.c: Make global variables current_source_symtab and
3624 current_source_line static.
3625 (list_command): Moved to cli/cli-cmds.c.
3626 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3627 (get_first_line_listed): New accessor function.
3628 (get_lines_to_list): New accessor function.
3629 (get_current_source_symtab_and_line): New function. Retrieves the
3630 position in the source code that we consider current.
3631 (get_current_or_default_source_symtab_and_line): New function.
3632 Like the above but attempts to determine a default position if one
3633 is not currently defined.
3634 (set_current_source_symtab_and_line): New function. Sets the source
3635 code position considered current and returns the previously set one.
3636 (clear_current_source_symtab_and_line): Reset stored information about
3637 a current source line.
3638 (_initialize_source): Remove registration for the "list" command and
3639 its alias.
3640 * source.h: Add declarations for the new functions above.
3641 * symtab.h: Remove declarations for the global variables mentioned
3642 above.
3643 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3644 obtain current source line.
3645 * linespec.c (decode_line_1): Ditto.
3646 * macroscope.c (default_macro_scope): Ditto.
3647 * scm-lang.c (scm_unpac): Ditto.
3648 * stack.c (print_frame_info_base): Ditto.
3649 * symfile.c (clear_symtab_users): Ditto.
3650 * symtab.c (decode_line_spec): Ditto.
3651 * cli/cli-cmds.c (list_command): Moved here from source.c.
3652 (ambiguous_line_spec): Moved here from source.c.
3653 (_init_cli_cmds): Add definition for "list" and its alias.
3654 * Makefile.in: Update dependencies.
3655
3656 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3657
3658 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3659 with what gcc thinks is correct.
3660
3661 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3662
3663 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3664 multiple register push instruction.
3665
3666 2002-09-19 Jim Blandy <jimb@redhat.com>
3667
3668 Add support for distinct host and target character sets.
3669 * charset.c, charset.h: New files.
3670 * c-exp.y: #include "charset.h".
3671 (yylex): Convert character and string literals to the target
3672 character set, before returning them as the semantic value of the
3673 token.
3674 * c-lang.c: #include "charset.h".
3675 (c_emit_char): Use charset-specific methods to recognize
3676 characters with backslash escape forms, to decide which characters
3677 to print literally and which to print using numeric escape
3678 sequences, and to convert target characters to host characters
3679 before printing.
3680 * utils.c: #include "charset.h".
3681 (no_control_char_error): New function.
3682 (parse_escape): Use charset-specific methods to recognize
3683 backslash escapes, parse `control character' notation, and convert
3684 characters from the host character set to the target character set.
3685 * configure.in: Set the default host character set.
3686 Check where to find iconv, and what its argument types might be.
3687 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3688 * Makefile.in (SFILES): List charset.c.
3689 (COMMON_OBS): List charset.o.
3690 (charset.o): New rule.
3691 (charset_h): New header dependency variable.
3692 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3693 (LIBICONV): New variable, set by configure.
3694 (CLIBS): Include $(LIBICONV) here.
3695 * aclocal.m4, config.in, configure: Regenerated.
3696
3697 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3698
3699 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3700 bison 1.35 warning.
3701
3702 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3703
3704 * gdb_mbuild.sh: New file.
3705
3706 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3707
3708 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3709
3710 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3711
3712 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3713 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3714 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3715 valops.c, value.h: Revert previous change.
3716
3717 2002-09-18 Michael Snyder <msnyder@redhat.com>
3718
3719 Preliminary support for Objective-C:
3720 * defs.h (language_objc): New enum value.
3721 (puts_filtered_tabular): Declaration only, exported from utils.c.
3722 (skip_quoted): Delete, declared in completer.h.
3723 * c-exp.y: Include completer.h.
3724 * p-exp.y: Ditto.
3725 * jv-exp.y: Ditto.
3726 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3727 New operator enum values.
3728 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3729 * language.c (binop_result_type): Handle language_objc case.
3730 (integral_type, character_type, string_type, boolean_type,
3731 structured_type, binop_type_check): Ditto.
3732 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3733 (struct objc_specific): Add to general_symbol_info.
3734 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3735 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3736 * parser-defs.h (struct objc_class_str): New struct type.
3737 (start_msglist, end_msglist, add_msglist): Declaration only,
3738 exported from objc-lang.c.
3739 * value.h (value_of_local, value_nsstring,
3740 call_function_by_hand_expecting_type): Exported from valops.c.
3741 * valops.c (find_function_addr): Export.
3742 (call_function_by_hand_expecting_type): New function.
3743 (value_of_local): New function.
3744 * symfile.c (init_filename_language_table): Add ".m" extension
3745 for Objective-C.
3746 * utils.c (puts_filtered_tabular): New function.
3747 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3748 (set/show demangle): Extend help-string to refer to ObjC.
3749 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3750 * stabsread.c (symbol_reference_defined): Objective-C symbols
3751 may contain colons: make allowances when scanning stabs strings
3752 for colons.
3753 (objc_find_colon): New function.
3754 * printcmd.c (address_info): If language == objc then print
3755 "self" instead of "this".
3756 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3757 OP_NSSTRING, and OP_SELF.
3758 (prefixify_subexp): Ditto.
3759 * source.c (print_source_lines): Mention objc in comment.
3760 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3761 method names.
3762
3763 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3764
3765 * complaints.h: Update copyright.
3766 (struct complaints): Declare.
3767 (struct complaint): Make `message' constant.
3768 (internal_complaint): Declare.
3769 (complaint): Declare.
3770 (complaint_root): Delete declaration.
3771 (symfile_complaints): Delete declaration.
3772 (struct complaints): Add opaque declaration.
3773 (clear_complaints): Add a complaints parameter.
3774 * complaints.c: Update copyright.
3775 (enum complaint_series): Define.
3776 (complaint_root): Delete.
3777 (struct complaints): Define.
3778 (complaint_sentinel, symfile_complaint_book): New variables.
3779 (symfile_explanations, symfile_complaints): New variables.
3780 New variables.
3781 (get_complaints): New function.
3782 (vcomplaint): New function.
3783 (complaint): New function.
3784 (internal_complaint): New function.
3785 (complain): Call vcomplain with symfile_complaint.
3786 (clear_complaints): Rewrite.
3787 (_initialize_complaints): Use add_setshow_command.
3788 * Makefile.in (complaints.o): Update dependencies.
3789 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3790 to call to clear_complaints.
3791 (new_symfile_objfile, reread_symbols): Ditto.
3792 (oldsyms_complaint): Delete.
3793 (empty_symtab_complaint, unknown_option_complaint): Delete.
3794 (free_named_symtabs): Use complaint instead of complain.
3795
3796 2002-09-18 Michael Snyder <msnyder@redhat.com>
3797
3798 Contributed by Apple Computer, Inc. Merged with current sources
3799 by Adam Fedor <fedor@doc.com> [cagney].
3800
3801 * objc-lang.c: First clean-up round: comments, indentation.
3802 * objc-lang.h: Ditto.
3803 * objc-lang.y: Ditto.
3804
3805 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3806
3807 * maint.c (maintenance_internal_error): Print the parameter as the
3808 error message.
3809 (maintenance_internal_warning): New function.
3810 (_initialize_maint_cmds): Add command `maint internal-warning'.
3811
3812 * defs.h (internal_warning, internal_vwarning): Declare.
3813 * utils.c (struct internal_problem): Define.
3814 (internal_vproblem): New function.
3815 (internal_warning): New function.
3816 (internal_vwarning): New function.
3817 (internal_warning_problem, internal_error_problem): New variables.
3818 (internal_verror): Just call internal_vproblem.
3819
3820 2002-09-18 Michael Snyder <msnyder@redhat.com>
3821
3822 * objc-lang.c: New file, support for Objective-C.
3823 Preliminary check-in, not yet integrated into gdb.
3824 * objc-lang.h: New file.
3825 * objc-exp.y: New file.
3826
3827 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3828
3829 * infrun.c (signal_stop_update): Convert definition to ISO C.
3830 (signal_print_update): Ditto.
3831 (signal_pass_update): Ditto.
3832 * inflow.c (terminal_save_ours): Ditto.
3833
3834 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3835 comments.
3836
3837 * config/djgpp/fnchange.lst: Handle name clashes between
3838 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3839 bfd/coff-tic80.c.
3840
3841 * i386-linux-tdep.h: Fix tipo.
3842
3843 2002-09-18 Adam Fedor <fedor@gnu.org>
3844
3845 * MAINTAINERS: Add myself to the Write After Approval list.
3846
3847 2002-09-18 Jim Blandy <jimb@redhat.com>
3848
3849 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3850 texthigh and textlow to reader-specific structs caused
3851 objfile_relocate to miss them. This is fixable, but the work that
3852 the change was supposed to prepare GDB for never got done anyway.
3853
3854 2002-09-18 David Carlton <carlton@math.stanford.edu>
3855
3856 * MAINTAINERS: Alphabetize Write After Approval list.
3857
3858 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3859
3860 Fix PR gdb/709
3861 * values.c (value_static_field): Call read_var_value.
3862
3863 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3864
3865 * valops.c (hand_function_call): Align the initial stack pointer
3866 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3867 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3868 return value.
3869 * mips-tdep.c (mips_frame_align): New function.
3870 (mips_gdbarch_init): Set frame_align.
3871 * gdbarch.sh (FRAME_ALIGN): New method.
3872 * gdbarch.h, gdbarch.c: Re-generate.
3873
3874 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3875
3876 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3877 registers.
3878
3879 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3880
3881 * NEWS: Mention that MIPS $fp behavior changed.
3882 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3883 reference to FP_REGNUM.
3884 (mipsnbsd_cannot_store_register): Ditto.
3885 * mips-linux-nat.c: Update copyright.
3886 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3887 (mips_linux_cannot_store_register): Ditto.
3888 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3889 * config/mips/tm-mips.h: Update copyright.
3890 (FP_REGNUM): Delete macro.
3891 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3892 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3893 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3894 (mips_r3041_reg_names, mips_r3051_reg_names)
3895 (mips_r3081_reg_names): Replace "fp" with "".
3896 Fix PR gdb/480.
3897
3898 2002-09-17 Theodore A. Roth <troth@verinet.com>
3899
3900 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3901 generic_read_register_dummy() (PR gdb/703).
3902 (avr_push_return_address): #if 0 out unused vars.
3903 (avr_gdbarch_init): Enable use of avr_push_return_address().
3904
3905 2002-09-17 Michael Snyder <msnyder@redhat.com>
3906
3907 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3908 RTE will take care of it.
3909
3910 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3911
3912 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3913 invalid, return SP_REGNUM.
3914
3915 2002-09-17 Michael Snyder <msnyder@redhat.com>
3916
3917 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3918 point registers without sign extension.
3919
3920 2002-09-17 Andrew Cagney <cagney@redhat.com>
3921
3922 * blockframe.c (deprecated_read_register_dummy): Rename
3923 generic_read_register_dummy.
3924 * frame.c (frame_unwind_signed_register): New function.
3925 (frame_unwind_unsigned_register): New function.
3926 * frame.h (frame_unwind_signed_register): Declare.
3927 (frame_unwind_unsigned_register): Declare.
3928 (deprecated_read_register_dummy): Rename
3929 generic_read_register_dummy.
3930
3931 * h8300-tdep.c (h8300_frame_chain): Update.
3932 (h8300_frame_saved_pc): Update.
3933 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3934 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3935 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3936 (s390_frame_chain): Update.
3937 * v850-tdep.c (v850_find_callers_reg): Update.
3938 (v850_frame_saved_pc): Update.
3939 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3940 (m32r_find_callers_reg): Update.
3941 (m32r_frame_saved_pc): Update.
3942 * sh-tdep.c (sh_find_callers_reg): Update.
3943 (sh64_get_saved_pr): Update.
3944 (sh_init_extra_frame_info): Update.
3945 (sh_init_extra_frame_info): Update.
3946 (sh64_init_extra_frame_info): Update.
3947 (sh64_init_extra_frame_info): Update.
3948 * mcore-tdep.c (mcore_find_callers_reg): Update.
3949 (mcore_frame_saved_pc): Update.
3950 (mcore_init_extra_frame_info): Update.
3951 * i386-tdep.c (i386_frame_saved_pc): Update.
3952 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3953 (ia64_init_extra_frame_info): Update.
3954 (ia64_init_extra_frame_info): Update.
3955 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3956 * cris-tdep.c (cris_init_extra_frame_info): Update.
3957 * avr-tdep.c (avr_frame_chain): Update.
3958 (avr_init_extra_frame_info): Update.
3959 (avr_frame_saved_pc): Update.
3960 * arm-tdep.c (arm_find_callers_reg): Update.
3961 (arm_init_extra_frame_info): Update.
3962 (arm_frame_saved_pc): Update.
3963
3964 2002-09-17 Tom Tromey <tromey@redhat.com>
3965
3966 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3967 is "'".
3968
3969 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3970
3971 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3972 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3973 NEXT_PROLOGUE_INSN.
3974 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3975 NEXT_PROLOGUE_INSN.
3976
3977 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3978
3979 * osfsolib.c: Remove file, replaced by solib-osf.c.
3980 * Makefile.in: Remove compilation rules for osfsolib.c.
3981
3982 2002-09-16 David Carlton <carlton@math.stanford.edu>
3983
3984 * cp-valprint.c (cp_print_class_method): Correct args to
3985 check_stub_method_group.
3986
3987 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3988
3989 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3990 `set architecture'. Unify naming convention of functions.
3991 (h8300_skip_prologue): Improve prologue analysis.
3992 (h8300_push_arguments): Rewritten to more closely match GCC's
3993 bizarre argument-passing behavior, along with the comment describing
3994 said behavior.
3995 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3996 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3997 sim, remote-e7000.c, remote-hms.c and remote.c
3998
3999 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4000
4001 * i386-tdep.c (gdb_print_insn_i386): Removed.
4002 (i386_print_insn): New function.
4003 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4004 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4005 tm_print_insn_info.
4006
4007 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4008
4009 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4010 zero.
4011
4012 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4013
4014 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4015 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4016 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4017
4018 2002-09-13 Christopher Faylor <cgf@redhat.com>
4019
4020 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4021
4022 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4023
4024 * gdbtypes.c (check_stub_method): Make static.
4025 (check_stub_method_group): New function.
4026 * gdbtypes.h: Update prototypes.
4027 * cp-support.c: New file.
4028 * cp-support.h: New file.
4029
4030 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4031 (update_method_name_from_physname): New function.
4032 (read_member_functions): Correct method names for operators
4033 and v3 constructors/destructors. Separate v2 constructors and
4034 destructors.
4035 * Makefile.in (stabsread.o): Update dependencies.
4036 (SFILES): Add cp-support.c.
4037 (COMMON_OBS): Add cp-support.o.
4038 (cp_support_h, cp-support.o): Add.
4039
4040 * cp-valprint.c (cp_print_class_method): Call
4041 check_stub_method_group instead of check_stub_method. Remove
4042 extraneous QUITs.
4043 * p-valprint.c (pascal_object_print_class_method): Likewise.
4044 * valops.c (search_struct_method): Likewise.
4045 (find_method_list, value_struct_elt_for_reference): Likewise.
4046
4047 2002-09-13 Andrew Cagney <cagney@redhat.com>
4048
4049 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4050 * gdbarch.h, gdbarch.c: Regenerate.
4051
4052 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4053
4054 * frame.c (find_saved_register): Delete function.
4055 * frame.h (find_saved_register): Delete declaration.
4056 Fix PR gdb/631.
4057
4058 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4059
4060 * mips-tdep.c (read_next_frame_reg): Re-hack using
4061 frame_register_unwind.
4062
4063 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4064
4065 * mips-tdep.c (mips_get_saved_register): Re-hack using
4066 frame_register_unwind.
4067
4068 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4069
4070 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4071 vector. Will be useful for Interix.
4072 * gdbarch.h, gdbarch.c: Regenerate.
4073
4074 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4075 name of the malloc function by NAME_OF_MALLOC.
4076
4077 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4078
4079 * value.h (find_function_in_inferior): Add const keyword to
4080 one of the parameters. Allows us to invoke this function with
4081 a const char *.
4082 * valops.c (find_function_in_inferior): Likewise.
4083
4084 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4085
4086 * exec.c (xfer_memory): Fix compilation warning with old versions
4087 of GCC.
4088 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4089
4090 2002-09-12 David Carlton <carlton@math.stanford.edu>
4091
4092 * symtab.h: Run through gdb_indent.h.
4093 Add 2002 to Copyright year list.
4094
4095 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4096
4097 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4098 mach constants.
4099 * MAINTAINERS: Add myself to write after approval list.
4100
4101 2002-09-11 J. Brobecker <brobecker@gnat.com>
4102
4103 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4104
4105 2002-09-11 J. Brobecker <brobecker@gnat.com>
4106
4107 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4108 Interix.
4109
4110 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4111
4112 * procfs.c (do_detach): Clear current signal, not just fault.
4113 Corrects problem with breakpoint trap signal leaking to detached
4114 process on Tru64.
4115
4116 2002-09-10 Michael Snyder <msnyder@redhat.com>
4117
4118 * buildsym.c (finish_block): Protect against null pointer.
4119
4120 2002-09-10 Andrew Cagney <cagney@redhat.com>
4121
4122 * infcmd.c (default_print_registers_info): Send all output to
4123 ``file'' instead of ``gdb_stdout''.
4124
4125 2002-09-10 Michael Snyder <msnyder@redhat.com>
4126
4127 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4128 LONGEST, and use signed register read (addresses are sign-
4129 extended for mips).
4130
4131 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4132
4133 * event-loop.c (gdb_do_one_event): Make public.
4134 * event-loop.h (gdb_do_one_event): Declare.
4135
4136 2002-09-10 Jeff Law <law@redhat.com>
4137
4138 * infttrace.c (child_resume): Simplify and rework to avoid
4139 TT_PROC_CONTINUE.
4140
4141 2002-09-09 Fred Fish <fnf@intrinsity.com>
4142
4143 * printcmd.c (print_scalar_formatted): "len" is the number of
4144 target bytes, NOT the number of target bits.
4145
4146 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4147
4148 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4149 * top.c (init_main): Set rl_terminal_name.
4150
4151 2002-09-08 Aidan Skinner <aidan@velvet.net>
4152
4153 * ada-lang.c (ada_array_bound, ada_type_match,
4154 _initialize_ada_language): Fix K&R definitions.
4155 * ada-tasks.c (get_current_task): Fix K&R definitions.
4156 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4157
4158 2002-09-07 Christopher Faylor <cgf@redhat.com>
4159
4160 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4161 Add XP.
4162
4163 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4164
4165 * i386-tdep.c (i386_register_virtual_type,
4166 i386_register_convertible, i386_register_convert_to_virtual,
4167 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4168 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4169 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4170 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4171 Don't set push_arguments twice.
4172
4173 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4174 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4175 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4176 sigtramp_end to NULL.
4177 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4178 defines.
4179 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4180
4181 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4182 whitespace.
4183
4184 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4185 * gdbarch.h, gdbarch.c: Re-generate.
4186 * blockframe.c (find_pc_sect_partial_function): Convert to use
4187 SIGTRAMP_START_P predicate.
4188
4189 2002-09-05 Michael Snyder <msnyder@redhat.com>
4190
4191 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4192 generic_dummy_frame method and old method. Also distinguish
4193 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4194 (arm_extract_return_value): Use new regcache method.
4195
4196 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4197 adjustment that doesn't conform to the ABI.
4198 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4199 saved regcache, not from current regcache.
4200
4201 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4202
4203 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4204 * README: Update.
4205
4206 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4207
4208 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4209 if arm_apcs_32 is false.
4210
4211 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4212
4213 GDB 5.3 branch created.
4214
4215 2002-09-03 Theodore A. Roth <troth@verinet.com>
4216
4217 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4218 generic_unwind_get_saved_register.
4219
4220 2002-09-03 David Carlton <carlton@math.stanford.edu>
4221
4222 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4223 argument (PR gdb/653). Update call to smash_to_method_type.
4224 (read_structure_scope): Update call to dwarf2_add_member_fn.
4225
4226 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4227
4228 * x86-64-linux-tdep.c: Include gdb_string.h
4229 * x86-64-linux-nat.c: Ditto.
4230
4231 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4232
4233 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4234 when YYDEBUG is set to 1.
4235 * c-exp.y: Likewise.
4236 * f-exp.y: Likewise.
4237 * jv-exp.y: Likewise.
4238 * m2-exp.y: Likewise.
4239 * p-exp.y: Likewise.
4240
4241 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4242
4243 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4244 dependency list.
4245 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4246 solib_svr4_fetch_link_map_offsets to
4247 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4248 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4249 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4250 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4251 solib-svr4.o, and solib-legacy.o.
4252 * config/i386/tm-nbsd.h: Include solib.h.
4253
4254 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4255
4256 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4257 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4258 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4259 comment noting that this needs its own target configuration.
4260 * config/i386/nbsd.mt: New file.
4261 * config/i386/nbsdaout.mt: Remove.
4262 * config/i386/nbsdelf.mt: Ditto.
4263 * config/i386/tm-nbsdaout.h: Ditto.
4264
4265 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4266
4267 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4268 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4269 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4270 tdep->sigtramp_end.
4271 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4272 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4273 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4274
4275 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4276
4277 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4278 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4279 * i386-tdep.h (i386bsd_init_abi): New prototype.
4280 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4281 function declaration.
4282 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4283 for NetBSD-a.out or NetBSD-ELF.
4284 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4285 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4286 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4287 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4288 and nbsd-tdep.h.
4289 (i386nbsd_pc_in_sigtramp): New function.
4290 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4291 i386nbsd_pc_in_sigtramp.
4292 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4293 and i386nbsdelf_init_abi OS ABI handlers.
4294 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4295 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4296
4297 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4298
4299 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4300 registers if the target really has them.
4301
4302 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4303
4304 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4305 than nbsd-tdep.h.
4306
4307 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4308
4309 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4310 list.
4311 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4312 (alphanbsd_skip_sigtramp_frame): New functions.
4313 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4314 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4315 to alphanbsd_sigcontext_addr.
4316
4317 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4318
4319 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4320 list.
4321 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4322 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4323 nbsd_pc_in_sigtramp.
4324 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4325 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4326 * nbsd-tdep.c: Include gdb_string.h.
4327 (nbsd_pc_in_sigtramp): New function.
4328 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4329 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4330 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4331 ppcnbsd_pc_in_sigtramp.
4332 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4333 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4334 shnbsd_pc_in_sigtramp.
4335 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4336 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4337 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4338
4339 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4340
4341 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4342 watchpoints to NULL.
4343 (insert_breakpoints): set val field of watchpoints if NULL.
4344
4345
4346 2002-08-29 Jim Blandy <jimb@redhat.com>
4347
4348 * symtab.c (lookup_symbol_aux): In the cases where we find a
4349 minimal symbol of an appropriate name and use its address to
4350 select a symtab to read and search, use `name' (as passed to us)
4351 as the demangled name when searching the symtab's global and
4352 static blocks, not the minsym's name.
4353
4354 2002-08-29 Keith Seitz <keiths@redhat.com>
4355
4356 * stack.c (print_frame_info_base): Always set current_source_symtab
4357 and current_source_line.
4358
4359 2002-08-29 Donn Terry <donnte@microsoft.com>
4360
4361 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4362
4363 2002-08-28 Keith Seitz <keiths@redhat.com>
4364
4365 * stack.c (select_frame): Add FIXME concerning selected-frame
4366 events.
4367 (select_frame_command): Send selected-frame-level-changed
4368 event notification, but only if the level actually changed.
4369 (up_silently_base): Add selected-frame-level-changed event
4370 notification.
4371 (down_silently_base): Likewise.
4372
4373 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4374
4375 * Makefile.in: Update dependencies for all gdb/*.c files.
4376
4377 2002-08-27 Tom Tromey <tromey@redhat.com>
4378
4379 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4380 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4381 Update dependencies.
4382 * i387-tdep.c: Include gdb_string.h.
4383 * osabi.c: Likewise.
4384 * i386-linux-nat.c: Likewise.
4385 * lin-lwp.c: Likewise.
4386 * ax-gdb.c: Likewise.
4387 * signals/signals.c: Likewise.
4388 * jv-valprint.c: Likewise.
4389 * p-lang.c: Likewise.
4390 * c-valprint.c: Likewise.
4391 * cp-abi.c: Likewise.
4392
4393 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4394
4395 * cli/cli-script.h (copy_command_lines): Export.
4396 * breakpoint.c: Include cli/cli-script.h.
4397 * Makefile.in (breakpoint.o): Update dependencies.
4398
4399 2002-08-26 Michael Snyder <msnyder@redhat.com>
4400
4401 * breakpoint.c (insert_breakpoints): Protect all references
4402 to 'process_warning'. Shorten long lines.
4403
4404 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4405
4406 * cli/cli-script.c (copy_command_lines): New function.
4407 * defs.h (copy_command_lines): Export.
4408 * testsuite/gdb.base/commands.exp: New tests for commands
4409 attached to a temporary breakpoint, and for commands that
4410 delete the breakpoint they are attached to.
4411
4412 2002-08-26 Michael Snyder <msnyder@redhat.com>
4413
4414 * breakpoint.c (bpstat_stop_status): Instead of copying the
4415 pointer to the breakpoint commands struct, make a new copy
4416 of the struct and point to that.
4417 (bpstat_clear): Free the commands struct.
4418 (bpstat_clear_actions): Free the commands struct.
4419 (bpstat_do_actions): Free the command actions. Also execute
4420 the local cleanups, instead of deleting them.
4421 (delete_breakpoint): Leave the commands field of the bpstat
4422 chain alone -- it will be freed later.
4423
4424 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4425
4426 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4427 deleted in 2002-08-20 commit. This function is still used by
4428 ppc-linux-nat.c.
4429
4430 2002-08-26 Keith Seitz <keiths@redhat.com>
4431
4432 * gdb-events.sh: Add selected-frame-level-changed event.
4433 * gdb-events.c: Regenerated.
4434 * gdb-events.h: Regenerated.
4435
4436 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4437
4438 Fix PR gdb/393:
4439 * inflow.c (terminal_save_ours): New function to save terminal
4440 settings.
4441 * inferior.h (terminal_save_ours): Declare.
4442 * target.c (debug_to_terminal_save_ours): New function.
4443 (cleanup_target): Defaults to_terminal_save_ours.
4444 (update_current_target): Inherit to_terminal_save_ours.
4445 (setup_target_debug): Set to_terminal_save_ours.
4446 * target.h (target_terminal_save_ours): New to save terminal settings.
4447 (target_ops): New member to_terminal_save_ours.
4448 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4449 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4450 * inftarg.c (init_child_ops): Likewise.
4451 * m3-nat.c (init_m3_ops): Likewise.
4452 * procfs.c (init_procfs_ops): Likewise.
4453 * wince.c (init_child_ops): Likewise.
4454 * win32-nat.c (init_child_ops): Likewise.
4455 * sol-thread.c (init_sol_thread_ops): Likewise.
4456
4457 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4458
4459 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4460 use regcache_* functions.
4461 (i386_gdbarch_init): Set store_return_value instead of
4462 deprecated_store_return_value.
4463
4464 * regcache.c (regcache_raw_write_signed,
4465 regcache_raw_write_unsigned): New functions.
4466 * regcache.h (regcache_raw_write_signed,
4467 regcache_raw_write_unsigned): New prototypes.
4468
4469 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4470
4471 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4472 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4473 source file dependencies. Cleanup corresponding generator rules.
4474
4475 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4476
4477 * regcache.h (register_offset_hack): Declare.
4478 (regcache_cooked_read_using_offset_hack): Declare.
4479 (regcache_cooked_write_using_offset_hack): Declare.
4480
4481 * regcache.c (register_offset_hack): New function.
4482 (regcache_cooked_read_using_offset_hack): New function.
4483 (regcache_cooked_write_using_offset_hack): New function.
4484 (regcache_dump): Check that the registers, according to their
4485 offset, are packed hard against each other.
4486 (cooked_xfer_using_offset_hack): New function.
4487
4488 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4489
4490 * regcache.c (struct regcache_descr): Add field register_type.
4491 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4492 in as a parameter
4493 (init_regcache_descr): Initialize register_type. Pass the descr
4494 to init_legacy_regcache_descr. Use register_type instead of
4495 REGISTER_VIRTUAL_TYPE.
4496 (register_type): New function.
4497 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4498 * regcache.h (register_type): Declare.
4499
4500 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4501
4502 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4503 instead of deprecated_store_return_value. Fix fallout from
4504 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4505
4506 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4507
4508 * regcache.c (max_register_size): New function.
4509 (init_legacy_regcache_descr): Ensure that max_register_size is
4510 large enough for REGISTER_VIRTUAL_SIZE.
4511 * regcache.h (max_register_size): Declare.
4512
4513 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4514
4515 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4516 store_return_value.
4517 (e500_extract_return_value): Change type of valbuf pointer to
4518 void.
4519
4520 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4521
4522 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4523 workaround.
4524
4525 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4526 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4527 long long) to prevent compiler warning on 64-bit systems.
4528
4529 2002-08-23 Andrew Cagney <cagney@redhat.com>
4530
4531 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4532 (DEPRECATED_STORE_RETURN_VALUE): New method.
4533 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4534 * gdbarch.h, gdbarch.c: Re-generate.
4535
4536 * values.c (set_return_value): Pass current_regcache to
4537 STORE_RETURN_VALUE.
4538 * arch-utils.h (legacy_store_return_value): Declare.
4539 * arch-utils.c (legacy_store_return_value): New function.
4540 (legacy_extract_return_value): Update parameters.
4541
4542 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4543 STORE_RETURN_VALUE.
4544 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4545 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4546 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4547 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4548 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4549 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4550 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4551 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4552 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4553 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4554
4555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4556 * i386-tdep.c (i386_extract_return_value): Update.
4557 * arch-utils.c (legacy_extract_return_value): Update.
4558 * frv-tdep.c (frv_gdbarch_init): Update.
4559 * cris-tdep.c (cris_gdbarch_init): Update.
4560 * d10v-tdep.c (d10v_gdbarch_init): Update.
4561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4562 * m68k-tdep.c (m68k_gdbarch_init): Update.
4563 * mcore-tdep.c (mcore_gdbarch_init): Update.
4564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4565 * s390-tdep.c (s390_gdbarch_init): Update.
4566 * sparc-tdep.c (sparc_gdbarch_init): Update.
4567 * sh-tdep.c (sh_gdbarch_init): Update.
4568 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4569 * v850-tdep.c (v850_gdbarch_init): Update.
4570 * avr-tdep.c (avr_gdbarch_init): Update.
4571 * ia64-tdep.c (ia64_gdbarch_init): Update.
4572 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4573 * vax-tdep.c (vax_gdbarch_init): Update.
4574 * alpha-tdep.c (alpha_gdbarch_init): Update.
4575 * arm-tdep.c (arm_gdbarch_init): Update.
4576 * mips-tdep.c (mips_gdbarch_init): Update.
4577 * i386-tdep.c (i386_gdbarch_init): Update.
4578
4579 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4580
4581 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4582 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4583
4584 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4585
4586 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4587 problems.
4588
4589 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4590
4591 * infrun.c (handle_inferior_event): Move a comment outside of a
4592 function call, in order to avoid indent reformatting this part
4593 of the code in an unreadable way.
4594
4595 2002-08-23 Grace Sainsbury <graces@redhat.com>
4596
4597 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4598 when breakpoints fail. Move general breakpoint error messages to
4599 insert_breakpoints.
4600 * breakpoint.c (insert_breakpoints): Change warnings when
4601 breakpoints are nto inserted to specify the type. Remove call to
4602 memory_error when hardware breakpoints can't be inserted. Remove
4603 multiple calls to warning so all messages are sent to the user at
4604 once.
4605 (delete_breakpoints): Make insert error messsages more explicit.
4606
4607 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4608
4609 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4610 gdbserver/ChangeLog.
4611
4612 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4613
4614 * i386-tdep.c: Include "objfiles.h".
4615 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4616 skip_trampoline_code.
4617 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4618 (CPLUS_MARKER): Define to '.'.
4619
4620 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4621 member.
4622 (linux_corefile_thread_callback): Increase args->num_notes.
4623 (linux_make_note_section): Initialize thread_args.num_notes, and
4624 use it to determine whether notes for any threads were created.
4625
4626 2002-08-23 Donn Terry <donnte@microsoft.com>
4627
4628 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4629 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4630 and PCUNKILL.
4631 (write_with_trace): Conditionalize out the switch branch handling
4632 PCSHOLD if the corresponding macro is not defined. Likewise for
4633 PRSABORT and PRSTOP.
4634 This change will be needed by the Interix port.
4635
4636 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4637
4638 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4639 write_register wherever possible instead of manipulating the
4640 register bytes directly.
4641 Assign VALUE_CONTENTS to a variable and use that.
4642 The GPR numbers are now dependent on the architecture.
4643
4644 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4645
4646 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4647 ev_offset fields.
4648 (skip_prologue): Add support for BookE/e500 instructions.
4649 (e500_extract_return_value): New function.
4650 (frame_get_saved_regs): Add support for saving ev registers and
4651 pseudo gpr's.
4652 (e500_store_return_value): New function.
4653 (rs6000_gdbarch_init): Move up default intializations of
4654 deprecated_extract_return_value and store_return_value. Overwrite
4655 init of store_return_value with e500 specific version.
4656 Set extract_return_value for e500.
4657
4658 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4659
4660 * blockframe.c (generic_call_dummy_register_unwind): Use
4661 regcache_cooked_read to catch cases in which the variable is
4662 stored in a pseudo register.
4663
4664 2002-08-22 Andrew Cagney <cagney@redhat.com>
4665
4666 * NEWS: Mention that the i960 has been made obsolete.
4667 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4668 i960-tdep.c
4669 (remote-nrom.o): Obsolete target.
4670 (remote-nindy.o, i960-tdep.o): Ditto.
4671 * remote-nrom.c: Make file obsolete.
4672 * remote-nindy.c, remote-vx960.c: Ditto.
4673 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4674 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4675 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4676 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4677 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4678 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4679 i960-*-vxworks* obsolete.
4680 * MAINTAINERS: Note that the i960 is obsolete.
4681
4682 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4683
4684 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4685 detach to allow reinitialization.
4686
4687 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4688
4689 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4690 attempt).
4691
4692 2002-08-22 Jim Blandy <jimb@redhat.com>
4693
4694 * coffread.c (coff_symfile_read): Don't try to read the line
4695 number table from disk if the image file doesn't have a symbol
4696 table; we'll never actually look at the info anyway, and Windows
4697 ships DLL's with bogus file offsets for the line number data.
4698
4699 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4700
4701 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4702 an e500 executable.
4703
4704 2002-08-21 Michael Snyder <msnyder@redhat.com>
4705
4706 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4707 (MSYMBOL_SIZE): Replace macro with function.
4708 (DEFAULT_MIPS_TYPE): Delete unused macro.
4709 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4710 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4711
4712 2002-08-21 Jim Blandy <jimb@redhat.com>
4713
4714 * valops.c (value_cast): Simplify and correct logic for doing a
4715 static cast from a pointer to a base class to a pointer to a
4716 derived class.
4717
4718 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4719
4720 * infcmd.c (default_print_registers_info): Replace
4721 do_registers_info.
4722 (registers_info): Use gdbarch_print_registers_info instead of
4723 DO_REGISTERS_INFO.
4724 * inferior.h (default_print_registers_info): Replace
4725 do_registers_info.
4726 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4727 (DO_REGISTERS_INFO): Change to a predicate function.
4728 * gdbarch.h, gdbarch.c: Regenerate.
4729
4730 2002-08-21 Keith Seitz <keiths@redhat.com>
4731
4732 * gdb-events.sh: Add target-changed event.
4733 * gdb-events.c: Regenerated.
4734 * gdb-events.c: Regenerated.
4735 * valops.c (value_assign): Add target-changed event notification
4736 to inlval_register, lval_memory, and lval_reg_frame_relative.
4737
4738 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4739
4740 * NEWS: Add an entry regarding the improvement of the next/step
4741 operation on Alpha Tru64 multi-processor machines.
4742
4743 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4744
4745 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4746 directores.
4747 * Makefile.in: Update all _h macro definitions.
4748 * Makefile.in (install-gdbtk): Move to install section.
4749 (rdi-share/libangsd.a): Move to end of file.
4750
4751 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4752
4753 * frame.c (frame_register_unwind): When a register, set addrp to
4754 the register's byte.
4755
4756 2002-08-20 Michael Snyder <msnyder@redhat.com>
4757
4758 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4759 used locally, so move them from the target machine header to here.
4760 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4761 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4762 Make static.
4763 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4764
4765 2002-08-20 Andrew Cagney <cagney@redhat.com>
4766
4767 * NEWS: Mention that the Apollo line was made obsolete.
4768 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4769 m68*-hp-hpux* obsolete.
4770 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4771 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4772 * buildsym.c (make_blockvector): Make static.
4773 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4774 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4775 (ALLDEPFILES): Remove dstread.c.
4776 (dstread.o): Obsolete make rule.
4777 * dstread.c: Makefile obsolete.
4778 * dst.h: Ditto.
4779 * config/m68k/hp300hpux.mt: Ditto.
4780 * config/m68k/hp300hpux.mh: Ditto.
4781 * config/m68k/hp300bsd.mt: Ditto.
4782 * config/m68k/hp300bsd.mh: Ditto.
4783 * config/m68k/apollo68b.mt: Ditto.
4784 * config/m68k/apollo68v.mh: Ditto.
4785 * config/m68k/apollo68b.mh: Ditto.
4786
4787 2002-08-20 Michael Snyder <msnyder@redhat.com>
4788
4789 * mips-tdep.c (mips_in_return_stub): Make static.
4790 (mips_gdbarch_init): Set in_solib_return_trampoline.
4791 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4792
4793 2002-08-20 Michael Snyder <msnyder@redhat.com>
4794
4795 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4796 * gdbarch.c, gdbarch.h: Regenerate.
4797 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4798 Add.
4799 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4800
4801 2002-08-20 Michael Snyder <msnyder@redhat.com>
4802
4803 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4804 (mips_gdbarch_init): Set skip_trampoline_code,
4805 in_solib_call_trampoline.
4806 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4807 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4808
4809 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4810
4811 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4812
4813 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4814 vector type for ev registers.
4815 (e500_pseudo_register_read): New function.
4816 (e500_pseudo_register_write): New function.
4817 (e500_dwarf2_reg_to_regnum): New function.
4818 (PPC_UISA_NOFP_SPRS): New macro.
4819 (PPC_EV_REGS): New macro.
4820 (PPC_GPRS_PSEUDO_REGS): New macro.
4821 (registers_e500): New register set for e500.
4822 (variants): Add e500 variant.
4823 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4824 before setting architectural dependent variations. Initialize ev
4825 registers numbers. Add case for e500 architecture. Set the
4826 number of pseudo registers.
4827
4828 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4829
4830 * rs6000-tdep.c: Clean up comments.
4831
4832 2002-08-20 Andrew Cagney <cagney@redhat.com>
4833
4834 * h8300-tdep.c: Re-indent file.
4835
4836 2002-08-20 Jim Blandy <jimb@redhat.com>
4837
4838 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4839 default for this.
4840
4841 2002-08-20 Keith Seitz <keiths@redhat.com>
4842
4843 * breakpoints.c (watch_command_1): Use internal breakpoint
4844 when setting a watchpoint_scope breakpoint.
4845
4846 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4847
4848 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4849 (build_builtin_type_vec64i): Ditto.
4850 (build_builtin_type_vec128): Ditto.
4851 (build_builtin_type_vec128i): Ditto.
4852
4853 2002-08-19 Michael Snyder <msnyder@redhat.com>
4854
4855 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4856 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4857 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4858 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4859 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4860 CALL_DUMMY_ADDRESS): Delete.
4861 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4862 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4863 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4864 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4865 push_return_address.
4866 (mips_register_raw_size, mips_eabi_use_struct_convention,
4867 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4868 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4869 mips_init_extra_frame_info, mips_eabi_push_arguments,
4870 mips_n32n64_push_arguments, mips_push_return_address,
4871 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4872 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4873
4874 2002-08-19 Michael Snyder <msnyder@redhat.com>
4875
4876 * mips-tdep.c (mips_frame_num_args): New function.
4877 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4878 frame_saved_pc, frame_args_address, frame_locals_address,
4879 frame_num_args, and frame_args_skip.
4880 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4881 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4882 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4883 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4884
4885 2002-08-20 Michael Snyder <msnyder@redhat.com>
4886
4887 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4888 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4889 * mips-tdep.c (mips_store_struct_return): New function.
4890 (mips_extract_struct_value_address): New function.
4891 (mips_gdbarch_init): Set store_struct_return and
4892 extract_struct_value_address.
4893
4894 2002-08-20 David Carlton <carlton@math.stanford.edu>
4895
4896 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4897 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4898 (read_file_scope): Check that line_header is nonzero before
4899 decoding macro information.
4900
4901 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4902
4903 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4904 flag the general-purpose registers as floating-point on targets
4905 that don't support the floating-point registers.
4906
4907 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4908
4909 * rs6000-tdep.c (altivec_register_p): Delete.
4910 (rs6000_do_altivec_registers): Delete.
4911 (rs6000_altivec_registers_info): Delete.
4912 (rs6000_do_registers_info): Delete.
4913 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4914 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4915
4916 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4917
4918 * infcmd.c (do_registers_info): Print vector registers in hex
4919 format only.
4920 (print_vector_info): Check that printing registers
4921 makes sense.
4922 (print_float_info): Ditto.
4923
4924 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4925
4926 * mips-tdep.c (mips_gdbarch_init): Update.
4927 (mips_o32_extract_return_value): Rewrite.
4928 (mips_o32_store_return_value): Rewrite.
4929 (mips_o32_xfer_return_value): New function.
4930 (mips_xfer_register): Tweak debug print message. Allow for
4931 buf_offset when dumping the value transfered.
4932
4933 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4934
4935 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4936 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4937 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4938 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4939 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4940
4941 2002-08-14 Michael Snyder <msnyder@redhat.com>
4942
4943 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4944
4945 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4946
4947 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4948 register.
4949 (P): New macro to define a register as a pseudo register.
4950 (R, R4, R8, R16, FR32, R64, R0): Updated.
4951 (struct variant): Add new fields for number of pseudo registers
4952 and number of total registers.
4953 (tot_num_registers): New macro replacing....
4954 (num_registers): ...deleted macro.
4955 (num_registers): New function.
4956 (num_pseudo_registers): New function.
4957 (variants): Update all variants to intialize new fields correctly.
4958 Postpone initialization of number of pseudo regs and real regs.
4959 (init_variants): New function.
4960 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4961 registers offsets.
4962
4963 2002-08-19 David Carlton <carlton@math.stanford.edu>
4964
4965 * valops.c (search_struct_field): Change error message to treat
4966 return value of 0 from value_static_field as meaning that field is
4967 optimized out.
4968 (value_struct_elt_for_reference): Ditto.
4969 * values.c (value_static_field): Treat an unresolved location the
4970 same as a nonexistent symbol. Fix PR gdb/635.
4971 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4972 enclosed. Fix PR gdb/574.
4973 * MAINTAINERS: Add self to Write After Approval list.
4974
4975 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4976
4977 * mips-tdep.c (mips_xfer_register): New function.
4978 (mips_n32n64_extract_return_value): Rewrite.
4979 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4980 instead of deprecated_extract_return_value.
4981
4982 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4983
4984 * rs6000-tdep.c (TDEP): Delete macro.
4985 (branch_dest): Replace use of TDEP macro with its body.
4986 (rs6000_pop_frame): Ditto.
4987 (rs6000_push_arguments): Ditto.
4988 (rs6000_skip_trampoline_code): Ditto.
4989 (rs6000_frame_saved_pc): Ditto.
4990 (rs6000_frame_chain): Ditto.
4991 (rs6000_register_name): Ditto.
4992 (rs6000_register_byte): Ditto.
4993 (rs6000_register_raw_size): Ditto.
4994 (rs6000_register_virtual_type): Ditto.
4995 (rs6000_register_convertible): Ditto.
4996 (rs6000_convert_from_func_ptr_addr): Ditto.
4997
4998 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4999
5000 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5001 conditionally.
5002 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5003 MIPS_LINUX_JB_ELEMENT_SIZE.
5004 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5005 for MAX_REGISTER_RAW_SIZE arrays.
5006 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5007 MIPS_LINUX_JB_ELEMENT_SIZE.
5008
5009 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5010
5011 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5012
5013 2002-08-19 Aidan Skinner <aidan@velvet.net>
5014
5015 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5016 ada-valprint.c ada-tasks.c.
5017 (YYFILES): Add ada-exp.y.
5018 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5019 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5020 (ada-exp.tab.o): New target.
5021
5022 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5023
5024 * regcache.c (regcache_xfer_part): New function.
5025 (regcache_raw_read_part): New function.
5026 (regcache_raw_write_part): New function.
5027 (regcache_cooked_read_part): New function.
5028 (regcache_cooked_write_part): New function.
5029 * regcache.h (regcache_raw_read_part): Declare.
5030 (regcache_raw_write_part): Declare.
5031 (regcache_cooked_read_part): Declare.
5032 (regcache_cooked_write_part): Declare.
5033
5034 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5035
5036 * remote.c (remote_open_1): Add async_p.
5037 (remote_async_open_1): Delete.
5038 (open_remote_target): Delete.
5039 (remote_open, extended_remote_open): Update calls to remote_open_1.
5040 (remote_async_open, extended_remote_async_open): Call
5041 remote_open_1 instead of remote_async_open_1.
5042
5043 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5044
5045 * blockframe.c: Fix a few coding standard violations.
5046
5047 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5048
5049 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5050 here from ...
5051 * config/i386/tm-i386sco5.h: ... here. File removed.
5052 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5053
5054 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5055 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5056 (TM_FILE): Set to tm-i386.h.
5057 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5058 * config/i386/tm-i386v.h: Remove file.
5059 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5060 instead of "i386/tm-i386v.h".
5061 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5062 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5063 "i386/tm-i386v.h".
5064 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5065 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5066 "i386/tm-i386.h".
5067
5068 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5069
5070 * config/i386/nm-i386v.h: Add protection against
5071 multiple-inclusion.
5072 (i386_register_u_addr): Remove prototype.
5073 (register_u_addr): New prototype.
5074 (REGISTER_U_ADDR): Redefine accordingly.
5075 * i386v-nat.c: Improve several comments.
5076 (i386_register_u_addr): Change signature and rename to
5077 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5078 ubase variable.
5079
5080 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5081
5082 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5083 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5084 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5085 deprecated_extract_return_value.
5086 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5087 rename mips_o32o64_push_arguments.
5088 (mips_gdbarch_init): Update.
5089 (mips_extract_return_value): Delete.
5090 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5091 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5092 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5093 (mips_n32n64_extract_return_value): Clone
5094 mips_extract_return_value.
5095 (mips_store_return_value): Delete.
5096 (mips_o32_store_return_value): Clone mips_store_return_value.
5097 (mips_o64_store_return_value): Clone mips_store_return_value.
5098 (mips_eabi_store_return_value): Clone mips_store_return_value.
5099 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5100
5101 2002-08-18 Aidan Skinner <aidan@velvet.net>
5102
5103 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5104 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5105
5106 2002-08-18 Aidan Skinner <aidan@velvet.net>
5107
5108 * ada-lang.c: Run through gdb_indent.sh.
5109 * ada-lang.h: Run through gdb_indent.sh.
5110 * ada-tasks.c: Run through gdb_indent.sh.
5111 * ada-typeprint.c: Run through gdb_indent.sh.
5112 * ada-valprint.c: Run through gdb_indent.sh.
5113
5114 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5115
5116 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5117 ABI.
5118
5119 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5120
5121 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5122
5123 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5124 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5125
5126 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5127 write_register_gen instead of write_register_bytes.
5128
5129 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5130 i[3456]-*-osf1mk* configurations have been made obsolete.
5131 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5132 i[3456]86-*-osf1mk* hosts obsolete.
5133 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5134 targets obsolete.
5135 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5136 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5137 config/i386/i386m3.mt, config/i386/nm-m3.h,
5138 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5139 config/i386/i386mk.mh, config/i386/i386mk.mt,
5140 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5141 obsolete.
5142 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5143 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5144 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5145
5146 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5147
5148 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5149 (hppa_value_returned_from_stack): Declare.
5150 (hppa_extract_return_value): Declare.
5151 * config/pa/hppa.mt: New file.
5152 * configure.tgt: Recognize hppa*-*-*.
5153 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5154
5155 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5156
5157 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5158 comment.
5159
5160 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5161
5162 * top.c (gdb_rl_operate_and_get_next): Make sure
5163 operate-and-get-next functions correctly even when the history
5164 list is completely filled.
5165
5166 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5167
5168 * MAINTAINERS (Target Instruction Set Architectures): Rename
5169 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5170 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5171 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5172 already listed under Host/Native.
5173
5174 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5175 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5176 mips*-*-*.
5177
5178 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5179
5180 * config/ia64/ia64.mt: New file.
5181 * config/alpha/alpha.mt: New file.
5182 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5183 ia64-linux-gnu. Mention that ia64-elf is broken.
5184 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5185
5186 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5187
5188 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5189 generic_func_frame_valid instead of func_frame_valid.
5190
5191 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5192
5193 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5194 procfs appears to be broken when debugging on multi-processor
5195 machines. So enable software single stepping in order to avoid
5196 using the procfs interface to do next/step operations, using
5197 internal breakpoints instead.
5198
5199 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5200 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5201 make this pc address equal to the value it would have if the
5202 system stepping capability was used. Also set a new flag used
5203 to ensure that we don't readjust the PC one more time later.
5204
5205 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5206 address by DECR_PC_AFTER_BREAK when software single step is
5207 in use for this architecture, as this has already been taken
5208 care of in handle_inferior_event().
5209
5210 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5211
5212 * infrun.c (handle_inferior_event): Minor reformatting, to make
5213 a rather long condition expression easier to read.
5214
5215 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5216
5217 * Makefile.in (gdbtk.o): Move to end of file.
5218 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5219 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5220 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5221 (gdbtk-wrapper.o, gdbres.o): Ditto.
5222
5223 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5224
5225 * Makefile.in (copying.o): Separate out compile rule.
5226 (hpux-thread.o, procfs.o, signals.o): Ditto.
5227 (v850ice.o, z8k-tdep.o): Ditto.
5228 (tui-file.o): Move to TUI section.
5229 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5230 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5231
5232 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5233
5234 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5235 skip_trampoline_code, for better namespace-proofing.
5236
5237 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5238
5239 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5240
5241 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5242
5243 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5244
5245 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5246 signal, check whether we hit a breakpoint before checking for a
5247 single step breakpoint. Otherwise, GDB fails to notice that a
5248 breakpoint has been hit when stepping onto a breakpoint.
5249
5250 2002-08-16 Keith Seitz <keiths@redhat.com>
5251
5252 * gdb-events.sh (clear_gdb_event_hooks): New function.
5253 * gdb-events.c: Regenerate.
5254 * gdb-events.h: Regenerate.
5255
5256 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5257
5258 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5259 not_a_sw_breakpoint.
5260 * breakpoint.h (bpstat_stop_status): Add parameter names.
5261
5262 2002-08-16 Grace Sainsbury <graces@redhat.com>
5263
5264 * remote.c (remote_insert_hw_breakpoint)
5265 (remote_remove_hw_breakpoint): Fix calculation of length field
5266 for Z-packet.
5267
5268 2002-08-15 Michael Snyder <msnyder@redhat.com>
5269
5270 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5271 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5272 (supply_fpregset): Ditto.
5273
5274 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5275 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5276 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5277 (TARGET_READ_SP): Delete.
5278 (DO_REGISTERS_INFO): Delete.
5279 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5280 Delete.
5281 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5282 from macros to functions.
5283
5284 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5285 (mips_register_convertible, mips_register_convert_to_virtual,
5286 mips_register_convert_to_raw): Make static.
5287 (mips_read_sp): New function.
5288 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5289 (mips_do_registers_info): Make static.
5290 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5291 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5292 (mips_register_convert_from_type, mips_register_convert_to_type):
5293 New functions.
5294 (mips_gdbarch_init): Set up function_start_offset,
5295 register_virtual_size, pc_in_sigtramp.
5296
5297 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5298
5299 * infcmd.c (vector_info): New function.
5300 (_initialize_infcmd): Add command "info vector".
5301 (print_vector_info): New function.
5302
5303 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5304 * gdbarch.h, gdbarch.c: Regenerate.
5305
5306 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5307
5308 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5309 ``print_all''. Only print vector registers when ``print_all''.
5310
5311 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5312
5313 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5314 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5315
5316 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5317 Add `args' parameter.
5318 * gdbarch.h, gdbarch.c: Regenerate.
5319
5320 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5321
5322 * infcmd.c (float_info): Call print_float_info.
5323 (print_float_info): New function. By default, print the
5324 floating-point registers.
5325
5326 * arch-utils.h (default_print_float_info): Delete declaration.
5327 * arch-utils.c (default_print_float_info): Delete function.
5328
5329 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5330
5331 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5332 out define.
5333
5334 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5335 FRAME.
5336
5337 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5338 * configure.host: Make i[3456]86-*-aix host obsolete.
5339 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5340 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5341 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5342 config/i386/xm-i386aix.h: Make files obsolete.
5343 * i386aix-nat.c: Make file obsolete.
5344 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5345 (i386aix-nat.o): Make target obsolete.
5346
5347 * config/i386/nm-gnu.h: Removed.
5348 * config/i386/nm-i386gnu.h: New file.
5349 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5350 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5351 Moved here from ...
5352 * config/i386/tm-i386gnu.h: ... here. Removed.
5353 * config/i386/xm-i386gnu.h: Removed.
5354 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5355 (NAT_FILE): Set to nm-i386gnu.h.
5356 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5357 * i386-tdep.c: New file.
5358 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5359 (i386gnu-tdep.o): Specify dependencies.
5360
5361 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5362
5363 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5364 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5365 Adjust a few comments to reflect reality a bit closer.
5366 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5367 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5368 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5369 target_insert_watchpoint, target_remove_watchpoint):
5370 Move defines to ...
5371 * config/i386/nm-i386sco5.h: ... here.
5372 (kernel_u_size): Add prototype. Improve a few comments and add
5373 protection against multiple inclusion.
5374
5375 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5376 out define.
5377
5378 * uw-thread.c (SP_ARG0): Define if not already defined.
5379 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5380
5381 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5382
5383 * config/i386/tm-i386.h: Don't include "regcache.h".
5384
5385 * i387-tdep.h (i387_print_float_info): New prototype.
5386 * i387-tdep.c (print_i387_value, print_i387_ext,
5387 print_i387_status_word, print_i387_control_word): Add `struct
5388 ui_file *' argument and use it for output.
5389 (i387_print_float_info): Renamed from i387_float_info. Add
5390 `struct gdbarch *' and `struct ui_file *' arguments and use the
5391 latter for output.
5392 * i386-tdep.c: Include "i387-tdep.h".
5393 (i386_gdbarch_init): Set print_float_info.
5394 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5395 (FLOAT_INFO): Remove define.
5396
5397 2002-08-13 Michael Snyder <msnyder@redhat.com>
5398
5399 * mips-tdep.c (mips_push_arguments): Rename to
5400 mips_eabi_push_arguments, and tune for EABI.
5401 (MIPS_REGS_HAVE_HOME_P): Delete.
5402 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5403 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5404 Delete references to mips_regs_have_home_p.
5405
5406 2002-08-14 Keith Seitz <keiths@redhat.com>
5407
5408 * Makefile.in (install-gdbtk): Create insight plugin directory.
5409 Install plugins.tcl file.
5410
5411 2002-08-14 Keith Seitz <keiths@redhat.com>
5412
5413 * configure.in: Move SUBDIRS to near top of the file so that
5414 --enable options may add things to it.
5415 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5416 * configure: Regenerate.
5417
5418 2002-08-13 Michael Snyder <msnyder@redhat.com>
5419
5420 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5421 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5422 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5423
5424 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5425
5426 * vax-tdep.c (vax_get_saved_register): Delete function.
5427 (vax_gdbarch_init): Update.
5428 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5429 (ns32k_gdbarch_init): Update.
5430 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5431 (alpha_gdbarch_init): Update.
5432
5433 2002-08-13 Andrew Cagney <cagney@redhat.com>
5434
5435 * regcache.c (init_regcache_descr): Overallocate the
5436 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5437 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5438 nr_raw_registers.
5439 (set_register_cached): Add range checking assertions. Use
5440 current_regcache.
5441
5442 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5443
5444 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5445 numbers for MMX registers.
5446
5447 2002-08-13 Andrew Cagney <cagney@redhat.com>
5448
5449 * i386-tdep.c (i386_gdbarch_init): Use
5450 generic_unwind_get_saved_register.
5451
5452 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5453
5454 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5455 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5456 target vector.
5457 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5458 Delete. Add comment regarding this now-deleted target method.
5459
5460 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5461
5462 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5463 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5464 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5465 real PC and the page number (if it's within the memory bank window).
5466 (m68hc11_pseudo_register_write): Likewise when saving.
5467 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5468 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5469 (m68hc11_register_raw_size): And use 32-bit for it.
5470 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5471 16K memory bank is used by the prog; also use the virtual pc.
5472
5473 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5474
5475 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5476 (m68hc11_gdbarch_init): Install it in gdbarch.
5477 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5478 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5479 (MSYMBOL_SIZE): New for documentation.
5480 (insn_return_kind): Enum to specify how a function returns.
5481 (frame_extra_info): Cleanup and record the return mode.
5482 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5483 register in address computation.
5484 (m68hc11_get_return_insn): New to obtain the return instruction used
5485 by the function.
5486 (m68hc11_frame_init_saved_regs): Take into account the return
5487 instruction used by the function for far and interrupt functions.
5488 (m68hc11_init_extra_frame_info): Take into account page register.
5489 (m68hc11_frame_args_address): Adjust according to the return mode.
5490 (show_regs): Print page register only when it's used.
5491
5492 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5493
5494 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5495 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5496 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5497 registers.
5498 (m68hc11_register_raw_size): Likewise.
5499
5500 2002-08-13 Andrew Cagney <cagney@redhat.com>
5501
5502 * i386-tdep.c (i386_register_name): Handle mmx registers.
5503 (mmx_regnum_p): New function.
5504 (i386_mmx_names): New array.
5505 (mmx_num_regs): New variable.
5506 (i386_pseudo_register_read): New function.
5507 (i386_pseudo_register_write): New function.
5508 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5509
5510 * regcache.c (regcache_raw_read_unsigned): New function.
5511 (regcache_raw_read_signed): New function.
5512 * regcache.h (regcache_raw_read_unsigned): Declare.
5513 (regcache_raw_read_signed): Declare.
5514
5515 2002-08-13 Andrew Cagney <cagney@redhat.com>
5516
5517 * regcache.c (regcache_raw_read_as_address): Delete function.
5518 (regcache_cooked_read_signed): New function.
5519 (regcache_cooked_read_unsigned): New function.
5520 * regcache.h (regcache_cooked_read_signed): Declare.
5521 (regcache_cooked_read_unsigned): Declare.
5522 (regcache_raw_read_as_address): Delete declaration.
5523
5524 * blockframe.c (generic_read_register_dummy): Use
5525 regcache_cooked_read_unsigned.
5526 * i386-tdep.c (i386_extract_struct_value_address): Use
5527 regcache_cooked_read_unsigned.
5528
5529 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5530
5531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5532 double sizes according to ELF ABI flags.
5533 (gdbarch_tdep): Record elf_flags.
5534
5535 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5536
5537 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5538 (m6812_prolog): They can appear in 68HC12 function prologue.
5539 (m68hc11_frame_chain): Cleanup.
5540
5541 2002-08-12 Andrew Cagney <cagney@redhat.com>
5542
5543 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5544 declarations.
5545 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5546 (i386_linux_register_raw_size): Delete function.
5547 (i386_linux_init_abi): Update.
5548 * i386-tdep.c (i386_register_raw_size): Delete function.
5549 (i386_register_byte): Delete function.
5550 (i386_gdbarch_init): Update.
5551 (i386_register_size): Delete array.
5552 (i386_register_offset): Delete array.
5553
5554 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5555 (REGISTER_RAW_SIZE): Delete macro.
5556 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5557 (REGISTER_BYTE): Delete macro.
5558
5559 2002-08-11 Aidan Skinner <aidan@velvet.net>
5560
5561 * ada-lang.c (ada_lookup_partial_symbol)
5562 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5563 prototype names so that grep ^func works properly.
5564
5565 * ada-lang.c (ada_array_element_type)
5566 (ada_lookup_partial_symbol): Fix typos in parameter list.
5567
5568 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5569 Fix prototype names so that grep ^func works properly.
5570
5571 2002-08-10 Andrew Cagney <cagney@redhat.com>
5572 Elena Zannoni <ezannoni@redhat.com>
5573 Martin M. Hunt <hunt@redhat.com>
5574
5575 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5576 (build_builtin_type_vec128i): Set the vector bit.
5577 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5578 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5579 (build_builtin_type_vec64): New function.
5580 (build_builtin_type_vec64i): New function.
5581 (build_gdbtypes): Initialize builtin_type_vec64 and
5582 builtin_type_vec64i.
5583
5584 2002-08-09 Andrew Cagney <cagney@redhat.com>
5585
5586 * regcache.c (regcache_dump): Compare the register offset
5587 with REGISTER_BYTE.
5588 * arch-utils.c (generic_register_byte): New function.
5589 * arch-utils.h (generic_register_byte): Declare.
5590 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5591 * gdbarch.h, gdbarch.c: Regenerate.
5592
5593 2002-08-09 Andrew Cagney <cagney@redhat.com>
5594
5595 * regcache.c: Include "gdbcmd.h"
5596 (_initialize_regcache): Add commands "maintenance print
5597 registers", "maintenance print raw-registers" and "maintenance
5598 print cooked-registers".
5599 (enum regcache_dump_what): Define.
5600 (dump_endian_bytes): New function.
5601 (regcache_dump): New function.
5602 (regcache_print): New function.
5603 (maintenance_print_registers): New function.
5604 (maintenance_print_raw_registers): New function.
5605 (maintenance_print_cooked_registers): New function.
5606 * Makefile.in (regcache.o): Update dependencies.
5607
5608 2002-08-09 Michael Snyder <msnyder@redhat.com>
5609
5610 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5611 (mips_push_arguments): Correct some comments. Use paddr_nz
5612 for printing addresses in debug output. Replace static
5613 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5614 (mips_n32n64_push_arguments): New function, cloned from
5615 mips_push_arguments and tuned for the n32/n64 ABI.
5616 (mips_push_register): Buffer needs dynamic allocation.
5617 (mips_print_register): Ditto.
5618 (do_gp_register_row): Ditto.
5619 (mips_store_return_value): Ditto.
5620 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5621
5622 2002-08-09 Don Howard <dhoward@redhat.com>
5623
5624 * memattr.c (mem_info_command): Print special case of upper bound
5625 as max CORE_ADDR + 1.
5626
5627 2002-08-08 Michael Snyder <msnyder@redhat.com>
5628
5629 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5630 returns structs by ref if they're too big to fit in two registers.
5631
5632 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5633
5634 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5635 saved regs value.
5636 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5637 mips_find_saved_regs().
5638 (mips_pop_frame): Likewise.
5639
5640 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5641
5642 * blockframe.c (frame_saved_regs_register_unwind): Revise
5643 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5644 frames are in use.
5645
5646 2002-08-09 Grace Sainsbury <graces@redhat.com>
5647
5648 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5649 T-packets; the 'a' is not taken as a register number.
5650 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5651 (remote_stopped_data_address): New functions; add to target
5652 vector.
5653 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5654 prototypes to match other implementations of this
5655 function. replace integer argument with pointer -- the length
5656 field in the Z-packet is the length of what is pointed to or 1 if
5657 pointer is null. Add to target vector.
5658 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5659 target vector.
5660
5661 From Mark Salter:
5662 * remote.c (remote_wait): Add support to extract optional
5663 watchpoint information from T-packet. Ignore unrecognized
5664 optional info in T-packet.
5665 (remote_async_wait): Ditto.
5666
5667 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5668
5669 * cli/cli-dump.c: Change fopen modes to use binary open modes
5670 as defined in include/fopen-bin.h throughout.
5671
5672 2002-08-08 Michael Snyder <msnyder@redhat.com>
5673
5674 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5675
5676 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5677
5678 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5679 assertion failure by returning early after a warning.
5680
5681 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5682
5683 * mips-tdep.c (mips_find_saved_regs): Make static.
5684 (mips_frame_init_saved_regs): New function.
5685 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5686 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5687 (mips_find_saved_regs): Delete declaration.
5688
5689 2002-08-08 Grace Sainsbury <graces@redhat.com>
5690
5691 * remote.c (remote_wait, remote_async_wait): Change
5692 thread_num from int to ULONGEST.
5693 (unpack_varlen_hex): Change result parameter from
5694 int * to ULONGEST *.
5695
5696 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5697
5698 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5699 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5700 powerpc*-*-*.
5701 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5702
5703 2002-08-08 Andrew Cagney <cagney@redhat.com>
5704
5705 * gcore.c (override_derive_stack_segment): Delete variable.
5706 (preempt_derive_stack_segment): Delete function.
5707 (derive_stack_segment): Delete function.
5708 (default_derive_stack_segment): Renamed to derive_stack_segment.
5709 (override_derive_heap_segment): Delete variable.
5710 (preempt_derive_heap_segment): Delete function.
5711 (derive_heap_segment): Delete function.
5712 (default_derive_heap_segment): Rename to derive_heap_segment.
5713
5714 2002-08-06 Michael Snyder <msnyder@redhat.com>
5715
5716 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5717 * mips-tdep.c (mips_EABI_use_struct_convention,
5718 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5719 New functions. (mips_use_struct_convention): Delete.
5720 (mips_gdbarch_init): set use_gdbarch_convention.
5721
5722 2002-08-06 Michael Snyder <msnyder@redhat.com>
5723
5724 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5725 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5726 mips_o32_reg_struct_has_addr): New functions.
5727 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5728
5729 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5730
5731 * regcache.c (pseudo_register): Delete function.
5732 (fetch_register): Delete function.
5733 (store_register): Delete function.
5734 (regcache_raw_read, legacy_read_register_gen): Use
5735 target_fetch_registers instead of fetch_register.
5736 (legacy_write_register_gen, regcache_raw_write): Use
5737 target_store_register instead of store_register.
5738 (write_register_bytes): Ditto.
5739
5740 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5741 (STORE_PSEUDO_REGISTER): Delete.
5742 * gdbarch.h, gdbarch.c: Regenerate.
5743
5744 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5745
5746 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5747 write dump file binary.
5748
5749 2002-08-05 Michael Snyder <msnyder@redhat.com>
5750
5751 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5752 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5753 (mips_gdbarch_init): Set N32 target to be mips64.
5754
5755 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5756
5757 * frame.c (find_saved_register): Break out of loop once saved
5758 register address is found. Don't mention sparc in loop comment
5759 anymore.
5760
5761 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5762
5763 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5764 mips_default_saved_regsize to 8.
5765
5766 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5767
5768 * gcore.c: Do not include <sys/procfs.h>.
5769 * Makefile.in (gcore.o): Update dependencies.
5770
5771 2002-08-06 Andrew Cagney <cagney@redhat.com>
5772
5773 * configure.tgt: Make arc-*-* obsolete.
5774 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5775 * MAINTAINERS: Make arc-elf obsolete.
5776 * arc-tdep.c: Make file obsolete.
5777 * config/arc/arc.mt: Ditto.
5778 * config/arc/tm-arc.h: Ditto.
5779
5780 2002-08-05 Theodore A. Roth <troth@verinet.com>
5781
5782 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5783
5784 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5785
5786 * mcore-tdep.c (mcore_gdbarch_init): Use
5787 generic_unwind_get_saved_register instead of
5788 generic_get_saved_register.
5789 * v850-tdep.c (v850_gdbarch_init): Ditto.
5790 * frv-tdep.c (frv_gdbarch_init): Ditto.
5791 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5792 * s390-tdep.c (s390_gdbarch_init): Ditto.
5793 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5794 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5795 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5796
5797 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5798
5799 * objfiles.h: Add missing #include "symfile.h"
5800
5801 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5802
5803 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5804
5805 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5806 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5807 of FIELD_BITSIZE.
5808
5809 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5810
5811 * NEWS: Cleanup and nitpick.
5812
5813 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5814
5815 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5816
5817 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5818
5819 * Makefile.in (gdbtk-bp.o): Update dependencies.
5820 (gdbtk-register.o): Ditto.
5821 (gdbtk-varobj.o): Ditto.
5822
5823 2002-08-03 Andrew Cagney <cagney@redhat.com>
5824
5825 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5826 m68hc11_fetch_pseudo_register.
5827 (m68hc11_pseudo_register_write): Replace
5828 m68hc11_store_pseudo_register.
5829 (m68hc11_gdbarch_init): Update.
5830
5831 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5832
5833 * gdbarch.sh: Include "gdb_string.h".
5834 * gdbarch.c: Regenerate.
5835
5836 * regcache.c: Include "gdb_string.h".
5837 * ax-general.c: Ditto.
5838 * varobj.c: Ditto.
5839 * std-regs.c: Ditto.
5840 * fbsd-proc.c: Ditto.
5841 * thread.c: Ditto.
5842
5843 * Makefile.in (regcache.o): Update dependencies.
5844 (thread.o, gdbarch.o): Ditto.
5845 (ax-general.o, gdbarch.o): Ditto.
5846 (varobj.o, std-regs.o): Ditto.
5847 (fbsd-proc.o): Specify dependencies.
5848
5849 2002-08-02 Andrew Cagney <cagney@redhat.com>
5850
5851 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5852 regnum.
5853 (regcache_cooked_write): Ditto.
5854
5855 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5856
5857 * regcache.c (regcache_cooked_read): New function.
5858 (regcache_cooked_write): New function.
5859 (read_register_gen): Rewrite using regcache_cooked_read.
5860 (write_register_gen): Rewrite using regcache_cooked_write.
5861
5862 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5863 Declare.
5864
5865 2002-08-02 Andrew Cagney <cagney@redhat.com>
5866
5867 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5868 Replace the architecture methods register_read and register_write.
5869 * gdbarch.h, gdbarch.c: Regenerate.
5870 * regcache.c (init_regcache_descr): Update.
5871 (read_register_gen): Update.
5872 (write_register_gen): Update.
5873 (supply_register): Update comment.
5874
5875 * sh-tdep.c (sh_gdbarch_init): Update.
5876 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5877 `regcache' and `gdbarch' parameters. Make `buffer' a void
5878 pointer. Update code.
5879 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5880 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5881 void pointer. Update code.
5882 (sh64_register_write): Delete.
5883 (sh4_register_read): Delete.
5884 (sh64_register_read): Delete.
5885 (sh4_register_write): Delete.
5886 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5887 void pointer, `to' parameter a void pointer.
5888 (sh_sh64_register_convert_to_raw): Ditto.
5889
5890 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5891
5892 * mips-tdep.c (mips_register_virtual_type): Use architecture
5893 invariant return values.
5894
5895 2002-08-01 Andrew Cagney <cagney@redhat.com>
5896
5897 * linux-proc.c: Include "gdb_string.h".
5898 * Makefile.in (linux-proc.o): Update dependency list.
5899
5900 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5901
5902 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5903 comment.
5904
5905 2002-08-01 Grace Sainsbury <graces@redhat.com>
5906
5907 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5908 to_insert_watchpoint, to_remove_watchpoint,
5909 to_stopped_by_watchpoint, to_stopped_data_address,
5910 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5911 target vecctor. Define their corresponding macros so they call
5912 them.
5913
5914 * target.c: Add default and debug versions of for
5915 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5916 to_insert_watchpoint, to_remove_watchpoint,
5917 to_stopped_by_watchpoint, to_stopped_data_address,
5918 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5919
5920 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5921
5922 * mips-tdep.c (mips_register_virtual_type): New function.
5923 (mips_gdbarch_init): Register mips_register_virtual_type()
5924 with gdbarch machinery.
5925 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5926 this file instead of tm-bigmips.h.
5927 (MIPS_REGSIZE): Delete this macro.
5928 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5929 multiarch version in mips-tdep.c will be found.
5930
5931 2002-08-01 Andrew Cagney <cagney@redhat.com>
5932
5933 * NEWS: Menion that CHILL has been made obsolete.
5934
5935 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5936 * stabsread.c (read_range_type): Ditto.
5937 * gdbtypes.h: Ditto.
5938 * language.c (binop_type_check): Ditto.
5939 (binop_result_type): Ditto.
5940 (integral_type): Ditto.
5941 (character_type): Ditto.
5942 (string_type): Ditto.
5943 (boolean_type): Ditto.
5944 (structured_type): Ditto.
5945 (lang_bool_type): Ditto.
5946 (binop_type_check): Ditto.
5947 * language.h (_LANG_chill): Ditto.
5948 * dwarfread.c (set_cu_language): Ditto.
5949 * dwarfread.c (CHILL_PRODUCER): Ditto.
5950 * dwarfread.c (handle_producer): Ditto.
5951 * expression.h (enum exp_opcode): Ditto.
5952 * eval.c: Ditto for comments.
5953 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5954 * expprint.c (print_subexp): Ditto.
5955 (print_subexp): Ditto.
5956 * valops.c (value_cast): Ditto.
5957 (search_struct_field): Ditto.
5958 * value.h (COERCE_VARYING_ARRAY): Ditto.
5959 * symfile.c (init_filename_language_table): Ditto.
5960 (add_psymbol_with_dem_name_to_list): Ditto.
5961 * valarith.c (value_binop): Ditto.
5962 (value_neg): Ditto.
5963 * valops.c (value_slice): Ditto.
5964 * symtab.h (union language_specific): Ditto.
5965 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5966 (SYMBOL_DEMANGLED_NAME): Ditto.
5967 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5968 * defs.h (enum language): Ditto.
5969 * symtab.c (got_symtab): Ditto.
5970 * utils.c (fprintf_symbol_filtered): Ditto.
5971
5972 * ch-typeprint.c: Make file obsolete.
5973 * ch-valprint.c: Make file obsolete.
5974 * ch-lang.h: Make file obsolete.
5975 * ch-exp.c: Make file obsolete.
5976 * ch-lang.c: Make file obsolete.
5977
5978 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5979 CHILL_LIB.
5980 (TARGET_FLAGS_TO_PASS): Ditto.
5981 (CHILLFLAGS): Obsolete.
5982 (CHILL): Obsolete.
5983 (CHILL_FOR_TARGET): Obsolete.
5984 (CHILL_LIB): Obsolete.
5985 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5986 ch-valprint.c.
5987 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5988 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5989 ch-lang.o.
5990 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5991 targets.
5992
5993 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5994
5995 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5996 This does not change anything at the moment, but will be helpful
5997 later when full Ada support is integrated.
5998
5999 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6000
6001 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6002 help message.
6003
6004 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6005
6006 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6007 and save it in a local variable. Use variable in later test.
6008
6009 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6010
6011 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6012 test. (Thanks to Daniel Jacobowitz.)
6013
6014 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6015
6016 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6017 (mips_abi_strings): Add "n64".
6018 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6019
6020 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6021
6022 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6023 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6024
6025 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6026
6027 * utils.c (host_pointer_to_address, address_to_host_pointer):
6028 Use gdb_assert() instead of explicit call to internal_error().
6029
6030 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6031
6032 * Makefile.in (rs6000-nat.o): Update dependencies.
6033
6034 From Nicholas Duffek:
6035 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6036 (aix-thread.o): New rule.
6037 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6038 * config/powerpc/aix432.mh: New file.
6039
6040 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6041
6042 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6043 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6044 (fetch_core_registers, ppc_linux_supply_gregset)
6045 (ppc_linux_supply_fpregset): New functions.
6046 (ppc_linux_regset_core_fns): New.
6047 (_initialize_ppc_linux_tdep): Call add_core_fns.
6048 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6049 and ppc_linux_supply_gregset.
6050 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6051 (supply_fpregset): Call ppc_linux_supply_fpregset.
6052 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6053 corelow.o.
6054 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6055
6056 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6057
6058 * symtab.c (lookup_symbol): Demangle before lowercasing.
6059
6060 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6061
6062 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6063 declaration.
6064 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6065 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6066 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6067 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6068 "gdb_string.h".
6069 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6070 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6071 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6072 (avr-tdep.o, mon960-rom.o): Ditto.
6073 (aout_stabs_gnu_h): Define.
6074 (symtab_h): Remove $(gdb_obstack_h).
6075
6076 2002-07-30 Jim Blandy <jimb@redhat.com>
6077
6078 Patch from David Carlton <carlton@math.stanford.edu>:
6079 * gdbinit.in: Move the `dir' commands that add GDB's own source
6080 directory to the search path to the end, so that the `gdb' source
6081 directory will be searched first.
6082
6083 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6084
6085 * gdb_obstack.h: New file.
6086 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6087 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6088 * objfiles.h: Include "gdb_obstack.h".
6089 * Makefile.in (gdb_obstack_h): Define.
6090 (symtab_h): Add $(gdb_obstack_h).
6091 (objfiles_h): Add $(gdb_obstack_h).
6092
6093 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6094 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6095 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6096 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6097 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6098 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6099 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6100 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6101
6102 * Makefile.in (bcache.o): Update dependencies.
6103 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6104 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6105 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6106 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6107 (stabsread.o, symfile.o, symmisc.o): Ditto.
6108 (symtab.o, typeprint.o, macroexp.o): Ditto.
6109 (macrotab.o, mdebugread.o): Ditto.
6110 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6111 (coff_ecoff_h, aout_aout64_h): Define.
6112 (aout_stabs_gnu_h, libaout_h): Define.
6113
6114 2002-07-29 Andrew Cagney <cagney@redhat.com>
6115
6116 * regcache.c (struct regcache_descr): Rename nr_registers to
6117 nr_cooked_registers. Revise comments describing the structure
6118 member fields.
6119 (init_regcache_descr): Update.
6120 (init_legacy_regcache_descr): Update.
6121 (read_register_gen, write_register_gen): When a cooked register in
6122 the raw register range, directly access the value from the raw
6123 register cache.
6124
6125 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6126
6127 * z8k-tdep.c: Do not include "obstack.h".
6128 * h8300-tdep.c, h8500-tdep.c: Ditto.
6129 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6130 * valprint.c, v850-tdep.c: Ditto.
6131 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6132 * mn10200-tdep.c: Ditto.
6133
6134 * Makefile.in (z8k-tdep.o): Update dependencies.
6135 (m68hc11-tdep.o, valprint.o): Ditto.
6136 (v850-tdep.o, d10v-tdep.o): Ditto.
6137 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6138 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6139 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6140 (sh_opc_h, gdb_sim_sh_h): Define.
6141 (elf_sh_h, elf_bfd_h): Define.
6142 (opcode_m68hc11_h): Define.
6143 (OPCODES_SRC, OPCODES_DIR): define.
6144 (OPCODES): Use $(OPCODES_DIR).
6145 (gdb_sim_d10v_h): Rename sim_d10v_h.
6146 (gdb_sim_arm_h): Rename sim_arm_h.
6147
6148 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6149
6150 * utils.c (host_pointer_to_address, address_to_host_pointer):
6151 Change internal_error() message to indicate function responsible
6152 for the error.
6153
6154 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6155
6156 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6157 calls to local_hex_string_custom().
6158
6159 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6160
6161 * irix5-nat.c: Move IRIX shared library support from here...
6162 * solib-irix.c: ...to here. Revised substantially to work with
6163 generic solib framework.
6164
6165 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6166 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6167 * mips-irix-tdep.c: New file.
6168
6169 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6170 (mips-irix-tdep.o, solib-irix.o): New rules.
6171 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6172 solib-irix.o.
6173 * config/mips/irix6.mt (TDEPFILES): Likewise.
6174 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6175
6176 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6177
6178 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6179 disabled (via ``#if 0'') includes.
6180
6181 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6182
6183 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6184 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6185 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6186 Add support for the fpscr register.
6187 * rs6000-nat.c (regmap, fetch_inferior_registers)
6188 (store_inferior_registers, fetch_core_registers): Likewise.
6189
6190 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6191
6192 * rs6000-nat.c (language.h): Include.
6193 (special_regs): Delete this array.
6194 (regmap): New function.
6195 (fetch_register, store_register): Use regmap() to map gdb
6196 register numbers to ptrace register numbers. Also, use
6197 outputs from regmap() to make decisions regarding type of
6198 ptrace() call to make. In particular, don't compare against
6199 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6200 (fetch_inferior_registers, store_inferior_registers): Where
6201 possible, obtain register numbers from tdep struct. Don't
6202 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6203 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6204 (LAST_UISA_SP_REGNUM): Delete.
6205
6206 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6207
6208 * rs6000-nat.c (ppc-tdep.h): Include.
6209 (fetch_registers, store_register, fetch_core_registers): Don't
6210 access registers[] directly. Instead, use supply_register() or
6211 regcache_collect() as appropriate.
6212 (find_toc_address): Format hex address with local_hex_string().
6213
6214 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6215
6216 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6217 bfd/elf32-frv.c.
6218
6219 2002-07-24 Tom Tromey <tromey@redhat.com>
6220
6221 * jv-exp.y: Marked all strings with _().
6222 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6223 internal_error.
6224 (MethodInvocation, CastExpression, parse_number, yyerror,
6225 java_type_from_name, push_expression_name, yylex): Typo fixes.
6226
6227 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6228
6229 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6230 (tee_file_flush, tee_file_write, tee_file_fputs)
6231 (tee_file_isatty): New.
6232 * ui-file.h (tee_file_new): Add prototype.
6233
6234 2002-07-24 Aidan Skinner <aidan@velvet.net>
6235
6236 * ada-lang.c: Change k&r style function definitions to prototyped
6237 form.
6238 * ada-typeprint.c: Change k&r style function definitions to prototyped
6239 form.
6240 * ada-valprint.c: Change k&r style function definitions to prototyped
6241 form.
6242
6243 2002-07-24 Andrew Cagney <cagney@redhat.com>
6244
6245 * README: Remove reference to remote-bug.
6246 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6247 remote-bug.c.
6248 (m88k-nat.o): Delete rule.
6249 (m88k-tdep.o): Delete rule.
6250 (remote-bug.o): Delete rule.
6251 * MAINTAINERS: Mark as obsolete.
6252 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6253 * m88k-tdep.c: Make file obsolete.
6254 * config/m88k/m88k.mh: Ditto.
6255 * config/m88k/delta88v4.mh: Ditto.
6256 * config/m88k/delta88v4.mt: Ditto.
6257 * config/m88k/delta88.mt: Ditto.
6258 * config/m88k/delta88.mh: Ditto.
6259 * remote-bug.c: Ditto.
6260 * config/m88k/tm-delta88.h: Ditto.
6261 * config/m88k/nm-delta88v4.h: Ditto.
6262 * config/m88k/xm-delta88.h: Ditto.
6263 * config/m88k/xm-dgux.h: Ditto.
6264 * config/m88k/tm-m88k.h: Ditto.
6265 * config/m88k/nm-m88k.h: Ditto.
6266 * config/m88k/tm-delta88v4.h: Ditto.
6267 * m88k-nat.c: Ditto.
6268 * cxux-nat.c: Ditto.
6269 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6270 and m88*-*-* obsolete.
6271 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6272 m88*-*-* obsolete.
6273
6274 2002-07-24 Andrew Cagney <cagney@redhat.com>
6275
6276 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6277 constant. Same for local pointer variables.
6278 (extract_signed_integer): Ditto.
6279 * defs.h (extract_unsigned_integer): Update.
6280 (extract_signed_integer): Update.
6281
6282 2002-07-24 Andrew Cagney <cagney@redhat.com>
6283
6284 * regcache.c (regcache_raw_write): Change buf parameter to a
6285 constant void pointer.
6286 (regcache_raw_read): Change buf parameter to a void pointer.
6287 (legacy_write_register_gen): Change myaddr parameter a constant
6288 void pointer.
6289 (supply_register): Change val parameter to a const void pointer.
6290 * regcache.h (regcache_raw_write): Update declaration.
6291 (regcache_raw_read): Update declaration.
6292 (supply_register): Update declaration.
6293
6294 2002-07-24 Tom Tromey <tromey@redhat.com>
6295
6296 * defs.h (gdb_readline_wrapper): Declare.
6297 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6298 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6299 * top.c (gdb_readline_wrapper): New function.
6300 (command_line_input): Use it.
6301
6302 2002-07-24 Andrew Cagney <cagney@redhat.com>
6303
6304 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6305 regcache_read and regcache_write.
6306 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6307 * regcache.c: Update.
6308 * sh-tdep.c (sh64_push_arguments): Update comment.
6309 (sh_pseudo_register_read): Update.
6310 (sh_pseudo_register_write): Update.
6311 (sh4_register_read): Update.
6312 (sh4_register_write): Update.
6313 (sh64_pseudo_register_read): Update.
6314 (sh64_pseudo_register_write): Update.
6315 (sh64_register_read): Update.
6316 (sh64_register_write): Update.
6317 * i386-tdep.c (i386_extract_return_value): Update.
6318 (i386_extract_struct_value_address): Update.
6319 (i386_extract_return_value): Update.
6320 * blockframe.c (generic_read_register_dummy): Update.
6321 (generic_call_dummy_register_unwind): Update
6322 * infrun.c (write_inferior_status_register): Update.
6323
6324 2002-07-23 Jim Blandy <jimb@redhat.com>
6325
6326 * parser-defs.h (expression_context_pc): Make this extern.
6327 (Thanks to Michael Snyder.)
6328
6329 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6330
6331 GDB 5.2.1 released from 5.2 branch.
6332 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6333 * README: Update to mention 5.2.1.
6334
6335 2002-07-23 Mark Salter <msalter@redhat.com>
6336
6337 * remote.c (remote_read_bytes): Fix check for error.
6338
6339 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6340
6341 * aix-thread.c (language.h): Include.
6342 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6343 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6344 Print newlines at end of debug messages.
6345 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6346 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6347
6348 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6349
6350 * aix-thread.c (ppc-tdep.h): Include.
6351 (special_register_p): New function.
6352 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6353 (store_regs_user_thread): Use register number information from
6354 gdbarch_tdep struct instead of hardcoded offsets relative to
6355 FIRST_UISA_SP_REGNUM.
6356 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6357 special_register_p() instead of using FPLAST_REGNUM and
6358 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6359 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6360 will be MQ's register number.
6361
6362 2002-07-22 Michael Snyder <msnyder@redhat.com>
6363
6364 * aix-thread.c (ops): Rename to aix_thread_ops.
6365 (base_ops): Rename to base_target.
6366 (ops_attach): Rename to aix_thread_attach.
6367 (ops_detach): Rename to aix_thread_detach.
6368 (ops_resume): Rename to aix_thread_detach.
6369 (ops_wait): Rename to aix_thread_wait.
6370 (ops_kill): Rename to aix_thread_kill.
6371 (init_ops): Rename to init_aix_thread_ops.
6372 (ops_fetch_register): Rename to aix_thread_fetch_register.
6373 (ops_store_register): Rename to aix_thread_store_register.
6374 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6375 (ops_thread_alive): Rename to aix_thread_thread_alive.
6376 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6377 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6378 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6379 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6380 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6381 (store_regs_lib): Rename to store_regs_user_thread.
6382 (store_regs_kern): Rename to store_regs_kernel_thread.
6383
6384 2002-07-22 Michael Snyder <msnyder@redhat.com>
6385
6386 * aix-thread.c (ops_prepare_to_store): Eliminate.
6387 (init_ops): Don't initialize ops.prepare_to_store.
6388 (store_regs_kern): Pre-fetch register buffers from child,
6389 because some registers may not be in the cache. Copy
6390 regs from register cache only if they are cached.
6391 (store_regs_lib): Copy regs from register cache only
6392 if they are cached.
6393 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6394 fill_gprs64): Ditto.
6395
6396 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6397
6398 * aix-thread.c (gdb_assert.h): Include.
6399 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6400 register sizes (from register cache) match size of buffer holding
6401 register data.
6402 (fill_sprs32): Change parameter types to match those in the ptrace()
6403 buffer.
6404 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6405 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6406
6407 2002-07-22 Michael Snyder <msnyder@redhat.com>
6408
6409 * aix-thread.c (supply_sprs64): Cosmetic change.
6410 (supply_sprs32): Cosmetic change.
6411 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6412 (fill_sprs64): Use regcache_collect instead of read_register.
6413 (store_regs_lib): Use regcache_collect instead of
6414 read_register. Use fill_sprs32 instead of fill_sprs64,
6415 if debugging a 32-bit architecture.
6416 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6417 out of the register cache, instead of passing a pointer into
6418 the register cache directly to ptrace. Use regcache_collect
6419 insteaad of read_register.
6420 (ops_prepare_to_store): Use target_read_registers instead
6421 of read_register_bytes.
6422
6423 2002-07-20 Aidan Skinner <aidan@velvet.net>
6424
6425 * MAINTAINERS: Add self under write after approval.
6426
6427 2002-07-20 Aidan Skinner <aidan@velvet.net>
6428
6429 * ada-tasks.c: Change k&r style function definitions to prototyped
6430 form.
6431
6432 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6433
6434 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6435 * x86-64-tdep.c: Include "objfiles.h".
6436 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6437 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6438
6439 2002-07-17 Michal Ludvig <michal@suse.cz>
6440
6441 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6442 (update_context): Initialise cfa variable.
6443
6444 2002-07-17 Michael Snyder <msnyder@redhat.com>
6445
6446 * aix-thread.c: Shorten some long lines.
6447 Bring comments into line with code spec.
6448
6449 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6450
6451 * infrun.c: Re-indent using gdb_indent.sh.
6452
6453 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6454
6455 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6456 Leave the indentation temporarily untouched, to minimize the diffs.
6457
6458 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6459
6460 * stabsread.c: Make os9k sections of the code obsolete,
6461 for real this time.
6462 * stabsread.h: Make os9k sections of the code obsolete.
6463
6464 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6465
6466 * linux-low.c (regsets_store_inferior_registers): Add free()
6467 at the end of a loop to prevent memory leak.
6468 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6469 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6470 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6471 line a comment.
6472 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6473
6474 2002-07-17 Jim Blandy <jimb@redhat.com>
6475
6476 * macrocmd.c (info_macro_command): Remove newline from error
6477 message.
6478
6479 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6480
6481 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6482 (sh_gdbarch_init): Use it for sh-dsp.
6483
6484 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6485
6486 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6487 64-bit DWARF2 format.
6488
6489 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6490
6491 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6492 <sys/proc.h> when not available.
6493
6494 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6495
6496 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6497 * stabsread.c: Make os9k sections of the code obsolete.
6498 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6499 * config/i386/i386os9k.mt: Make file obsolete.
6500 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6501 (COMMON_OBS): Remove os9kread.o
6502 (SFILES): Remove os9kread.c.
6503 (os9kread.o, remote-os9k.o): Make target obsolete.
6504 * remote-os9k.c: Make file obsolete.
6505 * os9kread.c: Make file obsolete.
6506 * Makefile.in
6507
6508 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6509
6510 * NEWS: Mention that the FR30 has been made obsolete.
6511 * fr30-tdep.c: Make file obsolete.
6512 * config/fr30/tm-fr30.h: Ditto.
6513 * config/fr30/fr30.mt: Ditto.
6514 * configure.tgt: Make fr30-*-elf obsolete.
6515 * MAINTAINERS: Make fr30-elf obsolete.
6516
6517 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6518
6519 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6520 found is not inside a section.
6521
6522 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6523
6524 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6525 strerror().
6526 (pdc_realloc): Use xrealloc() instead of realloc().
6527
6528 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6529
6530 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6531 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6532 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6533 macros.
6534
6535 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6536
6537 * aix-thread.c (ptrace_check): Eliminate goto.
6538 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6539 problem.
6540
6541 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6542
6543 * aix-thread.c (gdbcmd.h): Include.
6544 (DEBUG, DBG, DBG2, dbg): Eliminate.
6545 (debug_aix_thread): New static global.
6546 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6547 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6548 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6549 invocations to DBG and DBG2 macros to test against
6550 ``debug_aix_thread'' and call fprintf_unfiltered().
6551 (_initialize_aix_thread): Add new command "set debug aix-thread".
6552
6553 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6554
6555 From Gerhard Tonn <TON@de.ibm.com>:
6556 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6557 instead of supply_register.
6558
6559 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6560
6561 * dwarf2cfi.c: Include "gdb_assert.h".
6562 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6563 non-NULL.
6564 (update_context): Do not use __func__. Add missing ``break''.
6565 (update_context): Do not use __func__.
6566
6567 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6568
6569 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6570 and its setting. Set gdbarch instruction printing functions
6571 directly. For non-rs6000 case use new function
6572 gdb_print_insn_powerpc.
6573 (gdb_print_insn_powerpc): New function.
6574
6575 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6576
6577 * NEWS: Mention that the d30v has been marked obsolete.
6578 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6579 * configure.tgt: Mark d30v-*-* as obsolete.
6580 * d30v-tdep.c: Mark file as obsolete.
6581 * config/d30v/d30v.mt: Ditto.
6582 * config/d30v/tm-d30v.h: Ditto.
6583
6584 2002-07-13 Aidan Skinner <aidan@velvet.net>
6585
6586 * ada-tasks.c (add_task_entry): replace calls to
6587 malloc() with xmalloc
6588 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6589
6590 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6591 ada_finish_decode_line_1, all_sals_for_line
6592 ada_breakpoint_rewrite): replace calls to free() with xfree()
6593
6594 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6595
6596 From Nicholas Duffek (with minor changes by Martin Hunt,
6597 Louis Hamilton, and Kevin Buettner):
6598 * aix-thread.c: New file.
6599
6600 2002-07-12 Petr Sorfa <petrs@caldera.com>
6601
6602 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6603 complaint for invalid attribute class or form.
6604 (read_func_scope): DW_AT_frame_base
6605 better handling of DW_AT_block*.
6606 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6607 better handling of DW_AT_block*.
6608 (read_common_block): DW_AT_location
6609 better handling of DW_AT_block*.
6610 (read_partial_die): DW_AT_location better handling
6611 of DW_AT_block*.
6612 (new_symbol): DW_AT_external better handling of
6613 DW_AT_block*. Proper initialization of variable
6614 "addr".
6615 (attr_form_is_block): New function that returns true
6616 if the attribute's form is of DW_FORM_block*.
6617
6618 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6619
6620 * valops.c (find_method_list): Remove comment about
6621 removed STATIC_MEMFUNCP argument.
6622 (value_find_oload_method_list): Likewise.
6623
6624 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6625
6626 From Nicholas Duffek:
6627 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6628 target_new_objfile_hook.
6629
6630 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6631
6632 From Nicholas Duffek:
6633 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6634 csect.
6635
6636 2002-07-12 Andrew Cagney <cagney@redhat.com>
6637
6638 * MAINTAINERS: Mention --enable-sim-build-warnings.
6639 (m68hc11-elf): Disable sim build warnings.
6640 (m32r-elf): Mark as broken obsolete candidate.
6641 (x86_64-linux-gnu): Mark as buildable with -Werror.
6642 (arm-elf): Change -w to ``,'' which enables warnings but not
6643 -Werror.
6644
6645 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6646
6647 * bcache.h: Update copyright.
6648 (struct bstring, struct bcache): Move definition to "bcache.c".
6649 Replaced by opaque declaration.
6650 (bcache_xfree): Replace free_bcache.
6651 (bcache_xmalloc, bcache_memory_used): Declare.
6652
6653 * bcache.c: Update copyright.
6654 (struct bstring, struct bcache): Moved to here from "bcache.h".
6655 Update comments.
6656 (bcache_xmalloc, bcache_memory_used): New functions.
6657 (bcache_xfree): Replace function free_bcache.
6658
6659 * Makefile.in (objfiles.o): Add $(bcache_h).
6660 (objfiles_h): Remove $(bcache_h).
6661 (symfile.o): Add $(bcache_h).
6662
6663 * symmisc.c: Update copyright.
6664 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6665 (print_objfile_statistics): Use bcache_memory_used.
6666
6667 * symfile.c: Include "bcache.h".
6668 (reread_symbols): Use bcache_xfree.
6669 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6670 (add_psymbol_to_list): Pass psymbol_cache by value.
6671 (add_psymbol_with_dem_name_to_list): Ditto.
6672
6673 * objfiles.h: Update copyright.
6674 (struct bcache): Declare opaque. Do not include "bcache.h".
6675 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6676 bcache'' pointers.
6677 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6678
6679 * objfiles.c: Include "bcache.h". Update copyright.
6680 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6681 macro_cache.
6682 (free_objfile): Use bcache_xfree.
6683
6684 2002-07-11 Grace Sainsbury <graces@redhat.com>
6685
6686 * monitor.c (monitor_fetch_register): Make name a constant.
6687 (monitor_store_register): Same.
6688
6689 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6690
6691 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6692 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6693 (finish_block) For non-function blocks, hash the symbol table. For
6694 function blocks, mark the symbol table as unhashed.
6695 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6696 (msymbol_hash_iw): Likewise.
6697 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6698 value.
6699 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6700 (lookup_minimal_symbol): Likewise for both.
6701 * symtab.h (struct block): Add `hashtable' flag. Comment the
6702 hashtable.
6703 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6704 (ALL_BLOCK_SYMBOLS): Update.
6705 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6706 (struct symbol): Add `hash_next' pointer.
6707 * symtab.c (lookup_block_symbol): Search using the hash table when
6708 possible.
6709 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6710 (search_symbols, find_addr_symbol): Likewise.
6711
6712 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6713 (read_dst_symtab): Likewise.
6714 * jv-lang.c (get_java_class_symtab): Likewise.
6715 * mdebugread.c: Include "gdb_assert.h".
6716 (shrink_block): Assert that the block being modified is not hashed.
6717 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6718 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6719 symbols.
6720 (dump_symtab): Recognize hashed blocks.
6721 * printcmd.c (print_frame_args): Assert that function blocks do not
6722 have hashed symbol tables.
6723 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6724 (fill_in_ada_prototype, debug_print_block): Likewise.
6725 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6726
6727 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6728
6729 * stack.c (print_frame): Use result of frame_address_in_block()
6730 instead of fi->pc when evaluating symbols.
6731 (backtrace_command_1): Ditto.
6732
6733 2002-07-11 Andrew Cagney <cagney@redhat.com>
6734
6735 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6736 Make static.
6737
6738 * arm-tdep.c (arm_register_name): Make return type constant.
6739
6740 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6741
6742 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6743 prototype.
6744 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6745 * s390-tdep.c (s390_fp_regnum): Ditto.
6746 (s390_read_fp): Ditto.
6747 (s390_pop_frame): Ditto.
6748 (_initialize_s390_tdep): Ditto.
6749 * remote.c (get_remote_state): Ditto.
6750 * procfs.c (mappingflags): Ditto.
6751 * memattr.c (_initialize_mem): Ditto.
6752 * mcore-tdep.c (mcore_pop_frame): Ditto.
6753 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6754 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6755 * language.c (set_case_str): Ditto.
6756 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6757 * frv-tdep.c (new_variant): Ditto.
6758 (frv_stopped_data_address): Ditto.
6759 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6760 (context_alloc): Ditto.
6761 (frame_state_alloc): Ditto.
6762 (unwind_tmp_obstack_init): Ditto.
6763 (unwind_tmp_obstack_free): Ditto.
6764 (cfi_read_fp): Ditto.
6765 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6766 (cris_pop_frame): Ditto.
6767 * c-lang.c (scanning_macro_expansion): Ditto.
6768 (finished_macro_expansion): Ditto.
6769 (c_preprocess_and_parse): Ditto.
6770 * gdbarch.sh: Ditto.
6771 * gdbarch.h, gdbarch.c: Regenerate.
6772 * config/mn10200/tm-mn10200.h: Adjust indentation.
6773 * target.c: Adjust indentation.
6774 * symtab.h: Adjust indentation.
6775 * stabsread.h: Adjust indentation.
6776 * remote-es.c: Adjust indentation.
6777 * os9kread.c: Adjust indentation.
6778
6779 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6780
6781 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6782 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6783
6784 2002-07-10 Grace Sainsbury <graces@redhat.com>
6785
6786 * NEWS: Mention m68k, mcore multi-arching.
6787 * MAINTAINERS: Change status of m68k, mcore to reflect
6788 multi-arching.
6789
6790 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6791
6792 * valops.c (find_overload_match): Free oload_syms.
6793
6794 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6795
6796 Define HAVE_SYS_PROC_H if sys/proc.h exists
6797 * configure.in: Add check for sys/proc.h
6798 * config.in: Regenerate.
6799 * configure: Regenerate.
6800
6801 2002-07-09 Grace Sainsbury <graces@redhat.com>
6802
6803 * config/m68k/tm-m68k.h: Remove macros wrapped in
6804 #if !GDB_MULTI_ARCH.
6805
6806 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6807
6808 * config.in, configure: Regenerate.
6809
6810 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6811
6812 * dwarf2cfi.c: Include "gcore.h".
6813 (execute_stack_op): Fix implementation of the
6814 DW_OP_deref and DW_OP_deref_size operators by letting do their
6815 lookup in the target.
6816
6817 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6818
6819 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6820 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6821 tdep->sc_sp_offset.
6822
6823 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6824
6825 Fix PR gdb/595, gdb/602
6826 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6827 Don't call value_cast, just read the vtable pointer; update comments
6828 to match.
6829
6830 2002-07-05 Grace Sainsbury <graces@redhat.com>
6831
6832 * config/mcore/tm-mcore.h: Remove file.
6833 * config/mcore/mcore.mt: Remove definition of TM_FILE
6834 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6835
6836 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6837
6838 * i386bsd-tdep.c: Include "gdb_string.h".
6839
6840 2002-07-04 Grace Sainsbury <graces@redhat.com>
6841
6842 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6843 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6844 mcore-tdep.
6845 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6846 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6847 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6848 (RETVAL_REGNUM): Move macros from tm-mcore.h
6849 (mcore_reg_struct_has_addr): New function.
6850 (mcore_gdbarch_init): Added initializations for the macros removed
6851 from tm-mcore.h.
6852
6853 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6854
6855 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6856 traditonal string branding within the ELF header.
6857
6858 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * symtab.c (remove_params): New function.
6861 (make_symbol_overload_list): Use it instead of cplus_demangle.
6862 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6863
6864 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6865
6866 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6867
6868 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6869 New variables.
6870 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6871 and tdep->sigtramp_end.
6872 * i386obsd-nat.c: New file.
6873 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6874
6875 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6876 Don't call get_current_frame().
6877
6878 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6879
6880 * i386-nat.c (child_post_startup_inferior): New function
6881 calling i386_cleanup_dregs if
6882 I386_USE_GENERIC_WATCHPOINTS is defined.
6883 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6884 conditional to acknowledge that i386-nat.c has its
6885 own child_post_startup_inferior function.
6886
6887 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6888
6889 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6890 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6891 instead of MAX_REGISTER_RAW_SIZE.
6892 (i386_extract_return_value, i386_extract_struct_value_address):
6893 Convert to use regcache.
6894 (i386_gdbarch_init): Set max_register_raw_size and
6895 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6896 Set extract_return_value and extract_struct_value_address instead
6897 of their deprecated variants.
6898
6899 Convert i386 target to generic dummy frames.
6900 * i386-tdep.c: Include "symfile.h".
6901 (i386_frameless_signal_p): Consider a function to be frameless if
6902 the pc points at the first instruction of the function.
6903 (i386_frame_chain): Handle (generic) call dummies.
6904 (i386_frame_saved_pc): Likewise.
6905 (i386_frame_init_saved_regs): Remove code dealing with call
6906 dummies on the stack.
6907 (i386_push_dummy_frame): Removed.
6908 (i386_call_dummy_words): Removed.
6909 (i386_fix_call_dummy): Removed.
6910 (i386_push_return_address): New function.
6911 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6912 parameter, and don't call get_current_frame.
6913 (i386_pop_frame): New function.
6914 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6915 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6916 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6917 call_dummy_length to 0, set call_dummy_words to NULL, set
6918 sizeof_call_dummy_words to 0, set fix_call_dummy to
6919 generic_fix_call_dummy, set pc_in_call_dummy to
6920 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6921 generic_push_dummy_frame, set push_return_address to
6922 i386_push_return_address and set frame_chain_valid to
6923 generic_file_frame_chain_valid.
6924
6925 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6926
6927 * gdbarch.sh (struct regcache): Add opaque declaration.
6928 (EXTRACT_RETURN_VALUE): New architecture method.
6929 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6930 * gdbarch.h, gdbarch.c: Regenerate.
6931 * arch-utils.c (legacy_extract_return_value): New function.
6932 * arch-utils.h (legacy_extract_return_value): Declare.
6933 * values.c (value_being_returned): Re-enable code handling
6934 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6935 deprecated_grub_regcache_for_registers call to block handling
6936 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6937 (EXTRACT_RETURN_VALUE): Do not define.
6938
6939 2002-07-03 Grace Sainsbury <graces@redhat.com>
6940
6941 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6942 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6943 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6944 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6945 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6946 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6947 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6948 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6949 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6950 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6951 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6952 argument so the function fits the prototype in the architecture
6953 vector.
6954 (mcore_pop_frame): Remove argument so the function fits the
6955 prototype. Use get_current_frame instead of the argument.
6956 (mcore_push_arguments): Change type of struct_return so the
6957 function can be used in the architecture vector.
6958 (mcore_store_struct_return): Add.
6959 (mcore_frame_init_saved_regs): Add.
6960 (mcore_gdbarch_init): Add function calls to replace the macros
6961 removed from tm-mcore.h
6962
6963 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6964
6965 * infcmd.c (print_return_value): Remove compatibility code calling
6966 deprecated_grub_regcache_for_registers.
6967
6968 * values.c: Include "regcache.h".
6969 (value_being_returned): Update. Use
6970 deprecated_grub_regcache_for_registers to extract the register
6971 buffer address.
6972 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6973 ``struct regcache''.
6974 * Makefile.in (values.o): Add dependency on $(regcache_h).
6975
6976 * inferior.h (run_stack_dummy): Change type of second parameter to
6977 a ``struct regcache''.
6978 * valops.c (hand_function_call): Change type of retbuf to ``struct
6979 regcache''. Allocate using regcache_xmalloc, clean using
6980 make_cleanup_regcache_xfree.
6981 * infcmd.c (run_stack_dummy): Update. Use
6982 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6983
6984 * regcache.c (do_regcache_xfree): New function.
6985 (make_cleanup_regcache_xfree): New function.
6986 * regcache.h (make_cleanup_regcache_xfree): Declare.
6987
6988 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6989
6990 * event-top.c (command_line_handler): Don't read past
6991 beginning of buffer.
6992
6993 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6994
6995 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6996 struct frame_id.
6997 (varobj_create): Store frame_id for root.
6998 (varobj_gen_name): Use xasprintf.
6999 (varobj_update): Save and restore frame using get_frame_id() and
7000 frame_find_by_id().
7001 (create_child): Use xasprintf.
7002 (new_root_variable): Initialize frame_id.
7003 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7004 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7005 to prevent memory leak.
7006
7007 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7008
7009 * valops.c (hand_function_call): Move declaration of retbuf to
7010 start of function, allocate using malloc, add a cleanup but before
7011 the inf_status cleanup, cleanup the buffer. Rename local variable
7012 old_chain to inf_status_cleanup.
7013
7014 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7015
7016 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7017
7018 * cli/cli-decode.c (cmd_func_p): New function.
7019 (cmd_func): New function.
7020
7021 * command.h: Add cmd_func() and cmd_func_p().
7022
7023 2002-07-03 Grace Sainsbury <graces@redhat.com>
7024
7025 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7026 (REGISTER_SIZE): Remove.
7027 (MAX_REGISTER_RAW_SIZE): Remove.
7028 (REGISTER_VIRTUAL_TYPE): Remove.
7029 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7030 (REGISTER_NAME): Remove.
7031 (USE_GENERIC_DUMMY_FRAMES): Remove.
7032 (CALL_DUMMY): Remove.
7033 (CALL_DUMMY_START_OFFSET): Remove.
7034 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7035 (CALL_DUMMY_LOCATION): Remove.
7036 (FIX_CALL_DUMMY): Remove.
7037 (CALL_DUMMY_ADDRESS): Remove.
7038 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7039 (SAVE_DUMMY_FRAME_TOS): Remove.
7040 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7041 (mcore_register_virtual_type): New function.
7042 (mcore_register_byte): New function.
7043 (mcore_register_size): New function.
7044 (mcore_register_name): New function.
7045 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7046 macros removed from tm-mcore.h.
7047 (mcore_dump_tdep): Add.
7048 (_initialize_mcore_tdep): Add gdbarch_register call.
7049
7050 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7051
7052 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7053 frameless_look_for_prologue, such that we actually call this
7054 function.
7055
7056 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7057
7058 * frame.h (frame_address_in_block): New function.
7059
7060 * blockframe.c (frame_address_in_block): New function extracted
7061 from get_frame_block().
7062 (get_frame_block): Use frame_address_in_block().
7063 (block_innermost_frame): Use frame_address_in_block() to match
7064 the frame pc address against the block boundaries rather than
7065 the frame pc directly. This prevents a failure when a frame pc
7066 is actually a return-address pointing immediately after the end
7067 of the given block.
7068
7069 2002-07-02 Grace Sainsbury <graces@redhat.com>
7070
7071 * MAINTAINERS: Add self under write after approval.
7072
7073 2002-07-02 Grace Sainsbury <graces@redhat.com>
7074
7075 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7076 used in architecture vector. The default is
7077 m68k_local_breakpoint_from_pc.
7078 (m68k_local_breakpoint_from_pc): Add.
7079 (enum): Add register numbers from tm-m68k.h.
7080 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7081 vector.
7082 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7083 GDB_MULTI_ARCH_PARTIAL.
7084 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7085 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7086 m68k-tdep.c.
7087 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7088 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7089 to enum in m68k-tdep.c
7090
7091 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7092
7093 * solib-osf.c (open_map): Compute the list of shared libraries
7094 loaded by the inferior, rather than the list of libraries loaded
7095 by GDB itself. Otherwise, GDB ends up reading the symbols from
7096 the wrong shared libraries...
7097
7098 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7099
7100 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7101 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7102 macros.
7103 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7104 Remove functions.
7105 (FRAMELESS_SIGNAL): Remove function.
7106 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7107 i386_linux_saved_pc_after_call): Removed.
7108 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7109 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7110 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7111
7112 * i386-tdep.c (i386_frameless_signal_p): New function.
7113 (i386_frame_chain): Deal with frameless signals.
7114 (i386_sigtramp_saved_sp): New function.
7115 (i386_frame_saved_pc): Deal with frameless signals.
7116 (i386_saved_pc_after_call): Make sure the correct value is
7117 returned just after entry into a sigtramp.
7118 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7119 i386fbsd4_sc_sp_offset): New variables.
7120 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7121 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7122 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7123 similiar to what we already did for sc_pc_offset.
7124 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7125 tdep->sc_sp_offset.
7126
7127 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7128
7129 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7130
7131 * config/i386/tm-x86-64linux.h: New.
7132 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7133 definitions.
7134 * config/i386/nm-x86-64.h: Rename to ...
7135 * config/i386/nm-x86-64linux.h: ... this one.
7136 * config/i386/x86-64linux.mh: Reflect the above change.
7137
7138 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7139
7140 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7141 with sigcontext_addr. Add sc_sp_offset.
7142 (i386bsd_sigtramp_saved_pc): Remove prototype.
7143 (i386bsd_sicontext_addr): Add prototype.
7144 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7145 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7146 (i386_svr4_sigtramp_saved_pc): Removed.
7147 (i386_svr4_sigcontext_addr): New function.
7148 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7149 Initialize tdep->sigcontext_addr instead. Initialize
7150 tdep->sc_pc_offset and tdep->sc_sp_offset.
7151 (i386_gdbarch_init): Likewise.
7152 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7153 any more.
7154 (i386bsd_sigtramp_saved_pc): Remove function.
7155 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7156 Initialize tdep->sigcontext_addr instead. Initialize
7157 tdep->sc_pc_offset.
7158 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7159 of tdep->sigtramp_saved_pc.
7160 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7161 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7162 instead.
7163
7164 * i386-tdep.c (i386_frameless_function_invocation,
7165 i386_frame_num_args, i386_frame_init_saved_regs,
7166 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7167 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7168 i386_extract_return_value, i386_store_return_value,
7169 i386_extract_struct_value_address, i386_register_virtual_type,
7170 i386_register_convertible, i386_register_convert_to_virtual,
7171 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7172 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7173 static.
7174
7175 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7176
7177 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7178
7179 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7180 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7181 this macro. Include "value.h".
7182
7183 2002-06-30 Aidan Skinner <aidan@velvet.net>
7184
7185 * ada-exp.tab.c: remove as it's a generated file
7186 * ada-lex.c: remove as it's a generated file
7187
7188 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7189
7190 * config/i386/tm-i386.h (struct frame_info, struct
7191 frame_saved_regs, struct value, struct type): Remove forward
7192 declarations.
7193
7194 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7195 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7196 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7197 (FILL_FPXREGSET): Define.
7198
7199 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7200
7201 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7202 i[3456]86-*-netbsd* case.
7203 * config/i386/tm-obsd.h: Removed.
7204 * config/i386/obsd.mt: Removed.
7205 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7206 core-aout.o.
7207 (MH_CFLAGS): Add -DYYDEBUG=0.
7208
7209 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7210 i386nbsd_sc_pc_offset on OpenBSD too.
7211
7212 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7213 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7214 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7215 define.
7216 * i386bsd-tdep.c: Include "arch-utils.h".
7217 (i386bsd_aout_in_solib_call_trampoline): New function.
7218 (i386bsd_init_abi): Set in_solib_call_trampoline to
7219 i386bsd_aout_in_solib_call_trampoline.
7220 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7221 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7222
7223 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7224
7225 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7226 (struct obstack, struct bcache): Add opaque declarations.
7227 * Makefile.in (macrotab_h): Update
7228
7229 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7230
7231 * blockframe.c (generic_find_dummy_frame): Change return type to
7232 ``struct regcache''.
7233 (struct dummy_frame): Replace field ``registers'' with regcache, a
7234 struct regcache object.
7235 (generic_find_dummy_frame): Update.
7236 (generic_push_dummy_frame): Update. Use regcache_xfree,
7237 regcache_xmalloc and regcache_cpy.
7238 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7239 regcache_xfree.
7240 (deprecated_generic_find_dummy_frame): Update.
7241 (generic_read_register_dummy): Update. Use
7242 regcache_read_as_address.
7243 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7244 (generic_get_saved_register): Update. Use regcache_read.
7245
7246 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7247
7248 * Makefile.in (objfiles_h): Add $(bcache_h).
7249 * objfiles.h: Include "bcache.h".
7250
7251 * Makefile.in (symtab_h): Remove $(bcache_h).
7252 * symtab.h: Do not include "bcache.h".
7253
7254 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7255
7256 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7257 generic_func_frame_chain_valid.
7258
7259 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7260
7261 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7262 * config/i386/tm-fbsd.h: Likewise.
7263
7264 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7265
7266 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7267 generic_unwind_get_saved_register.
7268
7269 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7270
7271 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7272 * regcache.c (supply_register): Add missing argument to
7273 register_buffer call.
7274
7275 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7276
7277 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7278 Solaris /bin/grep does not not like it. From Peter Schauer.
7279
7280 2002-06-26 Tom Tromey <tromey@redhat.com>
7281
7282 * command.h (add_setshow_cmd): Declare.
7283 (add_setshow_cmd_full): Declare.
7284 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7285 returns void. Use add_setshow_cmd_full.
7286 (add_setshow_cmd_full): New function.
7287 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7288 (add_setshow_boolean_cmd): Likewise.
7289
7290 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7291
7292 * config/vax/tm-vax.h: Protect from multiple inclusion.
7293 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7294 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7295 * config/vax/tm-vaxbsd.h: ...here. New file.
7296 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7297
7298 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7299
7300 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7301 (BELIEVE_PCC_PROMOTION): Remove.
7302 (AP_REGNUM): Move to...
7303 * config/vax/nm-vax.h: ...here.
7304 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7305 (vax_breakpoint_from_pc): New function.
7306 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7307 and gdbarch_believe_pcc_promotion.
7308
7309 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7310
7311 * Makefile.in (vax_tdep_h): Define.
7312 (vax-tdep.o): Use $(vax_tdep_h).
7313 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7314 (vax_dump_tdep): New function.
7315 (_initialize_vax_tdep): Register vax_dump_tdep.
7316 * vax-tdep.h: Include osabi.h.
7317 (struct gdbarch_tdep): New.
7318
7319 2002-06-26 Andrew Cagney <cagney@redhat.com>
7320
7321 * frame.h (deprecated_generic_find_dummy_frame): Rename
7322 generic_find_dummy_frame.
7323 * blockframe.c (generic_find_dummy_frame): Make static.
7324 (deprecated_generic_find_dummy_frame): New function.
7325 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7326 generic_find_dummy_frame with deprecated_find_dummy_frame.
7327 (sh64_nofp_frame_init_saved_regs): Ditto.
7328 (sh_fp_frame_init_saved_regs): Ditto.
7329 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7330 (s390_frame_chain): Ditto.
7331 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7332
7333 2002-06-26 Grace Sainsbury <graces@redhat.com>
7334
7335 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7336 gdbarch vector are at the top.
7337 (NUM_REGS): Remove.
7338 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7339 (FRAME_ARGS_ADDRESS): Remove.
7340 (FRAME_LOCALS_ADDRESS): Remove.
7341 (FRAME_NUM_ARGS): Remove.
7342 (FRAME_ARGS_SKIP): Remove.
7343 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7344 (m68k_gdbarch_init): Add gdbarch initializations for macros
7345 undefined in tm-m68k.h
7346
7347 2002-06-26 Grace Sainsbury <graces@redhat.com>
7348
7349 * monitor.h: Add the function regname to monitor_ops
7350 structure. This way NUM_REGS does not have to be a constant.
7351 * monitor.c (monitor_fetch_register): Added support for regname
7352 function. The function is called if the array regnames is NULL.
7353 (monitor_store_register): Same.
7354 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7355 regnames array.
7356 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7357 cpu32bug_cmds.regname to point to new function.
7358 * abug-rom.c (abug_regname): Same as above.
7359 (init_abug_cmds): Same.
7360 * dbug-rom.c (dbug_regname): Same as above.
7361 (init_dbug_cmds): Same.
7362 * remote-est.c (est_regname): Same.
7363 (init_est_cmds): Same.
7364 * rom68k-rom.c (rom68k_regname): Same.
7365 (init_rom68k_cmds): Same.
7366
7367 2002-06-25 Tom Tromey <tromey@redhat.com>
7368
7369 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7370
7371 2002-06-25 Andrew Cagney <cagney@redhat.com>
7372
7373 * infrun.c (stop_registers): Change variable's type to ``struct
7374 regcache'''.
7375 (xmalloc_inferior_status): Delete function.
7376 (free_inferior_status): Delete function.
7377 (normal_stop): Use regcache_cpy.
7378 (struct inferior_status): Change type of fields ``stop_registers''
7379 and ``registers'' to ``struct regcache''.
7380 (write_inferior_status_register): Use regcache_write.
7381 (save_inferior_status): Instead of calling
7382 xmalloc_inferior_status, allocate the inf_status buffer directly.
7383 Use regcache_dup_no_passthrough and regcache_dup to save the
7384 buffers.
7385 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7386 Replace the stop_registers regcache instead of overriding it. Use
7387 regcache_xfree. Instead of calling free_inferior_status, xfree
7388 the buffer directly.
7389 (discard_inferior_status): Use regcache_xfree. Instead of calling
7390 free_inferior_status, xfree the buffer directly.
7391 (build_infrun): Use regcache_xmalloc.
7392 (_initialize_infrun): Delete redundant call to build_infrun.
7393
7394 * Makefile.in (infcmd.o): Add $(regcache_h).
7395
7396 * infcmd.c: Include "regcache.h".
7397 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7398 obtain the address of `stop_registers' register buffer.
7399 (print_return_value): Ditto.
7400
7401 * inferior.h (struct regcache): Add opaque declaration.
7402 (stop_registers): Change variable's declared type to ``struct
7403 regcache''.
7404
7405 2002-06-24 Tom Tromey <tromey@redhat.com>
7406
7407 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7408 * target.c (initialize_targets): Fixed typo in
7409 trust-readonly-sections `show' documentation.
7410
7411 * main.c: Marked all strings with _().
7412
7413 2002-06-24 Don Howard <dhoward@redhat.com>
7414
7415 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7416 that means max CORE_ADDR+1.
7417 (lookup_mem_region): Ditto.
7418 (mem_info_command): Ditto.
7419
7420 2002-06-24 Grace Sainsbury <graces@redhat.com>
7421
7422 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7423 (REGISTER_BYTES_OK): Remove.
7424 (REGISTER_BYTES): Remove.
7425 (STORE_STRUCT_RETURN): Remove.
7426 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7427 (STORE_RETURN_VALUE): Remove.
7428 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7429 (FRAME_CHAIN): Remove.
7430 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7431 (FRAME_SAVED_PC): Remove.
7432 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7433 (m68k_store_struct_return): Add.
7434 (m68k_deprecated_extract_return_value): Add.
7435 (m68k_deprecated_extract_struct_value_address): Add.
7436 (m68k_store_return_value): Add.
7437 (m68k_frame_chain): Add.
7438 (m68k_frameless_function_invocation): Add.
7439 (m68k_frame_saved_pc): Add.
7440 (m68k_gdbarch_init): added set_gdbarch calls for new
7441 functions and deleted macros.
7442
7443 2002-06-23 Tom Tromey <tromey@redhat.com>
7444
7445 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7446 (ALLDEPFILES): Likewise.
7447 (udiheaders): Removed.
7448 (udip2soc.o): Likewise.
7449 (udi2go32.o): Likewise.
7450 (udr.o): Likewise.
7451 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7452
7453 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7454
7455 * infrun.c (_initialize_infrun): Delete unnecessary call to
7456 build_infrun.
7457
7458 * regcache.h: Update comments describing the regcache_cpy family
7459 of functions.
7460 (regcache_save, regcache_restore): Delete declaration.
7461 (regcache_save_no_passthrough): Delete declaration.
7462 (regcache_restore_no_passthrough): Delete declaration.
7463 * regcache.c (regcache_save): Delete function.
7464 (regcache_save_no_passthrough): Delete function.
7465 (regcache_restore): Delete function.
7466 (regcache_restore_no_passthrough): Delete function.
7467
7468 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7469
7470 * config/m68k/tm-m68k.h: Fix typo.
7471 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7472 (m68k_frame_init_saved_regs): Declare.
7473
7474 2002-06-21 Jim Blandy <jimb@redhat.com>
7475
7476 Remove some vestiges of Harris 88k support.
7477 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7478 register numbering quirk.
7479 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7480 odd symbols occurring in Harris 88k ELF targets.
7481
7482 2002-06-21 Tom Tromey <tromey@redhat.com>
7483
7484 * gdb_locale.h: New file.
7485 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7486 (defs_h): Added gdb_locale.h.
7487 * configure, config.in: Rebuilt.
7488 * configure.in (PACKAGE): Define.
7489 * defs.h: Include gdb_locale.h.
7490 * main.c (captured_main): Call setlocale, bindtextdomain,
7491 textdomain.
7492
7493 2002-06-21 Dave Brolley <brolley@redhat.com>
7494
7495 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7496 * config/frv/frv.mt: New file.
7497 * config/frv/tm-frv.h: New file.
7498 * configure.tgt: Support frv-*-*.
7499 * Makefile.in (frv-tdep.o): New target.
7500 * frv-tdep.c: New file.
7501 * NEWS: Mention frv.
7502
7503 2002-06-21 Dave Brolley <brolley@redhat.com>
7504
7505 * MAINTAINERS: Add self to "Write After Approval" list.
7506
7507 2002-06-21 Grace Sainsbury <graces@redhat.com>
7508
7509 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7510 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7511 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7512 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7513 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7514
7515 * m68k-tdep.c: Include arch-utils.h
7516 (m68k_register_raw_size): Add.
7517 (m68k_register_virtual_size): Add.
7518 (m68k_register_virtual_type): Add.
7519 (m68k_register_name): Add.
7520 (m68k_stack_align): Add.
7521 (m68k_register_byte): Add.
7522 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7523 tm-m68k.h.
7524
7525 2002-06-21 Grace Sainsbury <graces@redhat.com>
7526
7527 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7528 m68k_find_saved_regs.
7529 (m68k_pop_frame): Removed saved_regs structure, and replaced
7530 references to it with frame->saved_regs.
7531 (m68k_gdbarch_init): Added function calls to initialize the
7532 gdbarch structure.
7533 (m68k_fix_call_dummy): Add.
7534 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7535 (CALL_DUMMY): Remove.
7536 (CALL_DUMMY_LENGTH): Remove.
7537 (CALL_DUMMY_START_OFFSET): Remove.
7538 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7539 (FIX_CALL_DUMMY): Remove.
7540 (PUSH_DUMMY_FRAME): Remove.
7541 (POP_FRAME): Remove.
7542
7543 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7544
7545 * parse.c (parse_fprintf): New function used to avoid calls to
7546 fprintf in bison parser generated debug code.
7547 * parser-defs.h: Declaration of new parse_fprintf function.
7548 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7549 Set YYDEBUG to 1 by default.
7550 Set YYFPRINTF as parse_fprintf.
7551
7552 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7553
7554 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7555 encoding anymore.
7556 (pointer_encoding, enum ptr_encoding): New.
7557 (execute_cfa_program): Take care about pointer encoding.
7558 (dwarf2_build_frame_info): Only call parse_frame_info for
7559 .debug_frame and .eh_frame.
7560 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7561 fixed augmentation handling, added relative addressing,
7562 ignore duplicate FDEs. Added comments.
7563 * dwarf2cfi.c: Reindented.
7564
7565 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7566
7567 * event-top.c (command_handler): Don't use space_at_cmd_start
7568 unless there is sbrk() on the host. Assign time and space data
7569 to union fields of the appropriate length.
7570
7571 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7572
7573 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7574 x86_64_register_name. Return type changed to 'const char *'.
7575 (x86_64_register_name2nr): Rename to x86_64_register_number.
7576 (x86_64_gdbarch_init): Update to reflect the change.
7577 * x86-64-tdep.h: Ditto.
7578 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7579 (supply_fpregset): Ditto.
7580
7581 2002-06-19 Andrew Cagney <cagney@redhat.com>
7582
7583 * regcache.h: Update copyright.
7584 (struct regcache, struct gdbarch): Add opaque declarations.
7585 (current_regcache): Declare global variable.
7586 (regcache_read, regcache_write): Add gdbarch parameter.
7587 (regcache_save, regcache_save_no_passthrough)
7588 (regcache_restore, regcache_restore_no_passthrough)
7589 (regcache_dup, regcache_dup_no_passthrough)
7590 (regcache_cpy, regcache_cpy_no_passthrough)
7591 (deprecated_grub_regcache_for_registers)
7592 (deprecated_grub_regcache_for_register_valid)
7593 (regcache_valid_p): Add function declarations.
7594
7595 * regcache.c: Update copyright.
7596 (regcache_descr_handle): New global variable.
7597 (struct regcache_descr): Define.
7598 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7599 (regcache_descr, xfree_regcache_descr): New functions.
7600 (struct regcache): Define.
7601 (regcache_xmalloc, regcache_xfree): New functions.
7602 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7603 (regcache_dup, regcache_dup_no_passthrough): New functions.
7604 (regcache_valid_p, regcache_read_as_address): New functions.
7605 (deprecated_grub_regcache_for_registers): New function.
7606 (deprecated_grub_regcache_for_register_valid): New function.
7607 (current_regcache): New global variable.
7608 (register_buffer): Add regcache parameter. Update calls.
7609 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7610 (read_register_gen, write_register_gen): Update register_buffer
7611 call. Test for legacy_p instead of gdbarch_register_read_p or
7612 gdbarch_register_write_p.
7613 (regcache_collect): Update register_buffer call.
7614 (build_regcache): Rewrite. Use deprecated grub functions.
7615 (regcache_save, regcache_save_no_passthrough): New functions.
7616 (regcache_restore, regcache_restore_no_passthrough): New
7617 functions.
7618 (_initialize_regcache): Create the regcache_data_handle. Swap
7619 current_regcache global variable.
7620
7621 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7622 parameter to regcache_read and regcache_write calls.
7623 (sh4_register_read): Ditto.
7624 (sh64_pseudo_register_read): Ditto.
7625 (sh64_register_read): Ditto.
7626 (sh_pseudo_register_write): Ditto.
7627 (sh4_register_write): Ditto.
7628 (sh64_pseudo_register_write): Ditto.
7629 (sh64_register_write): Ditto.
7630
7631 * defs.h (XCALLOC): Define.
7632
7633 2002-06-19 Grace Sainsbury <graces@redhat.com>
7634
7635 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7636 * m68k-tdep.c (m68k_gdbarch_init): Added.
7637 (m68k_dump_tdep): Added.
7638
7639 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7640
7641 * ada-lang.c (fill_in_ada_prototype): Update comment.
7642
7643 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7644
7645 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7646 MIPS_ABI_LAST.
7647 (mips_abi_string, mips_abi_strings): New.
7648 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7649 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7650 tdep->mips_abi_string. Honor mips_abi_string. Default to
7651 O32 if no ABI is found.
7652 (mips_dump_tdep): Use mips_abi_strings.
7653 (mips_abi_update): New function.
7654 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7655 ``set mips abi'' and ``show mips abi''. Check the size of
7656 mips_abi_strings.
7657
7658 2002-06-19 Andrew Cagney <cagney@redhat.com>
7659
7660 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7661 constant.
7662
7663 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7664
7665 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7666 current frame using only the first stack size adjustment. All
7667 subsequent size adjustments are not considered to be part of
7668 the "static" part of the current frame.
7669 Compute the address of the saved registers relative to the
7670 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7671 in use in this frame.
7672
7673 2002-06-18 Don Howard <dhoward@redhat.com>
7674
7675 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7676 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7677 suggesting this solution.
7678
7679 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7680
7681 * config/romp/xm-rtbsd.h: Delete file.
7682 * config/romp/rtbsd.mh: Delete file.
7683
7684 2002-06-18 Keith Seitz <keiths@redhat.com>
7685
7686 * breakpoint.c (condition_command): Post breakpoint_modify
7687 when a condition is added to an existing breakpoint.
7688 (commands_command): Likewise for commands.
7689 (set_ignore_count): Likewise for ignore counts.
7690 If no tty, do not simply return, still need to send event
7691 notification.
7692 (ignore_command): Only print a newline if the command came
7693 from a tty.
7694 Don't call breakpoints_changed, since this is now properly
7695 handled by set_ignore_count.
7696
7697 2002-06-18 Andrew Cagney <cagney@redhat.com>
7698
7699 * MAINTAINERS: Note that cris-elf target can be compiled with
7700 -Werror.
7701 * cris-tdep.c (cris_register_name): Make return type constant.
7702 (cris_breakpoint_from_pc): Ditto.
7703
7704 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7705
7706 * frame.h (struct frame_info): Change type of context to
7707 'struct context'.
7708
7709 2002-06-17 Andrew Cagney <cagney@redhat.com>
7710
7711 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7712 pointer.
7713 * gdbarch.h, gdbarch.c: Regenerate.
7714 * config/mips/tm-mips.h (mips_register_name): Update.
7715 * i386-tdep.h (i386_register_name): Update.
7716 * mips-tdep.c (mips_register_name): Update
7717 * alpha-tdep.c (alpha_register_name): Update.
7718 * arch-utils.c (legacy_register_name): Update.
7719 * arch-utils.h (legacy_register_name): Update.
7720 * avr-tdep.c (avr_register_name): Update.
7721 * ia64-tdep.c (ia64_register_name): Update.
7722 * i386-tdep.c (i386_register_name): Update.
7723 * sparc-tdep.c (sparc32_register_name): Update.
7724 (sparc64_register_name): Update.
7725 (sparclite_register_name): Update.
7726 (sparclet_register_name): Update.
7727 * sh-tdep.c (sh_generic_register_name): Update.
7728 (sh_sh_register_name): Update.
7729 (sh_sh3_register_name): Update.
7730 (sh_sh3e_register_name): Update.
7731 (sh_sh_dsp_register_name): Update.
7732 (sh_sh3_dsp_register_name): Update.
7733 (sh_sh4_register_name): Update.
7734 (sh_sh64_register_name): Update.
7735 * s390-tdep.c (s390_register_name): Update.
7736 * rs6000-tdep.c (rs6000_register_name): Update.
7737 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7738 (ns32k_register_name_32382): Update.
7739 * d10v-tdep.c (d10v_ts2_register_name): Update.
7740 (d10v_ts3_register_name): Update.
7741 * xstormy16-tdep.c (xstormy16_register_name): Update.
7742 * vax-tdep.c (vax_register_name): Update.
7743 * v850-tdep.c (v850_register_name): Update.
7744 * m68hc11-tdep.c (m68hc11_register_name): Update.
7745 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7746 (am33_register_name): Update.
7747
7748 2002-06-17 Grace Sainsbury <graces@redhat.com>
7749
7750 * m68k-tdep.c: Reindented.
7751
7752 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7753
7754 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7755 list of predefined types.
7756
7757 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7758
7759 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7760 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7761 REGISTER_CONVERT_TO_RAW): Remove defines.
7762 (i386_register_virtual_type, i386_register_convertible,
7763 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7764 Remove prototypes.
7765 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7766 macros mentioned above.
7767
7768 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7769 (i386lynx_saved_pc_after_call): Remove prototype.
7770 * i386ly-tdep.c: Include "i386-tdep.h".
7771 (i386lynx_saved_pc_after_call): Make static. Use
7772 read_memory_nobpt instead of read_memory. Use
7773 read_memory_unsigned_integer instead of read_memory_integer.
7774 (i386lynx_init_abi): New function.
7775 (i386lynx_coff_osabi_sniffer): New function.
7776 (_initialize_i386bsd_tdep): New function.
7777
7778 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7779 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7780 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7781 (i386_fix_call_dummy): Remove prototype.
7782 * i386-tdep.c (i386_call_dummy_words): New variable.
7783 (i386_gdbarch_init): Adjust for removal of the
7784 macros mentioned above.
7785
7786 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7787
7788 * command.h (add_setshow_auto_boolean_cmd): Replace
7789 add_set_auto_boolean_cmd.
7790 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7791 add_set_auto_boolean_cmd.
7792 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7793 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7794 mask-address'' command.
7795 (show_mask_address): Add cmd parameter.
7796 * remote.c (add_packet_config_cmd): Update. Change type of
7797 set_func and show_func to cmd_sfunc_ftype.
7798 (_initialize_remote): Update `set remote Z-packet'
7799 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7800 (show_remote_protocol_e_packet_cmd): Ditto.
7801 (show_remote_protocol_E_packet_cmd): Ditto.
7802 (show_remote_protocol_P_packet_cmd): Ditto.
7803 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7804 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7805 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7806 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7807 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7808 (show_remote_protocol_Z_packet_cmd): Ditto.
7809 (show_remote_protocol_binary_download_cmd): Ditto.
7810 (show_remote_cmd): Pass NULL to all of above.
7811
7812 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7813
7814 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7815 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7816 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7817 POP_FRAME): Remove defines.
7818 (i386_push_arguments, i386_store_struct_return,
7819 i386_extract_return_value, i386_store_return_value,
7820 i386_extract_struct_value_address, i386_push_dummy_frame,
7821 i386_pop_frame): Renove prototypes.
7822 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7823 macros mentioned above.
7824
7825 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7826
7827 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7828 add_set_boolean_cmd.
7829 (add_setshow_cmd): New function.
7830 * command.h (add_setshow_boolean_cmd): Replace
7831 add_set_boolean_cmd.
7832 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7833 and ``set rdiromatzero''.
7834 * maint.c (_initialize_maint_cmds): Update commented out code.
7835 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7836 * target.c (initialize_targets): Update `set
7837 trust-readonly-sections'.
7838 * remote.c (_initialize_remote): Update `set remotebreak'.
7839
7840 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7841
7842 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7843 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7844 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7845 fit into multi-arch framework.
7846 (i386_breakpoint_from_pc): New function.
7847 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7848 above.
7849
7850 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7851 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7852 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7853 (i386_frameless_function_invocation, i386_frame_num_args,
7854 i386_frame_init_saved_regs): Remove prototypes.
7855 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7856 macros mentioned above.
7857
7858 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7859
7860 * cli/cli-decode.c (set_cmd_cfunc): Update.
7861 (set_cmd_sfunc): Update.
7862 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7863 (set_cmd_sfunc, set_cmd_cfunc): Update.
7864 * cli/cli-decode.h: Update.
7865
7866 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7867
7868 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7869 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7870
7871 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7872
7873 * defs.h (auto_boolean): Declare enum.
7874 * command.h (cmd_auto_boolean): Delete enum.
7875 * mips-tdep.c (mask_address_var): Update.
7876 (mips_mask_address_p): Update.
7877 (show_mask_address): Update.
7878 * remote.c (struct packet_config): Update.
7879 (update_packet_config): Update.
7880 (show_packet_config_cmd): Update.
7881 (packet_ok): Update.
7882 (add_packet_config_cmd): Update.
7883 (_initialize_remote):
7884 * command.h: Update.
7885 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7886 (do_setshow_command): Update.
7887 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7888 * cli/cli-decode.h: Update.
7889
7890 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7891
7892 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7893 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7894 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7895 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7896 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7897 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7898
7899 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7900 list of DJGPP COFF targets.
7901
7902 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7903 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7904 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7905 (FP0_REGNUM): Remove define.
7906 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7907 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7908 (i386_register_virtual_size): Remove protoype.
7909 * i386-tdep.c (i386_register_virtual_size): Removed.
7910 (i386_extract_return_value, i386_store_return_value): Use
7911 FP0_REGNUM instead of NUM_FREGS to determine whether the
7912 floating-point registers are available.
7913 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7914 Adjust for removal of macros mentioned above.
7915
7916 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7917
7918 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7919 comments.
7920 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7921 Remove prototypes.
7922 (supply_gregset, fill_gregset): Remove use of register keyword and
7923 remove declaration for regmap. Use I386_NUM_GREGS instead of
7924 NUM_REGS and NUM_FREGS.
7925 (FPREGSET_FSAVE_OFFSET): Remove.
7926 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7927 NUM_FREGS to determine whether the floating-point registers are
7928 available.
7929
7930 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7931 gnu_store_registers): Replace usage of NUM_GREGS with
7932 I386_NUM_GREGS.
7933
7934 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7935 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7936 usage of NUM_GREGS with I386_NUM_GREGS.
7937
7938 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7939
7940 * i386bsd-nat.c: Include "i386-tdep.h".
7941 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7942 I386_NUM_GREGS.
7943
7944 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7945 and associated comment. They no longer make any sense, since we
7946 don't use this file anymore on Linux.
7947
7948 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7949 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7950 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7951 elements in these arrays.
7952 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7953 MAX_NUM_REGS.
7954
7955 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7956
7957 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7958 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7959
7960 2002-06-14 Andrew Cagney <cagney@redhat.com>
7961
7962 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7963 EXTRACT_RETURN_VALUE.
7964 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7965 EXTRACT_STRUCT_VALUE_ADDRESS.
7966 * gdbarch.h, gdbarch.c: Regenerate.
7967
7968 * values.c (value_being_returned): Handle
7969 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7970 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7971
7972 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7973 * arm-tdep.c (arm_gdbarch_init): Update.
7974 * avr-tdep.c (avr_gdbarch_init): Update.
7975 * cris-tdep.c (cris_gdbarch_init): Update.
7976 * d10v-tdep.c (d10v_gdbarch_init): Update.
7977 * ia64-tdep.c (ia64_gdbarch_init): Update.
7978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7979 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7980 * s390-tdep.c (s390_gdbarch_init): Update.
7981 * sh-tdep.c (sh_gdbarch_init): Update.
7982 * s390-tdep.c (s390_gdbarch_init): Update.
7983 * sparc-tdep.c (sparc_gdbarch_init): Update.
7984 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7985 * v850-tdep.c (v850_gdbarch_init): Update.
7986 * vax-tdep.c (vax_gdbarch_init): Update.
7987 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7989
7990 * config/arc/tm-arc.h: Update.
7991 * config/d30v/tm-d30v.h: Update.
7992 * config/fr30/tm-fr30.h: Update.
7993 * config/h8300/tm-h8300.h: Update.
7994 * config/h8500/tm-h8500.h: Update.
7995 * config/i386/tm-i386.h: Update.
7996 * config/i386/tm-ptx.h: Update.
7997 * config/i386/tm-symmetry.h: Update.
7998 * config/i960/tm-i960.h: Update.
7999 * config/m32r/tm-m32r.h: Update.
8000 * config/m68k/tm-delta68.h: Update.
8001 * config/m68k/tm-linux.h: Update.
8002 * config/m68k/tm-m68k.h: Update.
8003 * config/m88k/tm-m88k.h: Update.
8004 * config/mcore/tm-mcore.h: Update.
8005 * config/mips/tm-mips.h: Update.
8006 * config/mn10200/tm-mn10200.h: Update.
8007 * config/pa/tm-hppa.h: Update.
8008 * config/pa/tm-hppa64.h: Update.
8009 * config/sparc/tm-sp64.h: Update.
8010 * config/sparc/tm-sparc.h: Update.
8011 * config/sparc/tm-sparclet.h: Update.
8012 * config/z8k/tm-z8k.h: Update.
8013
8014 2002-06-14 Andrew Cagney <cagney@redhat.com>
8015
8016 * Makefile.in (i386_linux_tdep_h): Define.
8017 (i386_tdep_h, i387_tdep_h): Define.
8018 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8019 $(i386_tdep_h) and $(i387_tdep_h).
8020 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8021
8022 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8023
8024 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8025 Already covered by the default.
8026
8027 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8028 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8029 (i386_gdbarch_init): Initialize long_double_format and long_double
8030 bit.
8031
8032 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8033 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8034 Move these to ...
8035 * config/i386/i386sol2.mh: ... here.
8036 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8037 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8038 (SIGCONTEXT_PC_OFFSET): Remove define.
8039 (IN_SIGTRAMP): Remove define.
8040 * i386-sol2-tdep.c: New file.
8041
8042 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8043 * config/i386/tm-i386nw.h: Removed.
8044
8045 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8046 USE_STRUCT_CONVENTION): Remove defines.
8047 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8048 (get_longjmp_target): Remove prototype.
8049 (IN_SIGTRAMP): Remove define.
8050 (i386bsd_in_sigtramp): Remove prototype.
8051 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8052 function. Update comment accordingly
8053 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8054 (FRAME_SAVED_PC): Remove define.
8055 (i386bsd_frame_saved_pc): Remove prototype.
8056 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8057 GET_LONGJMP_TARGET): Remove defines.
8058 (get_longjmp_target): Remove prototype.
8059 (IN_SIGTRAMP): Remove define.
8060 (i386bsd_in_sigtramp): Remove prototype.
8061 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8062 function. Update comment accordingly
8063 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8064 (FRAME_SAVED_PC): Remove define.
8065 (i386bsd_frame_saved_pc): Remove prototype.
8066 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8067 Remove prototype.
8068 (USE_STRUCT_CONVENTION): Remove prototype.
8069 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8070 declaration.
8071 (_initialize_i386bsd_nat): Revise logic to determine some
8072 constants at compile time when compiling a native GDB. Warn if
8073 things don't match up with what we expect.
8074 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8075 Remove variables.
8076 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8077 to use date stored in `struct gdbarch_tdep'.
8078 (i386bsd_sigcontext_offset): Remove varaible.
8079 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8080 stored in `struct gdbarch_tdep'.
8081 (i386bsd_frame_saved_pc): Make static.
8082 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8083 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8084 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8085 i386fbsd4_sc_pc_offset): New variables.
8086 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8087 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8088 functions.
8089 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8090 functions.
8091 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8092 Modify the value of i386fbsd_sigtramp_start and
8093 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8094 i386fbsd_sigtramp_end.
8095 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8096 function.
8097
8098 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8099 define to i386-linux-tdep.h.
8100 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8101 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8102 defines.
8103 (i386_linux_register_name, i386_linux_register_byte,
8104 i386_linux_register_raw_size): Remove prototypes.
8105 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8106 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8107 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8108 TARGET_WRITE_PC): Remove defines.
8109 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8110 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8111 i386_linux_write_pc): Remove prototypes.
8112 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8113 (get_longjmp_target): Remove prototype.
8114 * i386-linux-tdep.h: New file.
8115 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8116 * i386-linux-tdep.c: Include "i386-tdep.h" and
8117 "i386-linux-tdep.h".
8118 (i386_linux_register_name, i386_linux_register_byte,
8119 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8120 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8121 Make static.
8122 (i386_linux_init_abi): New function.
8123 (_initialize_i386_linux_tdep): New function.
8124
8125 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8126 (i386_saved_pc_after_call): Remove prototype.
8127 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8128 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8129 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8130 (i386_register_name, i386_stab_reg_to_regnum,
8131 i386_dwarf_reg_to_regnum): Remove prototypes.
8132 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8133 SIZEOF_SSE_REGS): Remove defines.
8134 (REGISTER_BYTES): Remove define.
8135 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8136 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8137 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8138 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8139 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8140 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8141 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8142 (get_longjmp_target): Remove prototype.
8143 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8144 (sigtramp_saved_pc): Remove define.
8145 (i386v4_sigtramp_saved_pc): Remove prototype.
8146 * config/i386/tm-go32.h (FRAME_CHAIN,
8147 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8148 (i386go32_frame_saved_pc): Remove prototype.
8149 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8150 (get_longjmp_target): Remove prototype.
8151 * i386-tdep.h: Include "osabi.h".
8152 (enum i386_abi): Removed.
8153 (enum struct_return): New enum.
8154 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8155 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8156 sc_pc_offset members.
8157 (i386_gdbarch_register_os_abi): Remove prototype.
8158 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8159 I386_SSE_NUM_REGS): New defines.
8160 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8161 I386_SSE_SIZEOF_REGS): New defines.
8162 (i386_register_name, i386_register_byte, i386_register_raw_size):
8163 New prototypes.
8164 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8165 (i386bsd_sigtramp_saved_pc): New prototype.
8166 * i386-tdep.c: Don't include "elf-bfd.h".
8167 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8168 i386_frame_chain, i386_saved_pc_after_call): Make static.
8169 (i386_frame_saved_pc): Rewrite to call architecture dependent
8170 function to deal with signal handlers. Make static.
8171 (i386go32_frame_saved_pc): Removed.
8172 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8173 Removed.
8174 (i386_get_longjmp_target): New function.
8175 (default_struct_convention, pcc_struct_convention,
8176 reg_struct_convention, valid_conventions, struct_convention): New
8177 variables.
8178 (i386_use_struct_convention): New function.
8179 (i386v4_sigtramp_saved_pc): Renamed to
8180 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8181 (i386_pc_in_sigtramp): New function.
8182 (i386_abi_names): Removed.
8183 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8184 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8185 Removed.
8186 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8187 i386_gdbarch_register_os_abi): Removed.
8188 (struct i386_abi_handler): Removed.
8189 (i386_abi_handler_list): Removed.
8190 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8191 functions.
8192 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8193 i386_nw_init_abi): New functions.
8194 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8195 Use set_gdbarch_xxx() calls instead of relying on macros for a
8196 number of calls.
8197 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8198 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8199 Register the various architecture variants defined in this file.
8200
8201 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8202
8203 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8204 (struct main_type): Remove arg_types member. Update comments for
8205 struct field.
8206 (TYPE_ARG_TYPES): Remove.
8207 (TYPE_FN_FIELD_ARGS): Update.
8208 (smash_to_method_type): Update prototype.
8209
8210 * c-typeprint.c (cp_type_print_method_args): Take method type
8211 instead of argument list. Use new argument layout. Simplify.
8212 (c_type_print_args): Use new argument layout. Simplify.
8213 (c_type_print_base): Update call to cp_type_print_method_args.
8214 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8215 argument; use die->type instead. Update call to
8216 smash_to_method_type.
8217 (read_structure_scope): Update call to dwarf2_add_member_fn.
8218 * gdbtypes.c (allocate_stub_method): Update comment.
8219 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8220 Use new argument layout.
8221 (check_stub_method): Use new argument layout. Don't count
8222 void as an argument.
8223 (print_arg_types): Update comments. Use new argument layout.
8224 (recursive_dump_type): Don't print arg_types member.
8225 * hpread.c (hpread_read_struct_type): Use new argument layout.
8226 (fixup_class_method_type): Likewise.
8227 (hpread_type_lookup): Likewise.
8228 * stabsread.c (read_type): Update calls to read_args and
8229 smash_to_method_type.
8230 (read_args): Use new argument layout. Simplify.
8231 * valops.c (typecmp): Use new argument layout. Update parameters
8232 and comments. Simplify.
8233 (hand_function_call): Use new argument layout.
8234 (search_struct_method): Update call to typecmp.
8235 (find_overload_match): Use new argument layout.
8236
8237 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8238
8239 * NEWS: Mention multithreaded debug support for gdbserver.
8240
8241 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8242
8243 * MAINTAINERS: Mention NEWS.
8244
8245 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8246
8247 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8248 (struct mips_objfile_private, compare_pdr_entries): New.
8249 (non_heuristic_proc_desc): Read the ".pdr" section if it
8250 is present.
8251
8252 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8253
8254 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8255 (arm_debug): New static variable.
8256 (_initialize_arm_tdep): Add ``set debug arm'' command.
8257
8258 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8259
8260 * Makefile.in (sim_arm_h): Define.
8261 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8262 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8263 (arm_register_sim_regno): New function, map an internal REGNUM
8264 onto a simulator register number.
8265 (arm_gdbarch_init): Set register_sim_regno.
8266
8267 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8268
8269 * MAINTAINERS: Add self.
8270
8271 2002-06-11 Jim Blandy <jimb@redhat.com>
8272
8273 * source.c (source_info): Mention whether the symtab has
8274 information about preprocessor macros.
8275
8276 Call the command `info macro', not `show macro'.
8277 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8278 Fix error message.
8279 (_initialize_macrocmd): Register `info_macro_command' in
8280 `infolist', not `showlist'.
8281
8282 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8283
8284 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8285 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8286 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8287 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8288 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8289 unconditionally.
8290 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8291 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8292 (_initialize_mips_tdep): Remove dead code.
8293 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8294 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8295 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8296 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8297 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8298 MIPS_LAST_FP_ARG_REGNUM): Remove.
8299
8300 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8301
8302 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8303 (unwind_tmp_obstack_free, parse_frame_info)
8304 (update_context, cfi_read_fp, cfi_write_fp)
8305 (cfi_frame_chain, cfi_init_extra_frame_info)
8306 (cfi_virtual_frame_pointer): Use the above function.
8307 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8308
8309 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8310
8311 * v850-tdep.c (v850_type_is_scalar): New function.
8312 (v850_use_struct_convention): Match current gcc implementation
8313 as close as possible.
8314 (v850_push_arguments): Fix stack_offset handling. Don't write
8315 struct_addr into register. This is done by v850_store_struct_return.
8316 (v850_extract_return_value): Care for structs.
8317 (v850_store_return_value): Ditto.
8318 (v850_store_struct_return): Actually write address.
8319
8320 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8321
8322 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8323 without debug information too.
8324
8325 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8326
8327 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8328 Make multi-arch pure.
8329 * gdbarch.h, gdbarch.c: Re-generate.
8330 * arm-tdep.c (arm_print_float_info): Update.
8331 * arch-utils.h (default_print_float_info): Update.
8332 * arch-utils.c (default_print_float_info): Update.
8333 * infcmd.c (float_info): Update call.
8334
8335 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8336
8337 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8338 the front of the initialize list.
8339
8340 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8341
8342 * infrun.c (struct inferior_status): Replace fields
8343 selected_frame_address and selected_level with field
8344 selected_frame_id.
8345 (save_inferior_status): Update. Use get_frame_id.
8346 (struct restore_selected_frame_args): Delete.
8347 (restore_selected_frame): Update. Use frame_find_by_id.
8348 (restore_inferior_status): Update.
8349
8350 * breakpoint.h (struct breakpoint): Change type of
8351 watchpoint_frame to frame_id.
8352 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8353 call to get_current_frame.
8354 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8355 get_current_frame.
8356 (watchpoint_check): Use frame_find_by_id.
8357
8358 * frame.h (record_selected_frame): Delete declaration.
8359 * stack.c (record_selected_frame): Delete function.
8360
8361 * frame.h (struct frame_id): Define.
8362 (get_frame_id): Declare.
8363 (frame_find_by_id): Declare.
8364 * frame.c (frame_find_by_id): New function.
8365 (get_frame_id): New function.
8366
8367 2002-06-10 Andrey Volkov <avolkov@transas.com>
8368
8369 * ser-e7kpc.c: Fix duplicated define and call of
8370 _initialize_ser_e7000pc
8371
8372 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8373
8374 * signals/signals.c (target_signal_from_host): Fix #ifdef
8375 SIGRTMIN case.
8376 (do_target_signal_to_host): Likewise.
8377
8378 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8379
8380 * mips-tdep.c (mips_find_abi_section): New function.
8381 (mips_gdbarch_init): Call it.
8382
8383 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8384
8385 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8386 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8387 after Andrew's 2002-06-08 gdbarch change.
8388
8389 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8390
8391 * i386-linux-nat.c (suppy_gregset): Don't supply
8392 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8393 register cache.
8394 (fill_gregset): Don't fetch it under the same circumstances.
8395
8396 2002-06-09 Andrew Cagney <cagney@redhat.com>
8397
8398 * Makefile.in (callback_h): Define.
8399 (remote_sim_h): Update path to remote-sim.h.
8400 (remote-rdp.o): Add $(callback_h).
8401 (remote-sim.o): Use $(callback_h).
8402 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8403 * remote-rdp.c: Include "gdb/callback.h".
8404
8405 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8406
8407 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8408 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8409
8410 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8411
8412 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8413 * rdi-share/serpardr.c: Ditto.
8414 * rdi-share/unixcomm.c: Ditto.
8415 * rdi-share/serdrv.c: Ditto.
8416 * rdi-share/hostchan.h: Ditto.
8417 * rdi-share/hostchan.c: Ditto.
8418 * rdi-share/host.h: Ditto.
8419 * rdi-share/devsw.c: Ditto.
8420
8421 * objfiles.h: Change type of obj_private to void pointer.
8422 * pa64solib.c: Update copyright. Don't include "assert.h", use
8423 strcmp instead of STREQ, use LONGEST, do not use PTR
8424 * somsolib.c: Ditto.
8425
8426 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8427 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8428 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8429
8430 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8431
8432 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8433 (default_get_saved_register): Delete function.
8434 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8435 generic_unwind_get_saved_register.
8436 * gdbarch.h, gdbarch.c: Re-generate.
8437
8438 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8439
8440 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8441 generic_func_frame_chain_valid.
8442 * gdbarch.h, gdbarch.c: Re-generate.
8443 * blockframe.c (generic_func_frame_chain_valid): Only check
8444 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8445 passing FP to PC_IN_CALL_DUMMY.
8446 Fix PR gdb/360.
8447
8448 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8449
8450 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8451 (register_gdbarch_data): Initialize init_p.
8452 (gdbarch_data): Initialize data pointer using the init function.
8453 (init_gdbarch_data): Delete function.
8454 (gdbarch_update_p): Update.
8455 (initialize_non_multiarch): Update.
8456 (struct gdbarch): Add field initialized_p.
8457 * gdbarch.h, gdbarch.c: Re-generate.
8458
8459 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8460
8461 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8462 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8463 better do the things actually here.
8464 * x86-64-tdep.c (x86_64_register_name2nr): New.
8465 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8466 (x86_64_gdbarch_init): Respect the above change.
8467 * x86-64-tdep.h (x86_64_register_name2nr)
8468 (x86_64_register_nr2name): Add prototypes.
8469 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8470
8471 2002-06-06 Michael Snyder <msnyder@redhat.com>
8472
8473 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8474 Delete extra braces and re-indent.
8475 (d10v_store_return_value): Char return values
8476 must be shifted over by one byte in R0.
8477 (d10v_extract_return_value): Delete extra braces, re-indent.
8478
8479 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8480
8481 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8482 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8483 (d10v_integer_to_address): Rewrite.
8484 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8485 the d10v specific functions which take care of converting to the
8486 correct space.
8487
8488 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8489
8490 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8491 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8492
8493 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8494
8495 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8496 includes.
8497 * config/tm-linux.h: Ditto.
8498 * config/alpha/tm-alphalinux.h: Ditto.
8499 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8500 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8501 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8502 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8503 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8504 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8505 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8506 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8507 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8508 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8509 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8510 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8511 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8512 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8513 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8514 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8515 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8516 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8517 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8518 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8519 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8520 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8521 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8522 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8523 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8524 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8525 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8526 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8527 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8528 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8529 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8530 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8531 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8532 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8533 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8534 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8535 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8536
8537 2002-05-04 Aidan Skinner <aidan@velvet.net>
8538
8539 * ada-exp.tab.c: New file
8540 * ada-exp.y: New file
8541 * ada-lang.c: New file
8542 * ada-lang.h: New file
8543 * ada-lex.c: New file
8544 * ada-lex.l: New file
8545 * ada-tasks.c: New file
8546 * ada-typeprint.c: New file
8547 * ada-valprint.c: New file
8548
8549 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8550
8551 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8552 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8553
8554 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8555
8556 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8557 insetead of ppc-linux-tdep.o.
8558 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8559 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8560
8561 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8562
8563 2002-05-07 Christian Groessler <chris@groessler.org>
8564 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8565 bit register contents for little endian hosts.
8566
8567 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8568
8569 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8570 any maintainer.
8571
8572 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8573
8574 * gdbarch.h: Regenerate.
8575
8576 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8577
8578 * MAINTAINERS: Add everyone to write-after-approval list.
8579
8580 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8581
8582 * stack.c (frame_info): Use frame_register_unwind instead of
8583 saved_regs. Mention when the SP is on the stack or in a register.
8584
8585 * frame.h (frame_register_unwind_ftype): Define. Document.
8586 (struct frame_info): Add field register_unwind and
8587 register_unwind_cache.
8588 (frame_register_unwind): Declare.
8589 (generic_unwind_get_saved_register): Declare.
8590
8591 * frame.c (frame_register_unwind): New function.
8592 (generic_unwind_get_saved_register): New function.
8593
8594 * blockframe.c (generic_call_dummy_register_unwind): New function.
8595 (frame_saved_regs_register_unwind): New function.
8596 (set_unwind_by_pc): New function.
8597 (create_new_frame): New function.
8598 (get_prev_frame): New function.
8599
8600 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8601
8602 * a29k-share/: Delete directory.
8603 * remote-vx29k.c: Delete file.
8604
8605 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8606
8607 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8608 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8609
8610 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8611
8612 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8613 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8614 (sparc64nbsd-nat.o)
8615 (sparcnbsd-nat.o)
8616 (sparcnbsd-tdep.o): New dependency lists.
8617 * NEWS: Note new UltraSPARC NetBSD native configuration.
8618 * configure.host (sparc64-*-netbsd*): New host.
8619 * configure.tgt (sparc-*-netbsdelf*)
8620 (sparc-*-netbsd*): Set gdb_target to nbsd.
8621 (sparc64-*-netbsd*): New target.
8622 * sparc64nbsd-nat.c: New file.
8623 * sparcnbsd-nat.c: New file.
8624 * sparcnbsd-tdep.c: New file.
8625 * sparcnbsd-tdep.h: New file.
8626 * config/sparc/nbsd.mt: New file.
8627 * config/sparc/nbsd64.mh: New file.
8628 * config/sparc/nbsd64.mt: New file.
8629 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8630 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8631 (HOST_IPC): Remove.
8632 * config/sparc/nbsdaout.mt: Remove.
8633 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8634 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8635 (HOST_IPC): Remove.
8636 * config/sparc/nbsdelf.mt: Remove.
8637 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8638 sparc-nat.c compatiblity defines.
8639 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8640 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8641 * config/sparc/tm-nbsd64.h: New file.
8642 * config/sparc/tm-nbsdaout.h: Remove.
8643 * config/sparc/xm-nbsd.h: Remove.
8644
8645 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8646
8647 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8648 * sparc-tdep.c: Include osabi.h.
8649 (gdbarch_tdep): Add osabi member.
8650 (_initialize_sparc_tdep): Use gdbarch_register.
8651 (sparc_gdbarch_init): Use generic OS ABI framework.
8652 (sparc_dump_tdep): New function.
8653
8654 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8655
8656 * corefile.c (do_captured_read_memory_integer): Return non-zero
8657 result.
8658 (safe_read_memory_integer): Copy result of memory read when
8659 status is non-zero. Also, add comments.
8660
8661 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8662
8663 * Makefile.in (ppc_tdep_h): Define.
8664 (ppc-linux-nat.o)
8665 (ppc-linux-tdep.o)
8666 (rs6000-tdep.o): Use $(ppc_tdep_h).
8667 (ppc-sysv-tdep.o)
8668 (ppcnbsd-nat.o)
8669 (ppcnbsd-tdep.o): New dependency lists.
8670 * ppc-tdep.h: Use generic OS ABI framework.
8671 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8672 (ppc_linux_init_abi): New functions.
8673 (ppc_sysv_abi_broken_use_struct_convention)
8674 (ppc_sysv_abi_use_struct_convention)
8675 (ppc_sysv_abi_push_arguments): Move to...
8676 * ppc-sysv-tdep.c: ...here.
8677 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8678 * rs6000-tdep.c (process_note_abi_tag_sections)
8679 (get_elfosabi): Remove.
8680 (rs6000_gdbarch_init): Use generic OS ABI framework.
8681 (rs6000_dump_tdep): New function.
8682 (_initialize_rs6000_tdep): Use gdbarch_register.
8683 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8684 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8685 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8686 of ppc-linux-tdep.o.
8687 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8688 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8689 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8690 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8691 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8692 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8693
8694 2002-05-29 Jim Blandy <jimb@redhat.com>
8695
8696 * macroscope.c (default_macro_scope): Put `void' in empty argument
8697 list.
8698
8699 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8700
8701 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8702 * arch-utils.c: Include "sim-regno.h".
8703 * gdbarch.sh: Don't include "sim-regno.h".
8704 * gdbarch.h, gdbarch.c: Regenerate.
8705 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8706 here.
8707 * arch-utils.h (legacy_register_sim_regno): To here.
8708 * remote-sim.c (legacy_register_sim_regno): Move function from
8709 here.
8710 * arch-utils.c (legacy_register_sim_regno): To here.
8711
8712 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8713
8714 * sim-regno.h: New file.
8715 * Makefile.in (sim_regno_h): Define.
8716 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8717 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8718 (legacy_register_sim_regno): New function.
8719 (one2one_register_sim_regno): New function.
8720 (gdbsim_fetch_register): Rewrite.
8721 (gdbsim_store_register): Only store a register when
8722 REGISTER_SIM_REGNO is valid.
8723 * d10v-tdep.c: Include "sim-regno.h".
8724 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8725 (d10v_ts3_register_sim_regno): Ditto.
8726 * gdbarch.sh: Include "sim-regno.h".
8727 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8728 * gdbarch.h, gdbarch.c: Regenerate.
8729 * arch-utils.h (default_register_sim_regno): Delete declaration.
8730 * arch-utils.c (default_register_sim_regno): Delete function.
8731
8732 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8733
8734 * ppcnbsd-nat.c: Rewrite.
8735 * ppcnbsd-tdep.c: New file.
8736 * ppcnbsd-tdep.h: New file.
8737 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8738 solib.o, and solib-svr4.o.
8739 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8740 nbsd-tdep.o, and corelow.o.
8741
8742 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8743
8744 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8745 `tr' and `sed'. Mention that `broken' targets are not expected to
8746 build.
8747
8748 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8749
8750 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8751 Let PC point right after the prologue before looking up symbols.
8752
8753 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8754
8755 * i386-tdep.c (i386_register_virtual_type): Return
8756 builtin_type_vec128i for SSE registers.
8757
8758 * gdbtypes.h (builtin_type_vec128i): Declare.
8759
8760 * gdbtypes.c (build_builtin_type_vec128i): New function.
8761 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8762 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8763 (build_gdbtypes): Initialize new builtin vector types.
8764 (_initialize_gdbtypes): Register new vector types with gdbarch.
8765
8766 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8767
8768 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8769 since it has been multi-arch'd.
8770 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8771 Move Alpha and VAX multi-arch news entries to same section
8772 as other multi-arch news.
8773
8774 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8775
8776 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8777 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8778 static. Rename some register numbers to put them in ns32k-tdep
8779 private namespace.
8780 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8781 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8782 functions.
8783 (_initialize_ns32k_tdep): Use gdbarch_register.
8784 * ns32k-tdep.h: New file.
8785 * ns32knbsd-tdep.c: New file.
8786 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8787 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8788 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8789 REGISTER_BYTES, REGISTER_BYTE): Remove.
8790 * config/ns32k/tm-ns32k.h: New file.
8791 * config/ns32k/tm-umax.h: Remove.
8792
8793 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8794
8795 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8796 ns32k_store_struct_return, ns32k_extract_return_value,
8797 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8798 functions.
8799 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8800 ns32k_saved_pc_after_call.
8801 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8802 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8803 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8804 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8805 ns32k_extract_struct_value_address.
8806
8807 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8808
8809 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8810 ns32k_fix_call_dummy): New.
8811 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8812 ns32k_call_dummy_words.
8813 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8814 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8815 CALL_DUMMY_NARGS): Remove.
8816 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8817
8818 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8819
8820 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8821 ns32k_frame_saved_pc, ns32k_frame_args_address,
8822 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8823 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8824 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8825 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8826 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8827 (BREAKPOINT): Remove..
8828 (FRAME_CHAIN): Define as ns32k_frame_chain.
8829 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8830 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8831 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8832 (FRAME_FIND_SAVED_REGS): Remove.
8833 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8834 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8835 (POP_FRAME): Define as ns32k_pop_frame.
8836
8837 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8838
8839 * ns32k-tdep.c (ns32k_register_byte_32082,
8840 ns32k_register_byte_32382, ns32k_register_raw_size,
8841 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8842 functions.
8843 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8844 ns32k_register_byte_32382.
8845 * config/ns32k/tm-umax.h: Update copyright years.
8846 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8847 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8848 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8849 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8850 (ns32k_get_enter_addr): Fix prototype.
8851
8852 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8853
8854 * ns32k-tdep.c: Update copyright years.
8855 (ns32k_register_name_32082): New function.
8856 (ns32k_register_name_32382): Ditto.
8857 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8858 (REGISTER_NAME): Define as ns32k_register_name_32382.
8859 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8860 (REGISTER_NAME): Define as ns32k_register_name_32082.
8861
8862 2002-05-24 Jim Blandy <jimb@redhat.com>
8863
8864 * dwarf2read.c (free_line_header): Use xfree, not free.
8865
8866 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8867
8868 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8869 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8870
8871 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8872
8873 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8874
8875 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8876
8877 From Ross Alexander at NEC Europe:
8878 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8879
8880 2002-05-23 Michael Snyder <msnyder@redhat.com>
8881
8882 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8883 for input, rather than parse_and_eval_address.
8884
8885 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8886
8887 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8888 * Makefile.in (sim_d10v_h): Update definition.
8889
8890 2002-05-24 Andrew Cagney <cagney@redhat.com>
8891
8892 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8893 change `2002-05-22 Michael Snyder' below.
8894 (d10v_push_arguments): Ditto.
8895 (d10v_extract_return_value): Ditto.
8896
8897 2002-05-23 Jim Blandy <jimb@redhat.com>
8898
8899 * macrotab.c (check_for_redefinition): Don't complain if the new
8900 definition is the same as the previous one. Take more arguments
8901 to allow the comparison.
8902 (macro_define_object, macro_define_function): Pass more arguments
8903 to check_for_redefinition.
8904
8905 2002-05-22 Michael Snyder <msnyder@redhat.com>
8906
8907 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8908 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8909 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8910 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8911 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8912 Add a temp variable to save a call (and a memory read).
8913 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8914 if possible (so that PC_IN_CALL_DUMMY will work).
8915
8916 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8917
8918 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8919
8920 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8921
8922 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8923 fde->cie_ptr.
8924 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8925 (dwarf2_build_frame_info): Add offset to fde->initial_location
8926 so that frames of shared libraries are mapped correctly.
8927 (execute_stack_op): Change type of 'result' from ULONGEST to
8928 CORE_ADDR.
8929
8930 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8931
8932 * config/alpha/tm-nbsd.h: Include solib.h.
8933
8934 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8935
8936 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8937 assumptions about the host's byte order.
8938
8939 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8940
8941 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8942 to dependency list.
8943 * alphanbsd-tdep.c: Include solib-svr4.h.
8944 * shnbsd-tdep.c: Ditto.
8945
8946 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8947
8948 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8949 nbsd-tdep.h to dependency list.
8950 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8951 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8952 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8953 nbsdaout.mh and nbsdelf.mh consistently.
8954 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8955 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8956 nbsdaout.mt and nbsdelf.mh consistently.
8957 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8958 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8959 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8960 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8961 a.out shared library stuff from here...
8962 * config/nm-nbsdaout.h: ...to here.
8963 * config/tm-nbsd.h: Remove.
8964 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8965 * config/arm/nbsd.mh: Remove.
8966 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8967 nbsd-tdep.o.
8968 * config/arm/nbsdaout.mh: New file.
8969 * config/arm/nbsdelf.mh: New file.
8970 * config/arm/nm-nbsdaout.h: New file.
8971 * config/i386/nbsd.mh: Remove.
8972 * config/i386/nbsd.mt: Remove.
8973 * config/i386/nbsdaout.mh: New file.
8974 * config/i386/nbsdaout.mt: New file.
8975 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8976 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8977 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8978 i386_register_u_addr): Remove.
8979 * config/i386/nm-nbsdaout.h: New file.
8980 * config/i386/nm-nbsdelf.h: Remove.
8981 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8982 (USE_STRUCT_CONVENTION): Remove.
8983 * config/i386/tm-nbsdaout.h: New file.
8984 * config/i386/tm-nbsdelf.h: Remove.
8985 * config/m68k/nbsd.mh: Remove.
8986 * config/m68k/nbsd.mt: Remove.
8987 * config/m68k/nbsdaout.mh: New file.
8988 * config/m68k/nbsdaout.mt: New file.
8989 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8990 * config/m68k/nm-nbsdaout.h: New file.
8991 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8992 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8993 * config/ns32k/nbsd.mh: Remove.
8994 * config/ns32k/nbsd.mt: Remove.
8995 * config/ns32k/nbsdaout.mh: New file.
8996 * config/ns32k/nbsdaout.mt: New file.
8997 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8998 * config/ns32k/nm-nbsdaout.h: New file.
8999 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9000 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9001 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9002 (SVR4_SHARED_LIBS): Remove.
9003 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9004 * config/sparc/nbsd.mh: Remove.
9005 * config/sparc/nbsd.mt: Remove.
9006 * config/sparc/nbsdaout.mh: New file.
9007 * config/sparc/nbsdaout.mt: New file.
9008 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9009 * config/sparc/nbsdelf.mt: New file.
9010 * config/sparc/nm-nbsdaout.h: New file.
9011 * config/sparc/nm-nbsdelf.h: Remove.
9012 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9013 * config/sparc/tm-nbsdaout.h: New file.
9014
9015 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9016
9017 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9018 mipsnbsd-tdep.c
9019 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9020
9021 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9022
9023 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9024 shnbsd-nat.c.
9025 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9026
9027 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9028
9029 * NEWS: Note new MIPS NetBSD native configuration.
9030 * configure.host (mips*-*-netbsd*): New host.
9031 * configure.tgt (mips*-*-netbsd*): New target.
9032 * mipsnbsd-nat.c: New file.
9033 * mipsnbsd-tdep.c: New file.
9034 * mipsnbsd-tdep.h: New file.
9035 * config/mips/nbsd.mh: New file.
9036 * config/mips/nbsd.mt: New file.
9037 * config/mips/nm-nbsd.h: New file.
9038 * config/mips/tm-nbsd.h: New file.
9039
9040 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9041
9042 * Makefile.in (SFILES): Add osabi.c.
9043 (COMMON_OBS): Add osabi.o.
9044 (osabi.o): New dependency list.
9045 * osabi.c: New file.
9046 * osabi.h: New file.
9047 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9048
9049 * Makefile.in (alpha_tdep_h): Define and use instead of
9050 alpha-tdep.h.
9051 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9052 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9053 Remove.
9054 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9055 * alpha-tdep.h: Include osabi.h.
9056 (alpha_abi): Remove.
9057 (gdbarch_tdep): Use generic OS ABI framework.
9058 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9059 gdbarch_register_osabi.
9060 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9061 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9062 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9063
9064 * Makefile.in (sh_tdep_h): Add osabi.h.
9065 * sh-tdep.h (sh_osabi): Remove.
9066 (gdbarch_tdep): Use generic OS ABI framework.
9067 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9068 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9069 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9070 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9071
9072 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9073 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9074 gdbarch_register_osabi.
9075 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9076 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9077 (get_elfosabi): Rename to...
9078 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9079 ABI framework support routines.
9080 (arm_gdbarch_init): Use generic OS ABI framework.
9081 (arm_dump_tdep): Likewise.
9082 (_initialize_arm_tdep): Likewise.
9083 * arm-tdep.h: Include osabi.h.
9084 (arm_abi): Remove.
9085 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9086 osabi member.
9087 (arm_gdbarch_register_os_abi): Remove prototype.
9088 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9089 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9090
9091 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9092 * mips-tdep.c: Include osabi.h.
9093 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9094 OS ABI framework.
9095
9096 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9097
9098 * h8300-tdep.c: Fix formatting.
9099
9100 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9101
9102 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9103 printing vector registers.
9104
9105 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9106
9107 From Fernando Nasser:
9108 * remote.c (remote_async_open_1): Re-throw the exception when the
9109 connection fails.
9110 (remote_cisco_open): Ditto.
9111 (remote_open_1): Ditto.
9112
9113 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9114
9115 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9116 (remote_start_remote): Add uiout parameter. Pass through to
9117 remote_start_remote_dummy.
9118 (remote_open_1): Use catch_exception instead of catch_errors.
9119 (remote_async_open_1): Ditto.
9120 (remote_cisco_open): Ditto.
9121
9122 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9123
9124 * remote.c (remote_start_remote): Replace PTR with void pointer.
9125 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9126 static.
9127
9128 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9129
9130 * gdb_indent.sh: Allow the script to be run in the sim directory.
9131
9132 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9133
9134 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9135 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9136
9137 * corelow.c (core_open): Only call set_gdbarch_from_file if
9138 exec_bfd is NULL.
9139
9140 2002-05-17 Andrey Volkov <avolkov@transas.com>
9141
9142 * h8300-tdep.c: Add support of EXR register
9143 * config/h8300/tm-h8300.h: Ditto.
9144
9145 2002-05-17 Andrey Volkov <avolkov@transas.com>
9146
9147 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9148
9149 2002-05-17 Andrey Volkov <avolkov@transas.com>
9150
9151 * h8300-tdep.c: Change literal regnums to REGNO.
9152
9153 2002-05-17 Jim Blandy <jimb@redhat.com>
9154
9155 * NEWS: Note addition of macro support.
9156
9157 Expand preprocessor macros in C expressions.
9158 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9159 (scan_macro_expansion, scanning_macro_expansion,
9160 finished_macro_expansion): New function declarations.
9161 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9162 variable declarations.
9163 * parser-defs.h (expression_context_pc): New declaration.
9164 * parse.c (expression_context_pc): New variable.
9165 (parse_exp_1): Set expression_context_pc, as well as
9166 expression_context_block.
9167 * c-exp.y (yylex): If we're not already reading the result of a
9168 macro expansion, try to macro-expand the next token. When we're
9169 done scanning a macro expansion, switch back to the mainline text.
9170 Commas and `if's in a macro's expansion don't terminate the input.
9171 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9172 (macro_original_text, macro_expanded_text,
9173 expression_macro_lookup_func, expression_macro_lookup_baton): New
9174 variables.
9175 (scan_macro_expansion, scanning_macro_expansion,
9176 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9177 c_preprocess_and_parse): New functions.
9178 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9179 c_preprocess_and_parse, instead of c_parse.
9180 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9181 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9182
9183 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9184
9185 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9186 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9187 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9188
9189 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9190
9191 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9192
9193 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9194
9195 * Makefile.in (sh_tdep_h): Define and use.
9196 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9197 register enum): Move to...
9198 * * sh-tdep.h: ...here.
9199 * sh-tdep.c: Include sh-tdep.h.
9200 * sh3-rom.c: Likewise.
9201 * shnbsd-tdep.c: Likewise.
9202
9203 2002-05-16 Michael Snyder <msnyder@redhat.com>
9204
9205 * arm-tdep.c: Spelling fix in comment.
9206
9207 2002-05-16 Jim Blandy <jimb@redhat.com>
9208
9209 Add commands for manually expanding macros and showing their
9210 definitions.
9211 * macrocmd.c, macroscope.c, macroscope.h: New files.
9212 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9213 (macroscope_h): New variable.
9214 (HFILES_NO_SRCDIR): Add macroscope.h.
9215 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9216 (macroscope.o, macrocmd.o): New rules.
9217
9218 Teach the Dwarf 2 reader to read macro information.
9219 * dwarf2read.c: #include "macrotab.h".
9220 (dwarf_macinfo_buffer): New variable.
9221 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9222 dwarf_macinfo_size.
9223 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9224 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9225 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9226 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9227 dwarf2_macro_spaces_in_definition): New complaints.
9228 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9229 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9230 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9231 the partial symbol table.
9232 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9233 from what's recorded in the partial symbol table.
9234 (read_file_scope): If the compilation unit has a
9235 `DW_AT_macro_info' attribute, read its macro information.
9236 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9237
9238 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9239
9240 Fix PR gdb/546
9241 * ser-tcp.c: Don't include <netinet/udp.h>.
9242
9243 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9244
9245 * MAINTAINERS: Update my email address.
9246
9247 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9248
9249 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9250 include file of the same name.
9251
9252 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9253
9254 * configure.tgt: Mark v850 as multi-arched.
9255 * config/v850/tm-v850.h: Remove file.
9256 * config/v850/v850.mt: Eliminate TM_FILE.
9257
9258 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9259
9260 * v850-tdep.c: Full multi-arch.
9261 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9262 Define GDB_MULTI_ARCH to 2.
9263
9264 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9265
9266 * p-exp.y (current_type): New static variable.
9267 Carries the type of the expression at the position that is parsed.
9268 (push_current_type, pop_current_type): Two new functions. Used
9269 to store/restore current_type in expression on specific tokens.
9270 (search_field): New static variable. Set to one after parsing a point
9271 as at that point only a FIELDNAME token should be searched.
9272 (FIELDNAME): New token. After a point only a token belonging to
9273 current_type type definition is allowed.
9274 (all over token rules): reset and change current_type according
9275 to rules.
9276 (exp '[' rule): insert implicit array index field if
9277 exp is a pascal string type.
9278
9279 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9280
9281 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9282 frame info. Use frame_info's saved_regs instead of matching member
9283 in extra_frame_info throughout.
9284 (v850_frame_init_saved_regs): New function.
9285 (v850_init_extra_frame_info): Move most functionality into
9286 v850_frame_init_saved_regs().
9287 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9288 (v850_frame_find_saved_regs): Remove declaration.
9289 (FRAME_FIND_SAVED_REGS): Remove definition.
9290 (v850_frame_init_saved_regs): Add declaration.
9291 (FRAME_INIT_SAVED_REGS): Add definition.
9292
9293 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9294
9295 * v850-tdep.c: Begin multi-arch'ing v850.
9296 (v850_target_architecture_hook): Remove function.
9297 (v850_gdbarch_init): New function. Add code previously in
9298 v850_target_architecture_hook().
9299 (_initialize_v850_tdep): Don't set target_architecture_hook.
9300 Call register_gdbarch_init() instead.
9301
9302 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9303
9304 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9305 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9306 (fixup_class_method_type): Likewise.
9307
9308 2002-05-15 Jim Blandy <jimb@redhat.com>
9309
9310 Add macro structures to GDB's symbol tables. Nobody puts anything
9311 in them yet.
9312 * symtab.h (struct symtab): New member: `macro_table'.
9313 * buildsym.h (pending_macros): New global variable.
9314 * buildsym.c: #include "macrotab.h".
9315 (buildsym_init): Initialize `pending_macros'.
9316 (end_symtab): If we found macro information while reading a CU's
9317 debugging info, do build a symtab structure for it. Make the
9318 symtab point to the macro information, and clear the
9319 `pending_macros' pointer which held it while we were reading the
9320 debug info.
9321 (really_free_pendings): Free any pending macro table.
9322 * objfiles.h (struct objfile): New member: `macro_cache'.
9323 * objfiles.c (allocate_objfile): Set allocate and free functions
9324 for the macro cache's objstack.
9325 (free_objfile): Empty the macro cache's obstack.
9326 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9327 set new allocate and free functions for it.
9328 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9329 free functions for the macro cache's objstack. (Why is this
9330 function building its own objfile?)
9331 * symmisc.c (print_objfile_statistics): Print statistics on the
9332 macro bcache.
9333 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9334
9335 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9336
9337 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9338 (REGISTER_U_ADDR): Delete definition.
9339 (arm_register_u_addr): Delete declaration.
9340
9341 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9342
9343 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9344 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9345
9346 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9347
9348 * regcache.c (register_valid): Revise comments refering to "Not
9349 available" and "unavailable".
9350 * frame.c (frame_register_read): Ditto.
9351 * findvar.c (value_of_register): Ditto.
9352
9353 2002-05-15 Andrew Cagney <cagney@redhat.com>
9354
9355 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9356 (remote-sim.o): Update dependencies.
9357 (d10v-tdep.o): Specify dependencies.
9358 (sim_d10v_h): Define.
9359
9360 2002-05-14 Jim Blandy <jimb@redhat.com>
9361
9362 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9363 * macrotab.c (macro_lookup_inclusion, find_definition,
9364 new_macro_table): Same.
9365
9366 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9367 not `! strcmp ()'. This is a dubious improvement.
9368 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9369
9370 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9371 although it's not necessary, to avoid a warning.
9372
9373 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9374
9375 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9376 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9377 TYPE_INSTANCE_FLAGS.
9378 (struct main_type): New.
9379 (struct type): Move most members to struct main_type. Change
9380 cv_type and as_type to new type_chain member. Add instance_flags.
9381 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9382 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9383 (finish_cv_type): Remove prototype.
9384 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9385 Set TYPE_CHAIN.
9386 (alloc_type_instance): New function.
9387 (smash_type): New function.
9388 (make_pointer_type, make_reference_type, make_function_type)
9389 (smash_to_member_type, smash_to_method_type): Call smash_type.
9390 (make_qualified_type): New function.
9391 (make_type_with_address_space): Call make_qualified_type.
9392 (make_cv_type): Likewise.
9393 (finish_cv_type): Remove unnecessary function.
9394 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9395 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9396 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9397 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9398 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9399 * hpread.c (hpread_read_struct_type): Likewise.
9400 * stabsread.c (read_struct_type): Likewise.
9401
9402 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9403
9404 * configure.tgt: Add a catch all sh* target, for cases like
9405 sh[2,3,4]-elf and sh-hms.
9406
9407 2002-05-14 Keith Seitz <keiths@redhat.com>
9408
9409 * event-loop.c (create_file_handler): Don't do anything but
9410 update data when we are given a fd which we are already
9411 monitoring.
9412
9413 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9414
9415 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9416 (update_context): Use __func__ in warnings.
9417
9418 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9419
9420 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9421 and tcp_close to net_open and net_close.
9422 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9423 using UDP if requested. Don't try to disable Nagle on UDP
9424 sockets.
9425 * remote.c (remote_serial_open): New function. Warn about UDP.
9426 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9427
9428 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9429
9430 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9431
9432 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9433
9434 * configure.tgt: Remove sh-hms target.
9435 * MAINTAINERS: Don't list sh-hms as a separate target.
9436
9437 2002-05-13 Jim Blandy <jimb@redhat.com>
9438
9439 Add first preprocessor macro-expansion files.
9440 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9441 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9442 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9443 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9444 (COMMON_OBS): Add macrotab.o, macroexp.o.
9445 (macroexp.o, macrotab.o): New rules.
9446
9447 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9448
9449 * config/m88k/tm-m88k.h: Update copyright.
9450 (m88k_target_write_pc): Declare
9451 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9452 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9453 (SHIFT_INST_REGS): Update definition.
9454 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9455 using old definition of TARGET_WRITE_PC.
9456 * regcache.c (generic_target_write_pc): Delete code handling
9457 NNPC_REGNUM.
9458 * gdbarch.sh (NNPC_REGNUM): Delete.
9459 * gdbarch.h, gdbarch.c: Regenerate.
9460
9461 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9462
9463 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9464 builtin reg number.
9465
9466 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9467
9468 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9469 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9470 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9471 access macros.
9472 * c-typeprint.c (cp_type_print_method_args): Likewise.
9473 (c_type_print_args): Likewise.
9474 * d10v-tdep.c (d10v_push_arguments): Likewise.
9475 (d10v_extract_return_value): Likewise.
9476 * expprint.c (print_subexp): Likewise.
9477 * gdbtypes.c (lookup_primitive_typename): Likewise.
9478 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9479 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9480 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9481 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9482 (TYPE_VECTOR): Likewise.
9483 * hpread.c (hpread_read_struct_type)
9484 (fix_static_member_physnames, fixup_class_method_type)
9485 (hpread_type_lookup): Likewise.
9486 * mdebugread.c (parse_symbol, parse_type): Likewise.
9487 * p-lang.c (is_pascal_string_type): Likewise.
9488 * valops.c (hand_function_call): Likewise.
9489 * x86-64-tdep.c (classify_argument): Likewise.
9490
9491 * hpread.c (hpread_read_function_type)
9492 (hpread_read_doc_function_type): Call replace_type.
9493 * dstread.c (create_new_type): Delete.
9494 (decode_dst_structure, process_dst_function): Call alloc_type.
9495 Use type access macros.
9496
9497 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9498
9499 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9500 the're not supported by the current architecture.
9501 (i387_fill_fxsave): Likewise.
9502
9503 2002-05-12 Fred Fish <fnf@redhat.com>
9504
9505 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9506 sect_index_xxx members to index the first slot in section_offsets
9507 if all of the section_offsets are zero.
9508
9509 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9510
9511 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9512 checked in with last change.
9513
9514 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9515
9516 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9517 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9518 config.sub.
9519
9520 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9521
9522 * Makefile.in: Update dependencies.
9523
9524 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9525
9526 * language.c (local_hex_string_custom): Simplify. Do not depend
9527 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9528
9529 * memattr.c (mem_info_command): Replace calls to
9530 longest_local_hex_string and longest_local_hex_string_custom.
9531 * buildsym.c (make_blockvector): Ditto.
9532 * solib.c (info_sharedlibrary_command): Ditto.
9533 * tracepoint.c (tracepoints_info): Ditto.
9534 * symtab.c (print_msymbol_info): Ditto.
9535
9536 * language.c (local_hex_string): Delete.
9537 (local_hex_string_custom): Delete.
9538 (longest_local_hex_string): Rename to local_hex_string.
9539 (longest_local_hex_string_custom): Rename to
9540 local_hex_string_custom.
9541 * language.h (local_hex_string): Change parameter type to LONGEST.
9542 (local_hex_string_custom): Ditto.
9543 (longest_local_hex_string): Delete declaration.
9544 (longest_local_hex_string_custom): Ditto.
9545
9546 * solib.c: Update copyright.
9547 * memattr.c: Update copyright.
9548
9549 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9550
9551 * arch-utils.h (legacy_register_to_value): Declare.
9552 (legacy_value_to_register): Declare.
9553 (legacy_convert_register_p): Declare.
9554 * arch-utils.c (legacy_register_to_value): New function.
9555 (legacy_value_to_register): New function.
9556 (legacy_convert_register_p): New function.
9557
9558 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9559 (VALUE_TO_REGISTER): Define.
9560 (CONVERT_REGISTER_P): Define.
9561 * gdbarch.h, gdbarch.c: Regenerate.
9562
9563 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9564 VALUE_TO_REGISTER.
9565 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9566 CONVERT_REGISTER_P.
9567
9568 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9569 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9570
9571 * Makefile.in: Update dependencies for valops.c.
9572 * valops.c: Include "gdb_assert.h".
9573 (typecmp): Skip THIS parameter to methods.
9574 (find_method_list): Remove static_memfuncp argument,
9575 update callers. Check for stub methods.
9576 (find_value_oload_method_list): Don't set *static_memfuncp.
9577 (find_overload_match): Don't check for stub methods. Assert
9578 that methods are not stubbed. Handle static methods.
9579 (value_find_oload_method_list): Remove static_memfuncp argument.
9580 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9581 to the argument list for static stub methods.
9582 * value.h (value_find_oload_method_list): Update prototype.
9583
9584 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9585
9586 * arch-utils.h (generic_register_size): Declare.
9587 (generic_register_raw_size, generic_register_virtual_size): Delete
9588 declarations.
9589 * arch-utils.c (generic_register_raw_size): Delete.
9590 (generic_register_size): New function.
9591 (generic_register_virtual_size): Delete.
9592
9593 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9594 default generic_register_size.
9595 * gdbarch.h, gdbarch.c: Re-generate.
9596
9597 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9598 register_virtual_size.
9599 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9600 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9601
9602 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9603
9604 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9605 * gdbarch.h, gdbarch.c: Regenerate.
9606 * gnu-v3-abi.c: Update copyright.
9607 (vtable_address_point_offset): Update.
9608 (gnuv3_rtti_type): Update.
9609 (gnuv3_baseclass_offset): Update.
9610 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9611 (init_fetch_link_map_offsets): Update.
9612 * remote.c (get_remote_state): Update.
9613
9614 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9615
9616 * TODO: Remove value_headof/value_from_vtable_info comment.
9617 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9618 * values.c (value_headof, value_from_vtable_info): Delete.
9619 * value.h (value_from_vtable_info): Delete prototype.
9620
9621 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9622
9623 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9624 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9625 $(gdb_regex_h).
9626 (gdb_assert_h): Define.
9627 (gdb_wait_h): Define.
9628 (gdb_regex_h): Define.
9629
9630 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9631
9632 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9633 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9634
9635 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9636
9637 * nbsd-tdep.c: Fix comment.
9638
9639 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9640
9641 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9642 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9643 (nbsd-tdep.o): New dependency list.
9644 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9645 nbsd-tdep.h.
9646 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9647 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9648 * nbsd-tdep.c: New file.
9649 * nbsd-tdep.h: New file.
9650 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9651 nbsd-tdep.h.
9652 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9653 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9654 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9655 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9656
9657 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9658
9659 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9660 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9661 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9662 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9663 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9664 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9665
9666 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9667
9668 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9669 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9670 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9671 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9672 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9673 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9674 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9675
9676 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9677
9678 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9679 fetch_elfcore_registers to...
9680 * i386nbsd-tdep.c: ...here.
9681 (i386nbsd_use_struct_convention): Rename to...
9682 (i386nbsd_aout_use_struct_convention): ...this.
9683 (i386nbsd_supply_reg): New function.
9684 (i386nbsd_fill_reg): New function.
9685 (fetch_core_registers): Use i386nbsd_supply_reg.
9686 (fetch_elfcore_registers): Likewise.
9687 (_initialize_i386nbsd_tdep): New function.
9688 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9689 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9690 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9691 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9692 (i386nbsd_aout_use_struct_convention): ...this.
9693
9694 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9695
9696 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9697 (store_inferior_registers): Use shnbsd_fill_reg.
9698 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9699 sh_nbsd_supply_register): Collapse into...
9700 (shnbsd_supply_reg): ...this.
9701 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9702 (shnbsd_fill_reg): ...this.
9703 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9704 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9705 (fetch_core_registers): Use shnbsd_supply_reg.
9706 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9707 (sh_nbsd_core_fns): Rename to...
9708 (shnbsd_core_fns): ...this.
9709 (sh_nbsd_elfcore_fns): Rename to...
9710 (shnbsd_elfcore_fns): ...this.
9711 (sh_nbsd_init_abi): Rename to...
9712 (shnbsd_init_abi): ...this.
9713 (_initialize_sh_nbsd_tdep): Rename to...
9714 (_initialize_shnbsd_tdep): ...this.
9715 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9716 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9717 sh_nbsd_fill_register): Remove prototypes.
9718 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9719
9720 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9721
9722 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9723 (i387-nat.o): Delete dependency list.
9724 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9725 (x86-64-linux-nat.o): Likewise.
9726 * i387-nat.c: Delete file, moving contents to...
9727 * i387-tdep.c: ...here.
9728 * i387-nat.h: Rename...
9729 * i387-tdep.h: ...to this.
9730 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9731 * i386-linux-nat.c: Likewise.
9732 * i386bsd-nat.c: Likewise.
9733 * i386gnu-nat.c: Likewise.
9734 * i386nbsd-nat.c: Likewise.
9735 * i386v4-nat.c: Likewise.
9736 * x86-64-linux-nat.c: Likewise.
9737 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9738 * config/i386/go32.mh (NATDEPFILES): Likewise.
9739 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9740 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9741 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9742 * config/i386/linux.mh (NATDEPFILES): Likewise.
9743 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9744 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9745 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9746 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9747
9748 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9749
9750 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9751 (alphanbsd-nat.o): Remove dependency list.
9752 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9753 * alphanbsd-nat.c: Delete. Contents moved to...
9754 * alphanbsd-tdep.c: ...here.
9755 (_initialize_alphanbsd_tdep): Register core functions.
9756 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9757
9758 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9759
9760 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9761 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9762 (alphanbsd-nat.o): Likewise.
9763 (alphabsd-tdep.o): New dependency list.
9764 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9765 (fill_gregset): Use alphabsd_fill_reg.
9766 (supply_fpregset): Use alphabsd_supply_fpreg.
9767 (fill_fpregset): Use alphabsd_fill_fpreg.
9768 (fetch_inferior_registers): Use struct reg and struct fpreg
9769 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9770 and alphabsd_supply_fpreg.
9771 (store_inferior_registers): Use struct reg and struct fpreg
9772 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9773 and alphabsd_fill_fpreg.
9774 * alphabsd-tdep.c: New file.
9775 * alphabsd-tdep.h: New file.
9776 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9777 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9778 alphabsd_supply_fpreg.
9779 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9780 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9781
9782 2002-05-11 Eric Christopher <echristo@redhat.com>
9783
9784 * mips-tdep.c (mips_double_register_type): Fix thinko.
9785 (mips_single_register_type): Ditto.
9786 * MAINTAINERS: Add self.
9787
9788 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9789
9790 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9791 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9792 right thing on architectures with different endianness and/or
9793 integer sizes.
9794
9795 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9796
9797 From Christian Limpach <chris@Pin.LU>
9798 * configure.in: Change sed expression which comments out
9799 NATDEPFILES to also comment out continuation lines.
9800 * configure: Regenerate.
9801
9802 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9803
9804 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9805 big patch.
9806
9807 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9808
9809 * sh-tdep.c: Include correct file.
9810
9811 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9812
9813 New support for sh64-elf (sh5) target.
9814
9815 * configure.tgt: For sh64-elf target, default to sh-elf.
9816
9817 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9818 (struct gdbarch_tdep): Add new fields for new registers and ABI
9819 info.
9820
9821 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9822 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9823 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9824 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9825 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9826 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9827 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9828 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9829 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9830 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9831 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9832 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9833 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9834 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9835 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9836 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9837 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9838 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9839 sign_extend, sh64_nofp_frame_init_saved_regs,
9840 sh64_init_extra_frame_info, sh64_get_saved_register,
9841 sh64_extract_struct_value_address, sh64_pop_frame,
9842 sh64_push_arguments, sh64_extract_return_value,
9843 sh64_store_return_value, sh64_show_media_regs,
9844 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9845 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9846 sh_sh64_register_virtual_type,
9847 sh_sh64_register_convert_to_virtual,
9848 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9849 sh64_register_read, sh64_pseudo_register_write,
9850 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9851 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9852 sh64_do_pseudo_register, sh_compact_do_registers_info,
9853 sh64_do_registers_info, sh_gdbarch_init): New functions.
9854
9855 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9856
9857 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9858
9859 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9860
9861 * linespec.c (decode_line_1): Check for a double quote after
9862 a filename correctly.
9863
9864 2002-05-10 Jim Blandy <jimb@redhat.com>
9865
9866 Properly track the size of the current objfile's .debug_line section.
9867 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9868 (DWARF_LINE_SIZE): New macro.
9869 (dwarf2_build_psymtabs_hard): Record the line section's size in
9870 the partial symbol table.
9871 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9872 symbol table.
9873
9874 2002-05-10 Petr Sorfa <petrs@caldera.com>
9875
9876 * ia64-tdep.c: Handle breakpoints on L instruction type
9877 in MLX instruction bundle by moving the breakpoint to
9878 the third slot (X instruction type) as L holds only data.
9879
9880 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9881
9882 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9883 (process_one_symbol): Complain about discarding local symbols
9884 due to a misplaced N_LBRAC entry.
9885
9886 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9887
9888 From Daniel Berlin <dan@cgsoftware.com>
9889 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9890 decrease the depth we are at, in the case of templates.
9891
9892 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9893
9894 * mips-tdep.c (mips_float_register_type): New function.
9895 (mips_double_register_type): New function.
9896 (mips_print_register): Use them.
9897 (do_fp_register_row): Likewise.
9898
9899 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9900
9901 * signals/signals.c (signals): Remove conditional compilation around
9902 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9903 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9904
9905 2002-05-09 Michael Snyder <msnyder@redhat.com>
9906
9907 * remote-rdp.c (remote_rdp_can_run): Remove.
9908
9909 2002-05-09 Tom Tromey <tromey@redhat.com>
9910
9911 * jv-valprint.c (java_val_print): Handle `char' as a special case
9912 of TYPE_CODE_INT.
9913
9914 2002-05-09 Michael Snyder <msnyder@redhat.com>
9915
9916 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9917 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9918 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9919 str r(0123),[sp,#nn].
9920 (arm_skip_prologue): Ditto. Also make disassembly
9921 order-independent by placing it in a loop.
9922
9923 2002-05-06 Michael Snyder <msnyder@redhat.com>
9924
9925 * stabsread.c (read_type): Add recognition for new attribute:
9926 "@V;" means that an array type is actually a vector.
9927 This is analogous to the vector flag that's been added to dwarf2.
9928
9929 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9930
9931 * i386-tdep.h (i386_abi): New enum.
9932 (struct gdbarch_tdep): Replace os_ident member with abi.
9933 (i386_gdbarch_register_os_abi): New prototype.
9934 * i386-tdep.c (i386_abi_names): New array.
9935 (process_note_abi_tag_sections): Removed.
9936 (process_note_sections): New function.
9937 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9938 (struct i386_abi_handler): New struct.
9939 (i386_abi_handler_list): New variable.
9940 (i386_gdbarch_register_os_abi): New function.
9941 (i386_gdbarch_init): Adapt for the changes given above.
9942
9943 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9944
9945 * gregset.h: Say "GNU/Linux".
9946
9947 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9948
9949 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9950 (build_gdbtypes): Build builtin_type_v2_float.
9951 (_initialize_gdbtypes): Register new builtin type.
9952
9953 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9954
9955 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9956 (clear_gdbarch_swap): New function.
9957 (initialize_non_multiarch): Call.
9958 (gdbarch_update_p): Before calling init(), swap out and clear the
9959 existing architecture.
9960 * gdbarch.c: Regenerate.
9961
9962 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9963
9964 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9965 alphanbsd-tdep.c.
9966
9967 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9968
9969 * sh-nbsd-nat.c: Rename to...
9970 * shnbsd-nat.c: ...this.
9971 * sh-nbsd-tdep.c: Rename to...
9972 * shnbsd-tdep.c: ...this.
9973 * sh-nbsd-tdep.h: Rename to...
9974 * shnbsd-tdep.h: ...this.
9975 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9976 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9977
9978 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9979
9980 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9981 concatenation for command help messages.
9982
9983 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9984
9985 * NEWS: Note new sh*-*-netbsdelf* configuration.
9986 * configure.host: Set gdb_host_cpu to sh for all sh*.
9987 (sh*-*-netbsdelf*): New host.
9988 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9989 (sh*-*-netbsdelf*): New target.
9990 * sh-nbsd-nat.c: New file.
9991 * sh-nbsd-tdep.c: New file.
9992 * sh-nbsd-tdep.h: New file.
9993 * config/sh/nbsd.mh: New file.
9994 * config/sh/nbsd.mt: New file.
9995 * config/sh/nm-nbsd.h: New file.
9996 * config/sh/tm-nbsd.h: New file.
9997
9998 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9999
10000 * sh-tdep.c (sh_osabi_names): Declare.
10001 (process_note_abi_tag_sections): New function.
10002 (get_elfosabi): Ditto.
10003 (sh_gdbarch_register_os_abi): Ditto.
10004 (sh_dump_tdep): Ditto.
10005 _initialize_sh_tdep): Use gdbarch_register to register
10006 sh_gdbarch_init and sh_dump_tdep.
10007 * config/sh/tm-sh.h (sh_osabi): Declare.
10008 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10009
10010 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10011
10012 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10013 (thumb_scan_prologue): Ditto.
10014 (arm_find_callers_reg): Ditto.
10015 (arm_frame_chain): Ditto.
10016 (arm_init_extra_frame_info): Ditto.
10017 (arm_frame_saved_pc): Ditto.
10018 (arm_pop_frame): Ditto.
10019 (arm_push_return_address): New function.
10020 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10021 call_dummy_location, call_dummy_breakpoint_offset_p,
10022 call_dummy_breakpoint_offset, call_dummy_p,
10023 call_dummy_stack_adjust_p, call_dummy_words,
10024 sizeof_call_dummy_words, call_dummy_start_offset,
10025 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10026 call_dummy_address, push_return_address and push_dummy_frame for
10027 generic dummy frames.
10028
10029 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10030
10031 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10032 size computation for alloca.
10033 (sh_fp_frame_init_saved_regs): Likewise.
10034
10035 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10036
10037 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10038 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10039 * arm-tdep.c (arm_store_return_value): Use them.
10040 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10041 * remote-rdp.c (remote_rdp_fetch_register): Use
10042 ARM_MAX_REGISTER_RAW_SIZE.
10043 (remote_rdp_store_register): Likewise.
10044
10045 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10046
10047 * dwarf2cfi.c: Code cleanup, removed unused variables,
10048 added default labels to switch {} statements.
10049 * x86-64-tdep.c: Ditto.
10050 * x86-64-linux-nat.c: Ditto.
10051
10052 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10053
10054 * solib.h: Protect against multiple inclusion.
10055
10056 2002-05-06 Jim Blandy <jimb@redhat.com>
10057
10058 Add first preprocessor macro-expansion files.
10059 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10060 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10061 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10062 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10063 (COMMON_OBS): Add macrotab.o, macroexp.o.
10064 (macroexp.o, macrotab.o): New rules.
10065
10066 Separate the job of reading the line number info statement program
10067 header (...expialidocious) out into its own function.
10068 * dwarf2read.c (struct line_head, struct filenames, struct
10069 directories): Replace with...
10070 (struct line_header): New structure, containing the full
10071 contents of the statement program header, including the
10072 include directory and file name tables.
10073 (read_file_scope): If we have line number info, instead of just
10074 calling dwarf_decode_lines to do all the work, call
10075 dwarf_decode_line_header first to get a `struct line_header'
10076 containing the data in the statement program header, and then
10077 pass that to dwarf_decode_lines, which will pick up where that
10078 left off. Be sure to clean up the `struct line_header' object.
10079 (dwarf_decode_line_header, free_line_header, add_include_dir,
10080 add_file_name): New functions.
10081 (dwarf_decode_lines): Move all the code to read the statement
10082 program header into dwarf_decode_line_header. Take the line
10083 header it built as the first argument, instead of the offset to
10084 the compilation unit's line number info. Use the new `struct
10085 line_header' type instead of the old structures. No need to do
10086 cleanups here now, since we don't allocate anything.
10087 (dwarf2_statement_list_fits_in_line_number_section,
10088 dwarf2_line_header_too_long): New complaints.
10089
10090 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10091
10092 * gdbtypes.c (init_vector_type): New function.
10093 (build_builtin_type_vec128): Simplify the representation of SIMD
10094 registers.
10095 (build_gdbtypes): Initialize new builtin vector types.
10096 (_initialize_gdbtypes): Register new vector types with gdbarch.
10097 (builtin_type_v4_float, builtin_type_v4_int32,
10098 builtin_type_v8_int16, builtin_type_v16_int8,
10099 builtin_type_v2_int32, builtin_type_v4_int16,
10100 builtin_type_v8_int8): New (renamed) SIMD types.
10101
10102 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10103
10104 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10105 (i387_fill_fxsave): Likewise.
10106
10107 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10108
10109 * alpha-tdep.c (alpha_extract_return_value): Don't use
10110 non-constant array size in prototype.
10111
10112 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10113
10114 From Brian Taylor <briant at model dot com>:
10115 * ui-out.c (ui_out_field_core_addr): Use the function
10116 longest_local_hex_string_custom'to format addresses > 32 bits
10117 wide.
10118
10119 * ui-out.c (ui_out_field_core_addr): Update comment.
10120
10121 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10122
10123 * stack.c (select_and_print_frame): Make static. Delete the
10124 parameter `level'.
10125 (func_command): Update call.
10126 (select_frame_command): Delete code computing the frame level.
10127 * frame.h (select_and_print_frame): Delete declaration.
10128
10129 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10130
10131 * sparc-tdep.c (sparc_get_saved_register): Comment why
10132 get_prev_frame call is safe.
10133
10134 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10135
10136 * frame.h (select_frame): Delete level parameter.
10137 * stack.c (select_frame): Update. Use frame_relative_level to
10138 obtain the frame's level.
10139 (select_and_print_frame): Update call.
10140 (select_frame_command): Ditto.
10141 (up_silently_base): Ditto.
10142 (down_silently_base): Ditto.
10143 * ocd.c (ocd_start_remote): Ditto.
10144 * remote-rdp.c (remote_rdp_open): Ditto.
10145 * remote-mips.c (mips_initialize): Ditto.
10146 (common_open): Ditto.
10147 * remote-e7000.c (e7000_start_remote): Ditto.
10148 * m3-nat.c (select_thread): Ditto.
10149 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10150 (child_get_current_exception_event): Ditto.
10151 * varobj.c (varobj_create): Ditto.
10152 (varobj_update): Ditto.
10153 (c_value_of_root): Ditto.
10154 * tracepoint.c (finish_tfind_command): Ditto.
10155 * corelow.c (core_open): Ditto.
10156 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10157 * thread.c (info_threads_command): Ditto.
10158 (switch_to_thread): Ditto.
10159 * infrun.c (normal_stop): Ditto.
10160 (restore_selected_frame): Ditto.
10161 (restore_inferior_status): Ditto.
10162 * breakpoint.c (insert_breakpoints): Ditto.
10163 (watchpoint_check): Ditto.
10164 (bpstat_stop_status): Ditto.
10165 (do_enable_breakpoint): Ditto.
10166 * blockframe.c (flush_cached_frames): Ditto.
10167 (reinit_frame_cache): Ditto.
10168
10169 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10170
10171 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10172 maintainer.
10173
10174 2002-05-04 Jim Blandy <jimb@redhat.com>
10175
10176 * gdbtypes.c (replace_type): Doc fix.
10177
10178 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10179
10180 * valprint.c (strcat_longest): Delete commented out function.
10181 Update copyright.
10182
10183 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10184
10185 * MAINTAINERS: Mark a29k as deleted.
10186 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10187 Move new configurations to the top.
10188 * configure.tgt: Remove a29k.
10189 * config/a29k/tm-vx29k.h: Delete.
10190 * config/a29k/vx29k.mt: Delete.
10191 * config/a29k/tm-a29k.h: Delete.
10192 * config/a29k/a29k-udi.mt: Delete.
10193 * config/a29k/a29k.mt: Delete.
10194 * a29k-tdep.c: Delete.
10195 * remote-udi.c: Delete.
10196 * remote-mm.c: Delete.
10197 * remote-eb.c: Delete.
10198 * remote-adapt.c: Delete.
10199 * Makefile.in: Remove obsolete code.
10200 * config/s390/s390x.mt: Ditto.
10201 * config/s390/s390.mt: Ditto.
10202 * config/sparc/sparclynx.mh: Ditto.
10203 * config/sparc/linux.mh: Ditto.
10204 * config/pa/hppaosf.mh: Ditto.
10205 * config/pa/hppabsd.mh: Ditto.
10206 * config/ns32k/nbsd.mt: Ditto.
10207 * config/mips/vr5000.mt: Ditto.
10208 * config/m68k/sun3os4.mh: Ditto.
10209 * config/m68k/nbsd.mt: Ditto.
10210 * config/m68k/m68klynx.mh: Ditto.
10211 * config/m32r/m32r.mt: Ditto.
10212 * config/i386/x86-64linux.mt: Ditto.
10213 * config/i386/nbsdelf.mt: Ditto.
10214 * config/i386/nbsd.mt: Ditto.
10215 * config/i386/i386lynx.mh: Ditto.
10216
10217 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10218
10219 * target.c (debug_print_register): New function. Handle oversize
10220 registers.
10221 (debug_to_fetch_registers): Call.
10222 (debug_to_store_registers): Call.
10223
10224 2002-05-03 Jim Blandy <jimb@redhat.com>
10225
10226 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10227 (read_type): Doc fix.
10228 * gdbtypes.c (replace_type): Doc fix.
10229
10230 * stabsread.c (multiply_defined_struct): New complaint.
10231 (read_struct_type): If the type we were passed isn't empty, or
10232 incomplete, don't read the new struct type into it; complain,
10233 and return the original type unchanged. Take a new `type_code'
10234 argument, which is the type code for the new type.
10235 (read_type): Rather than storing the type's type code here, pass
10236 it as an argument to read_struct_type, and let that take care of
10237 storing it. That way, we don't overwrite the original type code,
10238 so read_struct_type can use it to decide whether we're overwriting
10239 something we shouldn't.
10240 (complain_about_struct_wipeout): New function.
10241
10242 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10243
10244 * gdbarch.sh: Assert that gdbarch is non-NULL.
10245 * gdbarch.c: Regenerate.
10246
10247 2002-05-03 Jason Merrill <jason@redhat.com>
10248
10249 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10250 and return NULL.
10251
10252 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10253
10254 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10255 (x86_64_dwarf2gdb_regno_map_length),
10256 (x86_64_dwarf2_reg_to_regnum): Added.
10257 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10258 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10259 (_initialize_x86_64_tdep): Synced with the change above.
10260 (x86_64_skip_prologue): Reformulated message.
10261
10262 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10263
10264 * f-exp.y: Also use new prev_lexptr variable
10265 to improve error reporting. Based on Michael Snyder
10266 2002-04-24 dated patch to c-exp.y.
10267 * jv-exp.y: Likewise.
10268 * m2-exp.y: Likewise.
10269
10270 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10271
10272 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10273 we are dealing with vectors.
10274
10275 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10276
10277 * config/m68k/tm-nbsd.h: Obvious fix,
10278 correct machine name.
10279
10280 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10281
10282 * p-typeprint.c (pascal_type_print_base): Add support
10283 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10284
10285 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10286
10287 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10288 for fondamental pascal 'char' type.
10289
10290 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10291
10292 * p-lang.h (is_pascal_string_type): Declaration changed,
10293 new sixth argument of type char ** added.
10294 * p-lang.c (is_pascal_string_type): Implementation
10295 changed. Args length_pos, length_size, string_pos, char_size
10296 can now be NULL. New argument arrayname set to the field
10297 name of the char array. Return value set to char array
10298 field index plus one.
10299 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10300 is_pascal_string_type function.
10301
10302 2002-05-02 Andrew Cagney <cagney@redhat.com>
10303
10304 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10305 <cagney@redhat.com> change.
10306 * gdbarch.c: Regenerate.
10307
10308 2002-05-02 Andrew Cagney <cagney@redhat.com>
10309
10310 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10311 before probing for a new one. Detect errorenous gdbarch_init
10312 functions.
10313 * gdbarch.c: Regenerate.
10314
10315 2002-05-01 Andrew Cagney <cagney@redhat.com>
10316
10317 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10318 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10319 * config/v850/tm-v850.h: Ditto. Update copyright.
10320
10321 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10322
10323 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10324 current_gdbarch.
10325
10326 2002-04-30 Michael Snyder <msnyder@redhat.com>
10327
10328 * arm-tdep.c: Whitespace clean-ups.
10329 (arm_skip_prologue): Fix thinko; two lines
10330 should have been removed as part of 4/24 change.
10331
10332 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10333
10334 * rs6000-tdep.c: Added comment describing how fpscr register
10335 numbers were chosen.
10336
10337 2002-04-30 Michael Snyder <msnyder@redhat.com>
10338
10339 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10340
10341 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10342
10343 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10344 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10345 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10346
10347 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10348
10349 From Louis Hamilton <hamilton@redhat.com>:
10350 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10351 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10352 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10353 not bfd-private xcoff data, to determine wordsize.
10354 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10355
10356 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10357
10358 GDB 5.2 released from 5.2 branch.
10359
10360 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10361
10362 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10363 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10364 (x86_64_register_info_table): Added comments with register numbers.
10365
10366 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10367
10368 * rs6000-tdep.c (rs6000_extract_return_value,
10369 rs6000_store_return_value): Handle returning vectors.
10370 (rs6000_gdbarch_init): Use
10371 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10372 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10373 New function.
10374 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10375 vectors.
10376 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10377 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10378
10379 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10380
10381 * hpread.c (hpread_psymtab_to_symtab_1,
10382 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10383 with fprintf_unfiltered (gdb_stderr,...).
10384
10385 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10386
10387 * remote-array.c (printf_monitor, write_monitor,
10388 array_insert_breakpoint, array_remove_breakpoint ):
10389 Replace fprintf (stderr,...
10390 with fprintf_unfiltered (gdb_stderr,....
10391 * remote-es.c: Likewise.
10392 * remote-os9k.c: Likewise.
10393 * remote-st.c: Likewise.
10394
10395 2002-04-28 Andreas Schwab <schwab@suse.de>
10396
10397 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10398 linux-proc.o and gcore.o.
10399
10400 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10401
10402 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10403 code without frame pointers.
10404
10405 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10406
10407 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10408 ON_STACK is needed.
10409
10410 2002-04-26 Ben Elliston <bje@redhat.com>
10411
10412 * target.c (do_xfer_memory): Correct reference to the new option
10413 "trust-readonly-sections".
10414
10415 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10416
10417 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10418 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10419 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10420 vectors.
10421 (read_array_type): Record the fact that this array type is really a
10422 vector (i.e. are passed in by value).
10423
10424 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10425
10426 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10427 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10428 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10429 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10430 * alpha-linux-tdep.c: Include frame.h.
10431 (alpha_linux_sigcontext_addr): New function.
10432 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10433 alpha_linux_sigcontext_addr.
10434 * alpha-osf1-tdep.c: Include gdbcore.h.
10435 (alpha_osf1_sigcontext_addr): New function.
10436 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10437 alpha_osf1_sigcontext_addr.
10438 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10439 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10440
10441 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10442
10443 * stack.c (selected_frame_level):
10444 (select_frame): Do not set selected_frame_level.
10445 * frame.h (selected_frame_level): Delete declaration.
10446
10447 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10448
10449 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10450 convert_from_func_ptr-addr when AIX / PowerOpen.
10451
10452 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10453
10454 * valops.c (hand_function_call): Call
10455 generic_save_call_dummy_addr.
10456 * frame.h (generic_save_call_dummy_addr): Declare.
10457 * blockframe.c (struct dummy_frame): Add fields call_lo and
10458 call_hi.
10459 (generic_find_dummy_frame): Check for PC in range call_lo to
10460 call_hi instead of entry_point_address.
10461 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10462 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10463 (generic_save_call_dummy_addr): New function.
10464
10465 2002-04-24 David S. Miller <davem@redhat.com>
10466
10467 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10468 sparc_skip_prologue.
10469 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10470 information to find prologue when possible.
10471 (sparc_prologue_frameless_p): Call examine_prologue directly.
10472 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10473 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10474 second argument.
10475 (SKIP_PROLOGUE): Likewise.
10476
10477 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10478
10479 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10480 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10481 indicate that the condition it was testing is always true.
10482 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10483 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10484 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10485
10486 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10487
10488 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10489 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10490 tdep->jb_pc and tdep->jb_elt_size.
10491 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10492 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10493 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10494 * alpha-nat.c (get_longjmp_target): Remove.
10495 (JB_ELEMENT_SIZE): Ditto.
10496 (JB_PC): Ditto.
10497 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10498 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10499 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10500 to alpha_get_longjmp_target.
10501 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10502 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10503 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10504
10505 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10506
10507 * README: Update to GDB 5.2.
10508
10509 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10510
10511 * gdbarch.sh (LC_ALL): Set to `c'.
10512
10513 2002-04-25 Theodore A. Roth <troth@verinet.com>
10514
10515 * avr-tdep.c: Ran through gdb_indent.sh.
10516
10517 2002-04-25 Theodore A. Roth <troth@verinet.com>
10518
10519 * MAINTAINERS: Add myself as AVR maintainer.
10520 * NEWS: Note new target avr.
10521
10522 2002-04-25 Theodore A. Roth <troth@verinet.com>
10523
10524 * Makefile.in: Add support for AVR target.
10525 * configure.tgt: Add support for AVR target.
10526 * avr-tdep.c: New file
10527 * config/avr/avr.mt: New file.
10528
10529 2002-04-25 Theodore A. Roth <troth@verinet.com>
10530
10531 * MAINTAINERS: Add myself to write-after-approval.
10532
10533 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10534
10535 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10536 with fprintf_unfiltered (gdb_stderr,....
10537
10538 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10539
10540 Fix PR gdb/508.
10541 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10542
10543 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10544
10545 * p-exp.y: Also use new prev_lexptr variable
10546 to improve error reporting. Based on Michael Snyder
10547 2002-04-24 dated patch to c-exp.y.
10548
10549 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10550
10551 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10552 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10553 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10554 to 0.
10555 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10556 and struct value.
10557 (FUNCTION_START_OFFSET): Remove.
10558 (BREAKPOINT): Ditto.
10559
10560 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10561
10562 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10563 * NEWS: Ditto.
10564
10565 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10566
10567 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10568 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10569 alpha_linux_pc_in_sigtramp.
10570 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10571 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10572 alpha_osf1_pc_in_sigtramp.
10573 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10574 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10575 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10576 alphafbsd_pc_in_sigtramp.
10577 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10578 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10579 alphanbsd_pc_in_sigtramp.
10580 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10581 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10582
10583 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10584
10585 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10586
10587 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10588
10589 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10590 alphanbsd-tdep.c.
10591 (alphanbsd-nat.o): New dependency list.
10592 (alphanbsd-tdep.o): Ditto.
10593 * NEWS: Note new native NetBSD/alpha configuration.
10594 * alphanbsd-nat.c: New file.
10595 * alphanbsd-tdep.c: Ditto.
10596 * configure.host (alpha*-*-netbsd*): New host.
10597 * configure.tgt (alpha*-*-netbsd*): New target.
10598 * config/alpha/nbsd.mh: New file.
10599 * config/alpha/nbsd.mt: Ditto.
10600 * config/alpha/nm-nbsd.h: Ditto.
10601 * config/alpha/tm-nbsd.h: Ditto.
10602
10603 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10604
10605 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10606 (alpha-osf1-tdep.o): New dependency list.
10607 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10608 and skip_sigtramp_frame members.
10609 * alpha-linux-tdep.c: Include gdbcore.h.
10610 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10611 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10612 * alpha-osf1-tdep.c: New file.
10613 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10614 alpha-osf1-dep.c.
10615 (alpha_frame_past_sigtramp_frame): New function.
10616 (alpha_dynamic_sigtramp_offset): Ditto.
10617 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10618 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10619 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10620 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10621 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10622 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10623 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10624 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10625 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10626 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10627 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10628 to find_solib_trampoline_target.
10629 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10630 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10631 (SKIP_TRAMPOLINE_CODE): Remove.
10632 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10633 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10634 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10635 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10636 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10637 (PROC_SIGTRAMP_MAGIC): Ditto.
10638 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10639 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10640 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10641 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10642 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10643
10644 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10645
10646 * NEWS: Note that Alpha targets are now multi-arch.
10647
10648 2002-04-24 Michael Snyder <msnyder@redhat.com>
10649
10650 * parser-defs.h (prev_lexptr): New external variable.
10651 * parse.c (parse_exp_1): Set prev_lexptr to null before
10652 calling the language-specific parser.
10653 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10654 (yyerror): Use prev_lexptr in error reporting.
10655
10656 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10659 * gregset.h: If FILL_FPXREGSET is defined, provide
10660 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10661 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10662 is defined, call fill_fpxregset.
10663
10664 2002-04-24 Roland McGrath <roland@frob.com>
10665
10666 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10667 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10668 (supply_gregset, supply_fpregset): New functions.
10669
10670 * gnu-nat.c (gnu_find_memory_regions): New function.
10671 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10672 (gnu_xfer_memory): Add a cast.
10673
10674 2002-04-24 Michael Snyder <msnyder@redhat.com>
10675
10676 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10677 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10678 of argument regs ("str r(0123), [r11, #-nn"]).
10679 (arm_skip_prologue): Better handling for frameless functions.
10680 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10681 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10682
10683 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10684
10685 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10686 NUM_PSEUDO_REGS can be used.
10687
10688 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10689
10690 * arch-utils.h: Update copyright.
10691
10692 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10693 * gdbarch.h, gdbarch.c: Re-generate.
10694
10695 * inferior.h (IN_SIGTRAMP): Delete definition.
10696 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10697 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10698
10699 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10700 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10701 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10702 (find_proc_framesize): Ditto.
10703 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10704 (alpha_init_extra_frame_info): Ditto.
10705 * infrun.c (handle_inferior_event): Ditto.
10706 (handle_inferior_event): Ditto.
10707 (check_sigtramp2): Ditto.
10708 * blockframe.c (create_new_frame): Ditto.
10709 (get_prev_frame): Ditto.
10710 * ppc-linux-tdep.c: Update comments.
10711 * i386-linux-tdep.c: Update comments.
10712 * breakpoint.c (bpstat_what): Update comment.
10713
10714 2002-04-24 David S. Miller <davem@redhat.com>
10715
10716 * i960-tdep.c (register_in_window_p): New function.
10717 (i960_find_saved_register): Use it instead of
10718 REGISTER_IN_WINDOW_P.
10719 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10720
10721 * symtab.h (find_stab_function_addr): Kill extern.
10722 * minsyms.c (find_stab_function_addr): Remove from here...
10723 * dbxread.c: ... to here, and mark it static.
10724
10725 2002-04-20 David S. Miller <davem@redhat.com>
10726
10727 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10728 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10729
10730 2002-04-21 David S. Miller <davem@redhat.com>
10731
10732 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10733 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10734 (vx_write_register): Likewise.
10735
10736 2002-04-23 J. Brobecker <brobecker@gnat.com>
10737
10738 * source.c (is_regular_file): New function.
10739 (openp): Check wether file to open is a regular file
10740 to avoid opening directories.
10741
10742 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10743
10744 * findvar.c (extract_signed_integer): Cast printf argument
10745 to suppress format warning.
10746 (extract_unsigned_integer): Likewise.
10747 * infcmd.c (registers_info): Likewise.
10748 * top.c (get_prompt_1): Likewise.
10749 * valops.c (value_assign): Likewise.
10750 * valprint.c (print_decimal): Likewise.
10751
10752 2002-04-22 H.J. Lu (hjl@gnu.org)
10753
10754 * c-exp.y (typebase): Support
10755
10756 [long|long long|short] [signed|unsigned] [int|]
10757
10758 and
10759
10760 signed [long|long long|short] int
10761
10762 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10763
10764 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10765 and vax-tdep.h.
10766 * vax-tdep.h: New file.
10767 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10768 Make several routines static.
10769 (vax_get_saved_register): New function.
10770 (vax_gdbarch_init): New function.
10771 (_initialize_vax_tdep): Register vax_gdbarch_init.
10772 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10773 Remove macros now under the control of gdbarch.
10774
10775 2002-04-22 Michael Snyder <msnyder@redhat.com>
10776
10777 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10778 Some whitespace and coding standards tweaks.
10779
10780 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10781
10782 * vax-tdep.c: Include regcache.h.
10783 (vax_call_dummy_words): New.
10784 (sizeof_vax_call_dummy_words): New.
10785 (vax_fix_call_dummy): New function.
10786 (vax_saved_pc_after_call): Ditto.
10787 * config/vax/tm-vax.h: Don't include regcache.h.
10788 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10789 (CALL_DUMMY): Remove.
10790 (CALL_DUMMY_WORDS): Define.
10791 (SIZEOF_CALL_DUMMY_WORDS): Define.
10792 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10793
10794 2002-04-18 Michael Snyder <msnyder@redhat.com>
10795
10796 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10797
10798 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10799
10800 * vax-tdep.c (vax_frame_chain): New function.
10801 (vax_push_dummy_frame): Ditto.
10802 (vax_pop_frame): Ditto.
10803 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10804 (FRAMELESS_FUNCTION_INVOCATION): Use
10805 generic_frameless_function_invocation_not.
10806 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10807 (POP_FRAME): Use vax_pop_frame.
10808
10809 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10810
10811 * vax-tdep.c (vax_store_struct_return): New function.
10812 (vax_extract_return_value): Ditto.
10813 (vax_store_return_value): Ditto.
10814 (vax_extract_struct_value_address): Ditto.
10815 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10816 vax_store_struct_return.
10817 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10818 (STORE_RETURN_VALUE): Use vax_store_return_value.
10819 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10820
10821 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10822
10823 * vax-tdep.c (vax_frame_saved_pc): New function.
10824 (vax_frame_args_address_correct): Ditto.
10825 (vax_frame_args_address): Ditto.
10826 (vax_frame_locals_address): Ditto.
10827 (vax_frame_num_args): Move code to be in proximity to
10828 other frame-related functions.
10829 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10830 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10831 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10832 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10833 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10834
10835 2002-04-22 H.J. Lu (hjl@gnu.org)
10836
10837 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10838 includedir.
10839
10840 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10841
10842 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10843 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10844 (FRAME_INIT_SAVED_REGS): New macro.
10845
10846 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10847
10848 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10849
10850 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10851
10852 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10853 where needed.
10854 (fetch_osf_core_registers): Likewise.
10855 (supply_gregset): Likewise.
10856
10857 2002-04-22 J. Brobecker <brobecker@gnat.com>
10858
10859 * symfile.h (get_section_index): Define.
10860 * symfile.c (get_section_index): New function.
10861 * mdebugread.c (SC_IS_SBSS): New macro.
10862 (SC_IS_BSS): Return true for the scBss storage class only, as
10863 the scSBss storage class refers to the .sbss section.
10864 (parse_partial_symbols): Discard the symbols which associated
10865 section does not exist.
10866 Make sure to use the .sbss section index for symbols which
10867 storage class is scBss, rather than using the .bss section index.
10868
10869 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10870
10871 * vax-tdep.c: Update copyright years.
10872 (vax_register_name): New function.
10873 (vax_register_byte): Ditto.
10874 (vax_register_raw_size): Ditto.
10875 (vax_register_virtual_size): Ditto.
10876 (vax_register_virtual_type): Ditto.
10877 * config/vax/tm-vax.h: Update copyright years.
10878 (REGISTER_NAMES): Remove.
10879 (REGISTER_NAME): Define.
10880 (REGISTER_BYTE): Use vax_register_byte.
10881 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10882 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10883 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10884
10885 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10886
10887 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10888 declaration
10889 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10890
10891 2002-04-21 David S. Miller <davem@redhat.com>
10892
10893 * arch-utils.c (generic_prologue_frameless_p): Kill
10894 SKIP_PROLOGUE_FRAMELESS_P code.
10895 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10896 references.
10897 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10898 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10899 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10900 references.
10901 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10902 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10903 (sparc_gdbarch_init): Pass it to
10904 set_gdbarch_prologue_frameless_p.
10905
10906 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10907
10908 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10909 (alphabsd-nat.o): New dependency list.
10910
10911 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10912
10913 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10914 alphafbsd-tdep.c.
10915 (alpha-linux-tdep.o): New dependency list.
10916 (alphafbsd-tdep.o): Likewise.
10917
10918 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10919
10920 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10921 to here...
10922 * alpha-tdep.c: ...from here.
10923 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10924
10925 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10926
10927 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10928 prototype from here...
10929 * alpha-tdep.h: ...to here.
10930
10931 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10932
10933 * frame.h (selected_frame_level): Document as deprecated.
10934 (frame_relative_level): Declare.
10935 * stack.c (frame_relative_level): New function.
10936 (selected_frame_level): Document as deprecated.
10937 (select_frame): Do not set the selected_frame_level.
10938
10939 * stack.c (frame_info, record_selected_frame): Update.
10940 (frame_command, current_frame_command): Update.
10941 (up_silently_base, up_command, down_silently_base): Update.
10942 (down_command): Update.
10943 * inflow.c (kill_command): Update.
10944 * tracepoint.c (finish_tfind_command): Update.
10945 * corelow.c (core_open): Update.
10946 * thread.c (info_threads_command): Update.
10947 (do_captured_thread_select): Update.
10948 * infcmd.c (finish_command): Update.
10949 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10950
10951 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10952
10953 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10954
10955 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10956
10957 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10958 type const.
10959
10960 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10961
10962 * alphafbsd-tdep.c: Update copyright years. Include
10963 alpha-tdep.h.
10964 (alphafbsd_use_struct_convention): Make static.
10965 (alphafbsd_init_abi): New function.
10966 (_initialize_alphafbsd_tdep): New function.
10967 * config/alpha/tm-fbsd.h: Update copyright years.
10968 (USE_STRUCT_CONVENTION): Remove.
10969
10970 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10971
10972 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10973 an Alpha ABI variant.
10974 (alpha_abi_handler_list): Declare.
10975 (alpha_gdbarch_register_os_abi): New function.
10976 (alpha_gdbarch_init): Give registered ABI variant handlers a
10977 chance to tweak the gdbarch once we have set up defaults.
10978 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10979
10980 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10981
10982 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10983 to standard_coerce_float_to_double.
10984 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10985
10986 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10987
10988 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10989 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10990 from gdbarch_tdep rather than a constant.
10991 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10992 the default text address for all Alpha Unix ABIs.
10993 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10994 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10995
10996 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10997
10998 * alpha-tdep.h: New file. Includes several Alpha target constants
10999 taken from...
11000 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11001 let gdbarch deal with.
11002 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11003 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11004 to dependency list.
11005 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11006 Alpha target register names.
11007 * alphabsd-nat.c: Likewise.
11008 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11009 Alpha target register names. Make serveral routines static.
11010 (alpha_get_saved_register): New function.
11011 (alpha_abi_names): New.
11012 (process_note_abi_tag_sections): New function.
11013 (get_elfosabi): New function.
11014 (alpha_gdbarch_init): New function.
11015 (alpha_dump_tdep): New function.
11016 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11017
11018 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11019
11020 * frame.c (find_saved_register): Delete #ifdef
11021 HAVE_REGISTER_WINDOWS code.
11022 * config/sparc/tm-sparc.h: Update comments.
11023 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11024
11025 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11026
11027 * i960-tdep.c (i960_find_saved_register): New function.
11028 (i960_get_saved_register): New function.
11029 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11030 (i960_get_saved_register): Declare.
11031 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11032
11033 2002-04-20 David S. Miller <davem@redhat.com>
11034
11035 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11036
11037 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11038
11039 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11040 instead of NUM_PSEUDO_REGS.
11041
11042 2002-04-20 David S. Miller <davem@redhat.com>
11043
11044 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11045 GDB_MULTI_ARCH_PARTIAL
11046 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11047 define, let tm-sp64.h do it.
11048
11049 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11050
11051 * frame.c (find_saved_register): Avoid a NULL pointer
11052 dereference and actually walk the frame list.
11053
11054 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11055
11056 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11057 sorted in most most-recent-used order. Document.
11058 * gdbarch.h, gdbarch.c: Regenerate.
11059
11060 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11061
11062 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11063 instead of ->prev.
11064 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11065 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11066 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11067 instead of ->prev.
11068
11069 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11070
11071 Fix PR gdb/471.
11072 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11073 (build_builtin_type_vec128): Ditto.
11074 (append_composite_type_field): Fix calculation of type length in
11075 union case.
11076
11077 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11078
11079 * config/djgpp/README: Update.
11080
11081 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11082 compiler warnings.
11083
11084 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11085
11086 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11087 (alpha_setup_arbitrary_frame): ...to this.
11088 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11089 for alpha_setup_arbitrary_frame.
11090
11091 2002-04-18 Andrew Cagney <cagney@redhat.com>
11092
11093 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11094 * gdbarch.h, gdbarch.c: Regenerate.
11095
11096 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11097 * target.h (memory_breakpoint_from_pc): Update declaration.
11098 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11099
11100 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11101 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11102 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11103 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11104 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11105 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11106 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11107 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11108 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11109 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11110 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11111 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11112
11113 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11114 const pointer.
11115 * monitor.c (monitor_insert_breakpoint): Ditto.
11116 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11117
11118 * config/mcore/tm-mcore.h: Update copyright.
11119 * mem-break.c: Ditto.
11120 * xstormy16-tdep.c: Ditto.
11121
11122 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11123
11124 * p-exp.y: Add precedence rule for '^' token.
11125 This removes the shift/reduce conflicts.
11126 Remove the comment concerning these shift/reduce conflicts.
11127
11128 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11129
11130 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11131 (registers_powerpc_nofp): New register set for processors
11132 without floating point unit.
11133
11134 2002-04-18 David S. Miller <davem@redhat.com>
11135
11136 * MAINTAINERS: Add myself to write-after-approval.
11137
11138 2002-04-17 Michael Snyder <msnyder@redhat.com>
11139
11140 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11141
11142 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11143
11144 * rs6000-tdep.c (frame_initial_stack_address): Use
11145 frame_register_read to read the alloca_reg.
11146
11147 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11148
11149 * frame.c (find_saved_register): Find saved registers in the next
11150 not prev frame.
11151 Fix PR gdb/365.
11152
11153 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11154
11155 * gdbarch.sh (LANG): Set to ``c''.
11156
11157 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11158
11159 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11160
11161 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11162
11163 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11164 Update copyright.
11165
11166 * hpread.c (hpread_get_lntt): Add declaration.
11167 Also fix PR gdb/391.
11168
11169 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11170
11171 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11172 * aclocal.m4, configure: Re-generate.
11173 Fix PR gdb/391.
11174
11175 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11176
11177 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11178 instead of tm_print_insn.
11179
11180 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11181
11182 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11183
11184 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11185
11186 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11187 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11188 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11189
11190 2002-04-12 Don Howard <dhoward@redhat.com>
11191
11192 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11193 max_user_call_depth.
11194 (init_cmd_lists): Initialize the new value;
11195 * cli/cli-script.c (execute_user_command): Limit the call depth of
11196 user defined commands. This avoids a core-dump when user commands
11197 are infinitly recursive.
11198
11199 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11200
11201 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11202 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11203 from tdep struct instead of DEFAULT_LR_SAVE.
11204 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11205 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11206 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11207
11208 2002-04-12 Michael Snyder <msnyder@redhat.com>
11209
11210 * Remote.c: Spelling fix.
11211 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11212 If no symbol found for "sbrk", try "_sbrk".
11213 (make_output_phdrs): Use bfd_section_name.
11214 (gcore_copy_callback): Use bfd_section_name.
11215 * eval.c: Indentation fix-ups.
11216 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11217 in case it gets applied to an address that is already
11218 in the instruction space.
11219 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11220 * symfile.c: Fix indentation, long lines.
11221 * source.c: White space fix-up.
11222
11223 2002-04-12 Andrew Cagney <cagney@redhat.com>
11224
11225 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11226 * frame.c (frame_register_read): New function. Return non-zero on
11227 success.
11228 (read_relative_register_raw_bytes_for_frame): Delete.
11229 (read_relative_register_raw_bytes): Delete.
11230 * frame.h (frame_register_read): Declare.
11231 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11232 * sh-tdep.c: Ditto.
11233 * infcmd.c (do_registers_info): Ditto.
11234 * hppa-tdep.c: Ditto.
11235 * rs6000-tdep.c: Ditto.
11236 * h8500-tdep.c: Ditto.
11237 * mips-tdep.c: Ditto.
11238 * h8300-tdep.c: Ditto.
11239 * z8k-tdep.c: Ditto.
11240
11241 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11242
11243 From Jimi X <jimix@watson.ibm.com>:
11244 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11245 64-bit SysV ABI.
11246
11247 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11248
11249 From Jimi X <jimix@watson.ibm.com>:
11250 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11251 bfd info.
11252
11253 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11254
11255 From Jimi X <jimix@watson.ibm.com>:
11256 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11257 register sets for these processor variants.
11258
11259 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11260
11261 * regformats/reg-ppc.dat: Support FPSCR.
11262
11263 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11264
11265 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11266 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11267 Add fpscr as an invalid/unfetchable register.
11268 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11269 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11270 (fill_fpregset): Add support for register fpscr.
11271 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11272 (fill_gregset): Account for the fact that register ``mq'' might
11273 not exist.
11274 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11275 (registers_power): Add fpscr to register set at slot 71.
11276 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11277 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11278
11279 2002-04-11 Michael Snyder <msnyder@redhat.com>
11280
11281 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11282 * configure: Regenerate.
11283 * config.in: Regenerate.
11284 * acconfig.h: Add define for _SYSCALL32.
11285 * core-sol2.c: Remove #define _SYSCALL32.
11286 * solib-legacy.c: Remove #define _SYSCALL32.
11287
11288 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11289
11290 * stack.c (select_frame): Cleanup internal error message, do not
11291 use %p.
11292
11293 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11294
11295 * stack.c (select_frame): Check that selected_frame and the
11296 specified level are as expected.
11297 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11298 Update copyright.
11299 * frame.h (struct frame_info): Add field `level'. Update
11300 copyright.
11301 Work-in-progress PR gdb/464.
11302
11303 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11304
11305 * maint.c (maint_print_section_info): Rename print_section_info.
11306 (print_bfd_section_info, print_objfile_section_info): Update.
11307 * inferior.h (struct gdbarch): Add opaque declaration.
11308 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11309 * gdbarch.h: Regenerate.
11310
11311 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11312
11313 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11314 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11315 (kernel_u_size): Added.
11316 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11317 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11318
11319 2002-04-04 Jim Ingham <jingham@apple.com>
11320
11321 * valarith.c (find_size_for_pointer_math): New function, either returns
11322 the size for a pointer's target, returns 1 for void *, or errors for
11323 incomplete types.
11324 (value_add, value_sub): use find_size_for_pointer_math.
11325
11326 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11327
11328 * linux-low.c (linux_look_up_symbols): New hook.
11329 (linux_target_ops): Add linux_look_up_symbols.
11330 * remote-utils.c (decode_address): New function.
11331 (look_up_one_symbol): New function.
11332 * server.c (handle_query): Call target look_up_symbols hook.
11333 * server.h (look_up_one_symbol): Add prototype.
11334 * target.h (struct target_ops): Add look_up_symbols hook.
11335
11336 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11337
11338 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11339 override FP_REGNUM with frame->fp. Update copyright.
11340 * parse.c (num_std_regs, std_regs): Delete.
11341 (target_map_name_to_register): Do not search std_regs. Update
11342 function description.
11343 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11344 declarations. Update copyright.
11345 Fix PR gdb/251.
11346
11347 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11348
11349 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11350 after the last symbol in a block.
11351
11352 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11353
11354 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11355 is non zero as a found symbol.
11356
11357 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11358
11359 * findvar.c: Include "builtin-regs.h".
11360 (value_of_register): Call value_of_builtin_reg when applicable.
11361 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11362 (target_map_name_to_register): Call
11363 builtin_reg_map_name_to_regnum.
11364 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11365 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11366 (builtin_regs_h): Define.
11367 (builtin-regs.o): New target.
11368 (findvar.o): Add $(builtin_regs_h).
11369 * builtin-regs.c, builtin-regs.h: New files.
11370 * std-regs.c: New file.
11371 Partial fix for PR gdb/251.
11372
11373 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11374
11375 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11376 it's no longer required.
11377
11378 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11379
11380 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11381
11382 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11383
11384 From Jimi X <jimix@watson.ibm.com>:
11385 * rs6000-tdep.c (rs6000_software_single_step): Use
11386 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11387 and size. Use target_insert_breakpoint() and
11388 target_remove_breakpoint() to insert and remove breakpoints
11389 instead of explicit memory reads and writes.
11390
11391 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11392
11393 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11394 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11395 ELF_OBJECT_FORMAT ifdef.
11396
11397 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11398
11399 From Jimi X <jimix@watson.ibm.com>:
11400 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11401
11402 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11403
11404 From Jimi X <jimix@watson.ibm.com>:
11405 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11406 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11407
11408 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11409
11410 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11411 s/asprintf/xasprintf/.
11412 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11413
11414 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11415
11416 I believe Jeff Law denies responsability for this one:
11417 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11418 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11419 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11420 Work-around for PR gdb/366.
11421
11422 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11423
11424 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11425 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11426 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11427
11428 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11429
11430 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11431 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11432 information.
11433
11434 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11435
11436 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11437 maintainer.
11438
11439 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11440
11441 * README (Reporting Bugs in GDB): Document the bug web page as the
11442 prefered way of submitting bugs.
11443 Fix PR gdb/402.
11444
11445 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11446
11447 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11448 -1. Update comment.
11449 * gdbarch.h, gdbarch.c: Re-generate.
11450
11451 2002-04-07 Andreas Schwab <schwab@suse.de>
11452
11453 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11454 buffer to regcache_collect.
11455
11456 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11457
11458 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11459 * gdbarch.c, gdbarch.h: Re-generate.
11460
11461 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11462
11463 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11464 declaration. Fix -Werror.
11465
11466 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11467
11468 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11469 * gdbarch.c: Regenerate.
11470
11471 2002-04-05 Michael Snyder <msnyder@redhat.com>
11472
11473 * breakpoint.c (clear_command): Rewrite middle section to
11474 combine two loops with identical control conditions.
11475 Add a cleanup to eliminate a memory leak.
11476 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11477
11478 2002-04-05 H.J. Lu (hjl@gnu.org)
11479
11480 * solib-svr4.c (bkpt_names): Add "__start".
11481
11482 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11483
11484 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11485 as test for 64 bit target.
11486
11487 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11488
11489 * h8500-tdep.c (h8500_write_fp): Delete function.
11490 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11491 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11492 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11494 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11495 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11496 (s390_write_fp):
11497 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11498 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11499 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11500 (d10v_write_fp): Delete function.
11501 * inferior.h (write_fp, generic_target_write_fp): Delete
11502 declarations.
11503 * regcache.c (generic_target_write_fp): Delete function.
11504 (write_fp): Delete function.
11505 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11506 * gdbarch.h, gdbarch.c: Regenerate.
11507 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11508 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11509 (sparc64_write_fp): Delete declaration.
11510 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11511 (h8500_write_fp): Delete declaration.
11512
11513 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11514
11515 * sparc-tdep.c (sparc64_write_fp): Delete.
11516 (sparc_push_dummy_frame): Replace write_fp call with code to store
11517 the FP directly.
11518 (sparc_gdbarch_init): Do not initialize write_fp.
11519
11520 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11521
11522 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11523 clause.
11524
11525 2002-03-29 Jim Blandy <jimb@redhat.com>
11526
11527 * stack.c (get_selected_block): Add new argument `addr_in_block',
11528 used to return the exact code address we used to select the block,
11529 not just the block.
11530 * blockframe.c (get_frame_block, get_current_block): Same.
11531 * frame.h (get_frame_block, get_current_block,
11532 get_selected_block): Update declarations.
11533 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11534 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11535
11536 2002-04-05 Michael Snyder <msnyder@redhat.com>
11537
11538 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11539 warning message.
11540
11541 2002-04-05 J. Brobecker <brobecker@gnat.com>
11542
11543 * utils.c (xfullpath): New function.
11544 * defs.h (xfullpath): Add declaration.
11545 * source.c (openp): Use xfullpath in place of gdb_realpath to
11546 avoid resolving the basename part of filenames when the
11547 associated file is a symbolic link. This fixes a potential
11548 inconsistency between the filenames known to GDB and the
11549 filenames it prints in the annotations.
11550 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11551 to be able to match a filename with either the real filename, or
11552 the name of any symbolic link to this file.
11553 (lookup_partial_symtab): Ditto.
11554
11555 2002-04-04 Michael Snyder <msnyder@redhat.com>
11556
11557 * breakpoint.c: Add support for hardware breakpoints in overlays.
11558 (overlay_events_enabled): New state variable.
11559 (insert_breakpoints): Use overlay_events_enabled to decide
11560 whether to attempt to set a breakpoint at the overlay load addr.
11561 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11562 (remove_breakpoint): Use overlay_events_enabled to decide
11563 whether breakpoints need to be removed from overlay load addr.
11564 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11565 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11566 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11567 disable_overlay_breakpoints): Update overlay_events_enabled.
11568
11569 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11570
11571 * dwarf2read.c (struct function_range): New.
11572 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11573 (check_cu_functions): New.
11574 (read_file_scope): Initialize global function lists.
11575 Call dwarf_decode_line after processing children.
11576 (read_func_scope): Add to global function list.
11577 (dwarf_decode_lines): Call check_cu_functions everywhere
11578 record_line is called. Call record_line with a linenumber
11579 of 0 to mark sequence ends.
11580
11581 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11582
11583 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11584 change sync with glibc.
11585
11586 2002-04-03 Jim Blandy <jimb@redhat.com>
11587
11588 * configure.in: Call AC_C_INLINE.
11589 * configure: Regenerated.
11590
11591 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11592
11593 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11594 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11595
11596 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11597
11598 * NEWS: Mention gcore support on FreeBSD/i386.
11599
11600 * fbsd-proc.c: New file.
11601 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11602 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11603
11604 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11605 while statement.
11606
11607 2002-03-29 Jim Blandy <jimb@redhat.com>
11608
11609 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11610 unescaped newlines in string literals, but newer ones don't. So
11611 escape them.
11612
11613 2002-03-26 Michael Snyder <msnyder@redhat.com>
11614 Andrew Cagney <cagney@redhat.com>
11615
11616 * cli/cli-dump.c: New file. Dump memory to file,
11617 restore file to memory.
11618 * cli/cli-dump.h: New file.
11619 * Makefile.in: Add rules, dependencies for cli-dump.o.
11620 * NEWS: Mention new commands.
11621
11622 2002-03-28 Michael Snyder <msnyder@redhat.com>
11623
11624 * symfile.c (symbol_file_add): Move test for null symbols to later.
11625
11626 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11627
11628 From veksler at il.ibm.com:
11629 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11630 the xstrduped original path.
11631 Fix PR gdb/417.
11632
11633 2002-03-27 Michael Snyder <msnyder@redhat.com>
11634
11635 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11636 * infcmd.c (_initialize_infcmd): Ditto.
11637 * language.c (_initialize_language): Ditto.
11638 * symfile.c (_initialize_symfile): Ditto.
11639 * top.c (_init_main): Ditto.
11640 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11641
11642 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11643
11644 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11645 vector registers handling.
11646 (skip_prologue): Handle new AltiVec instructions. Fill in new
11647 fields of frame data.
11648 (frame_get_saved_regs): Fill in information for AltiVec registers.
11649
11650 2002-03-27 Jim Blandy <jimb@redhat.com>
11651
11652 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11653 a function; leave this macro here to invoke that function.
11654 (symbol_init_mangled_name): Declaration for that function.
11655 * symtab.c (symbol_init_mangled_name): New function.
11656
11657 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11658
11659 * valarith.c: Replace strerror with safe_strerror.
11660 * tracepoint.c: Ditto.
11661 * lin-lwp.c: Ditto.
11662 * go32-nat.c: Ditto.
11663 * inflow.c: Ditto.
11664 * gnu-nat.c: Ditto.
11665
11666 2002-03-27 Andreas Schwab <schwab@suse.de>
11667
11668 * event-top.c (command_line_handler): Remove useless if.
11669
11670 2002-03-27 Andreas Jaeger <aj@suse.de>
11671
11672 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11673 comment.
11674
11675 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11676
11677 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11678 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11679 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11680 (x86_64_linux_dr_get_status, supply_gregset),
11681 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11682 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11683 (x86_64_register_info_table): Add.
11684 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11685 (x86_64_register_raw_size, x86_64_register_virtual_type),
11686 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11687 general x86_64_register_info_table.
11688 (i386_gdbarch_init): gdbarch_register_bytes is now set
11689 dynamicaly during initialization.
11690 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11691 * gdbserver/linux-x86-64-low.c: Ditto.
11692
11693 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11694
11695 * gdbserver/server.c (main): Call target_signal_to_host_p
11696 and target_signal_to_host on signals received from the remote.
11697 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11698 target_signal_from_host on signals sent to the remote.
11699 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11700 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11701
11702 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11703
11704 * signals/signals.c: Include "server.h" in gdbserver build.
11705 (target_signal_from_name): Don't use STREQ.
11706 (_initialize_signals): Likewise. Don't include function in
11707 gdbserver build.
11708
11709 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11710
11711 * signals.c: Moved to...
11712 * signals/signals.c: Here.
11713 * Makefile (signals.o): Update.
11714
11715 2002-03-26 Jeff Law (law@redhat.com)
11716
11717 * somread.c (som_symtab_read): Remove some commented out code and
11718 updated related comments. Do not set the minimal symbol table to
11719 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11720 in a dynamic executable.
11721 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11722 where we are unable to find the minimal symbol for the given
11723 PC value.
11724
11725 2002-03-25 Jeff Law (law@redhat.com)
11726
11727 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11728
11729 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11730
11731 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11732
11733 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11734
11735 * command.h: Update copyright.
11736 (struct cmd_list_element): Replace definition with opaque
11737 declaration.
11738 (enum cmd_types): Document that it will eventually be moved to
11739 cli/cli-decode.h
11740 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11741 (MALLOCED_REPLACEMENT): Delete macro.
11742 * Makefile.in (cli_decode_h): Add $(command_h).
11743 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11744 * top.c: Include "cli/cli-decode.h".
11745 * completer.c: Include "cli/cli-decode.h".
11746 * maint.c: Include "cli/cli-decode.h".
11747 * cli/cli-decode.h: Include "command.h".
11748 (enum command_class): Delete.
11749 (enum cmd_types): Comment out.
11750 (enum cmd_auto_boolean): Delete.
11751 (enum var_types): Delete.
11752
11753 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11754
11755 * cli/cli-decode.c: Include "gdb_assert.h".
11756 (add_set_or_show_cmd): New static function.
11757 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11758 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11759 all fields, such as func, from the set command.
11760
11761 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11762
11763 * MAINTAINERS (sh-elf): Change warning flag to -w.
11764
11765 2002-03-23 Andrew Cagney <cagney@redhat.com>
11766
11767 * defs.h (error): Add printf format attribute.
11768 * thread-db.c (thread_from_lwp): Fix error format string.
11769 * stack.c (parse_frame_specification): Ditto.
11770 * cli/cli-decode.c (undef_cmd_error): Ditto.
11771 * scm-lang.c (scm_lookup_name): Ditto.
11772 * tracepoint.c (trace_error): Ditto.
11773 * remote-utils.c (usage): Ditto.
11774 * remote.c (compare_sections_command): Ditto.
11775 Fix PR gdb/328.
11776
11777 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11778
11779 * gdbtypes.c (append_composite_type_field): New function.
11780 (init_composite_type): New function.
11781 * gdbtypes.h (append_composite_type_field): Declare.
11782 (init_composite_type): Ditto.
11783
11784 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11785
11786 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11787 function.
11788 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11789 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11790 structure returning convention for SYSV ABI case, but not
11791 for GNU/Linux, FreeBSD, or NetBSD.
11792
11793 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11794
11795 * symtab.h (lookup_block_symbol): Add mangled_name argument
11796 to prototype.
11797
11798 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11799 with new mangled_name argument.
11800 * linespec.c (decode_line_1): Likewise.
11801 * valops (value_of_this): Likewise.
11802 * symtab.c (lookup_transparent_type): Likewise.
11803 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11804 (lookup_symbol): If we are given a mangled name, pass it down
11805 to lookup_symbol_aux.
11806 (lookup_block_symbol): If we are given a mangled name to check
11807 against, only return symbols which match it.
11808
11809 2002-03-22 Christopher Faylor <cgf@redhat.com>
11810
11811 * win32-nat.c (child_create_inferior): Check for proper shell to use
11812 here, in case the user changes it on the fly.
11813 (_initialize_inftarg): Remove shell path considerations.
11814
11815 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11816
11817 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11818 for gdbarch_max_register_raw_size and max_register_virtual_size.
11819 Adjust copyright year.
11820
11821 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11822
11823 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11824 in a function to cover the entire beginning of the function
11825 as well if it does not already.
11826
11827 2002-03-21 Tom Rix <trix@redhat.com>
11828
11829 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11830 (rs6000_ptrace64): Renamed from ptrace64.
11831
11832 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11833
11834 * gdbserver/remote-utils.c (remote_open): Don't call
11835 getprotobyname, we're all using TCP here so just use
11836 IPPROTO_TCP.
11837 * gdbserver/gdbreplay.c (remote_open): Ditto.
11838
11839 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11840
11841 * regcache.c (_initialize_regcache): No need to call
11842 build_regcache() at this time; it gets called whenever
11843 the gdbarch changes.
11844
11845 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11846
11847 * sparc-nat.c: Include sys/param.h where possible.
11848
11849 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11850
11851 Fix PR gdb/422.
11852 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11853 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11854 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11855 complex types.
11856 * stabsread.c (rs6000_builtin_type): Likewise.
11857 (read_sun_floating_type): Likewise.
11858
11859 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11860
11861 * stabsread.c (read_member_functions): Remove skip code for duplicate
11862 constructor/destructor methods. Use standard parsing for these
11863 methods and just do not chain them to the list of methods after
11864 parsing.
11865
11866 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11867
11868 * coffread.c: Remove redundant static declarations. Replace
11869 occurrences of `PTR' with `void *'.
11870 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11871 * top.h (quit_cover): Likewise.
11872 * defs.h (catch_errors): Likewise.
11873
11874 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11875
11876 * defs.h (XMALLOC): Define.
11877 * gdb-events.sh (XMALLOC): Delete macro.
11878 * gdb-events.c, gdb-events.h: Regenerate.
11879 * gdbarch.sh (XMALLOC): Delete macro.
11880 * gdbarch.c: Regenerate.
11881 * serial.c (XMALLOC): Delete macro.
11882 * ui-file.c (XMALLOC): Ditto.
11883 * ser-unix.h (XMALLOC): Ditto.
11884 * sh-tdep.c (XMALLOC): Ditto.
11885 * ui-out.c (XMALLOC): Ditto.
11886 * utils.c (XMALLOC): Ditto.
11887 * i386-tdep.c (XMALLOC): Ditto.
11888 * gdb-events.c (XMALLOC): Ditto.
11889 * d10v-tdep.c (XMALLOC): Ditto.
11890 * cli-out.c (XMALLOC): Ditto.
11891
11892 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11893 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11894 * ui-file.c, ui-out.c: Ditto.
11895
11896 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11897
11898 * command.h (struct cmd_list_element): Add field context.
11899 (set_cmd_context, get_cmd_context): Declare.
11900 * cli/cli-decode.h: Ditto.
11901 * cli/cli-decode.c (get_cmd_context): New function.
11902 (set_cmd_context): New function.
11903 (add_cmd): Initialize context.
11904 Part of fixing PR gdb/145 and PR gdb/146.
11905
11906 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11907
11908 * cli/cli-decode.c (cmd_type): New function.
11909 * command.h (cmd_type): Declare.
11910 * infrun.c (set_schedlock_func): Call function cmd_type.
11911 * kod.c (kod_set_os): Call cmd_type.
11912 * cris-tdep.c (cris_version_update): Use function cmd_type.
11913 (cris_mode_update, cris_abi_update): Ditto.
11914
11915 * command.h: (execute_cmd_post_hook): Declare.
11916 (execute_cmd_pre_hook): Declare.
11917 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11918 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11919 functions. Execute pre/post hook while ensuring that afterwords
11920 hook_in is cleared.
11921 * top.c (execute_command): Use execute_cmd_post_hook, and
11922 execute_cmd_pre_hook to execute pre/post commands.
11923 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11924 hook_stop_stub.
11925 (hook_stop_stub): Call execute_cmd_pre_hook.
11926
11927 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11928
11929 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11930 set'' and this leads to a core dump. Move xstrdup of
11931 operating_system to after check that it is not NULL.
11932
11933 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11934
11935 * kod.c (kod_set_os): Remove unnecessary check that
11936 ``command->type'' is set_cmd.
11937
11938 * valprint.c (set_input_radix): Use input_radix.
11939 (set_output_radix): Use output_radix.
11940 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11941 isn't reverted.
11942
11943 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11944
11945 * value.h (struct value): Delete field ``substring_addr''. Change
11946 aligner fields to force_doublest_align, force_longest_align,
11947 force_core_addr_align and force_pointer_aligh.
11948
11949 * value.h (struct value): Fix typo in above change.
11950
11951 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11952
11953 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11954 to fix internal_error from ``maintenance print architecture''.
11955
11956 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11957
11958 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11959 for gcc versions after gcc-2.8.1.
11960
11961 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11962
11963 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11964 for method resolution. Restore adjustment of ``this'' pointer after
11965 calling value_struct_elt, which was accidentally removed during the
11966 HP merge.
11967
11968 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11969
11970 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11971 value_of_register.
11972 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11973 get_saved_register.
11974 * value.h (value_of_register): Update.
11975
11976 2002-03-14 Richard Henderson <rth@redhat.com>
11977
11978 * configure.in: Detect declaration for canonicalize_file_name.
11979 * utils.c (canonicalize_file_name): Declare, if needed.
11980 (gdb_realpath): Prefer realpath if available and usable.
11981 * config.in, configure: Rebuild.
11982
11983 2002-03-14 Richard Henderson <rth@redhat.com>
11984
11985 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11986 a constant array bound.
11987
11988 * MAINTAINERS: Add myself to write-after-approval.
11989
11990 2002-03-14 Michael Snyder <msnyder@redhat.com>
11991
11992 * symfile.c (syms_from_objfile): Return immediately if no syms.
11993 (symbol_file_add): Return immediately if no syms.
11994 (find_sym_fns): Return immediately if no syms.
11995
11996 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11997
11998 * gdbserver/remote-util.c (remote_open): Print remote-side's
11999 IP address when remote debugging over the network.
12000
12001 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12002
12003 * config/sparc/fbsd.mh: Fix copyright.
12004 * config/sparc/fbsd.mt: Likewise.
12005
12006 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12007
12008 * MAINTAINERS: Fix typo in name of gdb warnings option.
12009 (x86-64): Fix formating so that this can be parsed by awk.
12010
12011 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12012
12013 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12014 * defs.h: Include "gdb/signals.h".
12015 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12016
12017 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12018
12019 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12020 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12021 from x86-64-tdep.h
12022
12023 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12024 Don Howard <dhoward@redhat.com>
12025
12026 * mips-tdep.c (ST0_FR): Define.
12027 (mips2_fp_compat): New function, temporarily disabled.
12028 (mips_read_fp_register_single): New function.
12029 (mips_read_fp_register_double): New function.
12030 (mips_print_register): Use them.
12031 (do_fp_register_row): Likewise.
12032
12033 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12034
12035 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12036 approval''.
12037
12038 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12039
12040 * stabsread.c (read_member_functions): Fix is_stub test for
12041 static member functions, improve comment.
12042
12043 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12044
12045 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12046 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12047 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12048 commands that set boolean values.
12049 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12050 (arm_rdi_resume): Always initialize PC.
12051 (arm_rdi_open): Don't use rslt as a boolean.
12052 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12053 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12054 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12055 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12056
12057 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12058
12059 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12060 * configure: Rebuilt.
12061
12062 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12063
12064 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12065 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12066
12067 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12068
12069 * cli/cli-decode.c (set_cmd_completer): New function.
12070 * command.h (set_cmd_completer): Declare.
12071 * cli/cli-decode.h (set_cmd_completer): Ditto.
12072
12073 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12074 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12075 * win32-nat.c (_initialize_inftarg): Ditto.
12076 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12077 * proc-api.c (_initialize_proc_api): Ditto.
12078 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12079 * source.c (_initialize_source): Ditto.
12080 * exec.c (_initialize_exec): Ditto.
12081 * solib.c (_initialize_solib): Ditto.
12082 * top.c (init_main): Ditto.
12083 * tracepoint.c (_initialize_tracepoint): Ditto.
12084 * symfile.c (_initialize_symfile): Ditto.
12085 * printcmd.c (_initialize_printcmd): Ditto.
12086 * infcmd.c (_initialize_infcmd): Ditto.
12087 * corefile.c (_initialize_core): Ditto.
12088
12089 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12090
12091 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12092
12093 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12094
12095 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12096
12097 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12098
12099 * NEWS: Update headings, 5.2 has branched.
12100
12101 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12102
12103 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12104 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12105 (register_addr, REGISTER_RAW_SIZE): Likewise.
12106 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12107 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12108
12109 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12110
12111 * MAINTAINERS (x86-64): Add myself.
12112 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12113 changed value_ptr -> struct value *
12114
12115 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12116
12117 * configure.host (sparc64-*-freebsd): Add.
12118 * configure.tgt: Likewise.
12119 * config/sparc/fbsd.mh: New file.
12120 * config/sparc/fbsd.mt: Likewise.
12121 * config/sparc/nm-fbsd.h: Likewise.
12122 * config/sparc/tm-fbsd.h: Likewise.
12123
12124 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12127 regformats/reg-s390x.dat.
12128
12129 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12130
12131 * utils.c: Add FIXME explaining true/false problem.
12132
12133 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12134
12135 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12136
12137 2002-02-28 Michael Chastain <mec@shout.net>
12138
12139 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12140
12141 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * gdbserver/linux-s390-low.c: New file.
12144 * regformats/reg-s390.dat: New file.
12145 * regformats/reg-s390x.dat: New file.
12146 * gdbserver/configure.srv: Add S/390.
12147 * gdbserver/Makefile.in: Add S/390.
12148 * configure.tgt: Enable gdbserver for S/390.
12149
12150 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12151
12152 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12153 first line of the doc string for "info dos", except at the end of
12154 the sentence, since the short help stops at the first period.
12155
12156 2002-02-28 Jason Merrill <jason@redhat.com>
12157
12158 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12159
12160 2002-02-27 Fred Fish <fnf@redhat.com>
12161
12162 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12163 comment (dumy -> dummy).
12164
12165 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12166
12167 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12168
12169 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12170
12171 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12172
12173 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * gdbserver/acconfig.h: New file.
12176 * gdbserver/i387-fp.c: New file.
12177 * gdbserver/i387-fp.h: New file.
12178 * gdbserver/linux-x86-64.c: New file.
12179 * regformats/reg-x86-64.dat: New file.
12180 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12181 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12182 * gdbserver/configure.in: Add support for regsets.
12183 * gdbserver/config.in: Regenerate.
12184 * gdbserver/configure: Regenerate.
12185 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12186 * gdbserver/linux-low.h: New file.
12187 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12188 for regsets.
12189 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12190 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12191 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12192 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12193 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12194 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12195 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12196 "i387-fp.h". Add PTRACE_GETREGS and friends.
12197 * gdbserver/regcache.c (supply_register): New function.
12198 (supply_register_by_name): New function.
12199 (collect_register): New function.
12200 (collect_register_by_name): New function.
12201
12202 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12203
12204 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12205 (config.status): Add configure.srv dependency.
12206 (server_h): Add config.h dependency.
12207
12208 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12209
12210 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12211 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12212 * gdbserver/configure.srv: Change i386-*-linux* to use
12213 reg-i386-linux.o.
12214
12215 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12216
12217 * x86-64-tdep.c: Re-indent. Update copyright date.
12218
12219 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12220
12221 From Michal Ludvig <mludvig@suse.cz>:
12222 * x86-64-tdep.c (value.h): Delete.
12223 (gdb_assert.h): Include.
12224 (x86_64_register_convert_to_virtual,
12225 x86_64_register_convert_to_raw ): Add check which lets only
12226 floating-point values to be converted.
12227 (value_push): Delete.
12228 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12229 (i386_gdbarch_init): Number of register_bytes fixed.
12230
12231 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12232
12233 * MAINTAINERS: Add x86-64 target.
12234
12235 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12236
12237 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12238 * osfsolib.c (solib_map_sections): Ditto.
12239 * irix5-nat.c (solib_map_sections): Ditto.
12240 * corelow.c (gdb_check_format): Ditto.
12241 * symfile.c (symfile_bfd_open): Ditto.
12242 * solib.c (solib_map_sections): Ditto.
12243 Fix PR gdb/354.
12244
12245 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12246
12247 * remote.c (_initialize_remote): By default, disable ``e'' and
12248 ``E'' step out-of-range packets.
12249
12250 2002-02-26 Andreas Schwab <schwab@suse.de>
12251
12252 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12253 m68k_linux_frame_saved_pc.
12254 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12255 in_sigtramp.
12256 (SIGCONTEXT_PC_OFFSET): Remove.
12257 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12258 m68k_linux_sigtramp_saved_pc): New functions.
12259 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12260 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12261 (UCONTEXT_PC_OFFSET): Define.
12262 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12263 non-RT and RT signal trampolines.
12264
12265 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12266
12267 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12268 (TARGET_NBPG, STACK_END_ADDR): Delete
12269 (VARIABLES_INSIDE_BLOCK): Delete.
12270
12271 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12272
12273 * utils.c (perror_with_name): Make string parameter constant.
12274 (print_sys_errmsg): Ditto.
12275 (query): Ditto.
12276 * defs.h (perror_with_name): Update.
12277 (print_sys_errmsg): Update.
12278 (query): Update.
12279
12280 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12281
12282 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12283 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12284
12285 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12286
12287 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12288 if it already matches the current architecture from the exec file.
12289 Include arch-utils.h for gdbarch_info_init prototype.
12290 * Makefile.in (rs6000-nat.o): Update dependencies.
12291
12292 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12293
12294 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12295 list of exported variables.
12296
12297 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12298
12299 * gdbserver/configure.srv: New file.
12300 * gdbserver/configure.in: Use configure.srv instead
12301 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12302 from it.
12303 * gdbserver/configure: Regenerated.
12304 * gdbserver/terminal.h: New file.
12305 * gdbserver/Makefile.in: Update for configure changes. Remove
12306 more unneeded include paths.
12307
12308 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12309
12310 From wiz at danbala:
12311 * config/sparc/tm-sp64.h: Fix grammar and typos.
12312 Fix PR gdb/287.
12313
12314 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12315
12316 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12317 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12318 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12319 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12320 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12321 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12322 * s390-tdep.c: Ditto.
12323 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12324 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12325 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12326 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12327 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12328 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12329 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12330 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12331 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12332 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12333 Fix PR gdb/378.
12334
12335 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12336
12337 * lin-thread.c: Delete file.
12338 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12339 to gdb_proc_service.h.
12340 * configure: Re-generate.
12341
12342 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12343 * serial.c (serial_open): Delete check for "ocd".
12344 Fix PR gdb/349.
12345
12346 * Makefile.in (linux-thread.o): Delete target.
12347 * linux-thread.c: Delete file.
12348
12349 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12350 renamed SH files to be consistent.
12351
12352 * symtab.c (sort_search_symbols): Use xfree.
12353
12354 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12355
12356 * arm-linux-tdep.c (arm_linux_init_abi): Register
12357 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12358 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12359 definition with undef, since we don't want the sysvr4 definition.
12360 (SKIP_TRAMPOLINE_CODE): Likewise.
12361
12362 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12363
12364 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12365
12366 * configure.in: (AC_CHECK_FUNCS) Added test for
12367 canonicalize_file_name Regenerated.
12368 * config.in, configure: Regenerated.
12369 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12370 defined use canonicalize_file_name.
12371
12372 2002-02-23 Michael Chastain <mec@shout.net>
12373
12374 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12375
12376 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12377
12378 * README: Remove references to cygnus.com.
12379 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12380 dot com'' form. Remove references to cygnus.com and sourceware.
12381
12382 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12383
12384 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12385 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12386 1003.1-2001 no longer allows "head -1".
12387 * gdb/Makefile.in (version.c): Likewise.
12388 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12389 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12390 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12391
12392 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12393
12394 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12395 * command.h (cmd_cfunc_eq): Declare.
12396 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12397
12398 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12399 ``struct cmd_list_element *''.
12400 * cli/cli-cmds.c (is_complete_command): Update. Use
12401 cmd_cfunc_eq.
12402 * top.c (execute_command): Pass the command to
12403 is_complete_command.
12404 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12405
12406 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12407
12408 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12409 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12410 architecture defines.
12411 * s390-tdep.c (s390_gdbarch_init): Likewise.
12412
12413 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12414
12415 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12416 (arm_linux_push_arguments): Likewise.
12417 (arm_linux_init_abi): Register them. Also register linux-specific
12418 call_dummy_words.
12419 (find_minsym_and_objfile): Use strcmp, not STREQ.
12420 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12421 (arm_linux_call_dummy_words): Delete declaration.
12422 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12423 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12424 declarations.
12425 (LOWEST_PC): Delete.
12426
12427 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12428
12429 * maint.c (print_section_info): Do not prepend `0x' to filepos
12430 output, it will be handled by local_hex_string_custom.
12431
12432 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12433
12434 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12435 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12436 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12437
12438 2002-02-22 Jim Blandy <jimb@redhat.com>
12439
12440 Indicate that the bcache functions don't change the strings
12441 they're passed.
12442 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12443 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12444
12445 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12446
12447 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12448
12449 2002-02-21 Christopher Faylor <cgf@redhat.com>
12450
12451 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12452 find the complete path to a loaded DLL.
12453
12454 2002-02-21 Fred Fish <fnf@redhat.com>
12455
12456 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12457 that marks the end of the range of a function, enter a line number
12458 entry that has a line number of zero and a PC offset that matches
12459 the end of the function. This starts a range of PC's for which no
12460 line number information is known.
12461 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12462 PC's for which no line number info is found (line number is zero)
12463 then we didn't find any valid line information.
12464 * symtab.h: Document use of zero line number entry.
12465
12466 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12467
12468 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12469 (have_ptrace_getvrregs): Define for run time checks.
12470 (gdb_vrregset_t): New type for Altivec register handling.
12471 (fetch_register, store_register): Fetch/store altivec register
12472 when needed.
12473 (fetch_altivec_register, store_altivec_register): New functions.
12474 (supply_vrregset, fill_vrregset): New functions.
12475 (fetch_altivec_registers, store_altivec_registers): New functions.
12476 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12477 registers as well.
12478
12479 2002-02-21 Jiri Smid <smid@suse.cz>
12480
12481 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12482
12483 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12484
12485 * Makefile.in (armnbsd-nat.o): Update dependencies.
12486 * armnbsd-nat.c (supply_gregset): New function. Common code to
12487 supply the integer register set.
12488 (supply_fparegset): New function. Similar for FPA registers.
12489 (fetch_regs, fetch_fp_regs): Use them.
12490 (fetch_core_registers): Likewise.
12491 (fetch_elfcore_registers): New function.
12492 (arm_netbsd_elfcore_fns): New core-file type specification.
12493 (_initialize_arm_netbsd_nat): Register it.
12494
12495 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12496
12497 * armnbsd-nat.c: Include gdbcore.h.
12498 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12499 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12500 'void' to declaration, to shut up ARI.
12501 (fetch_core_registers): Make static. Rewrite using supply_register.
12502 (arm_netbsd_core_fns): New core-file type specification.
12503 (_initialize_arm_netbsd_nat): New function.
12504
12505 2002-02-21 Christopher Faylor <cgf@redhat.com>
12506
12507 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12508 value.
12509
12510 2002-02-20 Christopher Faylor <cgf@redhat.com>
12511
12512 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12513 fails.
12514
12515 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12516
12517 * jv-exp.y (parse_number): Change type of implicit longs
12518 to builtin_type_uint64.
12519
12520 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12521
12522 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12523 to be an integer instead of a `union wait'.
12524
12525 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * mips-linux-nat.c: Call the operating system GNU/Linux.
12528 * mips-linux-tdep.c: Likewise.
12529 * mips-tdep.c: Likewise.
12530
12531 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12532
12533 Fix PR gdb/265.
12534 * jv-exp.y (parse_number): Handle 64-bit integers.
12535
12536 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12537
12538 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12539 AC_STDC_HEADERS to AC_HEADER_STDC.
12540 * gdbserver/configure: Regenerated.
12541
12542 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12543
12544 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12545 is defined.
12546 * sparc-tdep.c (get_longjmp_target): Likewise.
12547
12548 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12549
12550 * News: Add news about ARM and Multi-arch. Mention the new target
12551 arm*-*-netbsd*.
12552
12553 2002-02-19 Jim Blandy <jimb@redhat.com>
12554
12555 * stabsread.c (error_type_complaint): Improve error message.
12556
12557 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12558
12559 * gdbserver/README: Update documentation.
12560 * gdbserver/configure.in: Update configury to match documentation.
12561 * gdbserver/Makefile.in: Likewise.
12562 * gdbserver/configure: Regenerated.
12563 * gdbserver/aclocal.m4: New file, generated by aclocal.
12564 * gdbserver/config.in: New file, generated by autoheader.
12565
12566 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12567
12568 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12569 armnbsd-nat.c.
12570
12571 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12572
12573 * arm-tdep.h (enum arm_float_model): New enum.
12574 (struct gdbarch_tdep): Add fp_model.
12575 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12576 up floating-point conversions until we know the floating-point model
12577 in use by the inferior. Don't complain about being unable to
12578 determine the ABI of the inferior when we don't have one.
12579 (arm_extract_return_value): Support different floating-point models.
12580 (arm_store_return_value): Likewise.
12581 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12582 ARM_FLOAT_SOFT.
12583 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12584
12585 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12586
12587 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12588 of ``current_gdbarch''.
12589
12590 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12591
12592 * armnbsd-nat.c : ANSIfy all function declarations.
12593 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12594 (fetch_inferior_registers): Re-implement in terms of above.
12595 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12596 (store_inferior_registers): Re-implement in terms of above.
12597
12598 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12599
12600 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12601 kernel.
12602 * arm-linux-tdep.c: Likewise.
12603 * config/arm/tm-linux.h: Likewise.
12604
12605 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12606
12607 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12608 * config/arm/nbsd.mt (TM_FILE): Delete.
12609 * config/arm/tm-nbsd.h: Delete.
12610
12611 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12612
12613 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12614 Initialize CALL_DUMMY_LENGTH.
12615
12616 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12617
12618 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12619 function.
12620 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12621 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12622 defines one thing and that is incorrect for this port.
12623 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12624
12625 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12626
12627 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12628
12629 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12630
12631 * win32-nat.c (display_selector): New function. Displays information
12632 about the information returned by GetThreadSelectorEntry API function.
12633 (display_selectors): New function. Displays the infomation of
12634 the selector given as argument, or of CS, DS ans FS selectors
12635 if no argument is given.
12636 ( _initialize_inftarg): Add "w32" as info prefix command.
12637 Add "info w32 selector" as command calling display_selectors.
12638
12639 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12640
12641 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12642 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12643 if not defined.
12644
12645 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12646
12647 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12648
12649 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12650
12651 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12652 (arm_fix_call_dummy): Call it.
12653 (arm_call_dummy_breakpoint_offset): Delete.
12654 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12655 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12656
12657 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12658
12659 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12660 Default to func_frame_chain_valid.
12661 * gdbarch.h, gdbarch.c: Re-generate.
12662 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12663
12664 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12665
12666 * ppc-linux-nat.c: Update copyright.
12667 (fetch_register, store_register): Add tid parameter, don't compute
12668 tid here.
12669 (fetch_ppc_registers, store_ppc_registers): Add tid
12670 parameter. Pass it along to callees.
12671 (fetch_inferior_registers, store_inferior_registers): Compute tid
12672 here, and pass it to calleed functions.
12673 (fill_gregset, supply_fpregset): Clean up formatting.
12674
12675 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12676
12677 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12678 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12679
12680 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12681
12682 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12683 * gdbarch.c gdbarch.h: Regenerate.
12684 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12685 function.
12686 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12687 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12688 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12689
12690 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12691 * arm-tdep.c (arm_get_longjmp_target): New function.
12692 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12693 this to a positive value register arm_get_longjmp_target as the
12694 longjmp handler.
12695 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12696 (arm_linux_init_abi): Set up longjmp description in tdep.
12697 * armnbsd-nat.c (get_longjmp_target): Delete.
12698 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12699 description in tdep.
12700 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12701 (get_longjmp_target): Delete declaration.
12702 (GET_LONGJMP_TARGET): Delete.
12703 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12704 (GET_LONGJMP_TARGET): Delete.
12705
12706 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12707
12708 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12709 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12710 of ``current_gdbarch''.
12711
12712 2002-02-17 Tom Tromey <tromey@redhat.com>
12713
12714 * cli/cli-cmds.c (compare_strings): New function.
12715 (complete_command): Only print each unique item once.
12716 * completer.h (complete_line): Declare.
12717 * completer.c (complete_line): New function.
12718 (line_completion_function): Use it.
12719
12720 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12721
12722 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12723 * gdbarch.h, gdbarch.c: Re-generate.
12724
12725 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12726
12727 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12728
12729 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12730
12731 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12732 * valops.c (value_arg_coerce): Don't take the address of a reference
12733 to convert an argument to a reference.
12734
12735 2002-02-15 Christopher Faylor <cgf@redhat.com>
12736
12737 * win32-nat.c (get_image_name): New function.
12738 (handle_load_dll): Use get_image_name function.
12739 (get_child_debug_event): Avoid registering debug events until possibly
12740 execed process is started.
12741 (child_create_inferior): Allow invocation via shell so that command
12742 line redirection, etc. works ok.
12743 (_initialize_inftarg): Add new command: "set shell" to control whether
12744 a shell is used to start a process.
12745
12746 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12749 instead of find_register_by_number.
12750 (cannot_store_register): Likewise.
12751
12752 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12753
12754 * dwarf2read.c: Replace fprintf (stderr, ...) by
12755 fprintf_unfiltered (gdb_stderr, ...).
12756
12757 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12758
12759 * gdbserver/gdbserver.1: Document --attach.
12760
12761 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12762
12763 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12764 descriptions.
12765 * arm-tdep.c (arm_default_arm_le_breakpoint)
12766 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12767 (arm_default_thumb_be_breakpoint): New. Initialize them from
12768 traditional breakpoint defines.
12769 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12770 (arm_gdbarch_init): Initialize new breakpoint variables.
12771 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12772 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12773 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12774 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12775 code out to ...
12776 (arm_netbsd_init_abi_common): ... here; new function.
12777 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12778 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12779 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12780 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12781
12782 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12783
12784 * arm-tdep.h (enum arm_abi): New enum.
12785 (struct gdbarch_tdep): New structure.
12786 (LOWEST_PC): Provide a default.
12787 (arm_gdbarch_register_os_abi): Declare new function.
12788 * arm-tdep.c (arm_abi_names): New array.
12789 (process_note_abi_tag_sections): New function.
12790 (get_elfosabi): New function.
12791 (arm_gdbarch_register_os_abi): New function.
12792 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12793 support for that ABI has been built in, then call the appropriate
12794 configuration routine. Use gdbarch_num_regs() to get the number
12795 of registers.
12796 (arm_dump_tdep): New function.
12797 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12798 place-holder functions.
12799 (_initialize_arm_tdep): Register them.
12800 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12801
12802 * armnbsd-tdep.c: New file.
12803 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12804 * config/arm/nbsd.mt (TDEPFILES): Add it.
12805 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12806
12807 * armnbsd-nat.c: Include regcache.h.
12808 * Makefile.in (armnbsd-nat.o): Update dependency list.
12809
12810 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12811
12812 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12813
12814 * gdbserver/Makefile.in: Fix typos in target rules.
12815
12816 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12817
12818 Fix part of PR gdb/267.
12819 * linespec.c (find_methods): Handle constructors specially for now.
12820
12821 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12822
12823 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12824 handling.
12825 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12826 standard_coerce_float_to_double().
12827
12828 2002-02-14 Christopher Faylor <cgf@redhat.com>
12829
12830 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12831 GDBINIT_FILENAME.
12832
12833 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12834
12835 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12836 find_variant_by_name, because it confuses the multiarch
12837 framework. Return NULL if there isn't an architecture with the
12838 user supplied name, instead of forcing a different one without
12839 recording the change with the multiarch machinery.
12840 (find_variant_by_name): Delete.
12841
12842 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12843
12844 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12845 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12846
12847 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12848
12849 * stack.c (print_frame_info_base): When calling
12850 print_frame_info_listing_hook, set current_source_symtab.
12851
12852 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12853
12854 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12855 and remove unused $(INCLUDE_DIR).
12856 Add regcache.c to OBS.
12857 Add generated register protocol files to clean target.
12858 Update dependencies for new objects, obsolete old target code.
12859
12860 * gdbserver/linux-low.c: Remove all platform-specific code to
12861 new files. Remove various dead code. Update to use regcache
12862 functionality.
12863 * gdbserver/remote-utils.c (fromhex): Add return statement
12864 to quiet warning.
12865 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12866 constant.
12867 (input_interrupt): Add integer parameter to match prototype
12868 of a signal handler.
12869 (outreg): Use register_data ().
12870 (prepare_resume_reply): Use gdbserver_expedite_regs.
12871 * gdbserver/server.c (main): Dynamically allocate own_buf because
12872 PBUFSIZ is no longer constant. Use registers_to_string () and
12873 registers_from_string ().
12874 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12875 for error (), fatal (), and warning (). Update definition of
12876 PBUFSIZ to use regcache functionality. Add include guard.
12877 * gdbserver/utils.c (fatal): Add missing ``const''.
12878 (warning): New function.
12879
12880 * regformats/regdat.sh: Include "regcache.h" in generated files.
12881 Provide init_registers () function.
12882 * regformats/regdef.h: Add prototype for set_register_cache ().
12883 Add include guard.
12884
12885 * gdbserver/linux-arm-low.c: New file.
12886 * gdbserver/linux-i386-low.c: New file.
12887 * gdbserver/linux-ia64-low.c: New file.
12888 * gdbserver/linux-m68k-low.c: New file.
12889 * gdbserver/linux-mips-low.c: New file.
12890 * gdbserver/linux-ppc-low.c: New file.
12891 * gdbserver/linux-sh-low.c: New file.
12892
12893 * gdbserver/regcache.c: New file.
12894 * gdbserver/regcache.h: New file.
12895
12896 * gdbserver/low-linux.c: Removed obsolete file.
12897
12898 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12899
12900 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12901 * config/i386/linux.mt: Likewise.
12902 * config/ia64/linux.mt: Likewise.
12903 * config/m68k/linux.mh: Likewise.
12904 * config/powerpc/linux.mh: Likewise.
12905 * config/mips/linux.mt: Likewise.
12906
12907 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12908
12909 * config/i386/i386lynx.mh: Mark gdbserver variables
12910 as (currently) obsolete for this target.
12911 * config/i386/nbsd.mt: Likewise.
12912 * config/i386/nbsdelf.mt: Likewise.
12913 * config/m32r/m32r.mt: Likewise.
12914 * config/m68k/m68klynx.mh: Likewise.
12915 * config/m68k/nbsd.mt: Likewise.
12916 * config/m68k/sun3os4.mh: Likewise.
12917 * config/mips/vr5000.mt: Likewise.
12918 * config/ns32k/nbsd.mt: Likewise.
12919 * config/pa/hppabsd.mh: Likewise.
12920 * config/pa/hppaosf.mh: Likewise.
12921 * config/powerpc/nbsd.mt: Likewise.
12922 * config/rs6000/rs6000lynx.mh: Likewise.
12923 * config/s390/s390.mt: Likewise.
12924 * config/s390/s390x.mt: Likewise.
12925 * config/sparc/sparclynx.mh: Likewise.
12926 * config/sparc/sun4os4.mh: Likewise.
12927 * config/i386/x86-64linux.mt: Likewise.
12928 * config/sparc/linux.mh: Likewise.
12929
12930 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12931
12932 * configure.tgt: Configure gdbserver only for known working
12933 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12934 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12935 SUBDIRS if it is configured. Update comment for ${nativefile}.
12936 * configure: Regenerated.
12937
12938 2002-02-13 Michael Snyder <msnyder@redhat.com>
12939
12940 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12941
12942 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12943 (default_gcore_mach): Just return 0, work around a problem in bfd.
12944 (default_gcore_target): OK to return NULL if exec_bfd is null.
12945 (make_mem_sec): Use a cast, avoid a warning.
12946
12947 * procfs.c (find_memory_regions_callback): Use a cast instead of
12948 calling host_pointer_to_address (which complains if
12949 sizeof (host pointer) != sizeof (target pointer)).
12950 (procfs_make_note_section): Avoid overflow in psargs string.
12951
12952 * procfs.c (procfs_make_note_section): Make the default
12953 implementation return an error.
12954
12955 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12956
12957 * procfs.c (procfs_make_note_section): Provide a default definition
12958 (for alpha-dec-osf4.0f). Fix typos.
12959
12960 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12961
12962 * linux-proc.c: Add include of regcache.h.
12963 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12964
12965 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12966
12967 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12968 * memattr.c (create_mem_region): Disallow useless empty region.
12969 Regions are half-open intervals, so allow [A..B) [B..C) as
12970 non-overlapping.
12971
12972 2002-02-13 Michael Chastain <mec@shout.net>
12973
12974 * defs.h: Kill CONST_PTR.
12975 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12976 * c-lang.c (c_builtin_types): Likewise.
12977 * ch-lang.c (ch_builtin_types): Likewise.
12978 * f-lang.c (f_builtin_types): Likewise.
12979 * language.c (unknown_builtin_types): Likewise.
12980 * m2-lang.c (m2_builtin_types): Likewise.
12981 * p-lang.c (pascal_builtin_types): Likewise.
12982 * scm-lang.c (c_builtin_types): Likewise.
12983
12984 2002-02-13 Keith Seitz <keiths@redhat.com>
12985
12986 * arm-tdep.h (arm_get_next_pc): Add declaration.
12987
12988 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12989
12990 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12991 with other related struct-returning functions.
12992 (arm_extract_struct_value_address): New function.
12993 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12994 initialize float_format, double_format and long_double_format as
12995 appropriate to the endianness of the target.
12996 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12997 (arm_use_struct_convention): Delete declaration.
12998 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12999
13000 2002-02-13 Keith Seitz <keiths@redhat.com>
13001
13002 * defs.h (core_addr_to_string_nz): New function.
13003
13004 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13005
13006 Apply missing bits of 2002-01-15 patch.
13007 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13008 (fill_fpregset): Use i387_fill_fsave.
13009
13010 2002-02-12 Keith Seitz <keiths@redhat.com>
13011
13012 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13013 (core_addr_to_string_nz): New function.
13014
13015 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13016
13017 * arm-linux-nat.c: Really include arm-tdep.h.
13018 * config/arm/tm-linux.h (struct type, struct value): Declare.
13019
13020 2002-02-11 Michael Snyder <msnyder@redhat.com>
13021
13022 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13023 (gcore section): Ifdef for Solaris and Unixware only.
13024 (procfs_do_thread_registers): Unixware needs one lwpstatus
13025 per thread (not one prstatus or pstatus).
13026 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13027 not over all gdb threads. For unixware, call elfcore_write_pstatus
13028 once before iterating over threads.
13029
13030 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13031
13032 * arm-tdep.h: New file.
13033 * arm-tdep.c: Include arm-tdep.h.
13034 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13035 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13036 (arm_print_float_info, arm_register_type, convert_to_extended)
13037 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13038 (arm_extract_return_value, arm_register_name): Make static.
13039 (arm_software_single_step): Similarly. Fix types in declaration.
13040 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13041 (arm_store_return_value, arm_store_struct_return): New functions.
13042 (arm_gdbarch_init): Register the above functions. Also register
13043 call_dummy_start_offset, sizeof_call_dummy_words,
13044 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13045 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13046 max_register_virtual_size, register_size. Set up
13047 prologue_cache.saved_regs here, rather than ...
13048 (_initialize_arm_tdep): ... here.
13049 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13050 declarations.
13051 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13052 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13053 (arm_print_float_info, arm_register_type, convert_to_extended)
13054 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13055 (arm_extract_return_value, arm_register_name): Delete declarations.
13056 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13057 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13058 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13059 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13060 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13061 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13062 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13063 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13064 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13065 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13066 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13067 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13068 interface.
13069 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13070 * remote-rdi.c remote-rdp.c: Likewise.
13071 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13072 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13073 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13074 definition.
13075
13076 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13077 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13078 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13079 from non-ARM_ prefixed definitions.
13080 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13081 all uses of above.
13082 * remote-rdi.c remote-rdp.c: Likewise.
13083 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13084
13085 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13086
13087 * arm-tdep.c (arm_frameless_function_invocation)
13088 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13089 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13090 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13091 (arm_pop_frame, arm_get_next_pc): Make static.
13092 (arm_gdbarch_init): Register above in gdbarch structure.
13093 (arm_read_fp): Renamed from arm_target_read_fp.
13094 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13095 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13096 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13097 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13098 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13099 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13100 (arm_pc_is_thumb_dummy): Delete declarations.
13101 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13102 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13103 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13104 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13105
13106 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13107
13108 * symtab.c (compare_search_syms): New function.
13109 (sort_search_symbols): New function.
13110 (search_symbols): Sort symbols after searching rather than
13111 before.
13112
13113 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13114
13115 * NEWS: Linux -> GNU/Linux.
13116
13117 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13118
13119 * gdbarch.sh: For for level one methods, disallow a definition
13120 when partially multi-arched. Add comments explaining rationale.
13121 * gdbarch.h: Re-generate.
13122
13123 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13124
13125 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13126 multi-arch partial.
13127
13128 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13129
13130 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13131 field. Use diff -u.
13132 * gdbarch.c: Re-generate.
13133
13134 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13135
13136 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13137 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13138 partial.
13139
13140 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13141
13142 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13143 multi-arch partial.
13144 (PUSH_ARGUMENTS): Switch to using predefault.
13145 * gdbarch.c: Regenerate.
13146
13147 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13148
13149 * valops.c (PUSH_ARGUMENTS): Delete definition.
13150 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13151 partial. Default to default_push_arguments.
13152 * gdbarch.h, gdbarch.c: Regenerate.
13153
13154 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13155
13156 * defs.h (throw_exception): Rename return_to_top_level. Update
13157 comments.
13158 * utils.c (error_stream, internal_verror, quit): Ditto.
13159 * top.c (throw_exception, catcher): Ditto.
13160 * sparclet-rom.c (sparclet_load): Ditto.
13161 * remote.c (interrupt_query, minitelnet): Ditto.
13162 * remote-sds.c (interrupt_query): Ditto.
13163 * remote-mips.c (mips_error, mips_kill): Ditto.
13164 * ocd.c (interrupt_query): Ditto.
13165 * monitor.c (monitor_interrupt_query): Ditto.
13166 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13167 * target.h: Update comment.
13168
13169 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13170
13171 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13172
13173 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13174 default_double_format.
13175 * gdbarch.h, gdbarch.c: Re-generate.
13176 * findvar.c (floatformat_unknown): Delete variable definition.
13177 * doublest.h (floatformat_unknown): Delete variable declaration.
13178
13179 2002-02-09 Jim Blandy <jimb@redhat.com>
13180
13181 * stabsread.c (read_type): Add code to parse Sun's syntax for
13182 prototyped function types.
13183
13184 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13185
13186 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13187 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13188
13189 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13190
13191 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13192 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13193 now _initialize_xcoffsolib gets called again and overrides the
13194 commands from solib.c in a native configuration.
13195
13196 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13197
13198 * doublest.c (store_typed_floating): Don't try to return a value.
13199 Fixes PR gdb/290.
13200
13201 2002-02-08 Jim Blandy <jimb@redhat.com>
13202
13203 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13204 is prototyped and has no arguments, print its argument list as
13205 `(void)'.
13206
13207 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13208
13209 * MAINTAINERS (write-after-approval): Add myself.
13210 (paper-trail): I've escaped!
13211
13212 2002-02-08 Christopher Faylor <cgf@redhat.com>
13213
13214 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13215 changes.
13216 (_initialize_check_for_gdb_ini): Ditto.
13217
13218 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13219
13220 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13221 xaprintf -> xasprintf.
13222
13223 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13224
13225 * win32-nat.c: Remove use of printf and sprintf functions.
13226
13227 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13228
13229 * arm-tdep.c (arm_frame_chain_valid): Make static.
13230 (arm_push_arguments): Likewise.
13231 (arm_gdbarch_init): New function.
13232 (_initialize_arm_tdep): Call it.
13233 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13234 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13235 (FRAME_CHAIN_VALID): Delete.
13236 (arm_frame_chain_valid): Delete declaration.
13237 (PUSH_ARGUMENTS): Delete.
13238 (arm_push_arguments): Delete declaration.
13239 (CALL_DUMMY_P): Delete.
13240
13241 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13242 Corinna Vinschen <vinschen@redhat.com>
13243
13244 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13245 on builtin float types.
13246
13247 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13248
13249 * utils.c: Include <curses.h> before "bfd.h".
13250 * tui/tui-hooks.c: Likewise.
13251 * tui/tui.c: Likewise.
13252 * tui/tuiCommand.c: Likewise.
13253 * tui/tuiData.c: Likewise.
13254 * tui/tuiDataWin.c: Likewise.
13255 * tui/tuiDisassem.c: Likewise.
13256 * tui/tuiGeneralWin.c: Likewise.
13257 * tui/tuiIO.c: Likewise.
13258 * tui/tuiLayout.c: Likewise.
13259 * tui/tuiRegs.c: Likewise.
13260 * tui/tuiSource.c: Likewise.
13261 * tui/tuiSourceWin.c: Likewise.
13262 * tui/tuiStack.c: Likewise.
13263 * tui/tuiWin.c: Likewise.
13264
13265 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13266
13267 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13268 to include space for pseudoregs as well. Update loops accordingly.
13269 (sh_fp_frame_init_saved_regs): Ditto.
13270 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13271
13272 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13273
13274 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13275 Add Richard Earnshaw to Arm maintainers.
13276
13277 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13278
13279 * defs.h (warning_begin): Delete declaration.
13280
13281 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13282 Delete macro.
13283
13284 2002-02-07 Michael Snyder <msnyder@redhat.com>
13285
13286 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13287 Logic bug, remove misplaced else.
13288
13289 2002-02-07 Klee Dienes <klee@apple.com>
13290
13291 * fork-inferior.c (fork_inferior): Add '!' to the list of
13292 characters that need to be quoted when building a string for the
13293 shell. Quote '!' specifically with a backslash, since CSH chokes
13294 when trying to evaluate "str!str".
13295
13296 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13297
13298 * rdi-share/host.h: Only provide a typedef for bool if it is not
13299 defined.
13300
13301 2002-02-04 Michael Snyder <msnyder@redhat.com>
13302
13303 * breakpoint.h (enum bptype): Add new overlay event bp type.
13304 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13305
13306 * breakpoint.c (create_internal_breakpoint): New function.
13307 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13308 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13309 (create_thread_event_breakpoint): Ditto.
13310 (create_solib_event_breakpoint): Ditto.
13311 (create_overlay_event_breakpoint): New function.
13312 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13313 (update_breakpoints_after_exec): Delete and re-initialize
13314 overlay event breakpoints after an exec. Add FIXME comment
13315 about longjmp breakpoint.
13316 (print_it_typical): Ignore overlay event breakpoints.
13317 (print_one_breakpoint): Ditto.
13318 (mention): Ditto.
13319 (bpstat_what): Do not stop for overlay event breakpoints.
13320 (delete_breakpoint): Don't delete overlay event breakpoints.
13321 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13322 (breakpoint_re_set): Re-create overlay event breakpoint.
13323
13324 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13325 (overlay_manual_command): Disable overlay breakpoints.
13326 (overlay_off_command): Disable overlay breakpoints.
13327
13328 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13329
13330 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13331 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13332 to here from config/tm-arm.h.
13333 (coff_sym_is_thumb): Make static.
13334 (arm_elf_make_msymbol_special): New function.
13335 (arm_coff_make_msymbol_special): New function.
13336 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13337 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13338 (coff_sym_is_thumb): Delete declaration.
13339 (arm_elf_make_msymbol_special): Declare.
13340 (arm_coff_make_msymbol_special): Declare.
13341 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13342 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13343
13344 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13345
13346 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13347
13348 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13349
13350 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13351 * gdbarch.c gdbarch.h: Regenerate.
13352 * arch-utils.c (default_print_float_info): New function.
13353 * arch-utils.h (default_print_float_info): Prototype it.
13354 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13355 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13356 (PRINT_FLOAT_INFO): Document it.
13357
13358 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13359 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13360 (PRINT_FLOAT_INFO): Define.
13361
13362 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13363
13364 * win32-nat.c (_initialize_check_for_gdb_ini):
13365 Add typecast to sprintf argument to suppress a warning.
13366
13367 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13368
13369 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13370 to allow easier handling of pass state.
13371 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13372 that gives exception name and address.
13373 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13374 and set last_sig value to ourstatus->value.sig. Some missing
13375 exceptions added.
13376 (child_continue): Correctly report continue_status.
13377 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13378 TARGET_SIGNAL_0 (new default value).
13379 (child_resume): consider sig argument passed to decide if
13380 the exception should be passed to debuggee or not.
13381
13382 2002-02-05 Michael Snyder <msnyder@redhat.com>
13383
13384 * regcache.c (fetch_register): Call target_fetch_register
13385 only if we don't call FETCH_PSEUDO_REGISTER.
13386 (store_register): Call target_store_register only if we
13387 don't call STORE_PSEUDO_REGISTER.
13388
13389 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13390
13391 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13392 ELF_MAKE_MSYMBOL_SPECIAL.
13393 * gdbarch.c, gdbarch.h: Regenerate.
13394 * arch-utils.c (default_make_msymbol_special): New function.
13395 * arch-utils.h (default_make_msymbol_special): Export.
13396 * elfread.c (elf_symtab_read): Compile use of
13397 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13398 multiarched.
13399 * coffread.c (coff_symtab_read): Ditto, for
13400 COFF_MAKE_MSYMBOL_SPECIAL.
13401
13402 2002-02-05 Jim Blandy <jimb@redhat.com>
13403
13404 * solib-svr4.c (svr4_truncate_ptr): New function.
13405 (svr4_relocate_section_addresses): Do the address arithmetic with
13406 the appropriate truncation for target addresses, even when
13407 CORE_ADDR is larger than a target address.
13408
13409 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13410
13411 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13412 to (int *).
13413
13414 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13415
13416 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13417 code.
13418
13419 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13420
13421 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13422
13423 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13424
13425 * gdbserver/linux-low.c: Remove unused include files.
13426
13427 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13428
13429 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13430 (read_inferior_memory): Use it.
13431 (write_inferior_memory): Likewise.
13432
13433 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13434
13435 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13436 grubbing through sys_errlist.
13437
13438 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13439
13440 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13441
13442 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13443 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13444
13445 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13446
13447 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13448 (do_sfunc, set_cmd_sfunc): New functions.
13449
13450 * command.h (struct cmd_list_element): Add field func.
13451 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13452 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13453 * cli/cli-decode.h: Ditto.
13454
13455 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13456 (help_all, help_cmd_list): Ditto.
13457 (find_cmd, complete_on_cmdlist): Ditto.
13458 * top.c (execute_command): Ditto.
13459
13460 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13461 function.sfunc.
13462
13463 * infcmd.c (notice_args_read): Fix function signature.
13464
13465 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13466 * cli/cli-decode.c (add_set_cmd): Ditto.
13467 * utils.c (initialize_utils): Ditto.
13468 * maint.c (_initialize_maint_cmds): Ditto.
13469 * infrun.c (_initialize_infrun): Ditto.
13470 * demangle.c (_initialize_demangler): Ditto.
13471 * remote.c (add_packet_config_cmd): Ditto.
13472 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13473 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13474 * proc-api.c (_initialize_proc_api): Ditto.
13475 * kod.c (_initialize_kod): Ditto.
13476 * valprint.c (_initialize_valprint): Ditto.
13477 * top.c (init_main): Ditto.
13478 * infcmd.c (_initialize_infcmd): Ditto.
13479 * corefile.c (_initialize_core): Ditto.
13480 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13481 * arch-utils.c (initialize_current_architecture): Ditto.
13482 (_initialize_gdbarch_utils): Ditto.
13483 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13484
13485 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13486 * wince.c (_initialize_inftarg): Ditto.
13487 * symfile.c (_initialize_symfile): Ditto.
13488 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13489 * language.c (_initialize_language): Ditto.
13490 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13491
13492 2002-02-04 Michael Snyder <msnyder@redhat.com>
13493
13494 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13495
13496 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13497
13498 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13499 Add rules for building the register data files.
13500
13501 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13502
13503 * regformats/regdat.sh: Add braces to the definition of
13504 expedite_regs_${arch}.
13505
13506 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13507
13508 * regformats/regdef.h (struct reg): Add comment describing the
13509 requirements for offset and size fields.
13510
13511 2002-02-04 Andreas Schwab <schwab@suse.de>
13512
13513 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13514 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13515
13516 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13517
13518 * gdbarch.sh (copyright): Update years in generated header.
13519 (SMASH_TEXT_ADDRESS): Add rule.
13520 * gdbarch.h, gdbarch.c: Re-generate.
13521 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13522 * dbxread.c: Likewise.
13523 * dwarfread.c: Likewise.
13524 * elfread.c: Likewise.
13525 * somread.c: Likewise.
13526
13527 * arm-tdep.c (arm_smash_text_address): New function.
13528 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13529
13530 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13531
13532 Add support for hardware watchpoints on win32 native.
13533 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13534 CONTEXT_DEBUG_REGISTERS.
13535 (dr variable): New variable. Static array containing a local copy
13536 of debug registers.
13537 (debug_registers_changed): New variable. Reflects when debug registers
13538 are changed and need to be written to inferior.
13539 (debug_registers_used): New variable. Reflects when any debug register
13540 was set, used when new threads are created.
13541 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13542 i386-nat code.
13543 (thread_rec): Set dr array if id is the thread of current_event .
13544 (child_continue, child_resume): Change the debug registers for all
13545 threads if debug_registers_changed.
13546 (child_add_thread): Change the debug registers if debug_registers_used.
13547 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13548 Link nm.h to new nm-cygwin.h file.
13549 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13550 of hardware registers.
13551
13552 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13553
13554 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13555 Restore behavour broken by 2002-01-20 Andrew Cagney
13556 <ac131313@redhat.com> IEEE_FLOAT removal.
13557
13558 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13559
13560 * c-valprint.c (c_val_print): Pass a proper valaddr to
13561 cp_print_class_method.
13562 * valops.c (search_struct_method): If there is only one method
13563 and args is NULL, return that method.
13564
13565 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13566
13567 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13568 accessing tag_name directly.
13569
13570 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13571
13572 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13573 of accessing tag_name directly.
13574
13575 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13576
13577 PR gdb/280
13578 * gdbtypes.c (replace_type): New function.
13579 * gdbtypes.h (replace_type): Add prototype.
13580 * stabsread.c (read_type): Use replace_type.
13581
13582 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13583
13584 * Makefile.in (memattr.o): Add missing dependencies rule.
13585
13586 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13587
13588 * breakpoint.c (break_at_finish_command): Really export.
13589 (break_at_finish_at_depth_command): Ditto.
13590 (tbreak_at_finish_command): Ditto.
13591 * hppa-tdep.c: Include completer.h.
13592 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13593 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13594
13595 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13596
13597 * utils.c (do_write): New function.
13598 (error_stream): Rewrite combining the code from error_begin and
13599 verror.
13600 (verror): Rewrite using error_stream.
13601 (error_begin): Delete function.
13602
13603 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13604
13605 * utils.c (error_begin): Make static.
13606 * defs.h (error_begin): Delete declaration.
13607
13608 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13609 (decode_line_1): Use cplusplus_error instead of error_begin,
13610 cplusplus_hint and return_to_top_level.
13611 * coffread.c (coff_symfile_read): Use error instead of error_begin
13612 and return_to_top_level.
13613 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13614
13615 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13616
13617 * language.h (type_error, range_error): Make string parameter
13618 constant.
13619 * language.c (warning_pre_print): Delete extern declaration.
13620 * dwarfread.c (warning_pre_print): Ditto.
13621 * language.c (type_error, range_error): Rewrite to use verror and
13622 vwarning instead of warning_begin.
13623
13624 2002-02-01 Michael Snyder <msnyder@redhat.com>
13625
13626 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13627 (set_ignore_count): Move misplaced comment back where it belongs.
13628
13629 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13630
13631 * command.h (NO_FUNCTION): Delete macro.
13632 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13633 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13634 * tracepoint.c (_initialize_tracepoint): Ditto.
13635 * cli/cli-decode.c (add_set_cmd): Ditto.
13636 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13637
13638 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13639
13640 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13641 Update ``this'' pointer when calling virtual functions.
13642
13643 2002-02-01 Michael Snyder <msnyder@redhat.com>
13644
13645 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13646 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13647
13648 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13649
13650 * regformats/reg-arm.dat: New file.
13651 * regformats/reg-i386.dat: New file.
13652 * regformats/reg-ia64.dat: New file.
13653 * regformats/reg-m68k.dat: New file.
13654 * regformats/reg-mips.dat: New file.
13655 * regformats/reg-ppc.dat: New file.
13656 * regformats/reg-sh.dat: New file.
13657 * regformats/regdef.h: New file.
13658 * regformats/regdat.sh: New file.
13659
13660 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13661
13662 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13663 (arm_frame_args_address, arm_frame_locals_address): New functions.
13664 (arm_frame_num_args): New function.
13665 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13666 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13667 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13668
13669 2002-01-31 Michael Snyder <msnyder@redhat.com>
13670
13671 * breakpoint.c (break_at_finish_command): Export.
13672 (break_at_finish_at_depth_command): Export.
13673 (tbreak_at_finish_command): Export.
13674 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13675 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13676 "txbreak" commands, which are HPPA specific.
13677
13678 * printcmd.c (disassemble_command): Remove an ancient
13679 artifact of an old merge.
13680
13681 * symfile.h (enum overlay_debugging_state):
13682 Define enum constant values for overlay mode.
13683 * symfile.c (overlay_debugging): Use enums instead of literals.
13684 (overlay_is_mapped, overlay_auto_command,
13685 overlay_manual_command): Ditto.
13686
13687 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13688 breakpoint_here_p, breakpoint_inserted_here_p,
13689 breakpoint_thread_match, bpstat_stop_status,
13690 describe_other_breakpoints, check_duplicates, clear_command):
13691 Coding standard fixes.
13692
13693 * target.c (target_xfer_memory): Add spaces, coding standard.
13694 (do_xfer_memory): Add missing line to trust-readonly
13695 code: check bfd SEC_READONLY flag for section.
13696
13697 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13698
13699 * PROBLEMS: Fix typo, 5.1->5.1.1.
13700
13701 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13702
13703 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13704 data symbols, since we search based on textlow and texthigh.
13705 (find_pc_sect_symtab): Likewise.
13706
13707 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13708
13709 * defs.h (vwarning): Declare.
13710 * utils.c (vwarning): New function.
13711 (warning): Call vwarning.
13712 (warning_begin): Delete function.
13713
13714 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13715 the warning message.
13716 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13717 warning_begin.
13718
13719 2002-01-30 Michael Snyder <msnyder@redhat.com>
13720
13721 * NEWS: Mention "set trust-readonly-sections" command.
13722 Mention generate-core-file command.
13723
13724 2002-01-15 Michael Snyder <msnyder@redhat.com>
13725
13726 * target.c: New command, "set trust-readonly-sections on".
13727 (do_xfer_memory): Honor the suggestion to trust readonly sections
13728 by reading them from the object file instead of from the target.
13729 (initialize_targets): Register command "set trust-readonly-sections".
13730
13731 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13732
13733 * parse.c (target_map_name_to_register): Simplify, search regs and
13734 pseudo-regs using a single loop.
13735
13736 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13737
13738 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13739
13740 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13741
13742 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13743 * config/i386/i386v42mp.mh: Add i387-nat.o .
13744 * i386v4-nat.c: Include i387-nat.h.
13745 (supply_fpregset): Use i387_supply_fsave.
13746 (fill_fpregset): Use i387_fill_fsave.
13747
13748 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13749
13750 * arm-tdep.c (arm_call_dummy_words): Define.
13751 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13752 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13753 (CALL_DUMMY_WORDS): Define.
13754 (arm_call_dummy_words): Declare.
13755 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13756 (arm_linux_call_dummy_words): Declare.
13757
13758 2002-01-30 Andreas Schwab <schwab@suse.de>
13759
13760 * m68klinux-nat.c: Fix last change to use regcache_collect
13761 instead of referencing registers[] directly.
13762
13763 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13764
13765 * parse.c (target_map_name_to_register): Delete code wrapped in
13766 #ifdef REGISTER_NAME_ALIAS_HOOK.
13767
13768 2002-01-28 Michael Snyder <msnyder@redhat.com>
13769
13770 * regcache.c (legacy_read_register_gen): Need to be able to
13771 read pseudo-register as well as real register.
13772 (legacy_write_register_gen): Ditto.
13773
13774 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13775
13776 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13777 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13778 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13779 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13780 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13781 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13782 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13783 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13784 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13785 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13786 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13787 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13788 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13789 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13790 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13791 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13792 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13793 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13794 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13795 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13796
13797 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13798
13799 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13800 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13801 (initialize_current_architecture): Update target_byte_order using
13802 information from BFD.
13803 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13804 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13805
13806 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13807
13808 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13809 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13810
13811 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13812 #ifdef INVALID_FLOAT.
13813 * infcmd.c (do_registers_info): Ditto.
13814 * values.c (unpack_double): Ditto. Add comment.
13815
13816 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13817 already commented out.
13818
13819 2002-01-26 Andreas Schwab <schwab@suse.de>
13820
13821 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13822 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13823 registers and add support for PTRACE_GETREGS.
13824
13825 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13826
13827 GDB 5.1.1 released from 5.1 branch.
13828 * NEWS: Add 5.1.1 news.
13829 * README: Sync with 5.1 branch.
13830
13831 2002-01-23 Fred Fish <fnf@redhat.com>
13832
13833 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13834 stabstring on initial malloc. Reallocing will copy it for us,
13835 if necessary.
13836
13837 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13838
13839 * Makefile.in (hpread_h): Delete.
13840 (HFILES_NO_SRCDIR): Remove hpread.h.
13841 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13842 (hpread.o): Update dependencies.
13843 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13844
13845 * hp-psymtab-read.c: Remove file.
13846 * hp-symtab-read.c: Remove file.
13847 * hpread.h: Remove file.
13848
13849 * hpread.c: Merge all contents of hp-psymtab-read.c,
13850 hp-symtab-read.c and hpread.h into this file, as it was prior to
13851 January 1999.
13852
13853 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13854 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13855 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13856 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13857
13858 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13859
13860 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13861 fill_gregset): Call gdbarch_tdep() just once, assign result to
13862 variable and use that, instead of calling the function several
13863 times.
13864
13865 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13866
13867 * configure.host: Accept sparcv9 as alias for sparc64.
13868 * configure.tgt: Likewise.
13869
13870 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13871
13872 * solib-aix5.c (build_so_list_from_mapfile)
13873 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13874 arguments is not reversed.
13875 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13876 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13877
13878 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13879
13880 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13881 modified version of obsolete sh_fetch_pseudo_register.
13882 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13883 (sh4_register_read): New function.
13884 (sh_pseudo_register_write): New function. Renamed and modified
13885 version of obsolete sh_store_pseudo_register.
13886 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13887 (sh4_register_write): New function.
13888 (sh_gdbarch_init): Remove setting of gdbarch function
13889 fetch_pseudo_register and store_pseudo_register. Remove setting of
13890 register_convert_to_raw, register_convert_to_virtual,
13891 register_convertible.
13892 (sh_sh4_register_convertible): Delete. No longer needed. All is
13893 taken care by architecture specific functions
13894 register_read/register_write.
13895 (sh_sh4_register_convert_to_virtual): Make static.
13896 (sh_sh4_register_convert_to_raw): Ditto.
13897
13898 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13899
13900 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13901 (floatformat_is_nan, floatformat_mantissa): Ditto.
13902
13903 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13904 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13905 builtin_type_ieee_double_little,
13906 builtin_type_ieee_double_littlebyte_bigword,
13907 builtin_type_m68881_ext, builtin_type_i960_ext,
13908 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13909 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13910 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13911 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13912
13913 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13914
13915 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13916 parameter. Set frameless flag if it exists and depended of
13917 whether the scanned function is frameless or not.
13918 (xstormy16_skip_prologue): If function is frameless, return
13919 result of xstormy16_scan_prologue().
13920 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13921 call.
13922
13923 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13924
13925 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13926 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13927 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13928 sh_sh4_register_byte, sh_sh4_register_raw_size,
13929 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13930 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13931 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13932 sh_store_pseudo_register, sh_do_pseudo_register): Call
13933 gdbarch_tdep() just once, assign result to variable and use that,
13934 instead of calling the function several times.
13935
13936 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13937
13938 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13939 macros instead of LAST_FPU_CTRL_REGNUM.
13940 (store_register): Likewise.
13941
13942 2002-01-21 Jim Blandy <jimb@redhat.com>
13943
13944 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13945 is up-to-date before running the program, not just when a program
13946 exits.
13947
13948 2002-01-21 Fred Fish <fnf@redhat.com>
13949
13950 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13951 when we have found all instructions we are looking for.
13952
13953 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13954
13955 * arm-tdep.c (arm_register_name): New function.
13956 (arm_registers_names): Make static.
13957 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13958 (arm_register_name): Declare.
13959 (REGISTER_NAME): Use it.
13960
13961 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13962 Kevin Buettner <kevinb@redhat.com>
13963
13964 Convert arm targets to new FRAME interface.
13965 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13966 (arm_frame_find_save_regs): Delete.
13967 (arm_frame_init_saved_regs): New.
13968 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13969 Allocate extra_info as required. Convert all uses of fsr.regs
13970 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13971 to use extra_info.
13972 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13973 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13974 (check_prologue_cache, save_prologue_cache): Likewise.
13975 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13976 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13977 (FRAME_FIND_SAVED_REGS): Delete.
13978 (arm_frame_find_saved_regs): Delete prototype.
13979 (arm_frame_init_saved_regs): New prototype.
13980 (FRAME_INIT_SAVED_REGS): Define.
13981
13982 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13983
13984 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13985
13986 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13987
13988 From Jeff Law <law@redhat.com>:
13989 * infttrace.c: Include <sys/pstat.h>.
13990 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13991 exec file if the ttrace equivalent fails.
13992
13993 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13994
13995 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13996 (closeLogFile): Ditto.
13997
13998 2002-01-20 Michael Chastain <mec@shout.net>
13999
14000 * top.c (print_gdb_version): Bump copyright year to 2002.
14001
14002 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14003
14004 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14005 Zannoni and Eli Zaretskii.
14006
14007 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14008
14009 * buildsym.c: Update copyright years.
14010 * c-typeprint.c: Likewise.
14011 * dwarf2read.c: Likewise.
14012 * f-typeprint.c: Likewise.
14013 * gdbtypes.c: Likewise.
14014 * gdbtypes.h: Likewise.
14015 * hp-symtab-read.c: Likewise.
14016 * hpread.c: Likewise.
14017 * mdebugread.c: Likewise.
14018 * p-typeprint.c: Likewise.
14019
14020 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14021
14022 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14023 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14024 byte-order selectable.
14025 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14026 * arch-utils.c: Ditto.
14027 (set_endian): Ditto.
14028 (set_endian_from_file): Ditto.
14029 * gdbserver/low-sim.c (create_inferior): Ditto.
14030 * gdbarch.sh: Ditto.
14031 * gdbarch.h: Re-generate.
14032 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14033 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14034 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14035 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14036 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14037 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14038 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14039 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14040 macro definition.
14041 * config/mips/tm-wince.h: Remove #undef of macro
14042 TARGET_BYTE_ORDER_SELECTABLE.
14043 * config/sh/tm-wince.h: Ditto.
14044
14045 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14046
14047 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14048 member function fields. Add accessor macro
14049 TYPE_FN_FIELD_ARTIFICIAL.
14050 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14051 * c-typeprint.c (c_type_print_base): Skip artificial member
14052 functions.
14053
14054 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14055
14056 * f-typeprint.c: Delete unused function f_type_print_args.
14057 * p-typeprint.c: Delete unused function pascal_type_print_args.
14058
14059 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14060
14061 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14062 comment. Add ``artificial'' to ``union field_location''.
14063
14064 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14065
14066 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14067 * mdebugread.c (parse_symbol): Likewise.
14068 * stabsread.c (define_symbol): Likewise.
14069 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14070 initializing TYPE_FIELD_BITPOS to n (obsolete).
14071 (hpread_doc_function_type): Likewise.
14072 * hpread.c (hpread_function_type): Likewise.
14073
14074 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14075
14076 * configure.in (host_makefile_frag): Only require a host makefile
14077 fragment when a native build.
14078 * configure: Re-generate.
14079
14080 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14081
14082 * doublest.h (floatformat_from_type): Declare.
14083 * doublest.c (floatformat_from_type): New function.
14084 (convert_typed_floating): Use.
14085
14086 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14087 call to function floatformat_from_type.
14088
14089 * gdbarch.sh (IEEE_FLOAT): Delete.
14090 * gdbarch.h, gdbarch.c: Re-generate.
14091 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14092 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14093 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14094 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14095 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14096 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14097 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14098 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14099 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14100 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14101 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14102 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14103
14104 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14105 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14106 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14107 * sh-tdep.c (sh_gdbarch_init): Ditto.
14108 * mips-tdep.c (mips_gdbarch_init): Ditto.
14109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14110 * cris-tdep.c (cris_gdbarch_init): Ditto.
14111
14112 2002-01-20 Jiri Smid <smid@suse.cz>
14113
14114 * configure.host, configure.tgt: Support x86-64.
14115 * NEWS: Note new target x86-64.
14116
14117 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14118 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14119 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14120 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14121 x86-64-linux-nat.o): Fix dependencies.
14122
14123 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14124
14125 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14126 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14127 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14128 * config/sparc/xm-sun4os4.h: Delete file.
14129 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14130
14131 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14132
14133 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14134 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14135 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14136 * config/i386/i386lynx.mh (XM_FILE): Delete.
14137 * config/rs6000/xm-rs6000ly.h: Delete file.
14138 * config/sparc/xm-sparclynx.h: Delete file.
14139 * config/m68k/xm-m68klynx.h: Delete file.
14140 * config/i386/xm-i386lynx.h: Delete file.
14141 * config/xm-lynx.h: Delete file.
14142 * config/djgpp/fnchange.lst: Update.
14143
14144 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14145
14146 * alpha-tdep.c (alpha_register_byte): New function.
14147 (alpha_register_raw_size): Ditto.
14148 (alpha_register_virtual_size): Ditto.
14149 (alpha_skip_prologue_internal): Renamed from
14150 alpha_skip_prologue.
14151 (alpha_skip_prologue): New version that calls
14152 alpha_skip_prologue_internal.
14153 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14154 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14155 second argument from alpha_skip_prologue.
14156 (REGISTER_BYTE): Use alpha_register_byte.
14157 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14158 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14159 (FRAMELESS_FUNCTION_INVOCATION): Use
14160 generic_frameless_function_invocation_not.
14161 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14162 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14163
14164 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14165
14166 * config/mips/xm-news-mips.h: Delete file.
14167 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14168
14169 * config/m88k/xm-m88k.h: Delete file.
14170 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14171 * config/m88k/xm-delta88v4.h: Ditto.
14172 * config/m88k/xm-delta88.h: Ditto.
14173
14174 * config/alpha/xm-fbsd.h: Delete file.
14175 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14176
14177 * config/sparc/xm-sparc.h: Delete file.
14178 * Makefile.in (xm-sun4os4.h): Delete dependency.
14179 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14180 * config/sparc/xm-sun4os4.h: Ditto.
14181 * config/sparc/xm-linux.h: Ditto.
14182
14183 * config/i386/xm-windows.h: Delete file.
14184
14185 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14186
14187 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14188 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14189
14190 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14191
14192 * alpha-tdep.c (alpha_call_dummy_words): New.
14193 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14194 (CALL_DUMMY_P): Define.
14195 (CALL_DUMMY_WORDS): Define.
14196 (SIZEOF_CALL_DUMMY_WORDS): Define.
14197
14198 2002-01-19 Per Bothner <per@bothner.com>
14199
14200 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14201 isn't NULL, which can happen with some gcj-3.x-produced code.
14202
14203 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14204
14205 * alpha-tdep.c (alpha_register_virtual_type): New function.
14206 (alpha_init_frame_pc_first): Ditto.
14207 (alpha_fix_call_dummy): Ditto.
14208 (alpha_store_struct_return): Ditto.
14209 (alpha_extract_struct_value_address): Ditto.
14210 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14211 alpha_register_virtual_type.
14212 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14213 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14214 alpha_extract_struct_value_address.
14215 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14216 (INIT_FRAME_PC): Use init_frame_pc_noop.
14217 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14218
14219 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14220
14221 * i386gnu-nat.c: Include "i386-tdep.h".
14222 (fetch_fpregs): Simplify code dealing with uninitialized floating
14223 point states such that it doesn't require FP7_REGNUM.
14224
14225 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14226
14227 * alpha-tdep.c (frame_extra_info): New.
14228 (alpha_find_saved_regs): Make static. Use
14229 frame->extra_info.
14230 (alpha_frame_init_saved_regs): New function.
14231 (alpha_frame_saved_pc): Use frame->extra_info.
14232 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14233 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14234 (init_extra_frame_info): Rename to...
14235 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14236 (alpha_print_extra_frame_info): New function.
14237 (alpha_frame_locals_address): Ditto.
14238 (alpha_frame_args_address): Ditto.
14239 (alpha_pop_frame): Use frame->extra_info.
14240 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14241 alpha_frame_args_address.
14242 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14243 (alpha_find_saved_regs): Remove prototype.
14244 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14245 (EXTRA_FRAME_INFO): Remove.
14246 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14247 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14248
14249 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14250
14251 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14252 (alpha_cannot_fetch_register): Ditto.
14253 (alpha_cannot_store_register): Ditto.
14254 (alpha_register_convertible): Ditto.
14255 (alpha_use_struct_convention): Ditto.
14256 * config/alpha/tm-alpha.h: Update copyright years.
14257 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14258 (INNER_THAN): Use core_addr_lessthan.
14259 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14260 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14261 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14262 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14263 (FRAME_CHAIN): Remove unnecessary cast.
14264
14265 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14266
14267 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14268 obsolete.
14269
14270 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14271
14272 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14273 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14274 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14275 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14276 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14277 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14278 * x86-64-linux-nat.c: Ditto.
14279
14280 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14281
14282 * alpha-tdep.c (alpha_register_name): New function.
14283 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14284 (REGISTER_NAME): Define.
14285
14286 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14287
14288 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14289
14290 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14291
14292 * alpha-tdep.c: Update copyright years.
14293 (alpha_next_pc): New function.
14294 (alpha_software_single_step): Ditto.
14295 * config/alpha/tm-alpha.h: Add prototype for
14296 alpha_software_single_step.
14297
14298 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14299
14300 * alphabsd-nat.c: Update copyright years.
14301 (fill_gregset): Use regcache_collect.
14302 (fill_fpregset): Likewise.
14303 (fetch_inferior_registers): Only fetch integer registers
14304 if requested to do so.
14305 (store_inferior_registers): Only store integer registers
14306 if requested to do so.
14307
14308 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14309
14310 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14311 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14312 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14313 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14314 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14315 * config/arm/linux.mh (XDEPFILES): Delete.
14316 * config/arm/nbsd.mh (XDEPFILES): Delete.
14317 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14318 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14319 * config/i386/i386m3.mh (XDEPFILES): Delete.
14320 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14321 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14322 * config/i386/fbsd.mh (XDEPFILES): Delete.
14323 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14324 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14325 * config/i386/i386v4.mh (XDEPFILES): Delete.
14326 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14327 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14328 * config/i386/i386aix.mh (XDEPFILES): Delete.
14329 * config/i386/go32.mh (XDEPFILES): Delete.
14330 * config/i386/cygwin.mh (XDEPFILES): Delete.
14331 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14332 * config/i386/i386mach.mh (XDEPFILES): Delete.
14333 * config/i386/i386v32.mh (XDEPFILES): Delete.
14334 * config/i386/linux.mh (XDEPFILES): Delete.
14335 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14336 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14337 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14338 * config/i386/i386sco.mh (XDEPFILES): Delete.
14339 * config/i386/i386v.mh (XDEPFILES): Delete.
14340 * config/i386/nbsd.mh (XDEPFILES): Delete.
14341 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14342 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14343 * config/i386/symmetry.mh (XDEPFILES): Delete.
14344 * config/i386/obsd.mh (XDEPFILES): Delete.
14345 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14346 * config/ia64/linux.mh (XDEPFILES): Delete.
14347 * config/ia64/aix.mh (XDEPFILES): Delete.
14348 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14349 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14350 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14351 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14352 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14353 * config/m68k/linux.mh (XDEPFILES): Delete.
14354 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14355 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14356 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14357 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14358 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14359 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14360 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14361 * config/m88k/delta88.mh (XDEPFILES): Delete.
14362 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14363 * config/m88k/m88k.mh (XDEPFILES): Delete.
14364 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14365 * config/mips/linux.mh (XDEPFILES): Delete.
14366 * config/mips/irix6.mh (XDEPFILES): Delete.
14367 * config/mips/irix5.mh (XDEPFILES): Delete.
14368 * config/mips/irix4.mh (XDEPFILES): Delete.
14369 * config/mips/irix3.mh (XDEPFILES): Delete.
14370 * config/mips/decstation.mh (XDEPFILES): Delete.
14371 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14372 (NATDEPFILES): Move core-aout.o to here.
14373 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14374 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14375 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14376 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14377 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14378 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14379 * config/pa/hpux11.mh (XDEPFILES): Delete.
14380 * config/powerpc/aix.mh (XDEPFILES): Delete.
14381 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14382 * config/powerpc/linux.mh (XDEPFILES): Delete.
14383 * config/romp/rtbsd.mh: Rename XDEPFILES.
14384 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14385 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14386 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14387 * config/s390/s390.mh (XDEPFILES): Delete.
14388 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14389 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14390 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14391 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14392 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14393 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14394 * config/sparc/linux.mh (XDEPFILES): Delete.
14395 * config/vax/vaxult.mh (XDEPFILES): Delete.
14396 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14397 * Makefile.in (DEPFILES): Remove XDEPFILES.
14398
14399 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14400
14401 * utils.c (internal_verror): Fix comments, default is yes not no.
14402 Update queries to match. Default to quit and dump core.
14403
14404 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14405
14406 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14407 copyright.
14408 * defs.h, event-top.c, gdbcmd.h: Ditto.
14409 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14410 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14411 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14412 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14413 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14414 * mi/mi-main.c:Ditto.
14415
14416 * stack.c, symfile.c: Update copyright.
14417
14418 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14419
14420 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14421 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14422 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14423 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14424
14425 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14426
14427 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14428 * gdbserver/low-lynx.c (myattach): Likewise.
14429 * gdbserver/low-nbsd.c (myattach): Likewise.
14430 * gdbserver/low-sim.c (myattach): Likewise.
14431 * gdbserver/low-sparc.c (myattach): Likewise.
14432 * gdbserver/low-sun3.c (myattach): Likewise.
14433
14434 * gdbserver/low-linux.c (myattach): New function.
14435
14436 * gdbserver/server.c (attach_inferior): New function.
14437 (main): Handle "--attach".
14438
14439 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14440
14441 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14442 maintainer.
14443
14444 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14445
14446 * c-typeprint.c (is_type_conversion_operator): Add additional
14447 check for non-conversion operators.
14448
14449 2002-01-15 Michael Snyder <msnyder@redhat.com>
14450
14451 * linux-proc.c: Add "info proc" command, a la procfs.c.
14452 (read_mapping): New function, abstract and re-use code.
14453 (linux_find_memory_regions): Use new func read_mapping.
14454 (linux_info_proc_cmd): New function, implement "info proc".
14455 (_initialize_linux_proc): Add new command "info proc".
14456
14457 2002-01-15 Michael Snyder <msnyder@redhat.com>
14458
14459 * symfile.c (generic_load): Use bfd_map_over_sections method
14460 instead of manipulating bfd structure members directly.
14461 (add_section_size_callback): New function, bfd sections callback
14462 used by generic_load.
14463 (load_sections_callback): New function, bfd sections callback
14464 used by generic_load.
14465
14466 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14467
14468 [Based on work by Jim Blandy]
14469 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14470 (builtin_type_vec128): Export.
14471 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14472 types.
14473 (builtin_type_vec128): New builtin type for 128 bit vector
14474 registers.
14475 (build_gdbtypes): Initialize builtin_type_v16qi and
14476 builtin_type_v8hi. Create the vec128 register builtin type
14477 structure.
14478 (build_builtin_type_vec128): New function.
14479 (_initialize_gdbtypes): Register builtin_type_v16qi and
14480 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14481 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14482 AltiVec register to new builtin type.
14483
14484 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14485
14486 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14487 to make_cv_type.
14488
14489 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14490
14491 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14492 CLEAN_UP_REGISTER_VALUE.
14493 * regcache.c (supply_register): Update only call.
14494
14495 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14496
14497 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14498 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14499 a29k-*-vxworks* targets as obsolete.
14500
14501 2002-01-14 Michael Snyder <msnyder@redhat.com>
14502
14503 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14504 until we can resolve portability issues.
14505 * gregset.h: Remove references to fpxregs.
14506 * gcore.c (gcore_command): Initialize note_sec to NULL.
14507
14508 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14509
14510 * signals.c (target_signal_to_name): Rewrite. Only use
14511 signals[].name when in bounds and non-NULL.
14512
14513 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14514
14515 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14516 * signals.c (target_signal_to_name): Verify that SIG is within the
14517 bounds of the signals array.
14518
14519 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14520
14521 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14522
14523 2002-01-13 Keith Seitz <keiths@redhat.com>
14524
14525 * stack.c (print_frame_info_base): Print the frame's pc
14526 only if when print_frame_info_listing_hook is not defined.
14527
14528 2002-01-13 Keith Seitz <keiths@redhat.com>
14529
14530 * varobj.c (varobj_set_value): Make sure that there were no
14531 errors evaluating the object before attempting to set its
14532 value.
14533 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14534 so this offset adjustment is no longer necessary.
14535 (create_child): Don't set the error flag if the child is
14536 a CPLUS_FAKE_CHILD.
14537 (value_of_child): If value_fetch_lazy fails, return NULL
14538 so that callers will be notified that an error occurred.
14539 (c_value_of_variable): Delay check of variable's validity
14540 until later. We actually want all structs and unions to have
14541 the value "{...}".
14542 Do not return "???" for variables which could not be evaluated.
14543 This error condition must be returned to the caller so that it
14544 can get the error condition from gdb.
14545 (cplus_name_of_child): Adjust index for vptr before figuring
14546 out the name of the child.
14547 (cplus_value_of_child): If a child's (real) parent is not valid,
14548 don't even bother trying to give a value for it. Just return
14549 an error. Change all instances in this function.
14550 (cplus_type_of_child): If our parent is one of the "fake"
14551 parents, we need to get at the type of the real parent, and
14552 derive the child's true type using this information.
14553
14554 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14555
14556 From 2002-01-09 John Marshall <johnm@falch.net>:
14557 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14558 sources.redhat.com, and tweak some related URLs which had
14559 suffered from linkrot.
14560
14561 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14562
14563 From Jeff law:
14564 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14565 structures passed in registers.
14566
14567 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14568
14569 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14570 white space which prevented compilation. Reported by DSK
14571 <dsk@student.unsw.edu.au>.
14572
14573 2002-01-11 Michael Snyder <msnyder@redhat.com>
14574
14575 * symfile.c (build_section_addr_info_from_section_tab):
14576 Use bfd access method instead of manipulating bfd directly.
14577 (syms_from_objfile): Ditto.
14578 (simple_overlay_update_1): Ditto.
14579 (simple_overlay_update): Ditto.
14580 (generic_load): Ditto.
14581 (overlay_unmapped_address): FIXME comment, bfd access methods.
14582 (sections_overlap): FIXME comment, bfd access methods.
14583 (pc_in_mapped_range): FIXME comment, bfd access methods.
14584 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14585 (section_is_mapped): FIXME comment, bfd access methods.
14586 (section_is_overlay): FIXME comment, bfd access methods.
14587
14588 * symfile.c (generic_load): Whitespace and long line cleanups.
14589 Remove duplicate variable, change several local variables to
14590 more appropriate data types.
14591 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14592
14593 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14594
14595 From Peter Schauer:
14596 * language.c (longest_local_hex_string_custom): Use phex_nz to
14597 convert NUM to a hex string.
14598
14599 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14600
14601 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14602 the function.
14603 Update Copyright year.
14604
14605 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14606
14607 * language.c (longest_raw_hex_string): Delete unused function.
14608
14609 2002-01-11 Petr Sorfa <petrs@caldera.com>
14610
14611 * MAINTAINERS (write-after-approval): Add myself.
14612 * dwarf2read.c (read_tag_string_type): Handling of
14613 DW_AT_byte_size.
14614 (read_tag_string_type): FORTRAN fix to prevent propagation of
14615 first string size.
14616 (set_cu_language): Handling of DW_LANG_Fortran95
14617
14618 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14619
14620 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14621 GETPID(inferior_ptid).
14622 (store_inferior_registers): Likewise.
14623
14624 2002-01-10 Jason Merrill <jason@redhat.com>
14625
14626 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14627 Fix DW_OP_minus.
14628
14629 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14630
14631 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14632 and bfd/elf32-sh-nbsd.c.
14633
14634 2002-01-10 Michael Snyder <msnyder@redhat.com>
14635
14636 * NEWS: Mention --pid and corefile/proc-id behavior change.
14637
14638 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14639 * gcore.c: Include cli/cli-decode.h instead of command.h.
14640
14641 * main.c (captured_main): Add new command line option "--pid".
14642 If the second command line argument (following the symbol-file)
14643 begins with a digit, try to attach to it before trying to open
14644 it as a corefile.
14645 (print_gdb_help): Document the "--pid" argument.
14646
14647 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14648
14649 * completer.c (command_completer): New function.
14650
14651 * completer.h <command_completer>: Add prototype.
14652
14653 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14654 completer for the "help" command.
14655
14656 2002-01-09 Jason Merrill <jason@redhat.com>
14657
14658 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14659
14660 2002-01-09 Michael Snyder <msnyder@redhat.com>
14661
14662 * i386-linux-nat.c (fill_fpxregset): Make global.
14663 (store_fpxregset): Ditto.
14664
14665 * gregset.h (gdb_fpxregset_t): Define.
14666 (supply_fpxregset): Prototype.
14667 (fill_fpxregset): Prototype.
14668
14669 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14670
14671 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14672
14673 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14674 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14675 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14676
14677 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14678
14679 * MAINTAINERS: Update target maintainer rules so that any
14680 Maintainer can approve a tested patch for a maintenance-only
14681 target.
14682
14683 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14684
14685 * MAINTAINERS (write-after-approval): Add myself.
14686
14687 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14688 IN_SIGTRAMP.
14689
14690 2002-01-08 Michael Snyder <msnyder@redhat.com>
14691
14692 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14693 real name of the executable, rather than the /proc name.
14694
14695 2002-01-03 Michael Snyder <msnyder@redhat.com>
14696
14697 Implement a "generate-core-file" command in gdb, save target state.
14698 * gcore.c: New file. Implement new command 'generate-core-file'.
14699 Save a corefile image of the current state of the inferior.
14700 * linux-proc.c: Add linux-specific code for saving corefiles.
14701 * target.h (struct target_ops): Add new target vectors for saving
14702 corefiles; to_find_memory_regions and to_make_corefile_notes.
14703 (target_find_memory_regions): New macro.
14704 (target_make_corefile_notes): New macro.
14705 * target.c (update_current_target): Inherit new target methods.
14706 (dummy_find_memory_regions): New place-holder method.
14707 (dummy_make_corefile_notes): New place-holder method.
14708 (init_dummy_target): Initialize new dummy target vectors.
14709 * exec.c (exec_set_find_memory_regions): New function.
14710 Allow the exec_ops vector for memory regions to be taken over.
14711 (exec_make_note_section): New function, target vector method.
14712 * defs.h (exec_set_find_memory_regions): Export prototype.
14713 * procfs.c (proc_find_memory_regions): New function, corefile method.
14714 (procfs_make_note_section): New function, corefile method.
14715 (init_procfs_ops): Set new target vector pointers.
14716 (find_memory_regions_callback): New function.
14717 (procfs_do_thread_registers): New function.
14718 (procfs_corefile_thread_callback): New function.
14719 * sol-thread.c (sol_find_memory_regions): New function.
14720 (sol_make_note_section): New function.
14721 (init_sol_thread_ops): Initialize new target vectors.
14722 * inftarg.c (inftarg_set_find_memory_regions): New function.
14723 Allow to_find_memory_regions vector to be taken over.
14724 (inftarg_set_make_corefile_notes): New function.
14725 Allow to_make_corefile_notes vector to be taken over.
14726 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14727 interface layer if not target_has_execution (may be a corefile).
14728 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14729 * config/sparc/sun4sol2.mh: Ditto.
14730 * config/alpha/alpha-linux.mh: Ditto.
14731 * config/arm/linux.mh: Ditto.
14732 * config/i386/x86-64linux.mh: Ditto.
14733 * config/ia64/linux.mh: Ditto.
14734 * config/m68k/linux.mh: Ditto.
14735 * config/mips/linux.mh: Ditto.
14736 * config/powerpc/linux.mh: Ditto.
14737 * config/sparc/linux.mh: Ditto.
14738
14739 2002-01-07 Michael Snyder <msnyder@redhat.com>
14740
14741 * arm-linux-nat.c: Remove references to regcache.c internal data
14742 (registers[] and register_valid[]).
14743
14744 2002-01-07 Michael Snyder <msnyder@redhat.com>
14745
14746 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14747 so that attaching to a pid will automatically read the process's
14748 symbol file and shlibs.
14749 * Makefile.in: Add rule for linux-proc.o.
14750 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14751 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14752 * config/arm/linux.mh: Ditto.
14753 * config/i386/linux.mh: Ditto.
14754 * config/i386/x86-64linux.mh: Ditto.
14755 * config/ia64/linux.mh: Ditto.
14756 * config/m68k/linux.mh: Ditto.
14757 * config/mips/linux.mh: Ditto.
14758 * config/powerpc/linux.mh: Ditto.
14759 * config/sparc/linux.mh: Ditto.
14760
14761 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14762
14763 * win32-nat.c: Add i386-tdep.h dependency.
14764
14765 2002-01-07 Michael Snyder <msnyder@redhat.com>
14766
14767 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14768 instead of bfd_get_arch_size. Don't bail out just because
14769 there's no exec_bfd.
14770
14771 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14772 * p-valprint.c (pascal_object_print_value): Ditto.
14773 * somread.c (som_symtab_read): Ditto.
14774 * symfile.c (simple_free_overlay_region_table): Ditto.
14775 * valops.c (value_assign): Ditto.
14776
14777 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14778 use tilde_expand and strerror for opening save-tracepoints file.
14779
14780 * thread-db.c (thread_db_new_objfile): Indendation fix.
14781
14782 * infptrace.c (GDB_MAX_ALLOCA): New define.
14783 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14784 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14785 can be overridden with whatever value is appropriate to the host).
14786 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14787 alloca to allocate potentially large buffer.
14788 * rs6000-nat.c (child_xfer_memory): Ditto.
14789 * symm-nat.c (child_xfer_memory): Ditto.
14790 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14791
14792 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14793
14794 From Nick Clifton <nickc@redhat.com>
14795 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14796
14797 2002-01-07 Michael Snyder <msnyder@redhat.com>
14798
14799 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14800 Don't use exec_bfd if it's NULL.
14801
14802 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14803
14804 * valops.c (value_arg_coerce): Fix formatting.
14805
14806 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14807
14808 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14809 * gnu-nat.c: Ditto.
14810
14811 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14812
14813 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14814 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14815 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14816 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14817 z8k-coff have not been multi-arched. Update z8k-coff build
14818 status.
14819
14820 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14821
14822 * MAINTAINERS: Mark a29k target as obsolete.
14823 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14824 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14825 comments.
14826 * NEWS: Note that a29k targets are obsolete.
14827 * a29k-tdep.c: Mark as obsolete.
14828 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14829 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14830 a29k-*-vxworks* targets as obsolete.
14831 * remote-adapt.c: Obsolete.
14832 * remote-eb.c: Obsolete.
14833 * remote-mm.c: Obsolete.
14834 * remote-udi.c: Obsolete.
14835 * config/a29k/a29k-udi.mt: Obsolete.
14836 * config/a29k/a29k.mt: Obsolete.
14837 * config/a29k/tm-a29k.h: Obsolete.
14838 * config/a29k/tm-vx29k.h: Obsolete.
14839 * config/a29k/vx29k.mt: Obsolete.
14840
14841 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14842
14843 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14844 with BFD_ENDIAN_BIG.
14845
14846 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14847
14848 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14849 * configure, config.in: Re-generate.
14850 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14851 * defs.h: Do not include <endian.h>.
14852
14853 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14854
14855 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14856 * config.in: Regenerate.
14857 * configure.in: Update copyright years.
14858 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14859 * configure: Regenerate.
14860 * i386bsd-nat.c: Update copyright years.
14861 (fill_gregset): Use regcache_collect.
14862 (fetch_inferior_registers): Only fetch integer registers
14863 if requested to do so. Add support for XMM registers
14864 using PT_GETXMMREGS.
14865 (store_inferior_registers): Only store integer registers
14866 if requested to do so. Add support for XMM registers
14867 using PT_SETXMMREGS.
14868 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14869 (store_inferior_registers): Remove.
14870 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14871 (fetch_elfcore_registers): New function.
14872 (i386nbsd_elfcore_fns): New.
14873 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14874 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14875 i386bsd-nat.o.
14876 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14877 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14878 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14879 * config/i386/tm-nbsd.h: Update copyright years.
14880 (HAVE_SSE_REGS): Define.
14881 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14882 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14883 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14884 (SIGCONTEXT_PC_OFFSET): Remove.
14885 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14886
14887 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14888
14889 * configure.tgt: Remove powerpc-*-macos* target.
14890 * config/m68k/xm-mpw.h: Delete file.
14891 * config/xm-mpw.h: Delete file.
14892 * ser-mac.c: Delete file.
14893 * mpw-make.sed: Delete file.
14894 * mpw-config.in: Delete file.
14895 * mac-xdep.c: Delete file.
14896 * mac-gdb.r: Delete file.
14897 * mac-defs.h: Delete file.
14898 * mac-nat.c: Delete file.
14899 * config/powerpc/macos.mh: Delete file.
14900 * config/powerpc/macos.mt: Delete file.
14901 * config/powerpc/nm-macos.h: Delete file.
14902 * config/powerpc/tm-macos.h: Delete file.
14903 * source.c (openp, open_source_file): Remove obsolete code.
14904 * top.c (gdb_readline): Ditto.
14905 * utils.c (query): Ditto.
14906 * event-top.c (display_gdb_prompt): Ditto.
14907 * Makefile.in (ser-mac.o): Delete obsolete target.
14908 * NEWS: Update.
14909
14910 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14911
14912 * defs.h (BIG_ENDIAN): Delete macro definition.
14913 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14914 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14915 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14916 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14917 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14918 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14919 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14920 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14921 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14922 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14923 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14924 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14925 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14926 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14927 * gdbarch.c: Re-generate.
14928
14929 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14930
14931 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14932 for core files.
14933
14934 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14935
14936 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14937
14938 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14939
14940 * value.h (value_ptr): Delete typedef.
14941
14942 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14943
14944 * i386nbsd-nat.c: Update copyright years.
14945 Include i386-tdep.h.
14946
14947 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14948
14949 * stabsread.c: Update copyright years.
14950
14951 From Debashis Mahata <debashis.mahata@wipro.com>:
14952 (read_struct_fields): Deal with Sun C compiler erroneous stab
14953 output for structs and unions.
14954 Fix PR gdb/269.
14955
14956 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14957
14958 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14959 prototype.
14960
14961 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14962
14963 * cp-abi.c: Fix whitespace.
14964 (baseclass_offset): New wrapper function.
14965 * cp-abi.h (baseclass_offset): Add prototype.
14966 (struct cp_abi_ops): Add baseclass_offset pointer.
14967
14968 * valops.c (vb_match): Move to...
14969 * gnu-v2-abi.c (vb_match): here.
14970 * valops.c (baseclass_offset): Move to...
14971 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14972
14973 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14974
14975 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14976 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14977 * hpacc-abi.c (init_hpacc_ops): Likewise.
14978
14979 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14980
14981 * valops.c (find_overload_match): Accept obj as a
14982 reference parameter. Update it before returning.
14983 * value.h (find_overload_match): Update prototype.
14984 * eval.c (evaluate_subexp_standard): Pass object to
14985 find_overload_match by reference.
14986
14987 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14988
14989 * valarith.c: Replace value_ptr with struct value pointer. Remove
14990 register attribute from value declarations.
14991 * valops.c: Ditto.
14992 * value.h: Ditto.
14993 * scm-lang.c (scm_lookup_name): Ditto.
14994
14995 2002-01-03 Michael Snyder <msnyder@redhat.com>
14996
14997 Abstract the functionality of iterating over mapped memory
14998 regions into a general purpose iterator function.
14999 * procfs.c (iterate_over_mappings): New function, general purpose
15000 iterator for memory sections.
15001 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15002 (solib_mappings_callback): New function, callback for above.
15003 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15004 (info_mappings_callback): New function, callback for above.
15005
15006 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15007
15008 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15009
15010 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15011 * i386-tdep.c: Include "elf-bfd.h".
15012 (process_note_abi_tag_sections): New function.
15013 (i386_gdbarch_init): Add code to recognize various OS/ABI
15014 combinations.
15015
15016 * maint.c (_initialize_maint_cmds): Add missing \ in
15017 string-literal.
15018
15019 For older changes see ChangeLog-2001
15020 \f
15021 Local Variables:
15022 mode: change-log
15023 left-margin: 8
15024 fill-column: 74
15025 version-control: never
15026 End:
This page took 0.318186 seconds and 5 git commands to generate.