c09467843feb45de2640b52b1efc9a94509e0b96
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-30 Adam Fedor <fedor@gnu.org>
2
3 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
4 (yylex): Initialize c to avoid uninitialized warning.
5
6 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
7
8 * doc/fdl.texi: Revert the last change.
9
10 2002-12-29 Mark Kettenis <kettenis@gnu.org>
11
12 * tracepoint.c (ISATTY): Removed.
13
14 2002-12-26 J. Brobecker <brobecker@gnat.com>
15
16 Continuing work to convert the hppa targets to multiarch partil.
17
18 * hppa-tdep.c: Add some missing forward declarations.
19 (frameless_function_invocation): Prefix the function name
20 by "hppa_" to avoid polluting the namespace. Update all calls
21 to use the new function name.
22 (saved_pc_after_call): Ditto.
23 (init_extra_frame_info): Ditto.
24 (frame_chain): Ditto.
25 (push_dummy_frame): Ditto.
26 (target_read_pc): Ditto.
27 (target_write_pc): Ditto.
28 (in_solib_call_trampoline): Ditto.
29 (in_solib_return_trampoline): Ditto.
30 (skip_trampoline_code): Ditto.
31 (hppa_read_fp): New function, renamed from target_read_fp.
32 (hppa_target_read_fp): New function, using hppa_read_fp.
33 This function conforms to the function profile for the
34 READ_FP gdbarch method.
35 (hppa_extract_struct_value_address): New function, extracted
36 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
37 macro.
38 (hppa_frame_num_args): New function.
39 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
40
41 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
42 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
43 for the switch to multiarch partial.
44 Update some of the macros definitions to match some changes
45 described above in the name of the function they are calling.
46 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
47 not be straightforward to convert. Do now wrap it inside
48 "#if !... #endif" to remember that this macro has still not
49 been taken care of.
50 (FIX_CALL_DUMMY): Likewise.
51
52 2002-12-26 J. Brobecker <brobecker@gnat.com>
53
54 Continuing work to convert the hppa targets to multiarch partial.
55
56 * hppa-tdep.c (hppa_register_raw_size): New function replacing
57 the body of macro REGISTER_RAW_SIZE.
58 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
59 config/pa/tm-hppah.h. These functions will be used to initialize
60 the gdbarch structure.
61 (hppa_hpux_pc_in_sigtramp): New function.
62 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
63 (hppa_hpux_frame_base_before_sigtramp): New function.
64 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
65 Add gdbcore.h #include.
66 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
67 of this gdbarch-eligible macro to a call to the new associated
68 function.
69 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
70 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
71 into a call to the new associated function.
72 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
73 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
74 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
75
76 2002-12-24 David Carlton <carlton@math.stanford.edu>
77
78 * config/sparc/tm-sparc.h: Delete duplicate definition of
79 DEPRECATED_PC_IN_CALL_DUMMY.
80
81 2002-12-24 Kevin Buettner <kevinb@redhat.com>
82
83 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
84 $(gdb_assert_h).
85 * configure.tgt: Recognize mips64*-*-linux*.
86 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
87 (supply_32_bit_reg): New function.
88 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
89 (fill_gregset): Use regcache_collect() instead of
90 deprecated_registers[].
91 (register_addr): Change name to mips_linux_register_addr().
92 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
93 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
94 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
95 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
96 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
97 (MIPS64_LINUX_JB_PC): New defines.
98 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
99 (mips64_elf_fpregset_t): New typedefs.
100 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
101 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
102 (mips64_linux_register_addr, set_mips_linux_register_addr)
103 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
104 (init_register_addr_data)
105 New functions.
106 (fetch_core_registers): Add support for core file formats with 64-bit
107 registers.
108 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
109 (register_addr_data): New static global variable.
110 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
111 gdbarch_register_osabi() for each MIPS machine.
112 * config/mips/linux64.mt: New file.
113 * config/mips/tm-linux64.h: New file.
114
115 2002-12-23 Adam Fedor <fedor@gnu.org>
116
117 * maint.c (maintenance_demangle): Add switch to demangle
118 ObjC language symbols as well.
119
120 2002-12-23 Adam Fedor <fedor@gnu.org>
121
122 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
123 last argument from complaint function call.
124
125 2002-12-23 Kevin Buettner <kevinb@redhat.com>
126
127 * exec.c (print_section_info): Add FIXME comments regarding format
128 string choices.
129
130 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
131
132 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
133 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
134
135 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
136
137 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
138
139 2002-12-23 David Carlton <carlton@math.stanford.edu>
140
141 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
142 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
143 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
144 information associated to a minsym, not lookup_symbol.
145
146 2002-12-21 Mark Kettenis <kettenis@gnu.org>
147
148 * x86-64-tdep.h (x86_64_init_abi): New prototype.
149 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
150 (x86_64_init_abi): Make non-static. Set number of pseudo
151 registers to 0.
152 (x86_64_gdbarch_init): Remove function.
153 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
154 Remove code dealing with dissambly.
155 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
156 (_initialize_x86_64_linux_tdep): New function.
157 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
158 i386-tdep.o.
159
160 2002-12-14 Mark Kettenis <kettenis@gnu.org>
161
162 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
163 (struct gdb_osabi_handler): Remove member `arch'. Add member
164 `arch_info'.
165 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
166 construct a `struct bfd_arch_info' and store it in the `struct
167 gdb_osabi_handler' that is created.
168 (gdbarch_init_osabi): Check for compatibility based on machine
169 type and architecture.
170 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
171 comment.
172 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
173 second argument in call to gdbarch_register_osabi.
174 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
175 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
176 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
177 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
178 * arm-tdep.c (_initialize_arm_tdep): Likewise.
179 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
180 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
181 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
182 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
183 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
184 * i386-tdep.c (_initialize_i386_tdep): Likewise.
185 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
186 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
187 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
188 _initialize_i386bsd_tdep and updated likewise.
189 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
190 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
191 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
192 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
193 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
194 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
195 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
196 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
197 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
198 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
199
200 2002-12-20 Kevin Buettner <kevinb@redhat.com>
201
202 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
203 DT_MIPS_RLD_MAP case for 64-bit targets.
204
205 2002-12-20 Kevin Buettner <kevinb@redhat.com>
206
207 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
208 ``temp_saved_regs'', not the pointer or other storage contiguous
209 to this pointer.
210
211 2002-12-20 Kevin Buettner <kevinb@redhat.com>
212
213 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
214 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
215 (mips_linux_get_longjmp_target): Delete declarations.
216 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
217 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
218 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
219 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
220 (mips_linux_get_longjmp_target)
221 (mips_linux_svr4_fetch_link_map_offsets): Make static.
222 (mips_linux_init_abi): New function.
223 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
224
225 2002-12-19 Keith Seitz <keiths@redhat.com>
226
227 patch committed by Elena Zannoni <ezannoni@redhat.com>
228 * thread.c (do_captured_list_thread_ids): Call prune_threads and
229 target_find_new_threads. Fix for PR mi/669.
230
231 2002-12-19 David Carlton <carlton@math.stanford.edu>
232
233 * linespec.c (decode_line_1): Move code into decode_all_digits.
234 (decode_all_digits): New function.
235
236 2002-12-19 Kevin Buettner <kevinb@redhat.com>
237
238 * exec.c (print_section_info): Select a format string to use with
239 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
240
241 2002-12-18 Andrew Cagney <ac131313@redhat.com>
242
243 * frame.c (deprecated_update_current_frame_pc_hack): Replace
244 deprecated_update_current_frame_pc_hack.
245 (deprecated_update_frame_base_hack): New function.
246 * frame.h (deprecated_update_frame_pc_hack): Replace
247 (deprecated_update_frame_base_hack): Declare.
248 * infrun.c (normal_stop): Update.
249
250 2002-12-18 Andrew Cagney <ac131313@redhat.com>
251
252 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
253 frame_extra_info_zalloc.
254 (rs6000_frame_args_address): Use get_frame_extra_info.
255 (frame_get_saved_regs): Use get_frame_saved_regs.
256 (frame_initial_stack_address): Use get_frame_saved_regs and
257 get_frame_extra_info.
258 (frame_initial_stack_address): Use get_frame_extra_info.
259
260 2002-12-17 Kevin Buettner <kevinb@redhat.com>
261
262 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
263 array size.
264 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
265 checks for r3900_regnames[].
266
267 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
268
269 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
270 All uses changed
271 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
272
273 2002-12-17 David Carlton <carlton@math.stanford.edu>
274
275 * symtab.c (lookup_partial_symbol): Don't search past the end of
276 the partial symbols.
277
278 2002-12-17 Andrew Cagney <ac131313@redhat.com>
279
280 * stack.c (frame_info): Use get_frame_saved_regs.
281 * breakpoint.c (until_break_command): Use get_frame_pc.
282
283 2002-12-16 Kevin Buettner <kevinb@redhat.com>
284
285 * buildsym.c (block_end_complaint, anon_block_end_complaint)
286 (innerblock_complaint, innerblock_anon_complaint)
287 (blockvector_complaint): Delete deprecated complaint structs.
288 (finish_block, make_blockvector, end_symtab): Replace calls
289 to complain() with calls to complaint().
290 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
291 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
292 (unexpected_type_complaint, bad_sclass_complaint)
293 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
294 Delete deprecated complaint structs.
295 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
296 Replace calls to complain() with calls to complaint().
297 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
298 (unknown_symtype_complaint, unknown_symchar_complaint)
299 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
300 (lbrac_mismatch_complaint, repeated_header_complaint)
301 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
302 Delete deprecated complaint structs.
303 (unknown_symtype_complaint, lbrac_mismatch_complaint)
304 (repeated_header_complaint)
305 (function_outside_compiliation_unit_complaint): New functions.
306 (add_old_header_file, find_corresponding_bincl_psymtab)
307 (set_namestring, find_stab_function_addr, read_dbx_symtab)
308 (process_one_symbol): Replace calls to complain() with, possibly
309 indirect, calls to complaint().
310 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
311 (unknown_attribute_form, unknown_attribute_length)
312 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
313 (const_ignored, botched_modified_type, op_deref2, op_deref4)
314 (basereg_not_handled, dup_user_type_allocation)
315 (dup_user_type_definition, missing_tag, bad_array_element_type)
316 (subscript_data_items, unhandled_array_subscript_format)
317 (unknown_array_subscript_format, not_row_major)
318 (missing_at_name): Delete deprecated complaint structs.
319 (bad_die_ref_complaint, unknown_attribute_form_complaint)
320 (dup_user_type_definition_complaint)
321 (bad_array_element_type_complaint): New functions.
322 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
323 (decode_subscript_data_item, dwarf_read_array_type)
324 (read_tag_string_type, read_subroutine_type, read_func_scope)
325 (locval, scan_partial_symbols, decode_modified_type)
326 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
327 (attribute_size): Replace calls to complain() with, possibly
328 indirect, calls to complaint().
329 * elfread.c (section_info_complaint, section_info_dup_complaint)
330 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
331 Delete deprecated complaint structs.
332 (elf_symtab_read, elfstab_offset_sections): Replace calls to
333 complain() with calls to complaint().
334 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
335 struct.
336 (stub_noname_complaint): New function.
337 (check_typedef, add_mangled_type): Replace calls to complain()
338 with calls to complaint().
339 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
340 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
341 (hpread_unhandled_type_complaint, hpread_struct_complaint)
342 (hpread_array_complaint, hpread_type_lookup_complaint)
343 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
344 (hpread_unhandled_common_complaint)
345 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
346 struct definitions and declarations.
347 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
348 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
349 Replace calls to complain() with, possibly indirect, calls to
350 complaint().
351 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
352 Likewise.
353 * mdebugread.c (bad_file_number_complaint, index_complaint)
354 (aux_index_complaint, block_index_complaint)
355 (unknown_ext_complaint, unknown_sym_complaint)
356 (unknown_st_complaint, block_overflow_complaint)
357 (basic_type_complaint, unknown_type_qual_complaint)
358 (array_index_type_complaint, bad_tag_guess_complaint)
359 (block_member_complaint, stEnd_complaint)
360 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
361 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
362 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
363 (bad_continued_complaint, bad_rfd_entry_complaint)
364 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
365 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
366 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
367 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
368 complaint structs.
369 (index_complaint, unknown_ext_complaint, basic_type_complaint)
370 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
371 (unexpected_type_code_complaint)
372 (function_outside_compilation_unit_complaint): New functions.
373 (parse_symbol, parse_type, upgrade_type, parse_procedure)
374 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
375 Replace calls to complain() with, possibly indirect calls to
376 complaint().
377 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
378 Delete deprecated complaint structs.
379 (lookup__objc_class, lookup_child_selector): Replace complain()
380 with complaint().
381 * remote-vx.c (cant_contact_target): Delete deprecated complaint
382 struct.
383 (vx_lookup_symbol): Replace complain() with complaint().
384 * stabsread.c (invalid_cpp_abbrev_complaint)
385 (invalid_cpp_type_complaint, member_fn_complaint)
386 (const_vol_complaint, error_type_complaint)
387 (invalid_member_complaint, range_type_base_complaint)
388 (reg_value_complaint, vtbl_notfound_complaint)
389 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
390 (unresolved_sym_chain_complaint, stabs_general_complaint)
391 (lrs_general_complaint, multiply_defined_struct): Delete
392 deprecated complaint structs.
393 (invalid_cpp_abbrev_complaint, ref_value_complaint)
394 (stabs_general_complaint, lrs_general_complaint)
395 (msg_unknown_complaint): New functions.
396 (dbx_lookup_type, read_cfront_baseclasses)
397 (read_cfront_member_functions, resolve_symbol_reference)
398 (define_symbol, resolve_live_range, add_live_range, read_type)
399 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
400 (read_one_struct_field, read_baseclasses, read_tilde_fields)
401 (read_cfront_static_fields, attach_fields_to_type)
402 (complain_about_struct_wipeout, read_range_type)
403 (common_block_start, common_block_end, cleanup_undefined_types)
404 (scan_file_globals): Replace complain() with complaint().
405 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
406 Delete deprecated complaint struct declarations.
407 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
408 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
409 (bf_not_found_complaint, ef_complaint, eb_complaint)
410 (function_outside_compilation_unit_complaint): New functions.
411 (record_include_begin, record_include_end, enter_line_range)
412 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
413 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
414 complain() with complaint().
415
416 2002-12-16 Andrew Cagney <ac131313@redhat.com>
417
418 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
419 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
420 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
421 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
422 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
423 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
424 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
425 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
426 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
427 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
428 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
429 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
430 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
431 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
432 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
433 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
434 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
435 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
436 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
437 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
438 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
439 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
440 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
441 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
442 * config/m88k/xm-dgux.h: Delete.
443 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
444 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
445 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
446 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
447 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
448 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
449 * ch-valprint.c: Delete.
450
451 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
452
453 * infrun.c (handle_inferior_event): Rearrange code to resume if
454 no catchpoint triggers for an event.
455
456 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
457
458 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
459 and TARGET_WAITKIND_VFORKED cases.
460
461 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
462
463 * infrun.c (handle_inferior_event): Assume that catchpoints
464 are not affected by DECR_PC_AFTER_BREAK.
465
466 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
467
468 * target.c (update_current_target): Don't inherit DONT_USE.
469 * target.h (struct target_ops): Remove DONT_USE.
470 (target_next): Remove macro.
471
472 2002-12-15 Mark Kettenis <kettenis@gnu.org>
473
474 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
475
476 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
477
478 * arm-tdep.c (convert_from_extended): New argument to hold the
479 type of floating point result we want to convert to. Make input
480 argument const. Fix all callers.
481 (convert_to_extended): Similarly.
482 (arm_extract_return_value): Now takes a regcache argument. Change
483 code to use regcache accessor functions. Correctly extract
484 smaller-than-word results on big-endian machines.
485 (arm_store_return_value): Now takes a regcache argument. Change
486 code to use regcache accessor functions. Correctly zero/sign extend
487 smaller than word results before storing into r0.
488 (arm_gdbarch_init): Register new-style extract_return_value and
489 store_return_value functions.
490
491 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
492
493 * thread-db.c (thread_from_lwp): Uniquify error msg.
494 (lwp_from_thread): Ditto.
495 (check_event): Ditto.
496 (find_new_threads_callback): Ditto.
497 (thread_db_pid_to_str): Ditto.
498
499 2002-12-13 Andrew Cagney <ac131313@redhat.com>
500
501 * frame.h (get_frame_saved_regs): Declare.
502 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
503 pointer.
504 * frame.c (get_frame_saved_regs): New function.
505 (frame_saved_regs_zalloc): Return the allocated saved_regs.
506
507 2002-12-13 Andrew Cagney <ac131313@redhat.com>
508
509 * frame.c (deprecated_update_current_frame_pc_hack): New
510 function.
511 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
512 * infrun.c (normal_stop): Use said function instead of directly
513 modifying the frame's PC.
514
515 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
516
517 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
518
519 2002-12-13 Kevin Buettner <kevinb@redhat.com>
520
521 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
522 config/mips/tm-irix6.h (NUM_REGS): Delete.
523 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
524 (temp_saved_regs): Declare as a pointer rather than an array.
525 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
526 that ``temp_saved_regs'' has storage allocated to it and that
527 it's the correct size.
528
529 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
530
531 * defs.h (init_last_source_visited): New prototype.
532 (add_path): Ditto.
533 * source.c (add_path): New function that adds to a specified path.
534 (mod_path): Change to call add_path.
535 (init_last_source_visited): New function to allow interfaces to
536 initialize static variable: last_source_visited. Part of fix
537 for PR gdb/741.
538 * Makefile.in: Add support for mi/mi-cmd-env.c.
539
540 2002-12-13 Andrew Cagney <ac131313@redhat.com>
541
542 * frame.h (frame_id_unwind): Declare.
543 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
544 id_unwind_cache.
545 (frame_id_unwind_ftype): Declare.
546 * frame.c (frame_id_unwind): New function.
547 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
548 (create_new_frame, get_prev_frame): Pass id_unwind to
549 set_unwind_by_pc.
550 (frame_saved_regs_id_unwind): New function.
551 (frame_saved_regs_id_unwind): New function.
552 * dummy-frame.c (dummy_frame_id_unwind): New function.
553 (struct dummy_frame): Add field id.
554 (generic_push_dummy_frame): Initialize `id'.
555 * dummy-frame.h (dummy_frame_id_unwind): Declare.
556
557 2002-12-13 Andrew Cagney <ac131313@redhat.com>
558
559 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
560 pass that to set_momentary_breakpoint. Move comments to where they
561 belong.
562 * frame.h (set_current_frame): Delete declaration.
563 * frame.c (set_current_frame): Delete function.
564
565 2002-12-13 Andrew Cagney <ac131313@redhat.com>
566
567 * frame.c (frame_extra_info_zalloc): New function.
568 * frame.h (frame_extra_info_zalloc): Declare.
569
570 2002-12-13 Joel Brobecker <brobecker@gnat.com>
571
572 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
573 in the previous prototype change to set_momentary_breakpoint.
574
575 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
576
577 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
578 and saw_child_exec.
579 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
580 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
581 (stop_stepping): Remove outdated check for child vfork events.
582
583 2002-12-12 Andrew Cagney <ac131313@redhat.com>
584
585 * GDB 5.3 released from gdb_5_3-branch.
586
587 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
588
589 * corelow.c (init_core_ops): Delete references to to_require_attach
590 and to_require_detach.
591 * exec.c (init_exec_ops): Likewise.
592 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
593 hppa_require_detach directly.
594 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
595 * inftarg.c (child_detach): Remove.
596 (child_detach_from_process): Rename to child_detach, remove
597 after_fork argument.
598 (child_attach): Remove.
599 (child_attach_to_process): Rename to child_attach, remove after_fork
600 argument.
601 (init_child_ops): Delete references to to_require_attach
602 and to_require_detach.
603 * infttrace.c (hppa_require_attach): Update comment.
604 * target.c (cleanup_target, update_current_target)
605 (init_dummy_target, setup_target_debug): Delete references to
606 to_require_attach and to_require_detach.
607 (find_default_require_detach, find_default_require_attach)
608 (debug_to_require_attach, debug_to_require_detach): Remove
609 functions.
610 * target.h (struct target_ops): Remove to_require_attach
611 and to_require_detach.
612 (target_require_attach, target_require_detach): Delete macros.
613 (find_default_require_detach, find_default_require_attach): Delete
614 prototypes.
615 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
616
617 2002-12-11 Andrew Cagney <ac131313@redhat.com>
618
619 * frame.c (get_frame_extra_info): New function.
620 * frame.h (get_frame_extra_info): Declare.
621
622 2002-12-11 Andrew Cagney <ac131313@redhat.com>
623
624 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
625 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
626 with `struct frame_id'.
627 (set_longjmp_resume_breakpoint): Ditto.
628 * infrun.c (handle_inferior_event): Update.
629 * breakpoint.c (watch_command_1, until_break_command): Update.
630 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
631 (handle_inferior_event, step_over_function): Update.
632 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
633 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
634 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
635 * infcmd.c (finish_command, run_stack_dummy): Update.
636
637 2002-12-11 Kevin Buettner <kevinb@redhat.com>
638
639 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
640 (dwarf2_non_const_array_bound_ignored)
641 (dwarf2_missing_line_number_section)
642 (dwarf2_statement_list_fits_in_line_number_section)
643 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
644 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
645 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
646 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
647 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
648 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
649 (dwarf2_missing_member_fn_type_complaint)
650 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
651 (dwarf2_const_value_length_mismatch)
652 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
653 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
654 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
655 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
656 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
657 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
658 complaints using deprecated struct..
659 (dwarf2_non_const_array_bound_ignored_complaint)
660 (dwarf2_complex_location_expr_complaint)
661 (dwarf2_unsupported_at_frame_base_complaint)
662 (dwarf2_const_value_length_mismatch_complaint)
663 (dwarf2_macros_too_long_complaint)
664 (dwarf2_macro_malformed_definition_complaint)
665 (dwarf2_invalid_attrib_class_complaint): New functions.
666 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
667 (read_structure_scope, read_array_type, read_common_block)
668 (read_tag_pointer_type, read_base_type, read_partial_die)
669 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
670 (new_symbol, dwarf2_const_value, read_type_die)
671 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
672 (parse_macro_definition, dwarf_decode_macros): Replace calls to
673 complain() with, possibly indirect, calls to complaint().
674
675 2002-12-11 Andrew Cagney <cagney@redhat.com>
676
677 * frame.c (deprecated_get_frame_saved_regs): Rename
678 get_frame_saved_regs.
679 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
680 * sparc-tdep.c: Update.
681 * hppa-tdep.c: Update.
682 * h8500-tdep.c: Update.
683
684 2002-12-11 Kevin Buettner <kevinb@redhat.com>
685
686 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
687 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
688 ``char *'' for return and parameter types.
689 * gdbarch.h, gdbarch.c: Regenerate.
690 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
691 return type from ``char *'' to ``const char *''.
692 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
693 const.
694
695 2002-12-11 Mark Kettenis <kettenis@gnu.org>
696
697 * i386-tdep.c: Include "dummy-frame.h".
698 (i386_frame_chain, i386_frame_saved_pc): Replace
699 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
700 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
701
702 2002-12-10 Andrew Cagney <cagney@redhat.com>
703
704 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
705 Change to a function with predicate.
706 * gdbarch.h, gdbarch.c: Re-generate.
707 * frame.c (get_prev_frame): Update. Test
708 DEPRECATED_INIT_FRAME_PC_P.
709 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
710 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
711 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
712 * alpha-tdep.c (alpha_gdbarch_init): Update.
713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
714 * mips-tdep.c (mips_gdbarch_init): Update.
715 * i386-interix-tdep.c (i386_interix_init_abi): Update.
716 * arm-tdep.c: Update comments.
717 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
718 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
719 * frv-tdep.c (frv_gdbarch_init): Ditto.
720 * x86-64-tdep.c (x86_64_init_abi): Ditto.
721 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
722 * s390-tdep.c (s390_gdbarch_init): Ditto.
723 * v850-tdep.c (v850_gdbarch_init): Ditto.
724 * vax-tdep.c (vax_gdbarch_init): Ditto.
725 * sh-tdep.c (sh_gdbarch_init): Ditto.
726 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
728 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
730 * i386-tdep.c (i386_gdbarch_init): Ditto.
731 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
732 * cris-tdep.c (cris_gdbarch_init): Ditto.
733 * avr-tdep.c (avr_gdbarch_init): Ditto.
734 * arm-tdep.c (arm_gdbarch_init): Ditto.
735 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
736 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
737
738 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
739
740 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
741 CHILD_FOLLOW_FORK.
742 * hppah-nat.c (saved_vfork_pid): Add.
743 (child_post_follow_vfork): Remove.
744 (child_follow_fork): New function.
745 (child_wait): Call detach_breakpoints after receiving the child vfork.
746 Call child_resume directly instead of going through resume ().
747 Make sure we have the exec before reporting the vfork.
748 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
749 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
750 (follow_fork): New function. Call target_follow_fork.
751 (follow_inferior_reset_breakpoints): New function broken out from
752 old follow_inferior_fork.
753 (resume): Remove hack to follow exec after vfork.
754 * inftarg.c (child_post_follow_vfork): Remove.
755 (child_follow_fork): New function.
756 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
757 * target.c (cleanup_target): Replace to_post_follow_vfork with
758 to_follow_fork.
759 (update_current_target): Likewise.
760 (setup_target_debug): Likewise.
761 (debug_to_post_follow_vfork): Remove.
762 (debug_to_follow_fork): New function.
763 * target.h (struct target_ops): Replace to_post_folow_vfork with
764 to_follow_fork.
765 (child_post_follow_vfork): Remove prototype.
766 (child_follow_fork): Add prototype.
767 (target_post_follow_vfork): Remove macro.
768 (target_follow_fork): Add macro.
769
770 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
771
772 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
773 (child_post_follow_vfork): Cancel pending exec event if we follow
774 the parent.
775 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
776 events have been processed. Return a fake TARGET_WAITKIND_EXECD
777 event at the following wait call if necessary.
778 * infrun.c (follow_vfork): Don't follow_exec here.
779 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
780 case about HP/UX 10.20. Remove code pushed down to
781 hppah-nat.c:child_wait.
782 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
783 vfork_in_flight is set.
784
785 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
786
787 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
788 for the parent's fork event.
789 * infrun.c (handle_inferior_event): Only expect one fork event.
790 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
791 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
792
793 2002-12-10 Andrew Cagney <ac131313@redhat.com>
794
795 * PROBLEMS: Delete reference to PR gdb/725.
796
797 * MAINTAINERS (gdb.c++): Add David Carlton.
798
799 2002-12-09 David Carlton <carlton@math.stanford.edu>
800
801 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
802 * cli/cli-cmds.c: Ditto.
803
804 2002-12-09 Andrew Cagney <cagney@redhat.com>
805
806 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
807 function address in <>.
808 * gdbarch.c: Re-generate.
809
810 2002-12-09 David Carlton <carlton@math.stanford.edu>
811
812 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
813
814 2002-12-09 David Carlton <carlton@math.stanford.edu>
815
816 * linespec.c (symtab_from_filename): New function.
817 (decode_line_1): Move code into symtab_from_filename.
818
819 2002-12-09 Kevin Buettner <kevinb@redhat.com>
820
821 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
822
823 2002-12-07 Andrew Cagney <ac131313@redhat.com>
824
825 * f-valprint.c (info_common_command): Use get_frame_pc.
826 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
827 * ax-gdb.c (agent_command): Ditto.
828 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
829 (rs6000_pop_frame): Ditto.
830 (rs6000_frameless_function_invocation): Ditto.
831 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
832 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
833 * macroscope.c (default_macro_scope): Ditto.
834 * stack.c (print_frame_info_base): Ditto.
835 (print_frame, frame_info, print_frame_label_vars): Ditto.
836 (return_command, func_command, get_frame_language): Ditto.
837 * infcmd.c (finish_command): Ditto.
838 * dummy-frame.c (cached_find_dummy_frame): Ditto.
839 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
840 (break_at_finish_at_depth_command_1): Ditto.
841 (break_at_finish_command_1): Ditto.
842 (until_break_command, get_catch_sals): Ditto.
843 * blockframe.c (func_frame_chain_valid): Ditto.
844 (frameless_look_for_prologue): Ditto.
845 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
846
847 2002-12-08 Andrew Cagney <ac131313@redhat.com>
848
849 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
850 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
851
852 2002-12-08 Andrew Cagney <ac131313@redhat.com>
853
854 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
855 to pure functions.
856 * gdbarch.h, gdbarch.c: Re-generate.
857 * frame.c (get_prev_frame): Explictly assign prev's pc with value
858 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
859
860 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
861 declaration to a function returning a CORE_ADDR.
862 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
863 * arch-utils.c (init_frame_pc_noop): Return the PC value.
864 (init_frame_pc_default): Ditto.
865 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
866 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
867 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
868 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
869 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
870 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
871
872 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
873 to init_frame_pc_noop.
874 (i386_interix_init_frame_pc): Delete function.
875 * z8k-tdep.c (init_frame_pc): Delete function.
876 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
877 (INIT_FRAME_PC_FIRST): Ditto.
878 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
879 (INIT_FRAME_PC_FIRST): Ditto.
880 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
881 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
882 init_frame_pc_noop.
883 (INIT_FRAME_PC_FIRST): Convert to an expression.
884 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
885
886 2002-12-08 Andrew Cagney <ac131313@redhat.com>
887
888 * blockframe.c: Use get_frame_base instead of directly accessing
889 the `struct frame_info' member frame.
890 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
891 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
892
893 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
894
895 * Makefile.in (readline_h): Define.
896 (completer.o): Depend on readline_h.
897 (corelow.o): Ditto.
898 (event-top.o): Ditto.
899 (exec.o): Ditto.
900 (solib.o): Ditto.
901 (source.o): Ditto.
902 (symfile.o): Ditto.
903 (symmisc.o): Ditto.
904 (top.o): Ditto.
905 (tracepoint.o): Ditto.
906 (utils.o): Ditto.
907 (cli-dump.o): Ditto.
908 (tui-hooks.o): Ditto.
909 (tuiWin.o): Ditto.
910
911 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
912
913 More cleanup from import of readline 4.3.
914 * completer.h (complete_line, readline_line_completion_function):
915 Update prototypes.
916 (line_completion_function): Removed, not used outside of completer.c.
917 * completer.c (readline_line_completion_function,
918 complete_function, line_completion_function): Use const for first
919 parameter.
920 (line_completion_function): Make static.
921 (filename_completer): filename_completion_function is now called
922 rl_filename_completion_function
923 * corelow.c: Include <readline/readline.h>.
924 * exec.c: Ditto.
925 * solib.c: Ditto.
926 * source.c: Ditto.
927 * symfile.c: Ditto.
928 * symmisc.c: Ditto.
929 * top.c (init_main): No need to coerce
930 readline_line_completion_function anymore.
931 * cli/cli-dump.c: Include <readline/readline.h>.
932
933 2002-12-08 Andrew Cagney <ac131313@redhat.com>
934
935 * stack.c (frame_info): Use get_prev_frame.
936 * blockframe.c (frame_address_in_block): Ditto.
937 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
938 (rs6000_frameless_function_invocation): Ditto.
939 (rs6000_frame_saved_pc): Ditto.
940 (rs6000_frame_chain): Ditto.
941 * arch-utils.c (init_frame_pc_default): Ditto.
942
943 2002-12-08 Andrew Cagney <ac131313@redhat.com>
944
945 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
946 Delete redundant definition.
947
948 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
949
950 Import of readline 4.3:
951 * cli/cli-cmds.c: Include readline/tilde.h.
952 * cli/cli-setshow.c: Ditto.
953 * defs.h: Don't declare tilde_expand anymore, since readline
954 exports it.
955
956 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
957
958 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
959 -Werror on this file.
960
961 2002-12-07 Andrew Cagney <ac131313@redhat.com>
962
963 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
964 the format name.
965 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
966 * gdbarch.c: Regenerate.
967
968 2002-12-06 Andrew Cagney <ac131313@redhat.com>
969
970 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
971 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
972 provide a default value.
973 * gdbarch.h, gdbarch.c: Regenerate.
974 * frame.c (get_prev_frame): Update. Check
975 DEPRECATED_INIT_FRAME_PC_FIRST_P.
976 * s390-tdep.c (s390_gdbarch_init): Update.
977 * mips-tdep.c (mips_gdbarch_init): Update.
978 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
979 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
980 * alpha-tdep.c (alpha_gdbarch_init): Update.
981
982 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
983
984 * ia64-linux-nat.c: Include gdb_string.h.
985 * alpha-nat.c: Ditto.
986 * ppc-linux-nat.c: Ditto.
987 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
988 Update dependencies.
989
990 2002-12-05 Andrew Cagney <ac131313@redhat.com>
991
992 * gdbthread.h: Include "frame.h".
993 (struct thread_info): Replace step_frame_address with
994 step_frame_id.
995 * inferior.h: Include "frame.h".
996 (step_frame_id): Replace external variable step_frame_address.
997 * gdbthread.h (save_infrun_state): Replace step_frame_address
998 parameter with step_frame_id parameter.
999 (load_infrun_state): Ditto.
1000 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1001 * infcmd.c (step_frame_id, step_1, step_once): Update.
1002 * thread.c (load_infrun_state, save_infrun_state): Update.
1003 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1004 (handle_inferior_event, step_over_function): Update.
1005 (normal_stop, context_switch, restore_inferior_status): Update.
1006 (struct inferior_status): Replace step_frame_address with
1007 step_frame_id.
1008
1009 2002-12-05 David Carlton <carlton@math.stanford.edu>
1010
1011 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1012 DW_TAG_member as well as a declaration as being a C++ static data
1013 member.
1014 (read_structure_scope): Combine tests for DW_TAG_member and
1015 DW_TAG_variable.
1016
1017 2002-12-05 David Carlton <carlton@math.stanford.edu>
1018
1019 * linespec.c (decode_compound): New function.
1020 (decode_line_1): Move code into decode_compound.
1021
1022 2002-12-05 David Carlton <carlton@math.stanford.edu>
1023
1024 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1025 argument.
1026 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1027 the static block. See PR gdb/804.
1028
1029 2002-12-05 David Carlton <carlton@math.stanford.edu>
1030
1031 * symtab.c (lookup_symbol_aux_block): New function.
1032 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1033
1034 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1035
1036 * gdbarch.sh: Dump the predicate function and macro values.
1037 (read): Print error on standard error.
1038 * gdbarch.c: Regenerate.
1039
1040 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1041
1042 * Makefile.in (mips_tdep_h): Define.
1043 (mips-tdep.o): Add mips_tdep_h to dependency list.
1044 * mips-tdep.h: New file.
1045 * mips-tdep.c (mips-tdep.h): Include.
1046 (enum mips_abi): Move to mips-tdep.h.
1047 (mips_abi): New function.
1048
1049 2002-12-04 David Carlton <carlton@math.stanford.edu>
1050
1051 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1052
1053 2002-12-04 David Carlton <carlton@math.stanford.edu>
1054
1055 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1056 function.
1057 (lookup_symbol_aux_minsyms): New function.
1058
1059 2002-12-04 J. Brobecker <brobecker@gnat.com>
1060
1061 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1062
1063 2002-12-04 J. Brobecker <brobecker@gnat.com>
1064
1065 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1066 which is an obsolete macro name.
1067
1068 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1069
1070 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1071 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1072
1073 2002-12-03 H.J. Lu (hjl@gnu.org)
1074
1075 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1076 (create_breakpoints): Make sure the addr_string field is not
1077 NULL.
1078
1079 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1080
1081 * sparc-nat.c (fetch_inferior_registers)
1082 (store_inferior_registers): Add comment on problem of LWP vs
1083 threads.
1084
1085 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1086 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1087 (lin_lwp_store_registers): Remove.
1088 (init_lin_lwp_ops): Use fetch_inferior_registers
1089 and store_inferior_registers directly.
1090 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1091 (store_inferior_registers): Likewise.
1092 Fix PR gdb/725.
1093
1094 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1095
1096 * frame.h (get_frame_id): Convert to a function.
1097 (null_frame_id, frame_id_p): Declare.
1098 (frame_id_eq, frame_id_inner): Declare.
1099 (frame_id_build): New function.
1100 * frame.c (get_frame_id): Update. Use null_frame_id.
1101 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1102 frame_id_inner.
1103 (null_frame_id, frame_id_p): Define.
1104 (frame_id_eq, frame_id_inner): Define.
1105 (frame_id_build): New function.
1106 * varobj.c (varobj_create): Update.
1107 (varobj_update): Update.
1108 * valops.c (value_assign): Update.
1109 (new_root_variable): Update.
1110 * infrun.c (save_inferior_status): Update.
1111 * breakpoint.c (watch_command_1): Update.
1112
1113 2002-12-03 J. Brobecker <brobecker@gnat.com>
1114
1115 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1116 (SNAP2): Likewise.
1117
1118 2002-12-03 Andrew Cagney <cagney@redhat.com>
1119
1120 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1121 patch.
1122
1123 * PROBLEMS: Mention PR gdb/725.
1124
1125 2002-12-03 Andreas Schwab <schwab@suse.de>
1126
1127 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1128
1129 2002-12-02 Adam Fedor <fedor@gnu.org>
1130 Klee Dienes <kdienes@apple.com>
1131
1132 * objc-lang.c (objc_printstr): Add width arg to match
1133 printstr prototype.
1134 (compare_selectors): Add 'const' to arg types.
1135 (compare_classes): Likewise.
1136 (find_imps): Cast msym pointer to avoid compiler warning.
1137 (print_object_command): Validate the address before
1138 passing it to the print routine.
1139 (find_objc_msgcall_submethod): Change function argument to
1140 return an int.
1141 * objc-lang.h: Add 'extern' to all function declarations.
1142 (value_nsstring): Add declaration.
1143
1144 2002-12-02 J. Brobecker <brobecker@gnat.com>
1145
1146 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1147 Fixes a build failure on HP/UX.
1148
1149 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1150 failure on HP/UX.
1151 (hpread_has_name): Advance declaration to avoid a compilation warning.
1152 (pst_syms_count): Add missing variable type. By change, the compiler
1153 was defaulting to int, which seems a good choice. Fixes a compilation
1154 warning.
1155 (pst_syms_size): Likewise.
1156
1157 2002-12-02 J. Brobecker <brobecker@gnat.com>
1158
1159 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1160 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1161 later to set the proper gdbarch methods depending on the osabi.
1162 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1163
1164 2002-12-02 J. Brobecker <brobecker@gnat.com>
1165
1166 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1167 * osabi.c (gdb_osabi_name): Add strings images for the two new
1168 enum values.
1169 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1170
1171 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1172
1173 * MAINTAINERS (Java): Global maintainers are responible for Java.
1174 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1175 part Java maintainers.
1176
1177 2002-12-02 J. Brobecker <brobecker@gnat.com>
1178
1179 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1180 Fixes a compilation failure on AiX.
1181
1182 2002-12-02 J. Brobecker <brobecker@gnat.com>
1183
1184 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1185 why aix-thread.o is not listed.
1186
1187 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1188
1189 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1190 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1191 * gdbarch.h, gdbarch.c: Re-generate.
1192 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1193 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1194 * config/pa/tm-hppa.h, frame.h: Update.
1195 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1196 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1197 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1198 * cris-tdep.c, alpha-tdep.c: Update.
1199 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1200 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1201 (get_prev_frame): Ditto.
1202
1203 2002-11-30 Andrew Cagney <cagney@redhat.com>
1204
1205 * exec.c (xfer_memory): Replace boolean with int.
1206 * p-exp.y: Use 0 instead of false.
1207 * corelow.c (gdb_check_format): Change return type to int from
1208 boolean.
1209 * utils.c: Don't include <curses.h> or <term.h> first.
1210
1211 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1212
1213 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1214 (m68hc11_register_byte): Remove.
1215 (m68hc11_gdbarch_init): Don't set the above.
1216
1217 2002-11-29 Andrew Cagney <cagney@redhat.com>
1218
1219 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1220 by calling get_selected_frame.
1221 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1222 set_current_frame, create_new_frame, select_frame and
1223 get_current_frame.
1224 * remote-e7000.c (e7000_start_remote): Ditto.
1225 * remote-mips.c (common_open): Ditto
1226 * remote-rdp.c (remote_rdp_open): Ditto.
1227
1228 2002-11-29 Andreas Schwab <schwab@suse.de>
1229
1230 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1231 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1232 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1233 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1234 read_memory_unsigned_integer instead of read_memory_integer when
1235 dealing with addresses and instruction opcodes.
1236 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1237 (m68k_linux_frame_saved_pc): Likewise.
1238
1239 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1240
1241 * stack.c (selected_frame, select_frame): Move from here ...
1242 * frame.c (selected_frame, select_frame): ... to here. Include
1243 "language.h".
1244 * Makefile.in (frame.o): Update dependencies.
1245 * frame.c (get_selected_frame): New function.
1246 * frame.h (get_selected_frame): Declare.
1247 (deprecated_selected_frame): Rename selected_frame.
1248 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1249 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1250 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1251 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1252 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1253 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1254 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1255 * z8k-tdep.c, cli/cli-cmds.c: Update.
1256
1257 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1258
1259 * frame.h (get_selected_block): Add comments.
1260
1261 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1262
1263 * frame.c (pc_notcurrent): New function.
1264 (find_frame_sal): New function.
1265 * frame.h (find_frame_sal): Declare.
1266 (struct symtab_and_line): Add opaque declaration.
1267 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1268 find_pc_line.
1269 (frame_info): Ditto.
1270 * ada-lang.c (find_printable_frame): Ditto.
1271
1272 2002-11-28 J. Brobecker <brobecker@gnat.com>
1273
1274 * configure.in: Check that the pthdebug library is recent enough
1275 before enabling thread support on native AiX.
1276 * configure: Regenerate.
1277
1278 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1279 from the list of object files as it is now appended by configure
1280 if thread support is enabled.
1281 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1282 if thread support is enabled.
1283
1284 2002-11-28 Andrew Cagney <cagney@redhat.com>
1285
1286 * stack.c (get_selected_block): In-line get_current_block.
1287 * frame.h (get_current_block): Delete declaration.
1288 * blockframe.c (get_current_block): Delete function.
1289
1290 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1291
1292 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1293 USE_GENERIC_DUMMY_FRAMES.
1294 * gdbarch.h, gdbarch.c: Regenerate.
1295 * valops.c, frame.c: Update.
1296 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1297 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1298 * config/pa/tm-hppa.h, blockframe.c: Update.
1299 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1300 * m68k-tdep.c, alpha-tdep.c: Ditto.
1301
1302 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1303 * mips-tdep.c: Ditto.
1304
1305 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1306
1307 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1308 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1309 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1310 * gdbarch.c, gdbarch.h: Re-generate.
1311 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1312 (CALL_DUMMY_LOCATION): Delete macro definition.
1313 (PC_IN_CALL_DUMMY): Delete macro definitions.
1314
1315 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1316 default is already generic_pc_in_call_dummy.
1317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1318 * v850-tdep.c (v850_gdbarch_init): Ditto.
1319 * sh-tdep.c (sh_gdbarch_init): Ditto.
1320 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1321 * mips-tdep.c (mips_gdbarch_init): Ditto.
1322 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1325 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1326 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1327 * avr-tdep.c (avr_gdbarch_init): Ditto.
1328
1329 * arm-tdep.c (arm_gdbarch_init): Do not set
1330 use_generic_dummy_frames, default is already 1.
1331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1332 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1333 * v850-tdep.c (v850_gdbarch_init): Ditto.
1334 * sh-tdep.c (sh_gdbarch_init): Ditto.
1335 * s390-tdep.c (s390_gdbarch_init): Ditto.
1336 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1338 * mips-tdep.c (mips_gdbarch_init): Ditto.
1339 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1341 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1342 * i386-tdep.c (i386_gdbarch_init): Ditto.
1343 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1344 * frv-tdep.c (frv_gdbarch_init): Ditto.
1345 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1346 * cris-tdep.c (cris_gdbarch_init): Ditto.
1347 * avr-tdep.c (avr_gdbarch_init): Ditto.
1348
1349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1350 call_dummy_location, default is already AT_ENTRY_POINT.
1351 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1352 * v850-tdep.c (v850_gdbarch_init): Ditto.
1353 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1354 * sh-tdep.c (sh_gdbarch_init): Ditto.
1355 * s390-tdep.c (s390_gdbarch_init): Ditto.
1356 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1357 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1358 * mips-tdep.c (mips_gdbarch_init): Ditto.
1359 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1361 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1362 * i386-tdep.c (i386_gdbarch_init): Ditto.
1363 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1364 * frv-tdep.c (frv_gdbarch_init): Ditto.
1365 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1366 * cris-tdep.c (cris_gdbarch_init): Ditto.
1367 * avr-tdep.c (avr_gdbarch_init): Ditto.
1368 * arm-tdep.c (arm_gdbarch_init): Ditto.
1369 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1370
1371 2002-11-28 Andrew Cagney <cagney@redhat.com>
1372
1373 * frame.h: Update comments on set_current_frame, create_new_frame,
1374 flush_cached_frames, reinit_frame_cache, select_frame and
1375 selected_frame.
1376
1377 2002-11-27 Andrew Cagney <cagney@redhat.com>
1378
1379 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1380 deprecated pc_in_call_dummy function.
1381 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1382 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1383 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1384 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1385 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1386
1387 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1388
1389 * Makefile.in: Remove Tix dependencies.
1390 * acinclude.m4: Ditto.
1391 * aclocal.m4: Ditto.
1392 * configure.in: Ditto.
1393 * configure: Regenerated.
1394
1395 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1396
1397 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1398 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1399 * gdbarch.c: Re-generate.
1400
1401 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1402
1403 * config/h8500/tm-h8500.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/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1407 pc_in_call_dummy_at_entry_point.
1408 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1409 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1410 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1411 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1412 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1413 pc_in_call_dummy_on_stack.
1414 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1415 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1416 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1417 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1418 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1419
1420 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1421
1422 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1423 pc_in_call_dummy_before_text_end
1424 (deprecated_pc_in_call_dummy_after_text_end): Rename
1425 pc_in_call_dummy_after_text_end.
1426 (deprecated_pc_in_call_dummy_on_stack): Rename
1427 pc_in_call_dummy_on_stack.
1428 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1429 pc_in_call_dummy_at_entry_point.
1430 * m68k-tdep.c (m68k_gdbarch_init): Update.
1431 * s390-tdep.c (s390_gdbarch_init): Update.
1432 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1433 * vax-tdep.c (vax_gdbarch_init): Update.
1434 * sparc-tdep.c (sparc_gdbarch_init): Update.
1435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1437 * i386-tdep.c (i386_gdbarch_init): Update.
1438 * frv-tdep.c (frv_gdbarch_init): Update.
1439 * cris-tdep.c (cris_gdbarch_init): Update.
1440 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1441 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1442 (deprecated_pc_in_call_dummy_after_text_end)
1443 (deprecated_pc_in_call_dummy_on_stack)
1444 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1445 * alpha-tdep.c (alpha_gdbarch_init): Update.
1446
1447 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1448
1449 * acconfig.h (HAVE_PREAD64): Add.
1450 * configure.in: Check for pread64.
1451 * config.in: Regenerated.
1452 * configure: Regenerated.
1453 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1454 * linux-proc.c (linux_proc_xfer_memory): New function.
1455 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1456
1457 2002-11-25 David Carlton <carlton@math.stanford.edu>
1458
1459 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1460 pdi's with no name.
1461
1462 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1463
1464 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1465 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1466
1467 2002-11-25 Jim Blandy <jimb@redhat.com>
1468
1469 * symfile.c (init_objfile_sect_indices): New function.
1470 (default_symfile_offsets): Move the section-index-initializing
1471 stuff into init_objfile_sect_indices, and call that.
1472
1473 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1474 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1475
1476 * symfile.c (syms_from_objfile): Adjust indentation.
1477
1478 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1479 || info_verbose isn't true.
1480
1481 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1482
1483 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1484 default to get_frame_base.
1485 * gdbarch.h, gdbarch.c: Regenerate.
1486 * arch-utils.c (default_frame_address): Delete function.
1487 * arch-utils.h (default_frame_address): Delete declaration
1488
1489 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1490
1491 * varobj.c (find_frame_addr_in_frame_chain):
1492 Use get_frame_base instead of FRAME_FP,
1493 obvious fix.
1494
1495 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1496
1497 * frame.h (FRAME_FP): Delete macro.
1498 (get_frame_base): New function declaration.
1499 * frame.c (get_frame_base): New function.
1500 (get_frame_id): Use ->frame.
1501 (frame_find_by_id): Rewrite to use get_frame_id.
1502 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1503 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1504 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1505 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1506 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1507 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1508 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1509
1510 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1511
1512 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1513
1514 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1515
1516 * frame.c (set_unwind_by_pc): Revert change below, use
1517 PC_IN_CALL_DUMMY.
1518 (get_prev_frame): Ditto.
1519
1520 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1521
1522 * dummy-frame.c (pc_in_dummy_frame): New function.
1523 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1524 (find_dummy_frame): Update comment.
1525 (generic_pop_current_frame): Use get_frame_type.
1526 * dummy-frame.h (pc_in_dummy_frame): Declare.
1527 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1528 (create_new_frame): Use pc_in_dummy_frame.
1529 (get_prev_frame): Use pc_in_dummy_frame.
1530 (frame_saved_regs_register_unwind): Use get_prev_frame.
1531 (deprecated_generic_get_saved_register): Use get_prev_frame.
1532
1533 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1534
1535 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1536 from here ...
1537 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1538 (varobj_create): Note that frame ID should be used.
1539 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1540
1541 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1542
1543 * breakpoint.c: Include "gdb_assert.h".
1544 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1545 not being used.
1546 * Makefile.in (breakpoint.o): Update dependencies.
1547 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1548 deprecated_frame_in_dummy.
1549 * stack.c (print_frame_info_base): Ditto.
1550 (frame_info): Ditto.
1551 (print_frame_info_base): Ditto. Delete dead code.
1552
1553 2002-11-23 Andreas Schwab <schwab@suse.de>
1554
1555 * Makefile.in (m68k_tdep_h): Define.
1556 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1557 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1558 * m68k-tdep.c: Move register number enum ...
1559 * m68k-tdep.h: ... to this new file and rename the constants from
1560 E_* to M68K_*. All uses changed.
1561 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1562 * abug-rom.c: Include "m68k-tdep.h". Use
1563 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1564 * cpu32bug-rom.c: Likewise.
1565 * dbug-rom.c: Likewise.
1566 * m68k-tdep.c: Likewise.
1567 * m68klinux-nat.c: Likewise.
1568 * remote-est.c: Likewise.
1569 * rom68k-rom.c: Likewise.
1570 * config/m68k/tm-linux.h: Likewise.
1571
1572 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1573
1574 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1575 dummy frame initialization code.
1576 * mips-tdep.c (mips_gdbarch_init): Ditto.
1577
1578 2002-11-22 Christopher Faylor <cgf@redhat.com>
1579
1580 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1581 attach will hang.
1582
1583 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1584
1585 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1586 to default_frame_address.
1587 * gdbarch.h, gdbarch.c: Re-generate.
1588
1589 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1590 or frame_locals_address to default_frame_address.
1591 * m68k-tdep.c (m68k_gdbarch_init): Update.
1592 * i386-tdep.c (i386_gdbarch_init): Update.
1593 * frv-tdep.c (frv_gdbarch_init): Update.
1594 * sh-tdep.c (sh_gdbarch_init): Update.
1595 * v850-tdep.c (v850_gdbarch_init): Update.
1596 * sparc-tdep.c (sparc_gdbarch_init): Update.
1597 * mips-tdep.c (mips_gdbarch_init): Update.
1598 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1599 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1601
1602 * cris-tdep.c (cris_frame_args_address): Delete function.
1603 (cris_frame_locals_address): Delete function.
1604 (cris_gdbarch_init): Do not set frame_args_address or
1605 frame_locals_address.
1606
1607 2002-11-22 Michael Snyder <msnyder@redhat.com>
1608
1609 * thread-db.c (thread_db_load): Tell the user what's going on
1610 if dlopen fails on libthread_db.
1611
1612 2002-11-23 Andreas Schwab <schwab@suse.de>
1613
1614 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1615 invariant return values.
1616
1617 2002-11-22 Andreas Schwab <schwab@suse.de>
1618
1619 * valops.c (value_slice): Move declaration of `offset' to avoid
1620 warning.
1621
1622 2002-11-22 Christopher Faylor <cgf@redhat.com>
1623
1624 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1625 (struct so_stuff): Add end_addr field.
1626 (register_loaded_dll): Calculate and store end address of loaded dll.
1627 (solib_address): New function.
1628 (child_solib_loaded_library_pathname): Pass carefully constructed
1629 section info to safe_symbol_file_add rather than ignoring it.
1630 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1631 DLL is loaded.
1632 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1633 (child_create_inferior): Fix a compiler warning.
1634 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1635 (solib_address): Declare new function.
1636
1637 2002-11-22 Andreas Schwab <schwab@suse.de>
1638
1639 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1640 and FPS registers.
1641
1642 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1643
1644 * maint.c (_initialize_maint_cmds): Fix typo. From
1645 Francesco Potorti` <pot@gnu.org>.
1646
1647 2002-11-21 Andrew Cagney <cagney@redhat.com>
1648
1649 * mips-tdep.c (mips_dump_tdep): Delete references to
1650 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1651 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1652 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1653 * printcmd.c (build_address_symbolic): Delete calls to
1654 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1655 (address_info): Ditto.
1656 Fix PR gdb/773.
1657
1658 2002-11-19 Klee Dienes <kdienes@apple.com>
1659 Adam Fedor <fedor@gnu.org>
1660
1661 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1662 the ability to explicitly specify the quote characters and word
1663 break characters; if NULL is specified for either, use the old
1664 behavior of using the characters used by the completer.
1665 (skip_chars): New function. Convenience wrapper around
1666 skip_quoted_chars to provide the original skip_chars behavior.
1667 * completer.h (skip_quoted_chars): Add prototype.
1668
1669 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1670
1671 Problems reported by Paul Eggert.
1672 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1673
1674 2002-11-19 Andreas Schwab <schwab@suse.de>
1675
1676 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1677 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1678 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1679 (m68k_linux_frame_saved_pc): Move to ...
1680 * m68klinux-tdep.c: ... here. New file.
1681 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1682 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1683
1684 2002-11-19 Adam Fedor <fedor@gnu.org>
1685
1686 * objc-exp.y: Revert to old skip_quoted usage.
1687
1688 2002-11-19 Adam Fedor <fedor@gnu.org>
1689
1690 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1691 (objc_lang_h): Define.
1692 (YYFILES): Add objc-exp.tab.c.
1693 (local-maintainer-clean): Remove objc-exp.tab.c.
1694 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1695
1696 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1697
1698 * p-exp.y (typecast rule): Add automatic dereference of
1699 pascal classes if needed.
1700 (THIS): Set current_type.
1701 Automatically dereference pascal classes.
1702 (typebase rule): Add ^typebase recognition.
1703
1704 2002-11-18 Adam Fedor <fedor@gnu.org>
1705
1706 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1707 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1708 (op_name): Handle OP_OBJC_SELF.
1709 * Makefile.in (expprint.o): Add additional depends.
1710
1711 2002-11-18 Adam Fedor <fedor@gnu.org>
1712
1713 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1714 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1715 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1716 * objc-exp.y: Likewise.
1717
1718 2002-11-18 Adam Fedor <fedor@gnu.org>
1719
1720 * gdb/parser-defs.h: (struct objc_class_str): New structure
1721 for parsing ObjC classes.
1722
1723 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1724
1725 * stack.c (frame_relative_level): Copy function from here ...
1726 * frame.c (frame_relative_level): ...to here.
1727
1728 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1729
1730 * frame.h (enum frame_type): Define.
1731 (get_frame_type): Declare.
1732 (struct frame_info): Add field `type'. Delete field
1733 signal_handler_caller.
1734 (deprecated_set_frame_signal_handler_caller): Declare.
1735 * frame.c (get_frame_type): New function.
1736 (deprecated_set_frame_type): New function.
1737 (create_new_frame): Set the frame's type.
1738 (get_prev_frame): Similar.
1739 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1740 * s390-tdep.c: Ditto.
1741 * m68klinux-nat.c: Ditto.
1742 * ns32k-tdep.c: Ditto.
1743 * x86-64-linux-tdep.c: Ditto.
1744 * vax-tdep.c: Ditto.
1745 * rs6000-tdep.c: Ditto.
1746 * ppc-linux-tdep.c: Ditto.
1747 * i386-interix-tdep.c: Ditto.
1748 * mips-tdep.c: Ditto.
1749 * m68k-tdep.c: Ditto.
1750 * hppa-tdep.c: Ditto.
1751 * ia64-tdep.c: Ditto.
1752 * cris-tdep.c: Ditto.
1753 * arm-tdep.c: Ditto.
1754 * alpha-tdep.c: Ditto.
1755 * i386-tdep.c: Ditto.
1756 * stack.c: Ditto.
1757 * ada-lang.c: Ditto.
1758 * blockframe.c: Update.
1759 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1760 deprecated_set_frame_type instead of signal_handler_caller.
1761 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1762 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1763 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1764
1765 2002-11-18 Klee Dienes <kdienes@apple.com>
1766
1767 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1768
1769 2002-11-18 Klee Dienes <kdienes@apple.com>
1770
1771 * buildsym.c (pop_context): Add comment.
1772
1773 2002-11-18 Klee Dienes <kdienes@apple.com>
1774
1775 * buildsym.h (pop_context): Convert to function, defined in
1776 buildsym.c.
1777 * buildsym.c: Include gdb_assert.h.
1778 (pop_context): Implement as C function. Add check for stack
1779 underflow.
1780 * dbxread.c (process_one_symbol): Complain and stop processing
1781 that symbol if we are already at the top of the context stack for
1782 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1783 when processing N_RBRAC.
1784
1785 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1788 define.
1789 (struct target_waitstatus): Add opaque definition.
1790 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1791 * exec.c (init_exec_ops): Likewise.
1792 * fork-child.c (clone_and_follow_inferior): Remove.
1793 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1794 * inferior.h (clone_and_follow_inferior): Remove prototype.
1795 * infrun.c (follow_fork_mode_both): Remove.
1796 (follow_fork_mode_kind_names): Remove commented out "both".
1797 (follow_inferior_fork): Remove follow_fork_mode_both support.
1798 * inftarg.c (child_clone_and_follow_inferior): Remove.
1799 (child_post_follow_inferior_by_clone): Remove.
1800 (init_child_ops): Don't set to_clone_and_follow_inferior
1801 or to_post_follow_inferior_by_clone.
1802 * target.c (default_clone_and_follow_inferior): Remove.
1803 (cleanup_target): Don't set to_clone_and_follow_inferior
1804 or to_post_follow_inferior_by_clone.
1805 (find_default_clone_and_follow_inferior): Remove.
1806 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1807 (debug_to_clone_and_follow_inferior): Remove.
1808 (debug_to_post_follow_inferior_by_clone): Remove.
1809 (setup_target_debug): Don't set to_clone_and_follow_inferior
1810 or to_post_follow_inferior_by_clone.
1811 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1812 and to_post_follow_inferior_by_clone.
1813 (child_clone_and_follow_inferior): Remove prototype.
1814 (child_post_follow_inferior_by_clone): Remove prototype.
1815 (target_clone_and_follow_inferior): Remove macro.
1816 (target_post_follow_inferior_by_clone): Remove macro.
1817 (find_default_clone_and_follow_inferior): Remove prototype.
1818
1819 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1820
1821 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1822 inferior_has_vforked, and inferior_has_execd instead of
1823 target_has_forked, target_has_vforked, and target_has_execd.
1824 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1825 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1826 (CHILD_WAIT): Define.
1827 (child_wait): Add prototype.
1828 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1829 Add prototype.
1830 (hpux_has_vforked): Likewise, from child_has_vforked.
1831 (hpux_has_execd): Likewise, from child_has_execd.
1832 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1833 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1834 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1835 and hpux_has_syscall_event instead of the target hooks.
1836 * infrun.c (inferior_has_forked, inferior_has_vforked)
1837 (inferior_has_execd): New functions.
1838 * inftarg.c (not_same_real_pid): Remove.
1839 (child_wait): Remove references to not_same_real_pid,
1840 target_has_forked, target_has_vforked, target_has_execd,
1841 and target_has_syscall_event.
1842 (child_has_forked, child_has_vforked, child_has_execd)
1843 (child_has_syscall_event): Remove.
1844 (init_child_ops): Remove references to child_has_forked,
1845 child_has_vforked, child_has_execd, and child_has_syscall_event.
1846 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1847 (hpux_has_vforked): Likewise, from child_has_vforked.
1848 (hpux_has_execd): Likewise, from child_has_execd.
1849 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1850 * target.c (cleanup_target): Remove references to
1851 to_has_forked, to_has_vforked, to_has_execd, and
1852 to_has_syscall_event.
1853 (update_current_target): Likewise.
1854 (setup_target_debug): Likewise.
1855 (debug_to_has_forked): Remove.
1856 (debug_to_has_vforked): Remove.
1857 (debug_to_has_execd): Remove.
1858 (debug_to_has_syscall_event): Remove.
1859 * target.h (struct target_ops): Remove to_has_forked.
1860 to_has_vforked, to_has_execd, and to_has_syscall_event.
1861 (child_has_forked, child_has_vforked, child_has_execd)
1862 (child_has_syscall_event): Remove prototypes.
1863 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1864 prototypes.
1865 (target_has_forked, target_has_vforked, target_has_execd)
1866 (target_has_syscall_event): Remove macros.
1867
1868 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1869
1870 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1871 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1872 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1873 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1874 * target.c (cleanup_target): Remove reference to
1875 to_can_follow_vfork_prior_to_exec.
1876 (update_current_target): Likewise.
1877 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1878 (setup_target_debug): Remove reference to
1879 to_can_follow_vfork_prior_to_exec.
1880 * target.h (struct target_ops): Remove
1881 to_can_follow_vfork_prior_to_exec.
1882 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1883 (target_can_follow_vfork_prior_to_exec): Remove definition.
1884 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1885 define.
1886 * infrun.c (follow_vfork_when_exec): Remove.
1887 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1888 (follow_exec): Likewise.
1889 (handle_inferior_event): Likewise.
1890 (keep_going): Likewise.
1891
1892 2002-11-15 Andrew Cagney <cagney@redhat.com>
1893
1894 * frame.c (generic_unwind_get_saved_register): Make static.
1895 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1896 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1897 defaults to generic_unwind_get_saved_register.
1898 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1899 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1900 * frv-tdep.c (frv_gdbarch_init): Ditto.
1901 * i386-tdep.c (i386_gdbarch_init): Ditto.
1902 * s390-tdep.c (s390_gdbarch_init): Ditto.
1903 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1904 * v850-tdep.c (v850_gdbarch_init): Ditto.
1905 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1906 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1907 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1908
1909 2002-11-15 Andrew Cagney <cagney@redhat.com>
1910
1911 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1912 i386-tdep.c.
1913
1914 2002-11-15 Andrew Cagney <cagney@redhat.com>
1915
1916 * frame.h (sigtramp_saved_pc): Delete declaration.
1917 * blockframe.c (sigtramp_saved_pc): Delete function.
1918 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1919 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1920 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1921 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1922
1923 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1924
1925 * frame.c (frame_pc_unwind): New function.
1926 (frame_saved_regs_pc_unwind): New function.
1927 (frame_register_unwind): Pass unwind_cache instead of
1928 register_unwind_cache.
1929 (set_unwind_by_pc): Add unwind_pc parameter, set.
1930 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1931 (get_prev_frame): Ditto.
1932 * frame.h (frame_pc_unwind_ftype): Declare.
1933 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1934 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1935 (frame_pc_unwind): Declare.
1936 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1937 (struct dummy_frame): Add comment mentioning that values are for
1938 previous frame.
1939 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1940 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1941 (generic_file_frame_chain_valid): Ditto.
1942 * stack.c (frame_info): Ditto.
1943
1944 2002-11-15 David Carlton <carlton@math.stanford.edu>
1945
1946 * linespec.c (locate_first_half): New function.
1947 (decode_line_1): Move code into locate_first_half.
1948
1949 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1950
1951 * complaints.h: Add comment explaining how to eliminate a
1952 deprecated_complain call.
1953 * complaints.h: Fix spelling errors.
1954
1955 2002-11-15 David Carlton <carlton@math.stanford.edu>
1956
1957 * printcmd.c: Remove #include "disasm.h".
1958
1959 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1960
1961 * frame.h: Move the most relevant interface functions to the start
1962 of the file.
1963
1964 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1965
1966 * regcache.h (deprecated_registers): Rename registers.
1967 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1968 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1969 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1970 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1971 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1972 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1973 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1974 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1975 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1976 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1977 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1978 * v850ice.c: Update.
1979
1980 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1981
1982 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1983 NULL buffer.
1984
1985 2002-11-13 Andrew Cagney <cagney@redhat.com>
1986
1987 * regcache.h (deprecated_read_register_bytes): Rename
1988 read_register_bytes.
1989 (deprecated_write_register_bytes): Rename write_register_bytes.
1990 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1991 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1992 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1993 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1994 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1995 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1996 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1997 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1998 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1999 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2000 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2001 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2002 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2003 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2004
2005 2002-11-13 Jim Blandy <jimb@redhat.com>
2006
2007 * findvar.c (read_var_value): Doc fix.
2008
2009 2002-11-13 Andrew Cagney <cagney@redhat.com>
2010
2011 * regcache.c (struct regcache): Replace passthough_p with
2012 readonly_p.
2013 (regcache_xmalloc): Initialize readonly_p.
2014 (build_regcache): Initialize readonly_p.
2015 (regcache_save): New function.
2016 (regcache_restore): New function.
2017 (regcache_cpy): Re-implement using regcache_save and
2018 regcache_restore.
2019 (regcache_raw_read): Update.
2020 (regcache_cooked_read): When a read-only cache, checked for cached
2021 pseudo register values.
2022 (regcache_raw_write): Assert that the cache is not read-only.
2023 Remove code handling a non-passthrough cache.
2024 * regcache.h (regcache_save): Declare.
2025 (regcache_restore): Declare.
2026
2027 2002-11-13 Andrew Cagney <cagney@redhat.com>
2028
2029 * regcache.c (struct regcache_descr): Add fields
2030 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2031 (init_legacy_regcache_descr): Compute the size of a cooked
2032 register cache and then assign that to sizeof_raw_registers. Set
2033 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2034 (init_legacy_regcache_descr): Ditto.
2035
2036 2002-11-13 Andrew Cagney <cagney@redhat.com>
2037
2038 * regcache.c (register_buffer): Move to near start of file, update
2039 description.
2040 (regcache_raw_read): Use.
2041 (regcache_raw_write): Use.
2042 (struct regcache): Rename raw_registers to registers and
2043 raw_register_valid_p to register_valid_p.
2044 (regcache_xmalloc): Update.
2045 (regcache_xfree): Update.
2046 (register_buffer): Update.
2047 (regcache_cpy): Update.
2048 (regcache_cpy_no_passthrough): Update.
2049 (regcache_valid_p): Update.
2050 (deprecated_grub_regcache_for_registers): Update.
2051 (deprecated_grub_regcache_for_register_valid): Update.
2052 (set_register_cached): Update.
2053 (regcache_raw_write): Update.
2054
2055 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2056
2057 * p-exp.y (name_not_typename): Use copy_name to
2058 set current_type variable for fields of THIS.
2059
2060 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2061
2062 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2063 * monitor.c (init_base_monitor_ops): Likewise.
2064 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2065 * remote-array.c (init_array_ops): Likewise.
2066 * remote-e7000.c (init_e7000_ops): Likewise.
2067 * remote-es.c (init_es1800_ops): Likewise.
2068 (init_es1800_child_ops): Likewise.
2069 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2070 * remote-sim.c (init_gdbsim_ops): Likewise.
2071 * remote-st.c (init_st2000_ops): Likewise.
2072 * sol-thread.c (init_sol_core_ops): Likewise.
2073 (init_sol_thread_ops): Likewise.
2074 * v850ice.c (init_850ice_ops): Likewise.
2075 * win32-nat.c (init_child_ops): Likewise.
2076 * wince.c (init_child_ops): Likewise.
2077
2078 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2079
2080 * utils.c (gdb_realpath): Make rp a constant pointer.
2081
2082 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2083
2084 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2085 a constant buffer; cannonicalize_file_name(); realpath() with a
2086 pathconf() defined buffer, xstrdup().
2087
2088 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2089
2090 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2091 to hang2.C; hang3.c to hang3.C.
2092
2093 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2094
2095 * findvar.c (read_var_value): Reenable TLS code.
2096
2097 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2098 Jim Blandy <jimb@redhat.com>
2099
2100 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2101 * target.c (update_current_target): Add
2102 to_get_thread_local_address.
2103 * target.h (to_get_thread_local_address): Export.
2104 (target_get_thread_local_address): Define.
2105 (target_get_thread_local_address_p): Define.
2106 * thread-db.c: Include solib-svr4.h.
2107 (td_thr_tls_get_addr_p): Define.
2108 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2109 (thread_db_get_thread_local_address): New function.
2110 (init_thread_db_ops): Initialize to_get_thread_local_address.
2111 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2112 * configure: Regenerate.
2113 * config.in: Regenerate.
2114
2115 2002-11-11 David Carlton <carlton@math.stanford.edu>
2116
2117 * linespec.c (set_flags): New function.
2118 (decode_line_1): Move code into set_flags.
2119
2120 2002-11-11 David Carlton <carlton@math.stanford.edu>
2121
2122 * linespec.c (decode_line_1): Move chunks of code to separate
2123 functions.
2124 (initialize_defaults): New function.
2125 (decode_indirect): New function.
2126
2127 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2128
2129 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2130 instead of void_code_ptr.
2131 (sigtramp_saved_pc): Ditto.
2132
2133 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2134 i386_fp_regnum_p.
2135
2136 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2137
2138 * gdbtypes.h (struct main_type): Move artificial flag out of
2139 loc. New member of ``struct field'' named static_kind. Reduce
2140 overloaded meaning of bitsize.
2141 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2142 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2143 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2144
2145 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2146 new fields.
2147 (template_to_fixed_record_type, template_to_static_fixed_type)
2148 (to_record_with_fixed_variant_part): Likewise.
2149 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2150 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2151 * dwarfread.c (struct_type, enum_type): Likewise.
2152 * hpread.c (hpread_read_enum_type)
2153 (hpread_read_function_type, hpread_read_doc_function_type)
2154 (hpread_read_struct_type): Likewise.
2155 * mdebugread.c (parse_symbol): Likewise.
2156
2157 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2158
2159 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2160 * stack.c (print_frame_info_base): Update.
2161 (print_frame_info_base, frame_info): Update.
2162 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2163 (sparc_frame_saved_pc): Update.
2164 * ada-lang.c (find_printable_frame): Update.
2165 * breakpoint.c (deprecated_frame_in_dummy): Update.
2166
2167 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2168
2169 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2170 defined.
2171 (regmap): Extend to cover all registers.
2172 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2173 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2174 definitions.
2175 (fetch_register, sore_register): Simplify.
2176 (old_fetch_inferior_registers, old_store_inferior_registers):
2177 Remove functions.
2178 (cannot_fetch_register, cannot_store_register): Change
2179 implementation to use regmap array to decide which registers
2180 cannot be fetched/stored. This removes $orig_eax from the
2181 registers that cannot be fetched/stored.
2182 (fetch_inferior_registers): Call fetch_register directly instead
2183 of calling old_fetch_inferior_registers.
2184 (store_inferior_registers): Call store_register directly instead
2185 of calling old_store_inferior_registers.
2186 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2187 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2188 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2189
2190 2002-11-09 Klee Dienes <kdienes@apple.com>
2191
2192 * i387-tdep.c (i387_supply_register): When called with NULL as a
2193 buffer, mark the register as not provided (to mirror the behavior
2194 of supply_register).
2195 (i387_supply_fxsave): Ditto.
2196 (i387_supply_fsave): Ditto (inherits the behavior from
2197 i387_supply_register).
2198
2199 2002-11-09 Klee Dienes <kdienes@apple.com>
2200
2201 * blockframe.c (sigtramp_saved_pc): Use
2202 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2203 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2204 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2205
2206 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2207
2208 * frame.c (get_prev_frame): Test prev_p to identify a previously
2209 unwound frame. Initialize prev_p.
2210 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2211 comment.
2212
2213 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2214
2215 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2216 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2217 more comments. Zap dead code.
2218
2219 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2220
2221 * infcmd.c (print_vector_info, print_float_info): Move code that
2222 checks whether the target has any registers and whether there is a
2223 selected frame up, such that it is also used if a target provides
2224 multi-arch definitions of these functions.
2225
2226 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2227
2228 * Makefile.in (DESTDIR): Define.
2229 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2230 prefix.
2231
2232 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2233 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2234
2235 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2236
2237 * i386-linux-tdep.c: Include "reggroups.h".
2238 (i386_linux_register_reggroup_p): New function.
2239 (i386_linux_init_abi): Set register_reggroup_p to
2240 i386_linux_register_reggroup_p.
2241 * i386-tdep.h (i386_register_reggroup_p): Declare.
2242 * i386-tdep.c: Include "reggroups.h".
2243 (i386_init_reggroups): New function.
2244 (i386_add_reggroups): New function.
2245 (i386_register_reggroup_p): New function.
2246 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2247 (_initialize_i386_tdep): Call i386_init_reggroups.
2248 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2249 specific reggroups.
2250
2251 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2252
2253 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2254 request that's available in *BSD.
2255
2256 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2257
2258 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2259 FDOFF_REGNUM.
2260
2261 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2262
2263 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2264 * dummy-frame.c (find_dummy_frame): Rename
2265 generic_find_dummy_frame, make static. Return the dummy frame
2266 instead of the regcache.
2267 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2268 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2269 (dummy_frame_register_unwind): Rename
2270 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2271 * dummy-frame.h (dummy_frame_register_unwind): Rename
2272 generic_call_dummy_register_unwind.
2273
2274 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2275
2276 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2277 except the inclusion of "i386/tm-i386.h", to...
2278 * config/i386/nm-i386v42mp.h: ...here.
2279 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2280
2281 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2282
2283 * Makefile.in (frame.o): Update dependencies.
2284 * blockframe.c (current_frame, frame_obstack_alloc)
2285 (frame_saved_regs_zalloc, get_current_frame)
2286 (set_current_frame, create_new_frame)
2287 (set_unwind_by_pc, get_next_frame)
2288 (flush_cached_frames, reinit_frame_cache)
2289 (frame_saved_regs_register_unwind)
2290 (deprecated_generic_get_saved_register)
2291 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2292 (_initialize_blockframe): Move frame code from here...
2293 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2294 "annotate.h" and "dummy-frame.h".
2295 (_initialize_frame): New function.
2296
2297 2002-11-08 Jim Blandy <jimb@redhat.com>
2298
2299 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2300 when we finish a function a context.
2301 * buildsym.h (outermost_context_p): New macro.
2302 (Bug analyzed by David Edelsohn.)
2303
2304 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2305
2306 * blockframe.c: Include "dummy-frame.h".
2307 (struct dummy_frame, dummy_frame_stack)
2308 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2309 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2310 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2311 (generic_save_call_dummy_addr, generic_pop_current_frame)
2312 (generic_pop_dummy_frame, generic_fix_call_dummy)
2313 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2314 dummy frame code from here...
2315 * dummy-frame.c: ...to here. New file.
2316 * dummy-frame.h: New file.
2317 (generic_call_dummy_register_unwind): Declare.
2318 (generic_find_dummy_frame): Declare.
2319 * Makefile.in (SFILES): Add dummy-frame.c.
2320 (dummy-frame.o): Specify dependencies.
2321 (dummy_frame_h): Define.
2322 (COMMON_OBS): Add dummy-frame.o.
2323 (blockframe.o): Update dependencies.
2324
2325 2002-11-08 Jim Blandy <jimb@redhat.com>
2326
2327 * dwarf2read.c (read_func_scope): Restore local_symbols and
2328 param_symbols after we finish the function context. (Based on a
2329 patch from David Edelsohn.)
2330
2331 2002-11-08 David Carlton <carlton@math.stanford.edu>
2332
2333 * linespec.c (symbol_found): New function.
2334 (minsym_found): New function.
2335 (decode_line_1): Separate out some code into separate functions.
2336
2337 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2338
2339 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2340 the benefit of the interix target.
2341 * i386-tdep.h (i386_frameless_signal_p): Declare.
2342
2343 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2344
2345 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2346 declaration that snuck in from change below.
2347
2348 2002-11-06 Andrew Cagney <cagney@redhat.com>
2349
2350 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2351 all callers.
2352 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2353 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2354 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2355 (i386_mxcsr_regnum_p): new function. Use instead of
2356 MXCSR_REGNUM_P.
2357 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2358 (i386_sse_regnum_p): Declare.
2359 (i386_mxcsr_regnum_p): Declare.
2360 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2361 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2362 (IS_FP_REGNUM): Update definition.
2363 (IS_FPU_CTRL_REGNUM): Update definition..
2364 (IS_SSE_REGNUM): Update definition..
2365 * i386v-nat.c (register_u_addr): Update.
2366 * go32-nat.c (fetch_register): Update.
2367 (store_register): Update.
2368
2369 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2370
2371 Preparation work to convert the hppa targets to multiarch partial.
2372
2373 * hppa-tdep.c: Add new functions replacing macro bodies from
2374 config/pa/tm-hppa.h. These function will be used to initialize
2375 the gdbarch structure. Import some comments from tm-hppa.h,
2376 and place them where appropriate, to avoid loosing them when
2377 we cleanup this file.
2378 (hppa_reg_struct_has_addr): New function.
2379 (hppa_inner_than): New function.
2380 (hppa_stack_align): New function.
2381 (hppa_pc_requires_run_before_use): New function.
2382 (hppa_instruction_nullified): New function.
2383 (hppa_register_byte): New function.
2384 (hppa_register_virtual_type): New function.
2385 (hppa_store_struct_return): New function.
2386 (hppa_cannot_store_register): New function.
2387 (hppa_frame_args_address): New function.
2388 (hppa_frame_locals_address): New function.
2389 (hppa_smash_text_address): New function.
2390 (hppa_coerce_float_to_double): New function. Requires the inclusion
2391 of "language.h".
2392
2393 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2394
2395 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2396 gdbarch-eligible macro to a call to the new associated function
2397 created in hppa-tdep.c.
2398 (INNER_THAN): Likewise.
2399 (STACK_ALIGN): Likewise.
2400 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2401 (INSTRUCTION_NULLIFIED): Likewise.
2402 (REGISTER_BYTE): Likewise.
2403 (REGISTER_VIRTUAL_TYPE): Likewise.
2404 (STORE_STRUCT_RETURN): Likewise.
2405 (CANNOT_STORE_REGISTER): Likewise.
2406 (FRAME_ARGS_ADDRESS): Likewise.
2407 (FRAME_LOCALS_ADDRESS): Likewise.
2408 (SMASH_TEXT_ADDRESS): Likewise.
2409 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2410 (ABOUT_TO_RETURN): Delete, as no longer used.
2411
2412 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2413
2414 * printcmd.c (disassemble_command): Remove obsolete function.
2415 (_initialize_printcmd): Do not create disassemble command here.
2416 * cli/cli-cmds.c (disassemble_command): New function. Implements
2417 disassemble command.
2418 (init_cli_cmds): Create disassemble command here instead.
2419
2420 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2421
2422 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2423
2424 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2425
2426 * regcache.h (regcache_cooked_read_using_offset_hack)
2427 (regcache_cooked_write_using_offset_hack): Delete declarations.
2428 (register_changed): Delete declaration.
2429 * regcache.c (regcache_cooked_read_using_offset_hack)
2430 (regcache_cooked_write_using_offset_hack): Delete functions.
2431 (cooked_xfer_using_offset_hack): Delete function.
2432 (register_changed): Delete function.
2433
2434 2002-11-07 Jim Blandy <jimb@redhat.com>
2435
2436 * macroscope.c: #include "complaints.h".
2437 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2438 but not in the macro table.
2439 * Makefile.in (macroscope.o): Record dependency.
2440
2441 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2442
2443 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2444
2445 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2446
2447 * regcache.c (deprecated_registers_fetched): Update.
2448 * regcache.h (deprecated_registers_fetched): Rename
2449 registers_fetched.
2450 * remote-vxsparc.c (vx_read_register): Update.
2451 * remote-vxmips.c (vx_read_register): Update.
2452 * remote-vx68.c (vx_read_register): Update.
2453 * irix5-nat.c (fetch_core_registers): Update.
2454 * mipsm3-nat.c (fetch_inferior_registers): Update.
2455 * sun3-nat.c (fetch_inferior_registers): Update.
2456 * symm-nat.c (fetch_inferior_registers): Update.
2457 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2458 (fetch_core_registers): Update.
2459 (fetch_kcore_registers): Update.
2460 * mips-nat.c (fetch_inferior_registers): Update.
2461 * corelow.c (get_core_registers): Update.
2462 * a68v-nat.c (fetch_inferior_registers): Update.
2463
2464 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2465
2466 Put in place the framework necessary for multiarching the hppa targets.
2467 * hppa-tdep.c (hppa_gdbarch_init): New function.
2468 (hppa_dump_tdep): New function.
2469 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2470 tdep structure dumper.
2471 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2472 until the multi-arching conversion has partially been completed.
2473
2474 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2475
2476 * valops.c (value_assign): Merge lval_register case into
2477 lval_reg_frame_relative. Use frame_register and
2478 regcache_cooked_write instead of get_saved_register and
2479 write_register_bytes. After flushing the register cache, try to
2480 re-select the selected frame.
2481
2482 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2483
2484 * regcache.h (deprecated_register_valid): Rename register_valid.
2485 * regcache.c: Update.
2486 * ia64-aix-nat.c: Update.
2487 * i386gnu-nat.c: Update.
2488 * alpha-nat.c: Update.
2489 * sparc-nat.c: Update.
2490 * lynx-nat.c: Update.
2491 * remote-mips.c: Update.
2492
2493 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2494
2495 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2496 to end of file, to be more consistent with the pratice followed
2497 by other targets.
2498
2499 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2500
2501 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2502 (print_float_info): Print registers in float_reggroup.
2503 (print_vector_info): Print registers in vector_reggroup.
2504 (default_print_registers_info): When all, print registers in
2505 all_reggroup. Otherwize, print registers in general_reggroup.
2506 (registers_info): Rewrite. Add support for register groups.
2507 Eliminate a goto.
2508
2509 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2510
2511 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2512 ages.
2513 (symtab_symbol_info): Remove eons old ifdeffed out code.
2514 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2515 command.
2516
2517 2002-11-06 Theodore A. Roth <troth@openavr.org>
2518
2519 * c-exp.y: Add missing semi-colons.
2520 * f-exp.y: Add missing semi-colons.
2521 * m2-exp.y: Add missing semi-colons.
2522 * p-exp.y: Add missing semi-colons.
2523 Add empty action to start rule to avoid a type clash error when
2524 building with bison >= 1.50.
2525
2526 2002-11-06 Jim Blandy <jimb@redhat.com>
2527
2528 * macrotab.h (struct macro_source_file): Doc fix.
2529
2530 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2531
2532 * varobj.c (child_exists, cplus_number_of_children): Change
2533 STREQ macro references to strcmp.
2534 (cplus_name_of_child): Change code to handle the fact that
2535 fields are not necessarily contiguous with regards to their
2536 access control. This is a fix for PR gdb/792.
2537
2538 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2539
2540 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2541 * gdbarch.h, gdbarch.c: Regnerate.
2542 * frame.h (frame_register): Declare.
2543 * frame.c (frame_register): New function.
2544 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2545 GET_SAVED_REGISTER, otherwize call
2546 generic_unwind_get_saved_register.
2547 (frame_register_read): Use frame_register instead of
2548 get_saved_register.
2549
2550 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2551
2552 From Jim Ingham <jingham@apple.com>:
2553 * event-top.c (gdb_disable_readline): New function.
2554 (_initialize_event_loop): Move comment.
2555
2556 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2557
2558 * event-loop.c (start_event_loop): Add comment.
2559 Update copyright.
2560
2561 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2562
2563 * infcmd.c (default_print_registers_info): Do not call
2564 PRINT_REGISTER_HOOK.
2565
2566 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2567
2568 * sparc-tdep.c (sparc_print_register_hook): Make static.
2569 (sparc_print_registers_info): New function.
2570 (sparc_do_registers_info): New function.
2571 (sparclet_print_registers_info): New function.
2572 (sparclet_do_registers_info): New function.
2573 (do_sparc_print_registers_info): New function.
2574 (sparc_print_registers): New static function, clone of infcmd.c's
2575 default_print_registers_info.
2576 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2577 (sparclet_do_registers_info): Declare.
2578 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2579 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2580 Re-define.
2581 (sparc_do_registers_info): Declare.
2582 (PRINT_REGISTER_HOOK): Delete macro.
2583 (sparc_print_register_hook): Delete declaration.
2584
2585 2002-11-05 David Carlton <carlton@math.stanford.edu>
2586
2587 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2588 functions.
2589 (lookup_symbol_aux_local): New function.
2590 (lookup_symbol_aux_symtabs): New function.
2591 (lookup_symbol_aux_psymtabs): New function.
2592
2593 2002-11-05 David Carlton <carlton@math.stanford.edu>
2594
2595 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2596 previous values of 'objfile' and 'block'.
2597
2598 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2599
2600 * values.c (value_change_enclosing_type): Set
2601 enclosing_type field correctly also for the case where
2602 more memory needs to be allocated.
2603
2604 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2605
2606 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2607 of puts_filtered.
2608
2609 * i387-tdep.c (i387_print_float_info): Replace calls to
2610 register_read and deprecated_read_register_gen with calls to
2611 frame_register_read, and make the necessary adjustments to the
2612 surrounding code.
2613
2614 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2615
2616 * gdbarch.sh (register_reggroup_p): Allow default value.
2617 * gdbarch.h, gdbarch.c: Regenerate.
2618
2619 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2620
2621 * regcache.h: Add coment indicating replacements for deprecated
2622 functions.
2623
2624 2002-11-02 Andrew Cagney <cagney@redhat.com>
2625
2626 * reggroups.h, reggroups.c: New files.
2627 * regcache.c: Include "reggroups.h".
2628 (enum regcache_dump_what): Add `regcache_dump_groups'.
2629 (regcache_dump): Contract size of the "Type" column. When
2630 specified, dump the register's groups.
2631 (maintenance_print_register_groups): New function.
2632 (_initialize_regcache): Add command `maint print register-groups'.
2633 * Makefile.in (COMMON_OBS): Add reggroups.o
2634 (SFILES): Add reggroups.c.
2635 (reggroups_h): Define.
2636 (regcache.o, gdbarch.o): Update dependencies.
2637 (reggroups.o): Specify dependencies.
2638 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2639 Add opaque declaration for `struct reggroup' in generated .h file.
2640 Include "reggroups.h" in generated .c file.
2641 gdbarch.h, gdbarch.c: Re-generate.
2642
2643 2002-11-02 Andrew Cagney <cagney@redhat.com>
2644
2645 * regcache.h (deprecated_read_register_gen): Rename
2646 read_register_gen.
2647 (deprecated_write_register_gen): Rename write_register_gen.
2648 * i387-tdep.c: Update.
2649 * x86-64-linux-nat.c: Update
2650 * wince.c: Update.
2651 * thread-db.c: Update.
2652 * win32-nat.c: Update.
2653 * mips-tdep.c: Update.
2654 * d10v-tdep.c: Update.
2655 * cris-tdep.c: Update.
2656 * remote-sim.c: Update.
2657 * remote-rdi.c: Update.
2658 * remote-rdp.c: Update.
2659 * frame.c: Update.
2660 * target.c: Update.
2661 * blockframe.c: Update.
2662 * x86-64-tdep.c: Update.
2663 * xstormy16-tdep.c: Update.
2664 * sh-tdep.c: Update.
2665 * s390-tdep.c: Update.
2666 * rs6000-tdep.c: Update.
2667 * sparc-tdep.c: Update.
2668 * i386-tdep.c: Update.
2669 * dwarf2cfi.c: Update.
2670 * regcache.c: Update.
2671
2672 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2673
2674 New interix-specific files:
2675 * config/i386/nm-interix.h: New file.
2676 * config/i386/interix.mh: New file.
2677 * config/i386/interix.mt: New file.
2678 * i386-interix-nat.c: New file.
2679 * i386-interix-tdep.c: New file.
2680
2681 2002-11-01 Andrew Cagney <cagney@redhat.com>
2682
2683 * frame.h (deprecated_generic_get_saved_register): Rename
2684 generic_get_saved_register.
2685 * blockframe.c (deprecated_generic_get_saved_register): Update.
2686 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2687 (xstormy16_frame_saved_register): Update.
2688 * sh-tdep.c (sh_gdbarch_init): Update.
2689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2690 * ia64-tdep.c (ia64_get_saved_register): Update.
2691 * cris-tdep.c (cris_gdbarch_init): Update.
2692 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2693 * arm-tdep.c (arm_gdbarch_init): Update.
2694
2695 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2696
2697 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2698
2699 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2700
2701 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2702 trampolines in sigaction.
2703
2704 2002-10-31 Andrew Cagney <cagney@redhat.com>
2705
2706 * h8300-tdep.c: Include "gdb_assert.h".
2707 (h8300_print_register): Add gdbarch, file and frame parameters.
2708 Use frame_read_unsigned_register to read the register's value.
2709 Use fprintf_filtered to display output.
2710 (h8300_print_registers_info): Replace h8300_do_registers_info.
2711 (h8300_gdbarch_init): Set print_registers_info.
2712
2713 2002-10-31 Andrew Cagney <cagney@redhat.com>
2714
2715 * frame.c (frame_read_unsigned_register): New function.
2716 (frame_read_signed_register): New function.
2717 * frame.h (frame_read_unsigned_register): Declare.
2718 (frame_read_signed_register): Declare.
2719
2720 2002-10-31 Andrew Cagney <cagney@redhat.com>
2721
2722 * h8500-tdep.c (h8500_print_registers_info): New static function,
2723 clone of infcmd.c's default_print_registers_info.
2724 (h8500_do_registers_info): New funtion.
2725 (h8500_print_register_hook): Rename print_register_hook, make
2726 static.
2727
2728 * config/h8500/tm-h8500.h: Update copyright.
2729 (DEPRECATED_DO_REGISTERS_INFO): Define.
2730 (h8500_do_registers_info: Declare.
2731 (PRINT_REGISTER_HOOK): Delete macro.
2732 (print_register_hook): Delete function.
2733
2734 2002-10-31 Andrew Cagney <cagney@redhat.com>
2735
2736 * z8k-tdep.c (z8k_print_register_hook): Make static.
2737 (z8k_print_registers_info): New static function, clone of
2738 infcmd.c's default_print_registers_info.
2739 (z8k_do_registers_info): New function. Wrap
2740 z8k_print_registers_info.
2741 * config/z8k/tm-z8k.h: Update copyright.
2742 (PRINT_REGISTER_HOOK): Delete macro.
2743 (z8k_print_register_hook): Delete declaration.
2744 (DEPRECATED_DO_REGISTERS_INFO): Define.
2745 (z8k_do_registers_info): Declare.
2746
2747 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2748
2749 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2750 as this is already provided by value.h, and was actually causing
2751 a compilation error because of a conflict in parameter type
2752 declaration due to a missing const keyword.
2753 (low_text_segment_addres): Fix a compilation warning.
2754
2755 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2756
2757 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2758 registers without a name.
2759 (mips_linux_cannot_store_register): Don't store registers without
2760 a name.
2761
2762 2002-10-28 David Carlton <carlton@math.stanford.edu>
2763
2764 * symtab.c (find_addr_symbol): Delete. (It was already commented
2765 out.)
2766 * symtab.h: Delete prototype for find_addr_symbol.
2767
2768 2002-10-26 Andrew Cagney <cagney@redhat.com>
2769
2770 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2771 DO_REGISTERS_INFO.
2772 gdbarch.h, gdbarch.c: Re-generate.
2773 * infcmd.c (default_print_registers_info): Update reference.
2774 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2775 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2776 * sh-tdep.c (sh_gdbarch_init): Ditto.
2777 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2778 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2779
2780 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2781
2782 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2783 cfi_init_extra_frame_info.
2784 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2785 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2786
2787 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2788 target where necessary. Add more comments and remove the ones
2789 that don't provide any useful information.
2790
2791 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2792 deprecated_read_register_dummy with
2793 frame_unwind_unsigned_register.
2794
2795 * i386-tdep.c (i386_extract_struct_value_address): Use
2796 regcache_raw_read_unsigned instead of
2797 regcache_cooked_read_unsigned since we know that the register
2798 we're reading isn't a pseudo register. Rename variable 'val' into
2799 the more descriptive 'addr'.
2800
2801 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2802 (x86_64_push_return_address): Add comment.
2803 (x86_64_pop_frame): Make static.
2804 (examine_argument): Clarify comment.
2805 (x86_64_skip_prologue): Make prolog_expact variable static.
2806
2807 * dwarf2cfi.c: Fix some formatting problems.
2808 (context_cpy, read_encoded_pointer): Clarify comments.
2809
2810 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2811 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2812 i386 target back into x86_64_gdbarch_init. Add some comments and
2813 remove meaningless ones.
2814
2815 2002-10-25 Andrew Cagney <cagney@redhat.com>
2816
2817 * complaints.h (struct deprecated_complaint): Rename `struct
2818 complaint'.
2819 * complaints.c (complain): Update.
2820 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2821 incorrect comment indicating that "symfile.h" was being included
2822 for the `struct complaint' definition.
2823 * remote-vx.c: Update.
2824 * objc-lang.c: Update.
2825 * xcoffread.c: Update.
2826 * hpread.c: Update.
2827 * mdebugread.c: Update.
2828 * stabsread.c: Update.
2829 * dwarf2read.c: Update.
2830 * dwarfread.c: Update.
2831 * elfread.c: Update.
2832 * coffread.c: Update.
2833 * stabsread.h: Update.
2834 * dbxread.c: Update.
2835 * buildsym.c: Update.
2836 * gdbtypes.c: Update.
2837 * macrotab.c: Update.
2838
2839 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2840
2841 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2842 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2843 (x86_64_init_abi): ...new function.
2844
2845 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2846 * i386v-nat.c: Include "i386-tdep.h".
2847
2848 2002-10-25 Andrew Cagney <cagney@redhat.com>
2849
2850 * gdbtypes.c (address_space_name_to_int): Update.
2851 (address_space_int_to_name): Update.
2852 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2853 multi-arch predicate.
2854 (address_class_name_to_type_flags): Ditto.
2855 * gdbarch.h, gdbarch.c: Re-generate.
2856
2857 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2858
2859 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2860
2861 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2862
2863 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2864
2865 * symtab.h (INIT_SAL): Delete macro.
2866 (init_sal): Export.
2867 * symtab.c (init_sal): New function.
2868
2869 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2870 to init_sal function call.
2871 (find_sal_from_funcs_and_line): Ditto.
2872 (all_sals_for_line): Ditto.
2873 * breakpoint.c (create_internal_breakpoint): Ditto.
2874 (create_fork_vfork_event_catchpoint): Ditto.
2875 (create_exec_event_catchpoint): Ditto.
2876 (parse_breakpoint_sals): Ditto.
2877 (watch_command_1): Ditto.
2878 (handle_gnu_4_16_catch_command): Ditto.
2879 (clear_command): Ditto.
2880 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2881 * infcmd.c (run_stack_dummy): Ditto.
2882 * infrun.c (process_event_stop_test): Ditto.
2883 (check_sigtramp2): Ditto.
2884 (step_over_function): Ditto.
2885 * linespec.c (decode_line_2): Ditto.
2886 (decode_line_1): Ditto.
2887 * source.c (line_info): Ditto.
2888 * symtab.c (find_pc_sect_line): Ditto.
2889
2890 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2891
2892 * dwarf2cfi.c (struct context)
2893 (struct context_reg): Moved to dwarf2cfi.h
2894 (context_alloc, frame_state_alloc, context_cpy):
2895 Made extern instead of static, removed prototypes.
2896 * dwarf2cfi.h (struct context)
2897 (struct context_reg): New, moved from dwarf2cfi.c
2898 (context_alloc, frame_state_alloc, context_cpy):
2899 New prototypes.
2900 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2901 Changed from static to extern.
2902 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2903 (LINUX_SIGCONTEXT_FP_OFFSET)
2904 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2905 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2906 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2907 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2908 set_gdbarch_*() calls now use x86-64 specific functions
2909 instead of DWARF2 CFI ones.
2910 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2911 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2912 (x86_64_init_extra_frame_info): New prototypes.
2913
2914 2002-10-23 David Carlton <carlton@math.stanford.edu>
2915
2916 * linespec.c: #include "parser-defs.h".
2917 Delete prototype for find_template_name_end.
2918 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2919
2920 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2921
2922 * NEWS: add recent mi fixes.
2923 * varobj.c (struct varobj): Add new "updated" flag.
2924 (new_variable): Default "updated" flag to 0.
2925 (varobj_set_value): Set "updated" flag to 1 if value
2926 changes.
2927 (varobj_update): Check varobj "updated" flag before
2928 comparing old and refreshed values. Fix for
2929 PR gdb/702.
2930
2931 2002-10-23 David Carlton <carlton@math.stanford.edu>
2932
2933 * parse.c (parse_exp_1): Use BLOCK_START.
2934 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2935 SYMBOL_BLOCK_VALUE.
2936 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2937
2938 2002-10-23 David Carlton <carlton@math.stanford.edu>
2939
2940 * symtab.c: Delete cplusplus_hint.
2941 Delete prototype for find_template_name_end.
2942
2943 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2944
2945 * symtab.h: Update comment.
2946
2947 2002-10-23 Michael Snyder <msnyder@redhat.com>
2948
2949 * printcmd.c (address_info): Restore quotes in output.
2950 * valops.c (value_of_local): Restore quotes in error message.
2951
2952 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2953
2954 * symtab.c (symbol_demangled_name): New function.
2955 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2956 turning most of it into a function.
2957 (symbol_demangled_name): Export.
2958
2959 2002-10-23 Michael Snyder <msnyder@redhat.com>
2960
2961 * valops.c (value_of_local): Restore quotes in error message.
2962
2963 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2964
2965 * symtab.c (symbol_init_language_specific): New function.
2966 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2967 turning most of it into a function.
2968 (symbol_init_language_specific): Export.
2969
2970 2002-10-23 David Carlton <carlton@math.stanford.edu>
2971
2972 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2973 (dwarf_attr_name): Ditto.
2974 (dwarf_type_encoding_name): Ditto.
2975 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2976 (process_die): Handle DW_TAG_namespace,
2977 DW_TAG_imported_declaration, DW_TAG_imported_module.
2978 (read_namespace): New function.
2979
2980 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2981
2982 * configure.in: Define NEW_PROC_API on Interix too.
2983 * configure: Regenerate.
2984
2985 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2986
2987 * configure: Regenerate using the proper version of autoconf.
2988
2989 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2990
2991 * findvar.c (read_var_value): Temporarily disable TLS code, until
2992 complete TLS support is added.
2993
2994 2002-10-21 Jim Blandy <jimb@redhat.com>
2995 Elena Zannoni <ezannoni@redhat.com>
2996
2997 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2998 for thread local storage locations.
2999 (struct symbol): Add objfile field.
3000 (SYMBOL_OBJFILE): Define.
3001 * dwarf2read.c (is_thread_local): New static variable.
3002 (new_symbol): If variable is in thread local fill in address class
3003 and objfile appropriately.
3004 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3005 stack operation.
3006 * printcmd.c (address_info): Print the information for thread
3007 local storage variable.
3008 * findvar.c (read_var_value): In case of thread local variable,
3009 defer to the target vector code to compute address.
3010
3011 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3012
3013 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3014 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3015
3016 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3017
3018 * symtab.h (address_class): Rename
3019 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3020 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3021 * printcmd.c (address_info): Ditto.
3022 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3023
3024 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3025
3026 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3027 DBREG_DRX macro to acces debug registers.
3028
3029 * Makefile.in (i386obsd-tdep.o): New target.
3030
3031 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3032 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3033
3034 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3035 * config/i386/obsd.mt: New file.
3036 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3037 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3038 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3039 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3040 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3041 * i386obsd-tdep.c: New file.
3042
3043 2002-10-19 Adam Fedor <fedor@gnu.org>
3044
3045 * objc-exp.y (name_not_typename): Fix invalid comment.
3046
3047 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3048
3049 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3050 to allocate partial syms and macro byte caches.
3051
3052 2002-10-18 David Carlton <carlton@math.stanford.edu>
3053
3054 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3055
3056 2002-10-18 Adam Fedor <fedor@gnu.org>
3057
3058 * stabsread.c (find_name_end): New function.
3059 (define_symbol): Use it.
3060
3061 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3062
3063 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3064 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3065 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3066 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3067
3068 2002-10-17 David Carlton <carlton@math.stanford.edu>
3069
3070 * symfile.h: Add opaque declaration for struct obstack.
3071 Declare obsavestring to take a const char *.
3072 * symfile.c (obsavestring): Make first argument a const char *.
3073
3074 2002-10-16 Adam Fedor <fedor@gnu.org>
3075
3076 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3077 names when matching breakpoints in current file.
3078
3079 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3080
3081 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3082 (read_tag_pointer_type): Add address class support.
3083 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3084 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3085 New methods.
3086 * gdbarch.h, gdbarch.c: Regenerate.
3087 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3088 (make_type_with_address_space, recursive_type_dump): Add address
3089 class support.
3090 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3091 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3092 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3093
3094 2002-10-16 Klee Dienes <kdienes@apple.com>
3095
3096 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3097 to get the last character of a char[] buffer, not
3098 name[sizeof(vptr_name)-1].
3099
3100 2002-10-14 Adam Fedor <fedor@gnu.org>
3101
3102 * symtab.h: New objc_specific struct.
3103 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3104 (SYMBOL_DEMANGLED_NAME): Likewise.
3105
3106 2002-10-14 Adam Fedor <fedor@gnu.org>
3107
3108 * symfile.c (init_filename_language_table): Add ObjC file extension.
3109
3110 2002-10-14 Adam Fedor <fedor@gnu.org>
3111
3112 * utils.c (puts_filtered_tabular): New function.
3113 (fprintf_symbol_filtered): Get ObjC demangled name.
3114 * defs.h (puts_filtered_tabular): Declared.
3115
3116 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3117
3118 * c-lang.h (c_type_print_varspec_prefix): Delete.
3119 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3120 ``need_post_space'' parameter. Adjust all callers.
3121
3122 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3123
3124 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3125 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3126 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3127 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3128
3129 2002-10-13 Adam Fedor <fedor@gnu.org>
3130
3131 * source.c (print_source_lines): Update comments.
3132
3133 2002-10-13 Adam Fedor <fedor@gnu.org>
3134
3135 * valops.c (value_of_local): New function.
3136 (value_of_this): Use it.
3137 * value.h (value_of_local): Declared.
3138
3139 2002-10-13 Adam Fedor <fedor@gnu.org>
3140
3141 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3142 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3143
3144 2002-10-12 Adam Fedor <fedor@gnu.org>
3145
3146 * language.c (binop_result_type): Add language_objc to case.
3147 (integral_type): Likewise.
3148 (character_type): Likewise.
3149 (string_type): Likewise.
3150 (boolean_type): Likewise.
3151 (structured_type): Likewise.
3152 (binop_type_check): Likewise.
3153
3154 2002-10-11 Adam Fedor <fedor@gnu.org>
3155
3156 * printcmd.c (address_info): Print 'self' for ObjC.
3157
3158 2002-10-11 Adam Fedor <fedor@gnu.org>
3159
3160 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3161 OP_SELF.
3162
3163 2002-10-11 Adam Fedor <fedor@gnu.org>
3164
3165 * language.h (CAST_IS_CONVERSION): Add language_objc.
3166
3167 2002-10-11 Adam Fedor <fedor@gnu.org>
3168
3169 * defs.h (enum language): Add language_objc.
3170
3171 2002-10-11 Klee Dienes <kdienes@apple.com>
3172
3173 * corefile.c (read_memory_typed_address): New function.
3174 * gdbcore.h (read_memory_typed_address): Add prototype.
3175 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3176 to read a value destined for a CORE_ADDR, not read_memory_integer.
3177 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3178 (f77_get_dynamic_lowerbound): Ditto.
3179
3180 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3181
3182 * utils.c (string_to_core_addr): After turning string into
3183 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3184 which will do necessary sign-extension, etc.
3185
3186 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3187
3188 * c-exp.y (THIS): Delete token and grammar rule.
3189 (yylex): Don't return THIS.
3190 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3191 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3192 * demangle.c (cplus_markers): Update comment. Put '$'
3193 first. Remove CPLUS_MARKER.
3194 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3195 * jv-exp.y (THIS): Delete token and grammar rule.
3196 (yylex): Don't return THIS.
3197 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3198 * objc-exp.y (THIS): Delete token and grammar rule.
3199 (yylex): Don't return THIS.
3200 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3201 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3202 (read_member_functions): Likewise for opname.
3203 (read_tilde_fields): Use is_cplus_marker.
3204
3205 * defs.h (CPLUS_MARKER): Don't define.
3206 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3207 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3208 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3209 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3210 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3211
3212 * config/i386/tm-i386v4.h: Delete file.
3213 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3214 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3215 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3216 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3217 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3218 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3219 * config/i386/i386v4.mt (TM_FILE): Likewise.
3220 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3221
3222 2002-10-10 Marko Mlinar <markom@opencores.org>
3223
3224 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3225 accidentially not commited 2002-10-09
3226 * gdbarch.h, gdbarch.c: Re-generate.
3227
3228 2002-10-09 Marko Mlinar <markom@opencores.org>
3229
3230 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3231 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3232 * gdbarch.h, gdbarch.c: Re-generate.
3233
3234 2002-10-08 Petr Sorfa <petrs@caldera.com>
3235
3236 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3237
3238 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3239 so we can work on more than one compilation unit at a time. This
3240 helps prepare GDB to handle inter-CU die references.
3241 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3242 the code to be defined before struct comp_unit_head.
3243 (comp_unit_head): Added new members - offset, cu_head,
3244 begin_die, next and dwarf2_abbrevs.
3245 (dwarf2_abbrevs): Removed single static var; now member of
3246 struct comp_unit_head.
3247 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3248 members.
3249 (psymtab_to_symtab_1): Changed to work with the new
3250 struct comp_unit_head.
3251 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3252 constructs the dwarf2_abbrevs[] inside the cu_header.
3253 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3254 dwarf2_abbrev table to clean up.
3255 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3256 handling of dwarf2_abbrevs inside the cu_header.
3257 (read_partial_die): Now supports the call to the new
3258 dwarf2_lookup_abbrev.
3259 (read_full_die): Now supports the call to the new
3260 dwarf2_lookup_abbrev.
3261
3262 2002-10-06 Christopher Faylor <cgf@redhat.com>
3263
3264 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3265 insure that shell variables, such as "transformed_name" are propagated
3266 to later shell statements in rule.
3267
3268 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3269
3270 * config/i386/nm-i386sco.h: Add protection against
3271 multiple-inclusion. Include "i386/nm-i386v.h".
3272 (REGISTER_U_ADDR): Remove define.
3273 (i386_register_u_addr): Remove prototype.
3274
3275 2002-10-04 Michael Snyder <msnyder@redhat.com>
3276
3277 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3278 before treating it as a single-step event.
3279
3280 2002-10-03 Adam Fedor <fedor@gnu.org>
3281
3282 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3283 (objc_demangle): Remove assignment in if statements, Replace
3284 free with xfree.
3285 (add_msglist): Likewise.
3286 (end_msglist): Likewise.
3287 (complare_selectors): Likewise.
3288 (selectors_info): Likewise.
3289 (compare_classes): Likewise.
3290 (classes_info): Likewise.
3291 (print_object_command): Likewise.
3292 (find_objc_msgcall_submethod): Replace PTR with void *.
3293 * objc-lang.h: Remove check for __STDC__.
3294
3295 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3296
3297 * ui-out.h (ui_out_field_fmt_int): New prototype.
3298 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3299 of field width and alignment.
3300 * stack.c (print_frame_info_base): When printing frame level, use
3301 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3302 PR gdb/192
3303
3304 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3305
3306 * MAINTAINERS: Add self to Write After Approval list.
3307
3308 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3309
3310 * infcmd.c (interrupt_target_command_wrapper): Delete.
3311 (interrupt_target_command): Make non static.
3312 (nofp_registers_info): Make static.
3313 * stack.c (return_command_wrapper): Delete.
3314 (return_command): Make non static.
3315
3316 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3317
3318 * event-top.c (gdb_setup_readline): New function. Code moved from
3319 _initialize_event_loop().
3320 (_initialize_event_loop): Call gdb_setup_readline().
3321
3322 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3323
3324 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3325 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3326 * gdbarch.h, gdbarch.c: Re-generate.
3327
3328 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3329
3330 Fix PR gdb/778
3331 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3332 before recursing.
3333 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3334 of fill_in_vptr_fieldno.
3335
3336 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3337
3338 * inferior.h (registers_info, stepi_command, nexti_command,
3339 continue_command, interrupt_target_command): Export from infcmd.c.
3340 * frame.h (args_info, selected_frame_level_changed_hook,
3341 return_command): Export from stack.c.
3342 * v850ice.c (stepi_command, nexti_command, continue_command): use
3343 prototypes from inferior.h.
3344 * tracepoint.c (registers_info, args_info, locals_info): Use
3345 prototypes from frame.h and inferior.h.
3346 * Makefile.in (mi-main.o): Add dependency on frame.h.
3347
3348 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3349
3350 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3351 value in register 3 adjusted by ppc_gp0_regnum.
3352
3353 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3354
3355 2002-10-02 Marko Mlinar <markom@opencores.org>
3356
3357 * MAINTAINERS: Add myself to the Write After Approval list.
3358
3359 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3360
3361 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3362 of the section for the N64 ABI, fixed.
3363
3364 * config/mips/tm-irix6.h: Include solib.h.
3365
3366 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3367
3368 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3369 GNU operators.
3370
3371 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3372
3373 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3374 and that "mi0" syntax has been removed.
3375
3376 2002-09-30 David Carlton <carlton@math.stanford.edu>
3377
3378 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3379 * ppc-sysv-tdep.c: #include "gdb_string.h".
3380 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3381 pacify GCC.
3382
3383 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3384
3385 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3386 "vrsave"'s register number.
3387
3388 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3389
3390 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3391 use frame_unwind_signed_register to obtain the PC.
3392 (mips_frame_chain): Handle a generic dummy frame.
3393 (mips_init_extra_frame_info): When a generic dummy frame, don't
3394 re-compute the frame base.
3395 (mips_pop_frame): Handle generic dummy frames.
3396 (mips_gdbarch_init): When generic dummy frames, set
3397 use_generic_dummy_frames, push_dummy_frame to
3398 generic_push_dummy_frame, pc_in_call_dummy to
3399 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3400 generic_save_dummy_frame_tos.
3401
3402 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3403
3404 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3405 against TOP when TOP was explictly set.
3406 (generic_push_dummy_frame): Set TOP to zero.
3407
3408 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3409
3410 * event-loop.c (start_event_loop): Rename variable 'result' to
3411 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3412
3413 2002-09-30 Keith Seitz <keiths@redhat.com>
3414
3415 * gdb-events.sh (selected_thread_changed): New event.
3416 * gdb-events.c: Regenerated.
3417 * gdb-events.h: Regenerated.
3418
3419 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3420
3421 * MAINTAINERS: Add self to Write After Approval list.
3422
3423 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3424
3425 * disasm.c: New file.
3426 * disasm.h: New file.
3427 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3428 (compare_lines): Ditto.
3429 (dump_insns): Ditto.
3430 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3431 argument.
3432 (do_assembly_only): Ditto.
3433 (do_disassembly): Renamed to gdb_disassembly and moved to
3434 disasm.c. Sdded uiout argument.
3435 * Makefile.in: Add new files. Reorder SFILES list. Update
3436 dependencies. Include libgdb.a later in the insight executable.
3437
3438 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3439
3440 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3441 bfd/elf64-alpha-fbsd.c.
3442
3443 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3444
3445 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3446 i386gnu-tdep.c.
3447
3448 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3449
3450 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3451 __FUNCTION__.
3452 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3453 function name.
3454 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3455 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3456 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3457 (S_msg_sig_post_reply): Ditto.
3458
3459 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3460
3461 * sh-tdep.c (sh_use_struct_convention): Use definition according
3462 to ABI.
3463 (sh_push_arguments): Store in register with correct endianess.
3464 (sh_default_store_return_value): Ditto.
3465 (sh_gdbarch_init): Set sizeof long double to 8.
3466
3467 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3468
3469 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3470 Fix some whitespace problems.
3471
3472 2002-09-27 David Carlton <carlton@math.stanford.edu>
3473
3474 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3475 (mcore-tdep.o): Ditto.
3476 (ns32k-tdep.o): Ditto.
3477 (ns32knbsd-tdep.o): Ditto.
3478 (sh3-rom.o): Ditto.
3479 (vax-tdep.o): Ditto.
3480 * cris-tdep.c: #include "gdb_string.h"
3481 * mcore-tdep.c: Ditto.
3482 * ns32k-tdep.c: Ditto.
3483 * ns32knbsd-tdep.c: Ditto.
3484 * sh3-rom.c: Ditto.
3485 * vax-tdep.c: Ditto.
3486
3487 2002-09-27 David Carlton <carlton@math.stanford.edu>
3488
3489 * config/djgpp/fnchange.lst: Add entries for
3490 gdb/testsuite/gdb.c++/m-static files.
3491
3492 2002-09-27 Jim Wilson <wilson@redhat.com>
3493
3494 * MAINTAINERS: Add myself to the Write After Approval list.
3495
3496 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3497
3498 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3499
3500
3501 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3502
3503 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3504 frame.
3505
3506 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3507
3508 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3509 (rs6000_struct_return_address): Delete variable.
3510 (rs6000_store_struct_return): Update.
3511 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3512 deprecated_extract_struct_value_address.
3513 (rs6000_frame_align): New function.
3514 (rs6000_gdbarch_init): Set frame_align.
3515
3516 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3517
3518 From Grace Sainsbury <graces@redhat.com>:
3519 * Makefile.in (gdbtk-main.o): New target.
3520 (gdb.o): New target.
3521 (main_h): Define.
3522 (main.o): Update dependencies.
3523 (gdb$(EXEEXT)): Add gdb.o.
3524 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3525 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3526 (SUBDIR_GDBTK_CLEAN): Set.
3527 (install-gdbtk): Install the insight binary.
3528 (uninstall-gdbtk): New target.
3529 (all-gdbtk, clean-gdbtk): New rule.
3530 * top.c (use_windows): Default to zero.
3531 * main.c: Include "main.h".
3532 (main): Delete.
3533 (struct captured_main_args): Delete.
3534 (gdb_main): New function.
3535 * main.h: New file.
3536 * gdb.c: New File.
3537
3538 2002-09-25 Andrew Cagney <cagney@redhat.com>
3539
3540 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3541 (frame_map_regnum_to_name): New function.
3542 (frame_map_name_to_regnum): New function.
3543 * frame.h (frame_map_name_to_regnum): Declare.
3544 (frame_map_regnum_to_name): Declare.
3545 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3546 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3547 * parse.c: Do not include "builtin-regs.h".
3548 (target_map_name_to_register): Delete function.
3549 (write_dollar_variable): Use frame_map_name_to_regnum.
3550 * parser-defs.h (target_map_name_to_register): Delete declaration.
3551 * expprint.c: Include "frame.h".
3552 (print_subexp): Use frame_map_regnum_to_name.
3553 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3554 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3555
3556 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3557
3558 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3559 wasn't saved, and the next innermost frame is a dummy, return the
3560 dummy frame's link register.
3561
3562 2002-09-24 Jim Blandy <jimb@redhat.com>
3563
3564 Fix from Paul Breed:
3565 * main.c (captured_main): Add a `break' after the case for 'b'.
3566
3567 2002-09-24 Keith Seitz <keiths@redhat.com>
3568
3569 * varobj.c (c_type_of_child): Use get_target_type instead
3570 of TYPE_TARGET_TYPE.
3571
3572 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3573
3574 * source.c (get_current_or_default_source_symtab_and_line): Remove
3575 function.
3576 (set_default_source_symtab_and_line): New function. Attempts to
3577 determine a source file to list lines from if one is not currently
3578 defined.
3579 (get_current_source_symtab_and_line): Initialize sal.pc and
3580 sal.end fields.
3581 (set_current_source_symtab_and_line): Mark argument as const.
3582 * source.h: Update declarations and comments.
3583 * linespec.c (decode_line_1): Replace call to removed routine above.
3584 * stack.c (print_frame_info_base): Ditto.
3585 * cli/cli-cmds.c (edit_command): Ditto.
3586 (list_command): Ditto.
3587
3588 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3589
3590 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3591 sal.pc and sal.end fields.
3592 (get_current_or_default_source_symtab_and_line): Ditto.
3593 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3594 so we do not cause a new source symtab to be searched for (reverting an
3595 unintentional change from the 2002-09-20 patch).
3596 * scm-lang.c (scm_unpac): Ditto.
3597
3598 2002-09-21 Andrew Cagney <cagney@redhat.com>
3599
3600 * complaints.c (symfile_explanations): Remove new-line from
3601 ``isolated_message''.
3602 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3603 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3604
3605 2002-09-20 Nick Clifton <nickc@redhat.com>
3606
3607 * NEWS: Announce that V850EA ISA is no longer supported.
3608 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3609
3610 2002-09-20 David Carlton <carlton@math.stanford.edu>
3611
3612 * Makefile.in (c-lang.o): Correct dependencies.
3613 (utils.o): Gather dependencies.
3614 (charset.o): Move.
3615 * c-lang.c: #include "gdb_string.h"
3616
3617 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3618
3619 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3620 * cli/cli-cmds.c (list_command): New function. Implements the new
3621 cli edit command.
3622 (_init_cli_cmds): Add new command definition.
3623 * gdb.1: Document edit command.
3624 * doc/gdb.texinfo: Document edit command.
3625
3626 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3627
3628 * source.c: Make global variables current_source_symtab and
3629 current_source_line static.
3630 (list_command): Moved to cli/cli-cmds.c.
3631 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3632 (get_first_line_listed): New accessor function.
3633 (get_lines_to_list): New accessor function.
3634 (get_current_source_symtab_and_line): New function. Retrieves the
3635 position in the source code that we consider current.
3636 (get_current_or_default_source_symtab_and_line): New function.
3637 Like the above but attempts to determine a default position if one
3638 is not currently defined.
3639 (set_current_source_symtab_and_line): New function. Sets the source
3640 code position considered current and returns the previously set one.
3641 (clear_current_source_symtab_and_line): Reset stored information about
3642 a current source line.
3643 (_initialize_source): Remove registration for the "list" command and
3644 its alias.
3645 * source.h: Add declarations for the new functions above.
3646 * symtab.h: Remove declarations for the global variables mentioned
3647 above.
3648 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3649 obtain current source line.
3650 * linespec.c (decode_line_1): Ditto.
3651 * macroscope.c (default_macro_scope): Ditto.
3652 * scm-lang.c (scm_unpac): Ditto.
3653 * stack.c (print_frame_info_base): Ditto.
3654 * symfile.c (clear_symtab_users): Ditto.
3655 * symtab.c (decode_line_spec): Ditto.
3656 * cli/cli-cmds.c (list_command): Moved here from source.c.
3657 (ambiguous_line_spec): Moved here from source.c.
3658 (_init_cli_cmds): Add definition for "list" and its alias.
3659 * Makefile.in: Update dependencies.
3660
3661 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3662
3663 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3664 with what gcc thinks is correct.
3665
3666 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3667
3668 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3669 multiple register push instruction.
3670
3671 2002-09-19 Jim Blandy <jimb@redhat.com>
3672
3673 Add support for distinct host and target character sets.
3674 * charset.c, charset.h: New files.
3675 * c-exp.y: #include "charset.h".
3676 (yylex): Convert character and string literals to the target
3677 character set, before returning them as the semantic value of the
3678 token.
3679 * c-lang.c: #include "charset.h".
3680 (c_emit_char): Use charset-specific methods to recognize
3681 characters with backslash escape forms, to decide which characters
3682 to print literally and which to print using numeric escape
3683 sequences, and to convert target characters to host characters
3684 before printing.
3685 * utils.c: #include "charset.h".
3686 (no_control_char_error): New function.
3687 (parse_escape): Use charset-specific methods to recognize
3688 backslash escapes, parse `control character' notation, and convert
3689 characters from the host character set to the target character set.
3690 * configure.in: Set the default host character set.
3691 Check where to find iconv, and what its argument types might be.
3692 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3693 * Makefile.in (SFILES): List charset.c.
3694 (COMMON_OBS): List charset.o.
3695 (charset.o): New rule.
3696 (charset_h): New header dependency variable.
3697 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3698 (LIBICONV): New variable, set by configure.
3699 (CLIBS): Include $(LIBICONV) here.
3700 * aclocal.m4, config.in, configure: Regenerated.
3701
3702 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3703
3704 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3705 bison 1.35 warning.
3706
3707 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3708
3709 * gdb_mbuild.sh: New file.
3710
3711 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3712
3713 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3714
3715 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3716
3717 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3718 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3719 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3720 valops.c, value.h: Revert previous change.
3721
3722 2002-09-18 Michael Snyder <msnyder@redhat.com>
3723
3724 Preliminary support for Objective-C:
3725 * defs.h (language_objc): New enum value.
3726 (puts_filtered_tabular): Declaration only, exported from utils.c.
3727 (skip_quoted): Delete, declared in completer.h.
3728 * c-exp.y: Include completer.h.
3729 * p-exp.y: Ditto.
3730 * jv-exp.y: Ditto.
3731 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3732 New operator enum values.
3733 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3734 * language.c (binop_result_type): Handle language_objc case.
3735 (integral_type, character_type, string_type, boolean_type,
3736 structured_type, binop_type_check): Ditto.
3737 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3738 (struct objc_specific): Add to general_symbol_info.
3739 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3740 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3741 * parser-defs.h (struct objc_class_str): New struct type.
3742 (start_msglist, end_msglist, add_msglist): Declaration only,
3743 exported from objc-lang.c.
3744 * value.h (value_of_local, value_nsstring,
3745 call_function_by_hand_expecting_type): Exported from valops.c.
3746 * valops.c (find_function_addr): Export.
3747 (call_function_by_hand_expecting_type): New function.
3748 (value_of_local): New function.
3749 * symfile.c (init_filename_language_table): Add ".m" extension
3750 for Objective-C.
3751 * utils.c (puts_filtered_tabular): New function.
3752 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3753 (set/show demangle): Extend help-string to refer to ObjC.
3754 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3755 * stabsread.c (symbol_reference_defined): Objective-C symbols
3756 may contain colons: make allowances when scanning stabs strings
3757 for colons.
3758 (objc_find_colon): New function.
3759 * printcmd.c (address_info): If language == objc then print
3760 "self" instead of "this".
3761 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3762 OP_NSSTRING, and OP_SELF.
3763 (prefixify_subexp): Ditto.
3764 * source.c (print_source_lines): Mention objc in comment.
3765 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3766 method names.
3767
3768 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3769
3770 * complaints.h: Update copyright.
3771 (struct complaints): Declare.
3772 (struct complaint): Make `message' constant.
3773 (internal_complaint): Declare.
3774 (complaint): Declare.
3775 (complaint_root): Delete declaration.
3776 (symfile_complaints): Delete declaration.
3777 (struct complaints): Add opaque declaration.
3778 (clear_complaints): Add a complaints parameter.
3779 * complaints.c: Update copyright.
3780 (enum complaint_series): Define.
3781 (complaint_root): Delete.
3782 (struct complaints): Define.
3783 (complaint_sentinel, symfile_complaint_book): New variables.
3784 (symfile_explanations, symfile_complaints): New variables.
3785 New variables.
3786 (get_complaints): New function.
3787 (vcomplaint): New function.
3788 (complaint): New function.
3789 (internal_complaint): New function.
3790 (complain): Call vcomplain with symfile_complaint.
3791 (clear_complaints): Rewrite.
3792 (_initialize_complaints): Use add_setshow_command.
3793 * Makefile.in (complaints.o): Update dependencies.
3794 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3795 to call to clear_complaints.
3796 (new_symfile_objfile, reread_symbols): Ditto.
3797 (oldsyms_complaint): Delete.
3798 (empty_symtab_complaint, unknown_option_complaint): Delete.
3799 (free_named_symtabs): Use complaint instead of complain.
3800
3801 2002-09-18 Michael Snyder <msnyder@redhat.com>
3802
3803 Contributed by Apple Computer, Inc. Merged with current sources
3804 by Adam Fedor <fedor@doc.com> [cagney].
3805
3806 * objc-lang.c: First clean-up round: comments, indentation.
3807 * objc-lang.h: Ditto.
3808 * objc-lang.y: Ditto.
3809
3810 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3811
3812 * maint.c (maintenance_internal_error): Print the parameter as the
3813 error message.
3814 (maintenance_internal_warning): New function.
3815 (_initialize_maint_cmds): Add command `maint internal-warning'.
3816
3817 * defs.h (internal_warning, internal_vwarning): Declare.
3818 * utils.c (struct internal_problem): Define.
3819 (internal_vproblem): New function.
3820 (internal_warning): New function.
3821 (internal_vwarning): New function.
3822 (internal_warning_problem, internal_error_problem): New variables.
3823 (internal_verror): Just call internal_vproblem.
3824
3825 2002-09-18 Michael Snyder <msnyder@redhat.com>
3826
3827 * objc-lang.c: New file, support for Objective-C.
3828 Preliminary check-in, not yet integrated into gdb.
3829 * objc-lang.h: New file.
3830 * objc-exp.y: New file.
3831
3832 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3833
3834 * infrun.c (signal_stop_update): Convert definition to ISO C.
3835 (signal_print_update): Ditto.
3836 (signal_pass_update): Ditto.
3837 * inflow.c (terminal_save_ours): Ditto.
3838
3839 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3840 comments.
3841
3842 * config/djgpp/fnchange.lst: Handle name clashes between
3843 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3844 bfd/coff-tic80.c.
3845
3846 * i386-linux-tdep.h: Fix tipo.
3847
3848 2002-09-18 Adam Fedor <fedor@gnu.org>
3849
3850 * MAINTAINERS: Add myself to the Write After Approval list.
3851
3852 2002-09-18 Jim Blandy <jimb@redhat.com>
3853
3854 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3855 texthigh and textlow to reader-specific structs caused
3856 objfile_relocate to miss them. This is fixable, but the work that
3857 the change was supposed to prepare GDB for never got done anyway.
3858
3859 2002-09-18 David Carlton <carlton@math.stanford.edu>
3860
3861 * MAINTAINERS: Alphabetize Write After Approval list.
3862
3863 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3864
3865 Fix PR gdb/709
3866 * values.c (value_static_field): Call read_var_value.
3867
3868 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3869
3870 * valops.c (hand_function_call): Align the initial stack pointer
3871 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3872 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3873 return value.
3874 * mips-tdep.c (mips_frame_align): New function.
3875 (mips_gdbarch_init): Set frame_align.
3876 * gdbarch.sh (FRAME_ALIGN): New method.
3877 * gdbarch.h, gdbarch.c: Re-generate.
3878
3879 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3880
3881 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3882 registers.
3883
3884 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3885
3886 * NEWS: Mention that MIPS $fp behavior changed.
3887 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3888 reference to FP_REGNUM.
3889 (mipsnbsd_cannot_store_register): Ditto.
3890 * mips-linux-nat.c: Update copyright.
3891 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3892 (mips_linux_cannot_store_register): Ditto.
3893 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3894 * config/mips/tm-mips.h: Update copyright.
3895 (FP_REGNUM): Delete macro.
3896 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3897 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3898 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3899 (mips_r3041_reg_names, mips_r3051_reg_names)
3900 (mips_r3081_reg_names): Replace "fp" with "".
3901 Fix PR gdb/480.
3902
3903 2002-09-17 Theodore A. Roth <troth@verinet.com>
3904
3905 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3906 generic_read_register_dummy() (PR gdb/703).
3907 (avr_push_return_address): #if 0 out unused vars.
3908 (avr_gdbarch_init): Enable use of avr_push_return_address().
3909
3910 2002-09-17 Michael Snyder <msnyder@redhat.com>
3911
3912 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3913 RTE will take care of it.
3914
3915 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3916
3917 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3918 invalid, return SP_REGNUM.
3919
3920 2002-09-17 Michael Snyder <msnyder@redhat.com>
3921
3922 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3923 point registers without sign extension.
3924
3925 2002-09-17 Andrew Cagney <cagney@redhat.com>
3926
3927 * blockframe.c (deprecated_read_register_dummy): Rename
3928 generic_read_register_dummy.
3929 * frame.c (frame_unwind_signed_register): New function.
3930 (frame_unwind_unsigned_register): New function.
3931 * frame.h (frame_unwind_signed_register): Declare.
3932 (frame_unwind_unsigned_register): Declare.
3933 (deprecated_read_register_dummy): Rename
3934 generic_read_register_dummy.
3935
3936 * h8300-tdep.c (h8300_frame_chain): Update.
3937 (h8300_frame_saved_pc): Update.
3938 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3939 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3940 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3941 (s390_frame_chain): Update.
3942 * v850-tdep.c (v850_find_callers_reg): Update.
3943 (v850_frame_saved_pc): Update.
3944 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3945 (m32r_find_callers_reg): Update.
3946 (m32r_frame_saved_pc): Update.
3947 * sh-tdep.c (sh_find_callers_reg): Update.
3948 (sh64_get_saved_pr): Update.
3949 (sh_init_extra_frame_info): Update.
3950 (sh_init_extra_frame_info): Update.
3951 (sh64_init_extra_frame_info): Update.
3952 (sh64_init_extra_frame_info): Update.
3953 * mcore-tdep.c (mcore_find_callers_reg): Update.
3954 (mcore_frame_saved_pc): Update.
3955 (mcore_init_extra_frame_info): Update.
3956 * i386-tdep.c (i386_frame_saved_pc): Update.
3957 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3958 (ia64_init_extra_frame_info): Update.
3959 (ia64_init_extra_frame_info): Update.
3960 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3961 * cris-tdep.c (cris_init_extra_frame_info): Update.
3962 * avr-tdep.c (avr_frame_chain): Update.
3963 (avr_init_extra_frame_info): Update.
3964 (avr_frame_saved_pc): Update.
3965 * arm-tdep.c (arm_find_callers_reg): Update.
3966 (arm_init_extra_frame_info): Update.
3967 (arm_frame_saved_pc): Update.
3968
3969 2002-09-17 Tom Tromey <tromey@redhat.com>
3970
3971 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3972 is "'".
3973
3974 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3975
3976 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3977 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3978 NEXT_PROLOGUE_INSN.
3979 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3980 NEXT_PROLOGUE_INSN.
3981
3982 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3983
3984 * osfsolib.c: Remove file, replaced by solib-osf.c.
3985 * Makefile.in: Remove compilation rules for osfsolib.c.
3986
3987 2002-09-16 David Carlton <carlton@math.stanford.edu>
3988
3989 * cp-valprint.c (cp_print_class_method): Correct args to
3990 check_stub_method_group.
3991
3992 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3993
3994 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3995 `set architecture'. Unify naming convention of functions.
3996 (h8300_skip_prologue): Improve prologue analysis.
3997 (h8300_push_arguments): Rewritten to more closely match GCC's
3998 bizarre argument-passing behavior, along with the comment describing
3999 said behavior.
4000 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4001 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4002 sim, remote-e7000.c, remote-hms.c and remote.c
4003
4004 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4005
4006 * i386-tdep.c (gdb_print_insn_i386): Removed.
4007 (i386_print_insn): New function.
4008 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4009 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4010 tm_print_insn_info.
4011
4012 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4013
4014 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4015 zero.
4016
4017 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4018
4019 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4020 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4021 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4022
4023 2002-09-13 Christopher Faylor <cgf@redhat.com>
4024
4025 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4026
4027 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4028
4029 * gdbtypes.c (check_stub_method): Make static.
4030 (check_stub_method_group): New function.
4031 * gdbtypes.h: Update prototypes.
4032 * cp-support.c: New file.
4033 * cp-support.h: New file.
4034
4035 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4036 (update_method_name_from_physname): New function.
4037 (read_member_functions): Correct method names for operators
4038 and v3 constructors/destructors. Separate v2 constructors and
4039 destructors.
4040 * Makefile.in (stabsread.o): Update dependencies.
4041 (SFILES): Add cp-support.c.
4042 (COMMON_OBS): Add cp-support.o.
4043 (cp_support_h, cp-support.o): Add.
4044
4045 * cp-valprint.c (cp_print_class_method): Call
4046 check_stub_method_group instead of check_stub_method. Remove
4047 extraneous QUITs.
4048 * p-valprint.c (pascal_object_print_class_method): Likewise.
4049 * valops.c (search_struct_method): Likewise.
4050 (find_method_list, value_struct_elt_for_reference): Likewise.
4051
4052 2002-09-13 Andrew Cagney <cagney@redhat.com>
4053
4054 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4055 * gdbarch.h, gdbarch.c: Regenerate.
4056
4057 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4058
4059 * frame.c (find_saved_register): Delete function.
4060 * frame.h (find_saved_register): Delete declaration.
4061 Fix PR gdb/631.
4062
4063 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4064
4065 * mips-tdep.c (read_next_frame_reg): Re-hack using
4066 frame_register_unwind.
4067
4068 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4069
4070 * mips-tdep.c (mips_get_saved_register): Re-hack using
4071 frame_register_unwind.
4072
4073 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4074
4075 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4076 vector. Will be useful for Interix.
4077 * gdbarch.h, gdbarch.c: Regenerate.
4078
4079 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4080 name of the malloc function by NAME_OF_MALLOC.
4081
4082 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4083
4084 * value.h (find_function_in_inferior): Add const keyword to
4085 one of the parameters. Allows us to invoke this function with
4086 a const char *.
4087 * valops.c (find_function_in_inferior): Likewise.
4088
4089 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4090
4091 * exec.c (xfer_memory): Fix compilation warning with old versions
4092 of GCC.
4093 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4094
4095 2002-09-12 David Carlton <carlton@math.stanford.edu>
4096
4097 * symtab.h: Run through gdb_indent.h.
4098 Add 2002 to Copyright year list.
4099
4100 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4101
4102 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4103 mach constants.
4104 * MAINTAINERS: Add myself to write after approval list.
4105
4106 2002-09-11 J. Brobecker <brobecker@gnat.com>
4107
4108 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4109
4110 2002-09-11 J. Brobecker <brobecker@gnat.com>
4111
4112 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4113 Interix.
4114
4115 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4116
4117 * procfs.c (do_detach): Clear current signal, not just fault.
4118 Corrects problem with breakpoint trap signal leaking to detached
4119 process on Tru64.
4120
4121 2002-09-10 Michael Snyder <msnyder@redhat.com>
4122
4123 * buildsym.c (finish_block): Protect against null pointer.
4124
4125 2002-09-10 Andrew Cagney <cagney@redhat.com>
4126
4127 * infcmd.c (default_print_registers_info): Send all output to
4128 ``file'' instead of ``gdb_stdout''.
4129
4130 2002-09-10 Michael Snyder <msnyder@redhat.com>
4131
4132 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4133 LONGEST, and use signed register read (addresses are sign-
4134 extended for mips).
4135
4136 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4137
4138 * event-loop.c (gdb_do_one_event): Make public.
4139 * event-loop.h (gdb_do_one_event): Declare.
4140
4141 2002-09-10 Jeff Law <law@redhat.com>
4142
4143 * infttrace.c (child_resume): Simplify and rework to avoid
4144 TT_PROC_CONTINUE.
4145
4146 2002-09-09 Fred Fish <fnf@intrinsity.com>
4147
4148 * printcmd.c (print_scalar_formatted): "len" is the number of
4149 target bytes, NOT the number of target bits.
4150
4151 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4152
4153 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4154 * top.c (init_main): Set rl_terminal_name.
4155
4156 2002-09-08 Aidan Skinner <aidan@velvet.net>
4157
4158 * ada-lang.c (ada_array_bound, ada_type_match,
4159 _initialize_ada_language): Fix K&R definitions.
4160 * ada-tasks.c (get_current_task): Fix K&R definitions.
4161 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4162
4163 2002-09-07 Christopher Faylor <cgf@redhat.com>
4164
4165 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4166 Add XP.
4167
4168 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4169
4170 * i386-tdep.c (i386_register_virtual_type,
4171 i386_register_convertible, i386_register_convert_to_virtual,
4172 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4173 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4174 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4175 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4176 Don't set push_arguments twice.
4177
4178 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4179 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4180 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4181 sigtramp_end to NULL.
4182 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4183 defines.
4184 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4185
4186 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4187 whitespace.
4188
4189 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4190 * gdbarch.h, gdbarch.c: Re-generate.
4191 * blockframe.c (find_pc_sect_partial_function): Convert to use
4192 SIGTRAMP_START_P predicate.
4193
4194 2002-09-05 Michael Snyder <msnyder@redhat.com>
4195
4196 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4197 generic_dummy_frame method and old method. Also distinguish
4198 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4199 (arm_extract_return_value): Use new regcache method.
4200
4201 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4202 adjustment that doesn't conform to the ABI.
4203 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4204 saved regcache, not from current regcache.
4205
4206 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4207
4208 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4209 * README: Update.
4210
4211 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4212
4213 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4214 if arm_apcs_32 is false.
4215
4216 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4217
4218 GDB 5.3 branch created.
4219
4220 2002-09-03 Theodore A. Roth <troth@verinet.com>
4221
4222 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4223 generic_unwind_get_saved_register.
4224
4225 2002-09-03 David Carlton <carlton@math.stanford.edu>
4226
4227 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4228 argument (PR gdb/653). Update call to smash_to_method_type.
4229 (read_structure_scope): Update call to dwarf2_add_member_fn.
4230
4231 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4232
4233 * x86-64-linux-tdep.c: Include gdb_string.h
4234 * x86-64-linux-nat.c: Ditto.
4235
4236 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4237
4238 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4239 when YYDEBUG is set to 1.
4240 * c-exp.y: Likewise.
4241 * f-exp.y: Likewise.
4242 * jv-exp.y: Likewise.
4243 * m2-exp.y: Likewise.
4244 * p-exp.y: Likewise.
4245
4246 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4247
4248 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4249 dependency list.
4250 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4251 solib_svr4_fetch_link_map_offsets to
4252 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4253 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4254 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4255 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4256 solib-svr4.o, and solib-legacy.o.
4257 * config/i386/tm-nbsd.h: Include solib.h.
4258
4259 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4260
4261 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4262 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4263 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4264 comment noting that this needs its own target configuration.
4265 * config/i386/nbsd.mt: New file.
4266 * config/i386/nbsdaout.mt: Remove.
4267 * config/i386/nbsdelf.mt: Ditto.
4268 * config/i386/tm-nbsdaout.h: Ditto.
4269
4270 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4271
4272 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4273 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4274 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4275 tdep->sigtramp_end.
4276 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4277 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4278 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4279
4280 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4281
4282 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4283 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4284 * i386-tdep.h (i386bsd_init_abi): New prototype.
4285 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4286 function declaration.
4287 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4288 for NetBSD-a.out or NetBSD-ELF.
4289 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4290 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4291 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4292 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4293 and nbsd-tdep.h.
4294 (i386nbsd_pc_in_sigtramp): New function.
4295 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4296 i386nbsd_pc_in_sigtramp.
4297 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4298 and i386nbsdelf_init_abi OS ABI handlers.
4299 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4300 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4301
4302 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4303
4304 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4305 registers if the target really has them.
4306
4307 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4308
4309 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4310 than nbsd-tdep.h.
4311
4312 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4313
4314 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4315 list.
4316 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4317 (alphanbsd_skip_sigtramp_frame): New functions.
4318 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4319 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4320 to alphanbsd_sigcontext_addr.
4321
4322 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4323
4324 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4325 list.
4326 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4327 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4328 nbsd_pc_in_sigtramp.
4329 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4330 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4331 * nbsd-tdep.c: Include gdb_string.h.
4332 (nbsd_pc_in_sigtramp): New function.
4333 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4334 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4335 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4336 ppcnbsd_pc_in_sigtramp.
4337 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4338 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4339 shnbsd_pc_in_sigtramp.
4340 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4341 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4342 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4343
4344 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4345
4346 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4347 watchpoints to NULL.
4348 (insert_breakpoints): set val field of watchpoints if NULL.
4349
4350
4351 2002-08-29 Jim Blandy <jimb@redhat.com>
4352
4353 * symtab.c (lookup_symbol_aux): In the cases where we find a
4354 minimal symbol of an appropriate name and use its address to
4355 select a symtab to read and search, use `name' (as passed to us)
4356 as the demangled name when searching the symtab's global and
4357 static blocks, not the minsym's name.
4358
4359 2002-08-29 Keith Seitz <keiths@redhat.com>
4360
4361 * stack.c (print_frame_info_base): Always set current_source_symtab
4362 and current_source_line.
4363
4364 2002-08-29 Donn Terry <donnte@microsoft.com>
4365
4366 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4367
4368 2002-08-28 Keith Seitz <keiths@redhat.com>
4369
4370 * stack.c (select_frame): Add FIXME concerning selected-frame
4371 events.
4372 (select_frame_command): Send selected-frame-level-changed
4373 event notification, but only if the level actually changed.
4374 (up_silently_base): Add selected-frame-level-changed event
4375 notification.
4376 (down_silently_base): Likewise.
4377
4378 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4379
4380 * Makefile.in: Update dependencies for all gdb/*.c files.
4381
4382 2002-08-27 Tom Tromey <tromey@redhat.com>
4383
4384 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4385 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4386 Update dependencies.
4387 * i387-tdep.c: Include gdb_string.h.
4388 * osabi.c: Likewise.
4389 * i386-linux-nat.c: Likewise.
4390 * lin-lwp.c: Likewise.
4391 * ax-gdb.c: Likewise.
4392 * signals/signals.c: Likewise.
4393 * jv-valprint.c: Likewise.
4394 * p-lang.c: Likewise.
4395 * c-valprint.c: Likewise.
4396 * cp-abi.c: Likewise.
4397
4398 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4399
4400 * cli/cli-script.h (copy_command_lines): Export.
4401 * breakpoint.c: Include cli/cli-script.h.
4402 * Makefile.in (breakpoint.o): Update dependencies.
4403
4404 2002-08-26 Michael Snyder <msnyder@redhat.com>
4405
4406 * breakpoint.c (insert_breakpoints): Protect all references
4407 to 'process_warning'. Shorten long lines.
4408
4409 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4410
4411 * cli/cli-script.c (copy_command_lines): New function.
4412 * defs.h (copy_command_lines): Export.
4413 * testsuite/gdb.base/commands.exp: New tests for commands
4414 attached to a temporary breakpoint, and for commands that
4415 delete the breakpoint they are attached to.
4416
4417 2002-08-26 Michael Snyder <msnyder@redhat.com>
4418
4419 * breakpoint.c (bpstat_stop_status): Instead of copying the
4420 pointer to the breakpoint commands struct, make a new copy
4421 of the struct and point to that.
4422 (bpstat_clear): Free the commands struct.
4423 (bpstat_clear_actions): Free the commands struct.
4424 (bpstat_do_actions): Free the command actions. Also execute
4425 the local cleanups, instead of deleting them.
4426 (delete_breakpoint): Leave the commands field of the bpstat
4427 chain alone -- it will be freed later.
4428
4429 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4430
4431 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4432 deleted in 2002-08-20 commit. This function is still used by
4433 ppc-linux-nat.c.
4434
4435 2002-08-26 Keith Seitz <keiths@redhat.com>
4436
4437 * gdb-events.sh: Add selected-frame-level-changed event.
4438 * gdb-events.c: Regenerated.
4439 * gdb-events.h: Regenerated.
4440
4441 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4442
4443 Fix PR gdb/393:
4444 * inflow.c (terminal_save_ours): New function to save terminal
4445 settings.
4446 * inferior.h (terminal_save_ours): Declare.
4447 * target.c (debug_to_terminal_save_ours): New function.
4448 (cleanup_target): Defaults to_terminal_save_ours.
4449 (update_current_target): Inherit to_terminal_save_ours.
4450 (setup_target_debug): Set to_terminal_save_ours.
4451 * target.h (target_terminal_save_ours): New to save terminal settings.
4452 (target_ops): New member to_terminal_save_ours.
4453 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4454 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4455 * inftarg.c (init_child_ops): Likewise.
4456 * m3-nat.c (init_m3_ops): Likewise.
4457 * procfs.c (init_procfs_ops): Likewise.
4458 * wince.c (init_child_ops): Likewise.
4459 * win32-nat.c (init_child_ops): Likewise.
4460 * sol-thread.c (init_sol_thread_ops): Likewise.
4461
4462 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4463
4464 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4465 use regcache_* functions.
4466 (i386_gdbarch_init): Set store_return_value instead of
4467 deprecated_store_return_value.
4468
4469 * regcache.c (regcache_raw_write_signed,
4470 regcache_raw_write_unsigned): New functions.
4471 * regcache.h (regcache_raw_write_signed,
4472 regcache_raw_write_unsigned): New prototypes.
4473
4474 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4475
4476 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4477 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4478 source file dependencies. Cleanup corresponding generator rules.
4479
4480 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4481
4482 * regcache.h (register_offset_hack): Declare.
4483 (regcache_cooked_read_using_offset_hack): Declare.
4484 (regcache_cooked_write_using_offset_hack): Declare.
4485
4486 * regcache.c (register_offset_hack): New function.
4487 (regcache_cooked_read_using_offset_hack): New function.
4488 (regcache_cooked_write_using_offset_hack): New function.
4489 (regcache_dump): Check that the registers, according to their
4490 offset, are packed hard against each other.
4491 (cooked_xfer_using_offset_hack): New function.
4492
4493 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4494
4495 * regcache.c (struct regcache_descr): Add field register_type.
4496 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4497 in as a parameter
4498 (init_regcache_descr): Initialize register_type. Pass the descr
4499 to init_legacy_regcache_descr. Use register_type instead of
4500 REGISTER_VIRTUAL_TYPE.
4501 (register_type): New function.
4502 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4503 * regcache.h (register_type): Declare.
4504
4505 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4506
4507 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4508 instead of deprecated_store_return_value. Fix fallout from
4509 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4510
4511 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4512
4513 * regcache.c (max_register_size): New function.
4514 (init_legacy_regcache_descr): Ensure that max_register_size is
4515 large enough for REGISTER_VIRTUAL_SIZE.
4516 * regcache.h (max_register_size): Declare.
4517
4518 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4519
4520 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4521 store_return_value.
4522 (e500_extract_return_value): Change type of valbuf pointer to
4523 void.
4524
4525 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4526
4527 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4528 workaround.
4529
4530 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4531 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4532 long long) to prevent compiler warning on 64-bit systems.
4533
4534 2002-08-23 Andrew Cagney <cagney@redhat.com>
4535
4536 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4537 (DEPRECATED_STORE_RETURN_VALUE): New method.
4538 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4539 * gdbarch.h, gdbarch.c: Re-generate.
4540
4541 * values.c (set_return_value): Pass current_regcache to
4542 STORE_RETURN_VALUE.
4543 * arch-utils.h (legacy_store_return_value): Declare.
4544 * arch-utils.c (legacy_store_return_value): New function.
4545 (legacy_extract_return_value): Update parameters.
4546
4547 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4548 STORE_RETURN_VALUE.
4549 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4550 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4551 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4552 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4553 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4554 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4555 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4556 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4557 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4558 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4559
4560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4561 * i386-tdep.c (i386_extract_return_value): Update.
4562 * arch-utils.c (legacy_extract_return_value): Update.
4563 * frv-tdep.c (frv_gdbarch_init): Update.
4564 * cris-tdep.c (cris_gdbarch_init): Update.
4565 * d10v-tdep.c (d10v_gdbarch_init): Update.
4566 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4567 * m68k-tdep.c (m68k_gdbarch_init): Update.
4568 * mcore-tdep.c (mcore_gdbarch_init): Update.
4569 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4570 * s390-tdep.c (s390_gdbarch_init): Update.
4571 * sparc-tdep.c (sparc_gdbarch_init): Update.
4572 * sh-tdep.c (sh_gdbarch_init): Update.
4573 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4574 * v850-tdep.c (v850_gdbarch_init): Update.
4575 * avr-tdep.c (avr_gdbarch_init): Update.
4576 * ia64-tdep.c (ia64_gdbarch_init): Update.
4577 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4578 * vax-tdep.c (vax_gdbarch_init): Update.
4579 * alpha-tdep.c (alpha_gdbarch_init): Update.
4580 * arm-tdep.c (arm_gdbarch_init): Update.
4581 * mips-tdep.c (mips_gdbarch_init): Update.
4582 * i386-tdep.c (i386_gdbarch_init): Update.
4583
4584 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4585
4586 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4587 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4588
4589 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4590
4591 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4592 problems.
4593
4594 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4595
4596 * infrun.c (handle_inferior_event): Move a comment outside of a
4597 function call, in order to avoid indent reformatting this part
4598 of the code in an unreadable way.
4599
4600 2002-08-23 Grace Sainsbury <graces@redhat.com>
4601
4602 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4603 when breakpoints fail. Move general breakpoint error messages to
4604 insert_breakpoints.
4605 * breakpoint.c (insert_breakpoints): Change warnings when
4606 breakpoints are nto inserted to specify the type. Remove call to
4607 memory_error when hardware breakpoints can't be inserted. Remove
4608 multiple calls to warning so all messages are sent to the user at
4609 once.
4610 (delete_breakpoints): Make insert error messsages more explicit.
4611
4612 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4613
4614 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4615 gdbserver/ChangeLog.
4616
4617 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4618
4619 * i386-tdep.c: Include "objfiles.h".
4620 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4621 skip_trampoline_code.
4622 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4623 (CPLUS_MARKER): Define to '.'.
4624
4625 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4626 member.
4627 (linux_corefile_thread_callback): Increase args->num_notes.
4628 (linux_make_note_section): Initialize thread_args.num_notes, and
4629 use it to determine whether notes for any threads were created.
4630
4631 2002-08-23 Donn Terry <donnte@microsoft.com>
4632
4633 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4634 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4635 and PCUNKILL.
4636 (write_with_trace): Conditionalize out the switch branch handling
4637 PCSHOLD if the corresponding macro is not defined. Likewise for
4638 PRSABORT and PRSTOP.
4639 This change will be needed by the Interix port.
4640
4641 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4642
4643 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4644 write_register wherever possible instead of manipulating the
4645 register bytes directly.
4646 Assign VALUE_CONTENTS to a variable and use that.
4647 The GPR numbers are now dependent on the architecture.
4648
4649 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4650
4651 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4652 ev_offset fields.
4653 (skip_prologue): Add support for BookE/e500 instructions.
4654 (e500_extract_return_value): New function.
4655 (frame_get_saved_regs): Add support for saving ev registers and
4656 pseudo gpr's.
4657 (e500_store_return_value): New function.
4658 (rs6000_gdbarch_init): Move up default intializations of
4659 deprecated_extract_return_value and store_return_value. Overwrite
4660 init of store_return_value with e500 specific version.
4661 Set extract_return_value for e500.
4662
4663 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4664
4665 * blockframe.c (generic_call_dummy_register_unwind): Use
4666 regcache_cooked_read to catch cases in which the variable is
4667 stored in a pseudo register.
4668
4669 2002-08-22 Andrew Cagney <cagney@redhat.com>
4670
4671 * NEWS: Mention that the i960 has been made obsolete.
4672 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4673 i960-tdep.c
4674 (remote-nrom.o): Obsolete target.
4675 (remote-nindy.o, i960-tdep.o): Ditto.
4676 * remote-nrom.c: Make file obsolete.
4677 * remote-nindy.c, remote-vx960.c: Ditto.
4678 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4679 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4680 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4681 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4682 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4683 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4684 i960-*-vxworks* obsolete.
4685 * MAINTAINERS: Note that the i960 is obsolete.
4686
4687 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4688
4689 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4690 detach to allow reinitialization.
4691
4692 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4693
4694 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4695 attempt).
4696
4697 2002-08-22 Jim Blandy <jimb@redhat.com>
4698
4699 * coffread.c (coff_symfile_read): Don't try to read the line
4700 number table from disk if the image file doesn't have a symbol
4701 table; we'll never actually look at the info anyway, and Windows
4702 ships DLL's with bogus file offsets for the line number data.
4703
4704 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4705
4706 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4707 an e500 executable.
4708
4709 2002-08-21 Michael Snyder <msnyder@redhat.com>
4710
4711 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4712 (MSYMBOL_SIZE): Replace macro with function.
4713 (DEFAULT_MIPS_TYPE): Delete unused macro.
4714 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4715 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4716
4717 2002-08-21 Jim Blandy <jimb@redhat.com>
4718
4719 * valops.c (value_cast): Simplify and correct logic for doing a
4720 static cast from a pointer to a base class to a pointer to a
4721 derived class.
4722
4723 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4724
4725 * infcmd.c (default_print_registers_info): Replace
4726 do_registers_info.
4727 (registers_info): Use gdbarch_print_registers_info instead of
4728 DO_REGISTERS_INFO.
4729 * inferior.h (default_print_registers_info): Replace
4730 do_registers_info.
4731 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4732 (DO_REGISTERS_INFO): Change to a predicate function.
4733 * gdbarch.h, gdbarch.c: Regenerate.
4734
4735 2002-08-21 Keith Seitz <keiths@redhat.com>
4736
4737 * gdb-events.sh: Add target-changed event.
4738 * gdb-events.c: Regenerated.
4739 * gdb-events.c: Regenerated.
4740 * valops.c (value_assign): Add target-changed event notification
4741 to inlval_register, lval_memory, and lval_reg_frame_relative.
4742
4743 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4744
4745 * NEWS: Add an entry regarding the improvement of the next/step
4746 operation on Alpha Tru64 multi-processor machines.
4747
4748 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4749
4750 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4751 directores.
4752 * Makefile.in: Update all _h macro definitions.
4753 * Makefile.in (install-gdbtk): Move to install section.
4754 (rdi-share/libangsd.a): Move to end of file.
4755
4756 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4757
4758 * frame.c (frame_register_unwind): When a register, set addrp to
4759 the register's byte.
4760
4761 2002-08-20 Michael Snyder <msnyder@redhat.com>
4762
4763 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4764 used locally, so move them from the target machine header to here.
4765 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4766 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4767 Make static.
4768 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4769
4770 2002-08-20 Andrew Cagney <cagney@redhat.com>
4771
4772 * NEWS: Mention that the Apollo line was made obsolete.
4773 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4774 m68*-hp-hpux* obsolete.
4775 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4776 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4777 * buildsym.c (make_blockvector): Make static.
4778 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4779 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4780 (ALLDEPFILES): Remove dstread.c.
4781 (dstread.o): Obsolete make rule.
4782 * dstread.c: Makefile obsolete.
4783 * dst.h: Ditto.
4784 * config/m68k/hp300hpux.mt: Ditto.
4785 * config/m68k/hp300hpux.mh: Ditto.
4786 * config/m68k/hp300bsd.mt: Ditto.
4787 * config/m68k/hp300bsd.mh: Ditto.
4788 * config/m68k/apollo68b.mt: Ditto.
4789 * config/m68k/apollo68v.mh: Ditto.
4790 * config/m68k/apollo68b.mh: Ditto.
4791
4792 2002-08-20 Michael Snyder <msnyder@redhat.com>
4793
4794 * mips-tdep.c (mips_in_return_stub): Make static.
4795 (mips_gdbarch_init): Set in_solib_return_trampoline.
4796 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4797
4798 2002-08-20 Michael Snyder <msnyder@redhat.com>
4799
4800 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4801 * gdbarch.c, gdbarch.h: Regenerate.
4802 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4803 Add.
4804 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4805
4806 2002-08-20 Michael Snyder <msnyder@redhat.com>
4807
4808 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4809 (mips_gdbarch_init): Set skip_trampoline_code,
4810 in_solib_call_trampoline.
4811 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4812 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4813
4814 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4815
4816 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4817
4818 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4819 vector type for ev registers.
4820 (e500_pseudo_register_read): New function.
4821 (e500_pseudo_register_write): New function.
4822 (e500_dwarf2_reg_to_regnum): New function.
4823 (PPC_UISA_NOFP_SPRS): New macro.
4824 (PPC_EV_REGS): New macro.
4825 (PPC_GPRS_PSEUDO_REGS): New macro.
4826 (registers_e500): New register set for e500.
4827 (variants): Add e500 variant.
4828 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4829 before setting architectural dependent variations. Initialize ev
4830 registers numbers. Add case for e500 architecture. Set the
4831 number of pseudo registers.
4832
4833 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4834
4835 * rs6000-tdep.c: Clean up comments.
4836
4837 2002-08-20 Andrew Cagney <cagney@redhat.com>
4838
4839 * h8300-tdep.c: Re-indent file.
4840
4841 2002-08-20 Jim Blandy <jimb@redhat.com>
4842
4843 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4844 default for this.
4845
4846 2002-08-20 Keith Seitz <keiths@redhat.com>
4847
4848 * breakpoints.c (watch_command_1): Use internal breakpoint
4849 when setting a watchpoint_scope breakpoint.
4850
4851 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4852
4853 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4854 (build_builtin_type_vec64i): Ditto.
4855 (build_builtin_type_vec128): Ditto.
4856 (build_builtin_type_vec128i): Ditto.
4857
4858 2002-08-19 Michael Snyder <msnyder@redhat.com>
4859
4860 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4861 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4862 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4863 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4864 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4865 CALL_DUMMY_ADDRESS): Delete.
4866 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4867 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4868 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4869 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4870 push_return_address.
4871 (mips_register_raw_size, mips_eabi_use_struct_convention,
4872 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4873 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4874 mips_init_extra_frame_info, mips_eabi_push_arguments,
4875 mips_n32n64_push_arguments, mips_push_return_address,
4876 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4877 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4878
4879 2002-08-19 Michael Snyder <msnyder@redhat.com>
4880
4881 * mips-tdep.c (mips_frame_num_args): New function.
4882 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4883 frame_saved_pc, frame_args_address, frame_locals_address,
4884 frame_num_args, and frame_args_skip.
4885 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4886 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4887 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4888 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4889
4890 2002-08-20 Michael Snyder <msnyder@redhat.com>
4891
4892 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4893 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4894 * mips-tdep.c (mips_store_struct_return): New function.
4895 (mips_extract_struct_value_address): New function.
4896 (mips_gdbarch_init): Set store_struct_return and
4897 extract_struct_value_address.
4898
4899 2002-08-20 David Carlton <carlton@math.stanford.edu>
4900
4901 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4902 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4903 (read_file_scope): Check that line_header is nonzero before
4904 decoding macro information.
4905
4906 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4907
4908 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4909 flag the general-purpose registers as floating-point on targets
4910 that don't support the floating-point registers.
4911
4912 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4913
4914 * rs6000-tdep.c (altivec_register_p): Delete.
4915 (rs6000_do_altivec_registers): Delete.
4916 (rs6000_altivec_registers_info): Delete.
4917 (rs6000_do_registers_info): Delete.
4918 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4919 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4920
4921 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4922
4923 * infcmd.c (do_registers_info): Print vector registers in hex
4924 format only.
4925 (print_vector_info): Check that printing registers
4926 makes sense.
4927 (print_float_info): Ditto.
4928
4929 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4930
4931 * mips-tdep.c (mips_gdbarch_init): Update.
4932 (mips_o32_extract_return_value): Rewrite.
4933 (mips_o32_store_return_value): Rewrite.
4934 (mips_o32_xfer_return_value): New function.
4935 (mips_xfer_register): Tweak debug print message. Allow for
4936 buf_offset when dumping the value transfered.
4937
4938 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4939
4940 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4941 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4942 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4943 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4944 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4945
4946 2002-08-14 Michael Snyder <msnyder@redhat.com>
4947
4948 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4949
4950 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4951
4952 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4953 register.
4954 (P): New macro to define a register as a pseudo register.
4955 (R, R4, R8, R16, FR32, R64, R0): Updated.
4956 (struct variant): Add new fields for number of pseudo registers
4957 and number of total registers.
4958 (tot_num_registers): New macro replacing....
4959 (num_registers): ...deleted macro.
4960 (num_registers): New function.
4961 (num_pseudo_registers): New function.
4962 (variants): Update all variants to intialize new fields correctly.
4963 Postpone initialization of number of pseudo regs and real regs.
4964 (init_variants): New function.
4965 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4966 registers offsets.
4967
4968 2002-08-19 David Carlton <carlton@math.stanford.edu>
4969
4970 * valops.c (search_struct_field): Change error message to treat
4971 return value of 0 from value_static_field as meaning that field is
4972 optimized out.
4973 (value_struct_elt_for_reference): Ditto.
4974 * values.c (value_static_field): Treat an unresolved location the
4975 same as a nonexistent symbol. Fix PR gdb/635.
4976 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4977 enclosed. Fix PR gdb/574.
4978 * MAINTAINERS: Add self to Write After Approval list.
4979
4980 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4981
4982 * mips-tdep.c (mips_xfer_register): New function.
4983 (mips_n32n64_extract_return_value): Rewrite.
4984 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4985 instead of deprecated_extract_return_value.
4986
4987 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4988
4989 * rs6000-tdep.c (TDEP): Delete macro.
4990 (branch_dest): Replace use of TDEP macro with its body.
4991 (rs6000_pop_frame): Ditto.
4992 (rs6000_push_arguments): Ditto.
4993 (rs6000_skip_trampoline_code): Ditto.
4994 (rs6000_frame_saved_pc): Ditto.
4995 (rs6000_frame_chain): Ditto.
4996 (rs6000_register_name): Ditto.
4997 (rs6000_register_byte): Ditto.
4998 (rs6000_register_raw_size): Ditto.
4999 (rs6000_register_virtual_type): Ditto.
5000 (rs6000_register_convertible): Ditto.
5001 (rs6000_convert_from_func_ptr_addr): Ditto.
5002
5003 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5004
5005 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5006 conditionally.
5007 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5008 MIPS_LINUX_JB_ELEMENT_SIZE.
5009 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5010 for MAX_REGISTER_RAW_SIZE arrays.
5011 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5012 MIPS_LINUX_JB_ELEMENT_SIZE.
5013
5014 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5015
5016 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5017
5018 2002-08-19 Aidan Skinner <aidan@velvet.net>
5019
5020 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5021 ada-valprint.c ada-tasks.c.
5022 (YYFILES): Add ada-exp.y.
5023 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5024 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5025 (ada-exp.tab.o): New target.
5026
5027 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5028
5029 * regcache.c (regcache_xfer_part): New function.
5030 (regcache_raw_read_part): New function.
5031 (regcache_raw_write_part): New function.
5032 (regcache_cooked_read_part): New function.
5033 (regcache_cooked_write_part): New function.
5034 * regcache.h (regcache_raw_read_part): Declare.
5035 (regcache_raw_write_part): Declare.
5036 (regcache_cooked_read_part): Declare.
5037 (regcache_cooked_write_part): Declare.
5038
5039 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5040
5041 * remote.c (remote_open_1): Add async_p.
5042 (remote_async_open_1): Delete.
5043 (open_remote_target): Delete.
5044 (remote_open, extended_remote_open): Update calls to remote_open_1.
5045 (remote_async_open, extended_remote_async_open): Call
5046 remote_open_1 instead of remote_async_open_1.
5047
5048 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5049
5050 * blockframe.c: Fix a few coding standard violations.
5051
5052 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5053
5054 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5055 here from ...
5056 * config/i386/tm-i386sco5.h: ... here. File removed.
5057 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5058
5059 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5060 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5061 (TM_FILE): Set to tm-i386.h.
5062 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5063 * config/i386/tm-i386v.h: Remove file.
5064 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5065 instead of "i386/tm-i386v.h".
5066 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5067 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5068 "i386/tm-i386v.h".
5069 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5070 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5071 "i386/tm-i386.h".
5072
5073 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5074
5075 * config/i386/nm-i386v.h: Add protection against
5076 multiple-inclusion.
5077 (i386_register_u_addr): Remove prototype.
5078 (register_u_addr): New prototype.
5079 (REGISTER_U_ADDR): Redefine accordingly.
5080 * i386v-nat.c: Improve several comments.
5081 (i386_register_u_addr): Change signature and rename to
5082 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5083 ubase variable.
5084
5085 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5086
5087 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5088 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5089 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5090 deprecated_extract_return_value.
5091 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5092 rename mips_o32o64_push_arguments.
5093 (mips_gdbarch_init): Update.
5094 (mips_extract_return_value): Delete.
5095 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5096 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5097 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5098 (mips_n32n64_extract_return_value): Clone
5099 mips_extract_return_value.
5100 (mips_store_return_value): Delete.
5101 (mips_o32_store_return_value): Clone mips_store_return_value.
5102 (mips_o64_store_return_value): Clone mips_store_return_value.
5103 (mips_eabi_store_return_value): Clone mips_store_return_value.
5104 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5105
5106 2002-08-18 Aidan Skinner <aidan@velvet.net>
5107
5108 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5109 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5110
5111 2002-08-18 Aidan Skinner <aidan@velvet.net>
5112
5113 * ada-lang.c: Run through gdb_indent.sh.
5114 * ada-lang.h: Run through gdb_indent.sh.
5115 * ada-tasks.c: Run through gdb_indent.sh.
5116 * ada-typeprint.c: Run through gdb_indent.sh.
5117 * ada-valprint.c: Run through gdb_indent.sh.
5118
5119 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5120
5121 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5122 ABI.
5123
5124 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5125
5126 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5127
5128 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5129 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5130
5131 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5132 write_register_gen instead of write_register_bytes.
5133
5134 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5135 i[3456]-*-osf1mk* configurations have been made obsolete.
5136 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5137 i[3456]86-*-osf1mk* hosts obsolete.
5138 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5139 targets obsolete.
5140 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5141 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5142 config/i386/i386m3.mt, config/i386/nm-m3.h,
5143 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5144 config/i386/i386mk.mh, config/i386/i386mk.mt,
5145 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5146 obsolete.
5147 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5148 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5149 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5150
5151 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5152
5153 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5154 (hppa_value_returned_from_stack): Declare.
5155 (hppa_extract_return_value): Declare.
5156 * config/pa/hppa.mt: New file.
5157 * configure.tgt: Recognize hppa*-*-*.
5158 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5159
5160 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5161
5162 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5163 comment.
5164
5165 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5166
5167 * top.c (gdb_rl_operate_and_get_next): Make sure
5168 operate-and-get-next functions correctly even when the history
5169 list is completely filled.
5170
5171 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5172
5173 * MAINTAINERS (Target Instruction Set Architectures): Rename
5174 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5175 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5176 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5177 already listed under Host/Native.
5178
5179 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5180 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5181 mips*-*-*.
5182
5183 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5184
5185 * config/ia64/ia64.mt: New file.
5186 * config/alpha/alpha.mt: New file.
5187 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5188 ia64-linux-gnu. Mention that ia64-elf is broken.
5189 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5190
5191 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5192
5193 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5194 generic_func_frame_valid instead of func_frame_valid.
5195
5196 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5197
5198 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5199 procfs appears to be broken when debugging on multi-processor
5200 machines. So enable software single stepping in order to avoid
5201 using the procfs interface to do next/step operations, using
5202 internal breakpoints instead.
5203
5204 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5205 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5206 make this pc address equal to the value it would have if the
5207 system stepping capability was used. Also set a new flag used
5208 to ensure that we don't readjust the PC one more time later.
5209
5210 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5211 address by DECR_PC_AFTER_BREAK when software single step is
5212 in use for this architecture, as this has already been taken
5213 care of in handle_inferior_event().
5214
5215 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5216
5217 * infrun.c (handle_inferior_event): Minor reformatting, to make
5218 a rather long condition expression easier to read.
5219
5220 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5221
5222 * Makefile.in (gdbtk.o): Move to end of file.
5223 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5224 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5225 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5226 (gdbtk-wrapper.o, gdbres.o): Ditto.
5227
5228 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5229
5230 * Makefile.in (copying.o): Separate out compile rule.
5231 (hpux-thread.o, procfs.o, signals.o): Ditto.
5232 (v850ice.o, z8k-tdep.o): Ditto.
5233 (tui-file.o): Move to TUI section.
5234 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5235 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5236
5237 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5238
5239 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5240 skip_trampoline_code, for better namespace-proofing.
5241
5242 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5243
5244 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5245
5246 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5247
5248 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5249
5250 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5251 signal, check whether we hit a breakpoint before checking for a
5252 single step breakpoint. Otherwise, GDB fails to notice that a
5253 breakpoint has been hit when stepping onto a breakpoint.
5254
5255 2002-08-16 Keith Seitz <keiths@redhat.com>
5256
5257 * gdb-events.sh (clear_gdb_event_hooks): New function.
5258 * gdb-events.c: Regenerate.
5259 * gdb-events.h: Regenerate.
5260
5261 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5262
5263 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5264 not_a_sw_breakpoint.
5265 * breakpoint.h (bpstat_stop_status): Add parameter names.
5266
5267 2002-08-16 Grace Sainsbury <graces@redhat.com>
5268
5269 * remote.c (remote_insert_hw_breakpoint)
5270 (remote_remove_hw_breakpoint): Fix calculation of length field
5271 for Z-packet.
5272
5273 2002-08-15 Michael Snyder <msnyder@redhat.com>
5274
5275 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5276 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5277 (supply_fpregset): Ditto.
5278
5279 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5280 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5281 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5282 (TARGET_READ_SP): Delete.
5283 (DO_REGISTERS_INFO): Delete.
5284 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5285 Delete.
5286 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5287 from macros to functions.
5288
5289 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5290 (mips_register_convertible, mips_register_convert_to_virtual,
5291 mips_register_convert_to_raw): Make static.
5292 (mips_read_sp): New function.
5293 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5294 (mips_do_registers_info): Make static.
5295 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5296 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5297 (mips_register_convert_from_type, mips_register_convert_to_type):
5298 New functions.
5299 (mips_gdbarch_init): Set up function_start_offset,
5300 register_virtual_size, pc_in_sigtramp.
5301
5302 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5303
5304 * infcmd.c (vector_info): New function.
5305 (_initialize_infcmd): Add command "info vector".
5306 (print_vector_info): New function.
5307
5308 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5309 * gdbarch.h, gdbarch.c: Regenerate.
5310
5311 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5312
5313 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5314 ``print_all''. Only print vector registers when ``print_all''.
5315
5316 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5317
5318 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5319 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5320
5321 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5322 Add `args' parameter.
5323 * gdbarch.h, gdbarch.c: Regenerate.
5324
5325 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5326
5327 * infcmd.c (float_info): Call print_float_info.
5328 (print_float_info): New function. By default, print the
5329 floating-point registers.
5330
5331 * arch-utils.h (default_print_float_info): Delete declaration.
5332 * arch-utils.c (default_print_float_info): Delete function.
5333
5334 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5335
5336 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5337 out define.
5338
5339 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5340 FRAME.
5341
5342 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5343 * configure.host: Make i[3456]86-*-aix host obsolete.
5344 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5345 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5346 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5347 config/i386/xm-i386aix.h: Make files obsolete.
5348 * i386aix-nat.c: Make file obsolete.
5349 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5350 (i386aix-nat.o): Make target obsolete.
5351
5352 * config/i386/nm-gnu.h: Removed.
5353 * config/i386/nm-i386gnu.h: New file.
5354 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5355 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5356 Moved here from ...
5357 * config/i386/tm-i386gnu.h: ... here. Removed.
5358 * config/i386/xm-i386gnu.h: Removed.
5359 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5360 (NAT_FILE): Set to nm-i386gnu.h.
5361 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5362 * i386-tdep.c: New file.
5363 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5364 (i386gnu-tdep.o): Specify dependencies.
5365
5366 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5367
5368 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5369 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5370 Adjust a few comments to reflect reality a bit closer.
5371 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5372 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5373 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5374 target_insert_watchpoint, target_remove_watchpoint):
5375 Move defines to ...
5376 * config/i386/nm-i386sco5.h: ... here.
5377 (kernel_u_size): Add prototype. Improve a few comments and add
5378 protection against multiple inclusion.
5379
5380 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5381 out define.
5382
5383 * uw-thread.c (SP_ARG0): Define if not already defined.
5384 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5385
5386 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5387
5388 * config/i386/tm-i386.h: Don't include "regcache.h".
5389
5390 * i387-tdep.h (i387_print_float_info): New prototype.
5391 * i387-tdep.c (print_i387_value, print_i387_ext,
5392 print_i387_status_word, print_i387_control_word): Add `struct
5393 ui_file *' argument and use it for output.
5394 (i387_print_float_info): Renamed from i387_float_info. Add
5395 `struct gdbarch *' and `struct ui_file *' arguments and use the
5396 latter for output.
5397 * i386-tdep.c: Include "i387-tdep.h".
5398 (i386_gdbarch_init): Set print_float_info.
5399 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5400 (FLOAT_INFO): Remove define.
5401
5402 2002-08-13 Michael Snyder <msnyder@redhat.com>
5403
5404 * mips-tdep.c (mips_push_arguments): Rename to
5405 mips_eabi_push_arguments, and tune for EABI.
5406 (MIPS_REGS_HAVE_HOME_P): Delete.
5407 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5408 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5409 Delete references to mips_regs_have_home_p.
5410
5411 2002-08-14 Keith Seitz <keiths@redhat.com>
5412
5413 * Makefile.in (install-gdbtk): Create insight plugin directory.
5414 Install plugins.tcl file.
5415
5416 2002-08-14 Keith Seitz <keiths@redhat.com>
5417
5418 * configure.in: Move SUBDIRS to near top of the file so that
5419 --enable options may add things to it.
5420 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5421 * configure: Regenerate.
5422
5423 2002-08-13 Michael Snyder <msnyder@redhat.com>
5424
5425 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5426 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5427 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5428
5429 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5430
5431 * vax-tdep.c (vax_get_saved_register): Delete function.
5432 (vax_gdbarch_init): Update.
5433 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5434 (ns32k_gdbarch_init): Update.
5435 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5436 (alpha_gdbarch_init): Update.
5437
5438 2002-08-13 Andrew Cagney <cagney@redhat.com>
5439
5440 * regcache.c (init_regcache_descr): Overallocate the
5441 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5442 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5443 nr_raw_registers.
5444 (set_register_cached): Add range checking assertions. Use
5445 current_regcache.
5446
5447 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5448
5449 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5450 numbers for MMX registers.
5451
5452 2002-08-13 Andrew Cagney <cagney@redhat.com>
5453
5454 * i386-tdep.c (i386_gdbarch_init): Use
5455 generic_unwind_get_saved_register.
5456
5457 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5458
5459 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5460 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5461 target vector.
5462 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5463 Delete. Add comment regarding this now-deleted target method.
5464
5465 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5466
5467 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5468 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5469 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5470 real PC and the page number (if it's within the memory bank window).
5471 (m68hc11_pseudo_register_write): Likewise when saving.
5472 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5473 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5474 (m68hc11_register_raw_size): And use 32-bit for it.
5475 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5476 16K memory bank is used by the prog; also use the virtual pc.
5477
5478 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5479
5480 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5481 (m68hc11_gdbarch_init): Install it in gdbarch.
5482 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5483 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5484 (MSYMBOL_SIZE): New for documentation.
5485 (insn_return_kind): Enum to specify how a function returns.
5486 (frame_extra_info): Cleanup and record the return mode.
5487 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5488 register in address computation.
5489 (m68hc11_get_return_insn): New to obtain the return instruction used
5490 by the function.
5491 (m68hc11_frame_init_saved_regs): Take into account the return
5492 instruction used by the function for far and interrupt functions.
5493 (m68hc11_init_extra_frame_info): Take into account page register.
5494 (m68hc11_frame_args_address): Adjust according to the return mode.
5495 (show_regs): Print page register only when it's used.
5496
5497 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5498
5499 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5500 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5501 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5502 registers.
5503 (m68hc11_register_raw_size): Likewise.
5504
5505 2002-08-13 Andrew Cagney <cagney@redhat.com>
5506
5507 * i386-tdep.c (i386_register_name): Handle mmx registers.
5508 (mmx_regnum_p): New function.
5509 (i386_mmx_names): New array.
5510 (mmx_num_regs): New variable.
5511 (i386_pseudo_register_read): New function.
5512 (i386_pseudo_register_write): New function.
5513 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5514
5515 * regcache.c (regcache_raw_read_unsigned): New function.
5516 (regcache_raw_read_signed): New function.
5517 * regcache.h (regcache_raw_read_unsigned): Declare.
5518 (regcache_raw_read_signed): Declare.
5519
5520 2002-08-13 Andrew Cagney <cagney@redhat.com>
5521
5522 * regcache.c (regcache_raw_read_as_address): Delete function.
5523 (regcache_cooked_read_signed): New function.
5524 (regcache_cooked_read_unsigned): New function.
5525 * regcache.h (regcache_cooked_read_signed): Declare.
5526 (regcache_cooked_read_unsigned): Declare.
5527 (regcache_raw_read_as_address): Delete declaration.
5528
5529 * blockframe.c (generic_read_register_dummy): Use
5530 regcache_cooked_read_unsigned.
5531 * i386-tdep.c (i386_extract_struct_value_address): Use
5532 regcache_cooked_read_unsigned.
5533
5534 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5535
5536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5537 double sizes according to ELF ABI flags.
5538 (gdbarch_tdep): Record elf_flags.
5539
5540 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5541
5542 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5543 (m6812_prolog): They can appear in 68HC12 function prologue.
5544 (m68hc11_frame_chain): Cleanup.
5545
5546 2002-08-12 Andrew Cagney <cagney@redhat.com>
5547
5548 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5549 declarations.
5550 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5551 (i386_linux_register_raw_size): Delete function.
5552 (i386_linux_init_abi): Update.
5553 * i386-tdep.c (i386_register_raw_size): Delete function.
5554 (i386_register_byte): Delete function.
5555 (i386_gdbarch_init): Update.
5556 (i386_register_size): Delete array.
5557 (i386_register_offset): Delete array.
5558
5559 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5560 (REGISTER_RAW_SIZE): Delete macro.
5561 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5562 (REGISTER_BYTE): Delete macro.
5563
5564 2002-08-11 Aidan Skinner <aidan@velvet.net>
5565
5566 * ada-lang.c (ada_lookup_partial_symbol)
5567 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5568 prototype names so that grep ^func works properly.
5569
5570 * ada-lang.c (ada_array_element_type)
5571 (ada_lookup_partial_symbol): Fix typos in parameter list.
5572
5573 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5574 Fix prototype names so that grep ^func works properly.
5575
5576 2002-08-10 Andrew Cagney <cagney@redhat.com>
5577 Elena Zannoni <ezannoni@redhat.com>
5578 Martin M. Hunt <hunt@redhat.com>
5579
5580 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5581 (build_builtin_type_vec128i): Set the vector bit.
5582 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5583 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5584 (build_builtin_type_vec64): New function.
5585 (build_builtin_type_vec64i): New function.
5586 (build_gdbtypes): Initialize builtin_type_vec64 and
5587 builtin_type_vec64i.
5588
5589 2002-08-09 Andrew Cagney <cagney@redhat.com>
5590
5591 * regcache.c (regcache_dump): Compare the register offset
5592 with REGISTER_BYTE.
5593 * arch-utils.c (generic_register_byte): New function.
5594 * arch-utils.h (generic_register_byte): Declare.
5595 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5596 * gdbarch.h, gdbarch.c: Regenerate.
5597
5598 2002-08-09 Andrew Cagney <cagney@redhat.com>
5599
5600 * regcache.c: Include "gdbcmd.h"
5601 (_initialize_regcache): Add commands "maintenance print
5602 registers", "maintenance print raw-registers" and "maintenance
5603 print cooked-registers".
5604 (enum regcache_dump_what): Define.
5605 (dump_endian_bytes): New function.
5606 (regcache_dump): New function.
5607 (regcache_print): New function.
5608 (maintenance_print_registers): New function.
5609 (maintenance_print_raw_registers): New function.
5610 (maintenance_print_cooked_registers): New function.
5611 * Makefile.in (regcache.o): Update dependencies.
5612
5613 2002-08-09 Michael Snyder <msnyder@redhat.com>
5614
5615 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5616 (mips_push_arguments): Correct some comments. Use paddr_nz
5617 for printing addresses in debug output. Replace static
5618 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5619 (mips_n32n64_push_arguments): New function, cloned from
5620 mips_push_arguments and tuned for the n32/n64 ABI.
5621 (mips_push_register): Buffer needs dynamic allocation.
5622 (mips_print_register): Ditto.
5623 (do_gp_register_row): Ditto.
5624 (mips_store_return_value): Ditto.
5625 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5626
5627 2002-08-09 Don Howard <dhoward@redhat.com>
5628
5629 * memattr.c (mem_info_command): Print special case of upper bound
5630 as max CORE_ADDR + 1.
5631
5632 2002-08-08 Michael Snyder <msnyder@redhat.com>
5633
5634 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5635 returns structs by ref if they're too big to fit in two registers.
5636
5637 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5638
5639 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5640 saved regs value.
5641 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5642 mips_find_saved_regs().
5643 (mips_pop_frame): Likewise.
5644
5645 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5646
5647 * blockframe.c (frame_saved_regs_register_unwind): Revise
5648 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5649 frames are in use.
5650
5651 2002-08-09 Grace Sainsbury <graces@redhat.com>
5652
5653 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5654 T-packets; the 'a' is not taken as a register number.
5655 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5656 (remote_stopped_data_address): New functions; add to target
5657 vector.
5658 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5659 prototypes to match other implementations of this
5660 function. replace integer argument with pointer -- the length
5661 field in the Z-packet is the length of what is pointed to or 1 if
5662 pointer is null. Add to target vector.
5663 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5664 target vector.
5665
5666 From Mark Salter:
5667 * remote.c (remote_wait): Add support to extract optional
5668 watchpoint information from T-packet. Ignore unrecognized
5669 optional info in T-packet.
5670 (remote_async_wait): Ditto.
5671
5672 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5673
5674 * cli/cli-dump.c: Change fopen modes to use binary open modes
5675 as defined in include/fopen-bin.h throughout.
5676
5677 2002-08-08 Michael Snyder <msnyder@redhat.com>
5678
5679 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5680
5681 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5682
5683 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5684 assertion failure by returning early after a warning.
5685
5686 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5687
5688 * mips-tdep.c (mips_find_saved_regs): Make static.
5689 (mips_frame_init_saved_regs): New function.
5690 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5691 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5692 (mips_find_saved_regs): Delete declaration.
5693
5694 2002-08-08 Grace Sainsbury <graces@redhat.com>
5695
5696 * remote.c (remote_wait, remote_async_wait): Change
5697 thread_num from int to ULONGEST.
5698 (unpack_varlen_hex): Change result parameter from
5699 int * to ULONGEST *.
5700
5701 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5702
5703 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5704 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5705 powerpc*-*-*.
5706 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5707
5708 2002-08-08 Andrew Cagney <cagney@redhat.com>
5709
5710 * gcore.c (override_derive_stack_segment): Delete variable.
5711 (preempt_derive_stack_segment): Delete function.
5712 (derive_stack_segment): Delete function.
5713 (default_derive_stack_segment): Renamed to derive_stack_segment.
5714 (override_derive_heap_segment): Delete variable.
5715 (preempt_derive_heap_segment): Delete function.
5716 (derive_heap_segment): Delete function.
5717 (default_derive_heap_segment): Rename to derive_heap_segment.
5718
5719 2002-08-06 Michael Snyder <msnyder@redhat.com>
5720
5721 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5722 * mips-tdep.c (mips_EABI_use_struct_convention,
5723 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5724 New functions. (mips_use_struct_convention): Delete.
5725 (mips_gdbarch_init): set use_gdbarch_convention.
5726
5727 2002-08-06 Michael Snyder <msnyder@redhat.com>
5728
5729 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5730 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5731 mips_o32_reg_struct_has_addr): New functions.
5732 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5733
5734 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5735
5736 * regcache.c (pseudo_register): Delete function.
5737 (fetch_register): Delete function.
5738 (store_register): Delete function.
5739 (regcache_raw_read, legacy_read_register_gen): Use
5740 target_fetch_registers instead of fetch_register.
5741 (legacy_write_register_gen, regcache_raw_write): Use
5742 target_store_register instead of store_register.
5743 (write_register_bytes): Ditto.
5744
5745 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5746 (STORE_PSEUDO_REGISTER): Delete.
5747 * gdbarch.h, gdbarch.c: Regenerate.
5748
5749 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5750
5751 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5752 write dump file binary.
5753
5754 2002-08-05 Michael Snyder <msnyder@redhat.com>
5755
5756 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5757 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5758 (mips_gdbarch_init): Set N32 target to be mips64.
5759
5760 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5761
5762 * frame.c (find_saved_register): Break out of loop once saved
5763 register address is found. Don't mention sparc in loop comment
5764 anymore.
5765
5766 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5767
5768 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5769 mips_default_saved_regsize to 8.
5770
5771 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5772
5773 * gcore.c: Do not include <sys/procfs.h>.
5774 * Makefile.in (gcore.o): Update dependencies.
5775
5776 2002-08-06 Andrew Cagney <cagney@redhat.com>
5777
5778 * configure.tgt: Make arc-*-* obsolete.
5779 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5780 * MAINTAINERS: Make arc-elf obsolete.
5781 * arc-tdep.c: Make file obsolete.
5782 * config/arc/arc.mt: Ditto.
5783 * config/arc/tm-arc.h: Ditto.
5784
5785 2002-08-05 Theodore A. Roth <troth@verinet.com>
5786
5787 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5788
5789 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5790
5791 * mcore-tdep.c (mcore_gdbarch_init): Use
5792 generic_unwind_get_saved_register instead of
5793 generic_get_saved_register.
5794 * v850-tdep.c (v850_gdbarch_init): Ditto.
5795 * frv-tdep.c (frv_gdbarch_init): Ditto.
5796 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5797 * s390-tdep.c (s390_gdbarch_init): Ditto.
5798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5799 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5800 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5801
5802 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5803
5804 * objfiles.h: Add missing #include "symfile.h"
5805
5806 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5807
5808 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5809
5810 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5811 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5812 of FIELD_BITSIZE.
5813
5814 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5815
5816 * NEWS: Cleanup and nitpick.
5817
5818 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5819
5820 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5821
5822 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5823
5824 * Makefile.in (gdbtk-bp.o): Update dependencies.
5825 (gdbtk-register.o): Ditto.
5826 (gdbtk-varobj.o): Ditto.
5827
5828 2002-08-03 Andrew Cagney <cagney@redhat.com>
5829
5830 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5831 m68hc11_fetch_pseudo_register.
5832 (m68hc11_pseudo_register_write): Replace
5833 m68hc11_store_pseudo_register.
5834 (m68hc11_gdbarch_init): Update.
5835
5836 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5837
5838 * gdbarch.sh: Include "gdb_string.h".
5839 * gdbarch.c: Regenerate.
5840
5841 * regcache.c: Include "gdb_string.h".
5842 * ax-general.c: Ditto.
5843 * varobj.c: Ditto.
5844 * std-regs.c: Ditto.
5845 * fbsd-proc.c: Ditto.
5846 * thread.c: Ditto.
5847
5848 * Makefile.in (regcache.o): Update dependencies.
5849 (thread.o, gdbarch.o): Ditto.
5850 (ax-general.o, gdbarch.o): Ditto.
5851 (varobj.o, std-regs.o): Ditto.
5852 (fbsd-proc.o): Specify dependencies.
5853
5854 2002-08-02 Andrew Cagney <cagney@redhat.com>
5855
5856 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5857 regnum.
5858 (regcache_cooked_write): Ditto.
5859
5860 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5861
5862 * regcache.c (regcache_cooked_read): New function.
5863 (regcache_cooked_write): New function.
5864 (read_register_gen): Rewrite using regcache_cooked_read.
5865 (write_register_gen): Rewrite using regcache_cooked_write.
5866
5867 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5868 Declare.
5869
5870 2002-08-02 Andrew Cagney <cagney@redhat.com>
5871
5872 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5873 Replace the architecture methods register_read and register_write.
5874 * gdbarch.h, gdbarch.c: Regenerate.
5875 * regcache.c (init_regcache_descr): Update.
5876 (read_register_gen): Update.
5877 (write_register_gen): Update.
5878 (supply_register): Update comment.
5879
5880 * sh-tdep.c (sh_gdbarch_init): Update.
5881 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5882 `regcache' and `gdbarch' parameters. Make `buffer' a void
5883 pointer. Update code.
5884 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5885 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5886 void pointer. Update code.
5887 (sh64_register_write): Delete.
5888 (sh4_register_read): Delete.
5889 (sh64_register_read): Delete.
5890 (sh4_register_write): Delete.
5891 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5892 void pointer, `to' parameter a void pointer.
5893 (sh_sh64_register_convert_to_raw): Ditto.
5894
5895 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5896
5897 * mips-tdep.c (mips_register_virtual_type): Use architecture
5898 invariant return values.
5899
5900 2002-08-01 Andrew Cagney <cagney@redhat.com>
5901
5902 * linux-proc.c: Include "gdb_string.h".
5903 * Makefile.in (linux-proc.o): Update dependency list.
5904
5905 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5906
5907 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5908 comment.
5909
5910 2002-08-01 Grace Sainsbury <graces@redhat.com>
5911
5912 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5913 to_insert_watchpoint, to_remove_watchpoint,
5914 to_stopped_by_watchpoint, to_stopped_data_address,
5915 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5916 target vecctor. Define their corresponding macros so they call
5917 them.
5918
5919 * target.c: Add default and debug versions of for
5920 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5921 to_insert_watchpoint, to_remove_watchpoint,
5922 to_stopped_by_watchpoint, to_stopped_data_address,
5923 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5924
5925 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5926
5927 * mips-tdep.c (mips_register_virtual_type): New function.
5928 (mips_gdbarch_init): Register mips_register_virtual_type()
5929 with gdbarch machinery.
5930 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5931 this file instead of tm-bigmips.h.
5932 (MIPS_REGSIZE): Delete this macro.
5933 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5934 multiarch version in mips-tdep.c will be found.
5935
5936 2002-08-01 Andrew Cagney <cagney@redhat.com>
5937
5938 * NEWS: Menion that CHILL has been made obsolete.
5939
5940 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5941 * stabsread.c (read_range_type): Ditto.
5942 * gdbtypes.h: Ditto.
5943 * language.c (binop_type_check): Ditto.
5944 (binop_result_type): Ditto.
5945 (integral_type): Ditto.
5946 (character_type): Ditto.
5947 (string_type): Ditto.
5948 (boolean_type): Ditto.
5949 (structured_type): Ditto.
5950 (lang_bool_type): Ditto.
5951 (binop_type_check): Ditto.
5952 * language.h (_LANG_chill): Ditto.
5953 * dwarfread.c (set_cu_language): Ditto.
5954 * dwarfread.c (CHILL_PRODUCER): Ditto.
5955 * dwarfread.c (handle_producer): Ditto.
5956 * expression.h (enum exp_opcode): Ditto.
5957 * eval.c: Ditto for comments.
5958 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5959 * expprint.c (print_subexp): Ditto.
5960 (print_subexp): Ditto.
5961 * valops.c (value_cast): Ditto.
5962 (search_struct_field): Ditto.
5963 * value.h (COERCE_VARYING_ARRAY): Ditto.
5964 * symfile.c (init_filename_language_table): Ditto.
5965 (add_psymbol_with_dem_name_to_list): Ditto.
5966 * valarith.c (value_binop): Ditto.
5967 (value_neg): Ditto.
5968 * valops.c (value_slice): Ditto.
5969 * symtab.h (union language_specific): Ditto.
5970 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5971 (SYMBOL_DEMANGLED_NAME): Ditto.
5972 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5973 * defs.h (enum language): Ditto.
5974 * symtab.c (got_symtab): Ditto.
5975 * utils.c (fprintf_symbol_filtered): Ditto.
5976
5977 * ch-typeprint.c: Make file obsolete.
5978 * ch-valprint.c: Make file obsolete.
5979 * ch-lang.h: Make file obsolete.
5980 * ch-exp.c: Make file obsolete.
5981 * ch-lang.c: Make file obsolete.
5982
5983 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5984 CHILL_LIB.
5985 (TARGET_FLAGS_TO_PASS): Ditto.
5986 (CHILLFLAGS): Obsolete.
5987 (CHILL): Obsolete.
5988 (CHILL_FOR_TARGET): Obsolete.
5989 (CHILL_LIB): Obsolete.
5990 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5991 ch-valprint.c.
5992 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5993 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5994 ch-lang.o.
5995 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5996 targets.
5997
5998 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5999
6000 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6001 This does not change anything at the moment, but will be helpful
6002 later when full Ada support is integrated.
6003
6004 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6005
6006 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6007 help message.
6008
6009 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6010
6011 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6012 and save it in a local variable. Use variable in later test.
6013
6014 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6015
6016 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6017 test. (Thanks to Daniel Jacobowitz.)
6018
6019 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6020
6021 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6022 (mips_abi_strings): Add "n64".
6023 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6024
6025 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6026
6027 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6028 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6029
6030 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6031
6032 * utils.c (host_pointer_to_address, address_to_host_pointer):
6033 Use gdb_assert() instead of explicit call to internal_error().
6034
6035 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6036
6037 * Makefile.in (rs6000-nat.o): Update dependencies.
6038
6039 From Nicholas Duffek:
6040 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6041 (aix-thread.o): New rule.
6042 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6043 * config/powerpc/aix432.mh: New file.
6044
6045 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6046
6047 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6048 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6049 (fetch_core_registers, ppc_linux_supply_gregset)
6050 (ppc_linux_supply_fpregset): New functions.
6051 (ppc_linux_regset_core_fns): New.
6052 (_initialize_ppc_linux_tdep): Call add_core_fns.
6053 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6054 and ppc_linux_supply_gregset.
6055 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6056 (supply_fpregset): Call ppc_linux_supply_fpregset.
6057 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6058 corelow.o.
6059 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6060
6061 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6062
6063 * symtab.c (lookup_symbol): Demangle before lowercasing.
6064
6065 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6066
6067 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6068 declaration.
6069 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6070 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6071 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6072 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6073 "gdb_string.h".
6074 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6075 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6076 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6077 (avr-tdep.o, mon960-rom.o): Ditto.
6078 (aout_stabs_gnu_h): Define.
6079 (symtab_h): Remove $(gdb_obstack_h).
6080
6081 2002-07-30 Jim Blandy <jimb@redhat.com>
6082
6083 Patch from David Carlton <carlton@math.stanford.edu>:
6084 * gdbinit.in: Move the `dir' commands that add GDB's own source
6085 directory to the search path to the end, so that the `gdb' source
6086 directory will be searched first.
6087
6088 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6089
6090 * gdb_obstack.h: New file.
6091 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6092 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6093 * objfiles.h: Include "gdb_obstack.h".
6094 * Makefile.in (gdb_obstack_h): Define.
6095 (symtab_h): Add $(gdb_obstack_h).
6096 (objfiles_h): Add $(gdb_obstack_h).
6097
6098 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6099 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6100 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6101 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6102 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6103 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6104 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6105 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6106
6107 * Makefile.in (bcache.o): Update dependencies.
6108 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6109 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6110 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6111 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6112 (stabsread.o, symfile.o, symmisc.o): Ditto.
6113 (symtab.o, typeprint.o, macroexp.o): Ditto.
6114 (macrotab.o, mdebugread.o): Ditto.
6115 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6116 (coff_ecoff_h, aout_aout64_h): Define.
6117 (aout_stabs_gnu_h, libaout_h): Define.
6118
6119 2002-07-29 Andrew Cagney <cagney@redhat.com>
6120
6121 * regcache.c (struct regcache_descr): Rename nr_registers to
6122 nr_cooked_registers. Revise comments describing the structure
6123 member fields.
6124 (init_regcache_descr): Update.
6125 (init_legacy_regcache_descr): Update.
6126 (read_register_gen, write_register_gen): When a cooked register in
6127 the raw register range, directly access the value from the raw
6128 register cache.
6129
6130 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6131
6132 * z8k-tdep.c: Do not include "obstack.h".
6133 * h8300-tdep.c, h8500-tdep.c: Ditto.
6134 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6135 * valprint.c, v850-tdep.c: Ditto.
6136 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6137 * mn10200-tdep.c: Ditto.
6138
6139 * Makefile.in (z8k-tdep.o): Update dependencies.
6140 (m68hc11-tdep.o, valprint.o): Ditto.
6141 (v850-tdep.o, d10v-tdep.o): Ditto.
6142 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6143 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6144 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6145 (sh_opc_h, gdb_sim_sh_h): Define.
6146 (elf_sh_h, elf_bfd_h): Define.
6147 (opcode_m68hc11_h): Define.
6148 (OPCODES_SRC, OPCODES_DIR): define.
6149 (OPCODES): Use $(OPCODES_DIR).
6150 (gdb_sim_d10v_h): Rename sim_d10v_h.
6151 (gdb_sim_arm_h): Rename sim_arm_h.
6152
6153 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6154
6155 * utils.c (host_pointer_to_address, address_to_host_pointer):
6156 Change internal_error() message to indicate function responsible
6157 for the error.
6158
6159 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6160
6161 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6162 calls to local_hex_string_custom().
6163
6164 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6165
6166 * irix5-nat.c: Move IRIX shared library support from here...
6167 * solib-irix.c: ...to here. Revised substantially to work with
6168 generic solib framework.
6169
6170 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6171 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6172 * mips-irix-tdep.c: New file.
6173
6174 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6175 (mips-irix-tdep.o, solib-irix.o): New rules.
6176 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6177 solib-irix.o.
6178 * config/mips/irix6.mt (TDEPFILES): Likewise.
6179 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6180
6181 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6182
6183 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6184 disabled (via ``#if 0'') includes.
6185
6186 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6187
6188 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6189 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6190 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6191 Add support for the fpscr register.
6192 * rs6000-nat.c (regmap, fetch_inferior_registers)
6193 (store_inferior_registers, fetch_core_registers): Likewise.
6194
6195 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6196
6197 * rs6000-nat.c (language.h): Include.
6198 (special_regs): Delete this array.
6199 (regmap): New function.
6200 (fetch_register, store_register): Use regmap() to map gdb
6201 register numbers to ptrace register numbers. Also, use
6202 outputs from regmap() to make decisions regarding type of
6203 ptrace() call to make. In particular, don't compare against
6204 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6205 (fetch_inferior_registers, store_inferior_registers): Where
6206 possible, obtain register numbers from tdep struct. Don't
6207 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6208 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6209 (LAST_UISA_SP_REGNUM): Delete.
6210
6211 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6212
6213 * rs6000-nat.c (ppc-tdep.h): Include.
6214 (fetch_registers, store_register, fetch_core_registers): Don't
6215 access registers[] directly. Instead, use supply_register() or
6216 regcache_collect() as appropriate.
6217 (find_toc_address): Format hex address with local_hex_string().
6218
6219 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6220
6221 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6222 bfd/elf32-frv.c.
6223
6224 2002-07-24 Tom Tromey <tromey@redhat.com>
6225
6226 * jv-exp.y: Marked all strings with _().
6227 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6228 internal_error.
6229 (MethodInvocation, CastExpression, parse_number, yyerror,
6230 java_type_from_name, push_expression_name, yylex): Typo fixes.
6231
6232 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6233
6234 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6235 (tee_file_flush, tee_file_write, tee_file_fputs)
6236 (tee_file_isatty): New.
6237 * ui-file.h (tee_file_new): Add prototype.
6238
6239 2002-07-24 Aidan Skinner <aidan@velvet.net>
6240
6241 * ada-lang.c: Change k&r style function definitions to prototyped
6242 form.
6243 * ada-typeprint.c: Change k&r style function definitions to prototyped
6244 form.
6245 * ada-valprint.c: Change k&r style function definitions to prototyped
6246 form.
6247
6248 2002-07-24 Andrew Cagney <cagney@redhat.com>
6249
6250 * README: Remove reference to remote-bug.
6251 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6252 remote-bug.c.
6253 (m88k-nat.o): Delete rule.
6254 (m88k-tdep.o): Delete rule.
6255 (remote-bug.o): Delete rule.
6256 * MAINTAINERS: Mark as obsolete.
6257 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6258 * m88k-tdep.c: Make file obsolete.
6259 * config/m88k/m88k.mh: Ditto.
6260 * config/m88k/delta88v4.mh: Ditto.
6261 * config/m88k/delta88v4.mt: Ditto.
6262 * config/m88k/delta88.mt: Ditto.
6263 * config/m88k/delta88.mh: Ditto.
6264 * remote-bug.c: Ditto.
6265 * config/m88k/tm-delta88.h: Ditto.
6266 * config/m88k/nm-delta88v4.h: Ditto.
6267 * config/m88k/xm-delta88.h: Ditto.
6268 * config/m88k/xm-dgux.h: Ditto.
6269 * config/m88k/tm-m88k.h: Ditto.
6270 * config/m88k/nm-m88k.h: Ditto.
6271 * config/m88k/tm-delta88v4.h: Ditto.
6272 * m88k-nat.c: Ditto.
6273 * cxux-nat.c: Ditto.
6274 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6275 and m88*-*-* obsolete.
6276 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6277 m88*-*-* obsolete.
6278
6279 2002-07-24 Andrew Cagney <cagney@redhat.com>
6280
6281 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6282 constant. Same for local pointer variables.
6283 (extract_signed_integer): Ditto.
6284 * defs.h (extract_unsigned_integer): Update.
6285 (extract_signed_integer): Update.
6286
6287 2002-07-24 Andrew Cagney <cagney@redhat.com>
6288
6289 * regcache.c (regcache_raw_write): Change buf parameter to a
6290 constant void pointer.
6291 (regcache_raw_read): Change buf parameter to a void pointer.
6292 (legacy_write_register_gen): Change myaddr parameter a constant
6293 void pointer.
6294 (supply_register): Change val parameter to a const void pointer.
6295 * regcache.h (regcache_raw_write): Update declaration.
6296 (regcache_raw_read): Update declaration.
6297 (supply_register): Update declaration.
6298
6299 2002-07-24 Tom Tromey <tromey@redhat.com>
6300
6301 * defs.h (gdb_readline_wrapper): Declare.
6302 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6303 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6304 * top.c (gdb_readline_wrapper): New function.
6305 (command_line_input): Use it.
6306
6307 2002-07-24 Andrew Cagney <cagney@redhat.com>
6308
6309 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6310 regcache_read and regcache_write.
6311 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6312 * regcache.c: Update.
6313 * sh-tdep.c (sh64_push_arguments): Update comment.
6314 (sh_pseudo_register_read): Update.
6315 (sh_pseudo_register_write): Update.
6316 (sh4_register_read): Update.
6317 (sh4_register_write): Update.
6318 (sh64_pseudo_register_read): Update.
6319 (sh64_pseudo_register_write): Update.
6320 (sh64_register_read): Update.
6321 (sh64_register_write): Update.
6322 * i386-tdep.c (i386_extract_return_value): Update.
6323 (i386_extract_struct_value_address): Update.
6324 (i386_extract_return_value): Update.
6325 * blockframe.c (generic_read_register_dummy): Update.
6326 (generic_call_dummy_register_unwind): Update
6327 * infrun.c (write_inferior_status_register): Update.
6328
6329 2002-07-23 Jim Blandy <jimb@redhat.com>
6330
6331 * parser-defs.h (expression_context_pc): Make this extern.
6332 (Thanks to Michael Snyder.)
6333
6334 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6335
6336 GDB 5.2.1 released from 5.2 branch.
6337 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6338 * README: Update to mention 5.2.1.
6339
6340 2002-07-23 Mark Salter <msalter@redhat.com>
6341
6342 * remote.c (remote_read_bytes): Fix check for error.
6343
6344 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6345
6346 * aix-thread.c (language.h): Include.
6347 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6348 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6349 Print newlines at end of debug messages.
6350 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6351 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6352
6353 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6354
6355 * aix-thread.c (ppc-tdep.h): Include.
6356 (special_register_p): New function.
6357 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6358 (store_regs_user_thread): Use register number information from
6359 gdbarch_tdep struct instead of hardcoded offsets relative to
6360 FIRST_UISA_SP_REGNUM.
6361 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6362 special_register_p() instead of using FPLAST_REGNUM and
6363 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6364 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6365 will be MQ's register number.
6366
6367 2002-07-22 Michael Snyder <msnyder@redhat.com>
6368
6369 * aix-thread.c (ops): Rename to aix_thread_ops.
6370 (base_ops): Rename to base_target.
6371 (ops_attach): Rename to aix_thread_attach.
6372 (ops_detach): Rename to aix_thread_detach.
6373 (ops_resume): Rename to aix_thread_detach.
6374 (ops_wait): Rename to aix_thread_wait.
6375 (ops_kill): Rename to aix_thread_kill.
6376 (init_ops): Rename to init_aix_thread_ops.
6377 (ops_fetch_register): Rename to aix_thread_fetch_register.
6378 (ops_store_register): Rename to aix_thread_store_register.
6379 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6380 (ops_thread_alive): Rename to aix_thread_thread_alive.
6381 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6382 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6383 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6384 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6385 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6386 (store_regs_lib): Rename to store_regs_user_thread.
6387 (store_regs_kern): Rename to store_regs_kernel_thread.
6388
6389 2002-07-22 Michael Snyder <msnyder@redhat.com>
6390
6391 * aix-thread.c (ops_prepare_to_store): Eliminate.
6392 (init_ops): Don't initialize ops.prepare_to_store.
6393 (store_regs_kern): Pre-fetch register buffers from child,
6394 because some registers may not be in the cache. Copy
6395 regs from register cache only if they are cached.
6396 (store_regs_lib): Copy regs from register cache only
6397 if they are cached.
6398 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6399 fill_gprs64): Ditto.
6400
6401 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6402
6403 * aix-thread.c (gdb_assert.h): Include.
6404 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6405 register sizes (from register cache) match size of buffer holding
6406 register data.
6407 (fill_sprs32): Change parameter types to match those in the ptrace()
6408 buffer.
6409 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6410 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6411
6412 2002-07-22 Michael Snyder <msnyder@redhat.com>
6413
6414 * aix-thread.c (supply_sprs64): Cosmetic change.
6415 (supply_sprs32): Cosmetic change.
6416 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6417 (fill_sprs64): Use regcache_collect instead of read_register.
6418 (store_regs_lib): Use regcache_collect instead of
6419 read_register. Use fill_sprs32 instead of fill_sprs64,
6420 if debugging a 32-bit architecture.
6421 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6422 out of the register cache, instead of passing a pointer into
6423 the register cache directly to ptrace. Use regcache_collect
6424 insteaad of read_register.
6425 (ops_prepare_to_store): Use target_read_registers instead
6426 of read_register_bytes.
6427
6428 2002-07-20 Aidan Skinner <aidan@velvet.net>
6429
6430 * MAINTAINERS: Add self under write after approval.
6431
6432 2002-07-20 Aidan Skinner <aidan@velvet.net>
6433
6434 * ada-tasks.c: Change k&r style function definitions to prototyped
6435 form.
6436
6437 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6438
6439 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6440 * x86-64-tdep.c: Include "objfiles.h".
6441 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6442 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6443
6444 2002-07-17 Michal Ludvig <michal@suse.cz>
6445
6446 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6447 (update_context): Initialise cfa variable.
6448
6449 2002-07-17 Michael Snyder <msnyder@redhat.com>
6450
6451 * aix-thread.c: Shorten some long lines.
6452 Bring comments into line with code spec.
6453
6454 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6455
6456 * infrun.c: Re-indent using gdb_indent.sh.
6457
6458 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6459
6460 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6461 Leave the indentation temporarily untouched, to minimize the diffs.
6462
6463 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6464
6465 * stabsread.c: Make os9k sections of the code obsolete,
6466 for real this time.
6467 * stabsread.h: Make os9k sections of the code obsolete.
6468
6469 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6470
6471 * linux-low.c (regsets_store_inferior_registers): Add free()
6472 at the end of a loop to prevent memory leak.
6473 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6474 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6475 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6476 line a comment.
6477 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6478
6479 2002-07-17 Jim Blandy <jimb@redhat.com>
6480
6481 * macrocmd.c (info_macro_command): Remove newline from error
6482 message.
6483
6484 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6485
6486 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6487 (sh_gdbarch_init): Use it for sh-dsp.
6488
6489 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6490
6491 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6492 64-bit DWARF2 format.
6493
6494 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6495
6496 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6497 <sys/proc.h> when not available.
6498
6499 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6500
6501 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6502 * stabsread.c: Make os9k sections of the code obsolete.
6503 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6504 * config/i386/i386os9k.mt: Make file obsolete.
6505 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6506 (COMMON_OBS): Remove os9kread.o
6507 (SFILES): Remove os9kread.c.
6508 (os9kread.o, remote-os9k.o): Make target obsolete.
6509 * remote-os9k.c: Make file obsolete.
6510 * os9kread.c: Make file obsolete.
6511 * Makefile.in
6512
6513 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6514
6515 * NEWS: Mention that the FR30 has been made obsolete.
6516 * fr30-tdep.c: Make file obsolete.
6517 * config/fr30/tm-fr30.h: Ditto.
6518 * config/fr30/fr30.mt: Ditto.
6519 * configure.tgt: Make fr30-*-elf obsolete.
6520 * MAINTAINERS: Make fr30-elf obsolete.
6521
6522 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6523
6524 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6525 found is not inside a section.
6526
6527 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6528
6529 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6530 strerror().
6531 (pdc_realloc): Use xrealloc() instead of realloc().
6532
6533 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6534
6535 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6536 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6537 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6538 macros.
6539
6540 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6541
6542 * aix-thread.c (ptrace_check): Eliminate goto.
6543 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6544 problem.
6545
6546 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6547
6548 * aix-thread.c (gdbcmd.h): Include.
6549 (DEBUG, DBG, DBG2, dbg): Eliminate.
6550 (debug_aix_thread): New static global.
6551 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6552 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6553 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6554 invocations to DBG and DBG2 macros to test against
6555 ``debug_aix_thread'' and call fprintf_unfiltered().
6556 (_initialize_aix_thread): Add new command "set debug aix-thread".
6557
6558 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6559
6560 From Gerhard Tonn <TON@de.ibm.com>:
6561 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6562 instead of supply_register.
6563
6564 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6565
6566 * dwarf2cfi.c: Include "gdb_assert.h".
6567 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6568 non-NULL.
6569 (update_context): Do not use __func__. Add missing ``break''.
6570 (update_context): Do not use __func__.
6571
6572 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6573
6574 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6575 and its setting. Set gdbarch instruction printing functions
6576 directly. For non-rs6000 case use new function
6577 gdb_print_insn_powerpc.
6578 (gdb_print_insn_powerpc): New function.
6579
6580 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6581
6582 * NEWS: Mention that the d30v has been marked obsolete.
6583 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6584 * configure.tgt: Mark d30v-*-* as obsolete.
6585 * d30v-tdep.c: Mark file as obsolete.
6586 * config/d30v/d30v.mt: Ditto.
6587 * config/d30v/tm-d30v.h: Ditto.
6588
6589 2002-07-13 Aidan Skinner <aidan@velvet.net>
6590
6591 * ada-tasks.c (add_task_entry): replace calls to
6592 malloc() with xmalloc
6593 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6594
6595 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6596 ada_finish_decode_line_1, all_sals_for_line
6597 ada_breakpoint_rewrite): replace calls to free() with xfree()
6598
6599 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6600
6601 From Nicholas Duffek (with minor changes by Martin Hunt,
6602 Louis Hamilton, and Kevin Buettner):
6603 * aix-thread.c: New file.
6604
6605 2002-07-12 Petr Sorfa <petrs@caldera.com>
6606
6607 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6608 complaint for invalid attribute class or form.
6609 (read_func_scope): DW_AT_frame_base
6610 better handling of DW_AT_block*.
6611 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6612 better handling of DW_AT_block*.
6613 (read_common_block): DW_AT_location
6614 better handling of DW_AT_block*.
6615 (read_partial_die): DW_AT_location better handling
6616 of DW_AT_block*.
6617 (new_symbol): DW_AT_external better handling of
6618 DW_AT_block*. Proper initialization of variable
6619 "addr".
6620 (attr_form_is_block): New function that returns true
6621 if the attribute's form is of DW_FORM_block*.
6622
6623 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6624
6625 * valops.c (find_method_list): Remove comment about
6626 removed STATIC_MEMFUNCP argument.
6627 (value_find_oload_method_list): Likewise.
6628
6629 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6630
6631 From Nicholas Duffek:
6632 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6633 target_new_objfile_hook.
6634
6635 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6636
6637 From Nicholas Duffek:
6638 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6639 csect.
6640
6641 2002-07-12 Andrew Cagney <cagney@redhat.com>
6642
6643 * MAINTAINERS: Mention --enable-sim-build-warnings.
6644 (m68hc11-elf): Disable sim build warnings.
6645 (m32r-elf): Mark as broken obsolete candidate.
6646 (x86_64-linux-gnu): Mark as buildable with -Werror.
6647 (arm-elf): Change -w to ``,'' which enables warnings but not
6648 -Werror.
6649
6650 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6651
6652 * bcache.h: Update copyright.
6653 (struct bstring, struct bcache): Move definition to "bcache.c".
6654 Replaced by opaque declaration.
6655 (bcache_xfree): Replace free_bcache.
6656 (bcache_xmalloc, bcache_memory_used): Declare.
6657
6658 * bcache.c: Update copyright.
6659 (struct bstring, struct bcache): Moved to here from "bcache.h".
6660 Update comments.
6661 (bcache_xmalloc, bcache_memory_used): New functions.
6662 (bcache_xfree): Replace function free_bcache.
6663
6664 * Makefile.in (objfiles.o): Add $(bcache_h).
6665 (objfiles_h): Remove $(bcache_h).
6666 (symfile.o): Add $(bcache_h).
6667
6668 * symmisc.c: Update copyright.
6669 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6670 (print_objfile_statistics): Use bcache_memory_used.
6671
6672 * symfile.c: Include "bcache.h".
6673 (reread_symbols): Use bcache_xfree.
6674 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6675 (add_psymbol_to_list): Pass psymbol_cache by value.
6676 (add_psymbol_with_dem_name_to_list): Ditto.
6677
6678 * objfiles.h: Update copyright.
6679 (struct bcache): Declare opaque. Do not include "bcache.h".
6680 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6681 bcache'' pointers.
6682 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6683
6684 * objfiles.c: Include "bcache.h". Update copyright.
6685 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6686 macro_cache.
6687 (free_objfile): Use bcache_xfree.
6688
6689 2002-07-11 Grace Sainsbury <graces@redhat.com>
6690
6691 * monitor.c (monitor_fetch_register): Make name a constant.
6692 (monitor_store_register): Same.
6693
6694 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6695
6696 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6697 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6698 (finish_block) For non-function blocks, hash the symbol table. For
6699 function blocks, mark the symbol table as unhashed.
6700 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6701 (msymbol_hash_iw): Likewise.
6702 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6703 value.
6704 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6705 (lookup_minimal_symbol): Likewise for both.
6706 * symtab.h (struct block): Add `hashtable' flag. Comment the
6707 hashtable.
6708 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6709 (ALL_BLOCK_SYMBOLS): Update.
6710 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6711 (struct symbol): Add `hash_next' pointer.
6712 * symtab.c (lookup_block_symbol): Search using the hash table when
6713 possible.
6714 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6715 (search_symbols, find_addr_symbol): Likewise.
6716
6717 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6718 (read_dst_symtab): Likewise.
6719 * jv-lang.c (get_java_class_symtab): Likewise.
6720 * mdebugread.c: Include "gdb_assert.h".
6721 (shrink_block): Assert that the block being modified is not hashed.
6722 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6723 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6724 symbols.
6725 (dump_symtab): Recognize hashed blocks.
6726 * printcmd.c (print_frame_args): Assert that function blocks do not
6727 have hashed symbol tables.
6728 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6729 (fill_in_ada_prototype, debug_print_block): Likewise.
6730 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6731
6732 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6733
6734 * stack.c (print_frame): Use result of frame_address_in_block()
6735 instead of fi->pc when evaluating symbols.
6736 (backtrace_command_1): Ditto.
6737
6738 2002-07-11 Andrew Cagney <cagney@redhat.com>
6739
6740 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6741 Make static.
6742
6743 * arm-tdep.c (arm_register_name): Make return type constant.
6744
6745 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6746
6747 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6748 prototype.
6749 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6750 * s390-tdep.c (s390_fp_regnum): Ditto.
6751 (s390_read_fp): Ditto.
6752 (s390_pop_frame): Ditto.
6753 (_initialize_s390_tdep): Ditto.
6754 * remote.c (get_remote_state): Ditto.
6755 * procfs.c (mappingflags): Ditto.
6756 * memattr.c (_initialize_mem): Ditto.
6757 * mcore-tdep.c (mcore_pop_frame): Ditto.
6758 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6759 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6760 * language.c (set_case_str): Ditto.
6761 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6762 * frv-tdep.c (new_variant): Ditto.
6763 (frv_stopped_data_address): Ditto.
6764 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6765 (context_alloc): Ditto.
6766 (frame_state_alloc): Ditto.
6767 (unwind_tmp_obstack_init): Ditto.
6768 (unwind_tmp_obstack_free): Ditto.
6769 (cfi_read_fp): Ditto.
6770 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6771 (cris_pop_frame): Ditto.
6772 * c-lang.c (scanning_macro_expansion): Ditto.
6773 (finished_macro_expansion): Ditto.
6774 (c_preprocess_and_parse): Ditto.
6775 * gdbarch.sh: Ditto.
6776 * gdbarch.h, gdbarch.c: Regenerate.
6777 * config/mn10200/tm-mn10200.h: Adjust indentation.
6778 * target.c: Adjust indentation.
6779 * symtab.h: Adjust indentation.
6780 * stabsread.h: Adjust indentation.
6781 * remote-es.c: Adjust indentation.
6782 * os9kread.c: Adjust indentation.
6783
6784 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6785
6786 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6787 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6788
6789 2002-07-10 Grace Sainsbury <graces@redhat.com>
6790
6791 * NEWS: Mention m68k, mcore multi-arching.
6792 * MAINTAINERS: Change status of m68k, mcore to reflect
6793 multi-arching.
6794
6795 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6796
6797 * valops.c (find_overload_match): Free oload_syms.
6798
6799 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6800
6801 Define HAVE_SYS_PROC_H if sys/proc.h exists
6802 * configure.in: Add check for sys/proc.h
6803 * config.in: Regenerate.
6804 * configure: Regenerate.
6805
6806 2002-07-09 Grace Sainsbury <graces@redhat.com>
6807
6808 * config/m68k/tm-m68k.h: Remove macros wrapped in
6809 #if !GDB_MULTI_ARCH.
6810
6811 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6812
6813 * config.in, configure: Regenerate.
6814
6815 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6816
6817 * dwarf2cfi.c: Include "gcore.h".
6818 (execute_stack_op): Fix implementation of the
6819 DW_OP_deref and DW_OP_deref_size operators by letting do their
6820 lookup in the target.
6821
6822 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6823
6824 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6825 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6826 tdep->sc_sp_offset.
6827
6828 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6829
6830 Fix PR gdb/595, gdb/602
6831 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6832 Don't call value_cast, just read the vtable pointer; update comments
6833 to match.
6834
6835 2002-07-05 Grace Sainsbury <graces@redhat.com>
6836
6837 * config/mcore/tm-mcore.h: Remove file.
6838 * config/mcore/mcore.mt: Remove definition of TM_FILE
6839 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6840
6841 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6842
6843 * i386bsd-tdep.c: Include "gdb_string.h".
6844
6845 2002-07-04 Grace Sainsbury <graces@redhat.com>
6846
6847 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6848 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6849 mcore-tdep.
6850 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6851 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6852 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6853 (RETVAL_REGNUM): Move macros from tm-mcore.h
6854 (mcore_reg_struct_has_addr): New function.
6855 (mcore_gdbarch_init): Added initializations for the macros removed
6856 from tm-mcore.h.
6857
6858 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6859
6860 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6861 traditonal string branding within the ELF header.
6862
6863 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6864
6865 * symtab.c (remove_params): New function.
6866 (make_symbol_overload_list): Use it instead of cplus_demangle.
6867 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6868
6869 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6870
6871 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6872
6873 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6874 New variables.
6875 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6876 and tdep->sigtramp_end.
6877 * i386obsd-nat.c: New file.
6878 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6879
6880 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6881 Don't call get_current_frame().
6882
6883 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6884
6885 * i386-nat.c (child_post_startup_inferior): New function
6886 calling i386_cleanup_dregs if
6887 I386_USE_GENERIC_WATCHPOINTS is defined.
6888 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6889 conditional to acknowledge that i386-nat.c has its
6890 own child_post_startup_inferior function.
6891
6892 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6893
6894 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6895 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6896 instead of MAX_REGISTER_RAW_SIZE.
6897 (i386_extract_return_value, i386_extract_struct_value_address):
6898 Convert to use regcache.
6899 (i386_gdbarch_init): Set max_register_raw_size and
6900 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6901 Set extract_return_value and extract_struct_value_address instead
6902 of their deprecated variants.
6903
6904 Convert i386 target to generic dummy frames.
6905 * i386-tdep.c: Include "symfile.h".
6906 (i386_frameless_signal_p): Consider a function to be frameless if
6907 the pc points at the first instruction of the function.
6908 (i386_frame_chain): Handle (generic) call dummies.
6909 (i386_frame_saved_pc): Likewise.
6910 (i386_frame_init_saved_regs): Remove code dealing with call
6911 dummies on the stack.
6912 (i386_push_dummy_frame): Removed.
6913 (i386_call_dummy_words): Removed.
6914 (i386_fix_call_dummy): Removed.
6915 (i386_push_return_address): New function.
6916 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6917 parameter, and don't call get_current_frame.
6918 (i386_pop_frame): New function.
6919 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6920 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6921 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6922 call_dummy_length to 0, set call_dummy_words to NULL, set
6923 sizeof_call_dummy_words to 0, set fix_call_dummy to
6924 generic_fix_call_dummy, set pc_in_call_dummy to
6925 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6926 generic_push_dummy_frame, set push_return_address to
6927 i386_push_return_address and set frame_chain_valid to
6928 generic_file_frame_chain_valid.
6929
6930 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6931
6932 * gdbarch.sh (struct regcache): Add opaque declaration.
6933 (EXTRACT_RETURN_VALUE): New architecture method.
6934 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6935 * gdbarch.h, gdbarch.c: Regenerate.
6936 * arch-utils.c (legacy_extract_return_value): New function.
6937 * arch-utils.h (legacy_extract_return_value): Declare.
6938 * values.c (value_being_returned): Re-enable code handling
6939 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6940 deprecated_grub_regcache_for_registers call to block handling
6941 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6942 (EXTRACT_RETURN_VALUE): Do not define.
6943
6944 2002-07-03 Grace Sainsbury <graces@redhat.com>
6945
6946 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6947 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6948 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6949 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6950 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6951 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6952 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6953 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6954 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6955 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6956 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6957 argument so the function fits the prototype in the architecture
6958 vector.
6959 (mcore_pop_frame): Remove argument so the function fits the
6960 prototype. Use get_current_frame instead of the argument.
6961 (mcore_push_arguments): Change type of struct_return so the
6962 function can be used in the architecture vector.
6963 (mcore_store_struct_return): Add.
6964 (mcore_frame_init_saved_regs): Add.
6965 (mcore_gdbarch_init): Add function calls to replace the macros
6966 removed from tm-mcore.h
6967
6968 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6969
6970 * infcmd.c (print_return_value): Remove compatibility code calling
6971 deprecated_grub_regcache_for_registers.
6972
6973 * values.c: Include "regcache.h".
6974 (value_being_returned): Update. Use
6975 deprecated_grub_regcache_for_registers to extract the register
6976 buffer address.
6977 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6978 ``struct regcache''.
6979 * Makefile.in (values.o): Add dependency on $(regcache_h).
6980
6981 * inferior.h (run_stack_dummy): Change type of second parameter to
6982 a ``struct regcache''.
6983 * valops.c (hand_function_call): Change type of retbuf to ``struct
6984 regcache''. Allocate using regcache_xmalloc, clean using
6985 make_cleanup_regcache_xfree.
6986 * infcmd.c (run_stack_dummy): Update. Use
6987 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6988
6989 * regcache.c (do_regcache_xfree): New function.
6990 (make_cleanup_regcache_xfree): New function.
6991 * regcache.h (make_cleanup_regcache_xfree): Declare.
6992
6993 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6994
6995 * event-top.c (command_line_handler): Don't read past
6996 beginning of buffer.
6997
6998 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6999
7000 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7001 struct frame_id.
7002 (varobj_create): Store frame_id for root.
7003 (varobj_gen_name): Use xasprintf.
7004 (varobj_update): Save and restore frame using get_frame_id() and
7005 frame_find_by_id().
7006 (create_child): Use xasprintf.
7007 (new_root_variable): Initialize frame_id.
7008 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7009 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7010 to prevent memory leak.
7011
7012 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7013
7014 * valops.c (hand_function_call): Move declaration of retbuf to
7015 start of function, allocate using malloc, add a cleanup but before
7016 the inf_status cleanup, cleanup the buffer. Rename local variable
7017 old_chain to inf_status_cleanup.
7018
7019 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7020
7021 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7022
7023 * cli/cli-decode.c (cmd_func_p): New function.
7024 (cmd_func): New function.
7025
7026 * command.h: Add cmd_func() and cmd_func_p().
7027
7028 2002-07-03 Grace Sainsbury <graces@redhat.com>
7029
7030 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7031 (REGISTER_SIZE): Remove.
7032 (MAX_REGISTER_RAW_SIZE): Remove.
7033 (REGISTER_VIRTUAL_TYPE): Remove.
7034 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7035 (REGISTER_NAME): Remove.
7036 (USE_GENERIC_DUMMY_FRAMES): Remove.
7037 (CALL_DUMMY): Remove.
7038 (CALL_DUMMY_START_OFFSET): Remove.
7039 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7040 (CALL_DUMMY_LOCATION): Remove.
7041 (FIX_CALL_DUMMY): Remove.
7042 (CALL_DUMMY_ADDRESS): Remove.
7043 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7044 (SAVE_DUMMY_FRAME_TOS): Remove.
7045 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7046 (mcore_register_virtual_type): New function.
7047 (mcore_register_byte): New function.
7048 (mcore_register_size): New function.
7049 (mcore_register_name): New function.
7050 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7051 macros removed from tm-mcore.h.
7052 (mcore_dump_tdep): Add.
7053 (_initialize_mcore_tdep): Add gdbarch_register call.
7054
7055 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7056
7057 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7058 frameless_look_for_prologue, such that we actually call this
7059 function.
7060
7061 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7062
7063 * frame.h (frame_address_in_block): New function.
7064
7065 * blockframe.c (frame_address_in_block): New function extracted
7066 from get_frame_block().
7067 (get_frame_block): Use frame_address_in_block().
7068 (block_innermost_frame): Use frame_address_in_block() to match
7069 the frame pc address against the block boundaries rather than
7070 the frame pc directly. This prevents a failure when a frame pc
7071 is actually a return-address pointing immediately after the end
7072 of the given block.
7073
7074 2002-07-02 Grace Sainsbury <graces@redhat.com>
7075
7076 * MAINTAINERS: Add self under write after approval.
7077
7078 2002-07-02 Grace Sainsbury <graces@redhat.com>
7079
7080 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7081 used in architecture vector. The default is
7082 m68k_local_breakpoint_from_pc.
7083 (m68k_local_breakpoint_from_pc): Add.
7084 (enum): Add register numbers from tm-m68k.h.
7085 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7086 vector.
7087 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7088 GDB_MULTI_ARCH_PARTIAL.
7089 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7090 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7091 m68k-tdep.c.
7092 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7093 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7094 to enum in m68k-tdep.c
7095
7096 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7097
7098 * solib-osf.c (open_map): Compute the list of shared libraries
7099 loaded by the inferior, rather than the list of libraries loaded
7100 by GDB itself. Otherwise, GDB ends up reading the symbols from
7101 the wrong shared libraries...
7102
7103 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7104
7105 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7106 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7107 macros.
7108 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7109 Remove functions.
7110 (FRAMELESS_SIGNAL): Remove function.
7111 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7112 i386_linux_saved_pc_after_call): Removed.
7113 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7114 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7115 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7116
7117 * i386-tdep.c (i386_frameless_signal_p): New function.
7118 (i386_frame_chain): Deal with frameless signals.
7119 (i386_sigtramp_saved_sp): New function.
7120 (i386_frame_saved_pc): Deal with frameless signals.
7121 (i386_saved_pc_after_call): Make sure the correct value is
7122 returned just after entry into a sigtramp.
7123 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7124 i386fbsd4_sc_sp_offset): New variables.
7125 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7126 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7127 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7128 similiar to what we already did for sc_pc_offset.
7129 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7130 tdep->sc_sp_offset.
7131
7132 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7133
7134 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7135
7136 * config/i386/tm-x86-64linux.h: New.
7137 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7138 definitions.
7139 * config/i386/nm-x86-64.h: Rename to ...
7140 * config/i386/nm-x86-64linux.h: ... this one.
7141 * config/i386/x86-64linux.mh: Reflect the above change.
7142
7143 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7144
7145 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7146 with sigcontext_addr. Add sc_sp_offset.
7147 (i386bsd_sigtramp_saved_pc): Remove prototype.
7148 (i386bsd_sicontext_addr): Add prototype.
7149 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7150 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7151 (i386_svr4_sigtramp_saved_pc): Removed.
7152 (i386_svr4_sigcontext_addr): New function.
7153 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7154 Initialize tdep->sigcontext_addr instead. Initialize
7155 tdep->sc_pc_offset and tdep->sc_sp_offset.
7156 (i386_gdbarch_init): Likewise.
7157 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7158 any more.
7159 (i386bsd_sigtramp_saved_pc): Remove function.
7160 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7161 Initialize tdep->sigcontext_addr instead. Initialize
7162 tdep->sc_pc_offset.
7163 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7164 of tdep->sigtramp_saved_pc.
7165 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7166 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7167 instead.
7168
7169 * i386-tdep.c (i386_frameless_function_invocation,
7170 i386_frame_num_args, i386_frame_init_saved_regs,
7171 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7172 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7173 i386_extract_return_value, i386_store_return_value,
7174 i386_extract_struct_value_address, i386_register_virtual_type,
7175 i386_register_convertible, i386_register_convert_to_virtual,
7176 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7177 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7178 static.
7179
7180 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7181
7182 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7183
7184 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7185 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7186 this macro. Include "value.h".
7187
7188 2002-06-30 Aidan Skinner <aidan@velvet.net>
7189
7190 * ada-exp.tab.c: remove as it's a generated file
7191 * ada-lex.c: remove as it's a generated file
7192
7193 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7194
7195 * config/i386/tm-i386.h (struct frame_info, struct
7196 frame_saved_regs, struct value, struct type): Remove forward
7197 declarations.
7198
7199 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7200 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7201 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7202 (FILL_FPXREGSET): Define.
7203
7204 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7205
7206 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7207 i[3456]86-*-netbsd* case.
7208 * config/i386/tm-obsd.h: Removed.
7209 * config/i386/obsd.mt: Removed.
7210 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7211 core-aout.o.
7212 (MH_CFLAGS): Add -DYYDEBUG=0.
7213
7214 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7215 i386nbsd_sc_pc_offset on OpenBSD too.
7216
7217 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7218 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7219 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7220 define.
7221 * i386bsd-tdep.c: Include "arch-utils.h".
7222 (i386bsd_aout_in_solib_call_trampoline): New function.
7223 (i386bsd_init_abi): Set in_solib_call_trampoline to
7224 i386bsd_aout_in_solib_call_trampoline.
7225 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7226 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7227
7228 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7229
7230 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7231 (struct obstack, struct bcache): Add opaque declarations.
7232 * Makefile.in (macrotab_h): Update
7233
7234 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7235
7236 * blockframe.c (generic_find_dummy_frame): Change return type to
7237 ``struct regcache''.
7238 (struct dummy_frame): Replace field ``registers'' with regcache, a
7239 struct regcache object.
7240 (generic_find_dummy_frame): Update.
7241 (generic_push_dummy_frame): Update. Use regcache_xfree,
7242 regcache_xmalloc and regcache_cpy.
7243 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7244 regcache_xfree.
7245 (deprecated_generic_find_dummy_frame): Update.
7246 (generic_read_register_dummy): Update. Use
7247 regcache_read_as_address.
7248 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7249 (generic_get_saved_register): Update. Use regcache_read.
7250
7251 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7252
7253 * Makefile.in (objfiles_h): Add $(bcache_h).
7254 * objfiles.h: Include "bcache.h".
7255
7256 * Makefile.in (symtab_h): Remove $(bcache_h).
7257 * symtab.h: Do not include "bcache.h".
7258
7259 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7260
7261 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7262 generic_func_frame_chain_valid.
7263
7264 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7265
7266 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7267 * config/i386/tm-fbsd.h: Likewise.
7268
7269 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7270
7271 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7272 generic_unwind_get_saved_register.
7273
7274 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7275
7276 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7277 * regcache.c (supply_register): Add missing argument to
7278 register_buffer call.
7279
7280 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7281
7282 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7283 Solaris /bin/grep does not not like it. From Peter Schauer.
7284
7285 2002-06-26 Tom Tromey <tromey@redhat.com>
7286
7287 * command.h (add_setshow_cmd): Declare.
7288 (add_setshow_cmd_full): Declare.
7289 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7290 returns void. Use add_setshow_cmd_full.
7291 (add_setshow_cmd_full): New function.
7292 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7293 (add_setshow_boolean_cmd): Likewise.
7294
7295 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7296
7297 * config/vax/tm-vax.h: Protect from multiple inclusion.
7298 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7299 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7300 * config/vax/tm-vaxbsd.h: ...here. New file.
7301 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7302
7303 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7304
7305 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7306 (BELIEVE_PCC_PROMOTION): Remove.
7307 (AP_REGNUM): Move to...
7308 * config/vax/nm-vax.h: ...here.
7309 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7310 (vax_breakpoint_from_pc): New function.
7311 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7312 and gdbarch_believe_pcc_promotion.
7313
7314 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7315
7316 * Makefile.in (vax_tdep_h): Define.
7317 (vax-tdep.o): Use $(vax_tdep_h).
7318 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7319 (vax_dump_tdep): New function.
7320 (_initialize_vax_tdep): Register vax_dump_tdep.
7321 * vax-tdep.h: Include osabi.h.
7322 (struct gdbarch_tdep): New.
7323
7324 2002-06-26 Andrew Cagney <cagney@redhat.com>
7325
7326 * frame.h (deprecated_generic_find_dummy_frame): Rename
7327 generic_find_dummy_frame.
7328 * blockframe.c (generic_find_dummy_frame): Make static.
7329 (deprecated_generic_find_dummy_frame): New function.
7330 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7331 generic_find_dummy_frame with deprecated_find_dummy_frame.
7332 (sh64_nofp_frame_init_saved_regs): Ditto.
7333 (sh_fp_frame_init_saved_regs): Ditto.
7334 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7335 (s390_frame_chain): Ditto.
7336 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7337
7338 2002-06-26 Grace Sainsbury <graces@redhat.com>
7339
7340 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7341 gdbarch vector are at the top.
7342 (NUM_REGS): Remove.
7343 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7344 (FRAME_ARGS_ADDRESS): Remove.
7345 (FRAME_LOCALS_ADDRESS): Remove.
7346 (FRAME_NUM_ARGS): Remove.
7347 (FRAME_ARGS_SKIP): Remove.
7348 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7349 (m68k_gdbarch_init): Add gdbarch initializations for macros
7350 undefined in tm-m68k.h
7351
7352 2002-06-26 Grace Sainsbury <graces@redhat.com>
7353
7354 * monitor.h: Add the function regname to monitor_ops
7355 structure. This way NUM_REGS does not have to be a constant.
7356 * monitor.c (monitor_fetch_register): Added support for regname
7357 function. The function is called if the array regnames is NULL.
7358 (monitor_store_register): Same.
7359 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7360 regnames array.
7361 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7362 cpu32bug_cmds.regname to point to new function.
7363 * abug-rom.c (abug_regname): Same as above.
7364 (init_abug_cmds): Same.
7365 * dbug-rom.c (dbug_regname): Same as above.
7366 (init_dbug_cmds): Same.
7367 * remote-est.c (est_regname): Same.
7368 (init_est_cmds): Same.
7369 * rom68k-rom.c (rom68k_regname): Same.
7370 (init_rom68k_cmds): Same.
7371
7372 2002-06-25 Tom Tromey <tromey@redhat.com>
7373
7374 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7375
7376 2002-06-25 Andrew Cagney <cagney@redhat.com>
7377
7378 * infrun.c (stop_registers): Change variable's type to ``struct
7379 regcache'''.
7380 (xmalloc_inferior_status): Delete function.
7381 (free_inferior_status): Delete function.
7382 (normal_stop): Use regcache_cpy.
7383 (struct inferior_status): Change type of fields ``stop_registers''
7384 and ``registers'' to ``struct regcache''.
7385 (write_inferior_status_register): Use regcache_write.
7386 (save_inferior_status): Instead of calling
7387 xmalloc_inferior_status, allocate the inf_status buffer directly.
7388 Use regcache_dup_no_passthrough and regcache_dup to save the
7389 buffers.
7390 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7391 Replace the stop_registers regcache instead of overriding it. Use
7392 regcache_xfree. Instead of calling free_inferior_status, xfree
7393 the buffer directly.
7394 (discard_inferior_status): Use regcache_xfree. Instead of calling
7395 free_inferior_status, xfree the buffer directly.
7396 (build_infrun): Use regcache_xmalloc.
7397 (_initialize_infrun): Delete redundant call to build_infrun.
7398
7399 * Makefile.in (infcmd.o): Add $(regcache_h).
7400
7401 * infcmd.c: Include "regcache.h".
7402 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7403 obtain the address of `stop_registers' register buffer.
7404 (print_return_value): Ditto.
7405
7406 * inferior.h (struct regcache): Add opaque declaration.
7407 (stop_registers): Change variable's declared type to ``struct
7408 regcache''.
7409
7410 2002-06-24 Tom Tromey <tromey@redhat.com>
7411
7412 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7413 * target.c (initialize_targets): Fixed typo in
7414 trust-readonly-sections `show' documentation.
7415
7416 * main.c: Marked all strings with _().
7417
7418 2002-06-24 Don Howard <dhoward@redhat.com>
7419
7420 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7421 that means max CORE_ADDR+1.
7422 (lookup_mem_region): Ditto.
7423 (mem_info_command): Ditto.
7424
7425 2002-06-24 Grace Sainsbury <graces@redhat.com>
7426
7427 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7428 (REGISTER_BYTES_OK): Remove.
7429 (REGISTER_BYTES): Remove.
7430 (STORE_STRUCT_RETURN): Remove.
7431 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7432 (STORE_RETURN_VALUE): Remove.
7433 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7434 (FRAME_CHAIN): Remove.
7435 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7436 (FRAME_SAVED_PC): Remove.
7437 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7438 (m68k_store_struct_return): Add.
7439 (m68k_deprecated_extract_return_value): Add.
7440 (m68k_deprecated_extract_struct_value_address): Add.
7441 (m68k_store_return_value): Add.
7442 (m68k_frame_chain): Add.
7443 (m68k_frameless_function_invocation): Add.
7444 (m68k_frame_saved_pc): Add.
7445 (m68k_gdbarch_init): added set_gdbarch calls for new
7446 functions and deleted macros.
7447
7448 2002-06-23 Tom Tromey <tromey@redhat.com>
7449
7450 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7451 (ALLDEPFILES): Likewise.
7452 (udiheaders): Removed.
7453 (udip2soc.o): Likewise.
7454 (udi2go32.o): Likewise.
7455 (udr.o): Likewise.
7456 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7457
7458 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7459
7460 * infrun.c (_initialize_infrun): Delete unnecessary call to
7461 build_infrun.
7462
7463 * regcache.h: Update comments describing the regcache_cpy family
7464 of functions.
7465 (regcache_save, regcache_restore): Delete declaration.
7466 (regcache_save_no_passthrough): Delete declaration.
7467 (regcache_restore_no_passthrough): Delete declaration.
7468 * regcache.c (regcache_save): Delete function.
7469 (regcache_save_no_passthrough): Delete function.
7470 (regcache_restore): Delete function.
7471 (regcache_restore_no_passthrough): Delete function.
7472
7473 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7474
7475 * config/m68k/tm-m68k.h: Fix typo.
7476 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7477 (m68k_frame_init_saved_regs): Declare.
7478
7479 2002-06-21 Jim Blandy <jimb@redhat.com>
7480
7481 Remove some vestiges of Harris 88k support.
7482 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7483 register numbering quirk.
7484 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7485 odd symbols occurring in Harris 88k ELF targets.
7486
7487 2002-06-21 Tom Tromey <tromey@redhat.com>
7488
7489 * gdb_locale.h: New file.
7490 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7491 (defs_h): Added gdb_locale.h.
7492 * configure, config.in: Rebuilt.
7493 * configure.in (PACKAGE): Define.
7494 * defs.h: Include gdb_locale.h.
7495 * main.c (captured_main): Call setlocale, bindtextdomain,
7496 textdomain.
7497
7498 2002-06-21 Dave Brolley <brolley@redhat.com>
7499
7500 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7501 * config/frv/frv.mt: New file.
7502 * config/frv/tm-frv.h: New file.
7503 * configure.tgt: Support frv-*-*.
7504 * Makefile.in (frv-tdep.o): New target.
7505 * frv-tdep.c: New file.
7506 * NEWS: Mention frv.
7507
7508 2002-06-21 Dave Brolley <brolley@redhat.com>
7509
7510 * MAINTAINERS: Add self to "Write After Approval" list.
7511
7512 2002-06-21 Grace Sainsbury <graces@redhat.com>
7513
7514 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7515 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7516 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7517 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7518 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7519
7520 * m68k-tdep.c: Include arch-utils.h
7521 (m68k_register_raw_size): Add.
7522 (m68k_register_virtual_size): Add.
7523 (m68k_register_virtual_type): Add.
7524 (m68k_register_name): Add.
7525 (m68k_stack_align): Add.
7526 (m68k_register_byte): Add.
7527 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7528 tm-m68k.h.
7529
7530 2002-06-21 Grace Sainsbury <graces@redhat.com>
7531
7532 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7533 m68k_find_saved_regs.
7534 (m68k_pop_frame): Removed saved_regs structure, and replaced
7535 references to it with frame->saved_regs.
7536 (m68k_gdbarch_init): Added function calls to initialize the
7537 gdbarch structure.
7538 (m68k_fix_call_dummy): Add.
7539 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7540 (CALL_DUMMY): Remove.
7541 (CALL_DUMMY_LENGTH): Remove.
7542 (CALL_DUMMY_START_OFFSET): Remove.
7543 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7544 (FIX_CALL_DUMMY): Remove.
7545 (PUSH_DUMMY_FRAME): Remove.
7546 (POP_FRAME): Remove.
7547
7548 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7549
7550 * parse.c (parse_fprintf): New function used to avoid calls to
7551 fprintf in bison parser generated debug code.
7552 * parser-defs.h: Declaration of new parse_fprintf function.
7553 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7554 Set YYDEBUG to 1 by default.
7555 Set YYFPRINTF as parse_fprintf.
7556
7557 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7558
7559 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7560 encoding anymore.
7561 (pointer_encoding, enum ptr_encoding): New.
7562 (execute_cfa_program): Take care about pointer encoding.
7563 (dwarf2_build_frame_info): Only call parse_frame_info for
7564 .debug_frame and .eh_frame.
7565 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7566 fixed augmentation handling, added relative addressing,
7567 ignore duplicate FDEs. Added comments.
7568 * dwarf2cfi.c: Reindented.
7569
7570 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7571
7572 * event-top.c (command_handler): Don't use space_at_cmd_start
7573 unless there is sbrk() on the host. Assign time and space data
7574 to union fields of the appropriate length.
7575
7576 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7577
7578 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7579 x86_64_register_name. Return type changed to 'const char *'.
7580 (x86_64_register_name2nr): Rename to x86_64_register_number.
7581 (x86_64_gdbarch_init): Update to reflect the change.
7582 * x86-64-tdep.h: Ditto.
7583 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7584 (supply_fpregset): Ditto.
7585
7586 2002-06-19 Andrew Cagney <cagney@redhat.com>
7587
7588 * regcache.h: Update copyright.
7589 (struct regcache, struct gdbarch): Add opaque declarations.
7590 (current_regcache): Declare global variable.
7591 (regcache_read, regcache_write): Add gdbarch parameter.
7592 (regcache_save, regcache_save_no_passthrough)
7593 (regcache_restore, regcache_restore_no_passthrough)
7594 (regcache_dup, regcache_dup_no_passthrough)
7595 (regcache_cpy, regcache_cpy_no_passthrough)
7596 (deprecated_grub_regcache_for_registers)
7597 (deprecated_grub_regcache_for_register_valid)
7598 (regcache_valid_p): Add function declarations.
7599
7600 * regcache.c: Update copyright.
7601 (regcache_descr_handle): New global variable.
7602 (struct regcache_descr): Define.
7603 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7604 (regcache_descr, xfree_regcache_descr): New functions.
7605 (struct regcache): Define.
7606 (regcache_xmalloc, regcache_xfree): New functions.
7607 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7608 (regcache_dup, regcache_dup_no_passthrough): New functions.
7609 (regcache_valid_p, regcache_read_as_address): New functions.
7610 (deprecated_grub_regcache_for_registers): New function.
7611 (deprecated_grub_regcache_for_register_valid): New function.
7612 (current_regcache): New global variable.
7613 (register_buffer): Add regcache parameter. Update calls.
7614 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7615 (read_register_gen, write_register_gen): Update register_buffer
7616 call. Test for legacy_p instead of gdbarch_register_read_p or
7617 gdbarch_register_write_p.
7618 (regcache_collect): Update register_buffer call.
7619 (build_regcache): Rewrite. Use deprecated grub functions.
7620 (regcache_save, regcache_save_no_passthrough): New functions.
7621 (regcache_restore, regcache_restore_no_passthrough): New
7622 functions.
7623 (_initialize_regcache): Create the regcache_data_handle. Swap
7624 current_regcache global variable.
7625
7626 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7627 parameter to regcache_read and regcache_write calls.
7628 (sh4_register_read): Ditto.
7629 (sh64_pseudo_register_read): Ditto.
7630 (sh64_register_read): Ditto.
7631 (sh_pseudo_register_write): Ditto.
7632 (sh4_register_write): Ditto.
7633 (sh64_pseudo_register_write): Ditto.
7634 (sh64_register_write): Ditto.
7635
7636 * defs.h (XCALLOC): Define.
7637
7638 2002-06-19 Grace Sainsbury <graces@redhat.com>
7639
7640 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7641 * m68k-tdep.c (m68k_gdbarch_init): Added.
7642 (m68k_dump_tdep): Added.
7643
7644 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7645
7646 * ada-lang.c (fill_in_ada_prototype): Update comment.
7647
7648 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7649
7650 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7651 MIPS_ABI_LAST.
7652 (mips_abi_string, mips_abi_strings): New.
7653 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7654 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7655 tdep->mips_abi_string. Honor mips_abi_string. Default to
7656 O32 if no ABI is found.
7657 (mips_dump_tdep): Use mips_abi_strings.
7658 (mips_abi_update): New function.
7659 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7660 ``set mips abi'' and ``show mips abi''. Check the size of
7661 mips_abi_strings.
7662
7663 2002-06-19 Andrew Cagney <cagney@redhat.com>
7664
7665 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7666 constant.
7667
7668 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7669
7670 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7671 current frame using only the first stack size adjustment. All
7672 subsequent size adjustments are not considered to be part of
7673 the "static" part of the current frame.
7674 Compute the address of the saved registers relative to the
7675 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7676 in use in this frame.
7677
7678 2002-06-18 Don Howard <dhoward@redhat.com>
7679
7680 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7681 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7682 suggesting this solution.
7683
7684 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7685
7686 * config/romp/xm-rtbsd.h: Delete file.
7687 * config/romp/rtbsd.mh: Delete file.
7688
7689 2002-06-18 Keith Seitz <keiths@redhat.com>
7690
7691 * breakpoint.c (condition_command): Post breakpoint_modify
7692 when a condition is added to an existing breakpoint.
7693 (commands_command): Likewise for commands.
7694 (set_ignore_count): Likewise for ignore counts.
7695 If no tty, do not simply return, still need to send event
7696 notification.
7697 (ignore_command): Only print a newline if the command came
7698 from a tty.
7699 Don't call breakpoints_changed, since this is now properly
7700 handled by set_ignore_count.
7701
7702 2002-06-18 Andrew Cagney <cagney@redhat.com>
7703
7704 * MAINTAINERS: Note that cris-elf target can be compiled with
7705 -Werror.
7706 * cris-tdep.c (cris_register_name): Make return type constant.
7707 (cris_breakpoint_from_pc): Ditto.
7708
7709 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7710
7711 * frame.h (struct frame_info): Change type of context to
7712 'struct context'.
7713
7714 2002-06-17 Andrew Cagney <cagney@redhat.com>
7715
7716 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7717 pointer.
7718 * gdbarch.h, gdbarch.c: Regenerate.
7719 * config/mips/tm-mips.h (mips_register_name): Update.
7720 * i386-tdep.h (i386_register_name): Update.
7721 * mips-tdep.c (mips_register_name): Update
7722 * alpha-tdep.c (alpha_register_name): Update.
7723 * arch-utils.c (legacy_register_name): Update.
7724 * arch-utils.h (legacy_register_name): Update.
7725 * avr-tdep.c (avr_register_name): Update.
7726 * ia64-tdep.c (ia64_register_name): Update.
7727 * i386-tdep.c (i386_register_name): Update.
7728 * sparc-tdep.c (sparc32_register_name): Update.
7729 (sparc64_register_name): Update.
7730 (sparclite_register_name): Update.
7731 (sparclet_register_name): Update.
7732 * sh-tdep.c (sh_generic_register_name): Update.
7733 (sh_sh_register_name): Update.
7734 (sh_sh3_register_name): Update.
7735 (sh_sh3e_register_name): Update.
7736 (sh_sh_dsp_register_name): Update.
7737 (sh_sh3_dsp_register_name): Update.
7738 (sh_sh4_register_name): Update.
7739 (sh_sh64_register_name): Update.
7740 * s390-tdep.c (s390_register_name): Update.
7741 * rs6000-tdep.c (rs6000_register_name): Update.
7742 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7743 (ns32k_register_name_32382): Update.
7744 * d10v-tdep.c (d10v_ts2_register_name): Update.
7745 (d10v_ts3_register_name): Update.
7746 * xstormy16-tdep.c (xstormy16_register_name): Update.
7747 * vax-tdep.c (vax_register_name): Update.
7748 * v850-tdep.c (v850_register_name): Update.
7749 * m68hc11-tdep.c (m68hc11_register_name): Update.
7750 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7751 (am33_register_name): Update.
7752
7753 2002-06-17 Grace Sainsbury <graces@redhat.com>
7754
7755 * m68k-tdep.c: Reindented.
7756
7757 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7758
7759 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7760 list of predefined types.
7761
7762 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7763
7764 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7765 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7766 REGISTER_CONVERT_TO_RAW): Remove defines.
7767 (i386_register_virtual_type, i386_register_convertible,
7768 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7769 Remove prototypes.
7770 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7771 macros mentioned above.
7772
7773 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7774 (i386lynx_saved_pc_after_call): Remove prototype.
7775 * i386ly-tdep.c: Include "i386-tdep.h".
7776 (i386lynx_saved_pc_after_call): Make static. Use
7777 read_memory_nobpt instead of read_memory. Use
7778 read_memory_unsigned_integer instead of read_memory_integer.
7779 (i386lynx_init_abi): New function.
7780 (i386lynx_coff_osabi_sniffer): New function.
7781 (_initialize_i386bsd_tdep): New function.
7782
7783 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7784 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7785 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7786 (i386_fix_call_dummy): Remove prototype.
7787 * i386-tdep.c (i386_call_dummy_words): New variable.
7788 (i386_gdbarch_init): Adjust for removal of the
7789 macros mentioned above.
7790
7791 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7792
7793 * command.h (add_setshow_auto_boolean_cmd): Replace
7794 add_set_auto_boolean_cmd.
7795 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7796 add_set_auto_boolean_cmd.
7797 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7798 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7799 mask-address'' command.
7800 (show_mask_address): Add cmd parameter.
7801 * remote.c (add_packet_config_cmd): Update. Change type of
7802 set_func and show_func to cmd_sfunc_ftype.
7803 (_initialize_remote): Update `set remote Z-packet'
7804 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7805 (show_remote_protocol_e_packet_cmd): Ditto.
7806 (show_remote_protocol_E_packet_cmd): Ditto.
7807 (show_remote_protocol_P_packet_cmd): Ditto.
7808 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7809 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7810 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7811 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7812 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7813 (show_remote_protocol_Z_packet_cmd): Ditto.
7814 (show_remote_protocol_binary_download_cmd): Ditto.
7815 (show_remote_cmd): Pass NULL to all of above.
7816
7817 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7818
7819 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7820 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7821 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7822 POP_FRAME): Remove defines.
7823 (i386_push_arguments, i386_store_struct_return,
7824 i386_extract_return_value, i386_store_return_value,
7825 i386_extract_struct_value_address, i386_push_dummy_frame,
7826 i386_pop_frame): Renove prototypes.
7827 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7828 macros mentioned above.
7829
7830 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7831
7832 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7833 add_set_boolean_cmd.
7834 (add_setshow_cmd): New function.
7835 * command.h (add_setshow_boolean_cmd): Replace
7836 add_set_boolean_cmd.
7837 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7838 and ``set rdiromatzero''.
7839 * maint.c (_initialize_maint_cmds): Update commented out code.
7840 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7841 * target.c (initialize_targets): Update `set
7842 trust-readonly-sections'.
7843 * remote.c (_initialize_remote): Update `set remotebreak'.
7844
7845 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7846
7847 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7848 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7849 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7850 fit into multi-arch framework.
7851 (i386_breakpoint_from_pc): New function.
7852 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7853 above.
7854
7855 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7856 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7857 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7858 (i386_frameless_function_invocation, i386_frame_num_args,
7859 i386_frame_init_saved_regs): Remove prototypes.
7860 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7861 macros mentioned above.
7862
7863 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7864
7865 * cli/cli-decode.c (set_cmd_cfunc): Update.
7866 (set_cmd_sfunc): Update.
7867 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7868 (set_cmd_sfunc, set_cmd_cfunc): Update.
7869 * cli/cli-decode.h: Update.
7870
7871 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7872
7873 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7874 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7875
7876 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7877
7878 * defs.h (auto_boolean): Declare enum.
7879 * command.h (cmd_auto_boolean): Delete enum.
7880 * mips-tdep.c (mask_address_var): Update.
7881 (mips_mask_address_p): Update.
7882 (show_mask_address): Update.
7883 * remote.c (struct packet_config): Update.
7884 (update_packet_config): Update.
7885 (show_packet_config_cmd): Update.
7886 (packet_ok): Update.
7887 (add_packet_config_cmd): Update.
7888 (_initialize_remote):
7889 * command.h: Update.
7890 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7891 (do_setshow_command): Update.
7892 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7893 * cli/cli-decode.h: Update.
7894
7895 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7896
7897 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7898 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7899 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7900 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7901 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7902 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7903
7904 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7905 list of DJGPP COFF targets.
7906
7907 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7908 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7909 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7910 (FP0_REGNUM): Remove define.
7911 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7912 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7913 (i386_register_virtual_size): Remove protoype.
7914 * i386-tdep.c (i386_register_virtual_size): Removed.
7915 (i386_extract_return_value, i386_store_return_value): Use
7916 FP0_REGNUM instead of NUM_FREGS to determine whether the
7917 floating-point registers are available.
7918 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7919 Adjust for removal of macros mentioned above.
7920
7921 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7922
7923 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7924 comments.
7925 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7926 Remove prototypes.
7927 (supply_gregset, fill_gregset): Remove use of register keyword and
7928 remove declaration for regmap. Use I386_NUM_GREGS instead of
7929 NUM_REGS and NUM_FREGS.
7930 (FPREGSET_FSAVE_OFFSET): Remove.
7931 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7932 NUM_FREGS to determine whether the floating-point registers are
7933 available.
7934
7935 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7936 gnu_store_registers): Replace usage of NUM_GREGS with
7937 I386_NUM_GREGS.
7938
7939 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7940 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7941 usage of NUM_GREGS with I386_NUM_GREGS.
7942
7943 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7944
7945 * i386bsd-nat.c: Include "i386-tdep.h".
7946 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7947 I386_NUM_GREGS.
7948
7949 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7950 and associated comment. They no longer make any sense, since we
7951 don't use this file anymore on Linux.
7952
7953 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7954 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7955 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7956 elements in these arrays.
7957 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7958 MAX_NUM_REGS.
7959
7960 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7961
7962 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7963 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7964
7965 2002-06-14 Andrew Cagney <cagney@redhat.com>
7966
7967 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7968 EXTRACT_RETURN_VALUE.
7969 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7970 EXTRACT_STRUCT_VALUE_ADDRESS.
7971 * gdbarch.h, gdbarch.c: Regenerate.
7972
7973 * values.c (value_being_returned): Handle
7974 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7975 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7976
7977 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7978 * arm-tdep.c (arm_gdbarch_init): Update.
7979 * avr-tdep.c (avr_gdbarch_init): Update.
7980 * cris-tdep.c (cris_gdbarch_init): Update.
7981 * d10v-tdep.c (d10v_gdbarch_init): Update.
7982 * ia64-tdep.c (ia64_gdbarch_init): Update.
7983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7984 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7985 * s390-tdep.c (s390_gdbarch_init): Update.
7986 * sh-tdep.c (sh_gdbarch_init): Update.
7987 * s390-tdep.c (s390_gdbarch_init): Update.
7988 * sparc-tdep.c (sparc_gdbarch_init): Update.
7989 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7990 * v850-tdep.c (v850_gdbarch_init): Update.
7991 * vax-tdep.c (vax_gdbarch_init): Update.
7992 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7994
7995 * config/arc/tm-arc.h: Update.
7996 * config/d30v/tm-d30v.h: Update.
7997 * config/fr30/tm-fr30.h: Update.
7998 * config/h8300/tm-h8300.h: Update.
7999 * config/h8500/tm-h8500.h: Update.
8000 * config/i386/tm-i386.h: Update.
8001 * config/i386/tm-ptx.h: Update.
8002 * config/i386/tm-symmetry.h: Update.
8003 * config/i960/tm-i960.h: Update.
8004 * config/m32r/tm-m32r.h: Update.
8005 * config/m68k/tm-delta68.h: Update.
8006 * config/m68k/tm-linux.h: Update.
8007 * config/m68k/tm-m68k.h: Update.
8008 * config/m88k/tm-m88k.h: Update.
8009 * config/mcore/tm-mcore.h: Update.
8010 * config/mips/tm-mips.h: Update.
8011 * config/mn10200/tm-mn10200.h: Update.
8012 * config/pa/tm-hppa.h: Update.
8013 * config/pa/tm-hppa64.h: Update.
8014 * config/sparc/tm-sp64.h: Update.
8015 * config/sparc/tm-sparc.h: Update.
8016 * config/sparc/tm-sparclet.h: Update.
8017 * config/z8k/tm-z8k.h: Update.
8018
8019 2002-06-14 Andrew Cagney <cagney@redhat.com>
8020
8021 * Makefile.in (i386_linux_tdep_h): Define.
8022 (i386_tdep_h, i387_tdep_h): Define.
8023 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8024 $(i386_tdep_h) and $(i387_tdep_h).
8025 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8026
8027 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8028
8029 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8030 Already covered by the default.
8031
8032 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8033 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8034 (i386_gdbarch_init): Initialize long_double_format and long_double
8035 bit.
8036
8037 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8038 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8039 Move these to ...
8040 * config/i386/i386sol2.mh: ... here.
8041 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8042 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8043 (SIGCONTEXT_PC_OFFSET): Remove define.
8044 (IN_SIGTRAMP): Remove define.
8045 * i386-sol2-tdep.c: New file.
8046
8047 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8048 * config/i386/tm-i386nw.h: Removed.
8049
8050 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8051 USE_STRUCT_CONVENTION): Remove defines.
8052 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8053 (get_longjmp_target): Remove prototype.
8054 (IN_SIGTRAMP): Remove define.
8055 (i386bsd_in_sigtramp): Remove prototype.
8056 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8057 function. Update comment accordingly
8058 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8059 (FRAME_SAVED_PC): Remove define.
8060 (i386bsd_frame_saved_pc): Remove prototype.
8061 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8062 GET_LONGJMP_TARGET): Remove defines.
8063 (get_longjmp_target): Remove prototype.
8064 (IN_SIGTRAMP): Remove define.
8065 (i386bsd_in_sigtramp): Remove prototype.
8066 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8067 function. Update comment accordingly
8068 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8069 (FRAME_SAVED_PC): Remove define.
8070 (i386bsd_frame_saved_pc): Remove prototype.
8071 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8072 Remove prototype.
8073 (USE_STRUCT_CONVENTION): Remove prototype.
8074 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8075 declaration.
8076 (_initialize_i386bsd_nat): Revise logic to determine some
8077 constants at compile time when compiling a native GDB. Warn if
8078 things don't match up with what we expect.
8079 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8080 Remove variables.
8081 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8082 to use date stored in `struct gdbarch_tdep'.
8083 (i386bsd_sigcontext_offset): Remove varaible.
8084 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8085 stored in `struct gdbarch_tdep'.
8086 (i386bsd_frame_saved_pc): Make static.
8087 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8088 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8089 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8090 i386fbsd4_sc_pc_offset): New variables.
8091 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8092 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8093 functions.
8094 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8095 functions.
8096 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8097 Modify the value of i386fbsd_sigtramp_start and
8098 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8099 i386fbsd_sigtramp_end.
8100 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8101 function.
8102
8103 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8104 define to i386-linux-tdep.h.
8105 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8106 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8107 defines.
8108 (i386_linux_register_name, i386_linux_register_byte,
8109 i386_linux_register_raw_size): Remove prototypes.
8110 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8111 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8112 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8113 TARGET_WRITE_PC): Remove defines.
8114 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8115 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8116 i386_linux_write_pc): Remove prototypes.
8117 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8118 (get_longjmp_target): Remove prototype.
8119 * i386-linux-tdep.h: New file.
8120 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8121 * i386-linux-tdep.c: Include "i386-tdep.h" and
8122 "i386-linux-tdep.h".
8123 (i386_linux_register_name, i386_linux_register_byte,
8124 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8125 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8126 Make static.
8127 (i386_linux_init_abi): New function.
8128 (_initialize_i386_linux_tdep): New function.
8129
8130 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8131 (i386_saved_pc_after_call): Remove prototype.
8132 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8133 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8134 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8135 (i386_register_name, i386_stab_reg_to_regnum,
8136 i386_dwarf_reg_to_regnum): Remove prototypes.
8137 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8138 SIZEOF_SSE_REGS): Remove defines.
8139 (REGISTER_BYTES): Remove define.
8140 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8141 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8142 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8143 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8144 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8145 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8146 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8147 (get_longjmp_target): Remove prototype.
8148 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8149 (sigtramp_saved_pc): Remove define.
8150 (i386v4_sigtramp_saved_pc): Remove prototype.
8151 * config/i386/tm-go32.h (FRAME_CHAIN,
8152 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8153 (i386go32_frame_saved_pc): Remove prototype.
8154 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8155 (get_longjmp_target): Remove prototype.
8156 * i386-tdep.h: Include "osabi.h".
8157 (enum i386_abi): Removed.
8158 (enum struct_return): New enum.
8159 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8160 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8161 sc_pc_offset members.
8162 (i386_gdbarch_register_os_abi): Remove prototype.
8163 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8164 I386_SSE_NUM_REGS): New defines.
8165 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8166 I386_SSE_SIZEOF_REGS): New defines.
8167 (i386_register_name, i386_register_byte, i386_register_raw_size):
8168 New prototypes.
8169 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8170 (i386bsd_sigtramp_saved_pc): New prototype.
8171 * i386-tdep.c: Don't include "elf-bfd.h".
8172 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8173 i386_frame_chain, i386_saved_pc_after_call): Make static.
8174 (i386_frame_saved_pc): Rewrite to call architecture dependent
8175 function to deal with signal handlers. Make static.
8176 (i386go32_frame_saved_pc): Removed.
8177 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8178 Removed.
8179 (i386_get_longjmp_target): New function.
8180 (default_struct_convention, pcc_struct_convention,
8181 reg_struct_convention, valid_conventions, struct_convention): New
8182 variables.
8183 (i386_use_struct_convention): New function.
8184 (i386v4_sigtramp_saved_pc): Renamed to
8185 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8186 (i386_pc_in_sigtramp): New function.
8187 (i386_abi_names): Removed.
8188 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8189 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8190 Removed.
8191 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8192 i386_gdbarch_register_os_abi): Removed.
8193 (struct i386_abi_handler): Removed.
8194 (i386_abi_handler_list): Removed.
8195 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8196 functions.
8197 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8198 i386_nw_init_abi): New functions.
8199 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8200 Use set_gdbarch_xxx() calls instead of relying on macros for a
8201 number of calls.
8202 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8203 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8204 Register the various architecture variants defined in this file.
8205
8206 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8207
8208 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8209 (struct main_type): Remove arg_types member. Update comments for
8210 struct field.
8211 (TYPE_ARG_TYPES): Remove.
8212 (TYPE_FN_FIELD_ARGS): Update.
8213 (smash_to_method_type): Update prototype.
8214
8215 * c-typeprint.c (cp_type_print_method_args): Take method type
8216 instead of argument list. Use new argument layout. Simplify.
8217 (c_type_print_args): Use new argument layout. Simplify.
8218 (c_type_print_base): Update call to cp_type_print_method_args.
8219 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8220 argument; use die->type instead. Update call to
8221 smash_to_method_type.
8222 (read_structure_scope): Update call to dwarf2_add_member_fn.
8223 * gdbtypes.c (allocate_stub_method): Update comment.
8224 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8225 Use new argument layout.
8226 (check_stub_method): Use new argument layout. Don't count
8227 void as an argument.
8228 (print_arg_types): Update comments. Use new argument layout.
8229 (recursive_dump_type): Don't print arg_types member.
8230 * hpread.c (hpread_read_struct_type): Use new argument layout.
8231 (fixup_class_method_type): Likewise.
8232 (hpread_type_lookup): Likewise.
8233 * stabsread.c (read_type): Update calls to read_args and
8234 smash_to_method_type.
8235 (read_args): Use new argument layout. Simplify.
8236 * valops.c (typecmp): Use new argument layout. Update parameters
8237 and comments. Simplify.
8238 (hand_function_call): Use new argument layout.
8239 (search_struct_method): Update call to typecmp.
8240 (find_overload_match): Use new argument layout.
8241
8242 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8243
8244 * NEWS: Mention multithreaded debug support for gdbserver.
8245
8246 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8247
8248 * MAINTAINERS: Mention NEWS.
8249
8250 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8251
8252 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8253 (struct mips_objfile_private, compare_pdr_entries): New.
8254 (non_heuristic_proc_desc): Read the ".pdr" section if it
8255 is present.
8256
8257 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8258
8259 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8260 (arm_debug): New static variable.
8261 (_initialize_arm_tdep): Add ``set debug arm'' command.
8262
8263 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8264
8265 * Makefile.in (sim_arm_h): Define.
8266 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8267 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8268 (arm_register_sim_regno): New function, map an internal REGNUM
8269 onto a simulator register number.
8270 (arm_gdbarch_init): Set register_sim_regno.
8271
8272 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8273
8274 * MAINTAINERS: Add self.
8275
8276 2002-06-11 Jim Blandy <jimb@redhat.com>
8277
8278 * source.c (source_info): Mention whether the symtab has
8279 information about preprocessor macros.
8280
8281 Call the command `info macro', not `show macro'.
8282 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8283 Fix error message.
8284 (_initialize_macrocmd): Register `info_macro_command' in
8285 `infolist', not `showlist'.
8286
8287 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8288
8289 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8290 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8291 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8292 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8293 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8294 unconditionally.
8295 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8296 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8297 (_initialize_mips_tdep): Remove dead code.
8298 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8299 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8300 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8301 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8302 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8303 MIPS_LAST_FP_ARG_REGNUM): Remove.
8304
8305 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8306
8307 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8308 (unwind_tmp_obstack_free, parse_frame_info)
8309 (update_context, cfi_read_fp, cfi_write_fp)
8310 (cfi_frame_chain, cfi_init_extra_frame_info)
8311 (cfi_virtual_frame_pointer): Use the above function.
8312 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8313
8314 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8315
8316 * v850-tdep.c (v850_type_is_scalar): New function.
8317 (v850_use_struct_convention): Match current gcc implementation
8318 as close as possible.
8319 (v850_push_arguments): Fix stack_offset handling. Don't write
8320 struct_addr into register. This is done by v850_store_struct_return.
8321 (v850_extract_return_value): Care for structs.
8322 (v850_store_return_value): Ditto.
8323 (v850_store_struct_return): Actually write address.
8324
8325 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8326
8327 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8328 without debug information too.
8329
8330 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8331
8332 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8333 Make multi-arch pure.
8334 * gdbarch.h, gdbarch.c: Re-generate.
8335 * arm-tdep.c (arm_print_float_info): Update.
8336 * arch-utils.h (default_print_float_info): Update.
8337 * arch-utils.c (default_print_float_info): Update.
8338 * infcmd.c (float_info): Update call.
8339
8340 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8341
8342 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8343 the front of the initialize list.
8344
8345 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8346
8347 * infrun.c (struct inferior_status): Replace fields
8348 selected_frame_address and selected_level with field
8349 selected_frame_id.
8350 (save_inferior_status): Update. Use get_frame_id.
8351 (struct restore_selected_frame_args): Delete.
8352 (restore_selected_frame): Update. Use frame_find_by_id.
8353 (restore_inferior_status): Update.
8354
8355 * breakpoint.h (struct breakpoint): Change type of
8356 watchpoint_frame to frame_id.
8357 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8358 call to get_current_frame.
8359 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8360 get_current_frame.
8361 (watchpoint_check): Use frame_find_by_id.
8362
8363 * frame.h (record_selected_frame): Delete declaration.
8364 * stack.c (record_selected_frame): Delete function.
8365
8366 * frame.h (struct frame_id): Define.
8367 (get_frame_id): Declare.
8368 (frame_find_by_id): Declare.
8369 * frame.c (frame_find_by_id): New function.
8370 (get_frame_id): New function.
8371
8372 2002-06-10 Andrey Volkov <avolkov@transas.com>
8373
8374 * ser-e7kpc.c: Fix duplicated define and call of
8375 _initialize_ser_e7000pc
8376
8377 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8378
8379 * signals/signals.c (target_signal_from_host): Fix #ifdef
8380 SIGRTMIN case.
8381 (do_target_signal_to_host): Likewise.
8382
8383 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8384
8385 * mips-tdep.c (mips_find_abi_section): New function.
8386 (mips_gdbarch_init): Call it.
8387
8388 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8389
8390 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8391 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8392 after Andrew's 2002-06-08 gdbarch change.
8393
8394 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8395
8396 * i386-linux-nat.c (suppy_gregset): Don't supply
8397 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8398 register cache.
8399 (fill_gregset): Don't fetch it under the same circumstances.
8400
8401 2002-06-09 Andrew Cagney <cagney@redhat.com>
8402
8403 * Makefile.in (callback_h): Define.
8404 (remote_sim_h): Update path to remote-sim.h.
8405 (remote-rdp.o): Add $(callback_h).
8406 (remote-sim.o): Use $(callback_h).
8407 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8408 * remote-rdp.c: Include "gdb/callback.h".
8409
8410 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8411
8412 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8413 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8414
8415 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8416
8417 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8418 * rdi-share/serpardr.c: Ditto.
8419 * rdi-share/unixcomm.c: Ditto.
8420 * rdi-share/serdrv.c: Ditto.
8421 * rdi-share/hostchan.h: Ditto.
8422 * rdi-share/hostchan.c: Ditto.
8423 * rdi-share/host.h: Ditto.
8424 * rdi-share/devsw.c: Ditto.
8425
8426 * objfiles.h: Change type of obj_private to void pointer.
8427 * pa64solib.c: Update copyright. Don't include "assert.h", use
8428 strcmp instead of STREQ, use LONGEST, do not use PTR
8429 * somsolib.c: Ditto.
8430
8431 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8432 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8433 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8434
8435 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8436
8437 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8438 (default_get_saved_register): Delete function.
8439 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8440 generic_unwind_get_saved_register.
8441 * gdbarch.h, gdbarch.c: Re-generate.
8442
8443 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8444
8445 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8446 generic_func_frame_chain_valid.
8447 * gdbarch.h, gdbarch.c: Re-generate.
8448 * blockframe.c (generic_func_frame_chain_valid): Only check
8449 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8450 passing FP to PC_IN_CALL_DUMMY.
8451 Fix PR gdb/360.
8452
8453 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8454
8455 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8456 (register_gdbarch_data): Initialize init_p.
8457 (gdbarch_data): Initialize data pointer using the init function.
8458 (init_gdbarch_data): Delete function.
8459 (gdbarch_update_p): Update.
8460 (initialize_non_multiarch): Update.
8461 (struct gdbarch): Add field initialized_p.
8462 * gdbarch.h, gdbarch.c: Re-generate.
8463
8464 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8465
8466 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8467 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8468 better do the things actually here.
8469 * x86-64-tdep.c (x86_64_register_name2nr): New.
8470 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8471 (x86_64_gdbarch_init): Respect the above change.
8472 * x86-64-tdep.h (x86_64_register_name2nr)
8473 (x86_64_register_nr2name): Add prototypes.
8474 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8475
8476 2002-06-06 Michael Snyder <msnyder@redhat.com>
8477
8478 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8479 Delete extra braces and re-indent.
8480 (d10v_store_return_value): Char return values
8481 must be shifted over by one byte in R0.
8482 (d10v_extract_return_value): Delete extra braces, re-indent.
8483
8484 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8485
8486 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8487 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8488 (d10v_integer_to_address): Rewrite.
8489 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8490 the d10v specific functions which take care of converting to the
8491 correct space.
8492
8493 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8494
8495 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8496 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8497
8498 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8499
8500 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8501 includes.
8502 * config/tm-linux.h: Ditto.
8503 * config/alpha/tm-alphalinux.h: Ditto.
8504 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8505 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8506 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8507 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8508 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8509 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8510 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8511 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8512 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8513 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8514 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8515 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8516 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8517 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8518 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8519 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8520 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8521 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8522 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8523 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8524 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8525 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8526 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8527 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8528 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8529 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8530 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8531 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8532 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8533 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8534 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8535 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8536 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8537 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8538 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8539 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8540 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8541
8542 2002-05-04 Aidan Skinner <aidan@velvet.net>
8543
8544 * ada-exp.tab.c: New file
8545 * ada-exp.y: New file
8546 * ada-lang.c: New file
8547 * ada-lang.h: New file
8548 * ada-lex.c: New file
8549 * ada-lex.l: New file
8550 * ada-tasks.c: New file
8551 * ada-typeprint.c: New file
8552 * ada-valprint.c: New file
8553
8554 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8555
8556 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8557 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8558
8559 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8560
8561 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8562 insetead of ppc-linux-tdep.o.
8563 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8564 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8565
8566 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8567
8568 2002-05-07 Christian Groessler <chris@groessler.org>
8569 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8570 bit register contents for little endian hosts.
8571
8572 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8573
8574 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8575 any maintainer.
8576
8577 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8578
8579 * gdbarch.h: Regenerate.
8580
8581 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8582
8583 * MAINTAINERS: Add everyone to write-after-approval list.
8584
8585 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8586
8587 * stack.c (frame_info): Use frame_register_unwind instead of
8588 saved_regs. Mention when the SP is on the stack or in a register.
8589
8590 * frame.h (frame_register_unwind_ftype): Define. Document.
8591 (struct frame_info): Add field register_unwind and
8592 register_unwind_cache.
8593 (frame_register_unwind): Declare.
8594 (generic_unwind_get_saved_register): Declare.
8595
8596 * frame.c (frame_register_unwind): New function.
8597 (generic_unwind_get_saved_register): New function.
8598
8599 * blockframe.c (generic_call_dummy_register_unwind): New function.
8600 (frame_saved_regs_register_unwind): New function.
8601 (set_unwind_by_pc): New function.
8602 (create_new_frame): New function.
8603 (get_prev_frame): New function.
8604
8605 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8606
8607 * a29k-share/: Delete directory.
8608 * remote-vx29k.c: Delete file.
8609
8610 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8611
8612 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8613 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8614
8615 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8616
8617 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8618 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8619 (sparc64nbsd-nat.o)
8620 (sparcnbsd-nat.o)
8621 (sparcnbsd-tdep.o): New dependency lists.
8622 * NEWS: Note new UltraSPARC NetBSD native configuration.
8623 * configure.host (sparc64-*-netbsd*): New host.
8624 * configure.tgt (sparc-*-netbsdelf*)
8625 (sparc-*-netbsd*): Set gdb_target to nbsd.
8626 (sparc64-*-netbsd*): New target.
8627 * sparc64nbsd-nat.c: New file.
8628 * sparcnbsd-nat.c: New file.
8629 * sparcnbsd-tdep.c: New file.
8630 * sparcnbsd-tdep.h: New file.
8631 * config/sparc/nbsd.mt: New file.
8632 * config/sparc/nbsd64.mh: New file.
8633 * config/sparc/nbsd64.mt: New file.
8634 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8635 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8636 (HOST_IPC): Remove.
8637 * config/sparc/nbsdaout.mt: Remove.
8638 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8639 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8640 (HOST_IPC): Remove.
8641 * config/sparc/nbsdelf.mt: Remove.
8642 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8643 sparc-nat.c compatiblity defines.
8644 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8645 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8646 * config/sparc/tm-nbsd64.h: New file.
8647 * config/sparc/tm-nbsdaout.h: Remove.
8648 * config/sparc/xm-nbsd.h: Remove.
8649
8650 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8651
8652 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8653 * sparc-tdep.c: Include osabi.h.
8654 (gdbarch_tdep): Add osabi member.
8655 (_initialize_sparc_tdep): Use gdbarch_register.
8656 (sparc_gdbarch_init): Use generic OS ABI framework.
8657 (sparc_dump_tdep): New function.
8658
8659 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8660
8661 * corefile.c (do_captured_read_memory_integer): Return non-zero
8662 result.
8663 (safe_read_memory_integer): Copy result of memory read when
8664 status is non-zero. Also, add comments.
8665
8666 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8667
8668 * Makefile.in (ppc_tdep_h): Define.
8669 (ppc-linux-nat.o)
8670 (ppc-linux-tdep.o)
8671 (rs6000-tdep.o): Use $(ppc_tdep_h).
8672 (ppc-sysv-tdep.o)
8673 (ppcnbsd-nat.o)
8674 (ppcnbsd-tdep.o): New dependency lists.
8675 * ppc-tdep.h: Use generic OS ABI framework.
8676 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8677 (ppc_linux_init_abi): New functions.
8678 (ppc_sysv_abi_broken_use_struct_convention)
8679 (ppc_sysv_abi_use_struct_convention)
8680 (ppc_sysv_abi_push_arguments): Move to...
8681 * ppc-sysv-tdep.c: ...here.
8682 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8683 * rs6000-tdep.c (process_note_abi_tag_sections)
8684 (get_elfosabi): Remove.
8685 (rs6000_gdbarch_init): Use generic OS ABI framework.
8686 (rs6000_dump_tdep): New function.
8687 (_initialize_rs6000_tdep): Use gdbarch_register.
8688 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8689 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8690 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8691 of ppc-linux-tdep.o.
8692 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8693 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8694 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8695 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8696 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8697 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8698
8699 2002-05-29 Jim Blandy <jimb@redhat.com>
8700
8701 * macroscope.c (default_macro_scope): Put `void' in empty argument
8702 list.
8703
8704 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8705
8706 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8707 * arch-utils.c: Include "sim-regno.h".
8708 * gdbarch.sh: Don't include "sim-regno.h".
8709 * gdbarch.h, gdbarch.c: Regenerate.
8710 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8711 here.
8712 * arch-utils.h (legacy_register_sim_regno): To here.
8713 * remote-sim.c (legacy_register_sim_regno): Move function from
8714 here.
8715 * arch-utils.c (legacy_register_sim_regno): To here.
8716
8717 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8718
8719 * sim-regno.h: New file.
8720 * Makefile.in (sim_regno_h): Define.
8721 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8722 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8723 (legacy_register_sim_regno): New function.
8724 (one2one_register_sim_regno): New function.
8725 (gdbsim_fetch_register): Rewrite.
8726 (gdbsim_store_register): Only store a register when
8727 REGISTER_SIM_REGNO is valid.
8728 * d10v-tdep.c: Include "sim-regno.h".
8729 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8730 (d10v_ts3_register_sim_regno): Ditto.
8731 * gdbarch.sh: Include "sim-regno.h".
8732 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8733 * gdbarch.h, gdbarch.c: Regenerate.
8734 * arch-utils.h (default_register_sim_regno): Delete declaration.
8735 * arch-utils.c (default_register_sim_regno): Delete function.
8736
8737 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8738
8739 * ppcnbsd-nat.c: Rewrite.
8740 * ppcnbsd-tdep.c: New file.
8741 * ppcnbsd-tdep.h: New file.
8742 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8743 solib.o, and solib-svr4.o.
8744 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8745 nbsd-tdep.o, and corelow.o.
8746
8747 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8748
8749 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8750 `tr' and `sed'. Mention that `broken' targets are not expected to
8751 build.
8752
8753 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8754
8755 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8756 Let PC point right after the prologue before looking up symbols.
8757
8758 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8759
8760 * i386-tdep.c (i386_register_virtual_type): Return
8761 builtin_type_vec128i for SSE registers.
8762
8763 * gdbtypes.h (builtin_type_vec128i): Declare.
8764
8765 * gdbtypes.c (build_builtin_type_vec128i): New function.
8766 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8767 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8768 (build_gdbtypes): Initialize new builtin vector types.
8769 (_initialize_gdbtypes): Register new vector types with gdbarch.
8770
8771 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8772
8773 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8774 since it has been multi-arch'd.
8775 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8776 Move Alpha and VAX multi-arch news entries to same section
8777 as other multi-arch news.
8778
8779 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8780
8781 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8782 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8783 static. Rename some register numbers to put them in ns32k-tdep
8784 private namespace.
8785 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8786 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8787 functions.
8788 (_initialize_ns32k_tdep): Use gdbarch_register.
8789 * ns32k-tdep.h: New file.
8790 * ns32knbsd-tdep.c: New file.
8791 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8792 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8793 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8794 REGISTER_BYTES, REGISTER_BYTE): Remove.
8795 * config/ns32k/tm-ns32k.h: New file.
8796 * config/ns32k/tm-umax.h: Remove.
8797
8798 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8799
8800 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8801 ns32k_store_struct_return, ns32k_extract_return_value,
8802 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8803 functions.
8804 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8805 ns32k_saved_pc_after_call.
8806 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8807 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8808 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8809 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8810 ns32k_extract_struct_value_address.
8811
8812 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8813
8814 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8815 ns32k_fix_call_dummy): New.
8816 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8817 ns32k_call_dummy_words.
8818 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8819 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8820 CALL_DUMMY_NARGS): Remove.
8821 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8822
8823 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8824
8825 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8826 ns32k_frame_saved_pc, ns32k_frame_args_address,
8827 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8828 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8829 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8830 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8831 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8832 (BREAKPOINT): Remove..
8833 (FRAME_CHAIN): Define as ns32k_frame_chain.
8834 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8835 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8836 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8837 (FRAME_FIND_SAVED_REGS): Remove.
8838 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8839 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8840 (POP_FRAME): Define as ns32k_pop_frame.
8841
8842 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8843
8844 * ns32k-tdep.c (ns32k_register_byte_32082,
8845 ns32k_register_byte_32382, ns32k_register_raw_size,
8846 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8847 functions.
8848 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8849 ns32k_register_byte_32382.
8850 * config/ns32k/tm-umax.h: Update copyright years.
8851 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8852 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8853 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8854 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8855 (ns32k_get_enter_addr): Fix prototype.
8856
8857 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8858
8859 * ns32k-tdep.c: Update copyright years.
8860 (ns32k_register_name_32082): New function.
8861 (ns32k_register_name_32382): Ditto.
8862 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8863 (REGISTER_NAME): Define as ns32k_register_name_32382.
8864 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8865 (REGISTER_NAME): Define as ns32k_register_name_32082.
8866
8867 2002-05-24 Jim Blandy <jimb@redhat.com>
8868
8869 * dwarf2read.c (free_line_header): Use xfree, not free.
8870
8871 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8872
8873 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8874 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8875
8876 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8877
8878 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8879
8880 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8881
8882 From Ross Alexander at NEC Europe:
8883 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8884
8885 2002-05-23 Michael Snyder <msnyder@redhat.com>
8886
8887 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8888 for input, rather than parse_and_eval_address.
8889
8890 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8891
8892 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8893 * Makefile.in (sim_d10v_h): Update definition.
8894
8895 2002-05-24 Andrew Cagney <cagney@redhat.com>
8896
8897 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8898 change `2002-05-22 Michael Snyder' below.
8899 (d10v_push_arguments): Ditto.
8900 (d10v_extract_return_value): Ditto.
8901
8902 2002-05-23 Jim Blandy <jimb@redhat.com>
8903
8904 * macrotab.c (check_for_redefinition): Don't complain if the new
8905 definition is the same as the previous one. Take more arguments
8906 to allow the comparison.
8907 (macro_define_object, macro_define_function): Pass more arguments
8908 to check_for_redefinition.
8909
8910 2002-05-22 Michael Snyder <msnyder@redhat.com>
8911
8912 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8913 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8914 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8915 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8916 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8917 Add a temp variable to save a call (and a memory read).
8918 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8919 if possible (so that PC_IN_CALL_DUMMY will work).
8920
8921 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8922
8923 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8924
8925 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8926
8927 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8928 fde->cie_ptr.
8929 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8930 (dwarf2_build_frame_info): Add offset to fde->initial_location
8931 so that frames of shared libraries are mapped correctly.
8932 (execute_stack_op): Change type of 'result' from ULONGEST to
8933 CORE_ADDR.
8934
8935 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8936
8937 * config/alpha/tm-nbsd.h: Include solib.h.
8938
8939 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8940
8941 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8942 assumptions about the host's byte order.
8943
8944 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8945
8946 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8947 to dependency list.
8948 * alphanbsd-tdep.c: Include solib-svr4.h.
8949 * shnbsd-tdep.c: Ditto.
8950
8951 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8952
8953 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8954 nbsd-tdep.h to dependency list.
8955 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8956 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8957 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8958 nbsdaout.mh and nbsdelf.mh consistently.
8959 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8960 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8961 nbsdaout.mt and nbsdelf.mh consistently.
8962 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8963 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8964 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8965 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8966 a.out shared library stuff from here...
8967 * config/nm-nbsdaout.h: ...to here.
8968 * config/tm-nbsd.h: Remove.
8969 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8970 * config/arm/nbsd.mh: Remove.
8971 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8972 nbsd-tdep.o.
8973 * config/arm/nbsdaout.mh: New file.
8974 * config/arm/nbsdelf.mh: New file.
8975 * config/arm/nm-nbsdaout.h: New file.
8976 * config/i386/nbsd.mh: Remove.
8977 * config/i386/nbsd.mt: Remove.
8978 * config/i386/nbsdaout.mh: New file.
8979 * config/i386/nbsdaout.mt: New file.
8980 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8981 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8982 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8983 i386_register_u_addr): Remove.
8984 * config/i386/nm-nbsdaout.h: New file.
8985 * config/i386/nm-nbsdelf.h: Remove.
8986 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8987 (USE_STRUCT_CONVENTION): Remove.
8988 * config/i386/tm-nbsdaout.h: New file.
8989 * config/i386/tm-nbsdelf.h: Remove.
8990 * config/m68k/nbsd.mh: Remove.
8991 * config/m68k/nbsd.mt: Remove.
8992 * config/m68k/nbsdaout.mh: New file.
8993 * config/m68k/nbsdaout.mt: New file.
8994 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8995 * config/m68k/nm-nbsdaout.h: New file.
8996 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8997 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8998 * config/ns32k/nbsd.mh: Remove.
8999 * config/ns32k/nbsd.mt: Remove.
9000 * config/ns32k/nbsdaout.mh: New file.
9001 * config/ns32k/nbsdaout.mt: New file.
9002 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9003 * config/ns32k/nm-nbsdaout.h: New file.
9004 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9005 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9006 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9007 (SVR4_SHARED_LIBS): Remove.
9008 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9009 * config/sparc/nbsd.mh: Remove.
9010 * config/sparc/nbsd.mt: Remove.
9011 * config/sparc/nbsdaout.mh: New file.
9012 * config/sparc/nbsdaout.mt: New file.
9013 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9014 * config/sparc/nbsdelf.mt: New file.
9015 * config/sparc/nm-nbsdaout.h: New file.
9016 * config/sparc/nm-nbsdelf.h: Remove.
9017 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9018 * config/sparc/tm-nbsdaout.h: New file.
9019
9020 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9021
9022 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9023 mipsnbsd-tdep.c
9024 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9025
9026 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9027
9028 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9029 shnbsd-nat.c.
9030 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9031
9032 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9033
9034 * NEWS: Note new MIPS NetBSD native configuration.
9035 * configure.host (mips*-*-netbsd*): New host.
9036 * configure.tgt (mips*-*-netbsd*): New target.
9037 * mipsnbsd-nat.c: New file.
9038 * mipsnbsd-tdep.c: New file.
9039 * mipsnbsd-tdep.h: New file.
9040 * config/mips/nbsd.mh: New file.
9041 * config/mips/nbsd.mt: New file.
9042 * config/mips/nm-nbsd.h: New file.
9043 * config/mips/tm-nbsd.h: New file.
9044
9045 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9046
9047 * Makefile.in (SFILES): Add osabi.c.
9048 (COMMON_OBS): Add osabi.o.
9049 (osabi.o): New dependency list.
9050 * osabi.c: New file.
9051 * osabi.h: New file.
9052 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9053
9054 * Makefile.in (alpha_tdep_h): Define and use instead of
9055 alpha-tdep.h.
9056 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9057 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9058 Remove.
9059 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9060 * alpha-tdep.h: Include osabi.h.
9061 (alpha_abi): Remove.
9062 (gdbarch_tdep): Use generic OS ABI framework.
9063 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9064 gdbarch_register_osabi.
9065 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9066 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9067 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9068
9069 * Makefile.in (sh_tdep_h): Add osabi.h.
9070 * sh-tdep.h (sh_osabi): Remove.
9071 (gdbarch_tdep): Use generic OS ABI framework.
9072 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9073 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9074 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9075 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9076
9077 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9078 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9079 gdbarch_register_osabi.
9080 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9081 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9082 (get_elfosabi): Rename to...
9083 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9084 ABI framework support routines.
9085 (arm_gdbarch_init): Use generic OS ABI framework.
9086 (arm_dump_tdep): Likewise.
9087 (_initialize_arm_tdep): Likewise.
9088 * arm-tdep.h: Include osabi.h.
9089 (arm_abi): Remove.
9090 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9091 osabi member.
9092 (arm_gdbarch_register_os_abi): Remove prototype.
9093 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9094 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9095
9096 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9097 * mips-tdep.c: Include osabi.h.
9098 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9099 OS ABI framework.
9100
9101 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9102
9103 * h8300-tdep.c: Fix formatting.
9104
9105 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9106
9107 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9108 printing vector registers.
9109
9110 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9111
9112 From Fernando Nasser:
9113 * remote.c (remote_async_open_1): Re-throw the exception when the
9114 connection fails.
9115 (remote_cisco_open): Ditto.
9116 (remote_open_1): Ditto.
9117
9118 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9119
9120 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9121 (remote_start_remote): Add uiout parameter. Pass through to
9122 remote_start_remote_dummy.
9123 (remote_open_1): Use catch_exception instead of catch_errors.
9124 (remote_async_open_1): Ditto.
9125 (remote_cisco_open): Ditto.
9126
9127 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9128
9129 * remote.c (remote_start_remote): Replace PTR with void pointer.
9130 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9131 static.
9132
9133 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9134
9135 * gdb_indent.sh: Allow the script to be run in the sim directory.
9136
9137 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9138
9139 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9140 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9141
9142 * corelow.c (core_open): Only call set_gdbarch_from_file if
9143 exec_bfd is NULL.
9144
9145 2002-05-17 Andrey Volkov <avolkov@transas.com>
9146
9147 * h8300-tdep.c: Add support of EXR register
9148 * config/h8300/tm-h8300.h: Ditto.
9149
9150 2002-05-17 Andrey Volkov <avolkov@transas.com>
9151
9152 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9153
9154 2002-05-17 Andrey Volkov <avolkov@transas.com>
9155
9156 * h8300-tdep.c: Change literal regnums to REGNO.
9157
9158 2002-05-17 Jim Blandy <jimb@redhat.com>
9159
9160 * NEWS: Note addition of macro support.
9161
9162 Expand preprocessor macros in C expressions.
9163 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9164 (scan_macro_expansion, scanning_macro_expansion,
9165 finished_macro_expansion): New function declarations.
9166 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9167 variable declarations.
9168 * parser-defs.h (expression_context_pc): New declaration.
9169 * parse.c (expression_context_pc): New variable.
9170 (parse_exp_1): Set expression_context_pc, as well as
9171 expression_context_block.
9172 * c-exp.y (yylex): If we're not already reading the result of a
9173 macro expansion, try to macro-expand the next token. When we're
9174 done scanning a macro expansion, switch back to the mainline text.
9175 Commas and `if's in a macro's expansion don't terminate the input.
9176 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9177 (macro_original_text, macro_expanded_text,
9178 expression_macro_lookup_func, expression_macro_lookup_baton): New
9179 variables.
9180 (scan_macro_expansion, scanning_macro_expansion,
9181 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9182 c_preprocess_and_parse): New functions.
9183 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9184 c_preprocess_and_parse, instead of c_parse.
9185 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9186 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9187
9188 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9189
9190 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9191 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9192 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9193
9194 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9195
9196 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9197
9198 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9199
9200 * Makefile.in (sh_tdep_h): Define and use.
9201 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9202 register enum): Move to...
9203 * * sh-tdep.h: ...here.
9204 * sh-tdep.c: Include sh-tdep.h.
9205 * sh3-rom.c: Likewise.
9206 * shnbsd-tdep.c: Likewise.
9207
9208 2002-05-16 Michael Snyder <msnyder@redhat.com>
9209
9210 * arm-tdep.c: Spelling fix in comment.
9211
9212 2002-05-16 Jim Blandy <jimb@redhat.com>
9213
9214 Add commands for manually expanding macros and showing their
9215 definitions.
9216 * macrocmd.c, macroscope.c, macroscope.h: New files.
9217 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9218 (macroscope_h): New variable.
9219 (HFILES_NO_SRCDIR): Add macroscope.h.
9220 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9221 (macroscope.o, macrocmd.o): New rules.
9222
9223 Teach the Dwarf 2 reader to read macro information.
9224 * dwarf2read.c: #include "macrotab.h".
9225 (dwarf_macinfo_buffer): New variable.
9226 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9227 dwarf_macinfo_size.
9228 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9229 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9230 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9231 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9232 dwarf2_macro_spaces_in_definition): New complaints.
9233 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9234 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9235 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9236 the partial symbol table.
9237 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9238 from what's recorded in the partial symbol table.
9239 (read_file_scope): If the compilation unit has a
9240 `DW_AT_macro_info' attribute, read its macro information.
9241 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9242
9243 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9244
9245 Fix PR gdb/546
9246 * ser-tcp.c: Don't include <netinet/udp.h>.
9247
9248 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9249
9250 * MAINTAINERS: Update my email address.
9251
9252 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9253
9254 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9255 include file of the same name.
9256
9257 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9258
9259 * configure.tgt: Mark v850 as multi-arched.
9260 * config/v850/tm-v850.h: Remove file.
9261 * config/v850/v850.mt: Eliminate TM_FILE.
9262
9263 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9264
9265 * v850-tdep.c: Full multi-arch.
9266 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9267 Define GDB_MULTI_ARCH to 2.
9268
9269 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9270
9271 * p-exp.y (current_type): New static variable.
9272 Carries the type of the expression at the position that is parsed.
9273 (push_current_type, pop_current_type): Two new functions. Used
9274 to store/restore current_type in expression on specific tokens.
9275 (search_field): New static variable. Set to one after parsing a point
9276 as at that point only a FIELDNAME token should be searched.
9277 (FIELDNAME): New token. After a point only a token belonging to
9278 current_type type definition is allowed.
9279 (all over token rules): reset and change current_type according
9280 to rules.
9281 (exp '[' rule): insert implicit array index field if
9282 exp is a pascal string type.
9283
9284 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9285
9286 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9287 frame info. Use frame_info's saved_regs instead of matching member
9288 in extra_frame_info throughout.
9289 (v850_frame_init_saved_regs): New function.
9290 (v850_init_extra_frame_info): Move most functionality into
9291 v850_frame_init_saved_regs().
9292 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9293 (v850_frame_find_saved_regs): Remove declaration.
9294 (FRAME_FIND_SAVED_REGS): Remove definition.
9295 (v850_frame_init_saved_regs): Add declaration.
9296 (FRAME_INIT_SAVED_REGS): Add definition.
9297
9298 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9299
9300 * v850-tdep.c: Begin multi-arch'ing v850.
9301 (v850_target_architecture_hook): Remove function.
9302 (v850_gdbarch_init): New function. Add code previously in
9303 v850_target_architecture_hook().
9304 (_initialize_v850_tdep): Don't set target_architecture_hook.
9305 Call register_gdbarch_init() instead.
9306
9307 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9308
9309 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9310 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9311 (fixup_class_method_type): Likewise.
9312
9313 2002-05-15 Jim Blandy <jimb@redhat.com>
9314
9315 Add macro structures to GDB's symbol tables. Nobody puts anything
9316 in them yet.
9317 * symtab.h (struct symtab): New member: `macro_table'.
9318 * buildsym.h (pending_macros): New global variable.
9319 * buildsym.c: #include "macrotab.h".
9320 (buildsym_init): Initialize `pending_macros'.
9321 (end_symtab): If we found macro information while reading a CU's
9322 debugging info, do build a symtab structure for it. Make the
9323 symtab point to the macro information, and clear the
9324 `pending_macros' pointer which held it while we were reading the
9325 debug info.
9326 (really_free_pendings): Free any pending macro table.
9327 * objfiles.h (struct objfile): New member: `macro_cache'.
9328 * objfiles.c (allocate_objfile): Set allocate and free functions
9329 for the macro cache's objstack.
9330 (free_objfile): Empty the macro cache's obstack.
9331 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9332 set new allocate and free functions for it.
9333 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9334 free functions for the macro cache's objstack. (Why is this
9335 function building its own objfile?)
9336 * symmisc.c (print_objfile_statistics): Print statistics on the
9337 macro bcache.
9338 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9339
9340 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9341
9342 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9343 (REGISTER_U_ADDR): Delete definition.
9344 (arm_register_u_addr): Delete declaration.
9345
9346 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9347
9348 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9349 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9350
9351 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9352
9353 * regcache.c (register_valid): Revise comments refering to "Not
9354 available" and "unavailable".
9355 * frame.c (frame_register_read): Ditto.
9356 * findvar.c (value_of_register): Ditto.
9357
9358 2002-05-15 Andrew Cagney <cagney@redhat.com>
9359
9360 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9361 (remote-sim.o): Update dependencies.
9362 (d10v-tdep.o): Specify dependencies.
9363 (sim_d10v_h): Define.
9364
9365 2002-05-14 Jim Blandy <jimb@redhat.com>
9366
9367 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9368 * macrotab.c (macro_lookup_inclusion, find_definition,
9369 new_macro_table): Same.
9370
9371 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9372 not `! strcmp ()'. This is a dubious improvement.
9373 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9374
9375 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9376 although it's not necessary, to avoid a warning.
9377
9378 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9379
9380 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9381 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9382 TYPE_INSTANCE_FLAGS.
9383 (struct main_type): New.
9384 (struct type): Move most members to struct main_type. Change
9385 cv_type and as_type to new type_chain member. Add instance_flags.
9386 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9387 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9388 (finish_cv_type): Remove prototype.
9389 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9390 Set TYPE_CHAIN.
9391 (alloc_type_instance): New function.
9392 (smash_type): New function.
9393 (make_pointer_type, make_reference_type, make_function_type)
9394 (smash_to_member_type, smash_to_method_type): Call smash_type.
9395 (make_qualified_type): New function.
9396 (make_type_with_address_space): Call make_qualified_type.
9397 (make_cv_type): Likewise.
9398 (finish_cv_type): Remove unnecessary function.
9399 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9400 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9401 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9402 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9403 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9404 * hpread.c (hpread_read_struct_type): Likewise.
9405 * stabsread.c (read_struct_type): Likewise.
9406
9407 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9408
9409 * configure.tgt: Add a catch all sh* target, for cases like
9410 sh[2,3,4]-elf and sh-hms.
9411
9412 2002-05-14 Keith Seitz <keiths@redhat.com>
9413
9414 * event-loop.c (create_file_handler): Don't do anything but
9415 update data when we are given a fd which we are already
9416 monitoring.
9417
9418 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9419
9420 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9421 (update_context): Use __func__ in warnings.
9422
9423 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9426 and tcp_close to net_open and net_close.
9427 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9428 using UDP if requested. Don't try to disable Nagle on UDP
9429 sockets.
9430 * remote.c (remote_serial_open): New function. Warn about UDP.
9431 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9432
9433 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9434
9435 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9436
9437 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9438
9439 * configure.tgt: Remove sh-hms target.
9440 * MAINTAINERS: Don't list sh-hms as a separate target.
9441
9442 2002-05-13 Jim Blandy <jimb@redhat.com>
9443
9444 Add first preprocessor macro-expansion files.
9445 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9446 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9447 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9448 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9449 (COMMON_OBS): Add macrotab.o, macroexp.o.
9450 (macroexp.o, macrotab.o): New rules.
9451
9452 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9453
9454 * config/m88k/tm-m88k.h: Update copyright.
9455 (m88k_target_write_pc): Declare
9456 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9457 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9458 (SHIFT_INST_REGS): Update definition.
9459 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9460 using old definition of TARGET_WRITE_PC.
9461 * regcache.c (generic_target_write_pc): Delete code handling
9462 NNPC_REGNUM.
9463 * gdbarch.sh (NNPC_REGNUM): Delete.
9464 * gdbarch.h, gdbarch.c: Regenerate.
9465
9466 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9467
9468 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9469 builtin reg number.
9470
9471 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9472
9473 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9474 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9475 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9476 access macros.
9477 * c-typeprint.c (cp_type_print_method_args): Likewise.
9478 (c_type_print_args): Likewise.
9479 * d10v-tdep.c (d10v_push_arguments): Likewise.
9480 (d10v_extract_return_value): Likewise.
9481 * expprint.c (print_subexp): Likewise.
9482 * gdbtypes.c (lookup_primitive_typename): Likewise.
9483 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9484 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9485 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9486 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9487 (TYPE_VECTOR): Likewise.
9488 * hpread.c (hpread_read_struct_type)
9489 (fix_static_member_physnames, fixup_class_method_type)
9490 (hpread_type_lookup): Likewise.
9491 * mdebugread.c (parse_symbol, parse_type): Likewise.
9492 * p-lang.c (is_pascal_string_type): Likewise.
9493 * valops.c (hand_function_call): Likewise.
9494 * x86-64-tdep.c (classify_argument): Likewise.
9495
9496 * hpread.c (hpread_read_function_type)
9497 (hpread_read_doc_function_type): Call replace_type.
9498 * dstread.c (create_new_type): Delete.
9499 (decode_dst_structure, process_dst_function): Call alloc_type.
9500 Use type access macros.
9501
9502 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9503
9504 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9505 the're not supported by the current architecture.
9506 (i387_fill_fxsave): Likewise.
9507
9508 2002-05-12 Fred Fish <fnf@redhat.com>
9509
9510 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9511 sect_index_xxx members to index the first slot in section_offsets
9512 if all of the section_offsets are zero.
9513
9514 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9515
9516 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9517 checked in with last change.
9518
9519 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9520
9521 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9522 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9523 config.sub.
9524
9525 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9526
9527 * Makefile.in: Update dependencies.
9528
9529 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9530
9531 * language.c (local_hex_string_custom): Simplify. Do not depend
9532 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9533
9534 * memattr.c (mem_info_command): Replace calls to
9535 longest_local_hex_string and longest_local_hex_string_custom.
9536 * buildsym.c (make_blockvector): Ditto.
9537 * solib.c (info_sharedlibrary_command): Ditto.
9538 * tracepoint.c (tracepoints_info): Ditto.
9539 * symtab.c (print_msymbol_info): Ditto.
9540
9541 * language.c (local_hex_string): Delete.
9542 (local_hex_string_custom): Delete.
9543 (longest_local_hex_string): Rename to local_hex_string.
9544 (longest_local_hex_string_custom): Rename to
9545 local_hex_string_custom.
9546 * language.h (local_hex_string): Change parameter type to LONGEST.
9547 (local_hex_string_custom): Ditto.
9548 (longest_local_hex_string): Delete declaration.
9549 (longest_local_hex_string_custom): Ditto.
9550
9551 * solib.c: Update copyright.
9552 * memattr.c: Update copyright.
9553
9554 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9555
9556 * arch-utils.h (legacy_register_to_value): Declare.
9557 (legacy_value_to_register): Declare.
9558 (legacy_convert_register_p): Declare.
9559 * arch-utils.c (legacy_register_to_value): New function.
9560 (legacy_value_to_register): New function.
9561 (legacy_convert_register_p): New function.
9562
9563 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9564 (VALUE_TO_REGISTER): Define.
9565 (CONVERT_REGISTER_P): Define.
9566 * gdbarch.h, gdbarch.c: Regenerate.
9567
9568 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9569 VALUE_TO_REGISTER.
9570 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9571 CONVERT_REGISTER_P.
9572
9573 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9574 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9575
9576 * Makefile.in: Update dependencies for valops.c.
9577 * valops.c: Include "gdb_assert.h".
9578 (typecmp): Skip THIS parameter to methods.
9579 (find_method_list): Remove static_memfuncp argument,
9580 update callers. Check for stub methods.
9581 (find_value_oload_method_list): Don't set *static_memfuncp.
9582 (find_overload_match): Don't check for stub methods. Assert
9583 that methods are not stubbed. Handle static methods.
9584 (value_find_oload_method_list): Remove static_memfuncp argument.
9585 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9586 to the argument list for static stub methods.
9587 * value.h (value_find_oload_method_list): Update prototype.
9588
9589 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9590
9591 * arch-utils.h (generic_register_size): Declare.
9592 (generic_register_raw_size, generic_register_virtual_size): Delete
9593 declarations.
9594 * arch-utils.c (generic_register_raw_size): Delete.
9595 (generic_register_size): New function.
9596 (generic_register_virtual_size): Delete.
9597
9598 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9599 default generic_register_size.
9600 * gdbarch.h, gdbarch.c: Re-generate.
9601
9602 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9603 register_virtual_size.
9604 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9605 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9606
9607 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9608
9609 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9610 * gdbarch.h, gdbarch.c: Regenerate.
9611 * gnu-v3-abi.c: Update copyright.
9612 (vtable_address_point_offset): Update.
9613 (gnuv3_rtti_type): Update.
9614 (gnuv3_baseclass_offset): Update.
9615 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9616 (init_fetch_link_map_offsets): Update.
9617 * remote.c (get_remote_state): Update.
9618
9619 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * TODO: Remove value_headof/value_from_vtable_info comment.
9622 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9623 * values.c (value_headof, value_from_vtable_info): Delete.
9624 * value.h (value_from_vtable_info): Delete prototype.
9625
9626 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9627
9628 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9629 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9630 $(gdb_regex_h).
9631 (gdb_assert_h): Define.
9632 (gdb_wait_h): Define.
9633 (gdb_regex_h): Define.
9634
9635 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9636
9637 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9638 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9639
9640 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9641
9642 * nbsd-tdep.c: Fix comment.
9643
9644 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9645
9646 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9647 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9648 (nbsd-tdep.o): New dependency list.
9649 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9650 nbsd-tdep.h.
9651 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9652 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9653 * nbsd-tdep.c: New file.
9654 * nbsd-tdep.h: New file.
9655 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9656 nbsd-tdep.h.
9657 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9658 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9659 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9660 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9661
9662 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9663
9664 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9665 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9666 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9667 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9668 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9669 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9670
9671 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9672
9673 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9674 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9675 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9676 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9677 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9678 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9679 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9680
9681 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9682
9683 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9684 fetch_elfcore_registers to...
9685 * i386nbsd-tdep.c: ...here.
9686 (i386nbsd_use_struct_convention): Rename to...
9687 (i386nbsd_aout_use_struct_convention): ...this.
9688 (i386nbsd_supply_reg): New function.
9689 (i386nbsd_fill_reg): New function.
9690 (fetch_core_registers): Use i386nbsd_supply_reg.
9691 (fetch_elfcore_registers): Likewise.
9692 (_initialize_i386nbsd_tdep): New function.
9693 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9694 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9695 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9696 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9697 (i386nbsd_aout_use_struct_convention): ...this.
9698
9699 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9700
9701 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9702 (store_inferior_registers): Use shnbsd_fill_reg.
9703 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9704 sh_nbsd_supply_register): Collapse into...
9705 (shnbsd_supply_reg): ...this.
9706 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9707 (shnbsd_fill_reg): ...this.
9708 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9709 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9710 (fetch_core_registers): Use shnbsd_supply_reg.
9711 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9712 (sh_nbsd_core_fns): Rename to...
9713 (shnbsd_core_fns): ...this.
9714 (sh_nbsd_elfcore_fns): Rename to...
9715 (shnbsd_elfcore_fns): ...this.
9716 (sh_nbsd_init_abi): Rename to...
9717 (shnbsd_init_abi): ...this.
9718 (_initialize_sh_nbsd_tdep): Rename to...
9719 (_initialize_shnbsd_tdep): ...this.
9720 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9721 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9722 sh_nbsd_fill_register): Remove prototypes.
9723 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9724
9725 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9726
9727 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9728 (i387-nat.o): Delete dependency list.
9729 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9730 (x86-64-linux-nat.o): Likewise.
9731 * i387-nat.c: Delete file, moving contents to...
9732 * i387-tdep.c: ...here.
9733 * i387-nat.h: Rename...
9734 * i387-tdep.h: ...to this.
9735 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9736 * i386-linux-nat.c: Likewise.
9737 * i386bsd-nat.c: Likewise.
9738 * i386gnu-nat.c: Likewise.
9739 * i386nbsd-nat.c: Likewise.
9740 * i386v4-nat.c: Likewise.
9741 * x86-64-linux-nat.c: Likewise.
9742 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9743 * config/i386/go32.mh (NATDEPFILES): Likewise.
9744 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9745 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9746 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9747 * config/i386/linux.mh (NATDEPFILES): Likewise.
9748 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9749 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9750 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9751 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9752
9753 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9754
9755 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9756 (alphanbsd-nat.o): Remove dependency list.
9757 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9758 * alphanbsd-nat.c: Delete. Contents moved to...
9759 * alphanbsd-tdep.c: ...here.
9760 (_initialize_alphanbsd_tdep): Register core functions.
9761 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9762
9763 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9764
9765 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9766 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9767 (alphanbsd-nat.o): Likewise.
9768 (alphabsd-tdep.o): New dependency list.
9769 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9770 (fill_gregset): Use alphabsd_fill_reg.
9771 (supply_fpregset): Use alphabsd_supply_fpreg.
9772 (fill_fpregset): Use alphabsd_fill_fpreg.
9773 (fetch_inferior_registers): Use struct reg and struct fpreg
9774 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9775 and alphabsd_supply_fpreg.
9776 (store_inferior_registers): Use struct reg and struct fpreg
9777 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9778 and alphabsd_fill_fpreg.
9779 * alphabsd-tdep.c: New file.
9780 * alphabsd-tdep.h: New file.
9781 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9782 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9783 alphabsd_supply_fpreg.
9784 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9785 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9786
9787 2002-05-11 Eric Christopher <echristo@redhat.com>
9788
9789 * mips-tdep.c (mips_double_register_type): Fix thinko.
9790 (mips_single_register_type): Ditto.
9791 * MAINTAINERS: Add self.
9792
9793 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9794
9795 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9796 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9797 right thing on architectures with different endianness and/or
9798 integer sizes.
9799
9800 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9801
9802 From Christian Limpach <chris@Pin.LU>
9803 * configure.in: Change sed expression which comments out
9804 NATDEPFILES to also comment out continuation lines.
9805 * configure: Regenerate.
9806
9807 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9808
9809 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9810 big patch.
9811
9812 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9813
9814 * sh-tdep.c: Include correct file.
9815
9816 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9817
9818 New support for sh64-elf (sh5) target.
9819
9820 * configure.tgt: For sh64-elf target, default to sh-elf.
9821
9822 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9823 (struct gdbarch_tdep): Add new fields for new registers and ABI
9824 info.
9825
9826 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9827 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9828 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9829 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9830 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9831 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9832 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9833 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9834 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9835 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9836 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9837 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9838 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9839 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9840 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9841 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9842 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9843 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9844 sign_extend, sh64_nofp_frame_init_saved_regs,
9845 sh64_init_extra_frame_info, sh64_get_saved_register,
9846 sh64_extract_struct_value_address, sh64_pop_frame,
9847 sh64_push_arguments, sh64_extract_return_value,
9848 sh64_store_return_value, sh64_show_media_regs,
9849 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9850 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9851 sh_sh64_register_virtual_type,
9852 sh_sh64_register_convert_to_virtual,
9853 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9854 sh64_register_read, sh64_pseudo_register_write,
9855 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9856 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9857 sh64_do_pseudo_register, sh_compact_do_registers_info,
9858 sh64_do_registers_info, sh_gdbarch_init): New functions.
9859
9860 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9861
9862 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9863
9864 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9865
9866 * linespec.c (decode_line_1): Check for a double quote after
9867 a filename correctly.
9868
9869 2002-05-10 Jim Blandy <jimb@redhat.com>
9870
9871 Properly track the size of the current objfile's .debug_line section.
9872 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9873 (DWARF_LINE_SIZE): New macro.
9874 (dwarf2_build_psymtabs_hard): Record the line section's size in
9875 the partial symbol table.
9876 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9877 symbol table.
9878
9879 2002-05-10 Petr Sorfa <petrs@caldera.com>
9880
9881 * ia64-tdep.c: Handle breakpoints on L instruction type
9882 in MLX instruction bundle by moving the breakpoint to
9883 the third slot (X instruction type) as L holds only data.
9884
9885 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9886
9887 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9888 (process_one_symbol): Complain about discarding local symbols
9889 due to a misplaced N_LBRAC entry.
9890
9891 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9892
9893 From Daniel Berlin <dan@cgsoftware.com>
9894 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9895 decrease the depth we are at, in the case of templates.
9896
9897 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9898
9899 * mips-tdep.c (mips_float_register_type): New function.
9900 (mips_double_register_type): New function.
9901 (mips_print_register): Use them.
9902 (do_fp_register_row): Likewise.
9903
9904 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9905
9906 * signals/signals.c (signals): Remove conditional compilation around
9907 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9908 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9909
9910 2002-05-09 Michael Snyder <msnyder@redhat.com>
9911
9912 * remote-rdp.c (remote_rdp_can_run): Remove.
9913
9914 2002-05-09 Tom Tromey <tromey@redhat.com>
9915
9916 * jv-valprint.c (java_val_print): Handle `char' as a special case
9917 of TYPE_CODE_INT.
9918
9919 2002-05-09 Michael Snyder <msnyder@redhat.com>
9920
9921 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9922 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9923 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9924 str r(0123),[sp,#nn].
9925 (arm_skip_prologue): Ditto. Also make disassembly
9926 order-independent by placing it in a loop.
9927
9928 2002-05-06 Michael Snyder <msnyder@redhat.com>
9929
9930 * stabsread.c (read_type): Add recognition for new attribute:
9931 "@V;" means that an array type is actually a vector.
9932 This is analogous to the vector flag that's been added to dwarf2.
9933
9934 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9935
9936 * i386-tdep.h (i386_abi): New enum.
9937 (struct gdbarch_tdep): Replace os_ident member with abi.
9938 (i386_gdbarch_register_os_abi): New prototype.
9939 * i386-tdep.c (i386_abi_names): New array.
9940 (process_note_abi_tag_sections): Removed.
9941 (process_note_sections): New function.
9942 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9943 (struct i386_abi_handler): New struct.
9944 (i386_abi_handler_list): New variable.
9945 (i386_gdbarch_register_os_abi): New function.
9946 (i386_gdbarch_init): Adapt for the changes given above.
9947
9948 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9949
9950 * gregset.h: Say "GNU/Linux".
9951
9952 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9953
9954 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9955 (build_gdbtypes): Build builtin_type_v2_float.
9956 (_initialize_gdbtypes): Register new builtin type.
9957
9958 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9959
9960 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9961 (clear_gdbarch_swap): New function.
9962 (initialize_non_multiarch): Call.
9963 (gdbarch_update_p): Before calling init(), swap out and clear the
9964 existing architecture.
9965 * gdbarch.c: Regenerate.
9966
9967 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9968
9969 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9970 alphanbsd-tdep.c.
9971
9972 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9973
9974 * sh-nbsd-nat.c: Rename to...
9975 * shnbsd-nat.c: ...this.
9976 * sh-nbsd-tdep.c: Rename to...
9977 * shnbsd-tdep.c: ...this.
9978 * sh-nbsd-tdep.h: Rename to...
9979 * shnbsd-tdep.h: ...this.
9980 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9981 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9982
9983 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9984
9985 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9986 concatenation for command help messages.
9987
9988 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9989
9990 * NEWS: Note new sh*-*-netbsdelf* configuration.
9991 * configure.host: Set gdb_host_cpu to sh for all sh*.
9992 (sh*-*-netbsdelf*): New host.
9993 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9994 (sh*-*-netbsdelf*): New target.
9995 * sh-nbsd-nat.c: New file.
9996 * sh-nbsd-tdep.c: New file.
9997 * sh-nbsd-tdep.h: New file.
9998 * config/sh/nbsd.mh: New file.
9999 * config/sh/nbsd.mt: New file.
10000 * config/sh/nm-nbsd.h: New file.
10001 * config/sh/tm-nbsd.h: New file.
10002
10003 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10004
10005 * sh-tdep.c (sh_osabi_names): Declare.
10006 (process_note_abi_tag_sections): New function.
10007 (get_elfosabi): Ditto.
10008 (sh_gdbarch_register_os_abi): Ditto.
10009 (sh_dump_tdep): Ditto.
10010 _initialize_sh_tdep): Use gdbarch_register to register
10011 sh_gdbarch_init and sh_dump_tdep.
10012 * config/sh/tm-sh.h (sh_osabi): Declare.
10013 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10014
10015 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10016
10017 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10018 (thumb_scan_prologue): Ditto.
10019 (arm_find_callers_reg): Ditto.
10020 (arm_frame_chain): Ditto.
10021 (arm_init_extra_frame_info): Ditto.
10022 (arm_frame_saved_pc): Ditto.
10023 (arm_pop_frame): Ditto.
10024 (arm_push_return_address): New function.
10025 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10026 call_dummy_location, call_dummy_breakpoint_offset_p,
10027 call_dummy_breakpoint_offset, call_dummy_p,
10028 call_dummy_stack_adjust_p, call_dummy_words,
10029 sizeof_call_dummy_words, call_dummy_start_offset,
10030 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10031 call_dummy_address, push_return_address and push_dummy_frame for
10032 generic dummy frames.
10033
10034 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10035
10036 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10037 size computation for alloca.
10038 (sh_fp_frame_init_saved_regs): Likewise.
10039
10040 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10041
10042 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10043 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10044 * arm-tdep.c (arm_store_return_value): Use them.
10045 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10046 * remote-rdp.c (remote_rdp_fetch_register): Use
10047 ARM_MAX_REGISTER_RAW_SIZE.
10048 (remote_rdp_store_register): Likewise.
10049
10050 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10051
10052 * dwarf2cfi.c: Code cleanup, removed unused variables,
10053 added default labels to switch {} statements.
10054 * x86-64-tdep.c: Ditto.
10055 * x86-64-linux-nat.c: Ditto.
10056
10057 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10058
10059 * solib.h: Protect against multiple inclusion.
10060
10061 2002-05-06 Jim Blandy <jimb@redhat.com>
10062
10063 Add first preprocessor macro-expansion files.
10064 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10065 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10066 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10067 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10068 (COMMON_OBS): Add macrotab.o, macroexp.o.
10069 (macroexp.o, macrotab.o): New rules.
10070
10071 Separate the job of reading the line number info statement program
10072 header (...expialidocious) out into its own function.
10073 * dwarf2read.c (struct line_head, struct filenames, struct
10074 directories): Replace with...
10075 (struct line_header): New structure, containing the full
10076 contents of the statement program header, including the
10077 include directory and file name tables.
10078 (read_file_scope): If we have line number info, instead of just
10079 calling dwarf_decode_lines to do all the work, call
10080 dwarf_decode_line_header first to get a `struct line_header'
10081 containing the data in the statement program header, and then
10082 pass that to dwarf_decode_lines, which will pick up where that
10083 left off. Be sure to clean up the `struct line_header' object.
10084 (dwarf_decode_line_header, free_line_header, add_include_dir,
10085 add_file_name): New functions.
10086 (dwarf_decode_lines): Move all the code to read the statement
10087 program header into dwarf_decode_line_header. Take the line
10088 header it built as the first argument, instead of the offset to
10089 the compilation unit's line number info. Use the new `struct
10090 line_header' type instead of the old structures. No need to do
10091 cleanups here now, since we don't allocate anything.
10092 (dwarf2_statement_list_fits_in_line_number_section,
10093 dwarf2_line_header_too_long): New complaints.
10094
10095 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10096
10097 * gdbtypes.c (init_vector_type): New function.
10098 (build_builtin_type_vec128): Simplify the representation of SIMD
10099 registers.
10100 (build_gdbtypes): Initialize new builtin vector types.
10101 (_initialize_gdbtypes): Register new vector types with gdbarch.
10102 (builtin_type_v4_float, builtin_type_v4_int32,
10103 builtin_type_v8_int16, builtin_type_v16_int8,
10104 builtin_type_v2_int32, builtin_type_v4_int16,
10105 builtin_type_v8_int8): New (renamed) SIMD types.
10106
10107 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10108
10109 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10110 (i387_fill_fxsave): Likewise.
10111
10112 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10113
10114 * alpha-tdep.c (alpha_extract_return_value): Don't use
10115 non-constant array size in prototype.
10116
10117 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10118
10119 From Brian Taylor <briant at model dot com>:
10120 * ui-out.c (ui_out_field_core_addr): Use the function
10121 longest_local_hex_string_custom'to format addresses > 32 bits
10122 wide.
10123
10124 * ui-out.c (ui_out_field_core_addr): Update comment.
10125
10126 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10127
10128 * stack.c (select_and_print_frame): Make static. Delete the
10129 parameter `level'.
10130 (func_command): Update call.
10131 (select_frame_command): Delete code computing the frame level.
10132 * frame.h (select_and_print_frame): Delete declaration.
10133
10134 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10135
10136 * sparc-tdep.c (sparc_get_saved_register): Comment why
10137 get_prev_frame call is safe.
10138
10139 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10140
10141 * frame.h (select_frame): Delete level parameter.
10142 * stack.c (select_frame): Update. Use frame_relative_level to
10143 obtain the frame's level.
10144 (select_and_print_frame): Update call.
10145 (select_frame_command): Ditto.
10146 (up_silently_base): Ditto.
10147 (down_silently_base): Ditto.
10148 * ocd.c (ocd_start_remote): Ditto.
10149 * remote-rdp.c (remote_rdp_open): Ditto.
10150 * remote-mips.c (mips_initialize): Ditto.
10151 (common_open): Ditto.
10152 * remote-e7000.c (e7000_start_remote): Ditto.
10153 * m3-nat.c (select_thread): Ditto.
10154 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10155 (child_get_current_exception_event): Ditto.
10156 * varobj.c (varobj_create): Ditto.
10157 (varobj_update): Ditto.
10158 (c_value_of_root): Ditto.
10159 * tracepoint.c (finish_tfind_command): Ditto.
10160 * corelow.c (core_open): Ditto.
10161 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10162 * thread.c (info_threads_command): Ditto.
10163 (switch_to_thread): Ditto.
10164 * infrun.c (normal_stop): Ditto.
10165 (restore_selected_frame): Ditto.
10166 (restore_inferior_status): Ditto.
10167 * breakpoint.c (insert_breakpoints): Ditto.
10168 (watchpoint_check): Ditto.
10169 (bpstat_stop_status): Ditto.
10170 (do_enable_breakpoint): Ditto.
10171 * blockframe.c (flush_cached_frames): Ditto.
10172 (reinit_frame_cache): Ditto.
10173
10174 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10175
10176 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10177 maintainer.
10178
10179 2002-05-04 Jim Blandy <jimb@redhat.com>
10180
10181 * gdbtypes.c (replace_type): Doc fix.
10182
10183 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10184
10185 * valprint.c (strcat_longest): Delete commented out function.
10186 Update copyright.
10187
10188 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10189
10190 * MAINTAINERS: Mark a29k as deleted.
10191 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10192 Move new configurations to the top.
10193 * configure.tgt: Remove a29k.
10194 * config/a29k/tm-vx29k.h: Delete.
10195 * config/a29k/vx29k.mt: Delete.
10196 * config/a29k/tm-a29k.h: Delete.
10197 * config/a29k/a29k-udi.mt: Delete.
10198 * config/a29k/a29k.mt: Delete.
10199 * a29k-tdep.c: Delete.
10200 * remote-udi.c: Delete.
10201 * remote-mm.c: Delete.
10202 * remote-eb.c: Delete.
10203 * remote-adapt.c: Delete.
10204 * Makefile.in: Remove obsolete code.
10205 * config/s390/s390x.mt: Ditto.
10206 * config/s390/s390.mt: Ditto.
10207 * config/sparc/sparclynx.mh: Ditto.
10208 * config/sparc/linux.mh: Ditto.
10209 * config/pa/hppaosf.mh: Ditto.
10210 * config/pa/hppabsd.mh: Ditto.
10211 * config/ns32k/nbsd.mt: Ditto.
10212 * config/mips/vr5000.mt: Ditto.
10213 * config/m68k/sun3os4.mh: Ditto.
10214 * config/m68k/nbsd.mt: Ditto.
10215 * config/m68k/m68klynx.mh: Ditto.
10216 * config/m32r/m32r.mt: Ditto.
10217 * config/i386/x86-64linux.mt: Ditto.
10218 * config/i386/nbsdelf.mt: Ditto.
10219 * config/i386/nbsd.mt: Ditto.
10220 * config/i386/i386lynx.mh: Ditto.
10221
10222 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10223
10224 * target.c (debug_print_register): New function. Handle oversize
10225 registers.
10226 (debug_to_fetch_registers): Call.
10227 (debug_to_store_registers): Call.
10228
10229 2002-05-03 Jim Blandy <jimb@redhat.com>
10230
10231 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10232 (read_type): Doc fix.
10233 * gdbtypes.c (replace_type): Doc fix.
10234
10235 * stabsread.c (multiply_defined_struct): New complaint.
10236 (read_struct_type): If the type we were passed isn't empty, or
10237 incomplete, don't read the new struct type into it; complain,
10238 and return the original type unchanged. Take a new `type_code'
10239 argument, which is the type code for the new type.
10240 (read_type): Rather than storing the type's type code here, pass
10241 it as an argument to read_struct_type, and let that take care of
10242 storing it. That way, we don't overwrite the original type code,
10243 so read_struct_type can use it to decide whether we're overwriting
10244 something we shouldn't.
10245 (complain_about_struct_wipeout): New function.
10246
10247 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10248
10249 * gdbarch.sh: Assert that gdbarch is non-NULL.
10250 * gdbarch.c: Regenerate.
10251
10252 2002-05-03 Jason Merrill <jason@redhat.com>
10253
10254 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10255 and return NULL.
10256
10257 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10258
10259 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10260 (x86_64_dwarf2gdb_regno_map_length),
10261 (x86_64_dwarf2_reg_to_regnum): Added.
10262 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10263 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10264 (_initialize_x86_64_tdep): Synced with the change above.
10265 (x86_64_skip_prologue): Reformulated message.
10266
10267 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10268
10269 * f-exp.y: Also use new prev_lexptr variable
10270 to improve error reporting. Based on Michael Snyder
10271 2002-04-24 dated patch to c-exp.y.
10272 * jv-exp.y: Likewise.
10273 * m2-exp.y: Likewise.
10274
10275 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10276
10277 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10278 we are dealing with vectors.
10279
10280 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10281
10282 * config/m68k/tm-nbsd.h: Obvious fix,
10283 correct machine name.
10284
10285 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10286
10287 * p-typeprint.c (pascal_type_print_base): Add support
10288 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10289
10290 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10291
10292 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10293 for fondamental pascal 'char' type.
10294
10295 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10296
10297 * p-lang.h (is_pascal_string_type): Declaration changed,
10298 new sixth argument of type char ** added.
10299 * p-lang.c (is_pascal_string_type): Implementation
10300 changed. Args length_pos, length_size, string_pos, char_size
10301 can now be NULL. New argument arrayname set to the field
10302 name of the char array. Return value set to char array
10303 field index plus one.
10304 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10305 is_pascal_string_type function.
10306
10307 2002-05-02 Andrew Cagney <cagney@redhat.com>
10308
10309 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10310 <cagney@redhat.com> change.
10311 * gdbarch.c: Regenerate.
10312
10313 2002-05-02 Andrew Cagney <cagney@redhat.com>
10314
10315 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10316 before probing for a new one. Detect errorenous gdbarch_init
10317 functions.
10318 * gdbarch.c: Regenerate.
10319
10320 2002-05-01 Andrew Cagney <cagney@redhat.com>
10321
10322 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10323 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10324 * config/v850/tm-v850.h: Ditto. Update copyright.
10325
10326 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10327
10328 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10329 current_gdbarch.
10330
10331 2002-04-30 Michael Snyder <msnyder@redhat.com>
10332
10333 * arm-tdep.c: Whitespace clean-ups.
10334 (arm_skip_prologue): Fix thinko; two lines
10335 should have been removed as part of 4/24 change.
10336
10337 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10338
10339 * rs6000-tdep.c: Added comment describing how fpscr register
10340 numbers were chosen.
10341
10342 2002-04-30 Michael Snyder <msnyder@redhat.com>
10343
10344 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10345
10346 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10347
10348 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10349 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10350 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10351
10352 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10353
10354 From Louis Hamilton <hamilton@redhat.com>:
10355 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10356 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10357 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10358 not bfd-private xcoff data, to determine wordsize.
10359 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10360
10361 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10362
10363 GDB 5.2 released from 5.2 branch.
10364
10365 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10366
10367 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10368 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10369 (x86_64_register_info_table): Added comments with register numbers.
10370
10371 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10372
10373 * rs6000-tdep.c (rs6000_extract_return_value,
10374 rs6000_store_return_value): Handle returning vectors.
10375 (rs6000_gdbarch_init): Use
10376 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10377 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10378 New function.
10379 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10380 vectors.
10381 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10382 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10383
10384 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10385
10386 * hpread.c (hpread_psymtab_to_symtab_1,
10387 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10388 with fprintf_unfiltered (gdb_stderr,...).
10389
10390 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10391
10392 * remote-array.c (printf_monitor, write_monitor,
10393 array_insert_breakpoint, array_remove_breakpoint ):
10394 Replace fprintf (stderr,...
10395 with fprintf_unfiltered (gdb_stderr,....
10396 * remote-es.c: Likewise.
10397 * remote-os9k.c: Likewise.
10398 * remote-st.c: Likewise.
10399
10400 2002-04-28 Andreas Schwab <schwab@suse.de>
10401
10402 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10403 linux-proc.o and gcore.o.
10404
10405 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10406
10407 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10408 code without frame pointers.
10409
10410 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10411
10412 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10413 ON_STACK is needed.
10414
10415 2002-04-26 Ben Elliston <bje@redhat.com>
10416
10417 * target.c (do_xfer_memory): Correct reference to the new option
10418 "trust-readonly-sections".
10419
10420 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10421
10422 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10423 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10424 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10425 vectors.
10426 (read_array_type): Record the fact that this array type is really a
10427 vector (i.e. are passed in by value).
10428
10429 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10430
10431 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10432 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10433 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10434 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10435 * alpha-linux-tdep.c: Include frame.h.
10436 (alpha_linux_sigcontext_addr): New function.
10437 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10438 alpha_linux_sigcontext_addr.
10439 * alpha-osf1-tdep.c: Include gdbcore.h.
10440 (alpha_osf1_sigcontext_addr): New function.
10441 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10442 alpha_osf1_sigcontext_addr.
10443 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10444 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10445
10446 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10447
10448 * stack.c (selected_frame_level):
10449 (select_frame): Do not set selected_frame_level.
10450 * frame.h (selected_frame_level): Delete declaration.
10451
10452 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10453
10454 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10455 convert_from_func_ptr-addr when AIX / PowerOpen.
10456
10457 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10458
10459 * valops.c (hand_function_call): Call
10460 generic_save_call_dummy_addr.
10461 * frame.h (generic_save_call_dummy_addr): Declare.
10462 * blockframe.c (struct dummy_frame): Add fields call_lo and
10463 call_hi.
10464 (generic_find_dummy_frame): Check for PC in range call_lo to
10465 call_hi instead of entry_point_address.
10466 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10467 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10468 (generic_save_call_dummy_addr): New function.
10469
10470 2002-04-24 David S. Miller <davem@redhat.com>
10471
10472 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10473 sparc_skip_prologue.
10474 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10475 information to find prologue when possible.
10476 (sparc_prologue_frameless_p): Call examine_prologue directly.
10477 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10478 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10479 second argument.
10480 (SKIP_PROLOGUE): Likewise.
10481
10482 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10483
10484 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10485 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10486 indicate that the condition it was testing is always true.
10487 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10488 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10489 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10490
10491 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10492
10493 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10494 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10495 tdep->jb_pc and tdep->jb_elt_size.
10496 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10497 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10498 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10499 * alpha-nat.c (get_longjmp_target): Remove.
10500 (JB_ELEMENT_SIZE): Ditto.
10501 (JB_PC): Ditto.
10502 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10503 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10504 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10505 to alpha_get_longjmp_target.
10506 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10507 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10508 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10509
10510 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10511
10512 * README: Update to GDB 5.2.
10513
10514 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10515
10516 * gdbarch.sh (LC_ALL): Set to `c'.
10517
10518 2002-04-25 Theodore A. Roth <troth@verinet.com>
10519
10520 * avr-tdep.c: Ran through gdb_indent.sh.
10521
10522 2002-04-25 Theodore A. Roth <troth@verinet.com>
10523
10524 * MAINTAINERS: Add myself as AVR maintainer.
10525 * NEWS: Note new target avr.
10526
10527 2002-04-25 Theodore A. Roth <troth@verinet.com>
10528
10529 * Makefile.in: Add support for AVR target.
10530 * configure.tgt: Add support for AVR target.
10531 * avr-tdep.c: New file
10532 * config/avr/avr.mt: New file.
10533
10534 2002-04-25 Theodore A. Roth <troth@verinet.com>
10535
10536 * MAINTAINERS: Add myself to write-after-approval.
10537
10538 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10539
10540 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10541 with fprintf_unfiltered (gdb_stderr,....
10542
10543 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10544
10545 Fix PR gdb/508.
10546 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10547
10548 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10549
10550 * p-exp.y: Also use new prev_lexptr variable
10551 to improve error reporting. Based on Michael Snyder
10552 2002-04-24 dated patch to c-exp.y.
10553
10554 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10555
10556 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10557 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10558 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10559 to 0.
10560 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10561 and struct value.
10562 (FUNCTION_START_OFFSET): Remove.
10563 (BREAKPOINT): Ditto.
10564
10565 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10566
10567 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10568 * NEWS: Ditto.
10569
10570 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10571
10572 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10573 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10574 alpha_linux_pc_in_sigtramp.
10575 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10576 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10577 alpha_osf1_pc_in_sigtramp.
10578 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10579 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10580 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10581 alphafbsd_pc_in_sigtramp.
10582 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10583 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10584 alphanbsd_pc_in_sigtramp.
10585 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10586 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10587
10588 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10589
10590 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10591
10592 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10593
10594 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10595 alphanbsd-tdep.c.
10596 (alphanbsd-nat.o): New dependency list.
10597 (alphanbsd-tdep.o): Ditto.
10598 * NEWS: Note new native NetBSD/alpha configuration.
10599 * alphanbsd-nat.c: New file.
10600 * alphanbsd-tdep.c: Ditto.
10601 * configure.host (alpha*-*-netbsd*): New host.
10602 * configure.tgt (alpha*-*-netbsd*): New target.
10603 * config/alpha/nbsd.mh: New file.
10604 * config/alpha/nbsd.mt: Ditto.
10605 * config/alpha/nm-nbsd.h: Ditto.
10606 * config/alpha/tm-nbsd.h: Ditto.
10607
10608 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10609
10610 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10611 (alpha-osf1-tdep.o): New dependency list.
10612 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10613 and skip_sigtramp_frame members.
10614 * alpha-linux-tdep.c: Include gdbcore.h.
10615 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10616 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10617 * alpha-osf1-tdep.c: New file.
10618 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10619 alpha-osf1-dep.c.
10620 (alpha_frame_past_sigtramp_frame): New function.
10621 (alpha_dynamic_sigtramp_offset): Ditto.
10622 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10623 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10624 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10625 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10626 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10627 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10628 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10629 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10630 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10631 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10632 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10633 to find_solib_trampoline_target.
10634 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10635 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10636 (SKIP_TRAMPOLINE_CODE): Remove.
10637 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10638 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10639 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10640 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10641 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10642 (PROC_SIGTRAMP_MAGIC): Ditto.
10643 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10644 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10645 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10646 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10647 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10648
10649 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10650
10651 * NEWS: Note that Alpha targets are now multi-arch.
10652
10653 2002-04-24 Michael Snyder <msnyder@redhat.com>
10654
10655 * parser-defs.h (prev_lexptr): New external variable.
10656 * parse.c (parse_exp_1): Set prev_lexptr to null before
10657 calling the language-specific parser.
10658 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10659 (yyerror): Use prev_lexptr in error reporting.
10660
10661 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10662
10663 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10664 * gregset.h: If FILL_FPXREGSET is defined, provide
10665 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10666 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10667 is defined, call fill_fpxregset.
10668
10669 2002-04-24 Roland McGrath <roland@frob.com>
10670
10671 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10672 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10673 (supply_gregset, supply_fpregset): New functions.
10674
10675 * gnu-nat.c (gnu_find_memory_regions): New function.
10676 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10677 (gnu_xfer_memory): Add a cast.
10678
10679 2002-04-24 Michael Snyder <msnyder@redhat.com>
10680
10681 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10682 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10683 of argument regs ("str r(0123), [r11, #-nn"]).
10684 (arm_skip_prologue): Better handling for frameless functions.
10685 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10686 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10687
10688 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10689
10690 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10691 NUM_PSEUDO_REGS can be used.
10692
10693 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10694
10695 * arch-utils.h: Update copyright.
10696
10697 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10698 * gdbarch.h, gdbarch.c: Re-generate.
10699
10700 * inferior.h (IN_SIGTRAMP): Delete definition.
10701 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10702 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10703
10704 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10705 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10706 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10707 (find_proc_framesize): Ditto.
10708 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10709 (alpha_init_extra_frame_info): Ditto.
10710 * infrun.c (handle_inferior_event): Ditto.
10711 (handle_inferior_event): Ditto.
10712 (check_sigtramp2): Ditto.
10713 * blockframe.c (create_new_frame): Ditto.
10714 (get_prev_frame): Ditto.
10715 * ppc-linux-tdep.c: Update comments.
10716 * i386-linux-tdep.c: Update comments.
10717 * breakpoint.c (bpstat_what): Update comment.
10718
10719 2002-04-24 David S. Miller <davem@redhat.com>
10720
10721 * i960-tdep.c (register_in_window_p): New function.
10722 (i960_find_saved_register): Use it instead of
10723 REGISTER_IN_WINDOW_P.
10724 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10725
10726 * symtab.h (find_stab_function_addr): Kill extern.
10727 * minsyms.c (find_stab_function_addr): Remove from here...
10728 * dbxread.c: ... to here, and mark it static.
10729
10730 2002-04-20 David S. Miller <davem@redhat.com>
10731
10732 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10733 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10734
10735 2002-04-21 David S. Miller <davem@redhat.com>
10736
10737 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10738 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10739 (vx_write_register): Likewise.
10740
10741 2002-04-23 J. Brobecker <brobecker@gnat.com>
10742
10743 * source.c (is_regular_file): New function.
10744 (openp): Check wether file to open is a regular file
10745 to avoid opening directories.
10746
10747 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10748
10749 * findvar.c (extract_signed_integer): Cast printf argument
10750 to suppress format warning.
10751 (extract_unsigned_integer): Likewise.
10752 * infcmd.c (registers_info): Likewise.
10753 * top.c (get_prompt_1): Likewise.
10754 * valops.c (value_assign): Likewise.
10755 * valprint.c (print_decimal): Likewise.
10756
10757 2002-04-22 H.J. Lu (hjl@gnu.org)
10758
10759 * c-exp.y (typebase): Support
10760
10761 [long|long long|short] [signed|unsigned] [int|]
10762
10763 and
10764
10765 signed [long|long long|short] int
10766
10767 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10768
10769 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10770 and vax-tdep.h.
10771 * vax-tdep.h: New file.
10772 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10773 Make several routines static.
10774 (vax_get_saved_register): New function.
10775 (vax_gdbarch_init): New function.
10776 (_initialize_vax_tdep): Register vax_gdbarch_init.
10777 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10778 Remove macros now under the control of gdbarch.
10779
10780 2002-04-22 Michael Snyder <msnyder@redhat.com>
10781
10782 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10783 Some whitespace and coding standards tweaks.
10784
10785 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10786
10787 * vax-tdep.c: Include regcache.h.
10788 (vax_call_dummy_words): New.
10789 (sizeof_vax_call_dummy_words): New.
10790 (vax_fix_call_dummy): New function.
10791 (vax_saved_pc_after_call): Ditto.
10792 * config/vax/tm-vax.h: Don't include regcache.h.
10793 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10794 (CALL_DUMMY): Remove.
10795 (CALL_DUMMY_WORDS): Define.
10796 (SIZEOF_CALL_DUMMY_WORDS): Define.
10797 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10798
10799 2002-04-18 Michael Snyder <msnyder@redhat.com>
10800
10801 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10802
10803 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10804
10805 * vax-tdep.c (vax_frame_chain): New function.
10806 (vax_push_dummy_frame): Ditto.
10807 (vax_pop_frame): Ditto.
10808 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10809 (FRAMELESS_FUNCTION_INVOCATION): Use
10810 generic_frameless_function_invocation_not.
10811 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10812 (POP_FRAME): Use vax_pop_frame.
10813
10814 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10815
10816 * vax-tdep.c (vax_store_struct_return): New function.
10817 (vax_extract_return_value): Ditto.
10818 (vax_store_return_value): Ditto.
10819 (vax_extract_struct_value_address): Ditto.
10820 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10821 vax_store_struct_return.
10822 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10823 (STORE_RETURN_VALUE): Use vax_store_return_value.
10824 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10825
10826 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10827
10828 * vax-tdep.c (vax_frame_saved_pc): New function.
10829 (vax_frame_args_address_correct): Ditto.
10830 (vax_frame_args_address): Ditto.
10831 (vax_frame_locals_address): Ditto.
10832 (vax_frame_num_args): Move code to be in proximity to
10833 other frame-related functions.
10834 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10835 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10836 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10837 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10838 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10839
10840 2002-04-22 H.J. Lu (hjl@gnu.org)
10841
10842 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10843 includedir.
10844
10845 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10846
10847 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10848 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10849 (FRAME_INIT_SAVED_REGS): New macro.
10850
10851 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10852
10853 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10854
10855 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10856
10857 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10858 where needed.
10859 (fetch_osf_core_registers): Likewise.
10860 (supply_gregset): Likewise.
10861
10862 2002-04-22 J. Brobecker <brobecker@gnat.com>
10863
10864 * symfile.h (get_section_index): Define.
10865 * symfile.c (get_section_index): New function.
10866 * mdebugread.c (SC_IS_SBSS): New macro.
10867 (SC_IS_BSS): Return true for the scBss storage class only, as
10868 the scSBss storage class refers to the .sbss section.
10869 (parse_partial_symbols): Discard the symbols which associated
10870 section does not exist.
10871 Make sure to use the .sbss section index for symbols which
10872 storage class is scBss, rather than using the .bss section index.
10873
10874 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10875
10876 * vax-tdep.c: Update copyright years.
10877 (vax_register_name): New function.
10878 (vax_register_byte): Ditto.
10879 (vax_register_raw_size): Ditto.
10880 (vax_register_virtual_size): Ditto.
10881 (vax_register_virtual_type): Ditto.
10882 * config/vax/tm-vax.h: Update copyright years.
10883 (REGISTER_NAMES): Remove.
10884 (REGISTER_NAME): Define.
10885 (REGISTER_BYTE): Use vax_register_byte.
10886 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10887 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10888 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10889
10890 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10891
10892 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10893 declaration
10894 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10895
10896 2002-04-21 David S. Miller <davem@redhat.com>
10897
10898 * arch-utils.c (generic_prologue_frameless_p): Kill
10899 SKIP_PROLOGUE_FRAMELESS_P code.
10900 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10901 references.
10902 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10903 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10904 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10905 references.
10906 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10907 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10908 (sparc_gdbarch_init): Pass it to
10909 set_gdbarch_prologue_frameless_p.
10910
10911 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10912
10913 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10914 (alphabsd-nat.o): New dependency list.
10915
10916 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10917
10918 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10919 alphafbsd-tdep.c.
10920 (alpha-linux-tdep.o): New dependency list.
10921 (alphafbsd-tdep.o): Likewise.
10922
10923 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10924
10925 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10926 to here...
10927 * alpha-tdep.c: ...from here.
10928 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10929
10930 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10931
10932 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10933 prototype from here...
10934 * alpha-tdep.h: ...to here.
10935
10936 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10937
10938 * frame.h (selected_frame_level): Document as deprecated.
10939 (frame_relative_level): Declare.
10940 * stack.c (frame_relative_level): New function.
10941 (selected_frame_level): Document as deprecated.
10942 (select_frame): Do not set the selected_frame_level.
10943
10944 * stack.c (frame_info, record_selected_frame): Update.
10945 (frame_command, current_frame_command): Update.
10946 (up_silently_base, up_command, down_silently_base): Update.
10947 (down_command): Update.
10948 * inflow.c (kill_command): Update.
10949 * tracepoint.c (finish_tfind_command): Update.
10950 * corelow.c (core_open): Update.
10951 * thread.c (info_threads_command): Update.
10952 (do_captured_thread_select): Update.
10953 * infcmd.c (finish_command): Update.
10954 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10955
10956 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10957
10958 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10959
10960 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10961
10962 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10963 type const.
10964
10965 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10966
10967 * alphafbsd-tdep.c: Update copyright years. Include
10968 alpha-tdep.h.
10969 (alphafbsd_use_struct_convention): Make static.
10970 (alphafbsd_init_abi): New function.
10971 (_initialize_alphafbsd_tdep): New function.
10972 * config/alpha/tm-fbsd.h: Update copyright years.
10973 (USE_STRUCT_CONVENTION): Remove.
10974
10975 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10976
10977 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10978 an Alpha ABI variant.
10979 (alpha_abi_handler_list): Declare.
10980 (alpha_gdbarch_register_os_abi): New function.
10981 (alpha_gdbarch_init): Give registered ABI variant handlers a
10982 chance to tweak the gdbarch once we have set up defaults.
10983 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10984
10985 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10986
10987 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10988 to standard_coerce_float_to_double.
10989 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10990
10991 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10992
10993 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10994 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10995 from gdbarch_tdep rather than a constant.
10996 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10997 the default text address for all Alpha Unix ABIs.
10998 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10999 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11000
11001 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11002
11003 * alpha-tdep.h: New file. Includes several Alpha target constants
11004 taken from...
11005 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11006 let gdbarch deal with.
11007 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11008 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11009 to dependency list.
11010 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11011 Alpha target register names.
11012 * alphabsd-nat.c: Likewise.
11013 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11014 Alpha target register names. Make serveral routines static.
11015 (alpha_get_saved_register): New function.
11016 (alpha_abi_names): New.
11017 (process_note_abi_tag_sections): New function.
11018 (get_elfosabi): New function.
11019 (alpha_gdbarch_init): New function.
11020 (alpha_dump_tdep): New function.
11021 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11022
11023 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11024
11025 * frame.c (find_saved_register): Delete #ifdef
11026 HAVE_REGISTER_WINDOWS code.
11027 * config/sparc/tm-sparc.h: Update comments.
11028 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11029
11030 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11031
11032 * i960-tdep.c (i960_find_saved_register): New function.
11033 (i960_get_saved_register): New function.
11034 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11035 (i960_get_saved_register): Declare.
11036 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11037
11038 2002-04-20 David S. Miller <davem@redhat.com>
11039
11040 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11041
11042 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11043
11044 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11045 instead of NUM_PSEUDO_REGS.
11046
11047 2002-04-20 David S. Miller <davem@redhat.com>
11048
11049 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11050 GDB_MULTI_ARCH_PARTIAL
11051 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11052 define, let tm-sp64.h do it.
11053
11054 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11055
11056 * frame.c (find_saved_register): Avoid a NULL pointer
11057 dereference and actually walk the frame list.
11058
11059 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11060
11061 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11062 sorted in most most-recent-used order. Document.
11063 * gdbarch.h, gdbarch.c: Regenerate.
11064
11065 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11066
11067 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11068 instead of ->prev.
11069 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11070 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11071 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11072 instead of ->prev.
11073
11074 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11075
11076 Fix PR gdb/471.
11077 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11078 (build_builtin_type_vec128): Ditto.
11079 (append_composite_type_field): Fix calculation of type length in
11080 union case.
11081
11082 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11083
11084 * config/djgpp/README: Update.
11085
11086 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11087 compiler warnings.
11088
11089 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11090
11091 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11092 (alpha_setup_arbitrary_frame): ...to this.
11093 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11094 for alpha_setup_arbitrary_frame.
11095
11096 2002-04-18 Andrew Cagney <cagney@redhat.com>
11097
11098 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11099 * gdbarch.h, gdbarch.c: Regenerate.
11100
11101 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11102 * target.h (memory_breakpoint_from_pc): Update declaration.
11103 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11104
11105 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11106 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11107 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11108 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11109 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11110 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11111 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11112 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11113 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11114 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11115 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11116 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11117
11118 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11119 const pointer.
11120 * monitor.c (monitor_insert_breakpoint): Ditto.
11121 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11122
11123 * config/mcore/tm-mcore.h: Update copyright.
11124 * mem-break.c: Ditto.
11125 * xstormy16-tdep.c: Ditto.
11126
11127 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11128
11129 * p-exp.y: Add precedence rule for '^' token.
11130 This removes the shift/reduce conflicts.
11131 Remove the comment concerning these shift/reduce conflicts.
11132
11133 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11134
11135 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11136 (registers_powerpc_nofp): New register set for processors
11137 without floating point unit.
11138
11139 2002-04-18 David S. Miller <davem@redhat.com>
11140
11141 * MAINTAINERS: Add myself to write-after-approval.
11142
11143 2002-04-17 Michael Snyder <msnyder@redhat.com>
11144
11145 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11146
11147 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11148
11149 * rs6000-tdep.c (frame_initial_stack_address): Use
11150 frame_register_read to read the alloca_reg.
11151
11152 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11153
11154 * frame.c (find_saved_register): Find saved registers in the next
11155 not prev frame.
11156 Fix PR gdb/365.
11157
11158 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11159
11160 * gdbarch.sh (LANG): Set to ``c''.
11161
11162 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11163
11164 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11165
11166 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11167
11168 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11169 Update copyright.
11170
11171 * hpread.c (hpread_get_lntt): Add declaration.
11172 Also fix PR gdb/391.
11173
11174 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11175
11176 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11177 * aclocal.m4, configure: Re-generate.
11178 Fix PR gdb/391.
11179
11180 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11181
11182 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11183 instead of tm_print_insn.
11184
11185 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11186
11187 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11188
11189 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11190
11191 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11192 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11193 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11194
11195 2002-04-12 Don Howard <dhoward@redhat.com>
11196
11197 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11198 max_user_call_depth.
11199 (init_cmd_lists): Initialize the new value;
11200 * cli/cli-script.c (execute_user_command): Limit the call depth of
11201 user defined commands. This avoids a core-dump when user commands
11202 are infinitly recursive.
11203
11204 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11205
11206 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11207 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11208 from tdep struct instead of DEFAULT_LR_SAVE.
11209 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11210 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11211 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11212
11213 2002-04-12 Michael Snyder <msnyder@redhat.com>
11214
11215 * Remote.c: Spelling fix.
11216 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11217 If no symbol found for "sbrk", try "_sbrk".
11218 (make_output_phdrs): Use bfd_section_name.
11219 (gcore_copy_callback): Use bfd_section_name.
11220 * eval.c: Indentation fix-ups.
11221 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11222 in case it gets applied to an address that is already
11223 in the instruction space.
11224 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11225 * symfile.c: Fix indentation, long lines.
11226 * source.c: White space fix-up.
11227
11228 2002-04-12 Andrew Cagney <cagney@redhat.com>
11229
11230 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11231 * frame.c (frame_register_read): New function. Return non-zero on
11232 success.
11233 (read_relative_register_raw_bytes_for_frame): Delete.
11234 (read_relative_register_raw_bytes): Delete.
11235 * frame.h (frame_register_read): Declare.
11236 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11237 * sh-tdep.c: Ditto.
11238 * infcmd.c (do_registers_info): Ditto.
11239 * hppa-tdep.c: Ditto.
11240 * rs6000-tdep.c: Ditto.
11241 * h8500-tdep.c: Ditto.
11242 * mips-tdep.c: Ditto.
11243 * h8300-tdep.c: Ditto.
11244 * z8k-tdep.c: Ditto.
11245
11246 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11247
11248 From Jimi X <jimix@watson.ibm.com>:
11249 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11250 64-bit SysV ABI.
11251
11252 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11253
11254 From Jimi X <jimix@watson.ibm.com>:
11255 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11256 bfd info.
11257
11258 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11259
11260 From Jimi X <jimix@watson.ibm.com>:
11261 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11262 register sets for these processor variants.
11263
11264 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11265
11266 * regformats/reg-ppc.dat: Support FPSCR.
11267
11268 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11269
11270 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11271 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11272 Add fpscr as an invalid/unfetchable register.
11273 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11274 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11275 (fill_fpregset): Add support for register fpscr.
11276 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11277 (fill_gregset): Account for the fact that register ``mq'' might
11278 not exist.
11279 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11280 (registers_power): Add fpscr to register set at slot 71.
11281 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11282 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11283
11284 2002-04-11 Michael Snyder <msnyder@redhat.com>
11285
11286 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11287 * configure: Regenerate.
11288 * config.in: Regenerate.
11289 * acconfig.h: Add define for _SYSCALL32.
11290 * core-sol2.c: Remove #define _SYSCALL32.
11291 * solib-legacy.c: Remove #define _SYSCALL32.
11292
11293 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11294
11295 * stack.c (select_frame): Cleanup internal error message, do not
11296 use %p.
11297
11298 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11299
11300 * stack.c (select_frame): Check that selected_frame and the
11301 specified level are as expected.
11302 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11303 Update copyright.
11304 * frame.h (struct frame_info): Add field `level'. Update
11305 copyright.
11306 Work-in-progress PR gdb/464.
11307
11308 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11309
11310 * maint.c (maint_print_section_info): Rename print_section_info.
11311 (print_bfd_section_info, print_objfile_section_info): Update.
11312 * inferior.h (struct gdbarch): Add opaque declaration.
11313 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11314 * gdbarch.h: Regenerate.
11315
11316 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11317
11318 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11319 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11320 (kernel_u_size): Added.
11321 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11322 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11323
11324 2002-04-04 Jim Ingham <jingham@apple.com>
11325
11326 * valarith.c (find_size_for_pointer_math): New function, either returns
11327 the size for a pointer's target, returns 1 for void *, or errors for
11328 incomplete types.
11329 (value_add, value_sub): use find_size_for_pointer_math.
11330
11331 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11332
11333 * linux-low.c (linux_look_up_symbols): New hook.
11334 (linux_target_ops): Add linux_look_up_symbols.
11335 * remote-utils.c (decode_address): New function.
11336 (look_up_one_symbol): New function.
11337 * server.c (handle_query): Call target look_up_symbols hook.
11338 * server.h (look_up_one_symbol): Add prototype.
11339 * target.h (struct target_ops): Add look_up_symbols hook.
11340
11341 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11342
11343 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11344 override FP_REGNUM with frame->fp. Update copyright.
11345 * parse.c (num_std_regs, std_regs): Delete.
11346 (target_map_name_to_register): Do not search std_regs. Update
11347 function description.
11348 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11349 declarations. Update copyright.
11350 Fix PR gdb/251.
11351
11352 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11353
11354 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11355 after the last symbol in a block.
11356
11357 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11358
11359 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11360 is non zero as a found symbol.
11361
11362 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11363
11364 * findvar.c: Include "builtin-regs.h".
11365 (value_of_register): Call value_of_builtin_reg when applicable.
11366 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11367 (target_map_name_to_register): Call
11368 builtin_reg_map_name_to_regnum.
11369 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11370 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11371 (builtin_regs_h): Define.
11372 (builtin-regs.o): New target.
11373 (findvar.o): Add $(builtin_regs_h).
11374 * builtin-regs.c, builtin-regs.h: New files.
11375 * std-regs.c: New file.
11376 Partial fix for PR gdb/251.
11377
11378 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11379
11380 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11381 it's no longer required.
11382
11383 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11384
11385 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11386
11387 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11388
11389 From Jimi X <jimix@watson.ibm.com>:
11390 * rs6000-tdep.c (rs6000_software_single_step): Use
11391 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11392 and size. Use target_insert_breakpoint() and
11393 target_remove_breakpoint() to insert and remove breakpoints
11394 instead of explicit memory reads and writes.
11395
11396 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11397
11398 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11399 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11400 ELF_OBJECT_FORMAT ifdef.
11401
11402 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11403
11404 From Jimi X <jimix@watson.ibm.com>:
11405 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11406
11407 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11408
11409 From Jimi X <jimix@watson.ibm.com>:
11410 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11411 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11412
11413 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11414
11415 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11416 s/asprintf/xasprintf/.
11417 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11418
11419 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11420
11421 I believe Jeff Law denies responsability for this one:
11422 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11423 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11424 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11425 Work-around for PR gdb/366.
11426
11427 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11428
11429 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11430 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11431 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11432
11433 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11434
11435 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11436 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11437 information.
11438
11439 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11440
11441 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11442 maintainer.
11443
11444 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11445
11446 * README (Reporting Bugs in GDB): Document the bug web page as the
11447 prefered way of submitting bugs.
11448 Fix PR gdb/402.
11449
11450 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11451
11452 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11453 -1. Update comment.
11454 * gdbarch.h, gdbarch.c: Re-generate.
11455
11456 2002-04-07 Andreas Schwab <schwab@suse.de>
11457
11458 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11459 buffer to regcache_collect.
11460
11461 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11462
11463 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11464 * gdbarch.c, gdbarch.h: Re-generate.
11465
11466 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11467
11468 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11469 declaration. Fix -Werror.
11470
11471 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11472
11473 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11474 * gdbarch.c: Regenerate.
11475
11476 2002-04-05 Michael Snyder <msnyder@redhat.com>
11477
11478 * breakpoint.c (clear_command): Rewrite middle section to
11479 combine two loops with identical control conditions.
11480 Add a cleanup to eliminate a memory leak.
11481 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11482
11483 2002-04-05 H.J. Lu (hjl@gnu.org)
11484
11485 * solib-svr4.c (bkpt_names): Add "__start".
11486
11487 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11488
11489 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11490 as test for 64 bit target.
11491
11492 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11493
11494 * h8500-tdep.c (h8500_write_fp): Delete function.
11495 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11496 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11497 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11499 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11500 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11501 (s390_write_fp):
11502 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11503 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11504 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11505 (d10v_write_fp): Delete function.
11506 * inferior.h (write_fp, generic_target_write_fp): Delete
11507 declarations.
11508 * regcache.c (generic_target_write_fp): Delete function.
11509 (write_fp): Delete function.
11510 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11511 * gdbarch.h, gdbarch.c: Regenerate.
11512 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11513 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11514 (sparc64_write_fp): Delete declaration.
11515 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11516 (h8500_write_fp): Delete declaration.
11517
11518 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11519
11520 * sparc-tdep.c (sparc64_write_fp): Delete.
11521 (sparc_push_dummy_frame): Replace write_fp call with code to store
11522 the FP directly.
11523 (sparc_gdbarch_init): Do not initialize write_fp.
11524
11525 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11526
11527 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11528 clause.
11529
11530 2002-03-29 Jim Blandy <jimb@redhat.com>
11531
11532 * stack.c (get_selected_block): Add new argument `addr_in_block',
11533 used to return the exact code address we used to select the block,
11534 not just the block.
11535 * blockframe.c (get_frame_block, get_current_block): Same.
11536 * frame.h (get_frame_block, get_current_block,
11537 get_selected_block): Update declarations.
11538 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11539 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11540
11541 2002-04-05 Michael Snyder <msnyder@redhat.com>
11542
11543 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11544 warning message.
11545
11546 2002-04-05 J. Brobecker <brobecker@gnat.com>
11547
11548 * utils.c (xfullpath): New function.
11549 * defs.h (xfullpath): Add declaration.
11550 * source.c (openp): Use xfullpath in place of gdb_realpath to
11551 avoid resolving the basename part of filenames when the
11552 associated file is a symbolic link. This fixes a potential
11553 inconsistency between the filenames known to GDB and the
11554 filenames it prints in the annotations.
11555 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11556 to be able to match a filename with either the real filename, or
11557 the name of any symbolic link to this file.
11558 (lookup_partial_symtab): Ditto.
11559
11560 2002-04-04 Michael Snyder <msnyder@redhat.com>
11561
11562 * breakpoint.c: Add support for hardware breakpoints in overlays.
11563 (overlay_events_enabled): New state variable.
11564 (insert_breakpoints): Use overlay_events_enabled to decide
11565 whether to attempt to set a breakpoint at the overlay load addr.
11566 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11567 (remove_breakpoint): Use overlay_events_enabled to decide
11568 whether breakpoints need to be removed from overlay load addr.
11569 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11570 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11571 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11572 disable_overlay_breakpoints): Update overlay_events_enabled.
11573
11574 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11575
11576 * dwarf2read.c (struct function_range): New.
11577 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11578 (check_cu_functions): New.
11579 (read_file_scope): Initialize global function lists.
11580 Call dwarf_decode_line after processing children.
11581 (read_func_scope): Add to global function list.
11582 (dwarf_decode_lines): Call check_cu_functions everywhere
11583 record_line is called. Call record_line with a linenumber
11584 of 0 to mark sequence ends.
11585
11586 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11587
11588 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11589 change sync with glibc.
11590
11591 2002-04-03 Jim Blandy <jimb@redhat.com>
11592
11593 * configure.in: Call AC_C_INLINE.
11594 * configure: Regenerated.
11595
11596 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11597
11598 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11599 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11600
11601 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11602
11603 * NEWS: Mention gcore support on FreeBSD/i386.
11604
11605 * fbsd-proc.c: New file.
11606 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11607 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11608
11609 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11610 while statement.
11611
11612 2002-03-29 Jim Blandy <jimb@redhat.com>
11613
11614 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11615 unescaped newlines in string literals, but newer ones don't. So
11616 escape them.
11617
11618 2002-03-26 Michael Snyder <msnyder@redhat.com>
11619 Andrew Cagney <cagney@redhat.com>
11620
11621 * cli/cli-dump.c: New file. Dump memory to file,
11622 restore file to memory.
11623 * cli/cli-dump.h: New file.
11624 * Makefile.in: Add rules, dependencies for cli-dump.o.
11625 * NEWS: Mention new commands.
11626
11627 2002-03-28 Michael Snyder <msnyder@redhat.com>
11628
11629 * symfile.c (symbol_file_add): Move test for null symbols to later.
11630
11631 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11632
11633 From veksler at il.ibm.com:
11634 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11635 the xstrduped original path.
11636 Fix PR gdb/417.
11637
11638 2002-03-27 Michael Snyder <msnyder@redhat.com>
11639
11640 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11641 * infcmd.c (_initialize_infcmd): Ditto.
11642 * language.c (_initialize_language): Ditto.
11643 * symfile.c (_initialize_symfile): Ditto.
11644 * top.c (_init_main): Ditto.
11645 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11646
11647 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11648
11649 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11650 vector registers handling.
11651 (skip_prologue): Handle new AltiVec instructions. Fill in new
11652 fields of frame data.
11653 (frame_get_saved_regs): Fill in information for AltiVec registers.
11654
11655 2002-03-27 Jim Blandy <jimb@redhat.com>
11656
11657 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11658 a function; leave this macro here to invoke that function.
11659 (symbol_init_mangled_name): Declaration for that function.
11660 * symtab.c (symbol_init_mangled_name): New function.
11661
11662 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11663
11664 * valarith.c: Replace strerror with safe_strerror.
11665 * tracepoint.c: Ditto.
11666 * lin-lwp.c: Ditto.
11667 * go32-nat.c: Ditto.
11668 * inflow.c: Ditto.
11669 * gnu-nat.c: Ditto.
11670
11671 2002-03-27 Andreas Schwab <schwab@suse.de>
11672
11673 * event-top.c (command_line_handler): Remove useless if.
11674
11675 2002-03-27 Andreas Jaeger <aj@suse.de>
11676
11677 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11678 comment.
11679
11680 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11681
11682 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11683 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11684 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11685 (x86_64_linux_dr_get_status, supply_gregset),
11686 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11687 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11688 (x86_64_register_info_table): Add.
11689 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11690 (x86_64_register_raw_size, x86_64_register_virtual_type),
11691 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11692 general x86_64_register_info_table.
11693 (i386_gdbarch_init): gdbarch_register_bytes is now set
11694 dynamicaly during initialization.
11695 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11696 * gdbserver/linux-x86-64-low.c: Ditto.
11697
11698 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11699
11700 * gdbserver/server.c (main): Call target_signal_to_host_p
11701 and target_signal_to_host on signals received from the remote.
11702 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11703 target_signal_from_host on signals sent to the remote.
11704 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11705 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11706
11707 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11708
11709 * signals/signals.c: Include "server.h" in gdbserver build.
11710 (target_signal_from_name): Don't use STREQ.
11711 (_initialize_signals): Likewise. Don't include function in
11712 gdbserver build.
11713
11714 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11715
11716 * signals.c: Moved to...
11717 * signals/signals.c: Here.
11718 * Makefile (signals.o): Update.
11719
11720 2002-03-26 Jeff Law (law@redhat.com)
11721
11722 * somread.c (som_symtab_read): Remove some commented out code and
11723 updated related comments. Do not set the minimal symbol table to
11724 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11725 in a dynamic executable.
11726 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11727 where we are unable to find the minimal symbol for the given
11728 PC value.
11729
11730 2002-03-25 Jeff Law (law@redhat.com)
11731
11732 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11733
11734 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11735
11736 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11737
11738 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11739
11740 * command.h: Update copyright.
11741 (struct cmd_list_element): Replace definition with opaque
11742 declaration.
11743 (enum cmd_types): Document that it will eventually be moved to
11744 cli/cli-decode.h
11745 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11746 (MALLOCED_REPLACEMENT): Delete macro.
11747 * Makefile.in (cli_decode_h): Add $(command_h).
11748 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11749 * top.c: Include "cli/cli-decode.h".
11750 * completer.c: Include "cli/cli-decode.h".
11751 * maint.c: Include "cli/cli-decode.h".
11752 * cli/cli-decode.h: Include "command.h".
11753 (enum command_class): Delete.
11754 (enum cmd_types): Comment out.
11755 (enum cmd_auto_boolean): Delete.
11756 (enum var_types): Delete.
11757
11758 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11759
11760 * cli/cli-decode.c: Include "gdb_assert.h".
11761 (add_set_or_show_cmd): New static function.
11762 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11763 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11764 all fields, such as func, from the set command.
11765
11766 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11767
11768 * MAINTAINERS (sh-elf): Change warning flag to -w.
11769
11770 2002-03-23 Andrew Cagney <cagney@redhat.com>
11771
11772 * defs.h (error): Add printf format attribute.
11773 * thread-db.c (thread_from_lwp): Fix error format string.
11774 * stack.c (parse_frame_specification): Ditto.
11775 * cli/cli-decode.c (undef_cmd_error): Ditto.
11776 * scm-lang.c (scm_lookup_name): Ditto.
11777 * tracepoint.c (trace_error): Ditto.
11778 * remote-utils.c (usage): Ditto.
11779 * remote.c (compare_sections_command): Ditto.
11780 Fix PR gdb/328.
11781
11782 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11783
11784 * gdbtypes.c (append_composite_type_field): New function.
11785 (init_composite_type): New function.
11786 * gdbtypes.h (append_composite_type_field): Declare.
11787 (init_composite_type): Ditto.
11788
11789 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11790
11791 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11792 function.
11793 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11794 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11795 structure returning convention for SYSV ABI case, but not
11796 for GNU/Linux, FreeBSD, or NetBSD.
11797
11798 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11799
11800 * symtab.h (lookup_block_symbol): Add mangled_name argument
11801 to prototype.
11802
11803 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11804 with new mangled_name argument.
11805 * linespec.c (decode_line_1): Likewise.
11806 * valops (value_of_this): Likewise.
11807 * symtab.c (lookup_transparent_type): Likewise.
11808 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11809 (lookup_symbol): If we are given a mangled name, pass it down
11810 to lookup_symbol_aux.
11811 (lookup_block_symbol): If we are given a mangled name to check
11812 against, only return symbols which match it.
11813
11814 2002-03-22 Christopher Faylor <cgf@redhat.com>
11815
11816 * win32-nat.c (child_create_inferior): Check for proper shell to use
11817 here, in case the user changes it on the fly.
11818 (_initialize_inftarg): Remove shell path considerations.
11819
11820 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11821
11822 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11823 for gdbarch_max_register_raw_size and max_register_virtual_size.
11824 Adjust copyright year.
11825
11826 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11827
11828 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11829 in a function to cover the entire beginning of the function
11830 as well if it does not already.
11831
11832 2002-03-21 Tom Rix <trix@redhat.com>
11833
11834 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11835 (rs6000_ptrace64): Renamed from ptrace64.
11836
11837 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11838
11839 * gdbserver/remote-utils.c (remote_open): Don't call
11840 getprotobyname, we're all using TCP here so just use
11841 IPPROTO_TCP.
11842 * gdbserver/gdbreplay.c (remote_open): Ditto.
11843
11844 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11845
11846 * regcache.c (_initialize_regcache): No need to call
11847 build_regcache() at this time; it gets called whenever
11848 the gdbarch changes.
11849
11850 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11851
11852 * sparc-nat.c: Include sys/param.h where possible.
11853
11854 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11855
11856 Fix PR gdb/422.
11857 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11858 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11859 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11860 complex types.
11861 * stabsread.c (rs6000_builtin_type): Likewise.
11862 (read_sun_floating_type): Likewise.
11863
11864 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11865
11866 * stabsread.c (read_member_functions): Remove skip code for duplicate
11867 constructor/destructor methods. Use standard parsing for these
11868 methods and just do not chain them to the list of methods after
11869 parsing.
11870
11871 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11872
11873 * coffread.c: Remove redundant static declarations. Replace
11874 occurrences of `PTR' with `void *'.
11875 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11876 * top.h (quit_cover): Likewise.
11877 * defs.h (catch_errors): Likewise.
11878
11879 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11880
11881 * defs.h (XMALLOC): Define.
11882 * gdb-events.sh (XMALLOC): Delete macro.
11883 * gdb-events.c, gdb-events.h: Regenerate.
11884 * gdbarch.sh (XMALLOC): Delete macro.
11885 * gdbarch.c: Regenerate.
11886 * serial.c (XMALLOC): Delete macro.
11887 * ui-file.c (XMALLOC): Ditto.
11888 * ser-unix.h (XMALLOC): Ditto.
11889 * sh-tdep.c (XMALLOC): Ditto.
11890 * ui-out.c (XMALLOC): Ditto.
11891 * utils.c (XMALLOC): Ditto.
11892 * i386-tdep.c (XMALLOC): Ditto.
11893 * gdb-events.c (XMALLOC): Ditto.
11894 * d10v-tdep.c (XMALLOC): Ditto.
11895 * cli-out.c (XMALLOC): Ditto.
11896
11897 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11898 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11899 * ui-file.c, ui-out.c: Ditto.
11900
11901 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11902
11903 * command.h (struct cmd_list_element): Add field context.
11904 (set_cmd_context, get_cmd_context): Declare.
11905 * cli/cli-decode.h: Ditto.
11906 * cli/cli-decode.c (get_cmd_context): New function.
11907 (set_cmd_context): New function.
11908 (add_cmd): Initialize context.
11909 Part of fixing PR gdb/145 and PR gdb/146.
11910
11911 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11912
11913 * cli/cli-decode.c (cmd_type): New function.
11914 * command.h (cmd_type): Declare.
11915 * infrun.c (set_schedlock_func): Call function cmd_type.
11916 * kod.c (kod_set_os): Call cmd_type.
11917 * cris-tdep.c (cris_version_update): Use function cmd_type.
11918 (cris_mode_update, cris_abi_update): Ditto.
11919
11920 * command.h: (execute_cmd_post_hook): Declare.
11921 (execute_cmd_pre_hook): Declare.
11922 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11923 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11924 functions. Execute pre/post hook while ensuring that afterwords
11925 hook_in is cleared.
11926 * top.c (execute_command): Use execute_cmd_post_hook, and
11927 execute_cmd_pre_hook to execute pre/post commands.
11928 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11929 hook_stop_stub.
11930 (hook_stop_stub): Call execute_cmd_pre_hook.
11931
11932 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11933
11934 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11935 set'' and this leads to a core dump. Move xstrdup of
11936 operating_system to after check that it is not NULL.
11937
11938 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11939
11940 * kod.c (kod_set_os): Remove unnecessary check that
11941 ``command->type'' is set_cmd.
11942
11943 * valprint.c (set_input_radix): Use input_radix.
11944 (set_output_radix): Use output_radix.
11945 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11946 isn't reverted.
11947
11948 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11949
11950 * value.h (struct value): Delete field ``substring_addr''. Change
11951 aligner fields to force_doublest_align, force_longest_align,
11952 force_core_addr_align and force_pointer_aligh.
11953
11954 * value.h (struct value): Fix typo in above change.
11955
11956 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11957
11958 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11959 to fix internal_error from ``maintenance print architecture''.
11960
11961 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11962
11963 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11964 for gcc versions after gcc-2.8.1.
11965
11966 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11967
11968 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11969 for method resolution. Restore adjustment of ``this'' pointer after
11970 calling value_struct_elt, which was accidentally removed during the
11971 HP merge.
11972
11973 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11974
11975 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11976 value_of_register.
11977 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11978 get_saved_register.
11979 * value.h (value_of_register): Update.
11980
11981 2002-03-14 Richard Henderson <rth@redhat.com>
11982
11983 * configure.in: Detect declaration for canonicalize_file_name.
11984 * utils.c (canonicalize_file_name): Declare, if needed.
11985 (gdb_realpath): Prefer realpath if available and usable.
11986 * config.in, configure: Rebuild.
11987
11988 2002-03-14 Richard Henderson <rth@redhat.com>
11989
11990 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11991 a constant array bound.
11992
11993 * MAINTAINERS: Add myself to write-after-approval.
11994
11995 2002-03-14 Michael Snyder <msnyder@redhat.com>
11996
11997 * symfile.c (syms_from_objfile): Return immediately if no syms.
11998 (symbol_file_add): Return immediately if no syms.
11999 (find_sym_fns): Return immediately if no syms.
12000
12001 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12002
12003 * gdbserver/remote-util.c (remote_open): Print remote-side's
12004 IP address when remote debugging over the network.
12005
12006 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12007
12008 * config/sparc/fbsd.mh: Fix copyright.
12009 * config/sparc/fbsd.mt: Likewise.
12010
12011 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12012
12013 * MAINTAINERS: Fix typo in name of gdb warnings option.
12014 (x86-64): Fix formating so that this can be parsed by awk.
12015
12016 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12017
12018 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12019 * defs.h: Include "gdb/signals.h".
12020 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12021
12022 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12023
12024 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12025 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12026 from x86-64-tdep.h
12027
12028 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12029 Don Howard <dhoward@redhat.com>
12030
12031 * mips-tdep.c (ST0_FR): Define.
12032 (mips2_fp_compat): New function, temporarily disabled.
12033 (mips_read_fp_register_single): New function.
12034 (mips_read_fp_register_double): New function.
12035 (mips_print_register): Use them.
12036 (do_fp_register_row): Likewise.
12037
12038 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12039
12040 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12041 approval''.
12042
12043 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12044
12045 * stabsread.c (read_member_functions): Fix is_stub test for
12046 static member functions, improve comment.
12047
12048 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12049
12050 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12051 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12052 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12053 commands that set boolean values.
12054 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12055 (arm_rdi_resume): Always initialize PC.
12056 (arm_rdi_open): Don't use rslt as a boolean.
12057 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12058 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12059 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12060 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12061
12062 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12063
12064 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12065 * configure: Rebuilt.
12066
12067 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12068
12069 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12070 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12071
12072 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12073
12074 * cli/cli-decode.c (set_cmd_completer): New function.
12075 * command.h (set_cmd_completer): Declare.
12076 * cli/cli-decode.h (set_cmd_completer): Ditto.
12077
12078 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12079 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12080 * win32-nat.c (_initialize_inftarg): Ditto.
12081 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12082 * proc-api.c (_initialize_proc_api): Ditto.
12083 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12084 * source.c (_initialize_source): Ditto.
12085 * exec.c (_initialize_exec): Ditto.
12086 * solib.c (_initialize_solib): Ditto.
12087 * top.c (init_main): Ditto.
12088 * tracepoint.c (_initialize_tracepoint): Ditto.
12089 * symfile.c (_initialize_symfile): Ditto.
12090 * printcmd.c (_initialize_printcmd): Ditto.
12091 * infcmd.c (_initialize_infcmd): Ditto.
12092 * corefile.c (_initialize_core): Ditto.
12093
12094 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12095
12096 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12097
12098 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12099
12100 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12101
12102 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12103
12104 * NEWS: Update headings, 5.2 has branched.
12105
12106 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12107
12108 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12109 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12110 (register_addr, REGISTER_RAW_SIZE): Likewise.
12111 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12112 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12113
12114 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12115
12116 * MAINTAINERS (x86-64): Add myself.
12117 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12118 changed value_ptr -> struct value *
12119
12120 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12121
12122 * configure.host (sparc64-*-freebsd): Add.
12123 * configure.tgt: Likewise.
12124 * config/sparc/fbsd.mh: New file.
12125 * config/sparc/fbsd.mt: Likewise.
12126 * config/sparc/nm-fbsd.h: Likewise.
12127 * config/sparc/tm-fbsd.h: Likewise.
12128
12129 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12130
12131 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12132 regformats/reg-s390x.dat.
12133
12134 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12135
12136 * utils.c: Add FIXME explaining true/false problem.
12137
12138 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12139
12140 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12141
12142 2002-02-28 Michael Chastain <mec@shout.net>
12143
12144 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12145
12146 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * gdbserver/linux-s390-low.c: New file.
12149 * regformats/reg-s390.dat: New file.
12150 * regformats/reg-s390x.dat: New file.
12151 * gdbserver/configure.srv: Add S/390.
12152 * gdbserver/Makefile.in: Add S/390.
12153 * configure.tgt: Enable gdbserver for S/390.
12154
12155 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12156
12157 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12158 first line of the doc string for "info dos", except at the end of
12159 the sentence, since the short help stops at the first period.
12160
12161 2002-02-28 Jason Merrill <jason@redhat.com>
12162
12163 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12164
12165 2002-02-27 Fred Fish <fnf@redhat.com>
12166
12167 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12168 comment (dumy -> dummy).
12169
12170 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12171
12172 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12173
12174 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12175
12176 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12177
12178 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12179
12180 * gdbserver/acconfig.h: New file.
12181 * gdbserver/i387-fp.c: New file.
12182 * gdbserver/i387-fp.h: New file.
12183 * gdbserver/linux-x86-64.c: New file.
12184 * regformats/reg-x86-64.dat: New file.
12185 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12186 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12187 * gdbserver/configure.in: Add support for regsets.
12188 * gdbserver/config.in: Regenerate.
12189 * gdbserver/configure: Regenerate.
12190 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12191 * gdbserver/linux-low.h: New file.
12192 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12193 for regsets.
12194 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12195 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12196 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12197 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12198 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12199 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12200 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12201 "i387-fp.h". Add PTRACE_GETREGS and friends.
12202 * gdbserver/regcache.c (supply_register): New function.
12203 (supply_register_by_name): New function.
12204 (collect_register): New function.
12205 (collect_register_by_name): New function.
12206
12207 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12208
12209 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12210 (config.status): Add configure.srv dependency.
12211 (server_h): Add config.h dependency.
12212
12213 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12214
12215 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12216 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12217 * gdbserver/configure.srv: Change i386-*-linux* to use
12218 reg-i386-linux.o.
12219
12220 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12221
12222 * x86-64-tdep.c: Re-indent. Update copyright date.
12223
12224 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12225
12226 From Michal Ludvig <mludvig@suse.cz>:
12227 * x86-64-tdep.c (value.h): Delete.
12228 (gdb_assert.h): Include.
12229 (x86_64_register_convert_to_virtual,
12230 x86_64_register_convert_to_raw ): Add check which lets only
12231 floating-point values to be converted.
12232 (value_push): Delete.
12233 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12234 (i386_gdbarch_init): Number of register_bytes fixed.
12235
12236 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12237
12238 * MAINTAINERS: Add x86-64 target.
12239
12240 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12241
12242 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12243 * osfsolib.c (solib_map_sections): Ditto.
12244 * irix5-nat.c (solib_map_sections): Ditto.
12245 * corelow.c (gdb_check_format): Ditto.
12246 * symfile.c (symfile_bfd_open): Ditto.
12247 * solib.c (solib_map_sections): Ditto.
12248 Fix PR gdb/354.
12249
12250 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12251
12252 * remote.c (_initialize_remote): By default, disable ``e'' and
12253 ``E'' step out-of-range packets.
12254
12255 2002-02-26 Andreas Schwab <schwab@suse.de>
12256
12257 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12258 m68k_linux_frame_saved_pc.
12259 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12260 in_sigtramp.
12261 (SIGCONTEXT_PC_OFFSET): Remove.
12262 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12263 m68k_linux_sigtramp_saved_pc): New functions.
12264 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12265 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12266 (UCONTEXT_PC_OFFSET): Define.
12267 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12268 non-RT and RT signal trampolines.
12269
12270 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12271
12272 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12273 (TARGET_NBPG, STACK_END_ADDR): Delete
12274 (VARIABLES_INSIDE_BLOCK): Delete.
12275
12276 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12277
12278 * utils.c (perror_with_name): Make string parameter constant.
12279 (print_sys_errmsg): Ditto.
12280 (query): Ditto.
12281 * defs.h (perror_with_name): Update.
12282 (print_sys_errmsg): Update.
12283 (query): Update.
12284
12285 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12286
12287 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12288 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12289
12290 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12291
12292 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12293 if it already matches the current architecture from the exec file.
12294 Include arch-utils.h for gdbarch_info_init prototype.
12295 * Makefile.in (rs6000-nat.o): Update dependencies.
12296
12297 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12298
12299 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12300 list of exported variables.
12301
12302 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12303
12304 * gdbserver/configure.srv: New file.
12305 * gdbserver/configure.in: Use configure.srv instead
12306 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12307 from it.
12308 * gdbserver/configure: Regenerated.
12309 * gdbserver/terminal.h: New file.
12310 * gdbserver/Makefile.in: Update for configure changes. Remove
12311 more unneeded include paths.
12312
12313 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12314
12315 From wiz at danbala:
12316 * config/sparc/tm-sp64.h: Fix grammar and typos.
12317 Fix PR gdb/287.
12318
12319 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12320
12321 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12322 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12323 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12324 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12325 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12326 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12327 * s390-tdep.c: Ditto.
12328 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12329 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12330 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12331 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12332 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12333 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12334 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12335 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12336 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12337 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12338 Fix PR gdb/378.
12339
12340 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12341
12342 * lin-thread.c: Delete file.
12343 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12344 to gdb_proc_service.h.
12345 * configure: Re-generate.
12346
12347 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12348 * serial.c (serial_open): Delete check for "ocd".
12349 Fix PR gdb/349.
12350
12351 * Makefile.in (linux-thread.o): Delete target.
12352 * linux-thread.c: Delete file.
12353
12354 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12355 renamed SH files to be consistent.
12356
12357 * symtab.c (sort_search_symbols): Use xfree.
12358
12359 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12360
12361 * arm-linux-tdep.c (arm_linux_init_abi): Register
12362 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12363 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12364 definition with undef, since we don't want the sysvr4 definition.
12365 (SKIP_TRAMPOLINE_CODE): Likewise.
12366
12367 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12368
12369 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12370
12371 * configure.in: (AC_CHECK_FUNCS) Added test for
12372 canonicalize_file_name Regenerated.
12373 * config.in, configure: Regenerated.
12374 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12375 defined use canonicalize_file_name.
12376
12377 2002-02-23 Michael Chastain <mec@shout.net>
12378
12379 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12380
12381 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12382
12383 * README: Remove references to cygnus.com.
12384 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12385 dot com'' form. Remove references to cygnus.com and sourceware.
12386
12387 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12388
12389 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12390 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12391 1003.1-2001 no longer allows "head -1".
12392 * gdb/Makefile.in (version.c): Likewise.
12393 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12394 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12395 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12396
12397 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12398
12399 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12400 * command.h (cmd_cfunc_eq): Declare.
12401 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12402
12403 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12404 ``struct cmd_list_element *''.
12405 * cli/cli-cmds.c (is_complete_command): Update. Use
12406 cmd_cfunc_eq.
12407 * top.c (execute_command): Pass the command to
12408 is_complete_command.
12409 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12410
12411 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12412
12413 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12414 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12415 architecture defines.
12416 * s390-tdep.c (s390_gdbarch_init): Likewise.
12417
12418 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12419
12420 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12421 (arm_linux_push_arguments): Likewise.
12422 (arm_linux_init_abi): Register them. Also register linux-specific
12423 call_dummy_words.
12424 (find_minsym_and_objfile): Use strcmp, not STREQ.
12425 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12426 (arm_linux_call_dummy_words): Delete declaration.
12427 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12428 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12429 declarations.
12430 (LOWEST_PC): Delete.
12431
12432 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12433
12434 * maint.c (print_section_info): Do not prepend `0x' to filepos
12435 output, it will be handled by local_hex_string_custom.
12436
12437 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12438
12439 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12440 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12441 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12442
12443 2002-02-22 Jim Blandy <jimb@redhat.com>
12444
12445 Indicate that the bcache functions don't change the strings
12446 they're passed.
12447 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12448 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12449
12450 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12451
12452 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12453
12454 2002-02-21 Christopher Faylor <cgf@redhat.com>
12455
12456 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12457 find the complete path to a loaded DLL.
12458
12459 2002-02-21 Fred Fish <fnf@redhat.com>
12460
12461 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12462 that marks the end of the range of a function, enter a line number
12463 entry that has a line number of zero and a PC offset that matches
12464 the end of the function. This starts a range of PC's for which no
12465 line number information is known.
12466 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12467 PC's for which no line number info is found (line number is zero)
12468 then we didn't find any valid line information.
12469 * symtab.h: Document use of zero line number entry.
12470
12471 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12472
12473 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12474 (have_ptrace_getvrregs): Define for run time checks.
12475 (gdb_vrregset_t): New type for Altivec register handling.
12476 (fetch_register, store_register): Fetch/store altivec register
12477 when needed.
12478 (fetch_altivec_register, store_altivec_register): New functions.
12479 (supply_vrregset, fill_vrregset): New functions.
12480 (fetch_altivec_registers, store_altivec_registers): New functions.
12481 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12482 registers as well.
12483
12484 2002-02-21 Jiri Smid <smid@suse.cz>
12485
12486 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12487
12488 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12489
12490 * Makefile.in (armnbsd-nat.o): Update dependencies.
12491 * armnbsd-nat.c (supply_gregset): New function. Common code to
12492 supply the integer register set.
12493 (supply_fparegset): New function. Similar for FPA registers.
12494 (fetch_regs, fetch_fp_regs): Use them.
12495 (fetch_core_registers): Likewise.
12496 (fetch_elfcore_registers): New function.
12497 (arm_netbsd_elfcore_fns): New core-file type specification.
12498 (_initialize_arm_netbsd_nat): Register it.
12499
12500 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12501
12502 * armnbsd-nat.c: Include gdbcore.h.
12503 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12504 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12505 'void' to declaration, to shut up ARI.
12506 (fetch_core_registers): Make static. Rewrite using supply_register.
12507 (arm_netbsd_core_fns): New core-file type specification.
12508 (_initialize_arm_netbsd_nat): New function.
12509
12510 2002-02-21 Christopher Faylor <cgf@redhat.com>
12511
12512 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12513 value.
12514
12515 2002-02-20 Christopher Faylor <cgf@redhat.com>
12516
12517 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12518 fails.
12519
12520 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12521
12522 * jv-exp.y (parse_number): Change type of implicit longs
12523 to builtin_type_uint64.
12524
12525 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12528 to be an integer instead of a `union wait'.
12529
12530 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12531
12532 * mips-linux-nat.c: Call the operating system GNU/Linux.
12533 * mips-linux-tdep.c: Likewise.
12534 * mips-tdep.c: Likewise.
12535
12536 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12537
12538 Fix PR gdb/265.
12539 * jv-exp.y (parse_number): Handle 64-bit integers.
12540
12541 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12542
12543 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12544 AC_STDC_HEADERS to AC_HEADER_STDC.
12545 * gdbserver/configure: Regenerated.
12546
12547 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12548
12549 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12550 is defined.
12551 * sparc-tdep.c (get_longjmp_target): Likewise.
12552
12553 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12554
12555 * News: Add news about ARM and Multi-arch. Mention the new target
12556 arm*-*-netbsd*.
12557
12558 2002-02-19 Jim Blandy <jimb@redhat.com>
12559
12560 * stabsread.c (error_type_complaint): Improve error message.
12561
12562 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12563
12564 * gdbserver/README: Update documentation.
12565 * gdbserver/configure.in: Update configury to match documentation.
12566 * gdbserver/Makefile.in: Likewise.
12567 * gdbserver/configure: Regenerated.
12568 * gdbserver/aclocal.m4: New file, generated by aclocal.
12569 * gdbserver/config.in: New file, generated by autoheader.
12570
12571 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12572
12573 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12574 armnbsd-nat.c.
12575
12576 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12577
12578 * arm-tdep.h (enum arm_float_model): New enum.
12579 (struct gdbarch_tdep): Add fp_model.
12580 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12581 up floating-point conversions until we know the floating-point model
12582 in use by the inferior. Don't complain about being unable to
12583 determine the ABI of the inferior when we don't have one.
12584 (arm_extract_return_value): Support different floating-point models.
12585 (arm_store_return_value): Likewise.
12586 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12587 ARM_FLOAT_SOFT.
12588 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12589
12590 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12591
12592 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12593 of ``current_gdbarch''.
12594
12595 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12596
12597 * armnbsd-nat.c : ANSIfy all function declarations.
12598 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12599 (fetch_inferior_registers): Re-implement in terms of above.
12600 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12601 (store_inferior_registers): Re-implement in terms of above.
12602
12603 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12604
12605 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12606 kernel.
12607 * arm-linux-tdep.c: Likewise.
12608 * config/arm/tm-linux.h: Likewise.
12609
12610 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12611
12612 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12613 * config/arm/nbsd.mt (TM_FILE): Delete.
12614 * config/arm/tm-nbsd.h: Delete.
12615
12616 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12617
12618 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12619 Initialize CALL_DUMMY_LENGTH.
12620
12621 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12622
12623 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12624 function.
12625 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12626 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12627 defines one thing and that is incorrect for this port.
12628 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12629
12630 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12631
12632 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12633
12634 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12635
12636 * win32-nat.c (display_selector): New function. Displays information
12637 about the information returned by GetThreadSelectorEntry API function.
12638 (display_selectors): New function. Displays the infomation of
12639 the selector given as argument, or of CS, DS ans FS selectors
12640 if no argument is given.
12641 ( _initialize_inftarg): Add "w32" as info prefix command.
12642 Add "info w32 selector" as command calling display_selectors.
12643
12644 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12645
12646 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12647 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12648 if not defined.
12649
12650 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12651
12652 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12653
12654 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12655
12656 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12657 (arm_fix_call_dummy): Call it.
12658 (arm_call_dummy_breakpoint_offset): Delete.
12659 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12660 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12661
12662 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12663
12664 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12665 Default to func_frame_chain_valid.
12666 * gdbarch.h, gdbarch.c: Re-generate.
12667 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12668
12669 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12670
12671 * ppc-linux-nat.c: Update copyright.
12672 (fetch_register, store_register): Add tid parameter, don't compute
12673 tid here.
12674 (fetch_ppc_registers, store_ppc_registers): Add tid
12675 parameter. Pass it along to callees.
12676 (fetch_inferior_registers, store_inferior_registers): Compute tid
12677 here, and pass it to calleed functions.
12678 (fill_gregset, supply_fpregset): Clean up formatting.
12679
12680 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12681
12682 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12683 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12684
12685 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12686
12687 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12688 * gdbarch.c gdbarch.h: Regenerate.
12689 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12690 function.
12691 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12692 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12693 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12694
12695 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12696 * arm-tdep.c (arm_get_longjmp_target): New function.
12697 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12698 this to a positive value register arm_get_longjmp_target as the
12699 longjmp handler.
12700 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12701 (arm_linux_init_abi): Set up longjmp description in tdep.
12702 * armnbsd-nat.c (get_longjmp_target): Delete.
12703 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12704 description in tdep.
12705 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12706 (get_longjmp_target): Delete declaration.
12707 (GET_LONGJMP_TARGET): Delete.
12708 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12709 (GET_LONGJMP_TARGET): Delete.
12710
12711 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12712
12713 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12714 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12715 of ``current_gdbarch''.
12716
12717 2002-02-17 Tom Tromey <tromey@redhat.com>
12718
12719 * cli/cli-cmds.c (compare_strings): New function.
12720 (complete_command): Only print each unique item once.
12721 * completer.h (complete_line): Declare.
12722 * completer.c (complete_line): New function.
12723 (line_completion_function): Use it.
12724
12725 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12726
12727 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12728 * gdbarch.h, gdbarch.c: Re-generate.
12729
12730 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12731
12732 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12733
12734 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12735
12736 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12737 * valops.c (value_arg_coerce): Don't take the address of a reference
12738 to convert an argument to a reference.
12739
12740 2002-02-15 Christopher Faylor <cgf@redhat.com>
12741
12742 * win32-nat.c (get_image_name): New function.
12743 (handle_load_dll): Use get_image_name function.
12744 (get_child_debug_event): Avoid registering debug events until possibly
12745 execed process is started.
12746 (child_create_inferior): Allow invocation via shell so that command
12747 line redirection, etc. works ok.
12748 (_initialize_inftarg): Add new command: "set shell" to control whether
12749 a shell is used to start a process.
12750
12751 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12752
12753 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12754 instead of find_register_by_number.
12755 (cannot_store_register): Likewise.
12756
12757 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12758
12759 * dwarf2read.c: Replace fprintf (stderr, ...) by
12760 fprintf_unfiltered (gdb_stderr, ...).
12761
12762 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12763
12764 * gdbserver/gdbserver.1: Document --attach.
12765
12766 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12767
12768 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12769 descriptions.
12770 * arm-tdep.c (arm_default_arm_le_breakpoint)
12771 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12772 (arm_default_thumb_be_breakpoint): New. Initialize them from
12773 traditional breakpoint defines.
12774 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12775 (arm_gdbarch_init): Initialize new breakpoint variables.
12776 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12777 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12778 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12779 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12780 code out to ...
12781 (arm_netbsd_init_abi_common): ... here; new function.
12782 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12783 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12784 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12785 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12786
12787 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12788
12789 * arm-tdep.h (enum arm_abi): New enum.
12790 (struct gdbarch_tdep): New structure.
12791 (LOWEST_PC): Provide a default.
12792 (arm_gdbarch_register_os_abi): Declare new function.
12793 * arm-tdep.c (arm_abi_names): New array.
12794 (process_note_abi_tag_sections): New function.
12795 (get_elfosabi): New function.
12796 (arm_gdbarch_register_os_abi): New function.
12797 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12798 support for that ABI has been built in, then call the appropriate
12799 configuration routine. Use gdbarch_num_regs() to get the number
12800 of registers.
12801 (arm_dump_tdep): New function.
12802 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12803 place-holder functions.
12804 (_initialize_arm_tdep): Register them.
12805 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12806
12807 * armnbsd-tdep.c: New file.
12808 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12809 * config/arm/nbsd.mt (TDEPFILES): Add it.
12810 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12811
12812 * armnbsd-nat.c: Include regcache.h.
12813 * Makefile.in (armnbsd-nat.o): Update dependency list.
12814
12815 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12816
12817 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12818
12819 * gdbserver/Makefile.in: Fix typos in target rules.
12820
12821 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12822
12823 Fix part of PR gdb/267.
12824 * linespec.c (find_methods): Handle constructors specially for now.
12825
12826 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12827
12828 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12829 handling.
12830 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12831 standard_coerce_float_to_double().
12832
12833 2002-02-14 Christopher Faylor <cgf@redhat.com>
12834
12835 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12836 GDBINIT_FILENAME.
12837
12838 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12839
12840 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12841 find_variant_by_name, because it confuses the multiarch
12842 framework. Return NULL if there isn't an architecture with the
12843 user supplied name, instead of forcing a different one without
12844 recording the change with the multiarch machinery.
12845 (find_variant_by_name): Delete.
12846
12847 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12848
12849 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12850 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12851
12852 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12853
12854 * stack.c (print_frame_info_base): When calling
12855 print_frame_info_listing_hook, set current_source_symtab.
12856
12857 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12858
12859 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12860 and remove unused $(INCLUDE_DIR).
12861 Add regcache.c to OBS.
12862 Add generated register protocol files to clean target.
12863 Update dependencies for new objects, obsolete old target code.
12864
12865 * gdbserver/linux-low.c: Remove all platform-specific code to
12866 new files. Remove various dead code. Update to use regcache
12867 functionality.
12868 * gdbserver/remote-utils.c (fromhex): Add return statement
12869 to quiet warning.
12870 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12871 constant.
12872 (input_interrupt): Add integer parameter to match prototype
12873 of a signal handler.
12874 (outreg): Use register_data ().
12875 (prepare_resume_reply): Use gdbserver_expedite_regs.
12876 * gdbserver/server.c (main): Dynamically allocate own_buf because
12877 PBUFSIZ is no longer constant. Use registers_to_string () and
12878 registers_from_string ().
12879 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12880 for error (), fatal (), and warning (). Update definition of
12881 PBUFSIZ to use regcache functionality. Add include guard.
12882 * gdbserver/utils.c (fatal): Add missing ``const''.
12883 (warning): New function.
12884
12885 * regformats/regdat.sh: Include "regcache.h" in generated files.
12886 Provide init_registers () function.
12887 * regformats/regdef.h: Add prototype for set_register_cache ().
12888 Add include guard.
12889
12890 * gdbserver/linux-arm-low.c: New file.
12891 * gdbserver/linux-i386-low.c: New file.
12892 * gdbserver/linux-ia64-low.c: New file.
12893 * gdbserver/linux-m68k-low.c: New file.
12894 * gdbserver/linux-mips-low.c: New file.
12895 * gdbserver/linux-ppc-low.c: New file.
12896 * gdbserver/linux-sh-low.c: New file.
12897
12898 * gdbserver/regcache.c: New file.
12899 * gdbserver/regcache.h: New file.
12900
12901 * gdbserver/low-linux.c: Removed obsolete file.
12902
12903 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12904
12905 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12906 * config/i386/linux.mt: Likewise.
12907 * config/ia64/linux.mt: Likewise.
12908 * config/m68k/linux.mh: Likewise.
12909 * config/powerpc/linux.mh: Likewise.
12910 * config/mips/linux.mt: Likewise.
12911
12912 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12913
12914 * config/i386/i386lynx.mh: Mark gdbserver variables
12915 as (currently) obsolete for this target.
12916 * config/i386/nbsd.mt: Likewise.
12917 * config/i386/nbsdelf.mt: Likewise.
12918 * config/m32r/m32r.mt: Likewise.
12919 * config/m68k/m68klynx.mh: Likewise.
12920 * config/m68k/nbsd.mt: Likewise.
12921 * config/m68k/sun3os4.mh: Likewise.
12922 * config/mips/vr5000.mt: Likewise.
12923 * config/ns32k/nbsd.mt: Likewise.
12924 * config/pa/hppabsd.mh: Likewise.
12925 * config/pa/hppaosf.mh: Likewise.
12926 * config/powerpc/nbsd.mt: Likewise.
12927 * config/rs6000/rs6000lynx.mh: Likewise.
12928 * config/s390/s390.mt: Likewise.
12929 * config/s390/s390x.mt: Likewise.
12930 * config/sparc/sparclynx.mh: Likewise.
12931 * config/sparc/sun4os4.mh: Likewise.
12932 * config/i386/x86-64linux.mt: Likewise.
12933 * config/sparc/linux.mh: Likewise.
12934
12935 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12936
12937 * configure.tgt: Configure gdbserver only for known working
12938 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12939 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12940 SUBDIRS if it is configured. Update comment for ${nativefile}.
12941 * configure: Regenerated.
12942
12943 2002-02-13 Michael Snyder <msnyder@redhat.com>
12944
12945 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12946
12947 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12948 (default_gcore_mach): Just return 0, work around a problem in bfd.
12949 (default_gcore_target): OK to return NULL if exec_bfd is null.
12950 (make_mem_sec): Use a cast, avoid a warning.
12951
12952 * procfs.c (find_memory_regions_callback): Use a cast instead of
12953 calling host_pointer_to_address (which complains if
12954 sizeof (host pointer) != sizeof (target pointer)).
12955 (procfs_make_note_section): Avoid overflow in psargs string.
12956
12957 * procfs.c (procfs_make_note_section): Make the default
12958 implementation return an error.
12959
12960 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12961
12962 * procfs.c (procfs_make_note_section): Provide a default definition
12963 (for alpha-dec-osf4.0f). Fix typos.
12964
12965 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12966
12967 * linux-proc.c: Add include of regcache.h.
12968 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12969
12970 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12971
12972 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12973 * memattr.c (create_mem_region): Disallow useless empty region.
12974 Regions are half-open intervals, so allow [A..B) [B..C) as
12975 non-overlapping.
12976
12977 2002-02-13 Michael Chastain <mec@shout.net>
12978
12979 * defs.h: Kill CONST_PTR.
12980 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12981 * c-lang.c (c_builtin_types): Likewise.
12982 * ch-lang.c (ch_builtin_types): Likewise.
12983 * f-lang.c (f_builtin_types): Likewise.
12984 * language.c (unknown_builtin_types): Likewise.
12985 * m2-lang.c (m2_builtin_types): Likewise.
12986 * p-lang.c (pascal_builtin_types): Likewise.
12987 * scm-lang.c (c_builtin_types): Likewise.
12988
12989 2002-02-13 Keith Seitz <keiths@redhat.com>
12990
12991 * arm-tdep.h (arm_get_next_pc): Add declaration.
12992
12993 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12994
12995 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12996 with other related struct-returning functions.
12997 (arm_extract_struct_value_address): New function.
12998 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12999 initialize float_format, double_format and long_double_format as
13000 appropriate to the endianness of the target.
13001 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13002 (arm_use_struct_convention): Delete declaration.
13003 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13004
13005 2002-02-13 Keith Seitz <keiths@redhat.com>
13006
13007 * defs.h (core_addr_to_string_nz): New function.
13008
13009 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13010
13011 Apply missing bits of 2002-01-15 patch.
13012 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13013 (fill_fpregset): Use i387_fill_fsave.
13014
13015 2002-02-12 Keith Seitz <keiths@redhat.com>
13016
13017 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13018 (core_addr_to_string_nz): New function.
13019
13020 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13021
13022 * arm-linux-nat.c: Really include arm-tdep.h.
13023 * config/arm/tm-linux.h (struct type, struct value): Declare.
13024
13025 2002-02-11 Michael Snyder <msnyder@redhat.com>
13026
13027 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13028 (gcore section): Ifdef for Solaris and Unixware only.
13029 (procfs_do_thread_registers): Unixware needs one lwpstatus
13030 per thread (not one prstatus or pstatus).
13031 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13032 not over all gdb threads. For unixware, call elfcore_write_pstatus
13033 once before iterating over threads.
13034
13035 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13036
13037 * arm-tdep.h: New file.
13038 * arm-tdep.c: Include arm-tdep.h.
13039 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13040 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13041 (arm_print_float_info, arm_register_type, convert_to_extended)
13042 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13043 (arm_extract_return_value, arm_register_name): Make static.
13044 (arm_software_single_step): Similarly. Fix types in declaration.
13045 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13046 (arm_store_return_value, arm_store_struct_return): New functions.
13047 (arm_gdbarch_init): Register the above functions. Also register
13048 call_dummy_start_offset, sizeof_call_dummy_words,
13049 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13050 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13051 max_register_virtual_size, register_size. Set up
13052 prologue_cache.saved_regs here, rather than ...
13053 (_initialize_arm_tdep): ... here.
13054 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13055 declarations.
13056 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13057 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13058 (arm_print_float_info, arm_register_type, convert_to_extended)
13059 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13060 (arm_extract_return_value, arm_register_name): Delete declarations.
13061 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13062 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13063 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13064 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13065 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13066 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13067 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13068 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13069 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13070 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13071 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13072 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13073 interface.
13074 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13075 * remote-rdi.c remote-rdp.c: Likewise.
13076 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13077 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13078 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13079 definition.
13080
13081 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13082 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13083 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13084 from non-ARM_ prefixed definitions.
13085 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13086 all uses of above.
13087 * remote-rdi.c remote-rdp.c: Likewise.
13088 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13089
13090 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13091
13092 * arm-tdep.c (arm_frameless_function_invocation)
13093 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13094 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13095 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13096 (arm_pop_frame, arm_get_next_pc): Make static.
13097 (arm_gdbarch_init): Register above in gdbarch structure.
13098 (arm_read_fp): Renamed from arm_target_read_fp.
13099 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13100 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13101 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13102 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13103 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13104 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13105 (arm_pc_is_thumb_dummy): Delete declarations.
13106 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13107 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13108 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13109 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13110
13111 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13112
13113 * symtab.c (compare_search_syms): New function.
13114 (sort_search_symbols): New function.
13115 (search_symbols): Sort symbols after searching rather than
13116 before.
13117
13118 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13119
13120 * NEWS: Linux -> GNU/Linux.
13121
13122 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13123
13124 * gdbarch.sh: For for level one methods, disallow a definition
13125 when partially multi-arched. Add comments explaining rationale.
13126 * gdbarch.h: Re-generate.
13127
13128 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13129
13130 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13131 multi-arch partial.
13132
13133 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13134
13135 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13136 field. Use diff -u.
13137 * gdbarch.c: Re-generate.
13138
13139 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13140
13141 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13142 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13143 partial.
13144
13145 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13146
13147 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13148 multi-arch partial.
13149 (PUSH_ARGUMENTS): Switch to using predefault.
13150 * gdbarch.c: Regenerate.
13151
13152 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13153
13154 * valops.c (PUSH_ARGUMENTS): Delete definition.
13155 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13156 partial. Default to default_push_arguments.
13157 * gdbarch.h, gdbarch.c: Regenerate.
13158
13159 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13160
13161 * defs.h (throw_exception): Rename return_to_top_level. Update
13162 comments.
13163 * utils.c (error_stream, internal_verror, quit): Ditto.
13164 * top.c (throw_exception, catcher): Ditto.
13165 * sparclet-rom.c (sparclet_load): Ditto.
13166 * remote.c (interrupt_query, minitelnet): Ditto.
13167 * remote-sds.c (interrupt_query): Ditto.
13168 * remote-mips.c (mips_error, mips_kill): Ditto.
13169 * ocd.c (interrupt_query): Ditto.
13170 * monitor.c (monitor_interrupt_query): Ditto.
13171 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13172 * target.h: Update comment.
13173
13174 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13175
13176 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13177
13178 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13179 default_double_format.
13180 * gdbarch.h, gdbarch.c: Re-generate.
13181 * findvar.c (floatformat_unknown): Delete variable definition.
13182 * doublest.h (floatformat_unknown): Delete variable declaration.
13183
13184 2002-02-09 Jim Blandy <jimb@redhat.com>
13185
13186 * stabsread.c (read_type): Add code to parse Sun's syntax for
13187 prototyped function types.
13188
13189 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13190
13191 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13192 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13193
13194 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13195
13196 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13197 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13198 now _initialize_xcoffsolib gets called again and overrides the
13199 commands from solib.c in a native configuration.
13200
13201 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13202
13203 * doublest.c (store_typed_floating): Don't try to return a value.
13204 Fixes PR gdb/290.
13205
13206 2002-02-08 Jim Blandy <jimb@redhat.com>
13207
13208 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13209 is prototyped and has no arguments, print its argument list as
13210 `(void)'.
13211
13212 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13213
13214 * MAINTAINERS (write-after-approval): Add myself.
13215 (paper-trail): I've escaped!
13216
13217 2002-02-08 Christopher Faylor <cgf@redhat.com>
13218
13219 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13220 changes.
13221 (_initialize_check_for_gdb_ini): Ditto.
13222
13223 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13224
13225 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13226 xaprintf -> xasprintf.
13227
13228 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13229
13230 * win32-nat.c: Remove use of printf and sprintf functions.
13231
13232 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13233
13234 * arm-tdep.c (arm_frame_chain_valid): Make static.
13235 (arm_push_arguments): Likewise.
13236 (arm_gdbarch_init): New function.
13237 (_initialize_arm_tdep): Call it.
13238 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13239 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13240 (FRAME_CHAIN_VALID): Delete.
13241 (arm_frame_chain_valid): Delete declaration.
13242 (PUSH_ARGUMENTS): Delete.
13243 (arm_push_arguments): Delete declaration.
13244 (CALL_DUMMY_P): Delete.
13245
13246 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13247 Corinna Vinschen <vinschen@redhat.com>
13248
13249 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13250 on builtin float types.
13251
13252 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13253
13254 * utils.c: Include <curses.h> before "bfd.h".
13255 * tui/tui-hooks.c: Likewise.
13256 * tui/tui.c: Likewise.
13257 * tui/tuiCommand.c: Likewise.
13258 * tui/tuiData.c: Likewise.
13259 * tui/tuiDataWin.c: Likewise.
13260 * tui/tuiDisassem.c: Likewise.
13261 * tui/tuiGeneralWin.c: Likewise.
13262 * tui/tuiIO.c: Likewise.
13263 * tui/tuiLayout.c: Likewise.
13264 * tui/tuiRegs.c: Likewise.
13265 * tui/tuiSource.c: Likewise.
13266 * tui/tuiSourceWin.c: Likewise.
13267 * tui/tuiStack.c: Likewise.
13268 * tui/tuiWin.c: Likewise.
13269
13270 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13271
13272 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13273 to include space for pseudoregs as well. Update loops accordingly.
13274 (sh_fp_frame_init_saved_regs): Ditto.
13275 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13276
13277 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13278
13279 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13280 Add Richard Earnshaw to Arm maintainers.
13281
13282 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13283
13284 * defs.h (warning_begin): Delete declaration.
13285
13286 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13287 Delete macro.
13288
13289 2002-02-07 Michael Snyder <msnyder@redhat.com>
13290
13291 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13292 Logic bug, remove misplaced else.
13293
13294 2002-02-07 Klee Dienes <klee@apple.com>
13295
13296 * fork-inferior.c (fork_inferior): Add '!' to the list of
13297 characters that need to be quoted when building a string for the
13298 shell. Quote '!' specifically with a backslash, since CSH chokes
13299 when trying to evaluate "str!str".
13300
13301 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13302
13303 * rdi-share/host.h: Only provide a typedef for bool if it is not
13304 defined.
13305
13306 2002-02-04 Michael Snyder <msnyder@redhat.com>
13307
13308 * breakpoint.h (enum bptype): Add new overlay event bp type.
13309 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13310
13311 * breakpoint.c (create_internal_breakpoint): New function.
13312 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13313 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13314 (create_thread_event_breakpoint): Ditto.
13315 (create_solib_event_breakpoint): Ditto.
13316 (create_overlay_event_breakpoint): New function.
13317 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13318 (update_breakpoints_after_exec): Delete and re-initialize
13319 overlay event breakpoints after an exec. Add FIXME comment
13320 about longjmp breakpoint.
13321 (print_it_typical): Ignore overlay event breakpoints.
13322 (print_one_breakpoint): Ditto.
13323 (mention): Ditto.
13324 (bpstat_what): Do not stop for overlay event breakpoints.
13325 (delete_breakpoint): Don't delete overlay event breakpoints.
13326 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13327 (breakpoint_re_set): Re-create overlay event breakpoint.
13328
13329 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13330 (overlay_manual_command): Disable overlay breakpoints.
13331 (overlay_off_command): Disable overlay breakpoints.
13332
13333 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13334
13335 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13336 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13337 to here from config/tm-arm.h.
13338 (coff_sym_is_thumb): Make static.
13339 (arm_elf_make_msymbol_special): New function.
13340 (arm_coff_make_msymbol_special): New function.
13341 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13342 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13343 (coff_sym_is_thumb): Delete declaration.
13344 (arm_elf_make_msymbol_special): Declare.
13345 (arm_coff_make_msymbol_special): Declare.
13346 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13347 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13348
13349 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13350
13351 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13352
13353 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13354
13355 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13356 * gdbarch.c gdbarch.h: Regenerate.
13357 * arch-utils.c (default_print_float_info): New function.
13358 * arch-utils.h (default_print_float_info): Prototype it.
13359 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13360 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13361 (PRINT_FLOAT_INFO): Document it.
13362
13363 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13364 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13365 (PRINT_FLOAT_INFO): Define.
13366
13367 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13368
13369 * win32-nat.c (_initialize_check_for_gdb_ini):
13370 Add typecast to sprintf argument to suppress a warning.
13371
13372 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13373
13374 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13375 to allow easier handling of pass state.
13376 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13377 that gives exception name and address.
13378 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13379 and set last_sig value to ourstatus->value.sig. Some missing
13380 exceptions added.
13381 (child_continue): Correctly report continue_status.
13382 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13383 TARGET_SIGNAL_0 (new default value).
13384 (child_resume): consider sig argument passed to decide if
13385 the exception should be passed to debuggee or not.
13386
13387 2002-02-05 Michael Snyder <msnyder@redhat.com>
13388
13389 * regcache.c (fetch_register): Call target_fetch_register
13390 only if we don't call FETCH_PSEUDO_REGISTER.
13391 (store_register): Call target_store_register only if we
13392 don't call STORE_PSEUDO_REGISTER.
13393
13394 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13395
13396 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13397 ELF_MAKE_MSYMBOL_SPECIAL.
13398 * gdbarch.c, gdbarch.h: Regenerate.
13399 * arch-utils.c (default_make_msymbol_special): New function.
13400 * arch-utils.h (default_make_msymbol_special): Export.
13401 * elfread.c (elf_symtab_read): Compile use of
13402 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13403 multiarched.
13404 * coffread.c (coff_symtab_read): Ditto, for
13405 COFF_MAKE_MSYMBOL_SPECIAL.
13406
13407 2002-02-05 Jim Blandy <jimb@redhat.com>
13408
13409 * solib-svr4.c (svr4_truncate_ptr): New function.
13410 (svr4_relocate_section_addresses): Do the address arithmetic with
13411 the appropriate truncation for target addresses, even when
13412 CORE_ADDR is larger than a target address.
13413
13414 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13415
13416 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13417 to (int *).
13418
13419 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13420
13421 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13422 code.
13423
13424 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13425
13426 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13427
13428 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13429
13430 * gdbserver/linux-low.c: Remove unused include files.
13431
13432 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13433
13434 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13435 (read_inferior_memory): Use it.
13436 (write_inferior_memory): Likewise.
13437
13438 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13439
13440 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13441 grubbing through sys_errlist.
13442
13443 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13444
13445 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13446
13447 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13448 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13449
13450 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13451
13452 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13453 (do_sfunc, set_cmd_sfunc): New functions.
13454
13455 * command.h (struct cmd_list_element): Add field func.
13456 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13457 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13458 * cli/cli-decode.h: Ditto.
13459
13460 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13461 (help_all, help_cmd_list): Ditto.
13462 (find_cmd, complete_on_cmdlist): Ditto.
13463 * top.c (execute_command): Ditto.
13464
13465 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13466 function.sfunc.
13467
13468 * infcmd.c (notice_args_read): Fix function signature.
13469
13470 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13471 * cli/cli-decode.c (add_set_cmd): Ditto.
13472 * utils.c (initialize_utils): Ditto.
13473 * maint.c (_initialize_maint_cmds): Ditto.
13474 * infrun.c (_initialize_infrun): Ditto.
13475 * demangle.c (_initialize_demangler): Ditto.
13476 * remote.c (add_packet_config_cmd): Ditto.
13477 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13478 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13479 * proc-api.c (_initialize_proc_api): Ditto.
13480 * kod.c (_initialize_kod): Ditto.
13481 * valprint.c (_initialize_valprint): Ditto.
13482 * top.c (init_main): Ditto.
13483 * infcmd.c (_initialize_infcmd): Ditto.
13484 * corefile.c (_initialize_core): Ditto.
13485 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13486 * arch-utils.c (initialize_current_architecture): Ditto.
13487 (_initialize_gdbarch_utils): Ditto.
13488 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13489
13490 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13491 * wince.c (_initialize_inftarg): Ditto.
13492 * symfile.c (_initialize_symfile): Ditto.
13493 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13494 * language.c (_initialize_language): Ditto.
13495 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13496
13497 2002-02-04 Michael Snyder <msnyder@redhat.com>
13498
13499 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13500
13501 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13502
13503 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13504 Add rules for building the register data files.
13505
13506 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13507
13508 * regformats/regdat.sh: Add braces to the definition of
13509 expedite_regs_${arch}.
13510
13511 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13512
13513 * regformats/regdef.h (struct reg): Add comment describing the
13514 requirements for offset and size fields.
13515
13516 2002-02-04 Andreas Schwab <schwab@suse.de>
13517
13518 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13519 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13520
13521 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13522
13523 * gdbarch.sh (copyright): Update years in generated header.
13524 (SMASH_TEXT_ADDRESS): Add rule.
13525 * gdbarch.h, gdbarch.c: Re-generate.
13526 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13527 * dbxread.c: Likewise.
13528 * dwarfread.c: Likewise.
13529 * elfread.c: Likewise.
13530 * somread.c: Likewise.
13531
13532 * arm-tdep.c (arm_smash_text_address): New function.
13533 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13534
13535 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13536
13537 Add support for hardware watchpoints on win32 native.
13538 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13539 CONTEXT_DEBUG_REGISTERS.
13540 (dr variable): New variable. Static array containing a local copy
13541 of debug registers.
13542 (debug_registers_changed): New variable. Reflects when debug registers
13543 are changed and need to be written to inferior.
13544 (debug_registers_used): New variable. Reflects when any debug register
13545 was set, used when new threads are created.
13546 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13547 i386-nat code.
13548 (thread_rec): Set dr array if id is the thread of current_event .
13549 (child_continue, child_resume): Change the debug registers for all
13550 threads if debug_registers_changed.
13551 (child_add_thread): Change the debug registers if debug_registers_used.
13552 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13553 Link nm.h to new nm-cygwin.h file.
13554 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13555 of hardware registers.
13556
13557 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13558
13559 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13560 Restore behavour broken by 2002-01-20 Andrew Cagney
13561 <ac131313@redhat.com> IEEE_FLOAT removal.
13562
13563 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13564
13565 * c-valprint.c (c_val_print): Pass a proper valaddr to
13566 cp_print_class_method.
13567 * valops.c (search_struct_method): If there is only one method
13568 and args is NULL, return that method.
13569
13570 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13571
13572 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13573 accessing tag_name directly.
13574
13575 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13576
13577 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13578 of accessing tag_name directly.
13579
13580 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13581
13582 PR gdb/280
13583 * gdbtypes.c (replace_type): New function.
13584 * gdbtypes.h (replace_type): Add prototype.
13585 * stabsread.c (read_type): Use replace_type.
13586
13587 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13588
13589 * Makefile.in (memattr.o): Add missing dependencies rule.
13590
13591 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13592
13593 * breakpoint.c (break_at_finish_command): Really export.
13594 (break_at_finish_at_depth_command): Ditto.
13595 (tbreak_at_finish_command): Ditto.
13596 * hppa-tdep.c: Include completer.h.
13597 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13598 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13599
13600 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13601
13602 * utils.c (do_write): New function.
13603 (error_stream): Rewrite combining the code from error_begin and
13604 verror.
13605 (verror): Rewrite using error_stream.
13606 (error_begin): Delete function.
13607
13608 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13609
13610 * utils.c (error_begin): Make static.
13611 * defs.h (error_begin): Delete declaration.
13612
13613 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13614 (decode_line_1): Use cplusplus_error instead of error_begin,
13615 cplusplus_hint and return_to_top_level.
13616 * coffread.c (coff_symfile_read): Use error instead of error_begin
13617 and return_to_top_level.
13618 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13619
13620 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13621
13622 * language.h (type_error, range_error): Make string parameter
13623 constant.
13624 * language.c (warning_pre_print): Delete extern declaration.
13625 * dwarfread.c (warning_pre_print): Ditto.
13626 * language.c (type_error, range_error): Rewrite to use verror and
13627 vwarning instead of warning_begin.
13628
13629 2002-02-01 Michael Snyder <msnyder@redhat.com>
13630
13631 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13632 (set_ignore_count): Move misplaced comment back where it belongs.
13633
13634 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13635
13636 * command.h (NO_FUNCTION): Delete macro.
13637 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13638 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13639 * tracepoint.c (_initialize_tracepoint): Ditto.
13640 * cli/cli-decode.c (add_set_cmd): Ditto.
13641 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13642
13643 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13644
13645 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13646 Update ``this'' pointer when calling virtual functions.
13647
13648 2002-02-01 Michael Snyder <msnyder@redhat.com>
13649
13650 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13651 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13652
13653 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13654
13655 * regformats/reg-arm.dat: New file.
13656 * regformats/reg-i386.dat: New file.
13657 * regformats/reg-ia64.dat: New file.
13658 * regformats/reg-m68k.dat: New file.
13659 * regformats/reg-mips.dat: New file.
13660 * regformats/reg-ppc.dat: New file.
13661 * regformats/reg-sh.dat: New file.
13662 * regformats/regdef.h: New file.
13663 * regformats/regdat.sh: New file.
13664
13665 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13666
13667 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13668 (arm_frame_args_address, arm_frame_locals_address): New functions.
13669 (arm_frame_num_args): New function.
13670 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13671 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13672 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13673
13674 2002-01-31 Michael Snyder <msnyder@redhat.com>
13675
13676 * breakpoint.c (break_at_finish_command): Export.
13677 (break_at_finish_at_depth_command): Export.
13678 (tbreak_at_finish_command): Export.
13679 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13680 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13681 "txbreak" commands, which are HPPA specific.
13682
13683 * printcmd.c (disassemble_command): Remove an ancient
13684 artifact of an old merge.
13685
13686 * symfile.h (enum overlay_debugging_state):
13687 Define enum constant values for overlay mode.
13688 * symfile.c (overlay_debugging): Use enums instead of literals.
13689 (overlay_is_mapped, overlay_auto_command,
13690 overlay_manual_command): Ditto.
13691
13692 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13693 breakpoint_here_p, breakpoint_inserted_here_p,
13694 breakpoint_thread_match, bpstat_stop_status,
13695 describe_other_breakpoints, check_duplicates, clear_command):
13696 Coding standard fixes.
13697
13698 * target.c (target_xfer_memory): Add spaces, coding standard.
13699 (do_xfer_memory): Add missing line to trust-readonly
13700 code: check bfd SEC_READONLY flag for section.
13701
13702 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13703
13704 * PROBLEMS: Fix typo, 5.1->5.1.1.
13705
13706 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13707
13708 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13709 data symbols, since we search based on textlow and texthigh.
13710 (find_pc_sect_symtab): Likewise.
13711
13712 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13713
13714 * defs.h (vwarning): Declare.
13715 * utils.c (vwarning): New function.
13716 (warning): Call vwarning.
13717 (warning_begin): Delete function.
13718
13719 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13720 the warning message.
13721 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13722 warning_begin.
13723
13724 2002-01-30 Michael Snyder <msnyder@redhat.com>
13725
13726 * NEWS: Mention "set trust-readonly-sections" command.
13727 Mention generate-core-file command.
13728
13729 2002-01-15 Michael Snyder <msnyder@redhat.com>
13730
13731 * target.c: New command, "set trust-readonly-sections on".
13732 (do_xfer_memory): Honor the suggestion to trust readonly sections
13733 by reading them from the object file instead of from the target.
13734 (initialize_targets): Register command "set trust-readonly-sections".
13735
13736 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13737
13738 * parse.c (target_map_name_to_register): Simplify, search regs and
13739 pseudo-regs using a single loop.
13740
13741 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13742
13743 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13744
13745 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13746
13747 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13748 * config/i386/i386v42mp.mh: Add i387-nat.o .
13749 * i386v4-nat.c: Include i387-nat.h.
13750 (supply_fpregset): Use i387_supply_fsave.
13751 (fill_fpregset): Use i387_fill_fsave.
13752
13753 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13754
13755 * arm-tdep.c (arm_call_dummy_words): Define.
13756 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13757 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13758 (CALL_DUMMY_WORDS): Define.
13759 (arm_call_dummy_words): Declare.
13760 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13761 (arm_linux_call_dummy_words): Declare.
13762
13763 2002-01-30 Andreas Schwab <schwab@suse.de>
13764
13765 * m68klinux-nat.c: Fix last change to use regcache_collect
13766 instead of referencing registers[] directly.
13767
13768 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13769
13770 * parse.c (target_map_name_to_register): Delete code wrapped in
13771 #ifdef REGISTER_NAME_ALIAS_HOOK.
13772
13773 2002-01-28 Michael Snyder <msnyder@redhat.com>
13774
13775 * regcache.c (legacy_read_register_gen): Need to be able to
13776 read pseudo-register as well as real register.
13777 (legacy_write_register_gen): Ditto.
13778
13779 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13780
13781 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13782 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13783 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13784 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13785 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13786 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13787 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13788 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13789 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13790 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13791 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13792 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13793 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13794 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13795 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13796 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13797 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13798 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13799 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13800 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13801
13802 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13803
13804 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13805 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13806 (initialize_current_architecture): Update target_byte_order using
13807 information from BFD.
13808 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13809 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13810
13811 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13812
13813 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13814 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13815
13816 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13817 #ifdef INVALID_FLOAT.
13818 * infcmd.c (do_registers_info): Ditto.
13819 * values.c (unpack_double): Ditto. Add comment.
13820
13821 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13822 already commented out.
13823
13824 2002-01-26 Andreas Schwab <schwab@suse.de>
13825
13826 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13827 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13828 registers and add support for PTRACE_GETREGS.
13829
13830 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13831
13832 GDB 5.1.1 released from 5.1 branch.
13833 * NEWS: Add 5.1.1 news.
13834 * README: Sync with 5.1 branch.
13835
13836 2002-01-23 Fred Fish <fnf@redhat.com>
13837
13838 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13839 stabstring on initial malloc. Reallocing will copy it for us,
13840 if necessary.
13841
13842 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13843
13844 * Makefile.in (hpread_h): Delete.
13845 (HFILES_NO_SRCDIR): Remove hpread.h.
13846 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13847 (hpread.o): Update dependencies.
13848 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13849
13850 * hp-psymtab-read.c: Remove file.
13851 * hp-symtab-read.c: Remove file.
13852 * hpread.h: Remove file.
13853
13854 * hpread.c: Merge all contents of hp-psymtab-read.c,
13855 hp-symtab-read.c and hpread.h into this file, as it was prior to
13856 January 1999.
13857
13858 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13859 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13860 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13861 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13862
13863 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13864
13865 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13866 fill_gregset): Call gdbarch_tdep() just once, assign result to
13867 variable and use that, instead of calling the function several
13868 times.
13869
13870 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13871
13872 * configure.host: Accept sparcv9 as alias for sparc64.
13873 * configure.tgt: Likewise.
13874
13875 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13876
13877 * solib-aix5.c (build_so_list_from_mapfile)
13878 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13879 arguments is not reversed.
13880 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13881 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13882
13883 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13884
13885 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13886 modified version of obsolete sh_fetch_pseudo_register.
13887 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13888 (sh4_register_read): New function.
13889 (sh_pseudo_register_write): New function. Renamed and modified
13890 version of obsolete sh_store_pseudo_register.
13891 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13892 (sh4_register_write): New function.
13893 (sh_gdbarch_init): Remove setting of gdbarch function
13894 fetch_pseudo_register and store_pseudo_register. Remove setting of
13895 register_convert_to_raw, register_convert_to_virtual,
13896 register_convertible.
13897 (sh_sh4_register_convertible): Delete. No longer needed. All is
13898 taken care by architecture specific functions
13899 register_read/register_write.
13900 (sh_sh4_register_convert_to_virtual): Make static.
13901 (sh_sh4_register_convert_to_raw): Ditto.
13902
13903 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13904
13905 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13906 (floatformat_is_nan, floatformat_mantissa): Ditto.
13907
13908 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13909 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13910 builtin_type_ieee_double_little,
13911 builtin_type_ieee_double_littlebyte_bigword,
13912 builtin_type_m68881_ext, builtin_type_i960_ext,
13913 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13914 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13915 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13916 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13917
13918 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13919
13920 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13921 parameter. Set frameless flag if it exists and depended of
13922 whether the scanned function is frameless or not.
13923 (xstormy16_skip_prologue): If function is frameless, return
13924 result of xstormy16_scan_prologue().
13925 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13926 call.
13927
13928 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13929
13930 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13931 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13932 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13933 sh_sh4_register_byte, sh_sh4_register_raw_size,
13934 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13935 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13936 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13937 sh_store_pseudo_register, sh_do_pseudo_register): Call
13938 gdbarch_tdep() just once, assign result to variable and use that,
13939 instead of calling the function several times.
13940
13941 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13942
13943 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13944 macros instead of LAST_FPU_CTRL_REGNUM.
13945 (store_register): Likewise.
13946
13947 2002-01-21 Jim Blandy <jimb@redhat.com>
13948
13949 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13950 is up-to-date before running the program, not just when a program
13951 exits.
13952
13953 2002-01-21 Fred Fish <fnf@redhat.com>
13954
13955 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13956 when we have found all instructions we are looking for.
13957
13958 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13959
13960 * arm-tdep.c (arm_register_name): New function.
13961 (arm_registers_names): Make static.
13962 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13963 (arm_register_name): Declare.
13964 (REGISTER_NAME): Use it.
13965
13966 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13967 Kevin Buettner <kevinb@redhat.com>
13968
13969 Convert arm targets to new FRAME interface.
13970 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13971 (arm_frame_find_save_regs): Delete.
13972 (arm_frame_init_saved_regs): New.
13973 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13974 Allocate extra_info as required. Convert all uses of fsr.regs
13975 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13976 to use extra_info.
13977 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13978 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13979 (check_prologue_cache, save_prologue_cache): Likewise.
13980 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13981 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13982 (FRAME_FIND_SAVED_REGS): Delete.
13983 (arm_frame_find_saved_regs): Delete prototype.
13984 (arm_frame_init_saved_regs): New prototype.
13985 (FRAME_INIT_SAVED_REGS): Define.
13986
13987 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13988
13989 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13990
13991 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13992
13993 From Jeff Law <law@redhat.com>:
13994 * infttrace.c: Include <sys/pstat.h>.
13995 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13996 exec file if the ttrace equivalent fails.
13997
13998 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13999
14000 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14001 (closeLogFile): Ditto.
14002
14003 2002-01-20 Michael Chastain <mec@shout.net>
14004
14005 * top.c (print_gdb_version): Bump copyright year to 2002.
14006
14007 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14008
14009 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14010 Zannoni and Eli Zaretskii.
14011
14012 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14013
14014 * buildsym.c: Update copyright years.
14015 * c-typeprint.c: Likewise.
14016 * dwarf2read.c: Likewise.
14017 * f-typeprint.c: Likewise.
14018 * gdbtypes.c: Likewise.
14019 * gdbtypes.h: Likewise.
14020 * hp-symtab-read.c: Likewise.
14021 * hpread.c: Likewise.
14022 * mdebugread.c: Likewise.
14023 * p-typeprint.c: Likewise.
14024
14025 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14026
14027 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14028 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14029 byte-order selectable.
14030 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14031 * arch-utils.c: Ditto.
14032 (set_endian): Ditto.
14033 (set_endian_from_file): Ditto.
14034 * gdbserver/low-sim.c (create_inferior): Ditto.
14035 * gdbarch.sh: Ditto.
14036 * gdbarch.h: Re-generate.
14037 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14038 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14039 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14040 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14041 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14042 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14043 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14044 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14045 macro definition.
14046 * config/mips/tm-wince.h: Remove #undef of macro
14047 TARGET_BYTE_ORDER_SELECTABLE.
14048 * config/sh/tm-wince.h: Ditto.
14049
14050 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14051
14052 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14053 member function fields. Add accessor macro
14054 TYPE_FN_FIELD_ARTIFICIAL.
14055 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14056 * c-typeprint.c (c_type_print_base): Skip artificial member
14057 functions.
14058
14059 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14060
14061 * f-typeprint.c: Delete unused function f_type_print_args.
14062 * p-typeprint.c: Delete unused function pascal_type_print_args.
14063
14064 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14065
14066 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14067 comment. Add ``artificial'' to ``union field_location''.
14068
14069 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14070
14071 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14072 * mdebugread.c (parse_symbol): Likewise.
14073 * stabsread.c (define_symbol): Likewise.
14074 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14075 initializing TYPE_FIELD_BITPOS to n (obsolete).
14076 (hpread_doc_function_type): Likewise.
14077 * hpread.c (hpread_function_type): Likewise.
14078
14079 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14080
14081 * configure.in (host_makefile_frag): Only require a host makefile
14082 fragment when a native build.
14083 * configure: Re-generate.
14084
14085 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14086
14087 * doublest.h (floatformat_from_type): Declare.
14088 * doublest.c (floatformat_from_type): New function.
14089 (convert_typed_floating): Use.
14090
14091 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14092 call to function floatformat_from_type.
14093
14094 * gdbarch.sh (IEEE_FLOAT): Delete.
14095 * gdbarch.h, gdbarch.c: Re-generate.
14096 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14097 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14098 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14099 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14100 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14101 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14102 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14103 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14104 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14105 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14106 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14107 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14108
14109 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14110 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14111 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14112 * sh-tdep.c (sh_gdbarch_init): Ditto.
14113 * mips-tdep.c (mips_gdbarch_init): Ditto.
14114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14115 * cris-tdep.c (cris_gdbarch_init): Ditto.
14116
14117 2002-01-20 Jiri Smid <smid@suse.cz>
14118
14119 * configure.host, configure.tgt: Support x86-64.
14120 * NEWS: Note new target x86-64.
14121
14122 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14123 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14124 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14125 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14126 x86-64-linux-nat.o): Fix dependencies.
14127
14128 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14129
14130 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14131 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14132 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14133 * config/sparc/xm-sun4os4.h: Delete file.
14134 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14135
14136 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14137
14138 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14139 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14140 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14141 * config/i386/i386lynx.mh (XM_FILE): Delete.
14142 * config/rs6000/xm-rs6000ly.h: Delete file.
14143 * config/sparc/xm-sparclynx.h: Delete file.
14144 * config/m68k/xm-m68klynx.h: Delete file.
14145 * config/i386/xm-i386lynx.h: Delete file.
14146 * config/xm-lynx.h: Delete file.
14147 * config/djgpp/fnchange.lst: Update.
14148
14149 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14150
14151 * alpha-tdep.c (alpha_register_byte): New function.
14152 (alpha_register_raw_size): Ditto.
14153 (alpha_register_virtual_size): Ditto.
14154 (alpha_skip_prologue_internal): Renamed from
14155 alpha_skip_prologue.
14156 (alpha_skip_prologue): New version that calls
14157 alpha_skip_prologue_internal.
14158 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14159 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14160 second argument from alpha_skip_prologue.
14161 (REGISTER_BYTE): Use alpha_register_byte.
14162 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14163 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14164 (FRAMELESS_FUNCTION_INVOCATION): Use
14165 generic_frameless_function_invocation_not.
14166 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14167 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14168
14169 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14170
14171 * config/mips/xm-news-mips.h: Delete file.
14172 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14173
14174 * config/m88k/xm-m88k.h: Delete file.
14175 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14176 * config/m88k/xm-delta88v4.h: Ditto.
14177 * config/m88k/xm-delta88.h: Ditto.
14178
14179 * config/alpha/xm-fbsd.h: Delete file.
14180 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14181
14182 * config/sparc/xm-sparc.h: Delete file.
14183 * Makefile.in (xm-sun4os4.h): Delete dependency.
14184 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14185 * config/sparc/xm-sun4os4.h: Ditto.
14186 * config/sparc/xm-linux.h: Ditto.
14187
14188 * config/i386/xm-windows.h: Delete file.
14189
14190 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14191
14192 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14193 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14194
14195 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14196
14197 * alpha-tdep.c (alpha_call_dummy_words): New.
14198 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14199 (CALL_DUMMY_P): Define.
14200 (CALL_DUMMY_WORDS): Define.
14201 (SIZEOF_CALL_DUMMY_WORDS): Define.
14202
14203 2002-01-19 Per Bothner <per@bothner.com>
14204
14205 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14206 isn't NULL, which can happen with some gcj-3.x-produced code.
14207
14208 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14209
14210 * alpha-tdep.c (alpha_register_virtual_type): New function.
14211 (alpha_init_frame_pc_first): Ditto.
14212 (alpha_fix_call_dummy): Ditto.
14213 (alpha_store_struct_return): Ditto.
14214 (alpha_extract_struct_value_address): Ditto.
14215 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14216 alpha_register_virtual_type.
14217 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14218 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14219 alpha_extract_struct_value_address.
14220 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14221 (INIT_FRAME_PC): Use init_frame_pc_noop.
14222 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14223
14224 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14225
14226 * i386gnu-nat.c: Include "i386-tdep.h".
14227 (fetch_fpregs): Simplify code dealing with uninitialized floating
14228 point states such that it doesn't require FP7_REGNUM.
14229
14230 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14231
14232 * alpha-tdep.c (frame_extra_info): New.
14233 (alpha_find_saved_regs): Make static. Use
14234 frame->extra_info.
14235 (alpha_frame_init_saved_regs): New function.
14236 (alpha_frame_saved_pc): Use frame->extra_info.
14237 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14238 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14239 (init_extra_frame_info): Rename to...
14240 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14241 (alpha_print_extra_frame_info): New function.
14242 (alpha_frame_locals_address): Ditto.
14243 (alpha_frame_args_address): Ditto.
14244 (alpha_pop_frame): Use frame->extra_info.
14245 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14246 alpha_frame_args_address.
14247 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14248 (alpha_find_saved_regs): Remove prototype.
14249 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14250 (EXTRA_FRAME_INFO): Remove.
14251 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14252 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14253
14254 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14255
14256 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14257 (alpha_cannot_fetch_register): Ditto.
14258 (alpha_cannot_store_register): Ditto.
14259 (alpha_register_convertible): Ditto.
14260 (alpha_use_struct_convention): Ditto.
14261 * config/alpha/tm-alpha.h: Update copyright years.
14262 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14263 (INNER_THAN): Use core_addr_lessthan.
14264 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14265 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14266 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14267 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14268 (FRAME_CHAIN): Remove unnecessary cast.
14269
14270 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14271
14272 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14273 obsolete.
14274
14275 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14276
14277 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14278 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14279 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14280 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14281 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14282 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14283 * x86-64-linux-nat.c: Ditto.
14284
14285 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14286
14287 * alpha-tdep.c (alpha_register_name): New function.
14288 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14289 (REGISTER_NAME): Define.
14290
14291 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14292
14293 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14294
14295 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14296
14297 * alpha-tdep.c: Update copyright years.
14298 (alpha_next_pc): New function.
14299 (alpha_software_single_step): Ditto.
14300 * config/alpha/tm-alpha.h: Add prototype for
14301 alpha_software_single_step.
14302
14303 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14304
14305 * alphabsd-nat.c: Update copyright years.
14306 (fill_gregset): Use regcache_collect.
14307 (fill_fpregset): Likewise.
14308 (fetch_inferior_registers): Only fetch integer registers
14309 if requested to do so.
14310 (store_inferior_registers): Only store integer registers
14311 if requested to do so.
14312
14313 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14314
14315 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14316 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14317 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14318 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14319 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14320 * config/arm/linux.mh (XDEPFILES): Delete.
14321 * config/arm/nbsd.mh (XDEPFILES): Delete.
14322 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14323 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14324 * config/i386/i386m3.mh (XDEPFILES): Delete.
14325 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14326 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14327 * config/i386/fbsd.mh (XDEPFILES): Delete.
14328 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14329 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14330 * config/i386/i386v4.mh (XDEPFILES): Delete.
14331 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14332 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14333 * config/i386/i386aix.mh (XDEPFILES): Delete.
14334 * config/i386/go32.mh (XDEPFILES): Delete.
14335 * config/i386/cygwin.mh (XDEPFILES): Delete.
14336 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14337 * config/i386/i386mach.mh (XDEPFILES): Delete.
14338 * config/i386/i386v32.mh (XDEPFILES): Delete.
14339 * config/i386/linux.mh (XDEPFILES): Delete.
14340 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14341 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14342 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14343 * config/i386/i386sco.mh (XDEPFILES): Delete.
14344 * config/i386/i386v.mh (XDEPFILES): Delete.
14345 * config/i386/nbsd.mh (XDEPFILES): Delete.
14346 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14347 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14348 * config/i386/symmetry.mh (XDEPFILES): Delete.
14349 * config/i386/obsd.mh (XDEPFILES): Delete.
14350 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14351 * config/ia64/linux.mh (XDEPFILES): Delete.
14352 * config/ia64/aix.mh (XDEPFILES): Delete.
14353 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14354 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14355 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14356 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14357 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14358 * config/m68k/linux.mh (XDEPFILES): Delete.
14359 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14360 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14361 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14362 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14363 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14364 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14365 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14366 * config/m88k/delta88.mh (XDEPFILES): Delete.
14367 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14368 * config/m88k/m88k.mh (XDEPFILES): Delete.
14369 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14370 * config/mips/linux.mh (XDEPFILES): Delete.
14371 * config/mips/irix6.mh (XDEPFILES): Delete.
14372 * config/mips/irix5.mh (XDEPFILES): Delete.
14373 * config/mips/irix4.mh (XDEPFILES): Delete.
14374 * config/mips/irix3.mh (XDEPFILES): Delete.
14375 * config/mips/decstation.mh (XDEPFILES): Delete.
14376 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14377 (NATDEPFILES): Move core-aout.o to here.
14378 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14379 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14380 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14381 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14382 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14383 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14384 * config/pa/hpux11.mh (XDEPFILES): Delete.
14385 * config/powerpc/aix.mh (XDEPFILES): Delete.
14386 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14387 * config/powerpc/linux.mh (XDEPFILES): Delete.
14388 * config/romp/rtbsd.mh: Rename XDEPFILES.
14389 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14390 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14391 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14392 * config/s390/s390.mh (XDEPFILES): Delete.
14393 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14394 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14395 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14396 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14397 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14398 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14399 * config/sparc/linux.mh (XDEPFILES): Delete.
14400 * config/vax/vaxult.mh (XDEPFILES): Delete.
14401 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14402 * Makefile.in (DEPFILES): Remove XDEPFILES.
14403
14404 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14405
14406 * utils.c (internal_verror): Fix comments, default is yes not no.
14407 Update queries to match. Default to quit and dump core.
14408
14409 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14410
14411 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14412 copyright.
14413 * defs.h, event-top.c, gdbcmd.h: Ditto.
14414 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14415 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14416 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14417 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14418 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14419 * mi/mi-main.c:Ditto.
14420
14421 * stack.c, symfile.c: Update copyright.
14422
14423 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14424
14425 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14426 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14427 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14428 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14429
14430 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14431
14432 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14433 * gdbserver/low-lynx.c (myattach): Likewise.
14434 * gdbserver/low-nbsd.c (myattach): Likewise.
14435 * gdbserver/low-sim.c (myattach): Likewise.
14436 * gdbserver/low-sparc.c (myattach): Likewise.
14437 * gdbserver/low-sun3.c (myattach): Likewise.
14438
14439 * gdbserver/low-linux.c (myattach): New function.
14440
14441 * gdbserver/server.c (attach_inferior): New function.
14442 (main): Handle "--attach".
14443
14444 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14445
14446 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14447 maintainer.
14448
14449 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14450
14451 * c-typeprint.c (is_type_conversion_operator): Add additional
14452 check for non-conversion operators.
14453
14454 2002-01-15 Michael Snyder <msnyder@redhat.com>
14455
14456 * linux-proc.c: Add "info proc" command, a la procfs.c.
14457 (read_mapping): New function, abstract and re-use code.
14458 (linux_find_memory_regions): Use new func read_mapping.
14459 (linux_info_proc_cmd): New function, implement "info proc".
14460 (_initialize_linux_proc): Add new command "info proc".
14461
14462 2002-01-15 Michael Snyder <msnyder@redhat.com>
14463
14464 * symfile.c (generic_load): Use bfd_map_over_sections method
14465 instead of manipulating bfd structure members directly.
14466 (add_section_size_callback): New function, bfd sections callback
14467 used by generic_load.
14468 (load_sections_callback): New function, bfd sections callback
14469 used by generic_load.
14470
14471 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14472
14473 [Based on work by Jim Blandy]
14474 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14475 (builtin_type_vec128): Export.
14476 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14477 types.
14478 (builtin_type_vec128): New builtin type for 128 bit vector
14479 registers.
14480 (build_gdbtypes): Initialize builtin_type_v16qi and
14481 builtin_type_v8hi. Create the vec128 register builtin type
14482 structure.
14483 (build_builtin_type_vec128): New function.
14484 (_initialize_gdbtypes): Register builtin_type_v16qi and
14485 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14486 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14487 AltiVec register to new builtin type.
14488
14489 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14490
14491 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14492 to make_cv_type.
14493
14494 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14495
14496 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14497 CLEAN_UP_REGISTER_VALUE.
14498 * regcache.c (supply_register): Update only call.
14499
14500 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14501
14502 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14503 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14504 a29k-*-vxworks* targets as obsolete.
14505
14506 2002-01-14 Michael Snyder <msnyder@redhat.com>
14507
14508 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14509 until we can resolve portability issues.
14510 * gregset.h: Remove references to fpxregs.
14511 * gcore.c (gcore_command): Initialize note_sec to NULL.
14512
14513 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14514
14515 * signals.c (target_signal_to_name): Rewrite. Only use
14516 signals[].name when in bounds and non-NULL.
14517
14518 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14519
14520 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14521 * signals.c (target_signal_to_name): Verify that SIG is within the
14522 bounds of the signals array.
14523
14524 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14525
14526 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14527
14528 2002-01-13 Keith Seitz <keiths@redhat.com>
14529
14530 * stack.c (print_frame_info_base): Print the frame's pc
14531 only if when print_frame_info_listing_hook is not defined.
14532
14533 2002-01-13 Keith Seitz <keiths@redhat.com>
14534
14535 * varobj.c (varobj_set_value): Make sure that there were no
14536 errors evaluating the object before attempting to set its
14537 value.
14538 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14539 so this offset adjustment is no longer necessary.
14540 (create_child): Don't set the error flag if the child is
14541 a CPLUS_FAKE_CHILD.
14542 (value_of_child): If value_fetch_lazy fails, return NULL
14543 so that callers will be notified that an error occurred.
14544 (c_value_of_variable): Delay check of variable's validity
14545 until later. We actually want all structs and unions to have
14546 the value "{...}".
14547 Do not return "???" for variables which could not be evaluated.
14548 This error condition must be returned to the caller so that it
14549 can get the error condition from gdb.
14550 (cplus_name_of_child): Adjust index for vptr before figuring
14551 out the name of the child.
14552 (cplus_value_of_child): If a child's (real) parent is not valid,
14553 don't even bother trying to give a value for it. Just return
14554 an error. Change all instances in this function.
14555 (cplus_type_of_child): If our parent is one of the "fake"
14556 parents, we need to get at the type of the real parent, and
14557 derive the child's true type using this information.
14558
14559 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14560
14561 From 2002-01-09 John Marshall <johnm@falch.net>:
14562 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14563 sources.redhat.com, and tweak some related URLs which had
14564 suffered from linkrot.
14565
14566 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14567
14568 From Jeff law:
14569 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14570 structures passed in registers.
14571
14572 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14573
14574 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14575 white space which prevented compilation. Reported by DSK
14576 <dsk@student.unsw.edu.au>.
14577
14578 2002-01-11 Michael Snyder <msnyder@redhat.com>
14579
14580 * symfile.c (build_section_addr_info_from_section_tab):
14581 Use bfd access method instead of manipulating bfd directly.
14582 (syms_from_objfile): Ditto.
14583 (simple_overlay_update_1): Ditto.
14584 (simple_overlay_update): Ditto.
14585 (generic_load): Ditto.
14586 (overlay_unmapped_address): FIXME comment, bfd access methods.
14587 (sections_overlap): FIXME comment, bfd access methods.
14588 (pc_in_mapped_range): FIXME comment, bfd access methods.
14589 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14590 (section_is_mapped): FIXME comment, bfd access methods.
14591 (section_is_overlay): FIXME comment, bfd access methods.
14592
14593 * symfile.c (generic_load): Whitespace and long line cleanups.
14594 Remove duplicate variable, change several local variables to
14595 more appropriate data types.
14596 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14597
14598 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14599
14600 From Peter Schauer:
14601 * language.c (longest_local_hex_string_custom): Use phex_nz to
14602 convert NUM to a hex string.
14603
14604 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14605
14606 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14607 the function.
14608 Update Copyright year.
14609
14610 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14611
14612 * language.c (longest_raw_hex_string): Delete unused function.
14613
14614 2002-01-11 Petr Sorfa <petrs@caldera.com>
14615
14616 * MAINTAINERS (write-after-approval): Add myself.
14617 * dwarf2read.c (read_tag_string_type): Handling of
14618 DW_AT_byte_size.
14619 (read_tag_string_type): FORTRAN fix to prevent propagation of
14620 first string size.
14621 (set_cu_language): Handling of DW_LANG_Fortran95
14622
14623 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14624
14625 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14626 GETPID(inferior_ptid).
14627 (store_inferior_registers): Likewise.
14628
14629 2002-01-10 Jason Merrill <jason@redhat.com>
14630
14631 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14632 Fix DW_OP_minus.
14633
14634 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14635
14636 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14637 and bfd/elf32-sh-nbsd.c.
14638
14639 2002-01-10 Michael Snyder <msnyder@redhat.com>
14640
14641 * NEWS: Mention --pid and corefile/proc-id behavior change.
14642
14643 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14644 * gcore.c: Include cli/cli-decode.h instead of command.h.
14645
14646 * main.c (captured_main): Add new command line option "--pid".
14647 If the second command line argument (following the symbol-file)
14648 begins with a digit, try to attach to it before trying to open
14649 it as a corefile.
14650 (print_gdb_help): Document the "--pid" argument.
14651
14652 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14653
14654 * completer.c (command_completer): New function.
14655
14656 * completer.h <command_completer>: Add prototype.
14657
14658 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14659 completer for the "help" command.
14660
14661 2002-01-09 Jason Merrill <jason@redhat.com>
14662
14663 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14664
14665 2002-01-09 Michael Snyder <msnyder@redhat.com>
14666
14667 * i386-linux-nat.c (fill_fpxregset): Make global.
14668 (store_fpxregset): Ditto.
14669
14670 * gregset.h (gdb_fpxregset_t): Define.
14671 (supply_fpxregset): Prototype.
14672 (fill_fpxregset): Prototype.
14673
14674 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14675
14676 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14677
14678 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14679 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14680 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14681
14682 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14683
14684 * MAINTAINERS: Update target maintainer rules so that any
14685 Maintainer can approve a tested patch for a maintenance-only
14686 target.
14687
14688 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14689
14690 * MAINTAINERS (write-after-approval): Add myself.
14691
14692 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14693 IN_SIGTRAMP.
14694
14695 2002-01-08 Michael Snyder <msnyder@redhat.com>
14696
14697 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14698 real name of the executable, rather than the /proc name.
14699
14700 2002-01-03 Michael Snyder <msnyder@redhat.com>
14701
14702 Implement a "generate-core-file" command in gdb, save target state.
14703 * gcore.c: New file. Implement new command 'generate-core-file'.
14704 Save a corefile image of the current state of the inferior.
14705 * linux-proc.c: Add linux-specific code for saving corefiles.
14706 * target.h (struct target_ops): Add new target vectors for saving
14707 corefiles; to_find_memory_regions and to_make_corefile_notes.
14708 (target_find_memory_regions): New macro.
14709 (target_make_corefile_notes): New macro.
14710 * target.c (update_current_target): Inherit new target methods.
14711 (dummy_find_memory_regions): New place-holder method.
14712 (dummy_make_corefile_notes): New place-holder method.
14713 (init_dummy_target): Initialize new dummy target vectors.
14714 * exec.c (exec_set_find_memory_regions): New function.
14715 Allow the exec_ops vector for memory regions to be taken over.
14716 (exec_make_note_section): New function, target vector method.
14717 * defs.h (exec_set_find_memory_regions): Export prototype.
14718 * procfs.c (proc_find_memory_regions): New function, corefile method.
14719 (procfs_make_note_section): New function, corefile method.
14720 (init_procfs_ops): Set new target vector pointers.
14721 (find_memory_regions_callback): New function.
14722 (procfs_do_thread_registers): New function.
14723 (procfs_corefile_thread_callback): New function.
14724 * sol-thread.c (sol_find_memory_regions): New function.
14725 (sol_make_note_section): New function.
14726 (init_sol_thread_ops): Initialize new target vectors.
14727 * inftarg.c (inftarg_set_find_memory_regions): New function.
14728 Allow to_find_memory_regions vector to be taken over.
14729 (inftarg_set_make_corefile_notes): New function.
14730 Allow to_make_corefile_notes vector to be taken over.
14731 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14732 interface layer if not target_has_execution (may be a corefile).
14733 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14734 * config/sparc/sun4sol2.mh: Ditto.
14735 * config/alpha/alpha-linux.mh: Ditto.
14736 * config/arm/linux.mh: Ditto.
14737 * config/i386/x86-64linux.mh: Ditto.
14738 * config/ia64/linux.mh: Ditto.
14739 * config/m68k/linux.mh: Ditto.
14740 * config/mips/linux.mh: Ditto.
14741 * config/powerpc/linux.mh: Ditto.
14742 * config/sparc/linux.mh: Ditto.
14743
14744 2002-01-07 Michael Snyder <msnyder@redhat.com>
14745
14746 * arm-linux-nat.c: Remove references to regcache.c internal data
14747 (registers[] and register_valid[]).
14748
14749 2002-01-07 Michael Snyder <msnyder@redhat.com>
14750
14751 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14752 so that attaching to a pid will automatically read the process's
14753 symbol file and shlibs.
14754 * Makefile.in: Add rule for linux-proc.o.
14755 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14756 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14757 * config/arm/linux.mh: Ditto.
14758 * config/i386/linux.mh: Ditto.
14759 * config/i386/x86-64linux.mh: Ditto.
14760 * config/ia64/linux.mh: Ditto.
14761 * config/m68k/linux.mh: Ditto.
14762 * config/mips/linux.mh: Ditto.
14763 * config/powerpc/linux.mh: Ditto.
14764 * config/sparc/linux.mh: Ditto.
14765
14766 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14767
14768 * win32-nat.c: Add i386-tdep.h dependency.
14769
14770 2002-01-07 Michael Snyder <msnyder@redhat.com>
14771
14772 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14773 instead of bfd_get_arch_size. Don't bail out just because
14774 there's no exec_bfd.
14775
14776 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14777 * p-valprint.c (pascal_object_print_value): Ditto.
14778 * somread.c (som_symtab_read): Ditto.
14779 * symfile.c (simple_free_overlay_region_table): Ditto.
14780 * valops.c (value_assign): Ditto.
14781
14782 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14783 use tilde_expand and strerror for opening save-tracepoints file.
14784
14785 * thread-db.c (thread_db_new_objfile): Indendation fix.
14786
14787 * infptrace.c (GDB_MAX_ALLOCA): New define.
14788 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14789 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14790 can be overridden with whatever value is appropriate to the host).
14791 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14792 alloca to allocate potentially large buffer.
14793 * rs6000-nat.c (child_xfer_memory): Ditto.
14794 * symm-nat.c (child_xfer_memory): Ditto.
14795 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14796
14797 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14798
14799 From Nick Clifton <nickc@redhat.com>
14800 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14801
14802 2002-01-07 Michael Snyder <msnyder@redhat.com>
14803
14804 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14805 Don't use exec_bfd if it's NULL.
14806
14807 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14808
14809 * valops.c (value_arg_coerce): Fix formatting.
14810
14811 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14812
14813 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14814 * gnu-nat.c: Ditto.
14815
14816 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14817
14818 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14819 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14820 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14821 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14822 z8k-coff have not been multi-arched. Update z8k-coff build
14823 status.
14824
14825 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14826
14827 * MAINTAINERS: Mark a29k target as obsolete.
14828 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14829 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14830 comments.
14831 * NEWS: Note that a29k targets are obsolete.
14832 * a29k-tdep.c: Mark as obsolete.
14833 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14834 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14835 a29k-*-vxworks* targets as obsolete.
14836 * remote-adapt.c: Obsolete.
14837 * remote-eb.c: Obsolete.
14838 * remote-mm.c: Obsolete.
14839 * remote-udi.c: Obsolete.
14840 * config/a29k/a29k-udi.mt: Obsolete.
14841 * config/a29k/a29k.mt: Obsolete.
14842 * config/a29k/tm-a29k.h: Obsolete.
14843 * config/a29k/tm-vx29k.h: Obsolete.
14844 * config/a29k/vx29k.mt: Obsolete.
14845
14846 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14847
14848 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14849 with BFD_ENDIAN_BIG.
14850
14851 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14852
14853 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14854 * configure, config.in: Re-generate.
14855 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14856 * defs.h: Do not include <endian.h>.
14857
14858 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14859
14860 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14861 * config.in: Regenerate.
14862 * configure.in: Update copyright years.
14863 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14864 * configure: Regenerate.
14865 * i386bsd-nat.c: Update copyright years.
14866 (fill_gregset): Use regcache_collect.
14867 (fetch_inferior_registers): Only fetch integer registers
14868 if requested to do so. Add support for XMM registers
14869 using PT_GETXMMREGS.
14870 (store_inferior_registers): Only store integer registers
14871 if requested to do so. Add support for XMM registers
14872 using PT_SETXMMREGS.
14873 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14874 (store_inferior_registers): Remove.
14875 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14876 (fetch_elfcore_registers): New function.
14877 (i386nbsd_elfcore_fns): New.
14878 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14879 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14880 i386bsd-nat.o.
14881 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14882 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14883 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14884 * config/i386/tm-nbsd.h: Update copyright years.
14885 (HAVE_SSE_REGS): Define.
14886 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14887 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14888 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14889 (SIGCONTEXT_PC_OFFSET): Remove.
14890 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14891
14892 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14893
14894 * configure.tgt: Remove powerpc-*-macos* target.
14895 * config/m68k/xm-mpw.h: Delete file.
14896 * config/xm-mpw.h: Delete file.
14897 * ser-mac.c: Delete file.
14898 * mpw-make.sed: Delete file.
14899 * mpw-config.in: Delete file.
14900 * mac-xdep.c: Delete file.
14901 * mac-gdb.r: Delete file.
14902 * mac-defs.h: Delete file.
14903 * mac-nat.c: Delete file.
14904 * config/powerpc/macos.mh: Delete file.
14905 * config/powerpc/macos.mt: Delete file.
14906 * config/powerpc/nm-macos.h: Delete file.
14907 * config/powerpc/tm-macos.h: Delete file.
14908 * source.c (openp, open_source_file): Remove obsolete code.
14909 * top.c (gdb_readline): Ditto.
14910 * utils.c (query): Ditto.
14911 * event-top.c (display_gdb_prompt): Ditto.
14912 * Makefile.in (ser-mac.o): Delete obsolete target.
14913 * NEWS: Update.
14914
14915 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14916
14917 * defs.h (BIG_ENDIAN): Delete macro definition.
14918 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14919 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14920 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14921 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14922 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14923 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14924 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14925 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14926 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14927 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14928 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14929 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14930 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14931 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14932 * gdbarch.c: Re-generate.
14933
14934 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14935
14936 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14937 for core files.
14938
14939 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14940
14941 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14942
14943 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14944
14945 * value.h (value_ptr): Delete typedef.
14946
14947 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14948
14949 * i386nbsd-nat.c: Update copyright years.
14950 Include i386-tdep.h.
14951
14952 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14953
14954 * stabsread.c: Update copyright years.
14955
14956 From Debashis Mahata <debashis.mahata@wipro.com>:
14957 (read_struct_fields): Deal with Sun C compiler erroneous stab
14958 output for structs and unions.
14959 Fix PR gdb/269.
14960
14961 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14962
14963 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14964 prototype.
14965
14966 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14967
14968 * cp-abi.c: Fix whitespace.
14969 (baseclass_offset): New wrapper function.
14970 * cp-abi.h (baseclass_offset): Add prototype.
14971 (struct cp_abi_ops): Add baseclass_offset pointer.
14972
14973 * valops.c (vb_match): Move to...
14974 * gnu-v2-abi.c (vb_match): here.
14975 * valops.c (baseclass_offset): Move to...
14976 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14977
14978 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14979
14980 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14981 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14982 * hpacc-abi.c (init_hpacc_ops): Likewise.
14983
14984 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14985
14986 * valops.c (find_overload_match): Accept obj as a
14987 reference parameter. Update it before returning.
14988 * value.h (find_overload_match): Update prototype.
14989 * eval.c (evaluate_subexp_standard): Pass object to
14990 find_overload_match by reference.
14991
14992 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14993
14994 * valarith.c: Replace value_ptr with struct value pointer. Remove
14995 register attribute from value declarations.
14996 * valops.c: Ditto.
14997 * value.h: Ditto.
14998 * scm-lang.c (scm_lookup_name): Ditto.
14999
15000 2002-01-03 Michael Snyder <msnyder@redhat.com>
15001
15002 Abstract the functionality of iterating over mapped memory
15003 regions into a general purpose iterator function.
15004 * procfs.c (iterate_over_mappings): New function, general purpose
15005 iterator for memory sections.
15006 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15007 (solib_mappings_callback): New function, callback for above.
15008 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15009 (info_mappings_callback): New function, callback for above.
15010
15011 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15012
15013 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15014
15015 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15016 * i386-tdep.c: Include "elf-bfd.h".
15017 (process_note_abi_tag_sections): New function.
15018 (i386_gdbarch_init): Add code to recognize various OS/ABI
15019 combinations.
15020
15021 * maint.c (_initialize_maint_cmds): Add missing \ in
15022 string-literal.
15023
15024 For older changes see ChangeLog-2001
15025 \f
15026 Local Variables:
15027 mode: change-log
15028 left-margin: 8
15029 fill-column: 74
15030 version-control: never
15031 End:
This page took 0.351831 seconds and 4 git commands to generate.