12002-12-31  Mark Kettenis  <kettenis@gnu.org>
2
3	* gdb_dirent.h: Cleanup and update code to match the example in
4	the Autoconf manual.
5	* configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
6	sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
7	* configure: Regenerated.
8
92002-12-30  Adam Fedor  <fedor@gnu.org>
10
11	* objc-exp.y (parse_number): Cast sscanf arguments to proper type.
12	(yylex): Initialize c to avoid uninitialized warning.
13
142002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
15
16	* doc/fdl.texi: Revert the last change.
17
182002-12-29  Mark Kettenis  <kettenis@gnu.org>
19
20	* tracepoint.c (ISATTY): Removed.
21
222002-12-26  J. Brobecker  <brobecker@gnat.com>
23
24	Continuing work to convert the hppa targets to multiarch partil.
25
26	* hppa-tdep.c: Add some missing forward declarations.
27	(frameless_function_invocation): Prefix the function name
28	by "hppa_" to avoid polluting the namespace.  Update all calls
29	to use the new function name.
30	(saved_pc_after_call): Ditto.
31	(init_extra_frame_info): Ditto.
32	(frame_chain): Ditto.
33	(push_dummy_frame): Ditto.
34	(target_read_pc): Ditto.
35	(target_write_pc): Ditto.
36	(in_solib_call_trampoline): Ditto.
37	(in_solib_return_trampoline): Ditto.
38	(skip_trampoline_code): Ditto.
39	(hppa_read_fp): New function, renamed from target_read_fp.
40	(hppa_target_read_fp): New function, using hppa_read_fp.
41	This function conforms to the function profile for the
42	READ_FP gdbarch method.
43	(hppa_extract_struct_value_address): New function, extracted
44	from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
45	macro.
46	(hppa_frame_num_args): New function.
47	(hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
48
49	* config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
50	inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
51	for the switch to multiarch partial.
52	Update some of the macros definitions to match some changes
53	described above in the name of the function they are calling.
54	(PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
55	not be straightforward to convert. Do now wrap it inside
56	"#if !... #endif" to remember that this macro has still not
57	been taken care of.
58	(FIX_CALL_DUMMY): Likewise.
59
602002-12-26  J. Brobecker  <brobecker@gnat.com>
61
62	Continuing work to convert the hppa targets to multiarch partial.
63
64	* hppa-tdep.c (hppa_register_raw_size): New function replacing
65	the body of macro REGISTER_RAW_SIZE.
66	* hppa-hpux-tdep.c: Add new functions replacing macro bodies from
67	config/pa/tm-hppah.h. These functions will be used to initialize
68	the gdbarch structure.
69	(hppa_hpux_pc_in_sigtramp): New function.
70	(hppa_hpux_frame_saved_pc_in_sigtramp): New function.
71	(hppa_hpux_frame_base_before_sigtramp): New function.
72	(hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
73	Add gdbcore.h #include.
74	* config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
75	of this gdbarch-eligible macro to a call to the new associated
76	function.
77	* config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
78	(FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
79	into a call to the new associated function.
80	(FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
81	(FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
82	* Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
83
842002-12-24  David Carlton  <carlton@math.stanford.edu>
85
86	* config/sparc/tm-sparc.h: Delete duplicate definition of
87	DEPRECATED_PC_IN_CALL_DUMMY.
88
892002-12-24  Kevin Buettner  <kevinb@redhat.com>
90
91	* Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
92	$(gdb_assert_h).
93	* configure.tgt: Recognize mips64*-*-linux*.
94	* mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
95	(supply_32_bit_reg): New function.
96	(supply_gregset): Call supply_32bit_reg() instead of supply_register().
97	(fill_gregset): Use regcache_collect() instead of
98	deprecated_registers[].
99	(register_addr): Change name to mips_linux_register_addr().
100	(MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
101	(MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
102	(MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
103	(MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
104	(MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
105	(MIPS64_LINUX_JB_PC): New defines.
106	(mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
107	(mips64_elf_fpregset_t): New typedefs.
108	(mips64_linux_get_longhmp_target, mips64_supply_gregset)
109	(mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
110	(mips64_linux_register_addr, set_mips_linux_register_addr)
111	(register_addr, mips64_linux_svr4_fetch_link_map_offsets):
112	(init_register_addr_data)
113	New functions.
114	(fetch_core_registers): Add support for core file formats with 64-bit
115	registers.
116	(mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
117	(register_addr_data): New static global variable.
118	(_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
119	gdbarch_register_osabi() for each MIPS machine.
120	* config/mips/linux64.mt: New file.
121	* config/mips/tm-linux64.h: New file.
122
1232002-12-23  Adam Fedor  <fedor@gnu.org>
124
125	* maint.c (maintenance_demangle): Add switch to demangle
126	ObjC language symbols as well.
127
1282002-12-23  Adam Fedor  <fedor@gnu.org>
129
130	* objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
131	last argument from complaint function call.
132
1332002-12-23  Kevin Buettner  <kevinb@redhat.com>
134
135	* exec.c (print_section_info): Add FIXME comments regarding format
136	string choices.
137
1382002-12-23  Daniel Jacobowitz  <drow@mvista.com>
139
140	* config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
141	* config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
142
1432002-12-23  Rodney Brown  <rbrown64@csc.com.au>
144
145	* config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
146
1472002-12-23  David Carlton  <carlton@math.stanford.edu>
148
149	* symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
150	(lookup_symbol_aux_minsyms): Delete 'force_return' argument.
151	(search_symbols): Call lookup_symbol_aux_minsyms to find debugging
152	information associated to a minsym, not lookup_symbol.
153
1542002-12-21  Mark Kettenis  <kettenis@gnu.org>
155
156	* x86-64-tdep.h (x86_64_init_abi): New prototype.
157	* x86-64-tdep.c (i386_fp_regnum_p): Remove function.
158	(x86_64_init_abi): Make non-static.  Set number of pseudo
159	registers to 0.
160	(x86_64_gdbarch_init): Remove function.
161	(_initialize_x86_64_tdep): Renove register_gdbarch_init call.
162	Remove code dealing with dissambly.
163	* x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
164	(_initialize_x86_64_linux_tdep): New function.
165	* config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
166	i386-tdep.o.
167
1682002-12-14  Mark Kettenis  <kettenis@gnu.org>
169
170	* osabi.c: Include "gdb_assert.h" and "gdb_string.h".
171	(struct gdb_osabi_handler): Remove member `arch'.  Add member
172	`arch_info'.
173	(gdbarch_register_osabi): Add new argument `machine'.  Use ot to
174	construct a `struct bfd_arch_info' and store it in the `struct
175	gdb_osabi_handler' that is created.
176	(gdbarch_init_osabi): Check for compatibility based on machine
177	type and architecture.
178	* osabi.h (gdbarch_register_osabi): Adjust prototype and update
179	comment.
180	* alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
181	second argument in call to gdbarch_register_osabi.
182	* alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
183	* alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
184	* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
185	* arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
186	* arm-tdep.c (_initialize_arm_tdep): Likewise.
187	* armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
188	* hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
189	* i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
190	* i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
191	* i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
192	* i386-tdep.c (_initialize_i386_tdep): Likewise.
193	* i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
194	* i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
195	* i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
196	_initialize_i386bsd_tdep and updated likewise.
197	* i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
198	* i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
199	* mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
200	* mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
201	* mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
202	* ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
203	* ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
204	* ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
205	* shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
206	* sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
207
2082002-12-20  Kevin Buettner  <kevinb@redhat.com>
209
210	* solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
211	DT_MIPS_RLD_MAP case for 64-bit targets.
212
2132002-12-20  Kevin Buettner  <kevinb@redhat.com>
214
215	* mips-tdep.c (heuristic_proc_desc): Clear memory associated with
216	``temp_saved_regs'', not the pointer or other storage contiguous
217	to this pointer.
218
2192002-12-20  Kevin Buettner  <kevinb@redhat.com>
220
221	* Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
222	* config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
223	(mips_linux_get_longjmp_target): Delete declarations.
224	(SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
225	(MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
226	* mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
227	(MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
228	(mips_linux_get_longjmp_target)
229	(mips_linux_svr4_fetch_link_map_offsets): Make static.
230	(mips_linux_init_abi): New function.
231	(_initialize_mips_linux_tdep): Register mips_linux_init_abi().
232
2332002-12-19  Keith Seitz  <keiths@redhat.com>
234
235	patch committed by Elena Zannoni  <ezannoni@redhat.com>
236	* thread.c (do_captured_list_thread_ids): Call prune_threads and
237	target_find_new_threads. Fix for PR mi/669.
238
2392002-12-19  David Carlton  <carlton@math.stanford.edu>
240
241	* linespec.c (decode_line_1): Move code into decode_all_digits.
242	(decode_all_digits): New function.
243
2442002-12-19  Kevin Buettner  <kevinb@redhat.com>
245
246	* exec.c (print_section_info): Select a format string to use with
247	local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
248
2492002-12-18  Andrew Cagney  <ac131313@redhat.com>
250
251	* frame.c (deprecated_update_current_frame_pc_hack): Replace
252	deprecated_update_current_frame_pc_hack.
253	(deprecated_update_frame_base_hack): New function.
254	* frame.h (deprecated_update_frame_pc_hack): Replace
255	(deprecated_update_frame_base_hack): Declare.
256	* infrun.c (normal_stop): Update.
257
2582002-12-18  Andrew Cagney  <ac131313@redhat.com>
259
260	* rs6000-tdep.c (rs6000_init_extra_frame_info): Use
261	frame_extra_info_zalloc.
262	(rs6000_frame_args_address): Use get_frame_extra_info.
263	(frame_get_saved_regs): Use get_frame_saved_regs.
264	(frame_initial_stack_address): Use get_frame_saved_regs and
265	get_frame_extra_info.
266	(frame_initial_stack_address): Use get_frame_extra_info.
267
2682002-12-17  Kevin Buettner  <kevinb@redhat.com>
269
270	* dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
271	array size.
272	(fetch_bitmapped_register, store_bitmapped_register): Add bounds
273	checks for r3900_regnames[].
274
2752002-12-17  Richard Earnshaw  <rearnsha@arm.com>
276
277	* armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
278	All uses changed
279	(ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
280
2812002-12-17  David Carlton  <carlton@math.stanford.edu>
282
283	* symtab.c (lookup_partial_symbol): Don't search past the end of
284	the partial symbols.
285
2862002-12-17  Andrew Cagney  <ac131313@redhat.com>
287
288	* stack.c (frame_info): Use get_frame_saved_regs.
289	* breakpoint.c (until_break_command): Use get_frame_pc.
290
2912002-12-16  Kevin Buettner  <kevinb@redhat.com>
292
293	* buildsym.c (block_end_complaint, anon_block_end_complaint)
294	(innerblock_complaint, innerblock_anon_complaint)
295	(blockvector_complaint): Delete deprecated complaint structs.
296	(finish_block, make_blockvector, end_symtab): Replace calls
297	to complain() with calls to complaint().
298	* coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
299	(bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
300	(unexpected_type_complaint, bad_sclass_complaint)
301	(misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
302	Delete deprecated complaint structs.
303	(coff_symtab_read, enter_linenos, decode_type, decode_base_type):
304	Replace calls to complain() with calls to complaint().
305	* dbxread.c (lbrac_complaint, string_table_offset_complaint)
306	(unknown_symtype_complaint, unknown_symchar_complaint)
307	(lbrac_rbrac_complaint, lbrac_unmatched_complaint)
308	(lbrac_mismatch_complaint, repeated_header_complaint)
309	(unclaimed_bincl_complaint, discarding_local_symbols_complaint):
310	Delete deprecated complaint structs.
311	(unknown_symtype_complaint, lbrac_mismatch_complaint)
312	(repeated_header_complaint)
313	(function_outside_compiliation_unit_complaint): New functions.
314	(add_old_header_file, find_corresponding_bincl_psymtab)
315	(set_namestring, find_stab_function_addr, read_dbx_symtab)
316	(process_one_symbol): Replace calls to complain() with, possibly
317	indirect, calls to complaint().
318	* dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
319	(unknown_attribute_form, unknown_attribute_length)
320	(unexpected_fund_type, unknown_type_modifier, volatile_ignored)
321	(const_ignored, botched_modified_type, op_deref2, op_deref4)
322	(basereg_not_handled, dup_user_type_allocation)
323	(dup_user_type_definition, missing_tag, bad_array_element_type)
324	(subscript_data_items, unhandled_array_subscript_format)
325	(unknown_array_subscript_format, not_row_major)
326	(missing_at_name): Delete deprecated complaint structs.
327	(bad_die_ref_complaint, unknown_attribute_form_complaint)
328	(dup_user_type_definition_complaint)
329	(bad_array_element_type_complaint): New functions.
330	(lookup_utype, alloc_utype, struct_type, decode_array_element_type)
331	(decode_subscript_data_item, dwarf_read_array_type)
332	(read_tag_string_type, read_subroutine_type, read_func_scope)
333	(locval, scan_partial_symbols, decode_modified_type)
334	(decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
335	(attribute_size): Replace calls to complain() with, possibly
336	indirect, calls to complaint().
337	* elfread.c (section_info_complaint, section_info_dup_complaint)
338	(stab_info_mismatch_complaint, stab_info_questionable_complaint):
339	Delete deprecated complaint structs.
340	(elf_symtab_read, elfstab_offset_sections): Replace calls to
341	complain() with calls to complaint().
342	* gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
343	struct.
344	(stub_noname_complaint): New function.
345	(check_typedef, add_mangled_type): Replace calls to complain()
346	with calls to complaint().
347	* hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
348	(lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
349	(hpread_unhandled_type_complaint, hpread_struct_complaint)
350	(hpread_array_complaint, hpread_type_lookup_complaint)
351	(hpread_unexpected_end_complaint, hpread_tagdef_complaint)
352	(hpread_unhandled_common_complaint)
353	(hpread_unhandled_blockdata_complaint): Delete deprecated complaint
354	struct definitions and declarations.
355	(lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
356	(SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
357	Replace calls to complain() with, possibly indirect, calls to
358	complaint().
359	* macrotab.c (macro_include, check_for_redefinition, macro_undef):
360	Likewise.
361	* mdebugread.c (bad_file_number_complaint, index_complaint)
362	(aux_index_complaint, block_index_complaint)
363	(unknown_ext_complaint, unknown_sym_complaint)
364	(unknown_st_complaint, block_overflow_complaint)
365	(basic_type_complaint, unknown_type_qual_complaint)
366	(array_index_type_complaint, bad_tag_guess_complaint)
367	(block_member_complaint, stEnd_complaint)
368	(unknown_mdebug_symtype_complaint, stab_unknown_complaint)
369	(pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
370	(bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
371	(bad_continued_complaint, bad_rfd_entry_complaint)
372	(unexpected_type_code_complaint, unable_to_cross_ref_complaint)
373	(bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
374	(illegal_forward_bt_complaint, bad_linetable_guess_complaint)
375	(bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
376	complaint structs.
377	(index_complaint, unknown_ext_complaint, basic_type_complaint)
378	(bad_tag_guess_complaint, bad_rfd_entry_complaint)
379	(unexpected_type_code_complaint)
380	(function_outside_compilation_unit_complaint): New functions.
381	(parse_symbol, parse_type, upgrade_type, parse_procedure)
382	(parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
383	Replace calls to complain() with, possibly indirect calls to
384	complaint().
385	* objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
386	Delete deprecated complaint structs.
387	(lookup__objc_class, lookup_child_selector): Replace complain()
388	with complaint().
389	* remote-vx.c (cant_contact_target): Delete deprecated complaint
390	struct.
391	(vx_lookup_symbol): Replace complain() with complaint().
392	* stabsread.c (invalid_cpp_abbrev_complaint)
393	(invalid_cpp_type_complaint, member_fn_complaint)
394	(const_vol_complaint, error_type_complaint)
395	(invalid_member_complaint, range_type_base_complaint)
396	(reg_value_complaint, vtbl_notfound_complaint)
397	(unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
398	(unresolved_sym_chain_complaint, stabs_general_complaint)
399	(lrs_general_complaint, multiply_defined_struct): Delete
400	deprecated complaint structs.
401	(invalid_cpp_abbrev_complaint, ref_value_complaint)
402	(stabs_general_complaint, lrs_general_complaint)
403	(msg_unknown_complaint): New functions.
404	(dbx_lookup_type, read_cfront_baseclasses)
405	(read_cfront_member_functions, resolve_symbol_reference)
406	(define_symbol, resolve_live_range, add_live_range, read_type)
407	(rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
408	(read_one_struct_field, read_baseclasses, read_tilde_fields)
409	(read_cfront_static_fields, attach_fields_to_type)
410	(complain_about_struct_wipeout, read_range_type)
411	(common_block_start, common_block_end, cleanup_undefined_types)
412	(scan_file_globals): Replace complain() with complaint().
413	* stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
414	Delete deprecated complaint struct declarations.
415	* xcoffread.c (storclass_complaint, bf_notfound_complaint)
416	(ef_complaint, eb_complaint): Delete deprecated complaint structs.
417	(bf_not_found_complaint, ef_complaint, eb_complaint)
418	(function_outside_compilation_unit_complaint): New functions.
419	(record_include_begin, record_include_end, enter_line_range)
420	(xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
421	(read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
422	complain() with complaint().
423
4242002-12-16  Andrew Cagney  <ac131313@redhat.com>
425
426	* config/arc/arc.mt, config/arc/tm-arc.h: Delete.
427	* config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
428	* config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
429	* config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
430	* config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
431	* config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
432	* config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
433	* config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
434	* config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
435	* config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
436	* config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
437	* config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
438	* config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
439	* config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
440	* config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
441	* config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
442	* config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
443	* config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
444	* config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
445	* config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
446	* config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
447	* config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
448	* config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
449	* config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
450	* config/m88k/xm-dgux.h: Delete.
451	* fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
452	* i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
453	* os9kread.c, remote-bug.c, remote-nindy.c: Delete.
454	* remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
455	* d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
456	* ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
457	* ch-valprint.c: Delete.
458
4592002-12-15  Daniel Jacobowitz  <drow@mvista.com>
460
461	* infrun.c (handle_inferior_event): Rearrange code to resume if
462	no catchpoint triggers for an event.
463
4642002-12-15  Daniel Jacobowitz  <drow@mvista.com>
465
466	* infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
467	and TARGET_WAITKIND_VFORKED cases.
468
4692002-12-15  Daniel Jacobowitz  <drow@mvista.com>
470
471	* infrun.c (handle_inferior_event): Assume that catchpoints
472	are not affected by DECR_PC_AFTER_BREAK.
473
4742002-12-15  Daniel Jacobowitz  <drow@mvista.com>
475
476	* target.c (update_current_target): Don't inherit DONT_USE.
477	* target.h (struct target_ops): Remove DONT_USE.
478	(target_next): Remove macro.
479
4802002-12-15  Mark Kettenis  <kettenis@gnu.org>
481
482	* ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
483
4842002-12-14  Richard Earnshaw  <rearnsha@arm.com>
485
486	* arm-tdep.c (convert_from_extended): New argument to hold the
487	type of floating point result we want to convert to.  Make input
488	argument const.  Fix all callers.
489	(convert_to_extended): Similarly.
490	(arm_extract_return_value): Now takes a regcache argument.  Change
491	code to use regcache accessor functions.  Correctly extract
492	smaller-than-word results on big-endian machines.
493	(arm_store_return_value): Now takes a regcache argument.  Change
494	code to use regcache accessor functions.  Correctly zero/sign extend
495	smaller than word results before storing into r0.
496	(arm_gdbarch_init): Register new-style extract_return_value and
497	store_return_value functions.
498
4992002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
500
501	* thread-db.c (thread_from_lwp): Uniquify error msg.
502	(lwp_from_thread): Ditto.
503	(check_event): Ditto.
504	(find_new_threads_callback): Ditto.
505	(thread_db_pid_to_str): Ditto.
506
5072002-12-13  Andrew Cagney  <ac131313@redhat.com>
508
509	* frame.h (get_frame_saved_regs): Declare.
510	(frame_saved_regs_zalloc): Change return type to CORE_ADDR
511	pointer.
512	* frame.c (get_frame_saved_regs): New function.
513	(frame_saved_regs_zalloc): Return the allocated saved_regs.
514
5152002-12-13  Andrew Cagney  <ac131313@redhat.com>
516
517	* frame.c (deprecated_update_current_frame_pc_hack): New
518	function.
519	* frame.h (deprecated_update_current_frame_pc_hack): Declare.
520	* infrun.c (normal_stop): Use said function instead of directly
521	modifying the frame's PC.
522
5232002-12-13  Alexandre Oliva  <aoliva@redhat.com>
524
525	* frame.h (frame_id_unwind_ftype): Fix typo in return type.
526
5272002-12-13  Kevin Buettner  <kevinb@redhat.com>
528
529	* config/mips/tm-mips.h, config/mips/tm-irix3.h,
530	config/mips/tm-irix6.h (NUM_REGS): Delete.
531	* mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
532	(temp_saved_regs): Declare as a pointer rather than an array.
533	(mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
534	that ``temp_saved_regs'' has storage allocated to it and that
535	it's the correct size.
536
5372002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
538
539	* defs.h (init_last_source_visited): New prototype.
540	(add_path): Ditto.
541	* source.c (add_path): New function that adds to a specified path.
542	(mod_path): Change to call add_path.
543	(init_last_source_visited): New function to allow interfaces to
544	initialize static variable: last_source_visited.  Part of fix
545	for PR gdb/741.
546	* Makefile.in: Add support for mi/mi-cmd-env.c.
547
5482002-12-13  Andrew Cagney  <ac131313@redhat.com>
549
550	* frame.h (frame_id_unwind): Declare.
551	(struct frame_info): Add fields id_unwind, id_unwind_cache_p and
552	id_unwind_cache.
553	(frame_id_unwind_ftype): Declare.
554	* frame.c (frame_id_unwind): New function.
555	(set_unwind_by_pc): Add unwind_id parameter.  Initialized.
556	(create_new_frame, get_prev_frame): Pass id_unwind to
557	set_unwind_by_pc.
558	(frame_saved_regs_id_unwind): New function.
559	(frame_saved_regs_id_unwind): New function.
560	* dummy-frame.c (dummy_frame_id_unwind): New function.
561	(struct dummy_frame): Add field id.
562	(generic_push_dummy_frame): Initialize `id'.
563	* dummy-frame.h (dummy_frame_id_unwind): Declare.
564
5652002-12-13  Andrew Cagney  <ac131313@redhat.com>
566
567	* infcmd.c (run_stack_dummy): Create a frame ID directly and then
568	pass that to set_momentary_breakpoint.  Move comments to where they
569	belong.
570	* frame.h (set_current_frame): Delete declaration.
571	* frame.c (set_current_frame): Delete function.
572
5732002-12-13  Andrew Cagney  <ac131313@redhat.com>
574
575	* frame.c (frame_extra_info_zalloc): New function.
576	* frame.h (frame_extra_info_zalloc): Declare.
577
5782002-12-13  Joel Brobecker  <brobecker@gnat.com>
579
580	* hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
581	in the previous prototype change to set_momentary_breakpoint.
582
5832002-12-12  Daniel Jacobowitz  <drow@mvista.com>
584
585	* infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
586	and saw_child_exec.
587	(follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
588	references to saw_parent_fork, saw_child_fork, and saw_child_exec.
589	(stop_stepping): Remove outdated check for child vfork events.
590
5912002-12-12  Andrew Cagney  <ac131313@redhat.com>
592
593	* GDB 5.3 released from gdb_5_3-branch.
594
5952002-12-11  Daniel Jacobowitz  <drow@mvista.com>
596
597	* corelow.c (init_core_ops): Delete references to to_require_attach
598	and to_require_detach.
599	* exec.c (init_exec_ops): Likewise.
600	* hppah-nat.c (child_follow_fork): Call hppa_require_attach and
601	hppa_require_detach directly.
602	* inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
603	* inftarg.c (child_detach): Remove.
604	(child_detach_from_process): Rename to child_detach, remove
605	after_fork argument.
606	(child_attach): Remove.
607	(child_attach_to_process): Rename to child_attach, remove after_fork
608	argument.
609	(init_child_ops): Delete references to to_require_attach
610	and to_require_detach.
611	* infttrace.c (hppa_require_attach): Update comment.
612	* target.c (cleanup_target, update_current_target)
613	(init_dummy_target, setup_target_debug): Delete references to
614	to_require_attach and to_require_detach.
615	(find_default_require_detach, find_default_require_attach)
616	(debug_to_require_attach, debug_to_require_detach): Remove
617	functions.
618	* target.h (struct target_ops): Remove to_require_attach
619	and to_require_detach.
620	(target_require_attach, target_require_detach): Delete macros.
621	(find_default_require_detach, find_default_require_attach): Delete
622	prototypes.
623	* config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
624
6252002-12-11  Andrew Cagney  <ac131313@redhat.com>
626
627	* frame.c (get_frame_extra_info): New function.
628	* frame.h (get_frame_extra_info): Declare.
629
6302002-12-11  Andrew Cagney  <ac131313@redhat.com>
631
632	* breakpoint.h (struct breakpoint): Replace frame with frame_id.
633	(set_momentary_breaokpoint): Replace `struct frame_info' parameter
634	with `struct frame_id'.
635	(set_longjmp_resume_breakpoint): Ditto.
636	* infrun.c (handle_inferior_event): Update.
637	* breakpoint.c (watch_command_1, until_break_command): Update.
638	* infrun.c (handle_inferior_event, check_sigtramp2): Update.
639	(handle_inferior_event, step_over_function): Update.
640	* breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
641	(set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
642	(set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
643	* infcmd.c (finish_command, run_stack_dummy): Update.
644
6452002-12-11  Kevin Buettner  <kevinb@redhat.com>
646
647	* dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
648	(dwarf2_non_const_array_bound_ignored)
649	(dwarf2_missing_line_number_section)
650	(dwarf2_statement_list_fits_in_line_number_section)
651	(dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
652	(dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
653	(dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
654	(dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
655	(dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
656	(dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
657	(dwarf2_missing_member_fn_type_complaint)
658	(dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
659	(dwarf2_const_value_length_mismatch)
660	(dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
661	(dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
662	(dwarf2_macros_too_long, dwarf2_macros_not_terminated)
663	(dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
664	(dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
665	(dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
666	complaints using deprecated struct..
667	(dwarf2_non_const_array_bound_ignored_complaint)
668	(dwarf2_complex_location_expr_complaint)
669	(dwarf2_unsupported_at_frame_base_complaint)
670	(dwarf2_const_value_length_mismatch_complaint)
671	(dwarf2_macros_too_long_complaint)
672	(dwarf2_macro_malformed_definition_complaint)
673	(dwarf2_invalid_attrib_class_complaint): New functions.
674	(read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
675	(read_structure_scope, read_array_type, read_common_block)
676	(read_tag_pointer_type, read_base_type, read_partial_die)
677	(dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
678	(new_symbol, dwarf2_const_value, read_type_die)
679	(dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
680	(parse_macro_definition, dwarf_decode_macros): Replace calls to
681	complain() with, possibly indirect, calls to complaint().
682
6832002-12-11  Andrew Cagney  <cagney@redhat.com>
684
685	* frame.c (deprecated_get_frame_saved_regs): Rename
686	get_frame_saved_regs.
687	* frame.h (deprecated_get_frame_saved_regs): Update declaration.
688	* sparc-tdep.c: Update.
689	* hppa-tdep.c: Update.
690	* h8500-tdep.c: Update.
691
6922002-12-11  Kevin Buettner  <kevinb@redhat.com>
693
694	* gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
695	(ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
696	``char *'' for return and parameter types.
697	* gdbarch.h, gdbarch.c: Regenerate.
698	* gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
699	return type from ``char *'' to ``const char *''.
700	* c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
701	const.
702
7032002-12-11  Mark Kettenis  <kettenis@gnu.org>
704
705	* i386-tdep.c: Include "dummy-frame.h".
706	(i386_frame_chain, i386_frame_saved_pc): Replace
707	DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
708	(i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
709
7102002-12-10  Andrew Cagney  <cagney@redhat.com>
711
712	* gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
713	Change to a function with predicate.
714	* gdbarch.h, gdbarch.c: Re-generate.
715	* frame.c (get_prev_frame): Update.  Test
716	DEPRECATED_INIT_FRAME_PC_P.
717	* config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
718	* config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
719	* config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
720	* alpha-tdep.c (alpha_gdbarch_init): Update.
721	* mn10300-tdep.c (mn10300_gdbarch_init): Update.
722	* mips-tdep.c (mips_gdbarch_init): Update.
723	* i386-interix-tdep.c (i386_interix_init_abi): Update.
724	* arm-tdep.c: Update comments.
725	* h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
726	* config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
727	* frv-tdep.c (frv_gdbarch_init): Ditto.
728	* x86-64-tdep.c (x86_64_init_abi): Ditto.
729	* ia64-tdep.c (ia64_gdbarch_init): Ditto.
730	* s390-tdep.c (s390_gdbarch_init): Ditto.
731	* v850-tdep.c (v850_gdbarch_init): Ditto.
732	* vax-tdep.c (vax_gdbarch_init): Ditto.
733	* sh-tdep.c (sh_gdbarch_init): Ditto.
734	* ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
735	* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
736	* mcore-tdep.c (mcore_gdbarch_init): Ditto.
737	* xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
738	* i386-tdep.c (i386_gdbarch_init): Ditto.
739	* d10v-tdep.c (d10v_gdbarch_init): Ditto.
740	* cris-tdep.c (cris_gdbarch_init): Ditto.
741	* avr-tdep.c (avr_gdbarch_init): Ditto.
742	* arm-tdep.c (arm_gdbarch_init): Ditto.
743	* config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
744	(DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
745
7462002-12-10  Daniel Jacobowitz  <drow@mvista.com>
747
748	* config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
749	CHILD_FOLLOW_FORK.
750	* hppah-nat.c (saved_vfork_pid): Add.
751	(child_post_follow_vfork): Remove.
752	(child_follow_fork): New function.
753	(child_wait): Call detach_breakpoints after receiving the child vfork.
754	Call child_resume directly instead of going through resume ().
755	Make sure we have the exec before reporting the vfork.
756	* inferior.h (follow_inferior_reset_breakpoints): Add prototype.
757	* infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
758	(follow_fork): New function.  Call target_follow_fork.
759	(follow_inferior_reset_breakpoints): New function broken out from
760	old follow_inferior_fork.
761	(resume): Remove hack to follow exec after vfork.
762	* inftarg.c (child_post_follow_vfork): Remove.
763	(child_follow_fork): New function.
764	(init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
765	* target.c (cleanup_target): Replace to_post_follow_vfork with
766	to_follow_fork.
767	(update_current_target): Likewise.
768	(setup_target_debug): Likewise.
769	(debug_to_post_follow_vfork): Remove.
770	(debug_to_follow_fork): New function.
771	* target.h (struct target_ops): Replace to_post_folow_vfork with
772	to_follow_fork.
773	(child_post_follow_vfork): Remove prototype.
774	(child_follow_fork): Add prototype.
775	(target_post_follow_vfork): Remove macro.
776	(target_follow_fork): Add macro.
777
7782002-12-10  Daniel Jacobowitz  <drow@mvista.com>
779
780	* hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
781	(child_post_follow_vfork): Cancel pending exec event if we follow
782	the parent.
783	(child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
784	events have been processed.  Return a fake TARGET_WAITKIND_EXECD
785	event at the following wait call if necessary.
786	* infrun.c (follow_vfork): Don't follow_exec here.
787	(handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
788	case about HP/UX 10.20.  Remove code pushed down to
789	hppah-nat.c:child_wait.
790	* infttrace.c (child_resume): Use TT_PROC_CONTINUE if
791	vfork_in_flight is set.
792
7932002-12-10  Daniel Jacobowitz  <drow@mvista.com>
794
795	* hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
796	for the parent's fork event.
797	* infrun.c (handle_inferior_event): Only expect one fork event.
798	Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
799	* target.h: Update comment for TARGET_WAITKIND_IGNORE.
800
8012002-12-10  Andrew Cagney  <ac131313@redhat.com>
802
803	* PROBLEMS: Delete reference to PR gdb/725.
804
805	* MAINTAINERS (gdb.c++): Add David Carlton.
806
8072002-12-09  David Carlton  <carlton@math.stanford.edu>
808
809	* cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
810	* cli/cli-cmds.c: Ditto.
811
8122002-12-09  Andrew Cagney  <cagney@redhat.com>
813
814	* gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
815	function address in <>.
816	* gdbarch.c: Re-generate.
817
8182002-12-09  David Carlton  <carlton@math.stanford.edu>
819
820	* p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
821
8222002-12-09  David Carlton  <carlton@math.stanford.edu>
823
824	* linespec.c (symtab_from_filename): New function.
825	(decode_line_1): Move code into symtab_from_filename.
826
8272002-12-09  Kevin Buettner  <kevinb@redhat.com>
828
829	* lin-lwp.c (strsignal): Make extern declaration match that of glibc.
830
8312002-12-07  Andrew Cagney  <ac131313@redhat.com>
832
833	* f-valprint.c (info_common_command): Use get_frame_pc.
834	* std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
835	* ax-gdb.c (agent_command): Ditto.
836	* rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
837	(rs6000_pop_frame): Ditto.
838	(rs6000_frameless_function_invocation): Ditto.
839	(rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
840	(frame_initial_stack_address, rs6000_frame_chain): Ditto.
841	* macroscope.c (default_macro_scope): Ditto.
842	* stack.c (print_frame_info_base): Ditto.
843	(print_frame, frame_info, print_frame_label_vars): Ditto.
844	(return_command, func_command, get_frame_language): Ditto.
845	* infcmd.c (finish_command): Ditto.
846	* dummy-frame.c (cached_find_dummy_frame): Ditto.
847	* breakpoint.c (deprecated_frame_in_dummy): Ditto.
848	(break_at_finish_at_depth_command_1): Ditto.
849	(break_at_finish_command_1): Ditto.
850	(until_break_command, get_catch_sals): Ditto.
851	* blockframe.c (func_frame_chain_valid): Ditto.
852	(frameless_look_for_prologue): Ditto.
853	(frame_address_in_block, generic_func_frame_chain_valid): Ditto.
854
8552002-12-08  Andrew Cagney  <ac131313@redhat.com>
856
857	* config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
858	* dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
859
8602002-12-08  Andrew Cagney  <ac131313@redhat.com>
861
862	* gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
863	to pure functions.
864	* gdbarch.h, gdbarch.c: Re-generate.
865	* frame.c (get_prev_frame): Explictly assign prev's pc with value
866	returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
867
868	* arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
869	declaration to a function returning a CORE_ADDR.
870	* x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
871	* arch-utils.c (init_frame_pc_noop): Return the PC value.
872	(init_frame_pc_default): Ditto.
873	* x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
874	* s390-tdep.c (s390_init_frame_pc_first): Ditto.
875	* mips-tdep.c (mips_init_frame_pc_first): Ditto.
876	* dwarf2cfi.h (cfi_init_frame_pc): Ditto.
877	* dwarf2cfi.c (cfi_init_frame_pc): Ditto.
878	* alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
879
880	* i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
881	to init_frame_pc_noop.
882	(i386_interix_init_frame_pc): Delete function.
883	* z8k-tdep.c (init_frame_pc): Delete function.
884	* config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
885	(INIT_FRAME_PC_FIRST): Ditto.
886	* config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
887	(INIT_FRAME_PC_FIRST): Ditto.
888	* config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
889	* config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
890	init_frame_pc_noop.
891	(INIT_FRAME_PC_FIRST): Convert to an expression.
892	* config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
893
8942002-12-08  Andrew Cagney  <ac131313@redhat.com>
895
896	* blockframe.c: Use get_frame_base instead of directly accessing
897	the `struct frame_info' member frame.
898	* f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
899	* stack.c, dummy-frame.c, breakpoint.c: Ditto.
900
9012002-12-08  Elena Zannoni  <ezannoni@redhat.com>
902
903	* Makefile.in (readline_h): Define.
904	(completer.o): Depend on readline_h.
905	(corelow.o): Ditto.
906	(event-top.o): Ditto.
907	(exec.o): Ditto.
908	(solib.o): Ditto.
909	(source.o): Ditto.
910	(symfile.o): Ditto.
911	(symmisc.o): Ditto.
912	(top.o): Ditto.
913	(tracepoint.o): Ditto.
914	(utils.o): Ditto.
915	(cli-dump.o): Ditto.
916	(tui-hooks.o): Ditto.
917	(tuiWin.o): Ditto.
918
9192002-12-08  Elena Zannoni  <ezannoni@redhat.com>
920
921	More cleanup from import of readline 4.3.
922	* completer.h (complete_line, readline_line_completion_function):
923	Update prototypes.
924	(line_completion_function): Removed, not used outside of completer.c.
925	* completer.c (readline_line_completion_function,
926	complete_function, line_completion_function): Use const for first
927	parameter.
928	(line_completion_function): Make static.
929	(filename_completer): filename_completion_function is now called
930	rl_filename_completion_function
931	* corelow.c: Include <readline/readline.h>.
932	* exec.c: Ditto.
933	* solib.c: Ditto.
934	* source.c: Ditto.
935	* symfile.c: Ditto.
936	* symmisc.c: Ditto.
937	* top.c (init_main): No need to coerce
938	readline_line_completion_function anymore.
939	* cli/cli-dump.c: Include <readline/readline.h>.
940
9412002-12-08  Andrew Cagney  <ac131313@redhat.com>
942
943	* stack.c (frame_info): Use get_prev_frame.
944	* blockframe.c (frame_address_in_block): Ditto.
945	* rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
946	(rs6000_frameless_function_invocation): Ditto.
947	(rs6000_frame_saved_pc): Ditto.
948	(rs6000_frame_chain): Ditto.
949	* arch-utils.c (init_frame_pc_default): Ditto.
950
9512002-12-08  Andrew Cagney  <ac131313@redhat.com>
952
953	* config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
954	Delete redundant definition.
955
9562002-12-08  Elena Zannoni  <ezannoni@redhat.com>
957
958        Import of readline 4.3:
959        * cli/cli-cmds.c: Include readline/tilde.h.
960        * cli/cli-setshow.c: Ditto.
961        * defs.h: Don't declare tilde_expand anymore, since readline
962        exports it.
963
9642002-12-08  Elena Zannoni  <ezannoni@redhat.com>
965
966	* Makefile.in (thread-db.o): Add explicit rule to ignore the use of
967	-Werror on this file.
968
9692002-12-07  Andrew Cagney  <ac131313@redhat.com>
970
971	* gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
972	the format name.
973	(TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
974	* gdbarch.c: Regenerate.
975
9762002-12-06  Andrew Cagney  <ac131313@redhat.com>
977
978	* gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
979	INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
980	provide a default value.
981	* gdbarch.h, gdbarch.c: Regenerate.
982	* frame.c (get_prev_frame): Update.  Check
983	DEPRECATED_INIT_FRAME_PC_FIRST_P.
984	* s390-tdep.c (s390_gdbarch_init): Update.
985	* mips-tdep.c (mips_gdbarch_init): Update.
986	* config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
987	* config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
988	* alpha-tdep.c (alpha_gdbarch_init): Update.
989
9902002-12-06  Elena Zannoni  <ezannoni@redhat.com>
991
992	* ia64-linux-nat.c: Include gdb_string.h.
993	* alpha-nat.c: Ditto.
994	* ppc-linux-nat.c: Ditto.
995	* Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
996	Update dependencies.
997
9982002-12-05  Andrew Cagney  <ac131313@redhat.com>
999
1000	* gdbthread.h: Include "frame.h".
1001	(struct thread_info): Replace step_frame_address with
1002	step_frame_id.
1003	* inferior.h: Include "frame.h".
1004	(step_frame_id): Replace external variable step_frame_address.
1005	* gdbthread.h (save_infrun_state): Replace step_frame_address
1006	parameter with step_frame_id parameter.
1007	(load_infrun_state): Ditto.
1008	* Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1009	* infcmd.c (step_frame_id, step_1, step_once): Update.
1010	* thread.c (load_infrun_state, save_infrun_state): Update.
1011	* infrun.c (clear_proceed_status, save_inferior_status): Update.
1012	(handle_inferior_event, step_over_function): Update.
1013	(normal_stop, context_switch, restore_inferior_status): Update.
1014	(struct inferior_status): Replace step_frame_address with
1015	step_frame_id.
1016
10172002-12-05  David Carlton  <carlton@math.stanford.edu>
1018
1019	* dwarf2read.c (dwarf2_add_field): Treat a field that is a
1020	DW_TAG_member as well as a declaration as being a C++ static data
1021	member.
1022	(read_structure_scope): Combine tests for DW_TAG_member and
1023	DW_TAG_variable.
1024
10252002-12-05  David Carlton  <carlton@math.stanford.edu>
1026
1027	* linespec.c (decode_compound): New function.
1028	(decode_line_1): Move code into decode_compound.
1029
10302002-12-05  David Carlton  <carlton@math.stanford.edu>
1031
1032	* symtab.c (lookup_symbol_aux_local): Add 'static_block'
1033	argument.
1034	(lookup_symbol_aux): Do the 'field_of_this' check before checking
1035	the static block.  See PR gdb/804.
1036
10372002-12-05  David Carlton  <carlton@math.stanford.edu>
1038
1039	* symtab.c (lookup_symbol_aux_block): New function.
1040	(lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1041
10422002-12-05  Andrew Cagney  <ac131313@redhat.com>
1043
1044	* gdbarch.sh: Dump the predicate function and macro values.
1045	(read): Print error on standard error.
1046	* gdbarch.c: Regenerate.
1047
10482002-12-04  Kevin Buettner  <kevinb@redhat.com>
1049
1050	* Makefile.in (mips_tdep_h): Define.
1051	(mips-tdep.o): Add mips_tdep_h to dependency list.
1052	* mips-tdep.h: New file.
1053	* mips-tdep.c (mips-tdep.h): Include.
1054	(enum mips_abi): Move to mips-tdep.h.
1055	(mips_abi): New function.
1056
10572002-12-04  David Carlton  <carlton@math.stanford.edu>
1058
1059	* Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1060
10612002-12-04  David Carlton  <carlton@math.stanford.edu>
1062
1063	* symtab.c (lookup_symbol_aux): Move minsym code into a separate
1064	function.
1065	(lookup_symbol_aux_minsyms): New function.
1066
10672002-12-04  J. Brobecker  <brobecker@gnat.com>
1068
1069	* pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1070
10712002-12-04  J. Brobecker  <brobecker@gnat.com>
1072
1073	* config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1074	which is an obsolete macro name.
1075
10762002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1077
1078	* doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1079	* config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1080
10812002-12-03  H.J. Lu  (hjl@gnu.org)
1082
1083	* breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1084	(create_breakpoints): Make sure the addr_string field is not
1085	NULL.
1086
10872002-12-03  Andrew Cagney  <ac131313@redhat.com>
1088
1089	* sparc-nat.c (fetch_inferior_registers)
1090	(store_inferior_registers): Add comment on problem of LWP vs
1091	threads.
1092
1093	From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1094	* lin-lwp.c (lin_lwp_fetch_registers): Remove.
1095	(lin_lwp_store_registers): Remove.
1096	(init_lin_lwp_ops): Use fetch_inferior_registers
1097	and store_inferior_registers directly.
1098	* sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1099	(store_inferior_registers): Likewise.
1100	Fix PR gdb/725.
1101
11022002-12-03  Andrew Cagney  <ac131313@redhat.com>
1103
1104	* frame.h (get_frame_id): Convert to a function.
1105	(null_frame_id, frame_id_p): Declare.
1106	(frame_id_eq, frame_id_inner): Declare.
1107	(frame_id_build): New function.
1108	* frame.c (get_frame_id): Update.  Use null_frame_id.
1109	(frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1110	frame_id_inner.
1111	(null_frame_id, frame_id_p): Define.
1112	(frame_id_eq, frame_id_inner): Define.
1113	(frame_id_build): New function.
1114	* varobj.c (varobj_create): Update.
1115	(varobj_update): Update.
1116	* valops.c (value_assign): Update.
1117	(new_root_variable): Update.
1118	* infrun.c (save_inferior_status): Update.
1119	* breakpoint.c (watch_command_1): Update.
1120
11212002-12-03  J. Brobecker  <brobecker@gnat.com>
1122
1123	* config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1124	(SNAP2): Likewise.
1125
11262002-12-03  Andrew Cagney  <cagney@redhat.com>
1127
1128	* NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1129	patch.
1130
1131	* PROBLEMS: Mention PR gdb/725.
1132
11332002-12-03  Andreas Schwab  <schwab@suse.de>
1134
1135	* infcmd.c (construct_inferior_arguments): Handle empty arguments.
1136
11372002-12-02  Adam Fedor  <fedor@gnu.org>
1138	    Klee Dienes  <kdienes@apple.com>
1139
1140	* objc-lang.c (objc_printstr): Add width arg to match
1141	printstr prototype.
1142	(compare_selectors): Add 'const' to arg types.
1143	(compare_classes): Likewise.
1144	(find_imps): Cast msym pointer to avoid compiler warning.
1145	(print_object_command): Validate the address before
1146	passing it to the print routine.
1147	(find_objc_msgcall_submethod): Change function argument to
1148	return an int.
1149	* objc-lang.h: Add 'extern' to all function declarations.
1150	(value_nsstring): Add declaration.
1151
11522002-12-02  J. Brobecker  <brobecker@gnat.com>
1153
1154	* somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1155	Fixes a build failure on HP/UX.
1156
1157	* hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1158	failure on HP/UX.
1159	(hpread_has_name): Advance declaration to avoid a compilation warning.
1160	(pst_syms_count): Add missing variable type. By change, the compiler
1161	was defaulting to int, which seems a good choice. Fixes a compilation
1162	warning.
1163	(pst_syms_size): Likewise.
1164
11652002-12-02  J. Brobecker  <brobecker@gnat.com>
1166
1167	* hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1168	(hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1169	later to set the proper gdbarch methods depending on the osabi.
1170	* Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1171
11722002-12-02  J. Brobecker  <brobecker@gnat.com>
1173
1174	* osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1175	* osabi.c (gdb_osabi_name): Add strings images for the two new
1176	enum values.
1177	(generic_elf_osabi_sniffer): Handle HPUX objfiles.
1178
11792002-12-02  Andrew Cagney  <ac131313@redhat.com>
1180
1181	* MAINTAINERS (Java): Global maintainers are responible for Java.
1182	(Past Maintainers): Mention both Anthony Green and Per Bothner as
1183	part Java maintainers.
1184
11852002-12-02  J. Brobecker  <brobecker@gnat.com>
1186
1187	* xcoffread.c (read_symbol_lineno): Replace boolean by int.
1188	Fixes a compilation failure on AiX.
1189
11902002-12-02  J. Brobecker  <brobecker@gnat.com>
1191
1192	* config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1193	why aix-thread.o is not listed.
1194
11952002-12-01  Andrew Cagney  <ac131313@redhat.com>
1196
1197	* gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1198	PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1199	* gdbarch.h, gdbarch.c: Re-generate.
1200	* config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1201	* config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1202	* config/pa/tm-hppa.h, frame.h: Update.
1203	* x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1204	* s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1205	* m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1206	* cris-tdep.c, alpha-tdep.c: Update.
1207	* frame.c (set_unwind_by_pc, create_new_frame): Use either
1208	DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1209	(get_prev_frame): Ditto.
1210
12112002-11-30  Andrew Cagney  <cagney@redhat.com>
1212
1213	* exec.c (xfer_memory): Replace boolean with int.
1214	* p-exp.y: Use 0 instead of false.
1215	* corelow.c (gdb_check_format): Change return type to int from
1216	boolean.
1217	* utils.c: Don't include <curses.h> or <term.h> first.
1218
12192002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1220
1221	* m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1222	(m68hc11_register_byte): Remove.
1223	(m68hc11_gdbarch_init): Don't set the above.
1224
12252002-11-29  Andrew Cagney  <cagney@redhat.com>
1226
1227	* remote-mips.c (mips_initialize): Force a selected frame rebuild
1228	by calling get_selected_frame.
1229	* ocd.c (ocd_start_remote): Use get_selected frame instead of
1230	set_current_frame, create_new_frame, select_frame and
1231	get_current_frame.
1232	* remote-e7000.c (e7000_start_remote): Ditto.
1233	* remote-mips.c (common_open): Ditto
1234	* remote-rdp.c (remote_rdp_open): Ditto.
1235
12362002-11-29  Andreas Schwab  <schwab@suse.de>
1237
1238	* m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1239	(altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1240	(delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1241	(m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1242	read_memory_unsigned_integer instead of read_memory_integer when
1243	dealing with addresses and instruction opcodes.
1244	* m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1245	(m68k_linux_frame_saved_pc): Likewise.
1246
12472002-11-29  Andrew Cagney  <ac131313@redhat.com>
1248
1249	* stack.c (selected_frame, select_frame): Move from here ...
1250	* frame.c (selected_frame, select_frame): ... to here.  Include
1251	"language.h".
1252	* Makefile.in (frame.o): Update dependencies.
1253	* frame.c (get_selected_frame): New function.
1254	* frame.h (get_selected_frame): Declare.
1255	(deprecated_selected_frame): Rename selected_frame.
1256	* ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1257	* eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1258	* h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1259	* inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1260	* mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1261	* remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1262	* stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1263	* z8k-tdep.c, cli/cli-cmds.c: Update.
1264
12652002-11-29  Andrew Cagney  <ac131313@redhat.com>
1266
1267	* frame.h (get_selected_block): Add comments.
1268
12692002-11-28  Andrew Cagney  <ac131313@redhat.com>
1270
1271	* frame.c (pc_notcurrent): New function.
1272	(find_frame_sal): New function.
1273	* frame.h (find_frame_sal): Declare.
1274	(struct symtab_and_line): Add opaque declaration.
1275	* stack.c (print_frame_info_base): Use find_frame_sal instead of
1276	find_pc_line.
1277	(frame_info): Ditto.
1278	* ada-lang.c (find_printable_frame): Ditto.
1279
12802002-11-28  J. Brobecker  <brobecker@gnat.com>
1281
1282	* configure.in: Check that the pthdebug library is recent enough
1283	before enabling thread support on native AiX.
1284	* configure: Regenerate.
1285
1286	* config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1287	from the list of object files as it is now appended by configure
1288	if thread support is enabled.
1289	(NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1290	if thread support is enabled.
1291
12922002-11-28  Andrew Cagney  <cagney@redhat.com>
1293
1294	* stack.c (get_selected_block): In-line get_current_block.
1295	* frame.h (get_current_block): Delete declaration.
1296	* blockframe.c (get_current_block): Delete function.
1297
12982002-11-28  Andrew Cagney  <ac131313@redhat.com>
1299
1300	* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1301	USE_GENERIC_DUMMY_FRAMES.
1302	* gdbarch.h, gdbarch.c: Regenerate.
1303	* valops.c, frame.c: Update.
1304	* config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1305	* config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1306	* config/pa/tm-hppa.h, blockframe.c: Update.
1307	* vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1308	* m68k-tdep.c, alpha-tdep.c: Ditto.
1309
1310	* arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1311	* mips-tdep.c: Ditto.
1312
13132002-11-27  Andrew Cagney  <ac131313@redhat.com>
1314
1315	* gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1316	(USE_GENERIC_DUMMY_FRAMES): Default to true.
1317	(PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1318	* gdbarch.c, gdbarch.h: Re-generate.
1319	* inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1320	(CALL_DUMMY_LOCATION): Delete macro definition.
1321	(PC_IN_CALL_DUMMY): Delete macro definitions.
1322
1323	* arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1324	default is already generic_pc_in_call_dummy.
1325	* xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1326	* v850-tdep.c (v850_gdbarch_init): Ditto.
1327	* sh-tdep.c (sh_gdbarch_init): Ditto.
1328	* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1329	* mips-tdep.c (mips_gdbarch_init): Ditto.
1330	* mcore-tdep.c (mcore_gdbarch_init): Ditto.
1331	* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1332	* ia64-tdep.c (ia64_gdbarch_init): Ditto.
1333	* h8300-tdep.c (h8300_gdbarch_init): Ditto.
1334	* d10v-tdep.c (d10v_gdbarch_init): Ditto.
1335	* avr-tdep.c (avr_gdbarch_init): Ditto.
1336
1337	* arm-tdep.c (arm_gdbarch_init): Do not set
1338	use_generic_dummy_frames, default is already 1.
1339	* xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1340	* x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1341	* v850-tdep.c (v850_gdbarch_init): Ditto.
1342	* sh-tdep.c (sh_gdbarch_init): Ditto.
1343	* s390-tdep.c (s390_gdbarch_init): Ditto.
1344	* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1345	* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1346	* mips-tdep.c (mips_gdbarch_init): Ditto.
1347	* mcore-tdep.c (mcore_gdbarch_init): Ditto.
1348	* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1349	* ia64-tdep.c (ia64_gdbarch_init): Ditto.
1350	* i386-tdep.c (i386_gdbarch_init): Ditto.
1351	* h8300-tdep.c (h8300_gdbarch_init): Ditto.
1352	* frv-tdep.c (frv_gdbarch_init): Ditto.
1353	* d10v-tdep.c (d10v_gdbarch_init): Ditto.
1354	* cris-tdep.c (cris_gdbarch_init): Ditto.
1355	* avr-tdep.c (avr_gdbarch_init): Ditto.
1356
1357	* xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1358	call_dummy_location, default is already AT_ENTRY_POINT.
1359	* x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1360	* v850-tdep.c (v850_gdbarch_init): Ditto.
1361	* sparc-tdep.c (sparc_gdbarch_init): Ditto.
1362	* sh-tdep.c (sh_gdbarch_init): Ditto.
1363	* s390-tdep.c (s390_gdbarch_init): Ditto.
1364	* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1365	* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1366	* mips-tdep.c (mips_gdbarch_init): Ditto.
1367	* mcore-tdep.c (mcore_gdbarch_init): Ditto.
1368	* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1369	* ia64-tdep.c (ia64_gdbarch_init): Ditto.
1370	* i386-tdep.c (i386_gdbarch_init): Ditto.
1371	* h8300-tdep.c (h8300_gdbarch_init): Ditto.
1372	* frv-tdep.c (frv_gdbarch_init): Ditto.
1373	* d10v-tdep.c (d10v_gdbarch_init): Ditto.
1374	* cris-tdep.c (cris_gdbarch_init): Ditto.
1375	* avr-tdep.c (avr_gdbarch_init): Ditto.
1376	* arm-tdep.c (arm_gdbarch_init): Ditto.
1377	* alpha-tdep.c (alpha_gdbarch_init): Ditto.
1378
13792002-11-28  Andrew Cagney  <cagney@redhat.com>
1380
1381	* frame.h: Update comments on set_current_frame, create_new_frame,
1382	flush_cached_frames, reinit_frame_cache, select_frame and
1383	selected_frame.
1384
13852002-11-27  Andrew Cagney  <cagney@redhat.com>
1386
1387	* config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1388	deprecated pc_in_call_dummy function.
1389	* config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1390	* config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1391	* config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1392	* config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1393	* config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1394
13952002-11-26  Martin M. Hunt  <hunt@redhat.com>
1396
1397	* Makefile.in: Remove Tix dependencies.
1398	* acinclude.m4: Ditto.
1399	* aclocal.m4: Ditto.
1400	* configure.in: Ditto.
1401	* configure: Regenerated.
1402
14032002-11-26  Andrew Cagney  <ac131313@redhat.com>
1404
1405	* gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1406	(TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1407	* gdbarch.c: Re-generate.
1408
14092002-11-26  Andrew Cagney  <ac131313@redhat.com>
1410
1411	* config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1412	(USE_GENERIC_DUMMY_FRAMES): Define as zero.
1413	(PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1414	* config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1415	pc_in_call_dummy_at_entry_point.
1416	* config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1417	(USE_GENERIC_DUMMY_FRAMES): Define as zero.
1418	(PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1419	* config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1420	* config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1421	pc_in_call_dummy_on_stack.
1422	* config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1423	pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1424	* config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1425	(USE_GENERIC_DUMMY_FRAMES): Define as zero.
1426	(PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1427
14282002-11-26  Andrew Cagney  <ac131313@redhat.com>
1429
1430	* inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1431	pc_in_call_dummy_before_text_end
1432	(deprecated_pc_in_call_dummy_after_text_end): Rename
1433	pc_in_call_dummy_after_text_end.
1434	(deprecated_pc_in_call_dummy_on_stack): Rename
1435	pc_in_call_dummy_on_stack.
1436	(deprecated_pc_in_call_dummy_at_entry_point): Rename
1437	pc_in_call_dummy_at_entry_point.
1438	* m68k-tdep.c (m68k_gdbarch_init): Update.
1439	* s390-tdep.c (s390_gdbarch_init): Update.
1440	* x86-64-tdep.c (x86_64_gdbarch_init): Update.
1441	* vax-tdep.c (vax_gdbarch_init): Update.
1442	* sparc-tdep.c (sparc_gdbarch_init): Update.
1443	* ns32k-tdep.c (ns32k_gdbarch_init): Update.
1444	* mn10300-tdep.c (mn10300_gdbarch_init): Update.
1445	* i386-tdep.c (i386_gdbarch_init): Update.
1446	* frv-tdep.c (frv_gdbarch_init): Update.
1447	* cris-tdep.c (cris_gdbarch_init): Update.
1448	* config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1449	* blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1450	(deprecated_pc_in_call_dummy_after_text_end)
1451	(deprecated_pc_in_call_dummy_on_stack)
1452	(deprecated_pc_in_call_dummy_at_entry_point): Update.
1453	* alpha-tdep.c (alpha_gdbarch_init): Update.
1454
14552002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1456
1457	* acconfig.h (HAVE_PREAD64): Add.
1458	* configure.in: Check for pread64.
1459	* config.in: Regenerated.
1460	* configure: Regenerated.
1461	* lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1462	* linux-proc.c (linux_proc_xfer_memory): New function.
1463	* config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1464
14652002-11-25  David Carlton  <carlton@math.stanford.edu>
1466
1467	* dwarf2read.c (scan_partial_symbols): Descend into namespace
1468	pdi's with no name.
1469
14702002-11-25  Andrew Cagney  <ac131313@redhat.com>
1471
1472	* MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1473	16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1474
14752002-11-25  Jim Blandy  <jimb@redhat.com>
1476
1477	* symfile.c (init_objfile_sect_indices): New function.
1478	(default_symfile_offsets): Move the section-index-initializing
1479	stuff into init_objfile_sect_indices, and call that.
1480
1481	* symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1482	(SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1483
1484	* symfile.c (syms_from_objfile): Adjust indentation.
1485
1486	* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1487	|| info_verbose isn't true.
1488
14892002-11-24  Andrew Cagney  <ac131313@redhat.com>
1490
1491	* gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1492	default to get_frame_base.
1493	* gdbarch.h, gdbarch.c: Regenerate.
1494	* arch-utils.c (default_frame_address): Delete function.
1495	* arch-utils.h (default_frame_address): Delete declaration
1496
14972002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1498
1499	* varobj.c (find_frame_addr_in_frame_chain):
1500	Use get_frame_base instead of FRAME_FP,
1501	obvious fix.
1502
15032002-11-19  Andrew Cagney  <ac131313@redhat.com>
1504
1505	* frame.h (FRAME_FP): Delete macro.
1506	(get_frame_base): New function declaration.
1507	* frame.c (get_frame_base): New function.
1508	(get_frame_id): Use ->frame.
1509	(frame_find_by_id): Rewrite to use get_frame_id.
1510	* blockframe.c: Use get_frame_base instead of FRAME_FP.
1511	* cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1512	* hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1513	* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1514	* mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1515	* sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1516	* v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1517
15182002-11-24  Andrew Cagney  <ac131313@redhat.com>
1519
1520	* arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1521
15222002-11-24  Andrew Cagney  <ac131313@redhat.com>
1523
1524	* frame.c (set_unwind_by_pc): Revert change below, use
1525	PC_IN_CALL_DUMMY.
1526	(get_prev_frame): Ditto.
1527
15282002-11-24  Andrew Cagney  <ac131313@redhat.com>
1529
1530	* dummy-frame.c (pc_in_dummy_frame): New function.
1531	(generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1532	(find_dummy_frame): Update comment.
1533	(generic_pop_current_frame): Use get_frame_type.
1534	* dummy-frame.h (pc_in_dummy_frame): Declare.
1535	* frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1536	(create_new_frame): Use pc_in_dummy_frame.
1537	(get_prev_frame): Use pc_in_dummy_frame.
1538	(frame_saved_regs_register_unwind): Use get_prev_frame.
1539	(deprecated_generic_get_saved_register): Use get_prev_frame.
1540
15412002-11-23  Andrew Cagney  <ac131313@redhat.com>
1542
1543	* blockframe.c (find_frame_addr_in_frame_chain): Move function
1544	from here ...
1545	* varobj.c (find_frame_addr_in_frame_chain): ... to here.
1546	(varobj_create): Note that frame ID should be used.
1547	* frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1548
15492002-11-23  Andrew Cagney  <ac131313@redhat.com>
1550
1551	* breakpoint.c: Include "gdb_assert.h".
1552	(deprecated_frame_in_dummy): Assert that generic dummy frames are
1553	not being used.
1554	* Makefile.in (breakpoint.o): Update dependencies.
1555	* ada-lang.c (find_printable_frame): Use get_frame_type instead of
1556	deprecated_frame_in_dummy.
1557	* stack.c (print_frame_info_base): Ditto.
1558	(frame_info): Ditto.
1559	(print_frame_info_base): Ditto.  Delete dead code.
1560
15612002-11-23  Andreas Schwab  <schwab@suse.de>
1562
1563	* Makefile.in (m68k_tdep_h): Define.
1564	(abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1565	(remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1566	* m68k-tdep.c: Move register number enum ...
1567	* m68k-tdep.h: ... to this new file and rename the constants from
1568	E_* to M68K_*.  All uses changed.
1569	* config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1570	* abug-rom.c: Include "m68k-tdep.h".  Use
1571	M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1572	* cpu32bug-rom.c: Likewise.
1573	* dbug-rom.c: Likewise.
1574	* m68k-tdep.c: Likewise.
1575	* m68klinux-nat.c: Likewise.
1576	* remote-est.c: Likewise.
1577	* rom68k-rom.c: Likewise.
1578	* config/m68k/tm-linux.h: Likewise.
1579
15802002-11-23  Andrew Cagney  <ac131313@redhat.com>
1581
1582	* arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1583	dummy frame initialization code.
1584	* mips-tdep.c (mips_gdbarch_init): Ditto.
1585
15862002-11-22  Christopher Faylor  <cgf@redhat.com>
1587
1588	* win32-nat.c (child_attach): Reset saw_create counter or subsequent
1589	attach will hang.
1590
15912002-11-22  Andrew Cagney  <ac131313@redhat.com>
1592
1593	* gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1594	to default_frame_address.
1595	* gdbarch.h, gdbarch.c: Re-generate.
1596
1597	* d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1598	or frame_locals_address to default_frame_address.
1599	* m68k-tdep.c (m68k_gdbarch_init): Update.
1600	* i386-tdep.c (i386_gdbarch_init): Update.
1601	* frv-tdep.c (frv_gdbarch_init): Update.
1602	* sh-tdep.c (sh_gdbarch_init): Update.
1603	* v850-tdep.c (v850_gdbarch_init): Update.
1604	* sparc-tdep.c (sparc_gdbarch_init): Update.
1605	* mips-tdep.c (mips_gdbarch_init): Update.
1606	* mn10300-tdep.c (mn10300_gdbarch_init): Update.
1607	* x86-64-tdep.c (x86_64_gdbarch_init): Update.
1608	* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1609
1610	* cris-tdep.c (cris_frame_args_address): Delete function.
1611	(cris_frame_locals_address): Delete function.
1612	(cris_gdbarch_init): Do not set frame_args_address or
1613	frame_locals_address.
1614
16152002-11-22  Michael Snyder  <msnyder@redhat.com>
1616
1617	* thread-db.c (thread_db_load): Tell the user what's going on
1618	if dlopen fails on libthread_db.
1619
16202002-11-23  Andreas Schwab  <schwab@suse.de>
1621
1622	* m68k-tdep.c (m68k_register_virtual_type): Use architecture
1623	invariant return values.
1624
16252002-11-22  Andreas Schwab  <schwab@suse.de>
1626
1627	* valops.c (value_slice): Move declaration of `offset' to avoid
1628	warning.
1629
16302002-11-22  Christopher Faylor  <cgf@redhat.com>
1631
1632	* win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1633	(struct so_stuff): Add end_addr field.
1634	(register_loaded_dll): Calculate and store end address of loaded dll.
1635	(solib_address): New function.
1636	(child_solib_loaded_library_pathname): Pass carefully constructed
1637	section info to safe_symbol_file_add rather than ignoring it.
1638	(get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1639	DLL is loaded.
1640	(do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1641	(child_create_inferior): Fix a compiler warning.
1642	* config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1643	(solib_address): Declare new function.
1644
16452002-11-22  Andreas Schwab  <schwab@suse.de>
1646
1647	* m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1648	and FPS registers.
1649
16502002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1651
1652	* maint.c (_initialize_maint_cmds): Fix typo.  From
1653	Francesco Potorti` <pot@gnu.org>.
1654
16552002-11-21  Andrew Cagney  <cagney@redhat.com>
1656
1657	* mips-tdep.c (mips_dump_tdep): Delete references to
1658	GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1659	* config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1660	(GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1661	* printcmd.c (build_address_symbolic): Delete calls to
1662	GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1663	(address_info): Ditto.
1664	Fix PR gdb/773.
1665
16662002-11-19  Klee Dienes  <kdienes@apple.com>
1667            Adam Fedor  <fedor@gnu.org>
1668
1669	* completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1670	the ability to explicitly specify the quote characters and word
1671	break characters; if NULL is specified for either, use the old
1672	behavior of using the characters used by the completer.
1673	(skip_chars): New function.  Convenience wrapper around
1674	skip_quoted_chars to provide the original skip_chars behavior.
1675	* completer.h (skip_quoted_chars): Add prototype.
1676
16772002-11-19  Andrew Cagney  <ac131313@redhat.com>
1678
1679	Problems reported by Paul Eggert.
1680	* gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1681
16822002-11-19  Andreas Schwab  <schwab@suse.de>
1683
1684	* m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1685	(m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1686	(UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1687	(m68k_linux_frame_saved_pc): Move to ...
1688	* m68klinux-tdep.c: ... here.  New file.
1689	* Makefile.in (m68klinux-tdep.o): Add dependencies.
1690	* config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1691
16922002-11-19  Adam Fedor  <fedor@gnu.org>
1693
1694	* objc-exp.y: Revert to old skip_quoted usage.
1695
16962002-11-19  Adam Fedor  <fedor@gnu.org>
1697
1698	* Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1699	(objc_lang_h): Define.
1700	(YYFILES): Add objc-exp.tab.c.
1701	(local-maintainer-clean): Remove objc-exp.tab.c.
1702	(objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1703
17042002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1705
1706	* p-exp.y (typecast rule): Add automatic dereference of
1707	pascal classes if needed.
1708	(THIS): Set current_type.
1709	Automatically dereference pascal classes.
1710	(typebase rule): Add ^typebase recognition.
1711
17122002-11-18  Adam Fedor  <fedor@gnu.org>
1713
1714	* expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1715	OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1716	(op_name): Handle OP_OBJC_SELF.
1717	* Makefile.in (expprint.o): Add additional depends.
1718
17192002-11-18  Adam Fedor  <fedor@gnu.org>
1720
1721	* expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1722	OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1723	* parse.c (length_of_subexp, prefixify_subexp): Likewise.
1724	* objc-exp.y: Likewise.
1725
17262002-11-18  Adam Fedor  <fedor@gnu.org>
1727
1728	* gdb/parser-defs.h: (struct objc_class_str): New structure
1729	for parsing ObjC classes.
1730
17312002-11-18  Andrew Cagney  <ac131313@redhat.com>
1732
1733	* stack.c (frame_relative_level): Copy function from here ...
1734	* frame.c (frame_relative_level): ...to here.
1735
17362002-11-18  Andrew Cagney  <ac131313@redhat.com>
1737
1738	* frame.h (enum frame_type): Define.
1739	(get_frame_type): Declare.
1740	(struct frame_info): Add field `type'.  Delete field
1741	signal_handler_caller.
1742	(deprecated_set_frame_signal_handler_caller): Declare.
1743	* frame.c (get_frame_type): New function.
1744	(deprecated_set_frame_type): New function.
1745	(create_new_frame): Set the frame's type.
1746	(get_prev_frame): Similar.
1747	* sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1748	* s390-tdep.c: Ditto.
1749	* m68klinux-nat.c: Ditto.
1750	* ns32k-tdep.c: Ditto.
1751	* x86-64-linux-tdep.c: Ditto.
1752	* vax-tdep.c: Ditto.
1753	* rs6000-tdep.c: Ditto.
1754	* ppc-linux-tdep.c: Ditto.
1755	* i386-interix-tdep.c: Ditto.
1756	* mips-tdep.c: Ditto.
1757	* m68k-tdep.c: Ditto.
1758	* hppa-tdep.c: Ditto.
1759	* ia64-tdep.c: Ditto.
1760	* cris-tdep.c: Ditto.
1761	* arm-tdep.c: Ditto.
1762	* alpha-tdep.c: Ditto.
1763	* i386-tdep.c: Ditto.
1764	* stack.c: Ditto.
1765	* ada-lang.c: Ditto.
1766	* blockframe.c: Update.
1767	* i386-interix-tdep.c (i386_interix_back_one_frame): Use
1768	deprecated_set_frame_type instead of signal_handler_caller.
1769	* ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1770	* rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1771	* breakpoint.h: Delete FIXME suggesting get_frame_type.
1772
17732002-11-18   Klee Dienes  <kdienes@apple.com>
1774
1775	* Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1776
17772002-11-18  Klee Dienes  <kdienes@apple.com>
1778
1779	* buildsym.c (pop_context): Add comment.
1780
17812002-11-18  Klee Dienes  <kdienes@apple.com>
1782
1783        * buildsym.h (pop_context): Convert to function, defined in
1784	buildsym.c.
1785	* buildsym.c: Include gdb_assert.h.
1786	(pop_context): Implement as C function.  Add check for stack
1787	underflow.
1788        * dbxread.c (process_one_symbol): Complain and stop processing
1789	that symbol if we are already at the top of the context stack for
1790	a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1791	when processing N_RBRAC.
1792
17932002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1794
1795	* config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1796	define.
1797	(struct target_waitstatus): Add opaque definition.
1798	* corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1799	* exec.c (init_exec_ops): Likewise.
1800	* fork-child.c (clone_and_follow_inferior): Remove.
1801	* hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1802	* inferior.h (clone_and_follow_inferior): Remove prototype.
1803	* infrun.c (follow_fork_mode_both): Remove.
1804	(follow_fork_mode_kind_names): Remove commented out "both".
1805	(follow_inferior_fork): Remove follow_fork_mode_both support.
1806	* inftarg.c (child_clone_and_follow_inferior): Remove.
1807	(child_post_follow_inferior_by_clone): Remove.
1808	(init_child_ops): Don't set to_clone_and_follow_inferior
1809	or to_post_follow_inferior_by_clone.
1810	* target.c (default_clone_and_follow_inferior): Remove.
1811	(cleanup_target): Don't set to_clone_and_follow_inferior
1812	or to_post_follow_inferior_by_clone.
1813	(find_default_clone_and_follow_inferior): Remove.
1814	(init_dummy_target): Don't set to_clone_and_follow_inferior.
1815	(debug_to_clone_and_follow_inferior): Remove.
1816	(debug_to_post_follow_inferior_by_clone): Remove.
1817	(setup_target_debug): Don't set to_clone_and_follow_inferior
1818	or to_post_follow_inferior_by_clone.
1819	* target.h (struct target_ops): Remove to_clone_and_follow_inferior
1820	and to_post_follow_inferior_by_clone.
1821	(child_clone_and_follow_inferior): Remove prototype.
1822	(child_post_follow_inferior_by_clone): Remove prototype.
1823	(target_clone_and_follow_inferior): Remove macro.
1824	(target_post_follow_inferior_by_clone): Remove macro.
1825	(find_default_clone_and_follow_inferior): Remove prototype.
1826
18272002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1828
1829	* breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1830	inferior_has_vforked, and inferior_has_execd instead of
1831	target_has_forked, target_has_vforked, and target_has_execd.
1832	* config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1833	(CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1834	(CHILD_WAIT): Define.
1835	(child_wait): Add prototype.
1836	* hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1837	Add prototype.
1838	(hpux_has_vforked): Likewise, from child_has_vforked.
1839	(hpux_has_execd): Likewise, from child_has_execd.
1840	(hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1841	(not_same_real_pid, child_wait): New, copied from inftarg.c.
1842	Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1843	and hpux_has_syscall_event instead of the target hooks.
1844	* infrun.c (inferior_has_forked, inferior_has_vforked)
1845	(inferior_has_execd): New functions.
1846	* inftarg.c (not_same_real_pid): Remove.
1847	(child_wait): Remove references to not_same_real_pid,
1848	target_has_forked, target_has_vforked, target_has_execd,
1849	and target_has_syscall_event.
1850	(child_has_forked, child_has_vforked, child_has_execd)
1851	(child_has_syscall_event): Remove.
1852	(init_child_ops): Remove references to child_has_forked,
1853	child_has_vforked, child_has_execd, and child_has_syscall_event.
1854	* infttrace.c (hpux_has_forked): Rename from child_has_forked.
1855	(hpux_has_vforked): Likewise, from child_has_vforked.
1856	(hpux_has_execd): Likewise, from child_has_execd.
1857	(hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1858	* target.c (cleanup_target): Remove references to
1859	to_has_forked, to_has_vforked, to_has_execd, and
1860	to_has_syscall_event.
1861	(update_current_target): Likewise.
1862	(setup_target_debug): Likewise.
1863	(debug_to_has_forked): Remove.
1864	(debug_to_has_vforked): Remove.
1865	(debug_to_has_execd): Remove.
1866	(debug_to_has_syscall_event): Remove.
1867	* target.h (struct target_ops): Remove to_has_forked.
1868	to_has_vforked, to_has_execd, and to_has_syscall_event.
1869	(child_has_forked, child_has_vforked, child_has_execd)
1870	(child_has_syscall_event): Remove prototypes.
1871	(inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1872	prototypes.
1873	(target_has_forked, target_has_vforked, target_has_execd)
1874	(target_has_syscall_event): Remove macros.
1875
18762002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1877
1878	* hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1879	* inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1880	(init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1881	* infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1882	* target.c (cleanup_target): Remove reference to
1883	to_can_follow_vfork_prior_to_exec.
1884	(update_current_target): Likewise.
1885	(debug_to_can_follow_vfork_prior_to_exec): Remove.
1886	(setup_target_debug): Remove reference to
1887	to_can_follow_vfork_prior_to_exec.
1888	* target.h (struct target_ops): Remove
1889	to_can_follow_vfork_prior_to_exec.
1890	(child_can_follow_vfork_prior_to_exec): Remove prototype.
1891	(target_can_follow_vfork_prior_to_exec): Remove definition.
1892	* config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1893	define.
1894	* infrun.c (follow_vfork_when_exec): Remove.
1895	(follow_inferior_fork): Remove references to follow_vfork_when_exec.
1896	(follow_exec): Likewise.
1897	(handle_inferior_event): Likewise.
1898	(keep_going): Likewise.
1899
19002002-11-15  Andrew Cagney  <cagney@redhat.com>
1901
1902	* frame.c (generic_unwind_get_saved_register): Make static.
1903	* frame.h (generic_unwind_get_saved_register): Delete declaration.
1904	* avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1905	defaults to generic_unwind_get_saved_register.
1906	* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1907	* h8300-tdep.c (h8300_gdbarch_init): Ditto.
1908	* frv-tdep.c (frv_gdbarch_init): Ditto.
1909	* i386-tdep.c (i386_gdbarch_init): Ditto.
1910	* s390-tdep.c (s390_gdbarch_init): Ditto.
1911	* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1912	* v850-tdep.c (v850_gdbarch_init): Ditto.
1913	* mcore-tdep.c (mcore_gdbarch_init): Ditto.
1914	* d10v-tdep.c (d10v_gdbarch_init): Ditto.
1915	* config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1916
19172002-11-15  Andrew Cagney  <cagney@redhat.com>
1918
1919	* x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1920	i386-tdep.c.
1921
19222002-11-15  Andrew Cagney  <cagney@redhat.com>
1923
1924	* frame.h (sigtramp_saved_pc): Delete declaration.
1925	* blockframe.c (sigtramp_saved_pc): Delete function.
1926	* ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1927	(ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1928	* vax-tdep.c (vax_sigtramp_saved_pc): New function.
1929	(vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1930
19312002-11-15  Andrew Cagney  <ac131313@redhat.com>
1932
1933	* frame.c (frame_pc_unwind): New function.
1934	(frame_saved_regs_pc_unwind): New function.
1935	(frame_register_unwind): Pass unwind_cache instead of
1936	register_unwind_cache.
1937	(set_unwind_by_pc): Add unwind_pc parameter, set.
1938	(create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1939	(get_prev_frame): Ditto.
1940	* frame.h (frame_pc_unwind_ftype): Declare.
1941	(struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1942	pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1943	(frame_pc_unwind): Declare.
1944	* dummy-frame.c (dummy_frame_pc_unwind): New function.
1945	(struct dummy_frame): Add comment mentioning that values are for
1946	previous frame.
1947	* dummy-frame.h (dummy_frame_pc_unwind): Declare.
1948	* blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1949	(generic_file_frame_chain_valid): Ditto.
1950	* stack.c (frame_info): Ditto.
1951
19522002-11-15  David Carlton  <carlton@math.stanford.edu>
1953
1954	* linespec.c (locate_first_half): New function.
1955	(decode_line_1): Move code into locate_first_half.
1956
19572002-11-15  Andrew Cagney  <ac131313@redhat.com>
1958
1959	* complaints.h: Add comment explaining how to eliminate a
1960	deprecated_complain call.
1961	* complaints.h: Fix spelling errors.
1962
19632002-11-15  David Carlton  <carlton@math.stanford.edu>
1964
1965	* printcmd.c: Remove #include "disasm.h".
1966
19672002-11-14  Andrew Cagney  <ac131313@redhat.com>
1968
1969	* frame.h: Move the most relevant interface functions to the start
1970	of the file.
1971
19722002-11-14  Andrew Cagney  <ac131313@redhat.com>
1973
1974	* regcache.h (deprecated_registers): Rename registers.
1975	* a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1976	* hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1977	* hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1978	* ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1979	* irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1980	* m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1981	* mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1982	* ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1983	* remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1984	* remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1985	* sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1986	* v850ice.c: Update.
1987
1988Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
1989
1990	* utils.c (gdb_realpath): Add comment mentioning realpath with a
1991 	NULL buffer.
1992
19932002-11-13  Andrew Cagney  <cagney@redhat.com>
1994
1995	* regcache.h (deprecated_read_register_bytes): Rename
1996	read_register_bytes.
1997	(deprecated_write_register_bytes): Rename write_register_bytes.
1998	* alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1999	* dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2000	* m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2001	* ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2002	* remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2003	* sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2004	* xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2005	* config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2006	* config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2007	* config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2008	* config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2009	* config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2010	* config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2011	* config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2012
20132002-11-13  Jim Blandy  <jimb@redhat.com>
2014
2015	* findvar.c (read_var_value): Doc fix.
2016
20172002-11-13  Andrew Cagney  <cagney@redhat.com>
2018
2019	* regcache.c (struct regcache): Replace passthough_p with
2020	readonly_p.
2021	(regcache_xmalloc): Initialize readonly_p.
2022	(build_regcache): Initialize readonly_p.
2023	(regcache_save): New function.
2024	(regcache_restore): New function.
2025	(regcache_cpy): Re-implement using regcache_save and
2026	regcache_restore.
2027	(regcache_raw_read): Update.
2028	(regcache_cooked_read): When a read-only cache, checked for cached
2029	pseudo register values.
2030	(regcache_raw_write): Assert that the cache is not read-only.
2031	Remove code handling a non-passthrough cache.
2032	* regcache.h (regcache_save): Declare.
2033	(regcache_restore): Declare.
2034
20352002-11-13  Andrew Cagney  <cagney@redhat.com>
2036
2037	* regcache.c (struct regcache_descr): Add fields
2038	sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2039	(init_legacy_regcache_descr): Compute the size of a cooked
2040	register cache and then assign that to sizeof_raw_registers.  Set
2041	sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2042	(init_legacy_regcache_descr): Ditto.
2043
20442002-11-13  Andrew Cagney  <cagney@redhat.com>
2045
2046	* regcache.c (register_buffer): Move to near start of file, update
2047	description.
2048	(regcache_raw_read): Use.
2049	(regcache_raw_write): Use.
2050	(struct regcache): Rename raw_registers to registers and
2051	raw_register_valid_p to register_valid_p.
2052	(regcache_xmalloc): Update.
2053	(regcache_xfree): Update.
2054	(register_buffer): Update.
2055	(regcache_cpy): Update.
2056	(regcache_cpy_no_passthrough): Update.
2057	(regcache_valid_p): Update.
2058	(deprecated_grub_regcache_for_registers): Update.
2059	(deprecated_grub_regcache_for_register_valid): Update.
2060	(set_register_cached): Update.
2061	(regcache_raw_write): Update.
2062
20632002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2064
2065	* p-exp.y (name_not_typename): Use copy_name to
2066	set current_type variable for fields of THIS.
2067
20682002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2069
2070	* gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2071	* monitor.c (init_base_monitor_ops): Likewise.
2072	* ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2073	* remote-array.c (init_array_ops): Likewise.
2074	* remote-e7000.c (init_e7000_ops): Likewise.
2075	* remote-es.c (init_es1800_ops): Likewise.
2076	(init_es1800_child_ops): Likewise.
2077	* remote-rdp.c (init_remote_rdp_ops): Likewise.
2078	* remote-sim.c (init_gdbsim_ops): Likewise.
2079	* remote-st.c (init_st2000_ops): Likewise.
2080	* sol-thread.c (init_sol_core_ops): Likewise.
2081	(init_sol_thread_ops): Likewise.
2082	* v850ice.c (init_850ice_ops): Likewise.
2083	* win32-nat.c (init_child_ops): Likewise.
2084	* wince.c (init_child_ops): Likewise.
2085
20862002-11-12  Andrew Cagney  <ac131313@redhat.com>
2087
2088	* utils.c (gdb_realpath): Make rp a constant pointer.
2089
20902002-11-12  Andrew Cagney  <ac131313@redhat.com>
2091
2092	* utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2093	a constant buffer; cannonicalize_file_name(); realpath() with a
2094	pathconf() defined buffer, xstrdup().
2095
20962002-11-12  Andrew Cagney  <ac131313@redhat.com>
2097
2098	* config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2099	to hang2.C; hang3.c to hang3.C.
2100
21012002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2102
2103        * findvar.c (read_var_value): Reenable TLS code.
2104
21052002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2106            Jim Blandy  <jimb@redhat.com>
2107
2108	* gdb_thread_db.h (enum): Add TD_NOTALLOC.
2109	* target.c (update_current_target): Add
2110	to_get_thread_local_address.
2111	* target.h (to_get_thread_local_address): Export.
2112	(target_get_thread_local_address): Define.
2113	(target_get_thread_local_address_p): Define.
2114	* thread-db.c: Include solib-svr4.h.
2115	(td_thr_tls_get_addr_p): Define.
2116	(thread_db_load): Get a pointer to td_thr_tls_get_addr.
2117	(thread_db_get_thread_local_address): New function.
2118	(init_thread_db_ops): Initialize to_get_thread_local_address.
2119	* configure.in: Add test for TD_NOTALLOC in thread_db.h.
2120	* configure: Regenerate.
2121	* config.in: Regenerate.
2122
21232002-11-11  David Carlton  <carlton@math.stanford.edu>
2124
2125	* linespec.c (set_flags): New function.
2126	(decode_line_1): Move code into set_flags.
2127
21282002-11-11  David Carlton  <carlton@math.stanford.edu>
2129
2130	* linespec.c (decode_line_1): Move chunks of code to separate
2131	functions.
2132	(initialize_defaults): New function.
2133	(decode_indirect): New function.
2134
21352002-11-11  Andrew Cagney  <ac131313@redhat.com>
2136
2137	* blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2138	instead of void_code_ptr.
2139	(sigtramp_saved_pc): Ditto.
2140
2141	* x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2142	i386_fp_regnum_p.
2143
21442002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2145
2146	* gdbtypes.h (struct main_type): Move artificial flag out of
2147	loc.  New member of ``struct field'' named static_kind.  Reduce
2148	overloaded meaning of bitsize.
2149	(FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2150	(TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2151	(FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2152
2153	* ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2154	new fields.
2155	(template_to_fixed_record_type, template_to_static_fixed_type)
2156	(to_record_with_fixed_variant_part): Likewise.
2157	* coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2158	* dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2159	* dwarfread.c (struct_type, enum_type): Likewise.
2160	* hpread.c (hpread_read_enum_type)
2161	(hpread_read_function_type, hpread_read_doc_function_type)
2162	(hpread_read_struct_type): Likewise.
2163	* mdebugread.c (parse_symbol): Likewise.
2164
21652002-11-10  Andrew Cagney  <ac131313@redhat.com>
2166
2167	* breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2168	* stack.c (print_frame_info_base): Update.
2169	(print_frame_info_base, frame_info): Update.
2170	* sparc-tdep.c (sparc_init_extra_frame_info): Update.
2171	(sparc_frame_saved_pc): Update.
2172	* ada-lang.c (find_printable_frame): Update.
2173	* breakpoint.c (deprecated_frame_in_dummy): Update.
2174
21752002-11-09  Mark Kettenis  <kettenis@gnu.org>
2176
2177	* i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2178	defined.
2179	(regmap): Extend to cover all registers.
2180	(PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2181	OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2182	definitions.
2183	(fetch_register, sore_register): Simplify.
2184	(old_fetch_inferior_registers, old_store_inferior_registers):
2185	Remove functions.
2186	(cannot_fetch_register, cannot_store_register): Change
2187	implementation to use regmap array to decide which registers
2188	cannot be fetched/stored.  This removes $orig_eax from the
2189	registers that cannot be fetched/stored.
2190	(fetch_inferior_registers): Call fetch_register directly instead
2191	of calling old_fetch_inferior_registers.
2192	(store_inferior_registers): Call store_register directly instead
2193	of calling old_store_inferior_registers.
2194	(i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2195	(i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2196	* config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2197
21982002-11-09  Klee Dienes  <kdienes@apple.com>
2199
2200        * i387-tdep.c (i387_supply_register): When called with NULL as a
2201	buffer, mark the register as not provided (to mirror the behavior
2202	of supply_register).
2203        (i387_supply_fxsave): Ditto.
2204        (i387_supply_fsave): Ditto (inherits the behavior from
2205	i387_supply_register).
2206
22072002-11-09  Klee Dienes  <kdienes@apple.com>
2208
2209	* blockframe.c (sigtramp_saved_pc): Use
2210	builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2211	extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2212	instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2213
22142002-11-09  Andrew Cagney  <ac131313@redhat.com>
2215
2216	* frame.c (get_prev_frame): Test prev_p to identify a previously
2217	unwound frame.  Initialize prev_p.
2218	* frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2219	comment.
2220
22212002-11-09  Andrew Cagney  <ac131313@redhat.com>
2222
2223	* frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2224	for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2225	more comments.  Zap dead code.
2226
22272002-11-09  Mark Kettenis  <kettenis@gnu.org>
2228
2229	* infcmd.c (print_vector_info, print_float_info): Move code that
2230	checks whether the target has any registers and whether there is a
2231	selected frame up, such that it is also used if a target provides
2232	multi-arch definitions of these functions.
2233
22342002-11-08  Andrew Cagney  <ac131313@redhat.com>
2235
2236	* Makefile.in (DESTDIR): Define.
2237	(install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2238	prefix.
2239
2240	* config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2241	i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2242
22432002-11-08  Andrew Cagney  <ac131313@redhat.com>
2244
2245	* i386-linux-tdep.c: Include "reggroups.h".
2246	(i386_linux_register_reggroup_p): New function.
2247	(i386_linux_init_abi): Set register_reggroup_p to
2248	i386_linux_register_reggroup_p.
2249	* i386-tdep.h (i386_register_reggroup_p): Declare.
2250	* i386-tdep.c: Include "reggroups.h".
2251	(i386_init_reggroups): New function.
2252	(i386_add_reggroups): New function.
2253	(i386_register_reggroup_p): New function.
2254	(i386_sse_reggroup, i386_mmx_reggroup): New variables.
2255	(_initialize_i386_tdep): Call i386_init_reggroups.
2256	(i386_gdbarch_init): Set register_reggroup_p and add in the i386
2257	specific reggroups.
2258
22592002-11-09  Mark Kettenis  <kettenis@gnu.org>
2260
2261	* infptrace.c (child_xfer_memory): Make use of the new PT_IO
2262	request that's available in *BSD.
2263
2264	* i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2265
2266	* i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2267	FDOFF_REGNUM.
2268
22692002-11-08  Andrew Cagney  <ac131313@redhat.com>
2270
2271	* frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2272	* dummy-frame.c (find_dummy_frame): Rename
2273	generic_find_dummy_frame, make static.  Return the dummy frame
2274	instead of the regcache.
2275	(generic_find_dummy_frame): Re-implement using find_dummy_frame,
2276	(cached_find_dummy_frame): New function.  Use find_dummy_frame.
2277	(dummy_frame_register_unwind): Rename
2278	generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2279	* dummy-frame.h (dummy_frame_register_unwind): Rename
2280	generic_call_dummy_register_unwind.
2281
22822002-11-08  Mark Kettenis  <kettenis@gnu.org>
2283
2284	* config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2285	except the inclusion of "i386/tm-i386.h", to...
2286	* config/i386/nm-i386v42mp.h: ...here.
2287	* config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2288
22892002-11-08  Andrew Cagney  <ac131313@redhat.com>
2290
2291	* Makefile.in (frame.o): Update dependencies.
2292	* blockframe.c (current_frame, frame_obstack_alloc)
2293	(frame_saved_regs_zalloc, get_current_frame)
2294	(set_current_frame, create_new_frame)
2295	(set_unwind_by_pc, get_next_frame)
2296	(flush_cached_frames, reinit_frame_cache)
2297	(frame_saved_regs_register_unwind)
2298	(deprecated_generic_get_saved_register)
2299	(get_prev_frame, get_frame_pc, get_frame_saved_regs)
2300	(_initialize_blockframe): Move frame code from here...
2301	* frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2302	"annotate.h" and "dummy-frame.h".
2303	(_initialize_frame): New function.
2304
23052002-11-08  Jim Blandy  <jimb@redhat.com>
2306
2307	* dwarf2read.c (read_func_scope): Restore list_in_scope properly
2308	when we finish a function a context.
2309	* buildsym.h (outermost_context_p): New macro.
2310	(Bug analyzed by David Edelsohn.)
2311
23122002-11-08  Andrew Cagney  <ac131313@redhat.com>
2313
2314	* blockframe.c: Include "dummy-frame.h".
2315	(struct dummy_frame, dummy_frame_stack)
2316	(generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2317	(generic_pc_in_call_dummy, deprecated_read_register_dummy)
2318	(generic_push_dummy_frame, generic_save_dummy_frame_tos)
2319	(generic_save_call_dummy_addr, generic_pop_current_frame)
2320	(generic_pop_dummy_frame, generic_fix_call_dummy)
2321	(generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2322	dummy frame code from here...
2323	* dummy-frame.c: ...to here.  New file.
2324	* dummy-frame.h: New file.
2325	(generic_call_dummy_register_unwind): Declare.
2326	(generic_find_dummy_frame): Declare.
2327	* Makefile.in (SFILES): Add dummy-frame.c.
2328	(dummy-frame.o): Specify dependencies.
2329	(dummy_frame_h): Define.
2330	(COMMON_OBS): Add dummy-frame.o.
2331	(blockframe.o): Update dependencies.
2332
23332002-11-08  Jim Blandy  <jimb@redhat.com>
2334
2335	* dwarf2read.c (read_func_scope): Restore local_symbols and
2336	param_symbols after we finish the function context.  (Based on a
2337	patch from David Edelsohn.)
2338
23392002-11-08  David Carlton  <carlton@math.stanford.edu>
2340
2341	* linespec.c (symbol_found): New function.
2342	(minsym_found): New function.
2343	(decode_line_1): Separate out some code into separate functions.
2344
23452002-11-08  Joel Brobecker  <brobecker@gnat.com>
2346
2347	* i386-tdep.c (i386_frameless_signal_p): Make non static for
2348	the benefit of the interix target.
2349	* i386-tdep.h (i386_frameless_signal_p): Declare.
2350
23512002-11-08  Andrew Cagney  <ac131313@redhat.com>
2352
2353	* i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2354	declaration that snuck in from change below.
2355
23562002-11-06  Andrew Cagney  <cagney@redhat.com>
2357
2358	* i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2359	all callers.
2360	(i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2361	(i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2362	(i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2363	(i386_mxcsr_regnum_p): new function.  Use instead of
2364	MXCSR_REGNUM_P.
2365	* i386-tdep.h (SSE_REGNUM_P): Delete macro.
2366	(i386_sse_regnum_p): Declare.
2367	(i386_mxcsr_regnum_p): Declare.
2368	(FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2369	(i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2370	(IS_FP_REGNUM): Update definition.
2371	(IS_FPU_CTRL_REGNUM): Update definition..
2372	(IS_SSE_REGNUM): Update definition..
2373	* i386v-nat.c (register_u_addr): Update.
2374	* go32-nat.c (fetch_register): Update.
2375	(store_register): Update.
2376
23772002-11-07  Joel Brobecker  <brobecker@gnat.com>
2378
2379	Preparation work to convert the hppa targets to multiarch partial.
2380
2381	* hppa-tdep.c: Add new functions replacing macro bodies from
2382	config/pa/tm-hppa.h. These function will be used to initialize
2383	the gdbarch structure. Import some comments from tm-hppa.h,
2384	and place them where appropriate, to avoid loosing them when
2385	we cleanup this file.
2386	(hppa_reg_struct_has_addr): New function.
2387	(hppa_inner_than): New function.
2388	(hppa_stack_align): New function.
2389	(hppa_pc_requires_run_before_use): New function.
2390	(hppa_instruction_nullified): New function.
2391	(hppa_register_byte): New function.
2392	(hppa_register_virtual_type): New function.
2393	(hppa_store_struct_return): New function.
2394	(hppa_cannot_store_register): New function.
2395	(hppa_frame_args_address): New function.
2396	(hppa_frame_locals_address): New function.
2397	(hppa_smash_text_address): New function.
2398	(hppa_coerce_float_to_double): New function. Requires the inclusion
2399	of "language.h".
2400
2401	* Makefile.in (hppa-tdep.o): Add dependency on language.h.
2402
2403	* tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2404	gdbarch-eligible macro to a call to the new associated function
2405	created in hppa-tdep.c.
2406	(INNER_THAN): Likewise.
2407	(STACK_ALIGN): Likewise.
2408	(PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2409	(INSTRUCTION_NULLIFIED): Likewise.
2410	(REGISTER_BYTE): Likewise.
2411	(REGISTER_VIRTUAL_TYPE): Likewise.
2412	(STORE_STRUCT_RETURN): Likewise.
2413	(CANNOT_STORE_REGISTER): Likewise.
2414	(FRAME_ARGS_ADDRESS): Likewise.
2415	(FRAME_LOCALS_ADDRESS): Likewise.
2416	(SMASH_TEXT_ADDRESS): Likewise.
2417	(COERCE_FLOAT_TO_DOUBLE): Likewise.
2418	(ABOUT_TO_RETURN): Delete, as no longer used.
2419
24202002-11-07  Fernando Nasser  <fnasser@redhat.com>
2421
2422	* printcmd.c (disassemble_command): Remove obsolete function.
2423	(_initialize_printcmd): Do not create disassemble command here.
2424	* cli/cli-cmds.c (disassemble_command): New function.  Implements
2425	disassemble command.
2426	(init_cli_cmds): Create disassemble command here instead.
2427
24282002-11-07  Andrew Cagney  <ac131313@redhat.com>
2429
2430	* MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2431
24322002-11-07  Andrew Cagney  <ac131313@redhat.com>
2433
2434	* regcache.h (regcache_cooked_read_using_offset_hack)
2435	(regcache_cooked_write_using_offset_hack): Delete declarations.
2436	(register_changed): Delete declaration.
2437	* regcache.c (regcache_cooked_read_using_offset_hack)
2438	(regcache_cooked_write_using_offset_hack): Delete functions.
2439	(cooked_xfer_using_offset_hack): Delete function.
2440	(register_changed): Delete function.
2441
24422002-11-07  Jim Blandy  <jimb@redhat.com>
2443
2444	* macroscope.c: #include "complaints.h".
2445	(sal_macro_scope): Cope with filenames that appear in the symtabs,
2446	but not in the macro table.
2447	* Makefile.in (macroscope.o): Record dependency.
2448
24492002-11-07  Joel Brobecker  <brobecker@gnat.com>
2450
2451	* PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2452
24532002-11-07  Andrew Cagney  <ac131313@redhat.com>
2454
2455	* regcache.c (deprecated_registers_fetched): Update.
2456	* regcache.h (deprecated_registers_fetched): Rename
2457	registers_fetched.
2458	* remote-vxsparc.c (vx_read_register): Update.
2459	* remote-vxmips.c (vx_read_register): Update.
2460	* remote-vx68.c (vx_read_register): Update.
2461	* irix5-nat.c (fetch_core_registers): Update.
2462	* mipsm3-nat.c (fetch_inferior_registers): Update.
2463	* sun3-nat.c (fetch_inferior_registers): Update.
2464	* symm-nat.c (fetch_inferior_registers): Update.
2465	* ns32knbsd-nat.c (fetch_inferior_registers): Update.
2466	(fetch_core_registers): Update.
2467	(fetch_kcore_registers): Update.
2468	* mips-nat.c (fetch_inferior_registers): Update.
2469	* corelow.c (get_core_registers): Update.
2470	* a68v-nat.c (fetch_inferior_registers): Update.
2471
24722002-11-06  Joel Brobecker  <brobecker@gnat.com>
2473
2474	Put in place the framework necessary for multiarching the hppa targets.
2475	* hppa-tdep.c (hppa_gdbarch_init): New function.
2476	(hppa_dump_tdep): New function.
2477	(_initialize_hppa_tdep): Register the hppa gdbarch init function and
2478	tdep structure dumper.
2479	* config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2480	until the multi-arching conversion has partially been completed.
2481
24822002-11-06  Andrew Cagney  <ac131313@redhat.com>
2483
2484	* valops.c (value_assign): Merge lval_register case into
2485	lval_reg_frame_relative.  Use frame_register and
2486	regcache_cooked_write instead of get_saved_register and
2487	write_register_bytes.  After flushing the register cache, try to
2488	re-select the selected frame.
2489
24902002-11-06  Andrew Cagney  <ac131313@redhat.com>
2491
2492	* regcache.h (deprecated_register_valid): Rename register_valid.
2493	* regcache.c: Update.
2494	* ia64-aix-nat.c: Update.
2495	* i386gnu-nat.c: Update.
2496	* alpha-nat.c: Update.
2497	* sparc-nat.c: Update.
2498	* lynx-nat.c: Update.
2499	* remote-mips.c: Update.
2500
25012002-11-06  Joel Brobecker  <brobecker@gnat.com>
2502
2503	* hppa-tdep.c (_initialize_hppa_tdep): Move function body
2504	to end of file, to be more consistent with the pratice followed
2505	by other targets.
2506
25072002-11-06  Andrew Cagney  <ac131313@redhat.com>
2508
2509	* infcmd.c: Include "reggroups.h" and <ctype.h>.
2510	(print_float_info): Print registers in float_reggroup.
2511	(print_vector_info): Print registers in vector_reggroup.
2512	(default_print_registers_info): When all, print registers in
2513	all_reggroup.  Otherwize, print registers in general_reggroup.
2514	(registers_info): Rewrite.  Add support for register groups.
2515	Eliminate a goto.
2516
25172002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2518
2519	* symtab.c (methods_info): Delete. It has been ifdeffed out for
2520	ages.
2521	(symtab_symbol_info): Remove eons old ifdeffed out code.
2522	(_initialize_symtab): Remove prehistoric disabled 'info methods'
2523	command.
2524
25252002-11-06  Theodore A. Roth  <troth@openavr.org>
2526
2527	* c-exp.y: Add missing semi-colons.
2528	* f-exp.y: Add missing semi-colons.
2529	* m2-exp.y: Add missing semi-colons.
2530	* p-exp.y: Add missing semi-colons.
2531	Add empty action to start rule to avoid a type clash error when
2532	building with bison >= 1.50.
2533
25342002-11-06  Jim Blandy  <jimb@redhat.com>
2535
2536	* macrotab.h (struct macro_source_file): Doc fix.
2537
25382002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2539
2540	* varobj.c (child_exists, cplus_number_of_children): Change
2541	STREQ macro references to strcmp.
2542	(cplus_name_of_child): Change code to handle the fact that
2543	fields are not necessarily contiguous with regards to their
2544	access control. This is a fix for PR gdb/792.
2545
25462002-11-05  Andrew Cagney  <ac131313@redhat.com>
2547
2548	* gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2549	* gdbarch.h, gdbarch.c: Regnerate.
2550	* frame.h (frame_register): Declare.
2551	* frame.c (frame_register): New function.
2552	(get_saved_register): Test GET_SAVED_REGISTER_P before calling
2553	GET_SAVED_REGISTER, otherwize call
2554	generic_unwind_get_saved_register.
2555	(frame_register_read): Use frame_register instead of
2556	get_saved_register.
2557
25582002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2559
2560        From Jim Ingham  <jingham@apple.com>:
2561	* event-top.c (gdb_disable_readline): New function.
2562	(_initialize_event_loop): Move comment.
2563
25642002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2565
2566	* event-loop.c (start_event_loop): Add comment.
2567	Update copyright.
2568
25692002-11-05  Andrew Cagney  <ac131313@redhat.com>
2570
2571	* infcmd.c (default_print_registers_info): Do not call
2572	PRINT_REGISTER_HOOK.
2573
25742002-11-05  Andrew Cagney  <ac131313@redhat.com>
2575
2576	* sparc-tdep.c (sparc_print_register_hook): Make static.
2577	(sparc_print_registers_info): New function.
2578	(sparc_do_registers_info): New function.
2579	(sparclet_print_registers_info): New function.
2580	(sparclet_do_registers_info): New function.
2581	(do_sparc_print_registers_info): New function.
2582	(sparc_print_registers): New static function, clone of infcmd.c's
2583	default_print_registers_info.
2584	* config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2585	(sparclet_do_registers_info): Declare.
2586	(DEPRECATED_DO_REGISTERS_INFO): Re-define.
2587	* config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2588	Re-define.
2589	(sparc_do_registers_info): Declare.
2590	(PRINT_REGISTER_HOOK): Delete macro.
2591	(sparc_print_register_hook): Delete declaration.
2592
25932002-11-05  David Carlton  <carlton@math.stanford.edu>
2594
2595	* symtab.c (lookup_symbol_aux): Move chunks of code into separate
2596	functions.
2597	(lookup_symbol_aux_local): New function.
2598	(lookup_symbol_aux_symtabs): New function.
2599	(lookup_symbol_aux_psymtabs): New function.
2600
26012002-11-05  David Carlton  <carlton@math.stanford.edu>
2602
2603	* symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2604	previous values of 'objfile' and 'block'.
2605
26062002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2607
2608	* values.c (value_change_enclosing_type): Set
2609	enclosing_type field correctly also for the case where
2610	more memory needs to be allocated.
2611
26122002-11-03  Mark Kettenis  <kettenis@gnu.org>
2613
2614	* i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2615	of puts_filtered.
2616
2617	* i387-tdep.c (i387_print_float_info): Replace calls to
2618	register_read and deprecated_read_register_gen with calls to
2619	frame_register_read, and make the necessary adjustments to the
2620	surrounding code.
2621
26222002-11-02  Andrew Cagney  <ac131313@redhat.com>
2623
2624	* gdbarch.sh (register_reggroup_p): Allow default value.
2625	* gdbarch.h, gdbarch.c: Regenerate.
2626
26272002-11-02  Andrew Cagney  <ac131313@redhat.com>
2628
2629	* regcache.h: Add coment indicating replacements for deprecated
2630	functions.
2631
26322002-11-02  Andrew Cagney  <cagney@redhat.com>
2633
2634	* reggroups.h, reggroups.c: New files.
2635	* regcache.c: Include "reggroups.h".
2636	(enum regcache_dump_what): Add `regcache_dump_groups'.
2637	(regcache_dump): Contract size of the "Type" column.  When
2638	specified, dump the register's groups.
2639	(maintenance_print_register_groups): New function.
2640	(_initialize_regcache): Add command `maint print register-groups'.
2641	* Makefile.in (COMMON_OBS): Add reggroups.o
2642	(SFILES): Add reggroups.c.
2643	(reggroups_h): Define.
2644	(regcache.o, gdbarch.o): Update dependencies.
2645	(reggroups.o): Specify dependencies.
2646	* gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2647	Add opaque declaration for `struct reggroup' in generated .h file.
2648	Include "reggroups.h" in generated .c file.
2649	gdbarch.h, gdbarch.c: Re-generate.
2650
26512002-11-02  Andrew Cagney  <cagney@redhat.com>
2652
2653	* regcache.h (deprecated_read_register_gen): Rename
2654	read_register_gen.
2655	(deprecated_write_register_gen): Rename write_register_gen.
2656	* i387-tdep.c: Update.
2657	* x86-64-linux-nat.c: Update
2658	* wince.c: Update.
2659	* thread-db.c: Update.
2660	* win32-nat.c: Update.
2661	* mips-tdep.c: Update.
2662	* d10v-tdep.c: Update.
2663	* cris-tdep.c: Update.
2664	* remote-sim.c: Update.
2665	* remote-rdi.c: Update.
2666	* remote-rdp.c: Update.
2667	* frame.c: Update.
2668	* target.c: Update.
2669	* blockframe.c: Update.
2670	* x86-64-tdep.c: Update.
2671	* xstormy16-tdep.c: Update.
2672	* sh-tdep.c: Update.
2673	* s390-tdep.c: Update.
2674	* rs6000-tdep.c: Update.
2675	* sparc-tdep.c: Update.
2676	* i386-tdep.c: Update.
2677	* dwarf2cfi.c: Update.
2678	* regcache.c: Update.
2679
26802002-11-01  Joel Brobecker  <brobecker@gnat.com>
2681
2682	New interix-specific files:
2683	* config/i386/nm-interix.h: New file.
2684	* config/i386/interix.mh: New file.
2685	* config/i386/interix.mt: New file.
2686	* i386-interix-nat.c: New file.
2687	* i386-interix-tdep.c: New file.
2688
26892002-11-01  Andrew Cagney  <cagney@redhat.com>
2690
2691	* frame.h (deprecated_generic_get_saved_register): Rename
2692	generic_get_saved_register.
2693	* blockframe.c (deprecated_generic_get_saved_register): Update.
2694	* xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2695	(xstormy16_frame_saved_register): Update.
2696	* sh-tdep.c (sh_gdbarch_init): Update.
2697	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2698	* ia64-tdep.c (ia64_get_saved_register): Update.
2699	* cris-tdep.c (cris_gdbarch_init): Update.
2700	* config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2701	* arm-tdep.c (arm_gdbarch_init): Update.
2702
27032002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2704
2705	* lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2706
27072002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2708
2709	* i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2710	trampolines in sigaction.
2711
27122002-10-31  Andrew Cagney  <cagney@redhat.com>
2713
2714	* h8300-tdep.c: Include "gdb_assert.h".
2715	(h8300_print_register): Add gdbarch, file and frame parameters.
2716	Use frame_read_unsigned_register to read the register's value.
2717	Use fprintf_filtered to display output.
2718	(h8300_print_registers_info): Replace h8300_do_registers_info.
2719	(h8300_gdbarch_init): Set print_registers_info.
2720
27212002-10-31  Andrew Cagney  <cagney@redhat.com>
2722
2723	* frame.c (frame_read_unsigned_register): New function.
2724	(frame_read_signed_register): New function.
2725	* frame.h (frame_read_unsigned_register): Declare.
2726	(frame_read_signed_register): Declare.
2727
27282002-10-31  Andrew Cagney  <cagney@redhat.com>
2729
2730	* h8500-tdep.c (h8500_print_registers_info): New static function,
2731	clone of infcmd.c's default_print_registers_info.
2732	(h8500_do_registers_info): New funtion.
2733	(h8500_print_register_hook): Rename print_register_hook, make
2734	static.
2735
2736	* config/h8500/tm-h8500.h: Update copyright.
2737	(DEPRECATED_DO_REGISTERS_INFO): Define.
2738	(h8500_do_registers_info: Declare.
2739	(PRINT_REGISTER_HOOK): Delete macro.
2740	(print_register_hook): Delete function.
2741
27422002-10-31  Andrew Cagney  <cagney@redhat.com>
2743
2744	* z8k-tdep.c (z8k_print_register_hook): Make static.
2745	(z8k_print_registers_info): New static function, clone of
2746	infcmd.c's default_print_registers_info.
2747	(z8k_do_registers_info): New function.  Wrap
2748	z8k_print_registers_info.
2749	* config/z8k/tm-z8k.h: Update copyright.
2750	(PRINT_REGISTER_HOOK): Delete macro.
2751	(z8k_print_register_hook): Delete declaration.
2752	(DEPRECATED_DO_REGISTERS_INFO): Define.
2753	(z8k_do_registers_info): Declare.
2754
27552002-10-30  Joel Brobecker  <brobecker@gnat.com>
2756
2757	* hppa-tdep.c (find_function_in_inferior): Remove this extern,
2758	as this is already provided by value.h, and was actually causing
2759	a compilation error because of a conflict in parameter type
2760	declaration due to a missing const keyword.
2761	(low_text_segment_addres): Fix a compilation warning.
2762
27632002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2764
2765	* mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2766	registers without a name.
2767	(mips_linux_cannot_store_register): Don't store registers without
2768	a name.
2769
27702002-10-28  David Carlton  <carlton@math.stanford.edu>
2771
2772	* symtab.c (find_addr_symbol): Delete.  (It was already commented
2773	out.)
2774	* symtab.h: Delete prototype for find_addr_symbol.
2775
27762002-10-26  Andrew Cagney  <cagney@redhat.com>
2777
2778	* gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2779	DO_REGISTERS_INFO.
2780	gdbarch.h, gdbarch.c: Re-generate.
2781	* infcmd.c (default_print_registers_info): Update reference.
2782	* mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2783	(mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2784	* sh-tdep.c (sh_gdbarch_init): Ditto.
2785	* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2786	* h8300-tdep.c (h8300_gdbarch_init): Ditto.
2787
27882002-10-26  Mark Kettenis  <kettenis@gnu.org>
2789
2790	* x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2791	cfi_init_extra_frame_info.
2792	* x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2793	* x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2794
2795	* x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2796	target where necessary.  Add more comments and remove the ones
2797	that don't provide any useful information.
2798
2799	* i386-tdep.c (i386_frame_saved_pc): Replace call to
2800	deprecated_read_register_dummy with
2801	frame_unwind_unsigned_register.
2802
2803	* i386-tdep.c (i386_extract_struct_value_address): Use
2804	regcache_raw_read_unsigned instead of
2805	regcache_cooked_read_unsigned since we know that the register
2806	we're reading isn't a pseudo register.  Rename variable 'val' into
2807	the more descriptive 'addr'.
2808
2809	* x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2810	(x86_64_push_return_address): Add comment.
2811	(x86_64_pop_frame): Make static.
2812	(examine_argument): Clarify comment.
2813	(x86_64_skip_prologue): Make prolog_expact variable static.
2814
2815	* dwarf2cfi.c: Fix some formatting problems.
2816	(context_cpy, read_encoded_pointer): Clarify comments.
2817
2818	* x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2819	(x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2820	i386 target back into x86_64_gdbarch_init.  Add some comments and
2821	remove meaningless ones.
2822
28232002-10-25  Andrew Cagney  <cagney@redhat.com>
2824
2825	* complaints.h (struct deprecated_complaint): Rename `struct
2826	complaint'.
2827	* complaints.c (complain): Update.
2828	* remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2829	incorrect comment indicating that "symfile.h" was being included
2830	for the `struct complaint' definition.
2831	* remote-vx.c: Update.
2832	* objc-lang.c: Update.
2833	* xcoffread.c: Update.
2834	* hpread.c: Update.
2835	* mdebugread.c: Update.
2836	* stabsread.c: Update.
2837	* dwarf2read.c: Update.
2838	* dwarfread.c: Update.
2839	* elfread.c: Update.
2840	* coffread.c: Update.
2841	* stabsread.h: Update.
2842	* dbxread.c: Update.
2843	* buildsym.c: Update.
2844	* gdbtypes.c: Update.
2845	* macrotab.c: Update.
2846
28472002-10-25  Mark Kettenis  <kettenis@gnu.org>
2848
2849	* x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2850	the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2851	(x86_64_init_abi): ...new function.
2852
2853	* Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2854	* i386v-nat.c: Include "i386-tdep.h".
2855
28562002-10-25  Andrew Cagney  <cagney@redhat.com>
2857
2858	* gdbtypes.c (address_space_name_to_int): Update.
2859	(address_space_int_to_name): Update.
2860	* gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2861	multi-arch predicate.
2862	(address_class_name_to_type_flags): Ditto.
2863	* gdbarch.h, gdbarch.c: Re-generate.
2864
2865	* MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2866
28672002-10-24  Martin M. Hunt  <hunt@redhat.com>
2868
2869	* utils.c (string_to_core_addr): Revert patch from 11 Oct.
2870
28712002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2872
2873	* symtab.h (INIT_SAL): Delete macro.
2874	(init_sal): Export.
2875	* symtab.c (init_sal): New function.
2876
2877	* ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2878	to init_sal function call.
2879	(find_sal_from_funcs_and_line): Ditto.
2880	(all_sals_for_line): Ditto.
2881	* breakpoint.c (create_internal_breakpoint): Ditto.
2882	(create_fork_vfork_event_catchpoint): Ditto.
2883	(create_exec_event_catchpoint): Ditto.
2884	(parse_breakpoint_sals): Ditto.
2885	(watch_command_1): Ditto.
2886	(handle_gnu_4_16_catch_command): Ditto.
2887	(clear_command): Ditto.
2888	* hppa-tdep.c (child_enable_exception_callback): Ditto.
2889	* infcmd.c (run_stack_dummy): Ditto.
2890	* infrun.c (process_event_stop_test): Ditto.
2891	(check_sigtramp2): Ditto.
2892	(step_over_function): Ditto.
2893	* linespec.c (decode_line_2): Ditto.
2894	(decode_line_1): Ditto.
2895	* source.c (line_info): Ditto.
2896	* symtab.c (find_pc_sect_line): Ditto.
2897
28982002-10-24  Michal Ludvig  <mludvig@suse.cz>
2899
2900	* dwarf2cfi.c (struct context)
2901	(struct context_reg): Moved to dwarf2cfi.h
2902	(context_alloc, frame_state_alloc, context_cpy):
2903	Made extern instead of static, removed prototypes.
2904	* dwarf2cfi.h (struct context)
2905	(struct context_reg): New, moved from dwarf2cfi.c
2906	(context_alloc, frame_state_alloc, context_cpy):
2907	New prototypes.
2908	* x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2909	Changed from static to extern.
2910	(LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2911	(LINUX_SIGCONTEXT_FP_OFFSET)
2912	(LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2913	(x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2914	(x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2915	* x86-64-tdep.c (x86_64_gdbarch_init): Several
2916	set_gdbarch_*() calls now use x86-64 specific functions
2917	instead of DWARF2 CFI ones.
2918	* x86-64-tdep.h (x86_64_linux_in_sigtramp)
2919	(x86_64_linux_frame_chain, x86_64_init_frame_pc)
2920	(x86_64_init_extra_frame_info): New prototypes.
2921
29222002-10-23  David Carlton  <carlton@math.stanford.edu>
2923
2924	* linespec.c: #include "parser-defs.h".
2925	Delete prototype for find_template_name_end.
2926	* Makefile.in (linespec.o): Depend on $(parser_defs_h).
2927
29282002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
2929
2930	* NEWS: add recent mi fixes.
2931	* varobj.c (struct varobj): Add new "updated" flag.
2932	(new_variable): Default "updated" flag to 0.
2933	(varobj_set_value): Set "updated" flag to 1 if value
2934	changes.
2935	(varobj_update): Check varobj "updated" flag before
2936	comparing old and refreshed values.  Fix for
2937	PR gdb/702.
2938
29392002-10-23  David Carlton  <carlton@math.stanford.edu>
2940
2941	* parse.c (parse_exp_1): Use BLOCK_START.
2942	* x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2943	SYMBOL_BLOCK_VALUE.
2944	* objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2945
29462002-10-23  David Carlton  <carlton@math.stanford.edu>
2947
2948	* symtab.c: Delete cplusplus_hint.
2949	Delete prototype for find_template_name_end.
2950
29512002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2952
2953	* symtab.h: Update comment.
2954
29552002-10-23  Michael Snyder  <msnyder@redhat.com>
2956
2957	* printcmd.c (address_info): Restore quotes in output.
2958	* valops.c (value_of_local): Restore quotes in error message.
2959
29602002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2961
2962	* symtab.c (symbol_demangled_name): New function.
2963	* symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2964	turning most of it into a function.
2965	(symbol_demangled_name): Export.
2966
29672002-10-23  Michael Snyder  <msnyder@redhat.com>
2968
2969	* valops.c (value_of_local): Restore quotes in error message.
2970
29712002-10-23  Elena Zannoni  <ezannoni@redhat.com>
2972
2973	* symtab.c (symbol_init_language_specific): New function.
2974	* symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2975	turning most of it into a function.
2976	(symbol_init_language_specific): Export.
2977
29782002-10-23  David Carlton  <carlton@math.stanford.edu>
2979
2980	* dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2981	(dwarf_attr_name): Ditto.
2982	(dwarf_type_encoding_name): Ditto.
2983	(scan_partial_symbols): Descend into DW_TAG_namespace entries.
2984	(process_die): Handle DW_TAG_namespace,
2985	DW_TAG_imported_declaration, DW_TAG_imported_module.
2986	(read_namespace): New function.
2987
29882002-10-22  Joel Brobecker  <brobecker@gnat.com>
2989
2990	* configure.in: Define NEW_PROC_API on Interix too.
2991	* configure: Regenerate.
2992
29932002-10-21  Joel Brobecker  <brobecker@gnat.com>
2994
2995	* configure: Regenerate using the proper version of autoconf.
2996
29972002-10-21  Elena Zannoni  <ezannoni@redhat.com>
2998
2999	* findvar.c (read_var_value): Temporarily disable TLS code, until
3000	complete TLS support is added.
3001
30022002-10-21  Jim Blandy  <jimb@redhat.com>
3003	    Elena Zannoni  <ezannoni@redhat.com>
3004
3005	* symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3006	for thread local storage locations.
3007	(struct symbol): Add objfile field.
3008	(SYMBOL_OBJFILE): Define.
3009	* dwarf2read.c (is_thread_local): New static variable.
3010	(new_symbol): If variable is in thread local fill in address class
3011	and objfile appropriately.
3012	(decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3013	stack operation.
3014	* printcmd.c (address_info): Print the information for thread
3015	local storage variable.
3016	* findvar.c (read_var_value): In case of thread local variable,
3017	defer to the target vector code to compute address.
3018
30192002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3020
3021        * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3022        * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3023
30242002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3025
3026	* symtab.h (address_class):  Rename
3027	LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3028	* hpread.c (hpread_process_one_debug_symbol): Ditto.
3029	* printcmd.c (address_info): Ditto.
3030	* findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3031
30322002-10-20  Mark Kettenis  <kettenis@gnu.org>
3033
3034	* i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3035	DBREG_DRX macro to acces debug registers.
3036
3037	* Makefile.in (i386obsd-tdep.o): New target.
3038
3039	* solib-sunos.c: Include "bcache.h" and "regcache.h".
3040	* Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3041
3042	* configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3043	* config/i386/obsd.mt: New file.
3044	* i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3045	i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3046	* i386obsd-nat.c (_initialize_i386obsd_nat): Set
3047	i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3048	i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3049	* i386obsd-tdep.c: New file.
3050
30512002-10-19  Adam Fedor  <fedor@gnu.org>
3052
3053	* objc-exp.y (name_not_typename): Fix invalid comment.
3054
30552002-10-20  Mark Kettenis  <kettenis@gnu.org>
3056
3057	* solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3058	to allocate partial syms and macro byte caches.
3059
30602002-10-18  David Carlton  <carlton@math.stanford.edu>
3061
3062	* symtab.h: Delete 'struct source' and 'struct sourcevector'.
3063
30642002-10-18  Adam Fedor  <fedor@gnu.org>
3065
3066	* stabsread.c (find_name_end): New function.
3067	(define_symbol): Use it.
3068
30692002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3070
3071	* config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3072	* config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3073	* config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3074	* config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3075
30762002-10-17  David Carlton  <carlton@math.stanford.edu>
3077
3078	* symfile.h: Add opaque declaration for struct obstack.
3079	Declare obsavestring to take a const char *.
3080	* symfile.c (obsavestring): Make first argument a const char *.
3081
30822002-10-16  Adam Fedor  <fedor@gnu.org>
3083
3084	* breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3085	names when matching breakpoints in current file.
3086
30872002-10-16  Kevin Buettner  <kevinb@redhat.com>
3088
3089	* dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3090	(read_tag_pointer_type): Add address class support.
3091	* gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3092	(ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3093	New methods.
3094	* gdbarch.h, gdbarch.c: Regenerate.
3095	* gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3096	(make_type_with_address_space, recursive_type_dump): Add address
3097	class support.
3098	* gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3099	(TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3100	(TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3101
31022002-10-16  Klee Dienes  <kdienes@apple.com>
3103
3104	* stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3105	to get the last character of a char[] buffer, not
3106	name[sizeof(vptr_name)-1].
3107
31082002-10-14  Adam Fedor  <fedor@gnu.org>
3109
3110	* symtab.h: New objc_specific struct.
3111	(SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3112	(SYMBOL_DEMANGLED_NAME): Likewise.
3113
31142002-10-14  Adam Fedor  <fedor@gnu.org>
3115
3116	* symfile.c (init_filename_language_table): Add ObjC file extension.
3117
31182002-10-14  Adam Fedor  <fedor@gnu.org>
3119
3120	* utils.c (puts_filtered_tabular): New function.
3121	(fprintf_symbol_filtered): Get ObjC demangled name.
3122	* defs.h (puts_filtered_tabular): Declared.
3123
31242002-10-14  Kevin Buettner  <kevinb@redhat.com>
3125
3126	* c-lang.h (c_type_print_varspec_prefix): Delete.
3127	* c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3128	``need_post_space'' parameter.  Adjust all callers.
3129
31302002-10-14  Daniel Jacobowitz  <drow@mvista.com>
3131
3132	* config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3133	* config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3134	* config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3135	* config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3136
31372002-10-13  Adam Fedor  <fedor@gnu.org>
3138
3139	* source.c (print_source_lines): Update comments.
3140
31412002-10-13  Adam Fedor  <fedor@gnu.org>
3142
3143	* valops.c (value_of_local): New function.
3144	(value_of_this): Use it.
3145	* value.h (value_of_local): Declared.
3146
31472002-10-13  Adam Fedor  <fedor@gnu.org>
3148
3149	* parse.c: (length_of_subexp, prefixify_subexp): Handle
3150	OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3151
31522002-10-12  Adam Fedor  <fedor@gnu.org>
3153
3154	* language.c (binop_result_type): Add language_objc to case.
3155        (integral_type): Likewise.
3156        (character_type): Likewise.
3157        (string_type): Likewise.
3158        (boolean_type): Likewise.
3159        (structured_type): Likewise.
3160        (binop_type_check): Likewise.
3161
31622002-10-11  Adam Fedor  <fedor@gnu.org>
3163
3164	* printcmd.c (address_info): Print 'self' for ObjC.
3165
31662002-10-11  Adam Fedor  <fedor@gnu.org>
3167
3168	* expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3169	OP_SELF.
3170
31712002-10-11  Adam Fedor  <fedor@gnu.org>
3172
3173	* language.h (CAST_IS_CONVERSION): Add language_objc.
3174
31752002-10-11  Adam Fedor  <fedor@gnu.org>
3176
3177	* defs.h (enum language): Add language_objc.
3178
31792002-10-11  Klee Dienes  <kdienes@apple.com>
3180
3181        * corefile.c (read_memory_typed_address): New function.
3182        * gdbcore.h (read_memory_typed_address): Add prototype.
3183        * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3184	to read a value destined for a CORE_ADDR, not read_memory_integer.
3185        * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3186        (f77_get_dynamic_lowerbound): Ditto.
3187
31882002-10-11  Martin M. Hunt  <hunt@redhat.com>
3189
3190	* utils.c (string_to_core_addr): After turning string into
3191	a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3192	which will do necessary sign-extension, etc.
3193
31942002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3195
3196	* c-exp.y (THIS): Delete token and grammar rule.
3197	(yylex): Don't return THIS.
3198	* cp-valprint.c (vtbl_ptr_name_old): Delete.
3199	(cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3200	* demangle.c (cplus_markers): Update comment.  Put '$'
3201	first.  Remove CPLUS_MARKER.
3202	(_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3203	* jv-exp.y (THIS): Delete token and grammar rule.
3204	(yylex): Don't return THIS.
3205	* mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3206	* objc-exp.y (THIS): Delete token and grammar rule.
3207	(yylex): Don't return THIS.
3208	* p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3209	* stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3210	(read_member_functions): Likewise for opname.
3211	(read_tilde_fields): Use is_cplus_marker.
3212
3213	* defs.h (CPLUS_MARKER): Don't define.
3214	* config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3215	* config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3216	* config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3217	* config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3218	* config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3219
3220	* config/i386/tm-i386v4.h: Delete file.
3221	* config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3222	* config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3223	* config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3224	* config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3225	* config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3226	* config/i386/i386sco5.mt (TM_FILE): Likewise.
3227	* config/i386/i386v4.mt (TM_FILE): Likewise.
3228	* config/i386/ncr3000.mt (TM_FILE): Likewise.
3229
32302002-10-10  Marko Mlinar  <markom@opencores.org>
3231
3232	* infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3233	accidentially not commited 2002-10-09
3234	* gdbarch.h, gdbarch.c: Re-generate.
3235
32362002-10-09  Marko Mlinar  <markom@opencores.org>
3237
3238	* infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3239	* gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3240	* gdbarch.h, gdbarch.c: Re-generate.
3241
32422002-10-08  Petr Sorfa <petrs@caldera.com>
3243
3244	Revised and re-submitted by John Wolfe <jlw@caldera.com>
3245
3246	Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3247	so we can work on more than one compilation unit at a time.  This
3248	helps prepare GDB to handle inter-CU die references.
3249	* dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3250	the code to be defined before struct comp_unit_head.
3251	(comp_unit_head): Added new members - offset, cu_head,
3252	begin_die, next and dwarf2_abbrevs.
3253	(dwarf2_abbrevs): Removed single static var; now member of
3254	struct comp_unit_head.
3255	dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3256	members.
3257	(psymtab_to_symtab_1): Changed to work with the new
3258	struct comp_unit_head.
3259	(dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3260	constructs the dwarf2_abbrevs[] inside the cu_header.
3261	(dwarf2_empty_abbrev_table): Now expects a ptr to a
3262	dwarf2_abbrev table to clean up.
3263	(dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3264	handling of dwarf2_abbrevs inside the cu_header.
3265	(read_partial_die): Now supports the call to the new
3266	dwarf2_lookup_abbrev.
3267	(read_full_die): Now supports the call to the new
3268	dwarf2_lookup_abbrev.
3269
32702002-10-06  Christopher Faylor  <cgf@redhat.com>
3271
3272	* Makefile.in (install-gdbtk): Add missing continuation backslash to
3273	insure that shell variables, such as "transformed_name" are propagated
3274	to later shell statements in rule.
3275
32762002-10-06  Mark Kettenis  <kettenis@gnu.org>
3277
3278	* config/i386/nm-i386sco.h: Add protection against
3279	multiple-inclusion.  Include "i386/nm-i386v.h".
3280	(REGISTER_U_ADDR): Remove define.
3281	(i386_register_u_addr): Remove prototype.
3282
32832002-10-04  Michael Snyder  <msnyder@redhat.com>
3284
3285	* m32r-stub.c (handle_exception): Make sure exception is "trap"
3286	before treating it as a single-step event.
3287
32882002-10-03  Adam Fedor  <fedor@gnu.org>
3289
3290	* objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3291	(objc_demangle): Remove assignment in if statements, Replace
3292	free with xfree.
3293	(add_msglist): Likewise.
3294	(end_msglist): Likewise.
3295	(complare_selectors): Likewise.
3296	(selectors_info): Likewise.
3297	(compare_classes): Likewise.
3298	(classes_info): Likewise.
3299	(print_object_command): Likewise.
3300	(find_objc_msgcall_submethod): Replace PTR with void *.
3301	* objc-lang.h: Remove check for __STDC__.
3302
33032002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3304
3305	* ui-out.h (ui_out_field_fmt_int): New prototype.
3306	* ui-out.c (ui_out_field_fmt_int): New function allowing specification
3307	of field width and alignment.
3308	* stack.c (print_frame_info_base): When printing frame level, use
3309	ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3310	PR gdb/192
3311
33122002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3313
3314	* MAINTAINERS: Add self to Write After Approval list.
3315
33162002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3317
3318	* infcmd.c (interrupt_target_command_wrapper): Delete.
3319	(interrupt_target_command): Make non static.
3320	(nofp_registers_info): Make static.
3321	* stack.c (return_command_wrapper): Delete.
3322	(return_command): Make non static.
3323
33242002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3325
3326	* event-top.c (gdb_setup_readline): New function. Code moved from
3327	_initialize_event_loop().
3328	(_initialize_event_loop): Call gdb_setup_readline().
3329
33302002-10-02  Andrew Cagney  <ac131313@redhat.com>
3331
3332	* infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3333	* gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3334	* gdbarch.h, gdbarch.c: Re-generate.
3335
33362002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3337
3338	Fix PR gdb/778
3339	* gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3340	before recursing.
3341	* gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3342	of fill_in_vptr_fieldno.
3343
33442002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3345
3346	* inferior.h (registers_info, stepi_command, nexti_command,
3347	continue_command, interrupt_target_command): Export from infcmd.c.
3348	* frame.h (args_info, selected_frame_level_changed_hook,
3349	return_command): Export from stack.c.
3350	* v850ice.c (stepi_command, nexti_command, continue_command): use
3351	prototypes from inferior.h.
3352	* tracepoint.c (registers_info, args_info, locals_info): Use
3353	prototypes from frame.h and inferior.h.
3354	* Makefile.in (mi-main.o): Add dependency on frame.h.
3355
33562002-10-02  Andrew Cagney  <ac131313@redhat.com>
3357
3358	* rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3359	value in register 3 adjusted by ppc_gp0_regnum.
3360
3361	* rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3362
33632002-10-02  Marko Mlinar <markom@opencores.org>
3364
3365        * MAINTAINERS: Add myself to the Write After Approval list.
3366
33672002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3368
3369	* mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3370	of the section for the N64 ABI, fixed.
3371
3372	* config/mips/tm-irix6.h: Include solib.h.
3373
33742002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3375
3376	* dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3377	GNU operators.
3378
33792002-10-01  Andrew Cagney  <ac131313@redhat.com>
3380
3381	* NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3382	and that "mi0" syntax has been removed.
3383
33842002-09-30  David Carlton  <carlton@math.stanford.edu>
3385
3386	* Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3387	* ppc-sysv-tdep.c: #include "gdb_string.h".
3388	* remote-sds.c (getmessage): Add semicolon after 'retry' label to
3389	pacify GCC.
3390
33912002-10-01  Andrew Cagney  <ac131313@redhat.com>
3392
3393	* rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3394	"vrsave"'s register number.
3395
33962002-09-30  Andrew Cagney  <ac131313@redhat.com>
3397
3398	* mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3399	use frame_unwind_signed_register to obtain the PC.
3400	(mips_frame_chain): Handle a generic dummy frame.
3401	(mips_init_extra_frame_info): When a generic dummy frame, don't
3402	re-compute the frame base.
3403	(mips_pop_frame): Handle generic dummy frames.
3404	(mips_gdbarch_init): When generic dummy frames, set
3405	use_generic_dummy_frames, push_dummy_frame to
3406	generic_push_dummy_frame, pc_in_call_dummy to
3407	generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3408	generic_save_dummy_frame_tos.
3409
34102002-09-30  Andrew Cagney  <ac131313@redhat.com>
3411
3412	* blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3413	against TOP when TOP was explictly set.
3414	(generic_push_dummy_frame): Set TOP to zero.
3415
34162002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3417
3418	* event-loop.c (start_event_loop): Rename variable 'result' to
3419	'gdb_result', to avoid conflicts with upcoming intepreters changes.
3420
34212002-09-30  Keith Seitz  <keiths@redhat.com>
3422
3423	* gdb-events.sh (selected_thread_changed): New event.
3424	* gdb-events.c: Regenerated.
3425	* gdb-events.h: Regenerated.
3426
34272002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3428
3429	* MAINTAINERS: Add self to Write After Approval list.
3430
34312002-09-30  Fernando Nasser  <fnasser@redhat.com>
3432
3433	* disasm.c: New file.
3434	* disasm.h: New file.
3435	* mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3436	(compare_lines): Ditto.
3437	(dump_insns): Ditto.
3438	(do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3439	argument.
3440	(do_assembly_only): Ditto.
3441	(do_disassembly): Renamed to gdb_disassembly and moved to
3442	disasm.c.  Sdded uiout argument.
3443	* Makefile.in: Add new files.  Reorder SFILES list. Update
3444	dependencies.  Include libgdb.a later in the insight executable.
3445
34462002-09-29  Andrew Cagney  <ac131313@redhat.com>
3447
3448	* config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3449	bfd/elf64-alpha-fbsd.c.
3450
34512002-09-29  Andrew Cagney  <ac131313@redhat.com>
3452
3453	* config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3454	i386gnu-tdep.c.
3455
34562002-09-29  Andrew Cagney  <ac131313@redhat.com>
3457
3458	* gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3459	__FUNCTION__.
3460	* gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3461	function name.
3462	(do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3463	(do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3464	(S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3465	(S_msg_sig_post_reply): Ditto.
3466
34672002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3468
3469	* sh-tdep.c (sh_use_struct_convention): Use definition according
3470	to ABI.
3471	(sh_push_arguments): Store in register with correct endianess.
3472	(sh_default_store_return_value): Ditto.
3473	(sh_gdbarch_init): Set sizeof long double to 8.
3474
34752002-09-27  Mark Kettenis  <kettenis@gnu.org>
3476
3477	* defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3478	Fix some whitespace problems.
3479
34802002-09-27  David Carlton  <carlton@math.stanford.edu>
3481
3482	* Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3483	(mcore-tdep.o): Ditto.
3484	(ns32k-tdep.o): Ditto.
3485	(ns32knbsd-tdep.o): Ditto.
3486	(sh3-rom.o): Ditto.
3487	(vax-tdep.o): Ditto.
3488	* cris-tdep.c: #include "gdb_string.h"
3489	* mcore-tdep.c: Ditto.
3490	* ns32k-tdep.c: Ditto.
3491	* ns32knbsd-tdep.c: Ditto.
3492	* sh3-rom.c: Ditto.
3493	* vax-tdep.c: Ditto.
3494
34952002-09-27  David Carlton  <carlton@math.stanford.edu>
3496
3497	* config/djgpp/fnchange.lst: Add entries for
3498	gdb/testsuite/gdb.c++/m-static files.
3499
35002002-09-27  Jim Wilson  <wilson@redhat.com>
3501
3502	* MAINTAINERS: Add myself to the Write After Approval list.
3503
35042002-09-26  Martin M. Hunt  <hunt@redhat.com>
3505
3506	* mips-tdep.c (find_proc_desc): Initialize startaddr.
3507
3508
35092002-09-26  Andrew Cagney  <ac131313@redhat.com>
3510
3511	* rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3512	frame.
3513
35142002-09-26  Andrew Cagney  <ac131313@redhat.com>
3515
3516	* rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3517	(rs6000_struct_return_address): Delete variable.
3518	(rs6000_store_struct_return): Update.
3519	(rs6000_gdbarch_init): Set extract_struct_value_address instead of
3520	deprecated_extract_struct_value_address.
3521	(rs6000_frame_align): New function.
3522	(rs6000_gdbarch_init): Set frame_align.
3523
35242002-09-26  Andrew Cagney  <ac131313@redhat.com>
3525
3526	From Grace Sainsbury <graces@redhat.com>:
3527	* Makefile.in (gdbtk-main.o): New target.
3528	(gdb.o): New target.
3529	(main_h): Define.
3530	(main.o): Update dependencies.
3531	(gdb$(EXEEXT)): Add gdb.o.
3532	(SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3533	(SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3534	(SUBDIR_GDBTK_CLEAN): Set.
3535	(install-gdbtk): Install the insight binary.
3536	(uninstall-gdbtk): New target.
3537	(all-gdbtk, clean-gdbtk): New rule.
3538	* top.c (use_windows): Default to zero.
3539	* main.c: Include "main.h".
3540	(main): Delete.
3541	(struct captured_main_args): Delete.
3542	(gdb_main): New function.
3543	* main.h: New file.
3544	* gdb.c: New File.
3545
35462002-09-25  Andrew Cagney  <cagney@redhat.com>
3547
3548	* frame.c: Include "gdb_string.h" and "builtin-regs.h".
3549	(frame_map_regnum_to_name): New function.
3550	(frame_map_name_to_regnum): New function.
3551	* frame.h (frame_map_name_to_regnum): Declare.
3552	(frame_map_regnum_to_name): Declare.
3553	* builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3554	* builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3555	* parse.c: Do not include "builtin-regs.h".
3556	(target_map_name_to_register): Delete function.
3557	(write_dollar_variable): Use frame_map_name_to_regnum.
3558	* parser-defs.h (target_map_name_to_register): Delete declaration.
3559	* expprint.c: Include "frame.h".
3560	(print_subexp): Use frame_map_regnum_to_name.
3561	* eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3562	* infcmd.c (registers_info): Use frame_map_name_to_regnum.
3563
35642002-09-25  Andrew Cagney  <ac131313@redhat.com>
3565
3566	* rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3567	wasn't saved, and the next innermost frame is a dummy, return the
3568	dummy frame's link register.
3569
35702002-09-24  Jim Blandy  <jimb@redhat.com>
3571
3572	Fix from Paul Breed:
3573	* main.c (captured_main): Add a `break' after the case for 'b'.
3574
35752002-09-24  Keith Seitz  <keiths@redhat.com>
3576
3577	* varobj.c (c_type_of_child): Use get_target_type instead
3578	of TYPE_TARGET_TYPE.
3579
35802002-09-22  Fernando Nasser  <fnasser@redhat.com>
3581
3582	* source.c (get_current_or_default_source_symtab_and_line): Remove
3583	function.
3584	(set_default_source_symtab_and_line): New function. Attempts to
3585	determine a source file to list lines from if one is not currently
3586	defined.
3587	(get_current_source_symtab_and_line): Initialize sal.pc and
3588        sal.end fields.
3589	(set_current_source_symtab_and_line): Mark argument as const.
3590	* source.h: Update declarations and comments.
3591	* linespec.c (decode_line_1): Replace call to removed routine above.
3592	* stack.c (print_frame_info_base): Ditto.
3593	* cli/cli-cmds.c (edit_command): Ditto.
3594	(list_command): Ditto.
3595
35962002-09-22  Fernando Nasser  <fnasser@redhat.com>
3597
3598	* source.c (get_current_or_default_source_symtab_and_line): Initialize
3599	sal.pc and sal.end fields.
3600	(get_current_or_default_source_symtab_and_line): Ditto.
3601	* breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3602	so we do not cause a new source symtab to be searched for (reverting an
3603	unintentional change from the 2002-09-20 patch).
3604	* scm-lang.c (scm_unpac): Ditto.
3605
36062002-09-21  Andrew Cagney  <cagney@redhat.com>
3607
3608	* complaints.c (symfile_explanations): Remove new-line from
3609	``isolated_message''.
3610	(vcomplaint): When ISOLATED_MESSAGE, force a line break.
3611	(clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3612
36132002-09-20  Nick Clifton  <nickc@redhat.com>
3614
3615	* NEWS: Announce that V850EA ISA is no longer supported.
3616        * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3617
36182002-09-20  David Carlton  <carlton@math.stanford.edu>
3619
3620	* Makefile.in (c-lang.o): Correct dependencies.
3621	(utils.o): Gather dependencies.
3622	(charset.o): Move.
3623	* c-lang.c: #include "gdb_string.h"
3624
36252002-09-20  Fernando Nasser  <fnasser@redhat.com>
3626
3627	From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3628	* cli/cli-cmds.c (list_command): New function.  Implements the new
3629	cli edit command.
3630	(_init_cli_cmds): Add new command definition.
3631	* gdb.1: Document edit command.
3632	* doc/gdb.texinfo: Document edit command.
3633
36342002-09-20  Fernando Nasser  <fnasser@redhat.com>
3635
3636	* source.c: Make global variables current_source_symtab and
3637	current_source_line static.
3638	(list_command): Moved to cli/cli-cmds.c.
3639	(ambiguous_line_spec): Moved to cli/cli-cmds.c.
3640	(get_first_line_listed): New accessor function.
3641	(get_lines_to_list): New accessor function.
3642	(get_current_source_symtab_and_line): New function. Retrieves the
3643	position in the source code that we consider current.
3644	(get_current_or_default_source_symtab_and_line): New function.
3645	Like the above but attempts to determine a default position if one
3646	is not currently defined.
3647	(set_current_source_symtab_and_line): New function. Sets the source
3648	code position considered current and returns the previously set one.
3649	(clear_current_source_symtab_and_line): Reset stored information about
3650	a current source line.
3651	(_initialize_source): Remove registration for the "list" command and
3652	its alias.
3653	* source.h: Add declarations for the new functions above.
3654	* symtab.h: Remove declarations for the global variables mentioned
3655	above.
3656	* breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3657	obtain current source line.
3658	* linespec.c (decode_line_1): Ditto.
3659	* macroscope.c (default_macro_scope): Ditto.
3660	* scm-lang.c (scm_unpac): Ditto.
3661	* stack.c (print_frame_info_base): Ditto.
3662	* symfile.c (clear_symtab_users): Ditto.
3663	* symtab.c (decode_line_spec): Ditto.
3664	* cli/cli-cmds.c (list_command): Moved here from source.c.
3665	(ambiguous_line_spec): Moved here from source.c.
3666	(_init_cli_cmds): Add definition for "list" and its alias.
3667	* Makefile.in: Update dependencies.
3668
36692002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3670
3671	* h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3672	with what gcc thinks is correct.
3673
36742002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3675
3676	* h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3677	multiple register push instruction.
3678
36792002-09-19  Jim Blandy  <jimb@redhat.com>
3680
3681	Add support for distinct host and target character sets.
3682	* charset.c, charset.h: New files.
3683	* c-exp.y: #include "charset.h".
3684	(yylex): Convert character and string literals to the target
3685	character set, before returning them as the semantic value of the
3686	token.
3687	* c-lang.c: #include "charset.h".
3688	(c_emit_char): Use charset-specific methods to recognize
3689	characters with backslash escape forms, to decide which characters
3690	to print literally and which to print using numeric escape
3691	sequences, and to convert target characters to host characters
3692	before printing.
3693	* utils.c: #include "charset.h".
3694	(no_control_char_error): New function.
3695	(parse_escape): Use charset-specific methods to recognize
3696	backslash escapes, parse `control character' notation, and convert
3697	characters from the host character set to the target character set.
3698	* configure.in: Set the default host character set.
3699	Check where to find iconv, and what its argument types might be.
3700	* acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3701	* Makefile.in (SFILES): List charset.c.
3702	(COMMON_OBS): List charset.o.
3703	(charset.o): New rule.
3704	(charset_h): New header dependency variable.
3705	(c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3706	(LIBICONV): New variable, set by configure.
3707	(CLIBS): Include $(LIBICONV) here.
3708	* aclocal.m4, config.in, configure: Regenerated.
3709
37102002-09-19  Joel Brobecker  <brobecker@gnat.com>
3711
3712	* ada-exp.y: Add missing semicolons to end rules. Fixes a
3713	bison 1.35 warning.
3714
37152002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3716
3717	* gdb_mbuild.sh: New file.
3718
37192002-09-19  Andrew Cagney  <ac131313@redhat.com>
3720
3721	* objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3722
37232002-09-18  Andrew Cagney  <ac131313@redhat.com>
3724
3725	* breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3726	jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3727	printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3728	valops.c, value.h: Revert previous change.
3729
37302002-09-18  Michael Snyder  <msnyder@redhat.com>
3731
3732	Preliminary support for Objective-C:
3733	* defs.h (language_objc): New enum value.
3734	(puts_filtered_tabular): Declaration only, exported from utils.c.
3735	(skip_quoted): Delete, declared in completer.h.
3736	* c-exp.y: Include completer.h.
3737	* p-exp.y: Ditto.
3738	* jv-exp.y: Ditto.
3739	* expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3740	New operator enum values.
3741	* language.h (CAST_IS_CONVERSION): Test for language_objc.
3742	* language.c (binop_result_type): Handle language_objc case.
3743	(integral_type, character_type, string_type, boolean_type,
3744	structured_type, binop_type_check): Ditto.
3745	* symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3746	(struct objc_specific): Add to general_symbol_info.
3747	(SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3748	(SYMBOL_DEMANGLED_NAME): Handle objc case.
3749	* parser-defs.h (struct objc_class_str): New struct type.
3750	(start_msglist, end_msglist, add_msglist): Declaration only,
3751	exported from objc-lang.c.
3752	* value.h (value_of_local, value_nsstring,
3753	call_function_by_hand_expecting_type): Exported from valops.c.
3754	* valops.c (find_function_addr): Export.
3755	(call_function_by_hand_expecting_type): New function.
3756	(value_of_local): New function.
3757	* symfile.c (init_filename_language_table): Add ".m" extension
3758	for Objective-C.
3759	* utils.c (puts_filtered_tabular): New function.
3760	(fprintf_symbol_filtered): Add objc demangling support (disabled).
3761	(set/show demangle): Extend help-string to refer to ObjC.
3762	* elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3763	* stabsread.c (symbol_reference_defined): Objective-C symbols
3764	may contain colons: make allowances when scanning stabs strings
3765	for colons.
3766	(objc_find_colon): New function.
3767	* printcmd.c (address_info): If language == objc then print
3768	"self" instead of "this".
3769	* parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3770	OP_NSSTRING, and OP_SELF.
3771	(prefixify_subexp): Ditto.
3772	* source.c (print_source_lines): Mention objc in comment.
3773	* breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3774	method names.
3775
37762002-09-18  Andrew Cagney  <ac131313@redhat.com>
3777
3778	* complaints.h: Update copyright.
3779	(struct complaints): Declare.
3780	(struct complaint): Make `message' constant.
3781	(internal_complaint): Declare.
3782	(complaint): Declare.
3783	(complaint_root): Delete declaration.
3784	(symfile_complaints): Delete declaration.
3785	(struct complaints): Add opaque declaration.
3786	(clear_complaints): Add a complaints parameter.
3787	* complaints.c: Update copyright.
3788	(enum complaint_series): Define.
3789	(complaint_root): Delete.
3790	(struct complaints): Define.
3791	(complaint_sentinel, symfile_complaint_book): New variables.
3792	(symfile_explanations, symfile_complaints): New variables.
3793	New variables.
3794	(get_complaints): New function.
3795	(vcomplaint): New function.
3796	(complaint): New function.
3797	(internal_complaint): New function.
3798	(complain): Call vcomplain with symfile_complaint.
3799	(clear_complaints): Rewrite.
3800	(_initialize_complaints): Use add_setshow_command.
3801	* Makefile.in (complaints.o): Update dependencies.
3802	* symfile.c (syms_from_objfile): Add symfile_complaints parameter
3803	to call to clear_complaints.
3804	(new_symfile_objfile, reread_symbols): Ditto.
3805	(oldsyms_complaint): Delete.
3806	(empty_symtab_complaint, unknown_option_complaint): Delete.
3807	(free_named_symtabs): Use complaint instead of complain.
3808
38092002-09-18  Michael Snyder  <msnyder@redhat.com>
3810
3811	Contributed by Apple Computer, Inc.  Merged with current sources
3812	by Adam Fedor <fedor@doc.com> [cagney].
3813
3814	* objc-lang.c: First clean-up round: comments, indentation.
3815	* objc-lang.h: Ditto.
3816	* objc-lang.y: Ditto.
3817
38182002-09-18  Andrew Cagney  <ac131313@redhat.com>
3819
3820	* maint.c (maintenance_internal_error): Print the parameter as the
3821	error message.
3822	(maintenance_internal_warning): New function.
3823	(_initialize_maint_cmds): Add command `maint internal-warning'.
3824
3825	* defs.h (internal_warning, internal_vwarning): Declare.
3826	* utils.c (struct internal_problem): Define.
3827	(internal_vproblem): New function.
3828	(internal_warning): New function.
3829	(internal_vwarning): New function.
3830	(internal_warning_problem, internal_error_problem): New variables.
3831	(internal_verror): Just call internal_vproblem.
3832
38332002-09-18  Michael Snyder  <msnyder@redhat.com>
3834
3835	* objc-lang.c: New file, support for Objective-C.
3836	Preliminary check-in, not yet integrated into gdb.
3837	* objc-lang.h: New file.
3838	* objc-exp.y:  New file.
3839
38402002-09-18  Andrew Cagney  <ac131313@redhat.com>
3841
3842	* infrun.c (signal_stop_update): Convert definition to ISO C.
3843	(signal_print_update): Ditto.
3844	(signal_pass_update): Ditto.
3845	* inflow.c (terminal_save_ours): Ditto.
3846
3847	* h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3848	comments.
3849
3850	* config/djgpp/fnchange.lst: Handle name clashes between
3851	bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3852	bfd/coff-tic80.c.
3853
3854	* i386-linux-tdep.h: Fix tipo.
3855
38562002-09-18  Adam Fedor  <fedor@gnu.org>
3857
3858	* MAINTAINERS: Add myself to the Write After Approval list.
3859
38602002-09-18  Jim Blandy  <jimb@redhat.com>
3861
3862	* dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3863	texthigh and textlow to reader-specific structs caused
3864	objfile_relocate to miss them.  This is fixable, but the work that
3865	the change was supposed to prepare GDB for never got done anyway.
3866
38672002-09-18  David Carlton  <carlton@math.stanford.edu>
3868
3869	* MAINTAINERS: Alphabetize Write After Approval list.
3870
38712002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3872
3873	Fix PR gdb/709
3874	* values.c (value_static_field): Call read_var_value.
3875
38762002-09-18  Andrew Cagney  <ac131313@redhat.com>
3877
3878	* valops.c (hand_function_call): Align the initial stack pointer
3879	and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3880	FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3881	return value.
3882	* mips-tdep.c (mips_frame_align): New function.
3883	(mips_gdbarch_init): Set frame_align.
3884	* gdbarch.sh (FRAME_ALIGN): New method.
3885	* gdbarch.h, gdbarch.c: Re-generate.
3886
38872002-09-18  Michal Ludvig  <mludvig@suse.cz>
3888
3889	* x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3890	registers.
3891
38922002-09-17  Andrew Cagney  <ac131313@redhat.com>
3893
3894	* NEWS: Mention that MIPS $fp behavior changed.
3895	* mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3896 	reference to FP_REGNUM.
3897	(mipsnbsd_cannot_store_register): Ditto.
3898	* mips-linux-nat.c: Update copyright.
3899 	(mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3900	(mips_linux_cannot_store_register): Ditto.
3901	* mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3902	* config/mips/tm-mips.h: Update copyright.
3903 	(FP_REGNUM): Delete macro.
3904	(MIPS_REGISTER_NAMES): Replace "fp" with "".
3905	* config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3906	* mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3907	(mips_r3041_reg_names, mips_r3051_reg_names)
3908 	(mips_r3081_reg_names): Replace "fp" with "".
3909	Fix PR gdb/480.
3910
39112002-09-17  Theodore A. Roth  <troth@verinet.com>
3912
3913	* gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3914	generic_read_register_dummy() (PR gdb/703).
3915	(avr_push_return_address): #if 0 out unused vars.
3916	(avr_gdbarch_init): Enable use of avr_push_return_address().
3917
39182002-09-17  Michael Snyder  <msnyder@redhat.com>
3919
3920	* m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3921	RTE will take care of it.
3922
39232002-09-17  Andrew Cagney  <ac131313@redhat.com>
3924
3925	* arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3926	invalid, return SP_REGNUM.
3927
39282002-09-17  Michael Snyder  <msnyder@redhat.com>
3929
3930	* mips-tdep.c (mips_pop_frame): Read saved values of floating
3931	point registers without sign extension.
3932
39332002-09-17  Andrew Cagney  <cagney@redhat.com>
3934
3935	* blockframe.c (deprecated_read_register_dummy): Rename
3936	generic_read_register_dummy.
3937	* frame.c (frame_unwind_signed_register): New function.
3938	(frame_unwind_unsigned_register): New function.
3939	* frame.h (frame_unwind_signed_register): Declare.
3940	(frame_unwind_unsigned_register): Declare.
3941	(deprecated_read_register_dummy): Rename
3942	generic_read_register_dummy.
3943
3944	* h8300-tdep.c (h8300_frame_chain): Update.
3945	(h8300_frame_saved_pc): Update.
3946	* xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3947	* rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3948	* s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3949	(s390_frame_chain): Update.
3950	* v850-tdep.c (v850_find_callers_reg): Update.
3951	(v850_frame_saved_pc): Update.
3952	* m32r-tdep.c (m32r_init_extra_frame_info): Update.
3953	(m32r_find_callers_reg): Update.
3954	(m32r_frame_saved_pc): Update.
3955	* sh-tdep.c (sh_find_callers_reg): Update.
3956	(sh64_get_saved_pr): Update.
3957	(sh_init_extra_frame_info): Update.
3958	(sh_init_extra_frame_info): Update.
3959	(sh64_init_extra_frame_info): Update.
3960	(sh64_init_extra_frame_info): Update.
3961	* mcore-tdep.c (mcore_find_callers_reg): Update.
3962	(mcore_frame_saved_pc): Update.
3963	(mcore_init_extra_frame_info): Update.
3964	* i386-tdep.c (i386_frame_saved_pc): Update.
3965	* ia64-tdep.c (ia64_frame_saved_pc): Update.
3966	(ia64_init_extra_frame_info): Update.
3967	(ia64_init_extra_frame_info): Update.
3968	* d10v-tdep.c (d10v_frame_saved_pc): Update.
3969	* cris-tdep.c (cris_init_extra_frame_info): Update.
3970	* avr-tdep.c (avr_frame_chain): Update.
3971	(avr_init_extra_frame_info): Update.
3972	(avr_frame_saved_pc): Update.
3973	* arm-tdep.c (arm_find_callers_reg): Update.
3974	(arm_init_extra_frame_info): Update.
3975	(arm_frame_saved_pc): Update.
3976
39772002-09-17  Tom Tromey  <tromey@redhat.com>
3978
3979	* c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3980	is "'".
3981
39822002-09-17  Corinna Vinschen  <vinschen@redhat.com>
3983
3984	* MAINTAINERS: Remove "non multi-arched" text from h8300.
3985	* h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3986	NEXT_PROLOGUE_INSN.
3987	(h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3988	NEXT_PROLOGUE_INSN.
3989
39902002-09-16  Joel Brobecker  <brobecker@gnat.com>
3991
3992	* osfsolib.c: Remove file, replaced by solib-osf.c.
3993	* Makefile.in: Remove compilation rules for osfsolib.c.
3994
39952002-09-16  David Carlton  <carlton@math.stanford.edu>
3996
3997	* cp-valprint.c (cp_print_class_method): Correct args to
3998	check_stub_method_group.
3999
40002002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4001
4002	* h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4003	`set architecture'.  Unify naming convention of functions.
4004	(h8300_skip_prologue): Improve prologue analysis.
4005	(h8300_push_arguments): Rewritten to more closely match GCC's
4006	bizarre argument-passing behavior, along with the comment describing
4007	said behavior.
4008	* remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4009	* config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4010	sim, remote-e7000.c, remote-hms.c and remote.c
4011
40122002-09-15  Mark Kettenis  <kettenis@gnu.org>
4013
4014	* i386-tdep.c (gdb_print_insn_i386): Removed.
4015	(i386_print_insn): New function.
4016	(i386_gdbarch_init): Set print_insn to i386_print_insns.
4017	(_initialize_i386_tdep): Don't initialize tm_print_insn and
4018	tm_print_insn_info.
4019
40202002-09-14  Mark Kettenis  <kettenis@gnu.org>
4021
4022	* gdbtypes.c (check_stub_method_group): Initialize found_stub to
4023	zero.
4024
40252002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4026
4027	* arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4028	for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined.
4029	Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4030
40312002-09-13  Christopher Faylor  <cgf@redhat.com>
4032
4033	* win32-nat.c (child_create_inferior): Honor 'tty' command.
4034
40352002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4036
4037	* gdbtypes.c (check_stub_method): Make static.
4038	(check_stub_method_group): New function.
4039	* gdbtypes.h: Update prototypes.
4040	* cp-support.c: New file.
4041	* cp-support.h: New file.
4042
4043	* stabsread.c: Include "cp-abi.h" and "cp-support.h".
4044	(update_method_name_from_physname): New function.
4045	(read_member_functions): Correct method names for operators
4046	and v3 constructors/destructors.  Separate v2 constructors and
4047	destructors.
4048	* Makefile.in (stabsread.o): Update dependencies.
4049	(SFILES): Add cp-support.c.
4050	(COMMON_OBS): Add cp-support.o.
4051	(cp_support_h, cp-support.o): Add.
4052
4053	* cp-valprint.c (cp_print_class_method): Call
4054	check_stub_method_group instead of check_stub_method.  Remove
4055	extraneous QUITs.
4056	* p-valprint.c (pascal_object_print_class_method): Likewise.
4057	* valops.c (search_struct_method): Likewise.
4058	(find_method_list, value_struct_elt_for_reference): Likewise.
4059
40602002-09-13  Andrew Cagney  <cagney@redhat.com>
4061
4062	* gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4063	* gdbarch.h, gdbarch.c: Regenerate.
4064
40652002-09-13  Andrew Cagney  <ac131313@redhat.com>
4066
4067	* frame.c (find_saved_register): Delete function.
4068	* frame.h (find_saved_register): Delete declaration.
4069	Fix PR gdb/631.
4070
4071Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4072
4073	* mips-tdep.c (read_next_frame_reg): Re-hack using
4074 	frame_register_unwind.
4075
4076Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4077
4078	* mips-tdep.c (mips_get_saved_register): Re-hack using
4079 	frame_register_unwind.
4080
40812002-09-12  Joel Brobecker  <brobecker@gnat.com>
4082
4083	* gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4084	vector. Will be useful for Interix.
4085	* gdbarch.h, gdbarch.c: Regenerate.
4086
4087	* valops.c (value_allocate_space_in_inferior): Replace hard-coded
4088	name of the malloc function by NAME_OF_MALLOC.
4089
40902002-09-12  Joel Brobecker  <brobecker@gnat.com>
4091
4092	* value.h (find_function_in_inferior): Add const keyword to
4093	one of the parameters. Allows us to invoke this function with
4094	a const char *.
4095	* valops.c (find_function_in_inferior): Likewise.
4096
40972002-09-12  Joel Brobecker  <brobecker@gnat.com>
4098
4099	* exec.c (xfer_memory): Fix compilation warning with old versions
4100	of GCC.
4101	* tracepoint.c (trace_find_tracepoint_command): Likewise.
4102
41032002-09-12  David Carlton  <carlton@math.stanford.edu>
4104
4105	* symtab.h: Run through gdb_indent.h.
4106	Add 2002 to Copyright year list.
4107
41082002-09-12  Alan Modra  <amodra@bigpond.net.au>
4109
4110	* x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4111	mach constants.
4112	* MAINTAINERS: Add myself to write after approval list.
4113
41142002-09-11  J. Brobecker  <brobecker@gnat.com>
4115
4116	* osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4117
41182002-09-11  J. Brobecker  <brobecker@gnat.com>
4119
4120	* osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4121	Interix.
4122
41232002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4124
4125	* procfs.c (do_detach): Clear current signal, not just fault.
4126	Corrects problem with breakpoint trap signal leaking to detached
4127	process on Tru64.
4128
41292002-09-10  Michael Snyder  <msnyder@redhat.com>
4130
4131	* buildsym.c (finish_block): Protect against null pointer.
4132
41332002-09-10  Andrew Cagney  <cagney@redhat.com>
4134
4135	* infcmd.c (default_print_registers_info): Send all output to
4136	``file'' instead of ``gdb_stdout''.
4137
41382002-09-10  Michael Snyder  <msnyder@redhat.com>
4139
4140	* mips-tdep.c (mips_extract_struct_value_address): Make val a
4141	LONGEST, and use signed register read (addresses are sign-
4142	extended for mips).
4143
41442002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4145
4146	* event-loop.c (gdb_do_one_event): Make public.
4147	* event-loop.h (gdb_do_one_event): Declare.
4148
41492002-09-10  Jeff Law  <law@redhat.com>
4150
4151	* infttrace.c (child_resume): Simplify and rework to avoid
4152	TT_PROC_CONTINUE.
4153
41542002-09-09  Fred Fish  <fnf@intrinsity.com>
4155
4156	* printcmd.c (print_scalar_formatted): "len" is the number of
4157	target bytes, NOT the number of target bits.
4158
41592002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4160
4161	From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4162	* top.c (init_main): Set rl_terminal_name.
4163
41642002-09-08  Aidan Skinner <aidan@velvet.net>
4165
4166	* ada-lang.c (ada_array_bound, ada_type_match,
4167	_initialize_ada_language): Fix K&R definitions.
4168	* ada-tasks.c (get_current_task): Fix K&R definitions.
4169	* ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4170
41712002-09-07  Christopher Faylor  <cgf@redhat.com>
4172
4173	* MAINTAINERS: Remove CE from list of maintainership responsibilities.
4174	Add XP.
4175
41762002-09-06  Mark Kettenis  <kettenis@gnu.org>
4177
4178	* i386-tdep.c (i386_register_virtual_type,
4179	i386_register_convertible, i386_register_convert_to_virtual,
4180	i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4181	instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4182	(i386_gdbarch_init): Fix comment.  Add comments on calls that set
4183	sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4184	Don't set push_arguments twice.
4185
4186	* i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4187	sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4188	* i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4189	sigtramp_end to NULL.
4190	* config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4191	defines.
4192	(i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4193
4194	* i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4195	whitespace.
4196
4197	* gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4198	* gdbarch.h, gdbarch.c: Re-generate.
4199	* blockframe.c (find_pc_sect_partial_function): Convert to use
4200	SIGTRAMP_START_P predicate.
4201
42022002-09-05  Michael Snyder  <msnyder@redhat.com>
4203
4204	* arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4205	generic_dummy_frame method and old method.  Also distinguish
4206	between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4207	(arm_extract_return_value): Use new regcache method.
4208
4209	* mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4210	adjustment that doesn't conform to the ABI.
4211	(mips_extract_struct_value_address): Retrieve V0_REGNUM from
4212	saved regcache, not from current regcache.
4213
42142002-09-05  Andrew Cagney  <ac131313@redhat.com>
4215
4216	* NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4217	* README: Update.
4218
42192002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4220
4221	* arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4222	if arm_apcs_32 is false.
4223
42242002-09-04  Andrew Cagney  <ac131313@redhat.com>
4225
4226	GDB 5.3 branch created.
4227
42282002-09-03  Theodore A. Roth  <troth@verinet.com>
4229
4230	* gdb/avr-tdep.c (avr_gdbarch_init): Use
4231	generic_unwind_get_saved_register.
4232
42332002-09-03  David Carlton  <carlton@math.stanford.edu>
4234
4235	* dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4236	argument (PR gdb/653).  Update call to smash_to_method_type.
4237	(read_structure_scope): Update call to dwarf2_add_member_fn.
4238
42392002-09-03  Michal Ludvig  <mludvig@suse.cz>
4240
4241	* x86-64-linux-tdep.c: Include gdb_string.h
4242	* x86-64-linux-nat.c: Ditto.
4243
42442002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4245
4246	* ada-exp.y (yyname, yyrule): Remap global variables that appear
4247	when YYDEBUG is set to 1.
4248	* c-exp.y: Likewise.
4249	* f-exp.y: Likewise.
4250	* jv-exp.y: Likewise.
4251	* m2-exp.y: Likewise.
4252	* p-exp.y: Likewise.
4253
42542002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4255
4256	* Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4257	dependency list.
4258	* i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4259	solib_svr4_fetch_link_map_offsets to
4260	nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4261	* config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4262	* config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4263	* config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4264	solib-svr4.o, and solib-legacy.o.
4265	* config/i386/tm-nbsd.h: Include solib.h.
4266
42672002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4268
4269	* configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4270	(i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd.
4271	(i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4272	comment noting that this needs its own target configuration.
4273	* config/i386/nbsd.mt: New file.
4274	* config/i386/nbsdaout.mt: Remove.
4275	* config/i386/nbsdelf.mt: Ditto.
4276	* config/i386/tm-nbsdaout.h: Ditto.
4277
42782002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4279
4280	* i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4281	(i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4282	(i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4283	tdep->sigtramp_end.
4284	(i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4285	* config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4286	(i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4287
42882002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4289
4290	* Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4291	$(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4292	* i386-tdep.h (i386bsd_init_abi): New prototype.
4293	* i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4294	function declaration.
4295	(_initialize_i386bsd_tdep): Don't register OS ABI handlers
4296	for NetBSD-a.out or NetBSD-ELF.
4297	(i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4298	(i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4299	(i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4300	* i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4301	and nbsd-tdep.h.
4302	(i386nbsd_pc_in_sigtramp): New function.
4303	(i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4304	i386nbsd_pc_in_sigtramp.
4305	(_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4306	and i386nbsdelf_init_abi OS ABI handlers.
4307	* config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4308	* config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4309
43102002-09-02  Mark Kettenis  <kettenis@gnu.org>
4311
4312	* i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4313	registers if the target really has them.
4314
43152002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4316
4317	* Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4318	than nbsd-tdep.h.
4319
43202002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4321
4322	* Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4323	list.
4324	* alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4325	(alphanbsd_skip_sigtramp_frame): New functions.
4326	(alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4327	alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4328	to alphanbsd_sigcontext_addr.
4329
43302002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4331
4332	* Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4333	list.
4334	(nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4335	* alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4336	nbsd_pc_in_sigtramp.
4337	* mipsnbsd-tdep.c: Include nbsd-tdep.h.
4338	(mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4339	* nbsd-tdep.c: Include gdb_string.h.
4340	(nbsd_pc_in_sigtramp): New function.
4341	* nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4342	* ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4343	(ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4344	ppcnbsd_pc_in_sigtramp.
4345	* shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4346	(shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4347	shnbsd_pc_in_sigtramp.
4348	* sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4349	gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4350	* config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4351
43522002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4353
4354	* breakpoint.c (breakpoint_init_inferior): Reset the val field of
4355	watchpoints to NULL.
4356	(insert_breakpoints): set val field of watchpoints if NULL.
4357
4358
43592002-08-29  Jim Blandy  <jimb@redhat.com>
4360
4361	* symtab.c (lookup_symbol_aux): In the cases where we find a
4362	minimal symbol of an appropriate name and use its address to
4363	select a symtab to read and search, use `name' (as passed to us)
4364	as the demangled name when searching the symtab's global and
4365	static blocks, not the minsym's name.
4366
43672002-08-29  Keith Seitz  <keiths@redhat.com>
4368
4369	* stack.c (print_frame_info_base): Always set current_source_symtab
4370	and current_source_line.
4371
43722002-08-29  Donn Terry  <donnte@microsoft.com>
4373
4374	* proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4375
43762002-08-28  Keith Seitz  <keiths@redhat.com>
4377
4378	* stack.c (select_frame): Add FIXME concerning selected-frame
4379	events.
4380	(select_frame_command): Send selected-frame-level-changed
4381	event notification, but only if the level actually changed.
4382	(up_silently_base): Add selected-frame-level-changed event
4383	notification.
4384	(down_silently_base): Likewise.
4385
43862002-08-28  Andrew Cagney  <ac131313@redhat.com>
4387
4388	* Makefile.in: Update dependencies for all gdb/*.c files.
4389
43902002-08-27  Tom Tromey  <tromey@redhat.com>
4391
4392	* Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4393	ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4394	Update dependencies.
4395	* i387-tdep.c: Include gdb_string.h.
4396	* osabi.c: Likewise.
4397	* i386-linux-nat.c: Likewise.
4398	* lin-lwp.c: Likewise.
4399	* ax-gdb.c: Likewise.
4400	* signals/signals.c: Likewise.
4401	* jv-valprint.c: Likewise.
4402	* p-lang.c: Likewise.
4403	* c-valprint.c: Likewise.
4404	* cp-abi.c: Likewise.
4405
44062002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4407
4408	* cli/cli-script.h (copy_command_lines): Export.
4409	* breakpoint.c: Include cli/cli-script.h.
4410	* Makefile.in (breakpoint.o): Update dependencies.
4411
44122002-08-26  Michael Snyder  <msnyder@redhat.com>
4413
4414	* breakpoint.c (insert_breakpoints): Protect all references
4415	to 'process_warning'.  Shorten long lines.
4416
44172002-08-26  Joel Brobecker  <brobecker@gnat.com>
4418
4419	* cli/cli-script.c (copy_command_lines): New function.
4420	* defs.h (copy_command_lines): Export.
4421	* testsuite/gdb.base/commands.exp: New tests for commands
4422	attached to a temporary breakpoint, and for commands that
4423	delete the breakpoint they are attached to.
4424
44252002-08-26  Michael Snyder  <msnyder@redhat.com>
4426
4427	* breakpoint.c (bpstat_stop_status): Instead of copying the
4428	pointer to the breakpoint commands struct, make a new copy
4429	of the struct and point to that.
4430	(bpstat_clear): Free the commands struct.
4431	(bpstat_clear_actions): Free the commands struct.
4432	(bpstat_do_actions): Free the command actions.  Also execute
4433	the local cleanups, instead of deleting them.
4434	(delete_breakpoint): Leave the commands field of the bpstat
4435	chain alone -- it will be freed later.
4436
44372002-08-26  Kevin Buettner  <kevinb@redhat.com>
4438
4439	* rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4440	deleted in 2002-08-20 commit.  This function is still used by
4441	ppc-linux-nat.c.
4442
44432002-08-26  Keith Seitz  <keiths@redhat.com>
4444
4445	* gdb-events.sh: Add selected-frame-level-changed event.
4446	* gdb-events.c: Regenerated.
4447	* gdb-events.h: Regenerated.
4448
44492002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4450
4451	Fix PR gdb/393:
4452	* inflow.c (terminal_save_ours): New function to save terminal
4453	settings.
4454	* inferior.h (terminal_save_ours): Declare.
4455	* target.c (debug_to_terminal_save_ours): New function.
4456	(cleanup_target): Defaults to_terminal_save_ours.
4457	(update_current_target): Inherit to_terminal_save_ours.
4458	(setup_target_debug): Set to_terminal_save_ours.
4459	* target.h (target_terminal_save_ours): New to save terminal settings.
4460	(target_ops): New member to_terminal_save_ours.
4461	* gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4462	* hpux-thread.c (init_hpux_thread_ops): Likewise.
4463	* inftarg.c (init_child_ops): Likewise.
4464	* m3-nat.c (init_m3_ops): Likewise.
4465	* procfs.c (init_procfs_ops): Likewise.
4466	* wince.c (init_child_ops): Likewise.
4467	* win32-nat.c (init_child_ops): Likewise.
4468	* sol-thread.c (init_sol_thread_ops): Likewise.
4469
44702002-08-26  Mark Kettenis  <kettenis@gnu.org>
4471
4472	* i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4473	use regcache_* functions.
4474	(i386_gdbarch_init): Set store_return_value instead of
4475	deprecated_store_return_value.
4476
4477	* regcache.c (regcache_raw_write_signed,
4478	regcache_raw_write_unsigned): New functions.
4479	* regcache.h (regcache_raw_write_signed,
4480	regcache_raw_write_unsigned): New prototypes.
4481
44822002-08-25  Andrew Cagney  <ac131313@redhat.com>
4483
4484	* Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4485	(m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4486	source file dependencies.  Cleanup corresponding generator rules.
4487
44882002-08-25  Andrew Cagney  <ac131313@redhat.com>
4489
4490	* regcache.h (register_offset_hack): Declare.
4491	(regcache_cooked_read_using_offset_hack): Declare.
4492	(regcache_cooked_write_using_offset_hack): Declare.
4493
4494	* regcache.c (register_offset_hack): New function.
4495	(regcache_cooked_read_using_offset_hack): New function.
4496	(regcache_cooked_write_using_offset_hack): New function.
4497	(regcache_dump): Check that the registers, according to their
4498	offset, are packed hard against each other.
4499	(cooked_xfer_using_offset_hack): New function.
4500
45012002-08-25  Andrew Cagney  <ac131313@redhat.com>
4502
4503	* regcache.c (struct regcache_descr): Add field register_type.
4504	(init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4505	in as a parameter
4506	(init_regcache_descr): Initialize register_type.  Pass the descr
4507	to init_legacy_regcache_descr.  Use register_type instead of
4508	REGISTER_VIRTUAL_TYPE.
4509	(register_type): New function.
4510	(regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4511	* regcache.h (register_type): Declare.
4512
45132002-08-25  Andrew Cagney  <ac131313@redhat.com>
4514
4515	* rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4516	instead of deprecated_store_return_value.  Fix fallout from
4517	2002-08-23 Andrew Cagney <cagney@redhat.com>.
4518
45192002-08-25  Andrew Cagney  <ac131313@redhat.com>
4520
4521	* regcache.c (max_register_size): New function.
4522	(init_legacy_regcache_descr): Ensure that max_register_size is
4523	large enough for REGISTER_VIRTUAL_SIZE.
4524	* regcache.h (max_register_size): Declare.
4525
45262002-08-24  Andrew Cagney  <ac131313@redhat.com>
4527
4528	* rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4529	store_return_value.
4530	(e500_extract_return_value): Change type of valbuf pointer to
4531	void.
4532
45332002-08-24  Mark Kettenis  <kettenis@gnu.org>
4534
4535	* PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4536	workaround.
4537
4538	* valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4539	PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4540	long long) to prevent compiler warning on 64-bit systems.
4541
45422002-08-23  Andrew Cagney  <cagney@redhat.com>
4543
4544	* gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4545	(DEPRECATED_STORE_RETURN_VALUE): New method.
4546	(EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4547	* gdbarch.h, gdbarch.c: Re-generate.
4548
4549	* values.c (set_return_value): Pass current_regcache to
4550	STORE_RETURN_VALUE.
4551	* arch-utils.h (legacy_store_return_value): Declare.
4552	* arch-utils.c (legacy_store_return_value): New function.
4553	(legacy_extract_return_value): Update parameters.
4554
4555	* config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4556	STORE_RETURN_VALUE.
4557	* config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4558	* config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4559	* config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4560	* config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4561	* config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4562	* config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4563	* config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4564	* config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4565	* config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4566	* config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4567
4568	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4569	* i386-tdep.c (i386_extract_return_value): Update.
4570	* arch-utils.c (legacy_extract_return_value): Update.
4571	* frv-tdep.c (frv_gdbarch_init): Update.
4572	* cris-tdep.c (cris_gdbarch_init): Update.
4573	* d10v-tdep.c (d10v_gdbarch_init): Update.
4574	* rs6000-tdep.c (rs6000_gdbarch_init): Update.
4575	* m68k-tdep.c (m68k_gdbarch_init): Update.
4576	* mcore-tdep.c (mcore_gdbarch_init): Update.
4577	* mn10300-tdep.c (mn10300_gdbarch_init): Update.
4578	* s390-tdep.c (s390_gdbarch_init): Update.
4579	* sparc-tdep.c (sparc_gdbarch_init): Update.
4580	* sh-tdep.c (sh_gdbarch_init): Update.
4581	* x86-64-tdep.c (x86_64_gdbarch_init): Update.
4582	* v850-tdep.c (v850_gdbarch_init): Update.
4583	* avr-tdep.c (avr_gdbarch_init): Update.
4584	* ia64-tdep.c (ia64_gdbarch_init): Update.
4585	* ns32k-tdep.c (ns32k_gdbarch_init): Update.
4586	* vax-tdep.c (vax_gdbarch_init): Update.
4587	* alpha-tdep.c (alpha_gdbarch_init): Update.
4588	* arm-tdep.c (arm_gdbarch_init): Update.
4589	* mips-tdep.c (mips_gdbarch_init): Update.
4590	* i386-tdep.c (i386_gdbarch_init): Update.
4591
45922002-08-23  Andrew Cagney  <ac131313@redhat.com>
4593
4594	* config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4595	bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4596
45972002-08-24  Mark Kettenis  <kettenis@gnu.org>
4598
4599	* PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4600	problems.
4601
46022002-08-23  Joel Brobecker  <brobecker@gnat.com>
4603
4604	* infrun.c (handle_inferior_event): Move a comment outside of a
4605	function call, in order to avoid indent reformatting this part
4606	of the code in an unreadable way.
4607
46082002-08-23  Grace Sainsbury  <graces@redhat.com>
4609
4610	* infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4611	when breakpoints fail. Move general breakpoint error messages to
4612	insert_breakpoints.
4613	* breakpoint.c (insert_breakpoints): Change warnings when
4614	breakpoints are nto inserted to specify the type. Remove call to
4615	memory_error when hardware breakpoints can't be inserted. Remove
4616	multiple calls to warning so all messages are sent to the user at
4617	once.
4618	(delete_breakpoints): Make insert error messsages more explicit.
4619
46202002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4621
4622	* ChangeLog: Move gdbserver entries after GDB 5.2 to
4623	gdbserver/ChangeLog.
4624
46252002-08-23  Mark Kettenis  <kettenis@gnu.org>
4626
4627	* i386-tdep.c: Include "objfiles.h".
4628	(i386_svr4_init_abi): Set in_solib_call_trampoline and
4629	skip_trampoline_code.
4630	* config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4631	(CPLUS_MARKER): Define to '.'.
4632
4633	* linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4634	member.
4635	(linux_corefile_thread_callback): Increase args->num_notes.
4636	(linux_make_note_section): Initialize thread_args.num_notes, and
4637	use it to determine whether notes for any threads were created.
4638
46392002-08-23  Donn Terry  <donnte@microsoft.com>
4640
4641	* proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4642	corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4643	and PCUNKILL.
4644	(write_with_trace): Conditionalize out the switch branch handling
4645	PCSHOLD if the corresponding macro is not defined. Likewise for
4646	PRSABORT and PRSTOP.
4647	This change will be needed by the Interix port.
4648
46492002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4650
4651	* ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4652	write_register wherever possible instead of manipulating the
4653	register bytes directly.
4654	Assign VALUE_CONTENTS to a variable and use that.
4655	The GPR numbers are now dependent on the architecture.
4656
46572002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4658
4659	* rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4660	ev_offset fields.
4661	(skip_prologue): Add support for BookE/e500 instructions.
4662	(e500_extract_return_value): New function.
4663	(frame_get_saved_regs): Add support for saving ev registers and
4664	pseudo gpr's.
4665	(e500_store_return_value): New function.
4666	(rs6000_gdbarch_init): Move up default intializations of
4667	deprecated_extract_return_value and store_return_value.  Overwrite
4668	init of store_return_value with e500 specific version.
4669	Set extract_return_value for e500.
4670
46712002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4672
4673	* blockframe.c (generic_call_dummy_register_unwind): Use
4674	regcache_cooked_read to catch cases in which the variable is
4675	stored in a pseudo register.
4676
46772002-08-22  Andrew Cagney  <cagney@redhat.com>
4678
4679	* NEWS: Mention that the i960 has been made obsolete.
4680	* Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4681	i960-tdep.c
4682	(remote-nrom.o): Obsolete target.
4683	(remote-nindy.o, i960-tdep.o): Ditto.
4684	* remote-nrom.c: Make file obsolete.
4685	* remote-nindy.c, remote-vx960.c: Ditto.
4686	* config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4687	* config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4688	* config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4689	* config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4690	* configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4691	i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4692	i960-*-vxworks* obsolete.
4693	* MAINTAINERS: Note that the i960 is obsolete.
4694
46952002-08-21  Corinna Vinschen  <vinschen@redhat.com
4696
4697	* aix-thread.c (aix_thread_detach): Disable thread debugging on
4698	detach to allow reinitialization.
4699
47002002-08-22  Andrew Cagney  <ac131313@redhat.com>
4701
4702	* MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4703	attempt).
4704
47052002-08-22  Jim Blandy  <jimb@redhat.com>
4706
4707	* coffread.c (coff_symfile_read): Don't try to read the line
4708	number table from disk if the image file doesn't have a symbol
4709	table; we'll never actually look at the info anyway, and Windows
4710	ships DLL's with bogus file offsets for the line number data.
4711
47122002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4713
4714        * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4715        an e500 executable.
4716
47172002-08-21  Michael Snyder  <msnyder@redhat.com>
4718
4719	* mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4720	(MSYMBOL_SIZE): Replace macro with function.
4721	(DEFAULT_MIPS_TYPE): Delete unused macro.
4722	* config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4723	* config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4724
47252002-08-21  Jim Blandy  <jimb@redhat.com>
4726
4727	* valops.c (value_cast): Simplify and correct logic for doing a
4728	static cast from a pointer to a base class to a pointer to a
4729	derived class.
4730
47312002-08-21  Andrew Cagney  <ac131313@redhat.com>
4732
4733	* infcmd.c (default_print_registers_info): Replace
4734	do_registers_info.
4735	(registers_info): Use gdbarch_print_registers_info instead of
4736	DO_REGISTERS_INFO.
4737	* inferior.h (default_print_registers_info): Replace
4738	do_registers_info.
4739	* gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4740	(DO_REGISTERS_INFO): Change to a predicate function.
4741	* gdbarch.h, gdbarch.c: Regenerate.
4742
47432002-08-21  Keith Seitz  <keiths@redhat.com>
4744
4745	* gdb-events.sh: Add target-changed event.
4746	* gdb-events.c: Regenerated.
4747	* gdb-events.c: Regenerated.
4748	* valops.c (value_assign): Add target-changed event notification
4749	to inlval_register, lval_memory, and lval_reg_frame_relative.
4750
47512002-08-21  Joel Brobecker  <brobecker@gnat.com>
4752
4753	* NEWS: Add an entry regarding the improvement of the next/step
4754	operation on Alpha Tru64 multi-processor machines.
4755
47562002-08-21  Andrew Cagney  <ac131313@redhat.com>
4757
4758	* Makefile.in: Update dependencies for mi/ cli/ and tui/
4759	directores.
4760	* Makefile.in: Update all _h macro definitions.
4761	* Makefile.in (install-gdbtk): Move to install section.
4762	(rdi-share/libangsd.a): Move to end of file.
4763
47642002-08-19  Andrew Cagney  <ac131313@redhat.com>
4765
4766	* frame.c (frame_register_unwind): When a register, set addrp to
4767	the register's byte.
4768
47692002-08-20  Michael Snyder  <msnyder@redhat.com>
4770
4771	* mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4772	used locally, so move them from the target machine header to here.
4773	(mips_set_processor_type, mips_register_name, mips32_next_pc,
4774	mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4775	Make static.
4776	* config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4777
47782002-08-20  Andrew Cagney  <cagney@redhat.com>
4779
4780	* NEWS: Mention that the Apollo line was made obsolete.
4781	* configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4782	m68*-hp-hpux* obsolete.
4783	* configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4784	m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4785	* buildsym.c (make_blockvector): Make static.
4786	* buildsym.h (make_blockvector): Make extern declaration obsolete.
4787	* Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4788	(ALLDEPFILES): Remove dstread.c.
4789	(dstread.o): Obsolete make rule.
4790	* dstread.c: Makefile obsolete.
4791	* dst.h: Ditto.
4792	* config/m68k/hp300hpux.mt: Ditto.
4793	* config/m68k/hp300hpux.mh: Ditto.
4794	* config/m68k/hp300bsd.mt: Ditto.
4795	* config/m68k/hp300bsd.mh: Ditto.
4796	* config/m68k/apollo68b.mt: Ditto.
4797	* config/m68k/apollo68v.mh: Ditto.
4798	* config/m68k/apollo68b.mh: Ditto.
4799
48002002-08-20  Michael Snyder  <msnyder@redhat.com>
4801
4802	* mips-tdep.c (mips_in_return_stub): Make static.
4803	(mips_gdbarch_init): Set in_solib_return_trampoline.
4804	* config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4805
48062002-08-20  Michael Snyder  <msnyder@redhat.com>
4807
4808	* gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4809	* gdbarch.c, gdbarch.h: Regenerate.
4810	* arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4811	Add.
4812	* infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4813
48142002-08-20  Michael Snyder  <msnyder@redhat.com>
4815
4816	* mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4817	(mips_gdbarch_init): Set skip_trampoline_code,
4818	in_solib_call_trampoline.
4819	* config/mips/tm-mips.h (REGISTER_NAME): Delete.
4820	(IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4821
48222002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4823
4824	* ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4825
4826	* rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4827	vector type for ev registers.
4828	(e500_pseudo_register_read): New function.
4829	(e500_pseudo_register_write): New function.
4830	(e500_dwarf2_reg_to_regnum): New function.
4831	(PPC_UISA_NOFP_SPRS): New macro.
4832	(PPC_EV_REGS): New macro.
4833	(PPC_GPRS_PSEUDO_REGS): New macro.
4834	(registers_e500): New register set for e500.
4835	(variants): Add e500 variant.
4836	(rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4837	before setting architectural dependent variations.  Initialize ev
4838	registers numbers.  Add case for e500 architecture.  Set the
4839	number of pseudo registers.
4840
48412002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4842
4843        * rs6000-tdep.c: Clean up comments.
4844
48452002-08-20  Andrew Cagney  <cagney@redhat.com>
4846
4847	* h8300-tdep.c: Re-indent file.
4848
48492002-08-20  Jim Blandy  <jimb@redhat.com>
4850
4851	* Makefile.in (LDFLAGS): Allow the configure script to establish a
4852	default for this.
4853
48542002-08-20  Keith Seitz  <keiths@redhat.com>
4855
4856	* breakpoints.c (watch_command_1): Use internal breakpoint
4857	when setting a watchpoint_scope breakpoint.
4858
48592002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4860
4861        * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4862        (build_builtin_type_vec64i): Ditto.
4863        (build_builtin_type_vec128): Ditto.
4864        (build_builtin_type_vec128i): Ditto.
4865
48662002-08-19  Michael Snyder  <msnyder@redhat.com>
4867
4868	* config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4869	(MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4870	(FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4871	POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4872	(CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4873	CALL_DUMMY_ADDRESS): Delete.
4874	* mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4875	mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4876	(mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4877	push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4878	push_return_address.
4879	(mips_register_raw_size, mips_eabi_use_struct_convention,
4880	mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4881	mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4882	mips_init_extra_frame_info, mips_eabi_push_arguments,
4883	mips_n32n64_push_arguments, mips_push_return_address,
4884	mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4885	mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4886
48872002-08-19  Michael Snyder  <msnyder@redhat.com>
4888
4889	* mips-tdep.c (mips_frame_num_args): New function.
4890	(mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4891	frame_saved_pc, frame_args_address, frame_locals_address,
4892	frame_num_args, and frame_args_skip.
4893	* config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4894	FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4895	FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4896	* config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4897
48982002-08-20  Michael Snyder  <msnyder@redhat.com>
4899
4900	* config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4901	(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4902	* mips-tdep.c (mips_store_struct_return): New function.
4903	(mips_extract_struct_value_address): New function.
4904	(mips_gdbarch_init): Set store_struct_return and
4905	extract_struct_value_address.
4906
49072002-08-20  David Carlton  <carlton@math.stanford.edu>
4908
4909	* dwarf2read.c (dwarf2_build_psymtabs): Check that
4910	dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4911	(read_file_scope): Check that line_header is nonzero before
4912	decoding macro information.
4913
49142002-08-20  Mark Kettenis  <kettenis@gnu.org>
4915
4916	* i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4917	flag the general-purpose registers as floating-point on targets
4918	that don't support the floating-point registers.
4919
49202002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4921
4922	* rs6000-tdep.c (altivec_register_p): Delete.
4923	(rs6000_do_altivec_registers): Delete.
4924	(rs6000_altivec_registers_info): Delete.
4925	(rs6000_do_registers_info): Delete.
4926	(_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4927	(rs6000_gdbarch_init): Remove setting of do_registers_info.
4928
49292002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4930
4931	* infcmd.c (do_registers_info): Print vector registers in hex
4932	format only.
4933	(print_vector_info): Check that printing registers
4934	makes sense.
4935	(print_float_info): Ditto.
4936
49372002-08-20  Andrew Cagney  <ac131313@redhat.com>
4938
4939	* mips-tdep.c (mips_gdbarch_init): Update.
4940	(mips_o32_extract_return_value): Rewrite.
4941	(mips_o32_store_return_value): Rewrite.
4942	(mips_o32_xfer_return_value): New function.
4943	(mips_xfer_register): Tweak debug print message.  Allow for
4944	buf_offset when dumping the value transfered.
4945
49462002-08-20  Andrew Cagney  <ac131313@redhat.com>
4947
4948	* config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4949	* config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4950	* config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4951	* config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4952	* mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4953
49542002-08-14  Michael Snyder  <msnyder@redhat.com>
4955
4956	* mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4957
49582002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4959
4960	* rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4961	register.
4962	(P): New macro to define a register as a pseudo register.
4963	(R, R4, R8, R16, FR32, R64, R0): Updated.
4964	(struct variant): Add new fields for number of pseudo registers
4965	and number of total registers.
4966	(tot_num_registers): New macro replacing....
4967	(num_registers): ...deleted macro.
4968	(num_registers): New function.
4969	(num_pseudo_registers): New function.
4970	(variants): Update all variants to intialize new fields correctly.
4971	Postpone initialization of number of pseudo regs and real regs.
4972	(init_variants): New function.
4973	(rs6000_gdbarch_init): Initialize variants.  Update calculation of
4974	registers offsets.
4975
49762002-08-19  David Carlton  <carlton@math.stanford.edu>
4977
4978	* valops.c (search_struct_field): Change error message to treat
4979	return value of 0 from value_static_field as meaning that field is
4980	optimized out.
4981	(value_struct_elt_for_reference): Ditto.
4982	* values.c (value_static_field): Treat an unresolved location the
4983	same as a nonexistent symbol.  Fix PR gdb/635.
4984	* gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4985	enclosed.  Fix PR gdb/574.
4986	* MAINTAINERS: Add self to Write After Approval list.
4987
49882002-08-19  Andrew Cagney  <ac131313@redhat.com>
4989
4990	* mips-tdep.c (mips_xfer_register): New function.
4991	(mips_n32n64_extract_return_value): Rewrite.
4992	(mips_gdbarch_init): For N32 and N64, set extract_return_value
4993	instead of deprecated_extract_return_value.
4994
49952002-08-19  Elena Zannoni  <ezannoni@redhat.com>
4996
4997	* rs6000-tdep.c (TDEP): Delete macro.
4998	(branch_dest): Replace use of TDEP macro with its body.
4999	(rs6000_pop_frame): Ditto.
5000	(rs6000_push_arguments): Ditto.
5001	(rs6000_skip_trampoline_code): Ditto.
5002	(rs6000_frame_saved_pc): Ditto.
5003	(rs6000_frame_chain): Ditto.
5004	(rs6000_register_name): Ditto.
5005	(rs6000_register_byte): Ditto.
5006        (rs6000_register_raw_size): Ditto.
5007	(rs6000_register_virtual_type): Ditto.
5008	(rs6000_register_convertible): Ditto.
5009	(rs6000_convert_from_func_ptr_addr): Ditto.
5010
50112002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5012
5013	* config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5014	conditionally.
5015	(JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5016	MIPS_LINUX_JB_ELEMENT_SIZE.
5017	* mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5018	for MAX_REGISTER_RAW_SIZE arrays.
5019	(mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5020	MIPS_LINUX_JB_ELEMENT_SIZE.
5021
50222002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5023
5024	* i387-tdep.c (i387_print_float_info): Fix typo in comment.
5025
50262002-08-19  Aidan Skinner <aidan@velvet.net>
5027
5028	* Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5029	ada-valprint.c ada-tasks.c.
5030	(YYFILES): Add ada-exp.y.
5031	(ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5032	(ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5033	(ada-exp.tab.o): New target.
5034
50352002-08-18  Andrew Cagney  <ac131313@redhat.com>
5036
5037	* regcache.c (regcache_xfer_part): New function.
5038	(regcache_raw_read_part): New function.
5039	(regcache_raw_write_part): New function.
5040	(regcache_cooked_read_part): New function.
5041	(regcache_cooked_write_part): New function.
5042	* regcache.h (regcache_raw_read_part): Declare.
5043	(regcache_raw_write_part): Declare.
5044	(regcache_cooked_read_part): Declare.
5045	(regcache_cooked_write_part): Declare.
5046
50472002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5048
5049	* remote.c (remote_open_1): Add async_p.
5050	(remote_async_open_1): Delete.
5051	(open_remote_target): Delete.
5052	(remote_open, extended_remote_open): Update calls to remote_open_1.
5053	(remote_async_open, extended_remote_async_open): Call
5054	remote_open_1 instead of remote_async_open_1.
5055
50562002-08-19  Mark Kettenis  <kettenis@gnu.org>
5057
5058	* blockframe.c: Fix a few coding standard violations.
5059
50602002-08-19  Mark Kettenis  <kettenis@gnu.org>
5061
5062	* config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5063	here from ...
5064	* config/i386/tm-i386sco5.h: ... here.  File removed.
5065	* config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5066
5067	* config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5068	* config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5069	(TM_FILE): Set to tm-i386.h.
5070	* config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5071	* config/i386/tm-i386v.h: Remove file.
5072	* config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5073	instead of "i386/tm-i386v.h".
5074	(START_INFERIOR_TRAPS_EXPECTED): Remove define.
5075	* config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5076	"i386/tm-i386v.h".
5077	(START_INFERIOR_TRAPS_EXPECTED): Remove define.
5078	* config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5079	"i386/tm-i386.h".
5080
50812002-08-18  Mark Kettenis  <kettenis@gnu.org>
5082
5083	* config/i386/nm-i386v.h: Add protection against
5084	multiple-inclusion.
5085	(i386_register_u_addr): Remove prototype.
5086	(register_u_addr): New prototype.
5087	(REGISTER_U_ADDR): Redefine accordingly.
5088	* i386v-nat.c: Improve several comments.
5089	(i386_register_u_addr): Change signature and rename to
5090	register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5091	ubase variable.
5092
50932002-08-18  Andrew Cagney  <ac131313@redhat.com>
5094
5095	* config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5096	(DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5097	* mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5098	deprecated_extract_return_value.
5099	(mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5100	rename mips_o32o64_push_arguments.
5101	(mips_gdbarch_init): Update.
5102	(mips_extract_return_value): Delete.
5103	(mips_o32_extract_return_value): Clone mips_extract_return_value.
5104	(mips_o64_extract_return_value): Clone mips_extract_return_value.
5105	(mips_eabi_extract_return_value): Clone mips_extract_return_value.
5106	(mips_n32n64_extract_return_value): Clone
5107	mips_extract_return_value.
5108	(mips_store_return_value): Delete.
5109	(mips_o32_store_return_value): Clone mips_store_return_value.
5110	(mips_o64_store_return_value): Clone mips_store_return_value.
5111	(mips_eabi_store_return_value): Clone mips_store_return_value.
5112	(mips_n32n64_store_return_value): Clone mips_store_return_value.
5113
51142002-08-18  Aidan Skinner <aidan@velvet.net>
5115
5116	* ada-lang.c: Use gdb_string.h instead of <string.h>.
5117	* ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5118
51192002-08-18  Aidan Skinner <aidan@velvet.net>
5120
5121        * ada-lang.c: Run through gdb_indent.sh.
5122        * ada-lang.h: Run through gdb_indent.sh.
5123        * ada-tasks.c: Run through gdb_indent.sh.
5124        * ada-typeprint.c: Run through gdb_indent.sh.
5125        * ada-valprint.c: Run through gdb_indent.sh.
5126
51272002-08-18  Andrew Cagney  <ac131313@redhat.com>
5128
5129	* osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5130	ABI.
5131
51322002-08-18  Mark Kettenis  <kettenis@gnu.org>
5133
5134	* i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5135
5136	* config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5137	* i386b-nat.c [FLOAT_INFO]: Remove dead code.
5138
5139	* i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5140	write_register_gen instead of write_register_bytes.
5141
5142	* NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5143	i[3456]-*-osf1mk* configurations have been made obsolete.
5144	* configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5145	i[3456]86-*-osf1mk* hosts obsolete.
5146	* confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5147	targets obsolete.
5148	* config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5149	config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5150	config/i386/i386m3.mt, config/i386/nm-m3.h,
5151	config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5152	config/i386/i386mk.mh, config/i386/i386mk.mt,
5153	config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5154	obsolete.
5155	* i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5156	* Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5157	(i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5158
51592002-08-18  Andrew Cagney  <ac131313@redhat.com>
5160
5161	* config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5162	(hppa_value_returned_from_stack): Declare.
5163	(hppa_extract_return_value): Declare.
5164	* config/pa/hppa.mt: New file.
5165	* configure.tgt: Recognize hppa*-*-*.
5166	* MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5167
51682002-08-18  Mark Kettenis  <kettenis@gnu.org>
5169
5170	* i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5171	comment.
5172
51732002-08-17  Mark Kettenis  <kettenis@gnu.org>
5174
5175	* top.c (gdb_rl_operate_and_get_next): Make sure
5176	operate-and-get-next functions correctly even when the history
5177	list is completely filled.
5178
51792002-08-18  Andrew Cagney  <ac131313@redhat.com>
5180
5181	* MAINTAINERS (Target Instruction Set Architectures): Rename
5182	Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5183	Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5184	mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5185	already listed under Host/Native.
5186
5187	* configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5188	i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5189	mips*-*-*.
5190
51912002-08-17  Andrew Cagney  <ac131313@redhat.com>
5192
5193	* config/ia64/ia64.mt: New file.
5194	* config/alpha/alpha.mt: New file.
5195	* MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5196	ia64-linux-gnu.  Mention that ia64-elf is broken.
5197	* configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5198
51992002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5200
5201	* i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5202	generic_func_frame_valid instead of func_frame_valid.
5203
52042002-08-16  Joel Brobecker  <brobecker@gnat.com>
5205
5206	* alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5207	procfs appears to be broken when debugging on multi-processor
5208	machines. So enable software single stepping in order to avoid
5209	using the procfs interface to do next/step operations, using
5210	internal breakpoints instead.
5211
5212	* infrun.c (handle_inferior_event): Readjust the stop_pc by
5213	DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5214	make this pc address equal to the value it would have if the
5215	system stepping capability was used. Also set a new flag used
5216	to ensure that we don't readjust the PC one more time later.
5217
5218	* breakpoint.c (bpstat_stop_status): Do not adjust the PC
5219	address by DECR_PC_AFTER_BREAK when software single step is
5220	in use for this architecture, as this has already been taken
5221	care of in handle_inferior_event().
5222
52232002-08-16  Joel Brobecker  <brobecker@gnat.com>
5224
5225	* infrun.c (handle_inferior_event): Minor reformatting, to make
5226	a rather long condition expression easier to read.
5227
52282002-08-16  Andrew Cagney  <ac131313@redhat.com>
5229
5230	* Makefile.in (gdbtk.o): Move to end of file.
5231	(gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5232	(gdbtk-hooks.o, gdbtk-register.o): Ditto.
5233	(gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5234	(gdbtk-wrapper.o, gdbres.o): Ditto.
5235
52362002-08-16  Andrew Cagney  <ac131313@redhat.com>
5237
5238	* Makefile.in (copying.o): Separate out compile rule.
5239	(hpux-thread.o, procfs.o, signals.o): Ditto.
5240	(v850ice.o, z8k-tdep.o): Ditto.
5241	(tui-file.o): Move to TUI section.
5242	(xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5243	(nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5244
52452002-08-16  Joel Brobecker  <brobecker@gnat.com>
5246
5247	* i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5248	skip_trampoline_code, for better namespace-proofing.
5249
5250	* i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5251
52522002-08-16  Joel Brobecker  <brobecker@gnat.com>
5253
5254	* config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5255
52562002-08-16  Joel Brobecker  <brobecker@gnat.com>
5257
5258	* infrun.c (handle_inferior_event): When receiving a SIGTRAP
5259	signal, check whether we hit a breakpoint before checking for a
5260	single step breakpoint. Otherwise, GDB fails to notice that a
5261	breakpoint has been hit when stepping onto a breakpoint.
5262
52632002-08-16  Keith Seitz  <keiths@redhat.com>
5264
5265	* gdb-events.sh (clear_gdb_event_hooks): New function.
5266	* gdb-events.c: Regenerate.
5267	* gdb-events.h: Regenerate.
5268
52692002-08-16  Andrew Cagney  <ac131313@redhat.com>
5270
5271	* breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5272	not_a_sw_breakpoint.
5273	* breakpoint.h (bpstat_stop_status): Add parameter names.
5274
52752002-08-16  Grace Sainsbury  <graces@redhat.com>
5276
5277	* remote.c (remote_insert_hw_breakpoint)
5278	(remote_remove_hw_breakpoint): Fix calculation of length field
5279	for Z-packet.
5280
52812002-08-15  Michael Snyder  <msnyder@redhat.com>
5282
5283	* irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5284	(32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5285	(supply_fpregset): Ditto.
5286
5287	* config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5288	REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5289	MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5290	(TARGET_READ_SP): Delete.
5291	(DO_REGISTERS_INFO): Delete.
5292	(FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5293	Delete.
5294	(REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5295	from macros to functions.
5296
5297	* mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5298	(mips_register_convertible, mips_register_convert_to_virtual,
5299	mips_register_convert_to_raw): Make static.
5300	(mips_read_sp): New function.
5301	(mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5302	(mips_do_registers_info): Make static.
5303	(mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5304	(in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5305	(mips_register_convert_from_type, mips_register_convert_to_type):
5306	New functions.
5307	(mips_gdbarch_init): Set up function_start_offset,
5308	register_virtual_size, pc_in_sigtramp.
5309
53102002-08-15  Andrew Cagney  <ac131313@redhat.com>
5311
5312	* infcmd.c (vector_info): New function.
5313	(_initialize_infcmd): Add command "info vector".
5314	(print_vector_info): New function.
5315
5316	* gdbarch.sh (PRINT_VECTOR_INFO): New method
5317	* gdbarch.h, gdbarch.c: Regenerate.
5318
53192002-08-15  Andrew Cagney  <ac131313@redhat.com>
5320
5321	* infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5322	``print_all''.  Only print vector registers when ``print_all''.
5323
53242002-08-15  Andrew Cagney  <ac131313@redhat.com>
5325
5326	* i387-tdep.h (i387_print_float_info): Add `args' parameter.
5327	* i387-tdep.c (i387_print_float_info): Add `args' parameter.
5328
5329	* gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5330	Add `args' parameter.
5331	* gdbarch.h, gdbarch.c: Regenerate.
5332
5333	* arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5334
5335	* infcmd.c (float_info): Call print_float_info.
5336	(print_float_info): New function.  By default, print the
5337	floating-point registers.
5338
5339	* arch-utils.h (default_print_float_info): Delete declaration.
5340	* arch-utils.c (default_print_float_info): Delete function.
5341
53422002-08-16  Mark Kettenis  <kettenis@gnu.org>
5343
5344	* config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5345	out define.
5346
5347	* i387-tdep.c (i387_print_float_info): Add comment about ignoring
5348	FRAME.
5349
5350	* NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5351	* configure.host: Make i[3456]86-*-aix host obsolete.
5352	* configure.tgt: Make i[3456]86-*-aix target obsolete.
5353	* config/i386/i386aix.mh, config/i386/i386aix.mt,
5354	config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5355	config/i386/xm-i386aix.h: Make files obsolete.
5356	* i386aix-nat.c: Make file obsolete.
5357	* Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5358	(i386aix-nat.o): Make target obsolete.
5359
5360	* config/i386/nm-gnu.h: Removed.
5361	* config/i386/nm-i386gnu.h: New file.
5362	(THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5363	THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5364	Moved here from ...
5365	* config/i386/tm-i386gnu.h: ... here.  Removed.
5366	* config/i386/xm-i386gnu.h: Removed.
5367	* config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5368	(NAT_FILE): Set to nm-i386gnu.h.
5369	* config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5370	* i386-tdep.c: New file.
5371	* Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5372	(i386gnu-tdep.o): Specify dependencies.
5373
53742002-08-15  Mark Kettenis  <kettenis@gnu.org>
5375
5376	* config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5377	"i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5378	Adjust a few comments to reflect reality a bit closer.
5379	(KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5380	TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5381	HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5382	target_insert_watchpoint, target_remove_watchpoint):
5383	Move defines to ...
5384	* config/i386/nm-i386sco5.h: ... here.
5385	(kernel_u_size): Add prototype.  Improve a few comments and add
5386	protection against multiple inclusion.
5387
5388	* config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5389	out define.
5390
5391	* uw-thread.c (SP_ARG0): Define if not already defined.
5392	* config/i386/tm-i386.h (SO_ARG0): Remove define.
5393
5394	* config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5395
5396	* config/i386/tm-i386.h: Don't include "regcache.h".
5397
5398	* i387-tdep.h (i387_print_float_info): New prototype.
5399	* i387-tdep.c (print_i387_value, print_i387_ext,
5400	print_i387_status_word, print_i387_control_word): Add `struct
5401	ui_file *' argument and use it for output.
5402	(i387_print_float_info): Renamed from i387_float_info.  Add
5403	`struct gdbarch *' and `struct ui_file *' arguments and use the
5404	latter for output.
5405	* i386-tdep.c: Include "i387-tdep.h".
5406	(i386_gdbarch_init): Set print_float_info.
5407	* config/i386/tm-i386.h (i387_float_info): Remove prototype.
5408	(FLOAT_INFO): Remove define.
5409
54102002-08-13  Michael Snyder  <msnyder@redhat.com>
5411
5412	* mips-tdep.c (mips_push_arguments): Rename to
5413	mips_eabi_push_arguments, and tune for EABI.
5414	(MIPS_REGS_HAVE_HOME_P): Delete.
5415	(struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5416	(mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5417	Delete references to mips_regs_have_home_p.
5418
54192002-08-14  Keith Seitz  <keiths@redhat.com>
5420
5421	* Makefile.in (install-gdbtk): Create insight plugin directory.
5422	Install plugins.tcl file.
5423
54242002-08-14  Keith Seitz  <keiths@redhat.com>
5425
5426	* configure.in: Move SUBDIRS to near top of the file so that
5427	--enable options may add things to it.
5428	If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5429	* configure: Regenerate.
5430
54312002-08-13  Michael Snyder  <msnyder@redhat.com>
5432
5433	* mips-tdep.c (mips_o32o64_push_arguments):  New function,
5434	cloned from mips_push_arguments, tuned for o32/o64 ABI.
5435	(mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5436
54372002-08-13  Andrew Cagney  <ac131313@redhat.com>
5438
5439	* vax-tdep.c (vax_get_saved_register): Delete function.
5440	(vax_gdbarch_init): Update.
5441	* ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5442	(ns32k_gdbarch_init): Update.
5443	* alpha-tdep.c (alpha_get_saved_register): Delete function.
5444	(alpha_gdbarch_init): Update.
5445
54462002-08-13  Andrew Cagney  <cagney@redhat.com>
5447
5448	* regcache.c (init_regcache_descr): Overallocate the
5449	raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5450	(registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5451	nr_raw_registers.
5452	(set_register_cached): Add range checking assertions.  Use
5453	current_regcache.
5454
54552002-08-13  Mark Kettenis  <kettenis@gnu.org>
5456
5457	* i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5458	numbers for MMX registers.
5459
54602002-08-13  Andrew Cagney  <cagney@redhat.com>
5461
5462	* i386-tdep.c (i386_gdbarch_init): Use
5463	generic_unwind_get_saved_register.
5464
54652002-08-13  Kevin Buettner  <kevinb@redhat.com>
5466
5467	* procfs.c (procfs_can_use_hw_breakpoint): New function.
5468	(init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5469	target vector.
5470	* config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5471	Delete.  Add comment regarding this now-deleted target method.
5472
54732002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5474
5475	* m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5476	(M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5477	(m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5478	real PC and the page number (if it's within the memory bank window).
5479	(m68hc11_pseudo_register_write): Likewise when saving.
5480	(m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5481	(m68hc11_register_virtual_type): Return uint32 for virtual pc.
5482	(m68hc11_register_raw_size): And use 32-bit for it.
5483	(m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5484	16K memory bank is used by the prog; also use the virtual pc.
5485
54862002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5487
5488	* m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5489	(m68hc11_gdbarch_init): Install it in gdbarch.
5490	(MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5491	(MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5492	(MSYMBOL_SIZE): New for documentation.
5493	(insn_return_kind): Enum to specify how a function returns.
5494	(frame_extra_info): Cleanup and record the return mode.
5495	(gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5496	register in address computation.
5497	(m68hc11_get_return_insn): New to obtain the return instruction used
5498	by the function.
5499	(m68hc11_frame_init_saved_regs): Take into account the return
5500	instruction used by the function for far and interrupt functions.
5501	(m68hc11_init_extra_frame_info): Take into account page register.
5502	(m68hc11_frame_args_address): Adjust according to the return mode.
5503	(show_regs): Print page register only when it's used.
5504
55052002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5506
5507	* m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5508	(M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5509	(m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5510	registers.
5511	(m68hc11_register_raw_size): Likewise.
5512
55132002-08-13  Andrew Cagney  <cagney@redhat.com>
5514
5515	* i386-tdep.c (i386_register_name): Handle mmx registers.
5516	(mmx_regnum_p): New function.
5517	(i386_mmx_names): New array.
5518	(mmx_num_regs): New variable.
5519	(i386_pseudo_register_read): New function.
5520	(i386_pseudo_register_write): New function.
5521	(mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5522
5523	* regcache.c (regcache_raw_read_unsigned): New function.
5524	(regcache_raw_read_signed): New function.
5525	* regcache.h (regcache_raw_read_unsigned): Declare.
5526	(regcache_raw_read_signed): Declare.
5527
55282002-08-13  Andrew Cagney  <cagney@redhat.com>
5529
5530	* regcache.c (regcache_raw_read_as_address): Delete function.
5531	(regcache_cooked_read_signed): New function.
5532	(regcache_cooked_read_unsigned): New function.
5533	* regcache.h (regcache_cooked_read_signed): Declare.
5534	(regcache_cooked_read_unsigned): Declare.
5535	(regcache_raw_read_as_address): Delete declaration.
5536
5537	* blockframe.c (generic_read_register_dummy): Use
5538	regcache_cooked_read_unsigned.
5539	* i386-tdep.c (i386_extract_struct_value_address): Use
5540	regcache_cooked_read_unsigned.
5541
55422002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5543
5544	* m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5545	double sizes according to ELF ABI flags.
5546	(gdbarch_tdep): Record elf_flags.
5547
55482002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5549
5550	* m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5551	(m6812_prolog): They can appear in 68HC12 function prologue.
5552	(m68hc11_frame_chain): Cleanup.
5553
55542002-08-12  Andrew Cagney  <cagney@redhat.com>
5555
5556	* i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5557	declarations.
5558	* i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5559	(i386_linux_register_raw_size): Delete function.
5560	(i386_linux_init_abi): Update.
5561	* i386-tdep.c (i386_register_raw_size): Delete function.
5562	(i386_register_byte): Delete function.
5563	(i386_gdbarch_init): Update.
5564	(i386_register_size): Delete array.
5565	(i386_register_offset): Delete array.
5566
5567	* config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5568	(REGISTER_RAW_SIZE): Delete macro.
5569	* config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5570	(REGISTER_BYTE): Delete macro.
5571
55722002-08-11  Aidan Skinner <aidan@velvet.net>
5573
5574	* ada-lang.c (ada_lookup_partial_symbol)
5575	(to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5576	prototype names so that grep ^func works properly.
5577
5578	* ada-lang.c (ada_array_element_type)
5579	(ada_lookup_partial_symbol): Fix typos in parameter list.
5580
5581	* ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5582	Fix prototype names so that grep ^func works properly.
5583
55842002-08-10  Andrew Cagney  <cagney@redhat.com>
5585	    Elena Zannoni  <ezannoni@redhat.com>
5586	    Martin M. Hunt  <hunt@redhat.com>
5587
5588	* gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5589	(build_builtin_type_vec128i): Set the vector bit.
5590	* gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5591	* gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5592	(build_builtin_type_vec64): New function.
5593	(build_builtin_type_vec64i): New function.
5594	(build_gdbtypes): Initialize builtin_type_vec64 and
5595	builtin_type_vec64i.
5596
55972002-08-09  Andrew Cagney  <cagney@redhat.com>
5598
5599	* regcache.c (regcache_dump): Compare the register offset
5600	with REGISTER_BYTE.
5601	* arch-utils.c (generic_register_byte): New function.
5602	* arch-utils.h (generic_register_byte): Declare.
5603	* gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5604	* gdbarch.h, gdbarch.c: Regenerate.
5605
56062002-08-09  Andrew Cagney  <cagney@redhat.com>
5607
5608	* regcache.c: Include "gdbcmd.h"
5609	(_initialize_regcache): Add commands "maintenance print
5610	registers", "maintenance print raw-registers" and "maintenance
5611	print cooked-registers".
5612	(enum regcache_dump_what): Define.
5613	(dump_endian_bytes): New function.
5614	(regcache_dump): New function.
5615	(regcache_print): New function.
5616	(maintenance_print_registers): New function.
5617	(maintenance_print_raw_registers): New function.
5618	(maintenance_print_cooked_registers): New function.
5619	* Makefile.in (regcache.o): Update dependencies.
5620
56212002-08-09  Michael Snyder  <msnyder@redhat.com>
5622
5623	* mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5624	(mips_push_arguments): Correct some comments.  Use paddr_nz
5625	for printing addresses in debug output.  Replace static
5626	allocation using MAX_REGISTER_RAW_SIZE with alloca.
5627	(mips_n32n64_push_arguments): New function, cloned from
5628	mips_push_arguments and tuned for the n32/n64 ABI.
5629	(mips_push_register): Buffer needs dynamic allocation.
5630	(mips_print_register): Ditto.
5631	(do_gp_register_row): Ditto.
5632	(mips_store_return_value): Ditto.
5633	(mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5634
56352002-08-09  Don Howard  <dhoward@redhat.com>
5636
5637	* memattr.c (mem_info_command): Print special case of upper bound
5638	as max CORE_ADDR + 1.
5639
56402002-08-08  Michael Snyder  <msnyder@redhat.com>
5641
5642	* mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5643	returns structs by ref if they're too big to fit in two registers.
5644
56452002-08-09  Kevin Buettner  <kevinb@redhat.com>
5646
5647	* mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5648	saved regs value.
5649	(read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5650	mips_find_saved_regs().
5651	(mips_pop_frame): Likewise.
5652
56532002-08-09  Kevin Buettner  <kevinb@redhat.com>
5654
5655	* blockframe.c (frame_saved_regs_register_unwind): Revise
5656	PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5657	frames are in use.
5658
56592002-08-09  Grace Sainsbury  <graces@redhat.com>
5660
5661	* remote.c: (remote_wait, remote_async_wait): Add check for awatch
5662        T-packets; the 'a' is not taken as a register number.
5663	(remote_check_watch_resources, remote_stopped_by_watchpoint)
5664        (remote_stopped_data_address): New functions; add to target
5665        vector.
5666        (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5667        prototypes to match other implementations of this
5668        function. replace integer argument with pointer -- the length
5669        field in the Z-packet is the length of what is pointed to or 1 if
5670        pointer is null. Add to target vector.
5671        (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5672        target vector.
5673
5674        From Mark Salter:
5675        * remote.c (remote_wait): Add support to extract optional
5676        watchpoint information from T-packet. Ignore unrecognized
5677        optional info in T-packet.
5678        (remote_async_wait): Ditto.
5679
56802002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5681
5682	* cli/cli-dump.c: Change fopen modes to use binary open modes
5683	as defined in include/fopen-bin.h throughout.
5684
56852002-08-08  Michael Snyder  <msnyder@redhat.com>
5686
5687	* mips-tdep.c: Minor whitespace and indentation clean-ups.
5688
56892002-08-08  Kevin Buettner  <kevinb@redhat.com>
5690
5691	* doublest.c (store_floating): Avoid floatformat_from_doublest()
5692	assertion failure by returning early after a warning.
5693
56942002-08-08  Kevin Buettner  <kevinb@redhat.com>
5695
5696	* mips-tdep.c (mips_find_saved_regs): Make static.
5697	(mips_frame_init_saved_regs): New function.
5698	(mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5699	* config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5700	(mips_find_saved_regs): Delete declaration.
5701
57022002-08-08  Grace Sainsbury  <graces@redhat.com>
5703
5704	* remote.c (remote_wait, remote_async_wait): Change
5705        thread_num from int to ULONGEST.
5706	(unpack_varlen_hex): Change result parameter from
5707	int * to ULONGEST *.
5708
57092002-08-08  Andrew Cagney  <ac131313@redhat.com>
5710
5711	* configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5712	powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5713	powerpc*-*-*.
5714	* MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5715
57162002-08-08  Andrew Cagney  <cagney@redhat.com>
5717
5718	* gcore.c (override_derive_stack_segment): Delete variable.
5719	(preempt_derive_stack_segment): Delete function.
5720	(derive_stack_segment): Delete function.
5721	(default_derive_stack_segment): Renamed to derive_stack_segment.
5722	(override_derive_heap_segment): Delete variable.
5723	(preempt_derive_heap_segment): Delete function.
5724	(derive_heap_segment): Delete function.
5725	(default_derive_heap_segment): Rename to derive_heap_segment.
5726
57272002-08-06  Michael Snyder  <msnyder@redhat.com>
5728
5729	* config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5730	* mips-tdep.c (mips_EABI_use_struct_convention,
5731	mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5732	New functions.  (mips_use_struct_convention): Delete.
5733	(mips_gdbarch_init): set use_gdbarch_convention.
5734
57352002-08-06  Michael Snyder  <msnyder@redhat.com>
5736
5737	*  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5738	(mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5739	mips_o32_reg_struct_has_addr): New functions.
5740	(mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5741
57422002-08-07  Andrew Cagney  <ac131313@redhat.com>
5743
5744	* regcache.c (pseudo_register): Delete function.
5745	(fetch_register): Delete function.
5746	(store_register): Delete function.
5747	(regcache_raw_read, legacy_read_register_gen): Use
5748	target_fetch_registers instead of fetch_register.
5749	(legacy_write_register_gen, regcache_raw_write): Use
5750	target_store_register instead of store_register.
5751	(write_register_bytes): Ditto.
5752
5753	* gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5754	(STORE_PSEUDO_REGISTER): Delete.
5755	* gdbarch.h, gdbarch.c: Regenerate.
5756
57572002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5758
5759	* cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5760	write dump file binary.
5761
57622002-08-05  Michael Snyder  <msnyder@redhat.com>
5763
5764	*  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5765	to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5766	(mips_gdbarch_init): Set N32 target to be mips64.
5767
57682002-08-06  Kevin Buettner  <kevinb@redhat.com>
5769
5770	* frame.c (find_saved_register): Break out of loop once saved
5771	register address is found.  Don't mention sparc in loop comment
5772	anymore.
5773
57742002-08-06  Kevin Buettner  <kevinb@redhat.com>
5775
5776	* mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5777	mips_default_saved_regsize to 8.
5778
57792002-08-06  Andrew Cagney  <ac131313@redhat.com>
5780
5781	* gcore.c: Do not include <sys/procfs.h>.
5782	* Makefile.in (gcore.o): Update dependencies.
5783
57842002-08-06  Andrew Cagney  <cagney@redhat.com>
5785
5786	* configure.tgt: Make arc-*-* obsolete.
5787	* NEWS: Mention that arc-*-* has been identifed as obsolete.
5788	* MAINTAINERS: Make arc-elf obsolete.
5789	* arc-tdep.c: Make file obsolete.
5790	* config/arc/arc.mt: Ditto.
5791	* config/arc/tm-arc.h: Ditto.
5792
57932002-08-05  Theodore A. Roth  <troth@verinet.com>
5794
5795	* avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5796
57972002-08-05  Andrew Cagney  <ac131313@redhat.com>
5798
5799	* mcore-tdep.c (mcore_gdbarch_init): Use
5800	generic_unwind_get_saved_register instead of
5801	generic_get_saved_register.
5802	* v850-tdep.c (v850_gdbarch_init): Ditto.
5803	* frv-tdep.c (frv_gdbarch_init): Ditto.
5804	* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5805	* s390-tdep.c (s390_gdbarch_init): Ditto.
5806	* d10v-tdep.c (d10v_gdbarch_init): Ditto.
5807	* config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5808	* config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5809
58102002-08-05  Joel Brobecker  <brobecker@gnat.com>
5811
5812	* objfiles.h: Add missing #include "symfile.h"
5813
5814	* Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5815
58162002-08-04  Andrew Cagney  <ac131313@redhat.com>
5817
5818	From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5819	* hpread.c (hpread_read_struct_type): Deleted superfluous setting
5820	of FIELD_BITSIZE.
5821
58222002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5823
5824	* NEWS: Cleanup and nitpick.
5825
58262002-08-03  Andrew Cagney  <ac131313@redhat.com>
5827
5828	* NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5829
58302002-08-03  Andrew Cagney  <ac131313@redhat.com>
5831
5832	* Makefile.in (gdbtk-bp.o): Update dependencies.
5833	(gdbtk-register.o): Ditto.
5834	(gdbtk-varobj.o): Ditto.
5835
58362002-08-03  Andrew Cagney  <cagney@redhat.com>
5837
5838	* m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5839	m68hc11_fetch_pseudo_register.
5840	(m68hc11_pseudo_register_write): Replace
5841	m68hc11_store_pseudo_register.
5842	(m68hc11_gdbarch_init): Update.
5843
5844Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5845
5846	* gdbarch.sh: Include "gdb_string.h".
5847	* gdbarch.c: Regenerate.
5848
5849	* regcache.c: Include "gdb_string.h".
5850	* ax-general.c: Ditto.
5851	* varobj.c: Ditto.
5852	* std-regs.c: Ditto.
5853	* fbsd-proc.c: Ditto.
5854	* thread.c: Ditto.
5855
5856	* Makefile.in (regcache.o): Update dependencies.
5857	(thread.o, gdbarch.o): Ditto.
5858	(ax-general.o, gdbarch.o): Ditto.
5859	(varobj.o, std-regs.o): Ditto.
5860	(fbsd-proc.o): Specify dependencies.
5861
58622002-08-02  Andrew Cagney  <cagney@redhat.com>
5863
5864	* regcache.c (regcache_cooked_read): Rename rawnum parameter to
5865	regnum.
5866	(regcache_cooked_write): Ditto.
5867
58682002-08-02  Andrew Cagney  <ac131313@redhat.com>
5869
5870	* regcache.c (regcache_cooked_read): New function.
5871	(regcache_cooked_write): New function.
5872	(read_register_gen): Rewrite using regcache_cooked_read.
5873	(write_register_gen): Rewrite using regcache_cooked_write.
5874
5875	* regcache.h (regcache_cooked_read, regcache_cooked_write):
5876	Declare.
5877
58782002-08-02  Andrew Cagney  <cagney@redhat.com>
5879
5880	* gdbarch.sh (pseudo_register_read, pseudo_register_write):
5881	Replace the architecture methods register_read and register_write.
5882	* gdbarch.h, gdbarch.c: Regenerate.
5883	* regcache.c (init_regcache_descr): Update.
5884	(read_register_gen): Update.
5885	(write_register_gen): Update.
5886	(supply_register): Update comment.
5887
5888	* sh-tdep.c (sh_gdbarch_init): Update.
5889	(sh_pseudo_register_read, sh64_pseudo_register_read): Add
5890	`regcache' and `gdbarch' parameters.  Make `buffer' a void
5891	pointer.  Update code.
5892	(sh_pseudo_register_write, sh64_pseudo_register_write): Add
5893	`regcache' and `gdbarch' parameters.  Make `buffer' a constant
5894	void pointer.  Update code.
5895	(sh64_register_write): Delete.
5896	(sh4_register_read): Delete.
5897	(sh64_register_read): Delete.
5898	(sh4_register_write): Delete.
5899	(sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5900	void pointer, `to' parameter a void pointer.
5901	(sh_sh64_register_convert_to_raw): Ditto.
5902
59032002-08-01  Kevin Buettner  <kevinb@redhat.com>
5904
5905	* mips-tdep.c (mips_register_virtual_type): Use architecture
5906	invariant return values.
5907
59082002-08-01  Andrew Cagney  <cagney@redhat.com>
5909
5910	* linux-proc.c: Include "gdb_string.h".
5911	* Makefile.in (linux-proc.o): Update dependency list.
5912
59132002-08-01  Kevin Buettner  <kevinb@redhat.com>
5914
5915	* mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5916	comment.
5917
59182002-08-01  Grace Sainsbury  <graces@redhat.com>
5919
5920	* target.h: Add 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 to
5924	target vecctor. Define their corresponding macros so they call
5925	them.
5926
5927	* target.c: Add default and debug versions of for
5928	to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5929	to_insert_watchpoint, to_remove_watchpoint,
5930	to_stopped_by_watchpoint, to_stopped_data_address,
5931	to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5932
59332002-08-01  Kevin Buettner  <kevinb@redhat.com>
5934
5935	* mips-tdep.c (mips_register_virtual_type): New function.
5936	(mips_gdbarch_init): Register mips_register_virtual_type()
5937	with gdbarch machinery.
5938	* config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5939	this file instead of tm-bigmips.h.
5940	(MIPS_REGSIZE): Delete this macro.
5941	(REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5942	multiarch version in mips-tdep.c will be found.
5943
59442002-08-01  Andrew Cagney  <cagney@redhat.com>
5945
5946	* NEWS: Menion that CHILL has been made obsolete.
5947
5948	* gdbtypes.c (chill_varying_type): Make chill references obsolete.
5949	* stabsread.c (read_range_type): Ditto.
5950	* gdbtypes.h: Ditto.
5951	* language.c (binop_type_check): Ditto.
5952	(binop_result_type): Ditto.
5953	(integral_type): Ditto.
5954	(character_type): Ditto.
5955	(string_type): Ditto.
5956	(boolean_type): Ditto.
5957	(structured_type): Ditto.
5958	(lang_bool_type): Ditto.
5959	(binop_type_check): Ditto.
5960	* language.h (_LANG_chill): Ditto.
5961	* dwarfread.c (set_cu_language): Ditto.
5962	* dwarfread.c (CHILL_PRODUCER): Ditto.
5963	* dwarfread.c (handle_producer): Ditto.
5964	* expression.h (enum exp_opcode): Ditto.
5965	* eval.c: Ditto for comments.
5966	* typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5967	* expprint.c (print_subexp): Ditto.
5968	(print_subexp): Ditto.
5969	* valops.c (value_cast): Ditto.
5970	(search_struct_field): Ditto.
5971	* value.h (COERCE_VARYING_ARRAY): Ditto.
5972	* symfile.c (init_filename_language_table): Ditto.
5973	(add_psymbol_with_dem_name_to_list): Ditto.
5974	* valarith.c (value_binop): Ditto.
5975	(value_neg): Ditto.
5976	* valops.c (value_slice): Ditto.
5977	* symtab.h (union language_specific): Ditto.
5978	(SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5979	(SYMBOL_DEMANGLED_NAME): Ditto.
5980	(SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5981	* defs.h (enum language): Ditto.
5982	* symtab.c (got_symtab): Ditto.
5983	* utils.c (fprintf_symbol_filtered): Ditto.
5984
5985	* ch-typeprint.c: Make file obsolete.
5986	* ch-valprint.c: Make file obsolete.
5987	* ch-lang.h: Make file obsolete.
5988	* ch-exp.c: Make file obsolete.
5989	* ch-lang.c: Make file obsolete.
5990
5991	* Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5992	CHILL_LIB.
5993	(TARGET_FLAGS_TO_PASS): Ditto.
5994	(CHILLFLAGS): Obsolete.
5995	(CHILL): Obsolete.
5996	(CHILL_FOR_TARGET): Obsolete.
5997	(CHILL_LIB): Obsolete.
5998	(SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5999	ch-valprint.c.
6000	(HFILES_NO_SRCDIR): Remove ch-lang.h.
6001	(COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6002	ch-lang.o.
6003	(ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6004	targets.
6005
60062002-07-31  Joel Brobecker  <brobecker@gnat.com>
6007
6008	* dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6009	This does not change anything at the moment, but will be helpful
6010	later when full Ada support is integrated.
6011
60122002-07-31  Kevin Buettner  <kevinb@redhat.com>
6013
6014	* mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6015	help message.
6016
60172002-07-31  Kevin Buettner  <kevinb@redhat.com>
6018
6019	* mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6020	and save it in a local variable.  Use variable in later test.
6021
60222002-07-31  Kevin Buettner  <kevinb@redhat.com>
6023
6024	* mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6025	test.  (Thanks to Daniel Jacobowitz.)
6026
60272002-07-31  Kevin Buettner  <kevinb@redhat.com>
6028
6029	* mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6030	(mips_abi_strings): Add "n64".
6031	(mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6032
60332002-07-31  Kevin Buettner  <kevinb@redhat.com>
6034
6035	* config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6036	(REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6037
60382002-07-31  Kevin Buettner  <kevinb@redhat.com>
6039
6040	* utils.c (host_pointer_to_address, address_to_host_pointer):
6041	Use gdb_assert() instead of explicit call to internal_error().
6042
60432002-07-30  Kevin Buettner  <kevinb@redhat.com>
6044
6045	* Makefile.in (rs6000-nat.o): Update dependencies.
6046
6047	From Nicholas Duffek:
6048	* Makefile.in (ALLDEPFILES): Add aix-thread.c.
6049	(aix-thread.o): New rule.
6050	* configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6051	* config/powerpc/aix432.mh: New file.
6052
60532002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6054
6055	* ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6056	(ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6057	(fetch_core_registers, ppc_linux_supply_gregset)
6058	(ppc_linux_supply_fpregset): New functions.
6059	(ppc_linux_regset_core_fns): New.
6060	(_initialize_ppc_linux_tdep): Call add_core_fns.
6061	* ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6062	and ppc_linux_supply_gregset.
6063	* ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6064	(supply_fpregset): Call ppc_linux_supply_fpregset.
6065	* config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6066	corelow.o.
6067	* config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6068
60692002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6070
6071	* symtab.c (lookup_symbol): Demangle before lowercasing.
6072
60732002-07-30  Andrew Cagney  <ac131313@redhat.com>
6074
6075	* symtab.h: Replace #include "gdb_obstack.h" with opaque
6076	declaration.
6077	* cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6078	* gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6079	* avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6080	* arch-utils.c, cli/cli-setshow.c: Unconditionally include
6081	"gdb_string.h".
6082	* Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6083	(gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6084	(cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6085	(avr-tdep.o, mon960-rom.o): Ditto.
6086	(aout_stabs_gnu_h): Define.
6087	(symtab_h): Remove $(gdb_obstack_h).
6088
60892002-07-30  Jim Blandy  <jimb@redhat.com>
6090
6091	Patch from David Carlton <carlton@math.stanford.edu>:
6092	* gdbinit.in: Move the `dir' commands that add GDB's own source
6093	directory to the search path to the end, so that the `gdb' source
6094	directory will be searched first.
6095
60962002-07-29  Andrew Cagney  <ac131313@redhat.com>
6097
6098	* gdb_obstack.h: New file.
6099	* symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6100	(obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6101	* objfiles.h: Include "gdb_obstack.h".
6102	* Makefile.in (gdb_obstack_h): Define.
6103	(symtab_h): Add $(gdb_obstack_h).
6104	(objfiles_h): Add $(gdb_obstack_h).
6105
6106	* objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6107	* macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6108	* ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6109	* macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6110	* symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6111	* p-valprint.c, symmisc.c, typeprint.c: Ditto.
6112	* symfile.c, coffread.c, c-typeprint.c: Ditto.
6113	* buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6114
6115	* Makefile.in (bcache.o): Update dependencies.
6116	(buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6117	(ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6118	(dbxread.o, dstread.o, f-typeprint.o): Ditto.
6119	(objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6120	(stabsread.o, symfile.o, symmisc.o): Ditto.
6121	(symtab.o, typeprint.o, macroexp.o): Ditto.
6122	(macrotab.o, mdebugread.o): Ditto.
6123	(f_lang_h, coff_sym_h, coff_symconst_h): Define.
6124	(coff_ecoff_h, aout_aout64_h): Define.
6125	(aout_stabs_gnu_h, libaout_h): Define.
6126
61272002-07-29  Andrew Cagney  <cagney@redhat.com>
6128
6129	* regcache.c (struct regcache_descr): Rename nr_registers to
6130	nr_cooked_registers.  Revise comments describing the structure
6131	member fields.
6132	(init_regcache_descr): Update.
6133	(init_legacy_regcache_descr): Update.
6134	(read_register_gen, write_register_gen): When a cooked register in
6135	the raw register range, directly access the value from the raw
6136	register cache.
6137
61382002-07-29  Andrew Cagney  <ac131313@redhat.com>
6139
6140	* z8k-tdep.c: Do not include "obstack.h".
6141	* h8300-tdep.c, h8500-tdep.c: Ditto.
6142	* m68hc11-tdep.c, sh-tdep.c: Ditto.
6143	* valprint.c, v850-tdep.c: Ditto.
6144	* d10v-tdep.c, mn10300-tdep.c: Ditto.
6145	* mn10200-tdep.c: Ditto.
6146
6147	* Makefile.in (z8k-tdep.o): Update dependencies.
6148	(m68hc11-tdep.o, valprint.o): Ditto.
6149	(v850-tdep.o, d10v-tdep.o): Ditto.
6150	(mn10300-tdep.o, sparc-tdep.o): Ditto.
6151	(sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6152	(m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6153	(sh_opc_h, gdb_sim_sh_h): Define.
6154	(elf_sh_h, elf_bfd_h): Define.
6155	(opcode_m68hc11_h): Define.
6156	(OPCODES_SRC, OPCODES_DIR): define.
6157	(OPCODES): Use $(OPCODES_DIR).
6158	(gdb_sim_d10v_h): Rename sim_d10v_h.
6159	(gdb_sim_arm_h): Rename sim_arm_h.
6160
61612002-07-26  Kevin Buettner  <kevinb@redhat.com>
6162
6163	* utils.c (host_pointer_to_address, address_to_host_pointer):
6164	Change internal_error() message to indicate function responsible
6165	for the error.
6166
61672002-07-26  Kevin Buettner  <kevinb@redhat.com>
6168
6169	* ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6170	calls to local_hex_string_custom().
6171
61722002-07-26  Kevin Buettner  <kevinb@redhat.com>
6173
6174	* irix5-nat.c: Move IRIX shared library support from here...
6175	* solib-irix.c: ...to here.  Revised substantially to work with
6176	generic solib framework.
6177
6178	* osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6179	* osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6180	* mips-irix-tdep.c: New file.
6181
6182	* Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6183	(mips-irix-tdep.o, solib-irix.o): New rules.
6184	* config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6185	solib-irix.o.
6186	* config/mips/irix6.mt (TDEPFILES): Likewise.
6187	* config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6188
61892002-07-26  Kevin Buettner  <kevinb@redhat.com>
6190
6191	* aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6192	disabled (via ``#if 0'') includes.
6193
61942002-07-26  Kevin Buettner  <kevinb@redhat.com>
6195
6196	* aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6197	(fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6198	(fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6199	Add support for the fpscr register.
6200	* rs6000-nat.c (regmap, fetch_inferior_registers)
6201	(store_inferior_registers, fetch_core_registers): Likewise.
6202
62032002-07-26  Kevin Buettner  <kevinb@redhat.com>
6204
6205	* rs6000-nat.c (language.h): Include.
6206	(special_regs): Delete this array.
6207	(regmap): New function.
6208	(fetch_register, store_register):  Use regmap() to map gdb
6209	register numbers to ptrace register numbers.  Also, use
6210	outputs from regmap() to make decisions regarding type of
6211	ptrace() call to make.  In particular, don't compare against
6212	FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6213	(fetch_inferior_registers, store_inferior_registers): Where
6214	possible, obtain register numbers from tdep struct.  Don't
6215	refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6216	* config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6217	(LAST_UISA_SP_REGNUM): Delete.
6218
62192002-07-25  Kevin Buettner  <kevinb@redhat.com>
6220
6221	* rs6000-nat.c (ppc-tdep.h): Include.
6222	(fetch_registers, store_register, fetch_core_registers): Don't
6223	access registers[] directly.  Instead, use supply_register() or
6224	regcache_collect() as appropriate.
6225	(find_toc_address): Format hex address with local_hex_string().
6226
62272002-07-25  Andrew Cagney  <ac131313@redhat.com>
6228
6229	* config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6230	bfd/elf32-frv.c.
6231
62322002-07-24  Tom Tromey  <tromey@redhat.com>
6233
6234	* jv-exp.y: Marked all strings with _().
6235	(ClassInstanceCreationExpression, ArrayCreationExpression): Use
6236	internal_error.
6237	(MethodInvocation, CastExpression, parse_number, yyerror,
6238	java_type_from_name, push_expression_name, yylex): Typo fixes.
6239
62402002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6241
6242	* ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6243	(tee_file_flush, tee_file_write, tee_file_fputs)
6244	(tee_file_isatty): New.
6245	* ui-file.h (tee_file_new): Add prototype.
6246
62472002-07-24  Aidan Skinner <aidan@velvet.net>
6248
6249	* ada-lang.c: Change k&r style function definitions to prototyped
6250	form.
6251	* ada-typeprint.c: Change k&r style function definitions to prototyped
6252	form.
6253	* ada-valprint.c: Change k&r style function definitions to prototyped
6254	form.
6255
62562002-07-24  Andrew Cagney  <cagney@redhat.com>
6257
6258	* README: Remove reference to remote-bug.
6259	* Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6260	remote-bug.c.
6261	(m88k-nat.o): Delete rule.
6262	(m88k-tdep.o): Delete rule.
6263	(remote-bug.o): Delete rule.
6264	* MAINTAINERS: Mark as obsolete.
6265	* elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6266	* m88k-tdep.c: Make file obsolete.
6267	* config/m88k/m88k.mh: Ditto.
6268	* config/m88k/delta88v4.mh: Ditto.
6269	* config/m88k/delta88v4.mt: Ditto.
6270	* config/m88k/delta88.mt: Ditto.
6271	* config/m88k/delta88.mh: Ditto.
6272	* remote-bug.c: Ditto.
6273	* config/m88k/tm-delta88.h: Ditto.
6274	* config/m88k/nm-delta88v4.h: Ditto.
6275	* config/m88k/xm-delta88.h: Ditto.
6276	* config/m88k/xm-dgux.h: Ditto.
6277	* config/m88k/tm-m88k.h: Ditto.
6278	* config/m88k/nm-m88k.h: Ditto.
6279	* config/m88k/tm-delta88v4.h: Ditto.
6280	* m88k-nat.c: Ditto.
6281	* cxux-nat.c: Ditto.
6282	* configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6283	and m88*-*-* obsolete.
6284	* configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6285	m88*-*-* obsolete.
6286
62872002-07-24  Andrew Cagney  <cagney@redhat.com>
6288
6289	* findvar.c (extract_unsigned_integer): Make `addr' parameter
6290	constant.  Same for local pointer variables.
6291	(extract_signed_integer): Ditto.
6292	* defs.h (extract_unsigned_integer): Update.
6293	(extract_signed_integer): Update.
6294
62952002-07-24  Andrew Cagney  <cagney@redhat.com>
6296
6297	* regcache.c (regcache_raw_write): Change buf parameter to a
6298	constant void pointer.
6299	(regcache_raw_read): Change buf parameter to a void pointer.
6300	(legacy_write_register_gen): Change myaddr parameter a constant
6301	void pointer.
6302	(supply_register): Change val parameter to a const void pointer.
6303	* regcache.h (regcache_raw_write): Update declaration.
6304	(regcache_raw_read): Update declaration.
6305	(supply_register): Update declaration.
6306
63072002-07-24  Tom Tromey  <tromey@redhat.com>
6308
6309	* defs.h (gdb_readline_wrapper): Declare.
6310	* utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6311	* tracepoint.c (read_actions): Use gdb_readline_wrapper.
6312	* top.c (gdb_readline_wrapper): New function.
6313	(command_line_input): Use it.
6314
63152002-07-24  Andrew Cagney  <cagney@redhat.com>
6316
6317	* regcache.h (regcache_raw_read, regcache_raw_write): Replace
6318	regcache_read and regcache_write.
6319	(regcache_raw_read_as_address): Replace regcache_read_as_address.
6320	* regcache.c: Update.
6321	* sh-tdep.c (sh64_push_arguments): Update comment.
6322	(sh_pseudo_register_read): Update.
6323	(sh_pseudo_register_write): Update.
6324	(sh4_register_read): Update.
6325	(sh4_register_write): Update.
6326	(sh64_pseudo_register_read): Update.
6327	(sh64_pseudo_register_write): Update.
6328	(sh64_register_read): Update.
6329	(sh64_register_write): Update.
6330	* i386-tdep.c (i386_extract_return_value): Update.
6331	(i386_extract_struct_value_address): Update.
6332	(i386_extract_return_value): Update.
6333	* blockframe.c (generic_read_register_dummy): Update.
6334	(generic_call_dummy_register_unwind): Update
6335	* infrun.c (write_inferior_status_register): Update.
6336
63372002-07-23  Jim Blandy  <jimb@redhat.com>
6338
6339	* parser-defs.h (expression_context_pc): Make this extern.
6340	(Thanks to Michael Snyder.)
6341
63422002-07-23  Andrew Cagney  <ac131313@redhat.com>
6343
6344	GDB 5.2.1 released from 5.2 branch.
6345	* NEWS: Mention changes in 5.2.1 including addition of AVR target.
6346	* README: Update to mention 5.2.1.
6347
63482002-07-23  Mark Salter  <msalter@redhat.com>
6349
6350	* remote.c (remote_read_bytes): Fix check for error.
6351
63522002-07-22  Kevin Buettner  <kevinb@redhat.com>
6353
6354	* aix-thread.c (language.h): Include.
6355	(ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6356	(pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6357	Print newlines at end of debug messages.
6358	(pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6359	(pdc_write_data): Use local_hex_string() instead of %llx formats.
6360
63612002-07-22  Kevin Buettner  <kevinb@redhat.com>
6362
6363	* aix-thread.c (ppc-tdep.h): Include.
6364	(special_register_p): New function.
6365	(supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6366	(store_regs_user_thread): Use register number information from
6367	gdbarch_tdep struct instead of hardcoded offsets relative to
6368	FIRST_UISA_SP_REGNUM.
6369	(fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6370	special_register_p() instead of using FPLAST_REGNUM and
6371	LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6372	register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6373	will be MQ's register number.
6374
63752002-07-22  Michael Snyder  <msnyder@redhat.com>
6376
6377	* aix-thread.c (ops): Rename to aix_thread_ops.
6378	(base_ops): Rename to base_target.
6379	(ops_attach): Rename to aix_thread_attach.
6380	(ops_detach): Rename to aix_thread_detach.
6381	(ops_resume): Rename to aix_thread_detach.
6382	(ops_wait):   Rename to aix_thread_wait.
6383	(ops_kill):   Rename to aix_thread_kill.
6384	(init_ops):   Rename to init_aix_thread_ops.
6385	(ops_fetch_register): Rename to aix_thread_fetch_register.
6386	(ops_store_register): Rename to aix_thread_store_register.
6387	(ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6388	(ops_thread_alive):   Rename to aix_thread_thread_alive.
6389	(ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6390	(ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6391	(ops_xfer_memory): Rename to aix_thread_xfer_memory.
6392	(fetch_regs_lib):  Rename to fetch_regs_user_thread.
6393	(fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6394	(store_regs_lib):  Rename to store_regs_user_thread.
6395	(store_regs_kern): Rename to store_regs_kernel_thread.
6396
63972002-07-22  Michael Snyder  <msnyder@redhat.com>
6398
6399	* aix-thread.c (ops_prepare_to_store): Eliminate.
6400	(init_ops): Don't initialize ops.prepare_to_store.
6401	(store_regs_kern): Pre-fetch register buffers from child,
6402	because some registers may not be in the cache.  Copy
6403	regs from register cache only if they are cached.
6404	(store_regs_lib): Copy regs from register cache only
6405	if they are cached.
6406	(fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6407	fill_gprs64): Ditto.
6408
64092002-07-22  Kevin Buettner  <kevinb@redhat.com>
6410
6411	* aix-thread.c (gdb_assert.h): Include.
6412	(fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6413	register sizes (from register cache) match size of buffer holding
6414	register data.
6415	(fill_sprs32): Change parameter types to match those in the ptrace()
6416	buffer.
6417	(store_regs_lib): Likewise, but for 32-bit temporary variables.
6418	(ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6419
64202002-07-22  Michael Snyder  <msnyder@redhat.com>
6421
6422	* aix-thread.c (supply_sprs64): Cosmetic change.
6423	(supply_sprs32): Cosmetic change.
6424	(fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6425	(fill_sprs64): Use regcache_collect instead of read_register.
6426	(store_regs_lib): Use regcache_collect instead of
6427	read_register.  Use fill_sprs32 instead of fill_sprs64,
6428	if debugging a 32-bit architecture.
6429	(store_regs_kern): Use fill_gprs64 etc. to pull the values
6430	out of the register cache, instead of passing a pointer into
6431	the register cache directly to ptrace.  Use regcache_collect
6432	insteaad of read_register.
6433	(ops_prepare_to_store): Use target_read_registers instead
6434	of read_register_bytes.
6435
64362002-07-20  Aidan Skinner <aidan@velvet.net>
6437
6438	* MAINTAINERS: Add self under write after approval.
6439
64402002-07-20  Aidan Skinner <aidan@velvet.net>
6441
6442	* ada-tasks.c: Change k&r style function definitions to prototyped
6443	form.
6444
64452002-07-19  Andrew Cagney  <ac131313@redhat.com>
6446
6447	* Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6448	* x86-64-tdep.c: Include "objfiles.h".
6449	(x86_64_gdbarch_init): Set in_solib_call_trampoline to
6450	in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6451
64522002-07-17  Michal Ludvig  <michal@suse.cz>
6453
6454	* dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6455	(update_context): Initialise cfa variable.
6456
64572002-07-17  Michael Snyder  <msnyder@redhat.com>
6458
6459	* aix-thread.c: Shorten some long lines.
6460	Bring comments into line with code spec.
6461
64622002-07-18  Joel Brobecker  <brobecker@gnat.com>
6463
6464	* infrun.c: Re-indent using gdb_indent.sh.
6465
64662002-07-18  Joel Brobecker  <brobecker@gnat.com>
6467
6468	* infrun.c (handle_inferior_event): Remove unneeded extra brace.
6469	Leave the indentation temporarily untouched, to minimize the diffs.
6470
64712002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6472
6473	* stabsread.c: Make os9k sections of the code obsolete,
6474	for real this time.
6475	* stabsread.h: Make os9k sections of the code obsolete.
6476
64772002-07-18  Michal Ludvig <mludvig@suse.cz>
6478
6479	* linux-low.c (regsets_store_inferior_registers): Add free()
6480	at the end of a loop to prevent memory leak.
6481	* linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6482	(X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6483	* config/sparc/tm-sp64linux.h: Make the rest of #endif
6484	line a comment.
6485	* Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6486
64872002-07-17  Jim Blandy  <jimb@redhat.com>
6488
6489	* macrocmd.c (info_macro_command): Remove newline from error
6490	message.
6491
64922002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6493
6494	* sh-tdep.c (sh_dsp_register_sim_regno): New function.
6495	(sh_gdbarch_init): Use it for sh-dsp.
6496
64972002-07-16  Kevin Buettner  <kevinb@redhat.com>
6498
6499	* dwarf2read.c (read_initial_length): Handle older, non-standard,
6500	64-bit DWARF2 format.
6501
65022002-07-16  Joel Brobecker  <brobecker@gnat.com>
6503
6504	* proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6505	<sys/proc.h> when not available.
6506
65072002-07-16  Andrew Cagney  <ac131313@redhat.com>
6508
6509	* NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6510	* stabsread.c: Make os9k sections of the code obsolete.
6511	* configure.tgt: Make i[3456]86-*-os9k target obsolete.
6512	* config/i386/i386os9k.mt: Make file obsolete.
6513	* Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6514	(COMMON_OBS): Remove os9kread.o
6515	(SFILES): Remove os9kread.c.
6516	(os9kread.o, remote-os9k.o): Make target obsolete.
6517	* remote-os9k.c: Make file obsolete.
6518	* os9kread.c: Make file obsolete.
6519	* Makefile.in
6520
65212002-07-16  Andrew Cagney  <ac131313@redhat.com>
6522
6523	* NEWS: Mention that the FR30 has been made obsolete.
6524	* fr30-tdep.c: Make file obsolete.
6525	* config/fr30/tm-fr30.h: Ditto.
6526	* config/fr30/fr30.mt: Ditto.
6527	* configure.tgt: Make fr30-*-elf obsolete.
6528	* MAINTAINERS: Make fr30-elf obsolete.
6529
65302002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6531
6532	* blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6533	found is not inside a section.
6534
65352002-07-15  Kevin Buettner  <kevinb@redhat.com>
6536
6537	* aix-thread.c (ptrace_check): Use safe_strerror() instead of
6538	strerror().
6539	(pdc_realloc): Use xrealloc() instead of realloc().
6540
65412002-07-15  Kevin Buettner  <kevinb@redhat.com>
6542
6543	* aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6544	(ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6545	(ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6546	macros.
6547
65482002-07-15  Kevin Buettner  <kevinb@redhat.com>
6549
6550	* aix-thread.c (ptrace_check): Eliminate goto.
6551	(sync_threadlists): Eliminate gotos.  Also, fix array overrun
6552	problem.
6553
65542002-07-15  Kevin Buettner  <kevinb@redhat.com>
6555
6556	* aix-thread.c (gdbcmd.h): Include.
6557	(DEBUG, DBG, DBG2, dbg): Eliminate.
6558	(debug_aix_thread): New static global.
6559	(ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6560	(pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6561	(fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6562	invocations to DBG and DBG2 macros to test against
6563	``debug_aix_thread'' and call fprintf_unfiltered().
6564	(_initialize_aix_thread): Add new command "set debug aix-thread".
6565
65662002-07-15  Andrew Cagney  <ac131313@redhat.com>
6567
6568	From Gerhard Tonn <TON@de.ibm.com>:
6569	* s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6570	instead of supply_register.
6571
65722002-07-15  Andrew Cagney  <ac131313@redhat.com>
6573
6574	* dwarf2cfi.c: Include "gdb_assert.h".
6575	(frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6576	non-NULL.
6577	(update_context): Do not use __func__.  Add missing ``break''.
6578	(update_context): Do not use __func__.
6579
65802002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6581
6582        * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6583        and its setting.  Set gdbarch instruction printing functions
6584        directly.  For non-rs6000 case use new function
6585        gdb_print_insn_powerpc.
6586        (gdb_print_insn_powerpc): New function.
6587
65882002-07-13  Andrew Cagney  <ac131313@redhat.com>
6589
6590	* NEWS: Mention that the d30v has been marked obsolete.
6591	* MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6592	* configure.tgt: Mark d30v-*-* as obsolete.
6593	* d30v-tdep.c: Mark file as obsolete.
6594	* config/d30v/d30v.mt: Ditto.
6595	* config/d30v/tm-d30v.h: Ditto.
6596
65972002-07-13  Aidan Skinner <aidan@velvet.net>
6598
6599	* ada-tasks.c (add_task_entry): replace calls to
6600	malloc() with xmalloc
6601	* ada-tasks.c (init_task_list): replace calls to free with xfree()
6602
6603	* ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6604	ada_finish_decode_line_1, all_sals_for_line
6605	ada_breakpoint_rewrite): replace calls to free() with xfree()
6606
66072002-07-12  Kevin Buettner  <kevinb@redhat.com>
6608
6609	From Nicholas Duffek (with minor changes by Martin Hunt,
6610	Louis Hamilton, and Kevin Buettner):
6611	* aix-thread.c: New file.
6612
66132002-07-12  Petr Sorfa <petrs@caldera.com>
6614
6615        *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6616        complaint for invalid attribute class or form.
6617        (read_func_scope): DW_AT_frame_base
6618        better handling of DW_AT_block*.
6619        (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6620        better handling of DW_AT_block*.
6621        (read_common_block): DW_AT_location
6622        better handling of DW_AT_block*.
6623        (read_partial_die): DW_AT_location better handling
6624        of DW_AT_block*.
6625        (new_symbol): DW_AT_external better handling of
6626        DW_AT_block*. Proper initialization of variable
6627        "addr".
6628        (attr_form_is_block): New function that returns true
6629        if the attribute's form is of DW_FORM_block*.
6630
66312002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6632
6633	* valops.c (find_method_list): Remove comment about
6634	removed STATIC_MEMFUNCP argument.
6635	(value_find_oload_method_list): Likewise.
6636
66372002-07-12  Kevin Buettner  <kevinb@redhat.com>
6638
6639	From Nicholas Duffek:
6640	* rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6641	target_new_objfile_hook.
6642
66432002-07-12  Kevin Buettner  <kevinb@redhat.com>
6644
6645	From Nicholas Duffek:
6646	* xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6647	csect.
6648
66492002-07-12  Andrew Cagney  <cagney@redhat.com>
6650
6651	* MAINTAINERS: Mention --enable-sim-build-warnings.
6652	(m68hc11-elf): Disable sim build warnings.
6653	(m32r-elf): Mark as broken obsolete candidate.
6654	(x86_64-linux-gnu): Mark as buildable with -Werror.
6655	(arm-elf): Change -w to ``,'' which enables warnings but not
6656	-Werror.
6657
66582002-07-12  Andrew Cagney  <ac131313@redhat.com>
6659
6660	* bcache.h: Update copyright.
6661	(struct bstring, struct bcache): Move definition to "bcache.c".
6662	Replaced by opaque declaration.
6663	(bcache_xfree): Replace free_bcache.
6664	(bcache_xmalloc, bcache_memory_used): Declare.
6665
6666	* bcache.c: Update copyright.
6667	(struct bstring, struct bcache): Moved to here from "bcache.h".
6668	Update comments.
6669	(bcache_xmalloc, bcache_memory_used): New functions.
6670	(bcache_xfree): Replace function free_bcache.
6671
6672	* Makefile.in (objfiles.o): Add $(bcache_h).
6673	(objfiles_h): Remove $(bcache_h).
6674	(symfile.o): Add $(bcache_h).
6675
6676	* symmisc.c: Update copyright.
6677	(print_symbol_bcache_statistics): Pass psymbol_cache by value.
6678	(print_objfile_statistics): Use bcache_memory_used.
6679
6680	* symfile.c: Include "bcache.h".
6681	(reread_symbols): Use bcache_xfree.
6682	(reread_symbols): Use bcache_xmalloc and bcache_xfree.
6683	(add_psymbol_to_list): Pass psymbol_cache by value.
6684	(add_psymbol_with_dem_name_to_list): Ditto.
6685
6686	* objfiles.h: Update copyright.
6687	(struct bcache): Declare opaque.  Do not include "bcache.h".
6688	(struct objfile): Change psymbol_cache and macro_cache to ``struct
6689	bcache'' pointers.
6690	* dwarf2read.c (macro_start_file): Pass macro_cache by value.
6691
6692	* objfiles.c: Include "bcache.h".  Update copyright.
6693	(allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6694	macro_cache.
6695	(free_objfile): Use bcache_xfree.
6696
66972002-07-11  Grace Sainsbury  <graces@redhat.com>
6698
6699	* monitor.c (monitor_fetch_register): Make name a constant.
6700	(monitor_store_register): Same.
6701
67022002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6703
6704	Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6705	* buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6706	(finish_block) For non-function blocks, hash the symbol table.  For
6707	function blocks, mark the symbol table as unhashed.
6708	* minsyms.c (msymbol_hash): Return hash value without taking modulus.
6709	(msymbol_hash_iw): Likewise.
6710	(add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6711	value.
6712	(add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6713	(lookup_minimal_symbol): Likewise for both.
6714	* symtab.h (struct block): Add `hashtable' flag.  Comment the
6715	hashtable.
6716	(BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6717	(ALL_BLOCK_SYMBOLS): Update.
6718	(BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6719	(struct symbol): Add `hash_next' pointer.
6720	* symtab.c (lookup_block_symbol): Search using the hash table when
6721	possible.
6722	(find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6723	(search_symbols, find_addr_symbol): Likewise.
6724
6725	* dstread.c (process_dst_block): Clear hashtable bit for new block.
6726	(read_dst_symtab): Likewise.
6727	* jv-lang.c (get_java_class_symtab): Likewise.
6728	* mdebugread.c: Include "gdb_assert.h".
6729	(shrink_block): Assert that the block being modified is not hashed.
6730	* coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6731	* symmisc.c (free_symtab_block): Walk the hash table when freeing
6732	symbols.
6733	(dump_symtab): Recognize hashed blocks.
6734	* printcmd.c (print_frame_args):  Assert that function blocks do not
6735	have hashed symbol tables.
6736	* ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6737	(fill_in_ada_prototype, debug_print_block): Likewise.
6738	(ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6739
67402002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6741
6742	* stack.c (print_frame): Use result of frame_address_in_block()
6743	instead of fi->pc when evaluating symbols.
6744	(backtrace_command_1): Ditto.
6745
67462002-07-11  Andrew Cagney  <cagney@redhat.com>
6747
6748	* cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6749	Make static.
6750
6751	* arm-tdep.c (arm_register_name): Make return type constant.
6752
67532002-07-10  Andrew Cagney  <ac131313@redhat.com>
6754
6755	* win32-nat.c (has_detach_ability): Convert to strict ISO C
6756	prototype.
6757	* top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6758	* s390-tdep.c (s390_fp_regnum): Ditto.
6759	(s390_read_fp): Ditto.
6760	(s390_pop_frame): Ditto.
6761	(_initialize_s390_tdep): Ditto.
6762	* remote.c (get_remote_state): Ditto.
6763	* procfs.c (mappingflags): Ditto.
6764	* memattr.c (_initialize_mem): Ditto.
6765	* mcore-tdep.c (mcore_pop_frame): Ditto.
6766	* m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6767	* m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6768	* language.c (set_case_str): Ditto.
6769	* gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6770	* frv-tdep.c (new_variant): Ditto.
6771	(frv_stopped_data_address): Ditto.
6772	* dwarf2cfi.c (fde_chunks_need_space): Ditto.
6773	(context_alloc): Ditto.
6774	(frame_state_alloc): Ditto.
6775	(unwind_tmp_obstack_init): Ditto.
6776	(unwind_tmp_obstack_free): Ditto.
6777	(cfi_read_fp): Ditto.
6778	* cris-tdep.c (cris_saved_pc_after_call): Ditto.
6779	(cris_pop_frame): Ditto.
6780	* c-lang.c (scanning_macro_expansion): Ditto.
6781	(finished_macro_expansion): Ditto.
6782	(c_preprocess_and_parse): Ditto.
6783	* gdbarch.sh: Ditto.
6784	* gdbarch.h, gdbarch.c: Regenerate.
6785	* config/mn10200/tm-mn10200.h: Adjust indentation.
6786	* target.c: Adjust indentation.
6787	* symtab.h: Adjust indentation.
6788	* stabsread.h: Adjust indentation.
6789	* remote-es.c: Adjust indentation.
6790	* os9kread.c: Adjust indentation.
6791
67922002-07-10  Andrew Cagney  <ac131313@redhat.com>
6793
6794	* wince.c (_initialize_wince): Rename _initialize_inftarg.
6795	* win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6796
67972002-07-10  Grace Sainsbury  <graces@redhat.com>
6798
6799	* NEWS: Mention m68k, mcore multi-arching.
6800	* MAINTAINERS: Change status of m68k, mcore to reflect
6801	multi-arching.
6802
68032002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6804
6805	* valops.c (find_overload_match): Free oload_syms.
6806
68072002-07-09  Joel Brobecker  <brobecker@gnat.com>
6808
6809	Define HAVE_SYS_PROC_H if sys/proc.h exists
6810	* configure.in: Add check for sys/proc.h
6811	* config.in: Regenerate.
6812	* configure: Regenerate.
6813
68142002-07-09  Grace Sainsbury  <graces@redhat.com>
6815
6816	* config/m68k/tm-m68k.h: Remove macros wrapped in
6817	#if !GDB_MULTI_ARCH.
6818
68192002-07-08  Andrew Cagney  <ac131313@redhat.com>
6820
6821	* config.in, configure: Regenerate.
6822
68232002-07-08  Mark Kettenis  <kettenis@gnu.org>
6824
6825	* dwarf2cfi.c: Include "gcore.h".
6826	(execute_stack_op): Fix implementation of the
6827	DW_OP_deref and DW_OP_deref_size operators by letting do their
6828	lookup in the target.
6829
68302002-07-07  Mark Kettenis  <kettenis@gnu.org>
6831
6832	From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6833	* i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6834	tdep->sc_sp_offset.
6835
68362002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6837
6838	Fix PR gdb/595, gdb/602
6839	* gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6840	Don't call value_cast, just read the vtable pointer; update comments
6841	to match.
6842
68432002-07-05  Grace Sainsbury  <graces@redhat.com>
6844
6845	* config/mcore/tm-mcore.h: Remove file.
6846	* config/mcore/mcore.mt: Remove definition of TM_FILE
6847	* configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6848
68492002-07-05  Mark Kettenis  <kettenis@gnu.org>
6850
6851	* i386bsd-tdep.c: Include "gdb_string.h".
6852
68532002-07-04  Grace Sainsbury  <graces@redhat.com>
6854
6855	* config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6856	(PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6857	mcore-tdep.
6858	(REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6859	(TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6860	* mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6861	(RETVAL_REGNUM): Move macros from tm-mcore.h
6862	(mcore_reg_struct_has_addr): New function.
6863	(mcore_gdbarch_init): Added initializations for the macros removed
6864	from tm-mcore.h.
6865
68662002-07-04  Mark Kettenis  <kettenis@gnu.org>
6867
6868	* osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6869	traditonal string branding within the ELF header.
6870
68712002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6872
6873	* symtab.c (remove_params): New function.
6874	(make_symbol_overload_list): Use it instead of cplus_demangle.
6875	(overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6876
68772002-07-04  Mark Kettenis  <kettenis@gnu.org>
6878
6879	* i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6880
6881	* i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6882	New variables.
6883	(i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6884	and tdep->sigtramp_end.
6885	* i386obsd-nat.c: New file.
6886	* config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6887
6888	* dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6889	Don't call get_current_frame().
6890
68912002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6892
6893	* i386-nat.c (child_post_startup_inferior): New function
6894	calling i386_cleanup_dregs if
6895	I386_USE_GENERIC_WATCHPOINTS is defined.
6896	* config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6897	conditional to acknowledge that i386-nat.c has its
6898	own child_post_startup_inferior function.
6899
69002002-07-04  Mark Kettenis  <kettenis@gnu.org>
6901
6902	* i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6903	* i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6904	instead of MAX_REGISTER_RAW_SIZE.
6905	(i386_extract_return_value, i386_extract_struct_value_address):
6906	Convert to use regcache.
6907	(i386_gdbarch_init): Set max_register_raw_size and
6908	max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6909	Set extract_return_value and extract_struct_value_address instead
6910	of their deprecated variants.
6911
6912	Convert i386 target to generic dummy frames.
6913	* i386-tdep.c: Include "symfile.h".
6914	(i386_frameless_signal_p): Consider a function to be frameless if
6915	the pc points at the first instruction of the function.
6916	(i386_frame_chain): Handle (generic) call dummies.
6917	(i386_frame_saved_pc): Likewise.
6918	(i386_frame_init_saved_regs): Remove code dealing with call
6919	dummies on the stack.
6920	(i386_push_dummy_frame): Removed.
6921	(i386_call_dummy_words): Removed.
6922	(i386_fix_call_dummy): Removed.
6923	(i386_push_return_address): New function.
6924	(i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6925	parameter, and don't call get_current_frame.
6926	(i386_pop_frame): New function.
6927	(i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6928	call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6929	entry_point_address, set call_dummy_breakpoint_offset to 0, set
6930	call_dummy_length to 0, set call_dummy_words to NULL, set
6931	sizeof_call_dummy_words to 0, set fix_call_dummy to
6932	generic_fix_call_dummy, set pc_in_call_dummy to
6933	pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6934	generic_push_dummy_frame, set push_return_address to
6935	i386_push_return_address and set frame_chain_valid to
6936	generic_file_frame_chain_valid.
6937
69382002-07-03  Andrew Cagney  <ac131313@redhat.com>
6939
6940	* gdbarch.sh (struct regcache): Add opaque declaration.
6941	(EXTRACT_RETURN_VALUE): New architecture method.
6942	(EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6943	* gdbarch.h, gdbarch.c: Regenerate.
6944	* arch-utils.c (legacy_extract_return_value): New function.
6945	* arch-utils.h (legacy_extract_return_value): Declare.
6946	* values.c (value_being_returned): Re-enable code handling
6947	EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6948	deprecated_grub_regcache_for_registers call to block handling
6949	DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6950	(EXTRACT_RETURN_VALUE): Do not define.
6951
69522002-07-03  Grace Sainsbury  <graces@redhat.com>
6953
6954	* config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6955	(SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6956	(BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6957	(INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6958	(FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6959	(STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6960	(STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6961	(SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6962	(FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6963	(PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6964	* mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6965	argument so the function fits the prototype in the architecture
6966	vector.
6967	(mcore_pop_frame): Remove argument so the function fits the
6968	prototype. Use get_current_frame instead of the argument.
6969	(mcore_push_arguments): Change type of struct_return so the
6970	function can be used in the architecture vector.
6971	(mcore_store_struct_return): Add.
6972	(mcore_frame_init_saved_regs): Add.
6973	(mcore_gdbarch_init): Add function calls to replace the macros
6974	removed from tm-mcore.h
6975
69762002-07-03  Andrew Cagney  <ac131313@redhat.com>
6977
6978	* infcmd.c (print_return_value): Remove compatibility code calling
6979	deprecated_grub_regcache_for_registers.
6980
6981	* values.c: Include "regcache.h".
6982	(value_being_returned): Update.  Use
6983	deprecated_grub_regcache_for_registers to extract the register
6984	buffer address.
6985	* value.h (value_being_returned): Change ``retbuf'' parameter to a
6986	``struct regcache''.
6987	* Makefile.in (values.o): Add dependency on $(regcache_h).
6988
6989	* inferior.h (run_stack_dummy): Change type of second parameter to
6990	a ``struct regcache''.
6991	* valops.c (hand_function_call): Change type of retbuf to ``struct
6992	regcache''.  Allocate using regcache_xmalloc, clean using
6993	make_cleanup_regcache_xfree.
6994	* infcmd.c (run_stack_dummy): Update.  Use
6995	regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6996
6997	* regcache.c (do_regcache_xfree): New function.
6998	(make_cleanup_regcache_xfree): New function.
6999	* regcache.h (make_cleanup_regcache_xfree): Declare.
7000
70012002-07-03  Martin M. Hunt  <hunt@redhat.com>
7002
7003	* event-top.c (command_line_handler): Don't read past
7004        beginning of buffer.
7005
70062002-07-03  Martin M. Hunt  <hunt@redhat.com>
7007
7008        * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7009        struct frame_id.
7010        (varobj_create): Store frame_id for root.
7011        (varobj_gen_name): Use xasprintf.
7012        (varobj_update): Save and restore frame using get_frame_id() and
7013        frame_find_by_id().
7014        (create_child): Use xasprintf.
7015        (new_root_variable): Initialize frame_id.
7016        (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7017        (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7018        to prevent memory leak.
7019
70202002-07-03  Andrew Cagney  <ac131313@redhat.com>
7021
7022	* valops.c (hand_function_call): Move declaration of retbuf to
7023	start of function, allocate using malloc, add a cleanup but before
7024	the inf_status cleanup, cleanup the buffer.  Rename local variable
7025	old_chain to inf_status_cleanup.
7026
70272002-07-03  Martin M. Hunt  <hunt@redhat.com>
7028
7029	* top.c (execute_command): Use cmd_func() and cmd_func_p().
7030
7031	* cli/cli-decode.c (cmd_func_p): New function.
7032	(cmd_func): New function.
7033
7034	* command.h: Add cmd_func() and cmd_func_p().
7035
70362002-07-03  Grace Sainsbury  <graces@redhat.com>
7037
7038	* config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7039	(REGISTER_SIZE): Remove.
7040	(MAX_REGISTER_RAW_SIZE): Remove.
7041	(REGISTER_VIRTUAL_TYPE): Remove.
7042	(MAX_REGISTER_VIRTUAL_SIZE): Remove.
7043	(REGISTER_NAME): Remove.
7044	(USE_GENERIC_DUMMY_FRAMES): Remove.
7045	(CALL_DUMMY): Remove.
7046	(CALL_DUMMY_START_OFFSET): Remove.
7047	(CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7048	(CALL_DUMMY_LOCATION): Remove.
7049	(FIX_CALL_DUMMY): Remove.
7050	(CALL_DUMMY_ADDRESS): Remove.
7051	(SIZEOF_CALL_DUMMY_WORDS): Remove.
7052	(SAVE_DUMMY_FRAME_TOS): Remove.
7053	* mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7054	(mcore_register_virtual_type): New function.
7055	(mcore_register_byte): New function.
7056	(mcore_register_size): New function.
7057	(mcore_register_name): New function.
7058	(mcore_gdbarch_init): New function. Add set_gdbarch calls for
7059	macros removed from tm-mcore.h.
7060	(mcore_dump_tdep): Add.
7061	(_initialize_mcore_tdep): Add gdbarch_register call.
7062
70632002-07-03  Mark Kettenis  <kettenis@gnu.org>
7064
7065	* i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7066	frameless_look_for_prologue, such that we actually call this
7067	function.
7068
70692002-07-02  Joel Brobecker  <brobecker@gnat.com>
7070
7071	* frame.h (frame_address_in_block): New function.
7072
7073	* blockframe.c (frame_address_in_block): New function extracted
7074	from get_frame_block().
7075	(get_frame_block): Use frame_address_in_block().
7076	(block_innermost_frame): Use frame_address_in_block() to match
7077	the frame pc address against the block boundaries rather than
7078	the frame pc directly. This prevents a failure when a frame pc
7079	is actually a return-address pointing immediately after the end
7080	of the given block.
7081
70822002-07-02  Grace Sainsbury  <graces@redhat.com>
7083
7084	* MAINTAINERS: Add self under write after approval.
7085
70862002-07-02  Grace Sainsbury  <graces@redhat.com>
7087
7088	* m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7089	used in architecture vector. The default is
7090	m68k_local_breakpoint_from_pc.
7091        (m68k_local_breakpoint_from_pc): Add.
7092        (enum): Add register numbers from tm-m68k.h.
7093        (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7094	vector.
7095	* config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7096	GDB_MULTI_ARCH_PARTIAL.
7097        (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7098        (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7099	m68k-tdep.c.
7100        (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7101        (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7102	to enum in m68k-tdep.c
7103
71042002-07-02  Joel Brobecker  <brobecker@gnat.com>
7105
7106	* solib-osf.c (open_map): Compute the list of shared libraries
7107	loaded by the inferior, rather than the list of libraries loaded
7108	by GDB itself.  Otherwise, GDB ends up reading the symbols from
7109	the wrong shared libraries...
7110
71112002-07-02  Mark Kettenis  <kettenis@gnu.org>
7112
7113	* i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7114	(LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7115	macros.
7116	(i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7117	Remove functions.
7118	(FRAMELESS_SIGNAL): Remove function.
7119	(i386_linux_frame_chain, i386_linux_frame_saved_pc,
7120	i386_linux_saved_pc_after_call): Removed.
7121	(i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7122	tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7123	frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7124
7125	* i386-tdep.c (i386_frameless_signal_p): New function.
7126	(i386_frame_chain): Deal with frameless signals.
7127	(i386_sigtramp_saved_sp): New function.
7128	(i386_frame_saved_pc): Deal with frameless signals.
7129	(i386_saved_pc_after_call): Make sure the correct value is
7130	returned just after entry into a sigtramp.
7131	* i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7132	i386fbsd4_sc_sp_offset): New variables.
7133	(i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7134	these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7135	(_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7136	similiar to what we already did for sc_pc_offset.
7137	* i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7138	tdep->sc_sp_offset.
7139
7140	* i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7141
71422002-07-02  Michal Ludvig  <mludvig@suse.cz>
7143
7144	* config/i386/tm-x86-64linux.h: New.
7145	* config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7146	definitions.
7147	* config/i386/nm-x86-64.h: Rename to ...
7148	* config/i386/nm-x86-64linux.h: ... this one.
7149	* config/i386/x86-64linux.mh: Reflect the above change.
7150
71512002-07-01  Mark Kettenis  <kettenis@gnu.org>
7152
7153	* i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7154	with sigcontext_addr.  Add sc_sp_offset.
7155	(i386bsd_sigtramp_saved_pc): Remove prototype.
7156	(i386bsd_sicontext_addr): Add prototype.
7157	* i386-tdep.c (i386_sigtramp_saved_pc): New function.
7158	(i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7159	(i386_svr4_sigtramp_saved_pc): Removed.
7160	(i386_svr4_sigcontext_addr): New function.
7161	(i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7162	Initialize tdep->sigcontext_addr instead.  Initialize
7163	tdep->sc_pc_offset and tdep->sc_sp_offset.
7164	(i386_gdbarch_init): Likewise.
7165	* i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7166	any more.
7167	(i386bsd_sigtramp_saved_pc): Remove function.
7168	(i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7169	Initialize tdep->sigcontext_addr instead.  Initialize
7170	tdep->sc_pc_offset.
7171	* i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7172	of tdep->sigtramp_saved_pc.
7173	* i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7174	tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7175	instead.
7176
7177	* i386-tdep.c (i386_frameless_function_invocation,
7178	i386_frame_num_args, i386_frame_init_saved_regs,
7179	i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7180	i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7181	i386_extract_return_value, i386_store_return_value,
7182	i386_extract_struct_value_address, i386_register_virtual_type,
7183	i386_register_convertible, i386_register_convert_to_virtual,
7184	i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7185	i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7186	static.
7187
71882002-07-01  Mark Kettenis  <kettenis@gnu.org>
7189
7190	* i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7191
7192	* config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7193	* i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7194	this macro.  Include "value.h".
7195
71962002-06-30  Aidan Skinner  <aidan@velvet.net>
7197
7198	* ada-exp.tab.c: remove as it's a generated file
7199	* ada-lex.c: remove as it's a generated file
7200
72012002-06-30  Mark Kettenis  <kettenis@gnu.org>
7202
7203	* config/i386/tm-i386.h (struct frame_info, struct
7204	frame_saved_regs, struct value, struct type): Remove forward
7205	declarations.
7206
7207	* config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7208	(FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7209	* config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7210	(FILL_FPXREGSET): Define.
7211
7212	* config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7213
7214	* configure.tgt (i[3456]86-*-openbsd*): Fold into
7215	i[3456]86-*-netbsd* case.
7216	* config/i386/tm-obsd.h: Removed.
7217	* config/i386/obsd.mt: Removed.
7218	* config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7219	core-aout.o.
7220	(MH_CFLAGS): Add -DYYDEBUG=0.
7221
7222	* i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7223	i386nbsd_sc_pc_offset on OpenBSD too.
7224
7225	* config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7226	(IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7227	* config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7228	define.
7229	* i386bsd-tdep.c: Include "arch-utils.h".
7230	(i386bsd_aout_in_solib_call_trampoline): New function.
7231	(i386bsd_init_abi): Set in_solib_call_trampoline to
7232	i386bsd_aout_in_solib_call_trampoline.
7233	(i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7234	in_solib_call_trampoline to generic_in_solib_call_trampoline.
7235
72362002-06-28  Andrew Cagney  <ac131313@redhat.com>
7237
7238	* macrotab.h: Do not include "obstack.h" or "bcache.h".
7239	(struct obstack, struct bcache): Add opaque declarations.
7240	* Makefile.in (macrotab_h): Update
7241
72422002-06-28  Andrew Cagney  <ac131313@redhat.com>
7243
7244	* blockframe.c (generic_find_dummy_frame): Change return type to
7245	``struct regcache''.
7246	(struct dummy_frame): Replace field ``registers'' with regcache, a
7247	struct regcache object.
7248	(generic_find_dummy_frame): Update.
7249	(generic_push_dummy_frame): Update.  Use regcache_xfree,
7250	regcache_xmalloc and regcache_cpy.
7251	(generic_pop_dummy_frame): Update.  Use regcache_cpy and
7252	regcache_xfree.
7253	(deprecated_generic_find_dummy_frame): Update.
7254	(generic_read_register_dummy): Update.  Use
7255	regcache_read_as_address.
7256	(generic_call_dummy_register_unwind): Update.  Use regcache_read.
7257	(generic_get_saved_register): Update.  Use regcache_read.
7258
72592002-06-28  Andrew Cagney  <ac131313@redhat.com>
7260
7261	* Makefile.in (objfiles_h): Add $(bcache_h).
7262	* objfiles.h: Include "bcache.h".
7263
7264	* Makefile.in (symtab_h): Remove $(bcache_h).
7265	* symtab.h: Do not include "bcache.h".
7266
72672002-06-28  Andrew Cagney  <ac131313@redhat.com>
7268
7269	* ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7270	generic_func_frame_chain_valid.
7271
72722002-06-28  David O'Brien  <obrien@FreeBSD.org>
7273
7274	* config/i386/nm-fbsd.h: Include <sys/param.h>.
7275	* config/i386/tm-fbsd.h: Likewise.
7276
72772002-06-28  Andrew Cagney  <ac131313@redhat.com>
7278
7279	* rs6000-tdep.c (rs6000_gdbarch_init): Use
7280	generic_unwind_get_saved_register.
7281
72822002-06-27  Andrew Cagney  <ac131313@redhat.com>
7283
7284	From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7285	* regcache.c (supply_register): Add missing argument to
7286	register_buffer call.
7287
72882002-06-27  Andrew Cagney  <ac131313@redhat.com>
7289
7290	* Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7291	Solaris /bin/grep does not not like it.  From Peter Schauer.
7292
72932002-06-26  Tom Tromey  <tromey@redhat.com>
7294
7295	* command.h (add_setshow_cmd): Declare.
7296	(add_setshow_cmd_full): Declare.
7297	* cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7298	returns void.  Use add_setshow_cmd_full.
7299	(add_setshow_cmd_full): New function.
7300	(add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7301	(add_setshow_boolean_cmd): Likewise.
7302
73032002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7304
7305	* config/vax/tm-vax.h: Protect from multiple inclusion.
7306	(TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7307	(SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7308	* config/vax/tm-vaxbsd.h: ...here.  New file.
7309	* config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7310
73112002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7312
7313	* config/vax/tm-vax.h (BREAKPOINT): Remove.
7314	(BELIEVE_PCC_PROMOTION): Remove.
7315	(AP_REGNUM): Move to...
7316	* config/vax/nm-vax.h: ...here.
7317	* vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7318	(vax_breakpoint_from_pc): New function.
7319	(vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7320	and gdbarch_believe_pcc_promotion.
7321
73222002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7323
7324	* Makefile.in (vax_tdep_h): Define.
7325	(vax-tdep.o): Use $(vax_tdep_h).
7326	* vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7327	(vax_dump_tdep): New function.
7328	(_initialize_vax_tdep): Register vax_dump_tdep.
7329	* vax-tdep.h: Include osabi.h.
7330	(struct gdbarch_tdep): New.
7331
73322002-06-26  Andrew Cagney  <cagney@redhat.com>
7333
7334	* frame.h (deprecated_generic_find_dummy_frame): Rename
7335	generic_find_dummy_frame.
7336	* blockframe.c (generic_find_dummy_frame): Make static.
7337	(deprecated_generic_find_dummy_frame): New function.
7338	* sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7339	generic_find_dummy_frame with deprecated_find_dummy_frame.
7340	(sh64_nofp_frame_init_saved_regs): Ditto.
7341	(sh_fp_frame_init_saved_regs): Ditto.
7342	* s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7343	(s390_frame_chain): Ditto.
7344	* cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7345
73462002-06-26  Grace Sainsbury  <graces@redhat.com>
7347
7348	* config/m68k/tm-m68k.h: Rearrange code so macros not in the
7349	gdbarch vector are at the top.
7350	(NUM_REGS): Remove.
7351	(FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7352	(FRAME_ARGS_ADDRESS): Remove.
7353	(FRAME_LOCALS_ADDRESS): Remove.
7354	(FRAME_NUM_ARGS): Remove.
7355	(FRAME_ARGS_SKIP): Remove.
7356	* m68k-tdep.c (enum): Add eumeration of special register numbers.
7357	(m68k_gdbarch_init): Add gdbarch initializations for macros
7358	undefined in tm-m68k.h
7359
73602002-06-26  Grace Sainsbury  <graces@redhat.com>
7361
7362	* monitor.h: Add the function regname to monitor_ops
7363	structure. This way NUM_REGS does not have to be a constant.
7364	* monitor.c (monitor_fetch_register): Added support for regname
7365	function. The function is called if the array regnames is NULL.
7366	(monitor_store_register): Same.
7367	* cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7368	regnames array.
7369	(init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7370	cpu32bug_cmds.regname to point to new function.
7371	* abug-rom.c (abug_regname): Same as above.
7372	(init_abug_cmds): Same.
7373	* dbug-rom.c (dbug_regname): Same as above.
7374	(init_dbug_cmds): Same.
7375	* remote-est.c (est_regname): Same.
7376	(init_est_cmds): Same.
7377	* rom68k-rom.c (rom68k_regname): Same.
7378	(init_rom68k_cmds): Same.
7379
73802002-06-25  Tom Tromey  <tromey@redhat.com>
7381
7382	* breakpoint.c (delete_command): Don't repeat `delete' commands.
7383
73842002-06-25  Andrew Cagney  <cagney@redhat.com>
7385
7386	* infrun.c (stop_registers): Change variable's type to ``struct
7387	regcache'''.
7388	(xmalloc_inferior_status): Delete function.
7389	(free_inferior_status): Delete function.
7390	(normal_stop): Use regcache_cpy.
7391	(struct inferior_status): Change type of fields ``stop_registers''
7392	and ``registers'' to ``struct regcache''.
7393	(write_inferior_status_register): Use regcache_write.
7394	(save_inferior_status): Instead of calling
7395	xmalloc_inferior_status, allocate the inf_status buffer directly.
7396	Use regcache_dup_no_passthrough and regcache_dup to save the
7397	buffers.
7398	(restore_inferior_status): Use regcache_xfree and regcache_cpy.
7399	Replace the stop_registers regcache instead of overriding it.  Use
7400	regcache_xfree.  Instead of calling free_inferior_status, xfree
7401	the buffer directly.
7402	(discard_inferior_status): Use regcache_xfree.  Instead of calling
7403	free_inferior_status, xfree the buffer directly.
7404	(build_infrun): Use regcache_xmalloc.
7405	(_initialize_infrun): Delete redundant call to build_infrun.
7406
7407	* Makefile.in (infcmd.o): Add $(regcache_h).
7408
7409	* infcmd.c: Include "regcache.h".
7410	(run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7411	obtain the address of `stop_registers' register buffer.
7412	(print_return_value): Ditto.
7413
7414	* inferior.h (struct regcache): Add opaque declaration.
7415	(stop_registers): Change variable's declared type to ``struct
7416	regcache''.
7417
74182002-06-24  Tom Tromey  <tromey@redhat.com>
7419
7420	* cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7421	* target.c (initialize_targets): Fixed typo in
7422	trust-readonly-sections `show' documentation.
7423
7424	* main.c: Marked all strings with _().
7425
74262002-06-24  Don Howard  <dhoward@redhat.com>
7427
7428        * memattr.c (create_mem_region): Treat hi == 0 as a special case
7429        that means max CORE_ADDR+1.
7430        (lookup_mem_region): Ditto.
7431        (mem_info_command): Ditto.
7432
74332002-06-24  Grace Sainsbury  <graces@redhat.com>
7434
7435	* config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7436	(REGISTER_BYTES_OK): Remove.
7437	(REGISTER_BYTES): Remove.
7438	(STORE_STRUCT_RETURN): Remove.
7439	(DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7440	(STORE_RETURN_VALUE): Remove.
7441	(DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7442	(FRAME_CHAIN): Remove.
7443	(FRAMELESS_FUNCTION_INVOCATION): Remove.
7444	(FRAME_SAVED_PC): Remove.
7445	* m68k-tdep.c (m68k_register_bytes_ok):Add.
7446	(m68k_store_struct_return): Add.
7447	(m68k_deprecated_extract_return_value): Add.
7448	(m68k_deprecated_extract_struct_value_address): Add.
7449	(m68k_store_return_value): Add.
7450	(m68k_frame_chain): Add.
7451	(m68k_frameless_function_invocation): Add.
7452	(m68k_frame_saved_pc): Add.
7453	(m68k_gdbarch_init): added set_gdbarch calls for new
7454	functions and deleted macros.
7455
74562002-06-23  Tom Tromey  <tromey@redhat.com>
7457
7458	* Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7459	(ALLDEPFILES): Likewise.
7460	(udiheaders): Removed.
7461	(udip2soc.o): Likewise.
7462	(udi2go32.o): Likewise.
7463	(udr.o): Likewise.
7464	(HFILES_WITH_SRCDIR): Don't mention udiheaders.
7465
74662002-06-22  Andrew Cagney  <ac131313@redhat.com>
7467
7468	* infrun.c (_initialize_infrun): Delete unnecessary call to
7469	build_infrun.
7470
7471	* regcache.h: Update comments describing the regcache_cpy family
7472	of functions.
7473	(regcache_save, regcache_restore): Delete declaration.
7474	(regcache_save_no_passthrough): Delete declaration.
7475	(regcache_restore_no_passthrough): Delete declaration.
7476	* regcache.c (regcache_save): Delete function.
7477	(regcache_save_no_passthrough): Delete function.
7478	(regcache_restore): Delete function.
7479	(regcache_restore_no_passthrough): Delete function.
7480
74812002-06-21  Andrew Cagney  <ac131313@redhat.com>
7482
7483	* config/m68k/tm-m68k.h: Fix typo.
7484	(FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7485	(m68k_frame_init_saved_regs): Declare.
7486
74872002-06-21  Jim Blandy  <jimb@redhat.com>
7488
7489	Remove some vestiges of Harris 88k support.
7490	* dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7491	register numbering quirk.
7492	* elfread.c (elf_symtab_read): Remove `#if' block for skipping
7493	odd symbols occurring in Harris 88k ELF targets.
7494
74952002-06-21  Tom Tromey  <tromey@redhat.com>
7496
7497	* gdb_locale.h: New file.
7498	* Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7499	(defs_h): Added gdb_locale.h.
7500	* configure, config.in: Rebuilt.
7501	* configure.in (PACKAGE): Define.
7502	* defs.h: Include gdb_locale.h.
7503	* main.c (captured_main): Call setlocale, bindtextdomain,
7504	textdomain.
7505
75062002-06-21  Dave Brolley  <brolley@redhat.com>
7507
7508	From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7509	* config/frv/frv.mt: New file.
7510	* config/frv/tm-frv.h: New file.
7511	* configure.tgt: Support frv-*-*.
7512	* Makefile.in (frv-tdep.o): New target.
7513	* frv-tdep.c: New file.
7514	* NEWS: Mention frv.
7515
75162002-06-21  Dave Brolley  <brolley@redhat.com>
7517
7518	* MAINTAINERS: Add self to "Write After Approval" list.
7519
75202002-06-21  Grace Sainsbury  <graces@redhat.com>
7521
7522	* config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7523	(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7524	(REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7525	(FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7526	(INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7527
7528	* m68k-tdep.c: Include arch-utils.h
7529	(m68k_register_raw_size): Add.
7530	(m68k_register_virtual_size): Add.
7531	(m68k_register_virtual_type): Add.
7532	(m68k_register_name): Add.
7533	(m68k_stack_align): Add.
7534	(m68k_register_byte): Add.
7535	(m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7536	tm-m68k.h.
7537
75382002-06-21  Grace Sainsbury  <graces@redhat.com>
7539
7540	* m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7541        m68k_find_saved_regs.
7542        (m68k_pop_frame): Removed saved_regs structure, and replaced
7543        references to it with frame->saved_regs.
7544        (m68k_gdbarch_init): Added function calls to initialize the
7545        gdbarch structure.
7546	(m68k_fix_call_dummy): Add.
7547	* config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7548       	(CALL_DUMMY): Remove.
7549	(CALL_DUMMY_LENGTH): Remove.
7550	(CALL_DUMMY_START_OFFSET): Remove.
7551	(CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7552	(FIX_CALL_DUMMY): Remove.
7553	(PUSH_DUMMY_FRAME): Remove.
7554	(POP_FRAME): Remove.
7555
75562002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7557
7558	* parse.c (parse_fprintf): New function used to avoid calls to
7559	fprintf in bison parser generated debug code.
7560	* parser-defs.h: Declaration of new parse_fprintf function.
7561	* ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7562	Set YYDEBUG to 1 by default.
7563	Set YYFPRINTF as parse_fprintf.
7564
75652002-06-21  Michal Ludvig  <mludvig@suse.cz>
7566
7567	* dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7568	encoding anymore.
7569	(pointer_encoding, enum ptr_encoding): New.
7570	(execute_cfa_program): Take care about pointer encoding.
7571	(dwarf2_build_frame_info): Only call parse_frame_info for
7572	.debug_frame and .eh_frame.
7573	(parse_frame_info): New, derived from former dwarf2_build_frame_info.
7574	fixed augmentation handling, added relative addressing,
7575	ignore duplicate FDEs. Added comments.
7576	* dwarf2cfi.c: Reindented.
7577
75782002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7579
7580	* event-top.c (command_handler): Don't use space_at_cmd_start
7581	unless there is sbrk() on the host. Assign time and space data
7582	to union fields of the appropriate length.
7583
75842002-06-20  Michal Ludvig  <mludvig@suse.cz>
7585
7586	* x86-64-tdep.c (x86_64_register_nr2name): Rename to
7587	x86_64_register_name. Return type changed to 'const char *'.
7588	(x86_64_register_name2nr): Rename to x86_64_register_number.
7589	(x86_64_gdbarch_init): Update to reflect the change.
7590	* x86-64-tdep.h: Ditto.
7591	* x86-64-linux-nat.c (x86_64_fxsave_offset)
7592	(supply_fpregset): Ditto.
7593
75942002-06-19  Andrew Cagney  <cagney@redhat.com>
7595
7596	* regcache.h: Update copyright.
7597	(struct regcache, struct gdbarch): Add opaque declarations.
7598	(current_regcache): Declare global variable.
7599	(regcache_read, regcache_write): Add gdbarch parameter.
7600	(regcache_save, regcache_save_no_passthrough)
7601	(regcache_restore, regcache_restore_no_passthrough)
7602	(regcache_dup, regcache_dup_no_passthrough)
7603	(regcache_cpy, regcache_cpy_no_passthrough)
7604	(deprecated_grub_regcache_for_registers)
7605	(deprecated_grub_regcache_for_register_valid)
7606	(regcache_valid_p): Add function declarations.
7607
7608	* regcache.c: Update copyright.
7609	(regcache_descr_handle): New global variable.
7610	(struct regcache_descr): Define.
7611	(init_legacy_regcache_descr, init_regcache_descr): New functions.
7612	(regcache_descr, xfree_regcache_descr): New functions.
7613	(struct regcache): Define.
7614	(regcache_xmalloc, regcache_xfree): New functions.
7615	(regcache_cpy, regcache_cpy_no_passthrough): New functions.
7616	(regcache_dup, regcache_dup_no_passthrough): New functions.
7617	(regcache_valid_p, regcache_read_as_address): New functions.
7618	(deprecated_grub_regcache_for_registers): New function.
7619	(deprecated_grub_regcache_for_register_valid): New function.
7620	(current_regcache): New global variable.
7621	(register_buffer): Add regcache parameter.  Update calls.
7622	(regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7623	(read_register_gen, write_register_gen): Update register_buffer
7624	call.  Test for legacy_p instead of gdbarch_register_read_p or
7625	gdbarch_register_write_p.
7626	(regcache_collect): Update register_buffer call.
7627	(build_regcache): Rewrite.  Use deprecated grub functions.
7628	(regcache_save, regcache_save_no_passthrough): New functions.
7629	(regcache_restore, regcache_restore_no_passthrough): New
7630	functions.
7631	(_initialize_regcache): Create the regcache_data_handle. Swap
7632	current_regcache global variable.
7633
7634	* sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7635	parameter to regcache_read and regcache_write calls.
7636	(sh4_register_read): Ditto.
7637	(sh64_pseudo_register_read): Ditto.
7638	(sh64_register_read): Ditto.
7639	(sh_pseudo_register_write): Ditto.
7640	(sh4_register_write): Ditto.
7641	(sh64_pseudo_register_write): Ditto.
7642	(sh64_register_write): Ditto.
7643
7644	* defs.h (XCALLOC): Define.
7645
76462002-06-19  Grace Sainsbury  <graces@redhat.com>
7647
7648	* config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7649	* m68k-tdep.c (m68k_gdbarch_init): Added.
7650	(m68k_dump_tdep): Added.
7651
76522002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7653
7654	* ada-lang.c (fill_in_ada_prototype): Update comment.
7655
76562002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7657
7658	* mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7659	MIPS_ABI_LAST.
7660	(mips_abi_string, mips_abi_strings): New.
7661	(struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7662	(mips_gdbarch_init): Set tdep->found_abi.  Don't set
7663	tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7664	O32 if no ABI is found.
7665	(mips_dump_tdep): Use mips_abi_strings.
7666	(mips_abi_update): New function.
7667	(_initialize_mips_tdep): Initialize mips_abi_string.  Add
7668	``set mips abi'' and ``show mips abi''.  Check the size of
7669	mips_abi_strings.
7670
76712002-06-19  Andrew Cagney  <cagney@redhat.com>
7672
7673	* i386-linux-tdep.c (i386_linux_register_name): Make return type
7674	constant.
7675
76762002-06-18  Joel Brobecker  <brobecker@gnat.com>
7677
7678	* alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7679	current frame using only the first stack size adjustment. All
7680	subsequent size adjustments are not considered to be part of
7681	the "static" part of the current frame.
7682	Compute the address of the saved registers relative to the
7683	Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7684	in use in this frame.
7685
76862002-06-18  Don Howard  <dhoward@redhat.com>
7687
7688        * valops.c (value_ind): Use value_at_lazy() when dereferencing
7689        type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7690        suggesting this solution.
7691
76922002-06-18  Andrew Cagney  <ac131313@redhat.com>
7693
7694	* config/romp/xm-rtbsd.h: Delete file.
7695	* config/romp/rtbsd.mh: Delete file.
7696
76972002-06-18  Keith Seitz  <keiths@redhat.com>
7698
7699	* breakpoint.c (condition_command): Post breakpoint_modify
7700	when a condition is added to an existing breakpoint.
7701	(commands_command): Likewise for commands.
7702	(set_ignore_count): Likewise for ignore counts.
7703	If no tty, do not simply return, still need to send event
7704	notification.
7705	(ignore_command): Only print a newline if the command came
7706	from a tty.
7707	Don't call breakpoints_changed, since this is now properly
7708	handled by set_ignore_count.
7709
77102002-06-18  Andrew Cagney  <cagney@redhat.com>
7711
7712	* MAINTAINERS: Note that cris-elf target can be compiled with
7713	-Werror.
7714	* cris-tdep.c (cris_register_name): Make return type constant.
7715	(cris_breakpoint_from_pc): Ditto.
7716
77172002-06-18  Michal Ludvig  <mludvig@suse.cz>
7718
7719	* frame.h (struct frame_info): Change type of context to
7720	'struct context'.
7721
77222002-06-17  Andrew Cagney  <cagney@redhat.com>
7723
7724	* gdbarch.sh (REGISTER_NAME): Change return type a constant string
7725	pointer.
7726	* gdbarch.h, gdbarch.c: Regenerate.
7727	* config/mips/tm-mips.h (mips_register_name): Update.
7728	* i386-tdep.h (i386_register_name): Update.
7729	* mips-tdep.c (mips_register_name): Update
7730	* alpha-tdep.c (alpha_register_name): Update.
7731	* arch-utils.c (legacy_register_name): Update.
7732	* arch-utils.h (legacy_register_name): Update.
7733	* avr-tdep.c (avr_register_name): Update.
7734	* ia64-tdep.c (ia64_register_name): Update.
7735	* i386-tdep.c (i386_register_name): Update.
7736	* sparc-tdep.c (sparc32_register_name): Update.
7737	(sparc64_register_name): Update.
7738	(sparclite_register_name): Update.
7739	(sparclet_register_name): Update.
7740	* sh-tdep.c (sh_generic_register_name): Update.
7741	(sh_sh_register_name): Update.
7742	(sh_sh3_register_name): Update.
7743	(sh_sh3e_register_name): Update.
7744	(sh_sh_dsp_register_name): Update.
7745	(sh_sh3_dsp_register_name): Update.
7746	(sh_sh4_register_name): Update.
7747	(sh_sh64_register_name): Update.
7748	* s390-tdep.c (s390_register_name): Update.
7749	* rs6000-tdep.c (rs6000_register_name): Update.
7750	* ns32k-tdep.c (ns32k_register_name_32082): Update.
7751	(ns32k_register_name_32382): Update.
7752	* d10v-tdep.c (d10v_ts2_register_name): Update.
7753	(d10v_ts3_register_name): Update.
7754	* xstormy16-tdep.c (xstormy16_register_name): Update.
7755	* vax-tdep.c (vax_register_name): Update.
7756	* v850-tdep.c (v850_register_name): Update.
7757	* m68hc11-tdep.c (m68hc11_register_name): Update.
7758	* mn10300-tdep.c (mn10300_generic_register_name): Update.
7759	(am33_register_name): Update.
7760
77612002-06-17  Grace Sainsbury  <graces@redhat.com>
7762
7763	* m68k-tdep.c: Reindented.
7764
77652002-06-17  Andrew Cagney  <ac131313@redhat.com>
7766
7767	* gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7768	list of predefined types.
7769
77702002-06-16  Mark Kettenis  <kettenis@gnu.org>
7771
7772	* config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7773	REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7774	REGISTER_CONVERT_TO_RAW): Remove defines.
7775	(i386_register_virtual_type, i386_register_convertible,
7776	i386_register_convert_to_virtual, i386_register_convert_to_raw):
7777	Remove prototypes.
7778	* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7779	macros mentioned above.
7780
7781	* config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7782	(i386lynx_saved_pc_after_call): Remove prototype.
7783	* i386ly-tdep.c: Include "i386-tdep.h".
7784	(i386lynx_saved_pc_after_call): Make static.  Use
7785	read_memory_nobpt instead of read_memory.  Use
7786	read_memory_unsigned_integer instead of read_memory_integer.
7787	(i386lynx_init_abi): New function.
7788	(i386lynx_coff_osabi_sniffer): New function.
7789	(_initialize_i386bsd_tdep): New function.
7790
7791	* config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7792	CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7793	CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7794	(i386_fix_call_dummy): Remove prototype.
7795	* i386-tdep.c (i386_call_dummy_words): New variable.
7796	(i386_gdbarch_init): Adjust for removal of the
7797	macros mentioned above.
7798
77992002-06-15  Andrew Cagney  <ac131313@redhat.com>
7800
7801	* command.h (add_setshow_auto_boolean_cmd): Replace
7802	add_set_auto_boolean_cmd.
7803	* cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7804	add_set_auto_boolean_cmd.
7805	* cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7806	* mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7807	mask-address'' command.
7808	(show_mask_address): Add cmd parameter.
7809	* remote.c (add_packet_config_cmd): Update.  Change type of
7810	set_func and show_func to cmd_sfunc_ftype.
7811	(_initialize_remote): Update `set remote Z-packet'
7812	(show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7813	(show_remote_protocol_e_packet_cmd): Ditto.
7814	(show_remote_protocol_E_packet_cmd): Ditto.
7815	(show_remote_protocol_P_packet_cmd): Ditto.
7816	(show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7817	(show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7818	(show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7819	(show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7820	(show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7821	(show_remote_protocol_Z_packet_cmd): Ditto.
7822	(show_remote_protocol_binary_download_cmd): Ditto.
7823	(show_remote_cmd): Pass NULL to all of above.
7824
78252002-06-15  Mark Kettenis  <kettenis@gnu.org>
7826
7827	* config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7828	DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7829	DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7830	POP_FRAME): Remove defines.
7831	(i386_push_arguments, i386_store_struct_return,
7832	i386_extract_return_value, i386_store_return_value,
7833	i386_extract_struct_value_address, i386_push_dummy_frame,
7834	i386_pop_frame): Renove prototypes.
7835	* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7836	macros mentioned above.
7837
78382002-06-15  Andrew Cagney  <ac131313@redhat.com>
7839
7840	* cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7841	add_set_boolean_cmd.
7842	(add_setshow_cmd): New function.
7843	* command.h (add_setshow_boolean_cmd): Replace
7844	add_set_boolean_cmd.
7845	* remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7846	and ``set rdiromatzero''.
7847	* maint.c (_initialize_maint_cmds): Update commented out code.
7848	* cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7849	* target.c (initialize_targets): Update `set
7850	trust-readonly-sections'.
7851	* remote.c (_initialize_remote): Update `set remotebreak'.
7852
78532002-06-15  Mark Kettenis  <kettenis@gnu.org>
7854
7855	* config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7856	BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7857	* i386-tdep.c (i386_skip_prologue): Adjust function signature to
7858	fit into multi-arch framework.
7859	(i386_breakpoint_from_pc): New function.
7860	(i386_gdbarch_init): Adjust for removal of the macros mentioned
7861	above.
7862
7863	* config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7864	FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7865	FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7866	(i386_frameless_function_invocation, i386_frame_num_args,
7867	i386_frame_init_saved_regs): Remove prototypes.
7868	* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7869	macros mentioned above.
7870
78712002-06-15  Andrew Cagney  <ac131313@redhat.com>
7872
7873	* cli/cli-decode.c (set_cmd_cfunc): Update.
7874	(set_cmd_sfunc): Update.
7875	* command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7876	(set_cmd_sfunc, set_cmd_cfunc): Update.
7877	* cli/cli-decode.h: Update.
7878
78792002-06-15  Mark Kettenis  <kettenis@gnu.org>
7880
7881	* i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7882	(_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7883
78842002-06-15  Andrew Cagney  <ac131313@redhat.com>
7885
7886	* defs.h (auto_boolean): Declare enum.
7887	* command.h (cmd_auto_boolean): Delete enum.
7888	* mips-tdep.c (mask_address_var): Update.
7889	(mips_mask_address_p): Update.
7890	(show_mask_address): Update.
7891	* remote.c (struct packet_config): Update.
7892	(update_packet_config): Update.
7893	(show_packet_config_cmd): Update.
7894	(packet_ok): Update.
7895	(add_packet_config_cmd): Update.
7896	(_initialize_remote):
7897	* command.h: Update.
7898	* cli/cli-setshow.c (parse_auto_binary_operation): Update.
7899	(do_setshow_command): Update.
7900	* cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7901	* cli/cli-decode.h: Update.
7902
79032002-06-15  Mark Kettenis  <kettenis@gnu.org>
7904
7905	* config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7906	config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7907	config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7908	config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7909	config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7910	* config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7911
7912	* i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7913	list of DJGPP COFF targets.
7914
7915	* config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7916	(NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7917	(FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7918	(FP0_REGNUM): Remove define.
7919	(MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7920	MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7921	(i386_register_virtual_size): Remove protoype.
7922	* i386-tdep.c (i386_register_virtual_size): Removed.
7923	(i386_extract_return_value, i386_store_return_value): Use
7924	FP0_REGNUM instead of NUM_FREGS to determine whether the
7925	floating-point registers are available.
7926	(i386_gdbarch_init): Tweak FIXME about FPU registers.
7927	Adjust for removal of macros mentioned above.
7928
79292002-06-15  Mark Kettenis  <kettenis@gnu.org>
7930
7931	* i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7932	comments.
7933	(fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7934	Remove prototypes.
7935	(supply_gregset, fill_gregset): Remove use of register keyword and
7936	remove declaration for regmap.  Use I386_NUM_GREGS instead of
7937	NUM_REGS and NUM_FREGS.
7938	(FPREGSET_FSAVE_OFFSET): Remove.
7939	(supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7940	NUM_FREGS to determine whether the floating-point registers are
7941	available.
7942
7943	* i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7944	gnu_store_registers): Replace usage of NUM_GREGS with
7945	I386_NUM_GREGS.
7946
7947	* i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7948	OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7949	usage of NUM_GREGS with I386_NUM_GREGS.
7950
7951	* i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7952
7953	* i386bsd-nat.c: Include "i386-tdep.h".
7954	(supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7955	I386_NUM_GREGS.
7956
7957	* i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7958	and associated comment.  They no longer make any sense, since we
7959	don't use this file anymore on Linux.
7960
7961	* config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7962	* i386-tdep.c (i386_register_offset, i386_register_size): Use
7963	I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7964	elements in these arrays.
7965	(_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7966	MAX_NUM_REGS.
7967
79682002-06-15  Mark Kettenis  <kettenis@gnu.org>
7969
7970	* osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7971	* osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7972
79732002-06-14  Andrew Cagney  <cagney@redhat.com>
7974
7975	* gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7976	EXTRACT_RETURN_VALUE.
7977	(DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7978	EXTRACT_STRUCT_VALUE_ADDRESS.
7979	* gdbarch.h, gdbarch.c: Regenerate.
7980
7981	* values.c (value_being_returned): Handle
7982	DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7983	(EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7984
7985	* arm-linux-tdep.c (arm_linux_init_abi): Update.
7986	* arm-tdep.c (arm_gdbarch_init): Update.
7987	* avr-tdep.c (avr_gdbarch_init): Update.
7988	* cris-tdep.c (cris_gdbarch_init): Update.
7989	* d10v-tdep.c (d10v_gdbarch_init): Update.
7990	* ia64-tdep.c (ia64_gdbarch_init): Update.
7991	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7992	* rs6000-tdep.c (rs6000_gdbarch_init): Update.
7993	* s390-tdep.c (s390_gdbarch_init): Update.
7994	* sh-tdep.c (sh_gdbarch_init): Update.
7995	* s390-tdep.c (s390_gdbarch_init): Update.
7996	* sparc-tdep.c (sparc_gdbarch_init): Update.
7997	* ns32k-tdep.c (ns32k_gdbarch_init): Update.
7998	* v850-tdep.c (v850_gdbarch_init): Update.
7999	* vax-tdep.c (vax_gdbarch_init): Update.
8000	* x86-64-tdep.c (x86_64_gdbarch_init): Update.
8001	* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8002
8003	* config/arc/tm-arc.h: Update.
8004	* config/d30v/tm-d30v.h: Update.
8005	* config/fr30/tm-fr30.h: Update.
8006	* config/h8300/tm-h8300.h: Update.
8007	* config/h8500/tm-h8500.h: Update.
8008	* config/i386/tm-i386.h: Update.
8009	* config/i386/tm-ptx.h: Update.
8010	* config/i386/tm-symmetry.h: Update.
8011	* config/i960/tm-i960.h: Update.
8012	* config/m32r/tm-m32r.h: Update.
8013	* config/m68k/tm-delta68.h: Update.
8014	* config/m68k/tm-linux.h: Update.
8015	* config/m68k/tm-m68k.h: Update.
8016	* config/m88k/tm-m88k.h: Update.
8017	* config/mcore/tm-mcore.h: Update.
8018	* config/mips/tm-mips.h: Update.
8019	* config/mn10200/tm-mn10200.h: Update.
8020	* config/pa/tm-hppa.h: Update.
8021	* config/pa/tm-hppa64.h: Update.
8022	* config/sparc/tm-sp64.h: Update.
8023	* config/sparc/tm-sparc.h: Update.
8024	* config/sparc/tm-sparclet.h: Update.
8025	* config/z8k/tm-z8k.h: Update.
8026
80272002-06-14  Andrew Cagney  <cagney@redhat.com>
8028
8029	* Makefile.in (i386_linux_tdep_h): Define.
8030	(i386_tdep_h, i387_tdep_h): Define.
8031	(i386-linux-nat.o): Add $(i386_linux_tdep_h),
8032	$(i386_tdep_h) and $(i387_tdep_h).
8033	* i386-linux-nat.c: Include "i386-linux-tdep.h".
8034
80352002-06-14  Mark Kettenis  <kettenis@gnu.org>
8036
8037	* config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8038	Already covered by the default.
8039
8040	* config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8041	TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8042	(i386_gdbarch_init): Initialize long_double_format and long_double
8043	bit.
8044
8045	* config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8046	i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8047	Move these to ...
8048	* config/i386/i386sol2.mh: ... here.
8049	* config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8050	(sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8051	(SIGCONTEXT_PC_OFFSET): Remove define.
8052	(IN_SIGTRAMP): Remove define.
8053	* i386-sol2-tdep.c: New file.
8054
8055	* config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8056	* config/i386/tm-i386nw.h: Removed.
8057
8058	* config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8059	USE_STRUCT_CONVENTION): Remove defines.
8060	(JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8061	(get_longjmp_target): Remove prototype.
8062	(IN_SIGTRAMP): Remove define.
8063	(i386bsd_in_sigtramp): Remove prototype.
8064	(i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8065	function.  Update comment accordingly
8066	(SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8067	(FRAME_SAVED_PC): Remove define.
8068	(i386bsd_frame_saved_pc): Remove prototype.
8069	* config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8070	GET_LONGJMP_TARGET): Remove defines.
8071	(get_longjmp_target): Remove prototype.
8072	(IN_SIGTRAMP): Remove define.
8073	(i386bsd_in_sigtramp): Remove prototype.
8074	(i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8075	function.  Update comment accordingly
8076	(SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8077	(FRAME_SAVED_PC): Remove define.
8078	(i386bsd_frame_saved_pc): Remove prototype.
8079	* config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8080	Remove prototype.
8081	(USE_STRUCT_CONVENTION): Remove prototype.
8082	* i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8083	declaration.
8084	(_initialize_i386bsd_nat): Revise logic to determine some
8085	constants at compile time when compiling a native GDB.  Warn if
8086	things don't match up with what we expect.
8087	* i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8088	Remove variables.
8089	(i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8090	to use date stored in `struct gdbarch_tdep'.
8091	(i386bsd_sigcontext_offset): Remove varaible.
8092	(i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8093	stored in `struct gdbarch_tdep'.
8094	(i386bsd_frame_saved_pc): Make static.
8095	(i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8096	(i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8097	i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8098	i386fbsd4_sc_pc_offset): New variables.
8099	(i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8100	i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8101	functions.
8102	(i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8103	functions.
8104	* i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8105	Modify the value of i386fbsd_sigtramp_start and
8106	i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8107	i386fbsd_sigtramp_end.
8108	* i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8109	function.
8110
8111	* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8112	define to i386-linux-tdep.h.
8113	(NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8114	REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8115	defines.
8116	(i386_linux_register_name, i386_linux_register_byte,
8117	i386_linux_register_raw_size): Remove prototypes.
8118	(i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8119	(SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8120	(IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8121	TARGET_WRITE_PC): Remove defines.
8122	(i386_linux_in_sigtramp, i386_linux_frame_chain,
8123	i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8124	i386_linux_write_pc): Remove prototypes.
8125	(JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8126	(get_longjmp_target): Remove prototype.
8127	* i386-linux-tdep.h: New file.
8128	* i386-linux-nat.c: Include "i386-linux-tdep.h".
8129	* i386-linux-tdep.c: Include "i386-tdep.h" and
8130	"i386-linux-tdep.h".
8131	(i386_linux_register_name, i386_linux_register_byte,
8132	i386_linux_register_raw_size, i386_linux_in_sigtramp,
8133	i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8134	Make static.
8135	(i386_linux_init_abi): New function.
8136	(_initialize_i386_linux_tdep): New function.
8137
8138	* config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8139	(i386_saved_pc_after_call): Remove prototype.
8140	(MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8141	(REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8142	DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8143	(i386_register_name, i386_stab_reg_to_regnum,
8144	i386_dwarf_reg_to_regnum): Remove prototypes.
8145	(SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8146	SIZEOF_SSE_REGS): Remove defines.
8147	(REGISTER_BYTES): Remove define.
8148	(REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8149	(i386_register_byte, i386_register_raw_size): Remove prototypes.
8150	(FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8151	(i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8152	* config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8153	(JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8154	JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8155	(get_longjmp_target): Remove prototype.
8156	(I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8157	(sigtramp_saved_pc): Remove define.
8158	(i386v4_sigtramp_saved_pc): Remove prototype.
8159	* config/i386/tm-go32.h (FRAME_CHAIN,
8160	FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8161	(i386go32_frame_saved_pc): Remove prototype.
8162	(JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8163	(get_longjmp_target): Remove prototype.
8164	* i386-tdep.h: Include "osabi.h".
8165	(enum i386_abi): Removed.
8166	(enum struct_return): New enum.
8167	(struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8168	struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8169	sc_pc_offset members.
8170	(i386_gdbarch_register_os_abi): Remove prototype.
8171	(I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8172	I386_SSE_NUM_REGS): New defines.
8173	(I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8174	I386_SSE_SIZEOF_REGS): New defines.
8175	(i386_register_name, i386_register_byte, i386_register_raw_size):
8176	New prototypes.
8177	(i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8178	(i386bsd_sigtramp_saved_pc): New prototype.
8179	* i386-tdep.c: Don't include "elf-bfd.h".
8180	(i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8181	i386_frame_chain, i386_saved_pc_after_call): Make static.
8182	(i386_frame_saved_pc): Rewrite to call architecture dependent
8183	function to deal with signal handlers.  Make static.
8184	(i386go32_frame_saved_pc): Removed.
8185	[GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8186	Removed.
8187	(i386_get_longjmp_target): New function.
8188	(default_struct_convention, pcc_struct_convention,
8189	reg_struct_convention, valid_conventions, struct_convention): New
8190	variables.
8191	(i386_use_struct_convention): New function.
8192	(i386v4_sigtramp_saved_pc): Renamed to
8193	i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8194	(i386_pc_in_sigtramp): New function.
8195	(i386_abi_names): Removed.
8196	(ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8197	ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8198	Removed.
8199	(process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8200	i386_gdbarch_register_os_abi): Removed.
8201	(struct i386_abi_handler): Removed.
8202	(i386_abi_handler_list): Removed.
8203	(i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8204	functions.
8205	(i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8206	i386_nw_init_abi): New functions.
8207	(i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8208	Use set_gdbarch_xxx() calls instead of relying on macros for a
8209	number of calls.
8210	(i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8211	(_initialize_i386_tdep): Add new 'struct-convcention' command.
8212	Register the various architecture variants defined in this file.
8213
82142002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8215
8216	* gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8217	(struct main_type): Remove arg_types member.  Update comments for
8218	struct field.
8219	(TYPE_ARG_TYPES): Remove.
8220	(TYPE_FN_FIELD_ARGS): Update.
8221	(smash_to_method_type): Update prototype.
8222
8223	* c-typeprint.c (cp_type_print_method_args): Take method type
8224	instead of argument list.  Use new argument layout.  Simplify.
8225	(c_type_print_args): Use new argument layout.  Simplify.
8226	(c_type_print_base): Update call to cp_type_print_method_args.
8227	* dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8228	argument; use die->type instead.  Update call to
8229	smash_to_method_type.
8230	(read_structure_scope): Update call to dwarf2_add_member_fn.
8231	* gdbtypes.c (allocate_stub_method): Update comment.
8232	(smash_to_method_type): Take new NARGS and VARARGS arguments.
8233	Use new argument layout.
8234	(check_stub_method): Use new argument layout.  Don't count
8235	void as an argument.
8236	(print_arg_types): Update comments.  Use new argument layout.
8237	(recursive_dump_type): Don't print arg_types member.
8238	* hpread.c (hpread_read_struct_type): Use new argument layout.
8239	(fixup_class_method_type): Likewise.
8240	(hpread_type_lookup): Likewise.
8241	* stabsread.c (read_type): Update calls to read_args and
8242	smash_to_method_type.
8243	(read_args): Use new argument layout.  Simplify.
8244	* valops.c (typecmp): Use new argument layout.  Update parameters
8245	and comments.  Simplify.
8246	(hand_function_call): Use new argument layout.
8247	(search_struct_method): Update call to typecmp.
8248	(find_overload_match): Use new argument layout.
8249
82502002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8251
8252	* NEWS: Mention multithreaded debug support for gdbserver.
8253
82542002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8255
8256	* MAINTAINERS: Mention NEWS.
8257
82582002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8259
8260	* mips-tdep.c (PROC_SYMBOL): Add warning comment.
8261	(struct mips_objfile_private, compare_pdr_entries): New.
8262	(non_heuristic_proc_desc): Read the ".pdr" section if it
8263	is present.
8264
82652002-06-12  Andrew Cagney  <ac131313@redhat.com>
8266
8267	* arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8268	(arm_debug): New static variable.
8269	(_initialize_arm_tdep): Add ``set debug arm'' command.
8270
82712002-06-12  Andrew Cagney  <ac131313@redhat.com>
8272
8273	* Makefile.in (sim_arm_h): Define.
8274	(arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8275	* arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8276	(arm_register_sim_regno): New function, map an internal REGNUM
8277	onto a simulator register number.
8278	(arm_gdbarch_init): Set register_sim_regno.
8279
82802002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8281
8282	* MAINTAINERS: Add self.
8283
82842002-06-11  Jim Blandy  <jimb@redhat.com>
8285
8286	* source.c (source_info): Mention whether the symtab has
8287	information about preprocessor macros.
8288
8289	Call the command `info macro', not `show macro'.
8290	* macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8291	Fix error message.
8292	(_initialize_macrocmd): Register `info_macro_command' in
8293	`infolist', not `showlist'.
8294
82952002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8296
8297	* mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8298	(MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8299	(MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8300	(MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8301	(MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8302	unconditionally.
8303	(set_mipsfpu_single_command, set_mipsfpu_double_command)
8304	(set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8305	(_initialize_mips_tdep): Remove dead code.
8306	* config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8307	(MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8308	* config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8309	(MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8310	* config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8311	MIPS_LAST_FP_ARG_REGNUM): Remove.
8312
83132002-06-11  Michal Ludvig  <mludvig@suse.cz>
8314
8315	* dwarf2cfi.c (unwind_tmp_obstack_init): New.
8316	(unwind_tmp_obstack_free, parse_frame_info)
8317	(update_context, cfi_read_fp, cfi_write_fp)
8318	(cfi_frame_chain, cfi_init_extra_frame_info)
8319	(cfi_virtual_frame_pointer): Use the above function.
8320	* dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8321
83222002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8323
8324	* v850-tdep.c (v850_type_is_scalar): New function.
8325	(v850_use_struct_convention): Match current gcc implementation
8326	as close as possible.
8327	(v850_push_arguments): Fix stack_offset handling.  Don't write
8328	struct_addr into register.  This is done by v850_store_struct_return.
8329	(v850_extract_return_value): Care for structs.
8330	(v850_store_return_value): Ditto.
8331	(v850_store_struct_return): Actually write address.
8332
83332002-06-11  Michal Ludvig  <mludvig@suse.cz>
8334
8335	* x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8336	without debug information too.
8337
83382002-06-10  Andrew Cagney  <ac131313@redhat.com>
8339
8340	* gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8341	Make multi-arch pure.
8342	* gdbarch.h, gdbarch.c: Re-generate.
8343	* arm-tdep.c (arm_print_float_info): Update.
8344	* arch-utils.h (default_print_float_info): Update.
8345	* arch-utils.c (default_print_float_info): Update.
8346	* infcmd.c (float_info): Update call.
8347
83482002-06-10  Andrew Cagney  <ac131313@redhat.com>
8349
8350	* Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8351	the front of the initialize list.
8352
83532002-06-10  Andrew Cagney  <ac131313@redhat.com>
8354
8355	* infrun.c (struct inferior_status): Replace fields
8356	selected_frame_address and selected_level with field
8357	selected_frame_id.
8358	(save_inferior_status): Update.  Use get_frame_id.
8359	(struct restore_selected_frame_args): Delete.
8360	(restore_selected_frame): Update.  Use frame_find_by_id.
8361	(restore_inferior_status): Update.
8362
8363	* breakpoint.h (struct breakpoint): Change type of
8364	watchpoint_frame to frame_id.
8365	* breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8366	call to get_current_frame.
8367	(do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8368	get_current_frame.
8369	(watchpoint_check): Use frame_find_by_id.
8370
8371	* frame.h (record_selected_frame): Delete declaration.
8372	* stack.c (record_selected_frame): Delete function.
8373
8374	* frame.h (struct frame_id): Define.
8375	(get_frame_id): Declare.
8376	(frame_find_by_id): Declare.
8377	* frame.c (frame_find_by_id): New function.
8378	(get_frame_id): New function.
8379
83802002-06-10  Andrey Volkov <avolkov@transas.com>
8381
8382	* ser-e7kpc.c: Fix duplicated define and call of
8383        _initialize_ser_e7000pc
8384
83852002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8386
8387	* signals/signals.c (target_signal_from_host): Fix #ifdef
8388	SIGRTMIN case.
8389	(do_target_signal_to_host): Likewise.
8390
83912002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8392
8393	* mips-tdep.c (mips_find_abi_section): New function.
8394	(mips_gdbarch_init): Call it.
8395
83962002-06-09  Mark Kettenis  <kettenis@gnu.org>
8397
8398	* solib-svr4.c (init_fetch_link_map_offsets): Simply return
8399	legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8400	after Andrew's 2002-06-08 gdbarch change.
8401
84022002-06-09  Mark Kettenis  <kettenis@gnu.org>
8403
8404	* i386-linux-nat.c (suppy_gregset): Don't supply
8405	I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8406	register cache.
8407	(fill_gregset): Don't fetch it under the same circumstances.
8408
84092002-06-09  Andrew Cagney  <cagney@redhat.com>
8410
8411	* Makefile.in (callback_h): Define.
8412	(remote_sim_h): Update path to remote-sim.h.
8413	(remote-rdp.o): Add $(callback_h).
8414	(remote-sim.o): Use $(callback_h).
8415	* remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8416	* remote-rdp.c: Include "gdb/callback.h".
8417
84182002-06-09  Mark Kettenis  <kettenis@gnu.org>
8419
8420	* osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8421	* osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8422
84232002-06-08  Andrew Cagney  <ac131313@redhat.com>
8424
8425	* sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8426	* rdi-share/serpardr.c: Ditto.
8427	* rdi-share/unixcomm.c: Ditto.
8428	* rdi-share/serdrv.c: Ditto.
8429	* rdi-share/hostchan.h: Ditto.
8430	* rdi-share/hostchan.c: Ditto.
8431	* rdi-share/host.h: Ditto.
8432	* rdi-share/devsw.c: Ditto.
8433
8434	* objfiles.h: Change type of obj_private to void pointer.
8435	* pa64solib.c: Update copyright.  Don't include "assert.h", use
8436	strcmp instead of STREQ, use LONGEST, do not use PTR
8437	* somsolib.c: Ditto.
8438
8439	* config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8440	bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8441	bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8442
84432002-06-08  Andrew Cagney  <ac131313@redhat.com>
8444
8445	* frame.c (GET_SAVED_REGISTER): Delete macro definition.
8446	(default_get_saved_register): Delete function.
8447	* gdbarch.sh (GET_SAVED_REGISTER): Set default to
8448	generic_unwind_get_saved_register.
8449	* gdbarch.h, gdbarch.c: Re-generate.
8450
84512002-06-08  Andrew Cagney  <ac131313@redhat.com>
8452
8453	* gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8454	generic_func_frame_chain_valid.
8455	* gdbarch.h, gdbarch.c: Re-generate.
8456	* blockframe.c (generic_func_frame_chain_valid): Only check
8457	PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8458	passing FP to PC_IN_CALL_DUMMY.
8459	Fix PR gdb/360.
8460
84612002-06-08  Andrew Cagney  <ac131313@redhat.com>
8462
8463	* gdbarch.sh (struct gdbarch_data): Add field init_p.
8464	(register_gdbarch_data): Initialize init_p.
8465	(gdbarch_data): Initialize data pointer using the init function.
8466	(init_gdbarch_data): Delete function.
8467	(gdbarch_update_p): Update.
8468	(initialize_non_multiarch): Update.
8469	(struct gdbarch): Add field initialized_p.
8470	* gdbarch.h, gdbarch.c: Re-generate.
8471
84722002-06-07  Michal Ludvig  <mludvig@suse.cz>
8473
8474	* x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8475	(supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8476	better do the things actually here.
8477	* x86-64-tdep.c (x86_64_register_name2nr): New.
8478	(x86_64_register_name): Renamed to x86_64_register_nr2name.
8479	(x86_64_gdbarch_init): Respect the above change.
8480	* x86-64-tdep.h (x86_64_register_name2nr)
8481	(x86_64_register_nr2name): Add prototypes.
8482	* config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8483
84842002-06-06  Michael Snyder  <msnyder@redhat.com>
8485
8486	* d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8487	Delete extra braces and re-indent.
8488	(d10v_store_return_value): Char return values
8489	must be shifted over by one byte in R0.
8490	(d10v_extract_return_value): Delete extra braces, re-indent.
8491
84922002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8493
8494        * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8495        (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8496        (d10v_integer_to_address): Rewrite.
8497        (d10v_frame_init_saved_regs): When reading fp and sp registers use
8498        the d10v specific functions which take care of converting to the
8499        correct space.
8500
85012002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8502
8503	* config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8504	altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8505
85062002-06-02  Andrew Cagney  <ac131313@redhat.com>
8507
8508	* config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8509	includes.
8510	* config/tm-linux.h: Ditto.
8511	* config/alpha/tm-alphalinux.h: Ditto.
8512	* config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8513	* config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8514	* config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8515	* config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8516	* config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8517	* config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8518	* config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8519	* config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8520	* config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8521	* config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8522	* config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8523	* config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8524	* config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8525	* config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8526	* config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8527	* config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8528	* config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8529	* config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8530	* config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8531	* config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8532	* config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8533	* config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8534	* config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8535	* config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8536	* config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8537	* config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8538	* config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8539	* config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8540	* config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8541	* config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8542	* config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8543	* config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8544	* config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8545	* config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8546	* config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8547	* config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8548	* config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8549
85502002-05-04  Aidan Skinner <aidan@velvet.net>
8551
8552	* ada-exp.tab.c: New file
8553	* ada-exp.y: New file
8554	* ada-lang.c: New file
8555	* ada-lang.h: New file
8556	* ada-lex.c: New file
8557	* ada-lex.l: New file
8558	* ada-tasks.c: New file
8559	* ada-typeprint.c: New file
8560	* ada-valprint.c: New file
8561
85622002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8563
8564	* ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8565	use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8566
85672002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8568
8569	* config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8570	insetead of ppc-linux-tdep.o.
8571	* config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8572	* config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8573
85742002-06-02  Andrew Cagney  <ac131313@redhat.com>
8575
8576	2002-05-07 Christian Groessler <chris@groessler.org>
8577        * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8578	bit register contents for little endian hosts.
8579
85802002-06-01  Andrew Cagney  <ac131313@redhat.com>
8581
8582	* MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8583	any maintainer.
8584
85852002-06-01  Andrew Cagney  <ac131313@redhat.com>
8586
8587	* gdbarch.h: Regenerate.
8588
85892002-06-01  Andrew Cagney  <ac131313@redhat.com>
8590
8591	* MAINTAINERS: Add everyone to write-after-approval list.
8592
85932002-06-01  Andrew Cagney  <ac131313@redhat.com>
8594
8595	* stack.c (frame_info): Use frame_register_unwind instead of
8596	saved_regs.  Mention when the SP is on the stack or in a register.
8597
8598	* frame.h (frame_register_unwind_ftype): Define.  Document.
8599	(struct frame_info): Add field register_unwind and
8600	register_unwind_cache.
8601	(frame_register_unwind): Declare.
8602	(generic_unwind_get_saved_register): Declare.
8603
8604	* frame.c (frame_register_unwind): New function.
8605	(generic_unwind_get_saved_register): New function.
8606
8607	* blockframe.c (generic_call_dummy_register_unwind): New function.
8608	(frame_saved_regs_register_unwind): New function.
8609	(set_unwind_by_pc): New function.
8610	(create_new_frame): New function.
8611	(get_prev_frame): New function.
8612
86132002-05-30  Andrew Cagney  <ac131313@redhat.com>
8614
8615	* a29k-share/: Delete directory.
8616	* remote-vx29k.c: Delete file.
8617
86182002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8619
8620	* config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8621	ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8622
86232002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8624
8625	* Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8626	sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8627	(sparc64nbsd-nat.o)
8628	(sparcnbsd-nat.o)
8629	(sparcnbsd-tdep.o): New dependency lists.
8630	* NEWS: Note new UltraSPARC NetBSD native configuration.
8631	* configure.host (sparc64-*-netbsd*): New host.
8632	* configure.tgt (sparc-*-netbsdelf*)
8633	(sparc-*-netbsd*): Set gdb_target to nbsd.
8634	(sparc64-*-netbsd*): New target.
8635	* sparc64nbsd-nat.c: New file.
8636	* sparcnbsd-nat.c: New file.
8637	* sparcnbsd-tdep.c: New file.
8638	* sparcnbsd-tdep.h: New file.
8639	* config/sparc/nbsd.mt: New file.
8640	* config/sparc/nbsd64.mh: New file.
8641	* config/sparc/nbsd64.mt: New file.
8642	* config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8643	sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8644	(HOST_IPC): Remove.
8645	* config/sparc/nbsdaout.mt: Remove.
8646	* config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8647	sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8648	(HOST_IPC): Remove.
8649	* config/sparc/nbsdelf.mt: Remove.
8650	* config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8651	sparc-nat.c compatiblity defines.
8652	* config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8653	(GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8654	* config/sparc/tm-nbsd64.h: New file.
8655	* config/sparc/tm-nbsdaout.h: Remove.
8656	* config/sparc/xm-nbsd.h: Remove.
8657
86582002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8659
8660	* Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8661	* sparc-tdep.c: Include osabi.h.
8662	(gdbarch_tdep): Add osabi member.
8663	(_initialize_sparc_tdep): Use gdbarch_register.
8664	(sparc_gdbarch_init): Use generic OS ABI framework.
8665	(sparc_dump_tdep): New function.
8666
86672002-05-30  Kevin Buettner  <kevinb@redhat.com>
8668
8669	* corefile.c (do_captured_read_memory_integer): Return non-zero
8670	result.
8671	(safe_read_memory_integer): Copy result of memory read when
8672	status is non-zero.  Also, add comments.
8673
86742002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8675
8676	* Makefile.in (ppc_tdep_h): Define.
8677	(ppc-linux-nat.o)
8678	(ppc-linux-tdep.o)
8679	(rs6000-tdep.o): Use $(ppc_tdep_h).
8680	(ppc-sysv-tdep.o)
8681	(ppcnbsd-nat.o)
8682	(ppcnbsd-tdep.o): New dependency lists.
8683	* ppc-tdep.h: Use generic OS ABI framework.
8684	* ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8685	(ppc_linux_init_abi): New functions.
8686	(ppc_sysv_abi_broken_use_struct_convention)
8687	(ppc_sysv_abi_use_struct_convention)
8688	(ppc_sysv_abi_push_arguments): Move to...
8689	* ppc-sysv-tdep.c: ...here.
8690	* ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8691	* rs6000-tdep.c (process_note_abi_tag_sections)
8692	(get_elfosabi): Remove.
8693	(rs6000_gdbarch_init): Use generic OS ABI framework.
8694	(rs6000_dump_tdep): New function.
8695	(_initialize_rs6000_tdep): Use gdbarch_register.
8696	* config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8697	* config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8698	* config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8699	of ppc-linux-tdep.o.
8700	* config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8701	* config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8702	* config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8703	* config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8704	* config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8705	* config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8706
87072002-05-29  Jim Blandy  <jimb@redhat.com>
8708
8709	* macroscope.c (default_macro_scope): Put `void' in empty argument
8710	list.
8711
87122002-05-29  Andrew Cagney  <ac131313@redhat.com>
8713
8714	* Makefile.in (arch-utils.o): Add $(sim_regno_h).
8715	* arch-utils.c: Include "sim-regno.h".
8716	* gdbarch.sh: Don't include "sim-regno.h".
8717	* gdbarch.h, gdbarch.c: Regenerate.
8718	* sim-regno.h (legacy_register_sim_regno): Move declaration from
8719	here.
8720	* arch-utils.h (legacy_register_sim_regno): To here.
8721	* remote-sim.c (legacy_register_sim_regno): Move function from
8722	here.
8723	* arch-utils.c (legacy_register_sim_regno): To here.
8724
87252002-05-28  Andrew Cagney  <ac131313@redhat.com>
8726
8727	* sim-regno.h: New file.
8728	* Makefile.in (sim_regno_h): Define.
8729	(d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8730	* remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8731	(legacy_register_sim_regno): New function.
8732	(one2one_register_sim_regno): New function.
8733	(gdbsim_fetch_register): Rewrite.
8734	(gdbsim_store_register): Only store a register when
8735	REGISTER_SIM_REGNO is valid.
8736	* d10v-tdep.c: Include "sim-regno.h".
8737	(d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8738	(d10v_ts3_register_sim_regno): Ditto.
8739	* gdbarch.sh: Include "sim-regno.h".
8740	(REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8741	* gdbarch.h, gdbarch.c: Regenerate.
8742	* arch-utils.h (default_register_sim_regno): Delete declaration.
8743	* arch-utils.c (default_register_sim_regno): Delete function.
8744
87452002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8746
8747	* ppcnbsd-nat.c: Rewrite.
8748	* ppcnbsd-tdep.c: New file.
8749	* ppcnbsd-tdep.h: New file.
8750	* config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8751	solib.o, and solib-svr4.o.
8752	* config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8753	nbsd-tdep.o, and corelow.o.
8754
87552002-05-28  Andrew Cagney  <ac131313@redhat.com>
8756
8757	* MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8758	`tr' and `sed'.  Mention that `broken' targets are not expected to
8759	build.
8760
87612002-05-27  Michal Ludvig  <mludvig@suse.cz>
8762
8763	* x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8764	Let PC point right after the prologue before looking up symbols.
8765
87662002-05-27  Martin M. Hunt  <hunt@redhat.com>
8767
8768	* i386-tdep.c (i386_register_virtual_type): Return
8769	builtin_type_vec128i for SSE registers.
8770
8771	* gdbtypes.h (builtin_type_vec128i): Declare.
8772
8773	* gdbtypes.c (build_builtin_type_vec128i): New function.
8774	(builtin_type_v2_double, builtin_type_v4_int64): New types.
8775	(builtin_type_vec128i): New type for SSE2 128-bit registers.
8776	(build_gdbtypes): Initialize new builtin vector types.
8777	(_initialize_gdbtypes): Register new vector types with gdbarch.
8778
87792002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8780
8781	* MAINTAINERS: ns32k is not longer an obsolete candidate,
8782	since it has been multi-arch'd.
8783	* NEWS: Note that ns32k-*-* is now partial multi-arch.
8784	Move Alpha and VAX multi-arch news entries to same section
8785	as other multi-arch news.
8786
87872002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8788
8789	* ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8790	target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8791	static.  Rename some register numbers to put them in ns32k-tdep
8792	private namespace.
8793	(ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8794	ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8795	functions.
8796	(_initialize_ns32k_tdep): Use gdbarch_register.
8797	* ns32k-tdep.h: New file.
8798	* ns32knbsd-tdep.c: New file.
8799	* config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8800	* config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8801	(IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8802	REGISTER_BYTES, REGISTER_BYTE): Remove.
8803	* config/ns32k/tm-ns32k.h: New file.
8804	* config/ns32k/tm-umax.h: Remove.
8805
88062002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8807
8808	* ns32k-tdep.c (ns32k_saved_pc_after_call,
8809	ns32k_store_struct_return, ns32k_extract_return_value,
8810	ns32k_store_return_value, ns32k_extract_struct_value_address): New
8811	functions.
8812	* config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8813	ns32k_saved_pc_after_call.
8814	(STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8815	(EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8816	(STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8817	(EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8818	ns32k_extract_struct_value_address.
8819
88202002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8821
8822	* ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8823	ns32k_fix_call_dummy): New.
8824	* config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8825	ns32k_call_dummy_words.
8826	(SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8827	(CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8828	CALL_DUMMY_NARGS): Remove.
8829	(FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8830
88312002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8832
8833	* ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8834	ns32k_frame_saved_pc, ns32k_frame_args_address,
8835	ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8836	ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8837	* config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8838	* config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8839	(BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8840	(BREAKPOINT): Remove..
8841	(FRAME_CHAIN): Define as ns32k_frame_chain.
8842	(FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8843	(FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8844	(FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8845	(FRAME_FIND_SAVED_REGS): Remove.
8846	(FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8847	(PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8848	(POP_FRAME): Define as ns32k_pop_frame.
8849
88502002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8851
8852	* ns32k-tdep.c (ns32k_register_byte_32082,
8853	ns32k_register_byte_32382, ns32k_register_raw_size,
8854	ns32k_register_virtual_size, ns32k_register_virtual_type): New
8855	functions.
8856	* config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8857	ns32k_register_byte_32382.
8858	* config/ns32k/tm-umax.h: Update copyright years.
8859	(REGISTER_BYTE): Define as ns32k_register_byte_32082.
8860	(REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8861	(REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8862	(REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8863	(ns32k_get_enter_addr): Fix prototype.
8864
88652002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8866
8867	* ns32k-tdep.c: Update copyright years.
8868	(ns32k_register_name_32082): New function.
8869	(ns32k_register_name_32382): Ditto.
8870	* config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8871	(REGISTER_NAME): Define as ns32k_register_name_32382.
8872	* config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8873	(REGISTER_NAME): Define as ns32k_register_name_32082.
8874
88752002-05-24  Jim Blandy  <jimb@redhat.com>
8876
8877	* dwarf2read.c (free_line_header): Use xfree, not free.
8878
88792002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8880
8881	* config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8882	alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8883
88842002-05-23  Andrew Cagney  <ac131313@redhat.com>
8885
8886	* PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8887
88882002-05-23  Andrew Cagney  <ac131313@redhat.com>
8889
8890	From Ross Alexander at NEC Europe:
8891	* config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8892
88932002-05-23  Michael Snyder  <msnyder@redhat.com>
8894
8895	* cli/cli-dump.c (restore_command): Use parse_and_eval_long
8896	for input, rather than parse_and_eval_address.
8897
88982002-05-23  Andrew Cagney  <ac131313@redhat.com>
8899
8900	* d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8901	* Makefile.in (sim_d10v_h): Update definition.
8902
89032002-05-24  Andrew Cagney  <cagney@redhat.com>
8904
8905	* d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8906	change `2002-05-22 Michael Snyder' below.
8907	(d10v_push_arguments): Ditto.
8908	(d10v_extract_return_value): Ditto.
8909
89102002-05-23  Jim Blandy  <jimb@redhat.com>
8911
8912	* macrotab.c (check_for_redefinition): Don't complain if the new
8913	definition is the same as the previous one.  Take more arguments
8914	to allow the comparison.
8915	(macro_define_object, macro_define_function): Pass more arguments
8916	to check_for_redefinition.
8917
89182002-05-22  Michael Snyder  <msnyder@redhat.com>
8919
8920	* d10v-tdep.c: Change a few macros to enums for ease of debugging.
8921	(d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8922	(d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8923	(d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8924	Don't bail if return_pc is PC_IN_CALL_DUMMY.
8925	Add a temp variable to save a call (and a memory read).
8926	(d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8927	if possible (so that PC_IN_CALL_DUMMY will work).
8928
89292002-05-22  Corinna Vinschen  <vinschen@redhat.com>
8930
8931	* MAINTAINERS: Remove status `OBSOLETE' from v850.
8932
89332002-05-22  Michal Ludvig  <mludvig@suse.cz>
8934
8935	* dwarf2cfi.c (frame_state_for): Added safety check for a valid
8936	fde->cie_ptr.
8937	(dwarf2_build_frame_info): Corrected handling of eh_frame.
8938	(dwarf2_build_frame_info): Add offset to fde->initial_location
8939	so that frames of shared libraries are mapped correctly.
8940	(execute_stack_op): Change type of 'result' from ULONGEST to
8941	CORE_ADDR.
8942
89432002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8944
8945	* config/alpha/tm-nbsd.h: Include solib.h.
8946
89472002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8948
8949	* alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8950	assumptions about the host's byte order.
8951
89522002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8953
8954	* Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8955	to dependency list.
8956	* alphanbsd-tdep.c: Include solib-svr4.h.
8957	* shnbsd-tdep.c: Ditto.
8958
89592002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
8960
8961	* Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8962	nbsd-tdep.h to dependency list.
8963	* configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8964	i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8965	ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8966	nbsdaout.mh and nbsdelf.mh consistently.
8967	* configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8968	ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8969	nbsdaout.mt and nbsdelf.mh consistently.
8970	* armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8971	(arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8972	to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8973	* config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8974	a.out shared library stuff from here...
8975	* config/nm-nbsdaout.h: ...to here.
8976	* config/tm-nbsd.h: Remove.
8977	* config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8978	* config/arm/nbsd.mh: Remove.
8979	* config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8980	nbsd-tdep.o.
8981	* config/arm/nbsdaout.mh: New file.
8982	* config/arm/nbsdelf.mh: New file.
8983	* config/arm/nm-nbsdaout.h: New file.
8984	* config/i386/nbsd.mh: Remove.
8985	* config/i386/nbsd.mt: Remove.
8986	* config/i386/nbsdaout.mh: New file.
8987	* config/i386/nbsdaout.mt: New file.
8988	* config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8989	* config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8990	* config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8991	i386_register_u_addr): Remove.
8992	* config/i386/nm-nbsdaout.h: New file.
8993	* config/i386/nm-nbsdelf.h: Remove.
8994	* config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8995	(USE_STRUCT_CONVENTION): Remove.
8996	* config/i386/tm-nbsdaout.h: New file.
8997	* config/i386/tm-nbsdelf.h: Remove.
8998	* config/m68k/nbsd.mh: Remove.
8999	* config/m68k/nbsd.mt: Remove.
9000	* config/m68k/nbsdaout.mh: New file.
9001	* config/m68k/nbsdaout.mt: New file.
9002	* config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9003	* config/m68k/nm-nbsdaout.h: New file.
9004	* config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9005	(IN_SOLIB_CALL_TRAMPOLINE): Define.
9006	* config/ns32k/nbsd.mh: Remove.
9007	* config/ns32k/nbsd.mt: Remove.
9008	* config/ns32k/nbsdaout.mh: New file.
9009	* config/ns32k/nbsdaout.mt: New file.
9010	* config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9011	* config/ns32k/nm-nbsdaout.h: New file.
9012	* config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9013	(IN_SOLIB_CALL_TRAMPOLINE): Define.
9014	* config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9015	(SVR4_SHARED_LIBS): Remove.
9016	* config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9017	* config/sparc/nbsd.mh: Remove.
9018	* config/sparc/nbsd.mt: Remove.
9019	* config/sparc/nbsdaout.mh: New file.
9020	* config/sparc/nbsdaout.mt: New file.
9021	* config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9022	* config/sparc/nbsdelf.mt: New file.
9023	* config/sparc/nm-nbsdaout.h: New file.
9024	* config/sparc/nm-nbsdelf.h: Remove.
9025	* config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9026	* config/sparc/tm-nbsdaout.h: New file.
9027
90282002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9029
9030	* Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9031	mipsnbsd-tdep.c
9032	(mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9033
90342002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9035
9036	* Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9037	shnbsd-nat.c.
9038	(shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9039
90402002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9041
9042	* NEWS: Note new MIPS NetBSD native configuration.
9043	* configure.host (mips*-*-netbsd*): New host.
9044	* configure.tgt (mips*-*-netbsd*): New target.
9045	* mipsnbsd-nat.c: New file.
9046	* mipsnbsd-tdep.c: New file.
9047	* mipsnbsd-tdep.h: New file.
9048	* config/mips/nbsd.mh: New file.
9049	* config/mips/nbsd.mt: New file.
9050	* config/mips/nm-nbsd.h: New file.
9051	* config/mips/tm-nbsd.h: New file.
9052
90532002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9054
9055	* Makefile.in (SFILES): Add osabi.c.
9056	(COMMON_OBS): Add osabi.o.
9057	(osabi.o): New dependency list.
9058	* osabi.c: New file.
9059	* osabi.h: New file.
9060	* doc/gdbint.texinfo: Document new generic OS ABI framework.
9061
9062	* Makefile.in (alpha_tdep_h): Define and use instead of
9063	alpha-tdep.h.
9064	* alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9065	get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9066	Remove.
9067	(alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9068	* alpha-tdep.h: Include osabi.h.
9069	(alpha_abi): Remove.
9070	(gdbarch_tdep): Use generic OS ABI framework.
9071	* alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9072	gdbarch_register_osabi.
9073	* alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9074	* alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9075	* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9076
9077	* Makefile.in (sh_tdep_h): Add osabi.h.
9078	* sh-tdep.h (sh_osabi): Remove.
9079	(gdbarch_tdep): Use generic OS ABI framework.
9080	* sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9081	sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9082	(sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9083	* shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9084
9085	* Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9086	* arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9087	gdbarch_register_osabi.
9088	* arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9089	arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9090	(get_elfosabi): Rename to...
9091	(arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9092	ABI framework support routines.
9093	(arm_gdbarch_init): Use generic OS ABI framework.
9094	(arm_dump_tdep): Likewise.
9095	(_initialize_arm_tdep): Likewise.
9096	* arm-tdep.h: Include osabi.h.
9097	(arm_abi): Remove.
9098	(gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9099	osabi member.
9100	(arm_gdbarch_register_os_abi): Remove prototype.
9101	* armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9102	(_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9103
9104	* Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9105	* mips-tdep.c: Include osabi.h.
9106	(gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9107	OS ABI framework.
9108
91092002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9110
9111	* h8300-tdep.c: Fix formatting.
9112
91132002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9114
9115	* rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9116	printing vector registers.
9117
91182002-05-19  Andrew Cagney  <ac131313@redhat.com>
9119
9120	From Fernando Nasser:
9121	* remote.c (remote_async_open_1): Re-throw the exception when the
9122	connection fails.
9123	(remote_cisco_open): Ditto.
9124	(remote_open_1): Ditto.
9125
91262002-05-19  Andrew Cagney  <ac131313@redhat.com>
9127
9128	* remote.c (remote_start_remote_dummy): Add uiout parameter.
9129	(remote_start_remote): Add uiout parameter.  Pass through to
9130	remote_start_remote_dummy.
9131	(remote_open_1): Use catch_exception instead of catch_errors.
9132	(remote_async_open_1): Ditto.
9133	(remote_cisco_open): Ditto.
9134
91352002-05-19  Andrew Cagney  <ac131313@redhat.com>
9136
9137	* remote.c (remote_start_remote): Replace PTR with void pointer.
9138	(sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9139	static.
9140
91412002-05-18  Andrew Cagney  <ac131313@redhat.com>
9142
9143	* gdb_indent.sh: Allow the script to be run in the sim directory.
9144
91452002-05-18  Mark Kettenis  <kettenis@gnu.org>
9146
9147	* config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9148	* config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9149
9150	* corelow.c (core_open): Only call set_gdbarch_from_file if
9151	exec_bfd is NULL.
9152
91532002-05-17  Andrey Volkov <avolkov@transas.com>
9154
9155	* h8300-tdep.c: Add support of EXR register
9156	* config/h8300/tm-h8300.h: Ditto.
9157
91582002-05-17  Andrey Volkov <avolkov@transas.com>
9159
9160	* h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9161
91622002-05-17  Andrey Volkov <avolkov@transas.com>
9163
9164	* h8300-tdep.c: Change literal regnums to REGNO.
9165
91662002-05-17  Jim Blandy  <jimb@redhat.com>
9167
9168	* NEWS: Note addition of macro support.
9169
9170	Expand preprocessor macros in C expressions.
9171	* c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9172	(scan_macro_expansion, scanning_macro_expansion,
9173	finished_macro_expansion): New function declarations.
9174	(expression_macro_lookup_func, expression_macro_lookup_baton): New
9175	variable declarations.
9176	* parser-defs.h (expression_context_pc): New declaration.
9177	* parse.c (expression_context_pc): New variable.
9178	(parse_exp_1): Set expression_context_pc, as well as
9179	expression_context_block.
9180	* c-exp.y (yylex): If we're not already reading the result of a
9181	macro expansion, try to macro-expand the next token.  When we're
9182	done scanning a macro expansion, switch back to the mainline text.
9183	Commas and `if's in a macro's expansion don't terminate the input.
9184	* c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9185	(macro_original_text, macro_expanded_text,
9186	expression_macro_lookup_func, expression_macro_lookup_baton): New
9187	variables.
9188	(scan_macro_expansion, scanning_macro_expansion,
9189	finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9190	c_preprocess_and_parse): New functions.
9191	(c_language_defn, cplus_language_defn, asm_language_defn): Call
9192	c_preprocess_and_parse, instead of c_parse.
9193	* Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9194	(c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9195
9196Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9197
9198	* sh-tdep.c (gdb_print_insn_sh64): Delete.
9199	(gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9200	(sh_gdbarch_init): Always use gdb_print_insn_sh.
9201
92022002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9203
9204	* NEWS: Add section for multi-arched targets.  Add v850 to that section.
9205
92062002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9207
9208	* Makefile.in (sh_tdep_h): Define and use.
9209	* config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9210	register enum): Move to...
9211	* * sh-tdep.h: ...here.
9212	* sh-tdep.c: Include sh-tdep.h.
9213	* sh3-rom.c: Likewise.
9214	* shnbsd-tdep.c: Likewise.
9215
92162002-05-16  Michael Snyder  <msnyder@redhat.com>
9217
9218	* arm-tdep.c: Spelling fix in comment.
9219
92202002-05-16  Jim Blandy  <jimb@redhat.com>
9221
9222	Add commands for manually expanding macros and showing their
9223	definitions.
9224	* macrocmd.c, macroscope.c, macroscope.h: New files.
9225	* Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9226	(macroscope_h): New variable.
9227	(HFILES_NO_SRCDIR): Add macroscope.h.
9228	(COMMON_OBS): Add macrocmd.o, macroscope.o.
9229	(macroscope.o, macrocmd.o): New rules.
9230
9231	Teach the Dwarf 2 reader to read macro information.
9232	* dwarf2read.c: #include "macrotab.h".
9233	(dwarf_macinfo_buffer): New variable.
9234	(struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9235	dwarf_macinfo_size.
9236	(DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9237	(dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9238	dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9239	dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9240	dwarf2_macro_spaces_in_definition): New complaints.
9241	(dwarf2_has_info): Initialize dwarf_macinfo_offset.
9242	(dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9243	(dwarf2_build_psymtabs_hard): Record the buffer and its size in
9244	the partial symbol table.
9245	(psymtab_to_symtab_1): Set the macinfo buffer and size globals
9246	from what's recorded in the partial symbol table.
9247	(read_file_scope): If the compilation unit has a
9248	`DW_AT_macro_info' attribute, read its macro information.
9249	* Makefile.in (dwarf2read.o): Depend on macrotab.h.
9250
92512002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9252
9253	Fix PR gdb/546
9254	* ser-tcp.c: Don't include <netinet/udp.h>.
9255
92562002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9257
9258	* MAINTAINERS: Update my email address.
9259
92602002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9261
9262	* config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9263	include file of the same name.
9264
92652002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9266
9267	* configure.tgt: Mark v850 as multi-arched.
9268	* config/v850/tm-v850.h: Remove file.
9269	* config/v850/v850.mt: Eliminate TM_FILE.
9270
92712002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9272
9273	* v850-tdep.c: Full multi-arch.
9274	* config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9275	Define GDB_MULTI_ARCH to 2.
9276
92772002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9278
9279	* p-exp.y (current_type): New static variable.
9280	Carries the type of the expression at the position that is parsed.
9281	(push_current_type, pop_current_type): Two new functions. Used
9282	to store/restore current_type in expression on specific tokens.
9283	(search_field): New static variable. Set to one after parsing a point
9284	as at that point only a FIELDNAME token should be searched.
9285	(FIELDNAME): New token. After a point only a token belonging to
9286	current_type type definition is allowed.
9287	(all over token rules): reset and change current_type according
9288	to rules.
9289	(exp '[' rule): insert implicit array index field if
9290	exp is a pascal string type.
9291
92922002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9293
9294	* v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9295	frame info.  Use frame_info's saved_regs instead of matching member
9296	in extra_frame_info throughout.
9297	(v850_frame_init_saved_regs): New function.
9298	(v850_init_extra_frame_info): Move most functionality into
9299	v850_frame_init_saved_regs().
9300	* config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9301	(v850_frame_find_saved_regs): Remove declaration.
9302	(FRAME_FIND_SAVED_REGS): Remove definition.
9303	(v850_frame_init_saved_regs): Add declaration.
9304	(FRAME_INIT_SAVED_REGS): Add definition.
9305
93062002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9307
9308	* v850-tdep.c: Begin multi-arch'ing v850.
9309	(v850_target_architecture_hook): Remove function.
9310	(v850_gdbarch_init): New function.  Add code previously in
9311	v850_target_architecture_hook().
9312	(_initialize_v850_tdep): Don't  set target_architecture_hook.
9313	Call register_gdbarch_init() instead.
9314
93152002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9316
9317	* gdbtypes.h (struct cplus_struct_type): Remove args field.
9318	* hpread.c (hpread_read_struct_type): Remove assignments to args.
9319	(fixup_class_method_type): Likewise.
9320
93212002-05-15  Jim Blandy  <jimb@redhat.com>
9322
9323	Add macro structures to GDB's symbol tables.  Nobody puts anything
9324	in them yet.
9325	* symtab.h (struct symtab): New member: `macro_table'.
9326	* buildsym.h (pending_macros): New global variable.
9327	* buildsym.c: #include "macrotab.h".
9328	(buildsym_init): Initialize `pending_macros'.
9329	(end_symtab): If we found macro information while reading a CU's
9330	debugging info, do build a symtab structure for it.  Make the
9331	symtab point to the macro information, and clear the
9332	`pending_macros' pointer which held it while we were reading the
9333	debug info.
9334	(really_free_pendings): Free any pending macro table.
9335	* objfiles.h (struct objfile): New member: `macro_cache'.
9336	* objfiles.c (allocate_objfile): Set allocate and free functions
9337	for the macro cache's objstack.
9338	(free_objfile): Empty the macro cache's obstack.
9339	* symfile.c (reread_symbols): Empty the macro cache's obstack, and
9340	set new allocate and free functions for it.
9341	* solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9342	free functions for the macro cache's objstack.  (Why is this
9343	function building its own objfile?)
9344	* symmisc.c (print_objfile_statistics): Print statistics on the
9345	macro bcache.
9346	* Makefile.in: Note that buildsym.o depends on macrotab.h.
9347
93482002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9349
9350	* config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9351	(REGISTER_U_ADDR): Delete definition.
9352	(arm_register_u_addr): Delete declaration.
9353
93542002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9355
9356	* arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9357	(ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9358
93592002-05-14  Andrew Cagney  <ac131313@redhat.com>
9360
9361	* regcache.c (register_valid): Revise comments refering to "Not
9362	available" and "unavailable".
9363	* frame.c (frame_register_read): Ditto.
9364	* findvar.c (value_of_register): Ditto.
9365
93662002-05-15  Andrew Cagney  <cagney@redhat.com>
9367
9368	* Makefile.in (remote_sim_h): Replace remote-sim_h.
9369	(remote-sim.o): Update dependencies.
9370	(d10v-tdep.o): Specify dependencies.
9371	(sim_d10v_h): Define.
9372
93732002-05-14  Jim Blandy  <jimb@redhat.com>
9374
9375	* macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9376	* macrotab.c (macro_lookup_inclusion, find_definition,
9377	new_macro_table): Same.
9378
9379	* macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9380	not `! strcmp ()'.  This is a dubious improvement.
9381	* macrotab.c (macro_lookup_inclusion, find_definition): Same.
9382
9383	* macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9384	although it's not necessary, to avoid a warning.
9385
93862002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9387
9388	* gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9389	(TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9390	TYPE_INSTANCE_FLAGS.
9391	(struct main_type): New.
9392	(struct type): Move most members to struct main_type.  Change
9393	cv_type and as_type to new type_chain member.  Add instance_flags.
9394	(TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9395	(TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9396	(finish_cv_type): Remove prototype.
9397	* gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9398	Set TYPE_CHAIN.
9399	(alloc_type_instance): New function.
9400	(smash_type): New function.
9401	(make_pointer_type, make_reference_type, make_function_type)
9402	(smash_to_member_type, smash_to_method_type): Call smash_type.
9403	(make_qualified_type): New function.
9404	(make_type_with_address_space): Call make_qualified_type.
9405	(make_cv_type): Likewise.
9406	(finish_cv_type): Remove unnecessary function.
9407	(replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9408	(recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9409	remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9410	* c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9411	* dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9412	* hpread.c (hpread_read_struct_type): Likewise.
9413	* stabsread.c (read_struct_type): Likewise.
9414
94152002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9416
9417	* configure.tgt: Add a catch all sh* target, for cases like
9418	sh[2,3,4]-elf and sh-hms.
9419
94202002-05-14  Keith Seitz  <keiths@redhat.com>
9421
9422	* event-loop.c (create_file_handler): Don't do anything but
9423	update data when we are given a fd which we are already
9424	monitoring.
9425
94262002-05-14  Michal Ludvig  <mludvig@suse.cz>
9427
9428	* dwarf2cfi.c (context_cpy): Copy registers correctly.
9429	(update_context): Use __func__ in warnings.
9430
94312002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9432
9433	* ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9434	and tcp_close to net_open and net_close.
9435	(net_open): Accept "udp:" and "tcp:" specifications.  Connect
9436	using UDP if requested.  Don't try to disable Nagle on UDP
9437	sockets.
9438	* remote.c (remote_serial_open): New function.  Warn about UDP.
9439	(remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9440
94412002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9442
9443	* MAINTAINERS: List sh-elf as buildable with ,-Werror.
9444
94452002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9446
9447	* configure.tgt: Remove sh-hms target.
9448	* MAINTAINERS: Don't list sh-hms as a separate target.
9449
94502002-05-13  Jim Blandy  <jimb@redhat.com>
9451
9452	Add first preprocessor macro-expansion files.
9453	* macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9454	* Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9455	(splay_tree_h, macroexp_h, macrotab_h): New variable.
9456	(HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9457	(COMMON_OBS): Add macrotab.o, macroexp.o.
9458	(macroexp.o, macrotab.o): New rules.
9459
94602002-05-13  Andrew Cagney  <ac131313@redhat.com>
9461
9462	* config/m88k/tm-m88k.h: Update copyright.
9463	(m88k_target_write_pc): Declare
9464	(TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9465	(M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9466	(SHIFT_INST_REGS): Update definition.
9467	* m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9468	using old definition of TARGET_WRITE_PC.
9469	* regcache.c (generic_target_write_pc): Delete code handling
9470	NNPC_REGNUM.
9471	* gdbarch.sh (NNPC_REGNUM): Delete.
9472	* gdbarch.h, gdbarch.c: Regenerate.
9473
94742002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9475
9476	* builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9477	builtin reg number.
9478
94792002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9480
9481	* ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9482	(gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9483	(gen_address_of, gen_struct_ref, gen_repeat): Use type
9484	access macros.
9485	* c-typeprint.c (cp_type_print_method_args): Likewise.
9486	(c_type_print_args): Likewise.
9487	* d10v-tdep.c (d10v_push_arguments): Likewise.
9488	(d10v_extract_return_value): Likewise.
9489	* expprint.c (print_subexp): Likewise.
9490	* gdbtypes.c (lookup_primitive_typename): Likewise.
9491	(lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9492	* gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9493	(TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9494	(TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9495	(TYPE_VECTOR): Likewise.
9496	* hpread.c (hpread_read_struct_type)
9497	(fix_static_member_physnames, fixup_class_method_type)
9498	(hpread_type_lookup): Likewise.
9499	* mdebugread.c (parse_symbol, parse_type): Likewise.
9500	* p-lang.c (is_pascal_string_type): Likewise.
9501	* valops.c (hand_function_call): Likewise.
9502	* x86-64-tdep.c (classify_argument): Likewise.
9503
9504	* hpread.c (hpread_read_function_type)
9505	(hpread_read_doc_function_type): Call replace_type.
9506	* dstread.c (create_new_type): Delete.
9507	(decode_dst_structure, process_dst_function): Call alloc_type.
9508	Use type access macros.
9509
95102002-05-12  Mark Kettenis  <kettenis@gnu.org>
9511
9512	* i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9513	the're not supported by the current architecture.
9514	(i387_fill_fxsave): Likewise.
9515
95162002-05-12  Fred Fish  <fnf@redhat.com>
9517
9518	* symfile.c (default_symfile_offsets): Arrange for uninitialized
9519	sect_index_xxx members to index the first slot in section_offsets
9520	if all of the section_offsets are zero.
9521
95222002-05-12  Mark Kettenis  <kettenis@gnu.org>
9523
9524	* configure.tgt (sparc-*openbsd): Remove entry accidentially
9525	checked in with last change.
9526
95272002-05-12  Mark Kettenis  <kettenis@gnu.org>
9528
9529	* configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9530	Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9531	config.sub.
9532
95332002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9534
9535	* Makefile.in: Update dependencies.
9536
95372002-05-11  Andrew Cagney  <ac131313@redhat.com>
9538
9539	* language.c (local_hex_string_custom): Simplify.  Do not depend
9540	on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9541
9542	* memattr.c (mem_info_command): Replace calls to
9543	longest_local_hex_string and longest_local_hex_string_custom.
9544	* buildsym.c (make_blockvector): Ditto.
9545	* solib.c (info_sharedlibrary_command): Ditto.
9546	* tracepoint.c (tracepoints_info): Ditto.
9547	* symtab.c (print_msymbol_info): Ditto.
9548
9549	* language.c (local_hex_string): Delete.
9550	(local_hex_string_custom): Delete.
9551	(longest_local_hex_string): Rename to local_hex_string.
9552	(longest_local_hex_string_custom): Rename to
9553	local_hex_string_custom.
9554	* language.h (local_hex_string): Change parameter type to LONGEST.
9555	(local_hex_string_custom): Ditto.
9556	(longest_local_hex_string): Delete declaration.
9557	(longest_local_hex_string_custom): Ditto.
9558
9559	* solib.c: Update copyright.
9560	* memattr.c: Update copyright.
9561
95622002-05-11  Andrew Cagney  <ac131313@redhat.com>
9563
9564	* arch-utils.h (legacy_register_to_value): Declare.
9565	(legacy_value_to_register): Declare.
9566	(legacy_convert_register_p): Declare.
9567	* arch-utils.c (legacy_register_to_value): New function.
9568	(legacy_value_to_register): New function.
9569	(legacy_convert_register_p): New function.
9570
9571	* gdbarch.sh (REGISTER_TO_VALUE): Define.
9572	(VALUE_TO_REGISTER): Define.
9573	(CONVERT_REGISTER_P): Define.
9574	* gdbarch.h, gdbarch.c: Regenerate.
9575
9576	* valops.c (value_assign): Use CONVERT_REGISTER_P and
9577	VALUE_TO_REGISTER.
9578	* findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9579	CONVERT_REGISTER_P.
9580
95812005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9582	    Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9583
9584	* Makefile.in: Update dependencies for valops.c.
9585	* valops.c: Include "gdb_assert.h".
9586	(typecmp): Skip THIS parameter to methods.
9587	(find_method_list): Remove static_memfuncp argument,
9588	update callers.  Check for stub methods.
9589	(find_value_oload_method_list): Don't set *static_memfuncp.
9590	(find_overload_match): Don't check for stub methods.  Assert
9591	that methods are not stubbed.  Handle static methods.
9592	(value_find_oload_method_list): Remove static_memfuncp argument.
9593	* gdbtypes.c (check_stub_method): Do not add THIS pointer
9594	to the argument list for static stub methods.
9595	* value.h (value_find_oload_method_list): Update prototype.
9596
95972002-05-11  Andrew Cagney  <ac131313@redhat.com>
9598
9599	* arch-utils.h (generic_register_size): Declare.
9600	(generic_register_raw_size, generic_register_virtual_size): Delete
9601	declarations.
9602	* arch-utils.c (generic_register_raw_size): Delete.
9603	(generic_register_size): New function.
9604	(generic_register_virtual_size): Delete.
9605
9606	* gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9607	default generic_register_size.
9608	* gdbarch.h, gdbarch.c: Re-generate.
9609
9610	* d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9611	register_virtual_size.
9612	* x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9613	* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9614
96152002-05-11  Andrew Cagney  <ac131313@redhat.com>
9616
9617	* gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9618	* gdbarch.h, gdbarch.c: Regenerate.
9619	* gnu-v3-abi.c: Update copyright.
9620	(vtable_address_point_offset): Update.
9621	(gnuv3_rtti_type): Update.
9622	(gnuv3_baseclass_offset): Update.
9623	* solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9624	(init_fetch_link_map_offsets): Update.
9625	* remote.c (get_remote_state): Update.
9626
96272002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9628
9629	* TODO: Remove value_headof/value_from_vtable_info comment.
9630	* printcmd.c (print_command_1): Don't call value_from_vtable_info.
9631	* values.c (value_headof, value_from_vtable_info): Delete.
9632	* value.h (value_from_vtable_info): Delete prototype.
9633
96342002-05-11  Andrew Cagney  <ac131313@redhat.com>
9635
9636	* Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9637	gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9638	$(gdb_regex_h).
9639	(gdb_assert_h): Define.
9640	(gdb_wait_h): Define.
9641	(gdb_regex_h): Define.
9642
96432002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9644
9645	From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9646	* linespec.c (find_methods): Handle GCC 3.x template constructors.
9647
96482002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9649
9650	* nbsd-tdep.c: Fix comment.
9651
96522002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9653
9654	* Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9655	(alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9656	(nbsd-tdep.o): New dependency list.
9657	* alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9658	nbsd-tdep.h.
9659	(alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9660	(alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9661	* nbsd-tdep.c: New file.
9662	* nbsd-tdep.h: New file.
9663	* shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9664	nbsd-tdep.h.
9665	(shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9666	(shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9667	* config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9668	* config/sh/nbsd.mt (TDEPFILES): Ditto.
9669
96702002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9671
9672	* config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9673	* config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9674	* config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9675	* config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9676	* config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9677	* config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9678
96792002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9680
9681	* config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9682	* config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9683	* config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9684	* config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9685	* config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9686	* config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9687	* config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9688
96892002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9690
9691	* i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9692	fetch_elfcore_registers to...
9693	* i386nbsd-tdep.c: ...here.
9694	(i386nbsd_use_struct_convention): Rename to...
9695	(i386nbsd_aout_use_struct_convention): ...this.
9696	(i386nbsd_supply_reg): New function.
9697	(i386nbsd_fill_reg): New function.
9698	(fetch_core_registers): Use i386nbsd_supply_reg.
9699	(fetch_elfcore_registers): Likewise.
9700	(_initialize_i386nbsd_tdep): New function.
9701	* config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9702	* config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9703	* config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9704	* config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9705	(i386nbsd_aout_use_struct_convention): ...this.
9706
97072002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9708
9709	* shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9710	(store_inferior_registers): Use shnbsd_fill_reg.
9711	* shnbsd-tdep.c (sh_nbsd_supply_registers,
9712	sh_nbsd_supply_register): Collapse into...
9713	(shnbsd_supply_reg): ...this.
9714	(sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9715	(shnbsd_fill_reg): ...this.
9716	(sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9717	(shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9718	(fetch_core_registers): Use shnbsd_supply_reg.
9719	(fetch_elfcore_registers): Use shnbsd_supply_reg.
9720	(sh_nbsd_core_fns): Rename to...
9721	(shnbsd_core_fns): ...this.
9722	(sh_nbsd_elfcore_fns): Rename to...
9723	(shnbsd_elfcore_fns): ...this.
9724	(sh_nbsd_init_abi): Rename to...
9725	(shnbsd_init_abi): ...this.
9726	(_initialize_sh_nbsd_tdep): Rename to...
9727	(_initialize_shnbsd_tdep): ...this.
9728	* shnbsd-tdep.h (sh_nbsd_supply_registers,
9729	sh_nbsd_supply_register, sh_nbsd_fill_registers,
9730	sh_nbsd_fill_register): Remove prototypes.
9731	(shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9732
97332002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9734
9735	* Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9736	(i387-nat.o): Delete dependency list.
9737	(go32-nat.o): Change i387-nat.h to i387-tdep.h.
9738	(x86-64-linux-nat.o): Likewise.
9739	* i387-nat.c: Delete file, moving contents to...
9740	* i387-tdep.c: ...here.
9741	* i387-nat.h: Rename...
9742	* i387-tdep.h: ...to this.
9743	* go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9744	* i386-linux-nat.c: Likewise.
9745	* i386bsd-nat.c: Likewise.
9746	* i386gnu-nat.c: Likewise.
9747	* i386nbsd-nat.c: Likewise.
9748	* i386v4-nat.c: Likewise.
9749	* x86-64-linux-nat.c: Likewise.
9750	* config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9751	* config/i386/go32.mh (NATDEPFILES): Likewise.
9752	* config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9753	* config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9754	* config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9755	* config/i386/linux.mh (NATDEPFILES): Likewise.
9756	* config/i386/nbsd.mh (NATDEPFILES): Likewise.
9757	* config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9758	* config/i386/obsd.mh (NATDEPFILES): Likewise.
9759	* config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9760
97612002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9762
9763	* Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9764	(alphanbsd-nat.o): Remove dependency list.
9765	(alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9766	* alphanbsd-nat.c: Delete.  Contents moved to...
9767	* alphanbsd-tdep.c: ...here.
9768	(_initialize_alphanbsd_tdep): Register core functions.
9769	* config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9770
97712002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9772
9773	* Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9774	(alphabsd-nat.o): Depend on alphabsd-tdep.h.
9775	(alphanbsd-nat.o): Likewise.
9776	(alphabsd-tdep.o): New dependency list.
9777	* alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9778	(fill_gregset): Use alphabsd_fill_reg.
9779	(supply_fpregset): Use alphabsd_supply_fpreg.
9780	(fill_fpregset): Use alphabsd_fill_fpreg.
9781	(fetch_inferior_registers): Use struct reg and struct fpreg
9782	rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9783	and alphabsd_supply_fpreg.
9784	(store_inferior_registers): Use struct reg and struct fpreg
9785	rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9786	and alphabsd_fill_fpreg.
9787	* alphabsd-tdep.c: New file.
9788	* alphabsd-tdep.h: New file.
9789	* alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9790	(fetch_elfcore_registers): Use alphabsd_supply_reg and
9791	alphabsd_supply_fpreg.
9792	* config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9793	* config/alpha/nbsd.mt (TDEPFILES): Likewise.
9794
97952002-05-11  Eric Christopher  <echristo@redhat.com>
9796
9797	* mips-tdep.c (mips_double_register_type): Fix thinko.
9798	(mips_single_register_type): Ditto.
9799	* MAINTAINERS: Add self.
9800
98012002-05-11  Mark Kettenis  <kettenis@gnu.org>
9802
9803	* i387-nat.c (i387_supply_register, i387_fill_fsave,
9804	i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9805	right thing on architectures with different endianness and/or
9806	integer sizes.
9807
98082002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9809
9810	From Christian Limpach <chris@Pin.LU>
9811	* configure.in: Change sed expression which comments out
9812	NATDEPFILES to also comment out continuation lines.
9813	* configure: Regenerate.
9814
98152002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9816
9817        * sh-tdep.c: Clean up code erroneously reintroduced by previous
9818	big patch.
9819
98202002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9821
9822        * sh-tdep.c: Include correct file.
9823
98242002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9825
9826        New support for sh64-elf (sh5) target.
9827
9828        * configure.tgt: For sh64-elf target, default to sh-elf.
9829
9830        * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9831        (struct gdbarch_tdep): Add new fields for new registers and ABI
9832        info.
9833
9834        * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9835        (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9836        MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9837        UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9838        IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9839        IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9840        IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9841        IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9842        IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9843        IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9844        IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9845        (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9846        pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9847        sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9848        gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9849        sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9850        sh64_get_gdb_regnum, sh64_media_reg_base_num,
9851        sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9852        sign_extend, sh64_nofp_frame_init_saved_regs,
9853        sh64_init_extra_frame_info, sh64_get_saved_register,
9854        sh64_extract_struct_value_address, sh64_pop_frame,
9855        sh64_push_arguments, sh64_extract_return_value,
9856        sh64_store_return_value, sh64_show_media_regs,
9857        sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9858        sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9859        sh_sh64_register_virtual_type,
9860        sh_sh64_register_convert_to_virtual,
9861        sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9862        sh64_register_read, sh64_pseudo_register_write,
9863        sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9864        do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9865        sh64_do_pseudo_register, sh_compact_do_registers_info,
9866        sh64_do_registers_info, sh_gdbarch_init): New functions.
9867
98682002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9869
9870	* sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9871
98722002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9873
9874	* linespec.c (decode_line_1): Check for a double quote after
9875	a filename correctly.
9876
98772002-05-10  Jim Blandy  <jimb@redhat.com>
9878
9879	Properly track the size of the current objfile's .debug_line section.
9880	* dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9881	(DWARF_LINE_SIZE): New macro.
9882	(dwarf2_build_psymtabs_hard): Record the line section's size in
9883	the partial symbol table.
9884	(psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9885	symbol table.
9886
98872002-05-10  Petr Sorfa  <petrs@caldera.com>
9888
9889	* ia64-tdep.c: Handle breakpoints on L instruction type
9890	in MLX instruction bundle by moving the breakpoint to
9891	the third slot (X instruction type) as L holds only data.
9892
98932002-05-10  Kevin Buettner  <kevinb@redhat.com>
9894
9895	* dbxread.c (discarding_local_symbols_complaint): New complaint.
9896	(process_one_symbol): Complain about discarding local symbols
9897	due to a misplaced N_LBRAC entry.
9898
98992002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9900
9901	From Daniel Berlin <dan@cgsoftware.com>
9902	* linespec.c (find_toplevel_char): '<' and '>' also increase and
9903	decrease the depth we are at, in the case of templates.
9904
99052002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9906
9907	* mips-tdep.c (mips_float_register_type): New function.
9908	(mips_double_register_type): New function.
9909	(mips_print_register): Use them.
9910	(do_fp_register_row): Likewise.
9911
99122002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9913
9914	* signals/signals.c (signals): Remove conditional compilation around
9915	Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9916	(target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9917
99182002-05-09  Michael Snyder  <msnyder@redhat.com>
9919
9920	* remote-rdp.c (remote_rdp_can_run): Remove.
9921
99222002-05-09  Tom Tromey  <tromey@redhat.com>
9923
9924	* jv-valprint.c (java_val_print): Handle `char' as a special case
9925	of TYPE_CODE_INT.
9926
99272002-05-09  Michael Snyder  <msnyder@redhat.com>
9928
9929	* arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9930	strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9931	strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9932	str r(0123),[sp,#nn].
9933	(arm_skip_prologue): Ditto.  Also make disassembly
9934	order-independent by placing it in a loop.
9935
99362002-05-06  Michael Snyder  <msnyder@redhat.com>
9937
9938	* stabsread.c (read_type): Add recognition for new attribute:
9939	"@V;" means that an array type is actually a vector.
9940	This is analogous to the vector flag that's been added to dwarf2.
9941
99422002-05-09  Mark Kettenis  <kettenis@gnu.org>
9943
9944	* i386-tdep.h (i386_abi): New enum.
9945	(struct gdbarch_tdep): Replace os_ident member with abi.
9946	(i386_gdbarch_register_os_abi): New prototype.
9947	* i386-tdep.c (i386_abi_names): New array.
9948	(process_note_abi_tag_sections): Removed.
9949	(process_note_sections): New function.
9950	(i386_elf_abi_from_note, i386_elf_abi): New functions.
9951	(struct i386_abi_handler): New struct.
9952	(i386_abi_handler_list): New variable.
9953	(i386_gdbarch_register_os_abi): New function.
9954	(i386_gdbarch_init): Adapt for the changes given above.
9955
99562002-05-08  Daniel Jacobowitz  <drow@mvista.com>
9957
9958	* gregset.h: Say "GNU/Linux".
9959
99602002-05-08  Elena Zannoni  <ezannoni@redhat.com>
9961
9962	* gdbtypes.c : Add new builtin type for 64 bit vectors.
9963        (build_gdbtypes): Build builtin_type_v2_float.
9964	(_initialize_gdbtypes): Register new builtin type.
9965
99662002-05-08  Andrew Cagney  <ac131313@redhat.com>
9967
9968	* gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9969	(clear_gdbarch_swap): New function.
9970	(initialize_non_multiarch): Call.
9971	(gdbarch_update_p): Before calling init(), swap out and clear the
9972	existing architecture.
9973	* gdbarch.c: Regenerate.
9974
99752002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9976
9977	* config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9978	alphanbsd-tdep.c.
9979
99802002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9981
9982	* sh-nbsd-nat.c: Rename to...
9983	* shnbsd-nat.c: ...this.
9984	* sh-nbsd-tdep.c: Rename to...
9985	* shnbsd-tdep.c: ...this.
9986	* sh-nbsd-tdep.h: Rename to...
9987	* shnbsd-tdep.h: ...this.
9988	* config/sh/nbsd.mh: Use shnbsd-nat.o.
9989	* config/sh/nbsd.mt: Use shnbsd-tdep.o.
9990
99912002-05-08  Richard Earnshaw  <rearnsha@arm.com>
9992
9993	* remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9994	concatenation for command help messages.
9995
99962002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
9997
9998	* NEWS: Note new sh*-*-netbsdelf* configuration.
9999	* configure.host: Set gdb_host_cpu to sh for all sh*.
10000	(sh*-*-netbsdelf*): New host.
10001	* configure.tgt: Set gdb_target_cpu to sh for all sh*.
10002	(sh*-*-netbsdelf*): New target.
10003	* sh-nbsd-nat.c: New file.
10004	* sh-nbsd-tdep.c: New file.
10005	* sh-nbsd-tdep.h: New file.
10006	* config/sh/nbsd.mh: New file.
10007	* config/sh/nbsd.mt: New file.
10008	* config/sh/nm-nbsd.h: New file.
10009	* config/sh/tm-nbsd.h: New file.
10010
100112002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10012
10013	* sh-tdep.c (sh_osabi_names): Declare.
10014	(process_note_abi_tag_sections): New function.
10015	(get_elfosabi): Ditto.
10016	(sh_gdbarch_register_os_abi): Ditto.
10017	(sh_dump_tdep): Ditto.
10018	_initialize_sh_tdep): Use gdbarch_register to register
10019	sh_gdbarch_init and sh_dump_tdep.
10020	* config/sh/tm-sh.h (sh_osabi): Declare.
10021	(gdbarch_tdep): Add sh_osabi and osabi_name members.
10022
100232002-05-07  Andrew Cagney  <ac131313@redhat.com>
10024
10025	* arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10026	(thumb_scan_prologue): Ditto.
10027	(arm_find_callers_reg): Ditto.
10028	(arm_frame_chain): Ditto.
10029	(arm_init_extra_frame_info): Ditto.
10030	(arm_frame_saved_pc): Ditto.
10031	(arm_pop_frame): Ditto.
10032	(arm_push_return_address): New function.
10033	(arm_gdbarch_init): Initialize use_generic_dummy_frames,
10034	call_dummy_location, call_dummy_breakpoint_offset_p,
10035	call_dummy_breakpoint_offset, call_dummy_p,
10036	call_dummy_stack_adjust_p, call_dummy_words,
10037	sizeof_call_dummy_words, call_dummy_start_offset,
10038	call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10039	call_dummy_address, push_return_address and push_dummy_frame for
10040	generic dummy frames.
10041
100422002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10043
10044	* sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10045	size computation for alloca.
10046	(sh_fp_frame_init_saved_regs): Likewise.
10047
100482002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10049
10050	* arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10051	(ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10052	* arm-tdep.c (arm_store_return_value): Use them.
10053	Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10054	* remote-rdp.c (remote_rdp_fetch_register): Use
10055	ARM_MAX_REGISTER_RAW_SIZE.
10056	(remote_rdp_store_register): Likewise.
10057
100582002-05-07  Michal Ludvig  <mludvig@suse.cz>
10059
10060	* dwarf2cfi.c: Code cleanup, removed unused variables,
10061	added default labels to switch {} statements.
10062	* x86-64-tdep.c: Ditto.
10063	* x86-64-linux-nat.c: Ditto.
10064
100652002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10066
10067	* solib.h: Protect against multiple inclusion.
10068
100692002-05-06  Jim Blandy  <jimb@redhat.com>
10070
10071	Add first preprocessor macro-expansion files.
10072	* macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10073	* Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10074	(splay_tree_h, macroexp_h, macrotab_h): New variable.
10075	(HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10076	(COMMON_OBS): Add macrotab.o, macroexp.o.
10077	(macroexp.o, macrotab.o): New rules.
10078
10079	Separate the job of reading the line number info statement program
10080	header (...expialidocious) out into its own function.
10081	* dwarf2read.c (struct line_head, struct filenames, struct
10082	directories): Replace with...
10083	(struct line_header): New structure, containing the full
10084	contents of the statement program header, including the
10085	include directory and file name tables.
10086	(read_file_scope): If we have line number info, instead of just
10087	calling dwarf_decode_lines to do all the work, call
10088	dwarf_decode_line_header first to get a `struct line_header'
10089	containing the data in the statement program header, and then
10090	pass that to dwarf_decode_lines, which will pick up where that
10091	left off.  Be sure to clean up the `struct line_header' object.
10092	(dwarf_decode_line_header, free_line_header, add_include_dir,
10093	add_file_name): New functions.
10094	(dwarf_decode_lines): Move all the code to read the statement
10095	program header into dwarf_decode_line_header.  Take the line
10096	header it built as the first argument, instead of the offset to
10097	the compilation unit's line number info.  Use the new `struct
10098	line_header' type instead of the old structures.  No need to do
10099	cleanups here now, since we don't allocate anything.
10100	(dwarf2_statement_list_fits_in_line_number_section,
10101	dwarf2_line_header_too_long): New complaints.
10102
101032002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10104
10105	* gdbtypes.c (init_vector_type): New function.
10106	(build_builtin_type_vec128): Simplify the representation of SIMD
10107	registers.
10108	(build_gdbtypes): Initialize new builtin vector types.
10109	(_initialize_gdbtypes): Register new vector types with gdbarch.
10110	(builtin_type_v4_float, builtin_type_v4_int32,
10111	builtin_type_v8_int16, builtin_type_v16_int8,
10112	builtin_type_v2_int32, builtin_type_v4_int16,
10113	builtin_type_v8_int8): New (renamed) SIMD types.
10114
101152002-05-06  Mark Kettenis  <kettenis@gnu.org>
10116
10117	* i387-nat.c (i387_fill_fsave): Use regcache_collect.
10118	(i387_fill_fxsave): Likewise.
10119
101202002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10121
10122	* alpha-tdep.c (alpha_extract_return_value): Don't use
10123	non-constant array size in prototype.
10124
101252002-05-04  Andrew Cagney  <ac131313@redhat.com>
10126
10127	From Brian Taylor <briant at model dot com>:
10128	* ui-out.c (ui_out_field_core_addr): Use the function
10129	longest_local_hex_string_custom'to format addresses > 32 bits
10130	wide.
10131
10132	* ui-out.c (ui_out_field_core_addr): Update comment.
10133
101342002-05-04  Andrew Cagney  <ac131313@redhat.com>
10135
10136	* stack.c (select_and_print_frame): Make static.  Delete the
10137	parameter `level'.
10138	(func_command): Update call.
10139	(select_frame_command): Delete code computing the frame level.
10140	* frame.h (select_and_print_frame): Delete declaration.
10141
101422002-05-04  Andrew Cagney  <ac131313@redhat.com>
10143
10144	* sparc-tdep.c (sparc_get_saved_register): Comment why
10145	get_prev_frame call is safe.
10146
101472002-05-04  Andrew Cagney  <ac131313@redhat.com>
10148
10149	* frame.h (select_frame): Delete level parameter.
10150	* stack.c (select_frame): Update.  Use frame_relative_level to
10151	obtain the frame's level.
10152	(select_and_print_frame): Update call.
10153	(select_frame_command): Ditto.
10154	(up_silently_base): Ditto.
10155	(down_silently_base): Ditto.
10156	* ocd.c (ocd_start_remote): Ditto.
10157	* remote-rdp.c (remote_rdp_open): Ditto.
10158	* remote-mips.c (mips_initialize): Ditto.
10159	(common_open): Ditto.
10160	* remote-e7000.c (e7000_start_remote): Ditto.
10161	* m3-nat.c (select_thread): Ditto.
10162	* hppa-tdep.c (child_get_current_exception_event): Ditto.
10163	(child_get_current_exception_event): Ditto.
10164	* varobj.c (varobj_create): Ditto.
10165	(varobj_update): Ditto.
10166	(c_value_of_root): Ditto.
10167	* tracepoint.c (finish_tfind_command): Ditto.
10168	* corelow.c (core_open): Ditto.
10169	* arch-utils.c (generic_prepare_to_proceed): Ditto.
10170	* thread.c (info_threads_command): Ditto.
10171	(switch_to_thread): Ditto.
10172	* infrun.c (normal_stop): Ditto.
10173	(restore_selected_frame): Ditto.
10174	(restore_inferior_status): Ditto.
10175	* breakpoint.c (insert_breakpoints): Ditto.
10176	(watchpoint_check): Ditto.
10177	(bpstat_stop_status): Ditto.
10178	(do_enable_breakpoint): Ditto.
10179	* blockframe.c (flush_cached_frames): Ditto.
10180	(reinit_frame_cache): Ditto.
10181
101822002-05-04  Andrew Cagney  <ac131313@redhat.com>
10183
10184	* MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10185	maintainer.
10186
101872002-05-04  Jim Blandy  <jimb@redhat.com>
10188
10189	* gdbtypes.c (replace_type): Doc fix.
10190
101912002-05-04  Andrew Cagney  <ac131313@redhat.com>
10192
10193	* valprint.c (strcat_longest): Delete commented out function.
10194	Update copyright.
10195
101962002-05-04  Andrew Cagney  <ac131313@redhat.com>
10197
10198	* MAINTAINERS: Mark a29k as deleted.
10199	* NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10200	Move new configurations to the top.
10201	* configure.tgt: Remove a29k.
10202	* config/a29k/tm-vx29k.h: Delete.
10203	* config/a29k/vx29k.mt: Delete.
10204	* config/a29k/tm-a29k.h: Delete.
10205	* config/a29k/a29k-udi.mt: Delete.
10206	* config/a29k/a29k.mt: Delete.
10207	* a29k-tdep.c: Delete.
10208	* remote-udi.c: Delete.
10209	* remote-mm.c: Delete.
10210	* remote-eb.c: Delete.
10211	* remote-adapt.c: Delete.
10212	* Makefile.in: Remove obsolete code.
10213	* config/s390/s390x.mt: Ditto.
10214	* config/s390/s390.mt: Ditto.
10215	* config/sparc/sparclynx.mh: Ditto.
10216	* config/sparc/linux.mh: Ditto.
10217	* config/pa/hppaosf.mh: Ditto.
10218	* config/pa/hppabsd.mh: Ditto.
10219	* config/ns32k/nbsd.mt: Ditto.
10220	* config/mips/vr5000.mt: Ditto.
10221	* config/m68k/sun3os4.mh: Ditto.
10222	* config/m68k/nbsd.mt: Ditto.
10223	* config/m68k/m68klynx.mh: Ditto.
10224	* config/m32r/m32r.mt: Ditto.
10225	* config/i386/x86-64linux.mt: Ditto.
10226	* config/i386/nbsdelf.mt: Ditto.
10227	* config/i386/nbsd.mt: Ditto.
10228	* config/i386/i386lynx.mh: Ditto.
10229
102302002-05-04  Andrew Cagney  <ac131313@redhat.com>
10231
10232	* target.c (debug_print_register): New function.  Handle oversize
10233	registers.
10234	(debug_to_fetch_registers): Call.
10235	(debug_to_store_registers): Call.
10236
102372002-05-03  Jim Blandy  <jimb@redhat.com>
10238
10239	* stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10240	(read_type): Doc fix.
10241	* gdbtypes.c (replace_type): Doc fix.
10242
10243	* stabsread.c (multiply_defined_struct): New complaint.
10244	(read_struct_type): If the type we were passed isn't empty, or
10245	incomplete, don't read the new struct type into it; complain,
10246	and return the original type unchanged.  Take a new `type_code'
10247	argument, which is the type code for the new type.
10248	(read_type): Rather than storing the type's type code here, pass
10249	it as an argument to read_struct_type, and let that take care of
10250	storing it.  That way, we don't overwrite the original type code,
10251	so read_struct_type can use it to decide whether we're overwriting
10252	something we shouldn't.
10253	(complain_about_struct_wipeout): New function.
10254
102552002-05-03  Andrew Cagney  <ac131313@redhat.com>
10256
10257	* gdbarch.sh: Assert that gdbarch is non-NULL.
10258	* gdbarch.c: Regenerate.
10259
102602002-05-03  Jason Merrill  <jason@redhat.com>
10261
10262	* gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10263	and return NULL.
10264
102652002-05-03  Michal Ludvig  <mludvig@suse.cz>
10266
10267	* x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10268	(x86_64_dwarf2gdb_regno_map_length),
10269	(x86_64_dwarf2_reg_to_regnum): Added.
10270	(x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10271	(x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10272	(_initialize_x86_64_tdep): Synced with the change above.
10273	(x86_64_skip_prologue): Reformulated message.
10274
102752002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10276
10277	* f-exp.y: Also use new prev_lexptr variable
10278	to improve error reporting. Based on Michael Snyder
10279	2002-04-24 dated patch to c-exp.y.
10280	* jv-exp.y: Likewise.
10281	* m2-exp.y: Likewise.
10282
102832002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10284
10285	* valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10286	we are dealing with vectors.
10287
102882002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10289
10290	* config/m68k/tm-nbsd.h: Obvious fix,
10291	correct machine name.
10292
102932002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10294
10295	* p-typeprint.c (pascal_type_print_base): Add support
10296	for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10297
102982002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10299
10300	* p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10301	for fondamental pascal 'char' type.
10302
103032002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10304
10305	* p-lang.h (is_pascal_string_type): Declaration changed,
10306	new sixth argument of type char ** added.
10307	* p-lang.c (is_pascal_string_type): Implementation
10308	changed. Args length_pos, length_size, string_pos, char_size
10309	can now be NULL. New argument arrayname set to the field
10310	name of the char array. Return value set to char array
10311	field index plus one.
10312	* p-valprint.c (pascal_val_print): Adapt to new declaration of
10313	is_pascal_string_type function.
10314
103152002-05-02  Andrew Cagney  <cagney@redhat.com>
10316
10317	* gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10318	<cagney@redhat.com> change.
10319	* gdbarch.c: Regenerate.
10320
103212002-05-02  Andrew Cagney  <cagney@redhat.com>
10322
10323	* gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10324	before probing for a new one.  Detect errorenous gdbarch_init
10325	functions.
10326	* gdbarch.c: Regenerate.
10327
103282002-05-01  Andrew Cagney  <cagney@redhat.com>
10329
10330	* config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10331	* config/mcore/tm-mcore.h: Ditto.  Update copyright.
10332	* config/v850/tm-v850.h: Ditto.  Update copyright.
10333
103342002-04-30  Andrew Cagney  <ac131313@redhat.com>
10335
10336	* cris-tdep.c (cris_gdbarch_init): Use arches instead of
10337	current_gdbarch.
10338
103392002-04-30  Michael Snyder  <msnyder@redhat.com>
10340
10341	* arm-tdep.c: Whitespace clean-ups.
10342	(arm_skip_prologue): Fix thinko; two lines
10343	should have been removed as part of 4/24 change.
10344
103452002-04-30  Kevin Buettner  <kevinb@redhat.com>
10346
10347	* rs6000-tdep.c: Added comment describing how fpscr register
10348	numbers were chosen.
10349
103502002-04-30  Michael Snyder  <msnyder@redhat.com>
10351
10352	* gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10353
103542002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10355
10356	* hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10357	(DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10358	(hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10359
103602002-04-29  Kevin Buettner  <kevinb@redhat.com>
10361
10362	From Louis Hamilton <hamilton@redhat.com>:
10363	* rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10364	* xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10365	* rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10366	not bfd-private xcoff data, to determine wordsize.
10367	* xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10368
103692002-04-29  Andrew Cagney  <ac131313@redhat.com>
10370
10371	GDB 5.2 released from 5.2 branch.
10372
103732002-04-29  Michal Ludvig  <mludvig@suse.cz>
10374
10375	* x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10376	* x86-64-tdep.c (i386_gdbarch_init): Ditto.
10377	(x86_64_register_info_table): Added comments with register numbers.
10378
103792002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10380
10381	* rs6000-tdep.c (rs6000_extract_return_value,
10382	rs6000_store_return_value): Handle returning vectors.
10383	(rs6000_gdbarch_init): Use
10384	ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10385	* ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10386	New function.
10387	(ppc_sysv_abi_use_struct_convention): Deal with functions returning
10388	vectors.
10389	(ppc_sysv_abi_push_arguments): Handle vector parameters.
10390	* ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10391
103922002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10393
10394	* hpread.c (hpread_psymtab_to_symtab_1,
10395	hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10396	with fprintf_unfiltered (gdb_stderr,...).
10397
103982002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10399
10400	* remote-array.c (printf_monitor, write_monitor,
10401	array_insert_breakpoint, array_remove_breakpoint ):
10402	Replace fprintf (stderr,...
10403	with fprintf_unfiltered (gdb_stderr,....
10404	* remote-es.c: Likewise.
10405	* remote-os9k.c: Likewise.
10406	* remote-st.c: Likewise.
10407
104082002-04-28  Andreas Schwab  <schwab@suse.de>
10409
10410	* config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10411	linux-proc.o and gcore.o.
10412
104132002-04-26  Michal Ludvig  <mludvig@suse.cz>
10414
10415	* x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10416	code without frame pointers.
10417
104182002-04-26  Andrew Cagney  <ac131313@redhat.com>
10419
10420	* sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10421	ON_STACK is needed.
10422
104232002-04-26  Ben Elliston  <bje@redhat.com>
10424
10425	* target.c (do_xfer_memory): Correct reference to the new option
10426	"trust-readonly-sections".
10427
104282002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10429
10430	* gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10431	* gdbtypes.c (recursive_dump_type): Output the vector flag.
10432	* dwarf2read.c (dwarf_attr_name): Handle new attribute for
10433	vectors.
10434	(read_array_type): Record the fact that this array type is really a
10435	vector (i.e. are passed in by value).
10436
104372002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10438
10439	* alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10440	* alpha-tdep.c (alpha_sigcontext_addr): New function.
10441	(alpha_find_saved_regs): Use alpha_sigcontext_addr.
10442	(alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10443	* alpha-linux-tdep.c: Include frame.h.
10444	(alpha_linux_sigcontext_addr): New function.
10445	(alpha_linux_init_abi): Set tdep->sigcontext_addr to
10446	alpha_linux_sigcontext_addr.
10447	* alpha-osf1-tdep.c: Include gdbcore.h.
10448	(alpha_osf1_sigcontext_addr): New function.
10449	(alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10450	alpha_osf1_sigcontext_addr.
10451	* config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10452	* config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10453
104542002-04-26  Andrew Cagney  <ac131313@redhat.com>
10455
10456	* stack.c (selected_frame_level):
10457	(select_frame): Do not set selected_frame_level.
10458	* frame.h (selected_frame_level): Delete declaration.
10459
104602002-04-26  Andrew Cagney  <ac131313@redhat.com>
10461
10462	* rs6000-tdep.c (rs6000_gdbarch_init): Only set
10463	convert_from_func_ptr-addr when AIX / PowerOpen.
10464
104652002-04-25  Andrew Cagney  <ac131313@redhat.com>
10466
10467	* valops.c (hand_function_call): Call
10468	generic_save_call_dummy_addr.
10469	* frame.h (generic_save_call_dummy_addr): Declare.
10470	* blockframe.c (struct dummy_frame): Add fields call_lo and
10471	call_hi.
10472	(generic_find_dummy_frame): Check for PC in range call_lo to
10473	call_hi instead of entry_point_address.
10474	(generic_pc_in_call_dummy): Search the dummy frames for a PC in
10475	the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10476	(generic_save_call_dummy_addr): New function.
10477
104782002-04-24  David S. Miller  <davem@redhat.com>
10479
10480	* sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10481	sparc_skip_prologue.
10482	(sparc_skip_prologue): Kill frameless_p arg, and use line number
10483	information to find prologue when possible.
10484	(sparc_prologue_frameless_p): Call examine_prologue directly.
10485	(sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10486	* config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10487	second argument.
10488	(SKIP_PROLOGUE): Likewise.
10489
104902002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10491
10492	* alpha-tdep.c (alpha_skip_prologue_internal): Remove
10493	GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10494	indicate that the condition it was testing is always true.
10495	* config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10496	* config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10497	* config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10498
104992002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10500
10501	* alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10502	* alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10503	tdep->jb_pc and tdep->jb_elt_size.
10504	* alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10505	* alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10506	* alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10507	* alpha-nat.c (get_longjmp_target): Remove.
10508	(JB_ELEMENT_SIZE): Ditto.
10509	(JB_PC): Ditto.
10510	* alpha-tdep.c (alpha_get_longjmp_target): New function.
10511	(alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10512	OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10513	to alpha_get_longjmp_target.
10514	(alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10515	* config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10516	* config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10517
105182002-04-25  Andrew Cagney  <ac131313@redhat.com>
10519
10520	* README: Update to GDB 5.2.
10521
105222002-04-25  Andrew Cagney  <ac131313@redhat.com>
10523
10524	* gdbarch.sh (LC_ALL): Set to `c'.
10525
105262002-04-25  Theodore A. Roth  <troth@verinet.com>
10527
10528	* avr-tdep.c: Ran through gdb_indent.sh.
10529
105302002-04-25  Theodore A. Roth  <troth@verinet.com>
10531
10532	* MAINTAINERS: Add myself as AVR maintainer.
10533	* NEWS: Note new target avr.
10534
105352002-04-25  Theodore A. Roth  <troth@verinet.com>
10536
10537	* Makefile.in: Add support for AVR target.
10538	* configure.tgt: Add support for AVR target.
10539	* avr-tdep.c: New file
10540 	* config/avr/avr.mt: New file.
10541
105422002-04-25  Theodore A. Roth  <troth@verinet.com>
10543
10544	* MAINTAINERS: Add myself to write-after-approval.
10545
105462002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10547
10548	* f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10549	with fprintf_unfiltered (gdb_stderr,....
10550
105512002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10552
10553	Fix PR gdb/508.
10554	* symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10555
105562002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10557
10558	* p-exp.y: Also use new prev_lexptr variable
10559	to improve error reporting. Based on Michael Snyder
10560	2002-04-24 dated patch to c-exp.y.
10561
105622002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10563
10564	* alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10565	(alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10566	alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10567	to 0.
10568	* config/alpha/tm-alpha.h: Remove forward decls of struct type
10569	and struct value.
10570	(FUNCTION_START_OFFSET): Remove.
10571	(BREAKPOINT): Ditto.
10572
105732002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10574
10575	* MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10576	* NEWS: Ditto.
10577
105782002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10579
10580	* alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10581	(alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10582	alpha_linux_pc_in_sigtramp.
10583	* alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10584	(alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10585	alpha_osf1_pc_in_sigtramp.
10586	* alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10587	* alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10588	(alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10589	alphafbsd_pc_in_sigtramp.
10590	* alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10591	(alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10592	alphanbsd_pc_in_sigtramp.
10593	* config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10594	* config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10595
105962002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10597
10598	* config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10599
106002002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10601
10602	* Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10603	alphanbsd-tdep.c.
10604	(alphanbsd-nat.o): New dependency list.
10605	(alphanbsd-tdep.o): Ditto.
10606	* NEWS: Note new native NetBSD/alpha configuration.
10607	* alphanbsd-nat.c: New file.
10608	* alphanbsd-tdep.c: Ditto.
10609	* configure.host (alpha*-*-netbsd*): New host.
10610	* configure.tgt (alpha*-*-netbsd*): New target.
10611	* config/alpha/nbsd.mh: New file.
10612	* config/alpha/nbsd.mt: Ditto.
10613	* config/alpha/nm-nbsd.h: Ditto.
10614	* config/alpha/tm-nbsd.h: Ditto.
10615
106162002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10617
10618	* Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10619	(alpha-osf1-tdep.o): New dependency list.
10620	* alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10621	and skip_sigtramp_frame members.
10622	* alpha-linux-tdep.c: Include gdbcore.h.
10623	(alpha_linux_sigtramp_offset): Change return type to LONGEST.
10624	(alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10625	* alpha-osf1-tdep.c: New file.
10626	* alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10627	alpha-osf1-dep.c.
10628	(alpha_frame_past_sigtramp_frame): New function.
10629	(alpha_dynamic_sigtramp_offset): Ditto.
10630	(alpha_proc_desc_is_dyn_sigtramp): Ditto.
10631	(alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10632	(ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10633	(push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10634	(after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10635	(find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10636	(alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10637	(alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10638	(alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10639	(alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10640	and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10641	to find_solib_trampoline_target.
10642	* config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10643	* config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10644	(SKIP_TRAMPOLINE_CODE): Remove.
10645	(PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10646	(SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10647	(DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10648	(FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10649	* config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10650	(PROC_SIGTRAMP_MAGIC): Ditto.
10651	(PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10652	(SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10653	(SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10654	(DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10655	(FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10656
106572002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10658
10659	* NEWS: Note that Alpha targets are now multi-arch.
10660
106612002-04-24  Michael Snyder  <msnyder@redhat.com>
10662
10663	* parser-defs.h (prev_lexptr): New external variable.
10664	* parse.c (parse_exp_1): Set prev_lexptr to null before
10665	calling the language-specific parser.
10666	* c-exp.y (yylex): Set prev_lexptr to start of current token.
10667	(yyerror): Use prev_lexptr in error reporting.
10668
106692002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10670
10671	* config/i386/tm-linux.h: Define FILL_FPXREGSET.
10672	* gregset.h: If FILL_FPXREGSET is defined, provide
10673	gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10674	* linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10675	is defined, call fill_fpxregset.
10676
106772002-04-24  Roland McGrath  <roland@frob.com>
10678
10679	* config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10680	* i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10681	(supply_gregset, supply_fpregset): New functions.
10682
10683	* gnu-nat.c (gnu_find_memory_regions): New function.
10684	(init_gnu_ops): Set `to_find_memory_regions' hook to that.
10685	(gnu_xfer_memory): Add a cast.
10686
106872002-04-24  Michael Snyder  <msnyder@redhat.com>
10688
10689	* arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10690	loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10691	of argument regs ("str r(0123), [r11, #-nn"]).
10692	(arm_skip_prologue): Better handling for frameless functions.
10693	Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10694	(arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10695
10696Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10697
10698	* arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10699 	NUM_PSEUDO_REGS can be used.
10700
107012002-04-24  Andrew Cagney  <ac131313@redhat.com>
10702
10703	* arch-utils.h: Update copyright.
10704
10705	* gdbarch.sh (PC_IN_SIGTRAMP): Add.
10706	* gdbarch.h, gdbarch.c: Re-generate.
10707
10708	* inferior.h (IN_SIGTRAMP): Delete definition.
10709	* arch-utils.c (legacy_pc_in_sigtramp): New function.
10710	* arch-utils.h (legacy_pc_in_sigtramp): Declare.
10711
10712	* mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10713	(mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10714	* hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10715	(find_proc_framesize): Ditto.
10716	* alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10717	(alpha_init_extra_frame_info): Ditto.
10718	* infrun.c (handle_inferior_event): Ditto.
10719	(handle_inferior_event): Ditto.
10720	(check_sigtramp2): Ditto.
10721	* blockframe.c (create_new_frame): Ditto.
10722	(get_prev_frame): Ditto.
10723	* ppc-linux-tdep.c: Update comments.
10724	* i386-linux-tdep.c: Update comments.
10725	* breakpoint.c (bpstat_what): Update comment.
10726
107272002-04-24  David S. Miller  <davem@redhat.com>
10728
10729	* i960-tdep.c (register_in_window_p): New function.
10730	(i960_find_saved_register): Use it instead of
10731	REGISTER_IN_WINDOW_P.
10732	* config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10733
10734	* symtab.h (find_stab_function_addr): Kill extern.
10735	* minsyms.c (find_stab_function_addr): Remove from here...
10736	* dbxread.c: ... to here, and mark it static.
10737
107382002-04-20  David S. Miller  <davem@redhat.com>
10739
10740	* sparc-tdep.c (sparc_pop_frame): Only need to allocate
10741	SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10742
107432002-04-21  David S. Miller  <davem@redhat.com>
10744
10745	* remote-vxsparc.c (vx_read_register): Fix typo, we want
10746	REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10747	(vx_write_register): Likewise.
10748
107492002-04-23  J. Brobecker  <brobecker@gnat.com>
10750
10751	* source.c (is_regular_file): New function.
10752	(openp): Check wether file to open is a regular file
10753	to avoid opening directories.
10754
107552002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10756
10757	* findvar.c (extract_signed_integer): Cast printf argument
10758	to suppress format warning.
10759	(extract_unsigned_integer): Likewise.
10760	* infcmd.c (registers_info): Likewise.
10761	* top.c (get_prompt_1): Likewise.
10762	* valops.c (value_assign): Likewise.
10763	* valprint.c (print_decimal): Likewise.
10764
107652002-04-22  H.J. Lu  (hjl@gnu.org)
10766
10767	* c-exp.y (typebase): Support
10768
10769	[long|long long|short] [signed|unsigned] [int|]
10770
10771	and
10772
10773	signed [long|long long|short] int
10774
107752002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10776
10777	* Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10778	and vax-tdep.h.
10779	* vax-tdep.h: New file.
10780	* vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10781	Make several routines static.
10782	(vax_get_saved_register): New function.
10783	(vax_gdbarch_init): New function.
10784	(_initialize_vax_tdep): Register vax_gdbarch_init.
10785	* config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10786	Remove macros now under the control of gdbarch.
10787
107882002-04-22  Michael Snyder  <msnyder@redhat.com>
10789
10790	* arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10791	Some whitespace and coding standards tweaks.
10792
107932002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10794
10795	* vax-tdep.c: Include regcache.h.
10796	(vax_call_dummy_words): New.
10797	(sizeof_vax_call_dummy_words): New.
10798	(vax_fix_call_dummy): New function.
10799	(vax_saved_pc_after_call): Ditto.
10800	* config/vax/tm-vax.h: Don't include regcache.h.
10801	(SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10802	(CALL_DUMMY): Remove.
10803	(CALL_DUMMY_WORDS): Define.
10804	(SIZEOF_CALL_DUMMY_WORDS): Define.
10805	(FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10806
108072002-04-18  Michael Snyder  <msnyder@redhat.com>
10808
10809	* arm-tdep.h: Change regnum defines to enums for ease of debugging.
10810
108112002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10812
10813	* vax-tdep.c (vax_frame_chain): New function.
10814	(vax_push_dummy_frame): Ditto.
10815	(vax_pop_frame): Ditto.
10816	* config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10817	(FRAMELESS_FUNCTION_INVOCATION): Use
10818	generic_frameless_function_invocation_not.
10819	(PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10820	(POP_FRAME): Use vax_pop_frame.
10821
108222002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10823
10824	* vax-tdep.c (vax_store_struct_return): New function.
10825	(vax_extract_return_value): Ditto.
10826	(vax_store_return_value): Ditto.
10827	(vax_extract_struct_value_address): Ditto.
10828	* config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10829	vax_store_struct_return.
10830	(EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10831	(STORE_RETURN_VALUE): Use vax_store_return_value.
10832	(EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10833
108342002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10835
10836	* vax-tdep.c (vax_frame_saved_pc): New function.
10837	(vax_frame_args_address_correct): Ditto.
10838	(vax_frame_args_address): Ditto.
10839	(vax_frame_locals_address): Ditto.
10840	(vax_frame_num_args): Move code to be in proximity to
10841	other frame-related functions.
10842	* config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10843	(FRAME_SAVED_PC): Use vax_frame_saved_pc.
10844	(FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10845	(FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10846	(FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10847
108482002-04-22  H.J. Lu  (hjl@gnu.org)
10849
10850	* Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10851	includedir.
10852
108532002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10854
10855	* vax-tdep.c (vax_frame_init_saved_regs): New function.
10856	* config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10857	(FRAME_INIT_SAVED_REGS): New macro.
10858
108592002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10860
10861	* MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10862
108632002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10864
10865	* alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10866	where needed.
10867	(fetch_osf_core_registers): Likewise.
10868	(supply_gregset): Likewise.
10869
108702002-04-22  J. Brobecker  <brobecker@gnat.com>
10871
10872	* symfile.h (get_section_index): Define.
10873	* symfile.c (get_section_index): New function.
10874	* mdebugread.c (SC_IS_SBSS): New macro.
10875	(SC_IS_BSS): Return true for the scBss storage class only, as
10876	the scSBss storage class refers to the .sbss section.
10877	(parse_partial_symbols): Discard the symbols which associated
10878	section does not exist.
10879	Make sure to use the .sbss section index for symbols which
10880	storage class is scBss, rather than using the .bss section index.
10881
108822002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10883
10884	* vax-tdep.c: Update copyright years.
10885	(vax_register_name): New function.
10886	(vax_register_byte): Ditto.
10887	(vax_register_raw_size): Ditto.
10888	(vax_register_virtual_size): Ditto.
10889	(vax_register_virtual_type): Ditto.
10890	* config/vax/tm-vax.h: Update copyright years.
10891	(REGISTER_NAMES): Remove.
10892	(REGISTER_NAME): Define.
10893	(REGISTER_BYTE): Use vax_register_byte.
10894	(REGISTER_RAW_SIZE): Use vax_register_raw_size.
10895	(REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10896	(REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10897
108982002-04-21  Andrew Cagney  <ac131313@redhat.com>
10899
10900	* config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10901	declaration
10902	* arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10903
109042002-04-21  David S. Miller  <davem@redhat.com>
10905
10906	* arch-utils.c (generic_prologue_frameless_p): Kill
10907	SKIP_PROLOGUE_FRAMELESS_P code.
10908	* config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10909	references.
10910	(PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10911	* arc-tdep.c (arc_prologue_frameless_p): Implement.
10912	* config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10913	references.
10914	(PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10915	* sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10916	(sparc_gdbarch_init): Pass it to
10917	set_gdbarch_prologue_frameless_p.
10918
109192002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10920
10921	* Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10922	(alphabsd-nat.o): New dependency list.
10923
109242002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10925
10926	* Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10927	alphafbsd-tdep.c.
10928	(alpha-linux-tdep.o): New dependency list.
10929	(alphafbsd-tdep.o): Likewise.
10930
109312002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10932
10933	* alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10934	to here...
10935	* alpha-tdep.c: ...from here.
10936	* config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10937
109382002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10939
10940	* config/alpha/tm-alpha.h: Move alpha_software_single_step
10941	prototype from here...
10942	* alpha-tdep.h: ...to here.
10943
109442002-04-21  Andrew Cagney  <ac131313@redhat.com>
10945
10946	* frame.h (selected_frame_level): Document as deprecated.
10947	(frame_relative_level): Declare.
10948	* stack.c (frame_relative_level): New function.
10949	(selected_frame_level): Document as deprecated.
10950	(select_frame): Do not set the selected_frame_level.
10951
10952	* stack.c (frame_info, record_selected_frame): Update.
10953	(frame_command, current_frame_command): Update.
10954	(up_silently_base, up_command, down_silently_base): Update.
10955	(down_command): Update.
10956	* inflow.c (kill_command): Update.
10957	* tracepoint.c (finish_tfind_command): Update.
10958	* corelow.c (core_open): Update.
10959	* thread.c (info_threads_command): Update.
10960	(do_captured_thread_select): Update.
10961	* infcmd.c (finish_command): Update.
10962	* breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10963
109642002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10965
10966	* config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10967
109682002-04-21  Andrew Cagney  <ac131313@redhat.com>
10969
10970	* arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10971	type const.
10972
109732002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10974
10975	* alphafbsd-tdep.c: Update copyright years.  Include
10976	alpha-tdep.h.
10977	(alphafbsd_use_struct_convention): Make static.
10978	(alphafbsd_init_abi): New function.
10979	(_initialize_alphafbsd_tdep): New function.
10980	* config/alpha/tm-fbsd.h: Update copyright years.
10981	(USE_STRUCT_CONVENTION): Remove.
10982
109832002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10984
10985	* alpha-tdep.c (alpha_abi_handler): New structure to describe
10986	an Alpha ABI variant.
10987	(alpha_abi_handler_list): Declare.
10988	(alpha_gdbarch_register_os_abi): New function.
10989	(alpha_gdbarch_init): Give registered ABI variant handlers a
10990	chance to tweak the gdbarch once we have set up defaults.
10991	* alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10992
109932002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10994
10995	* alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10996	to standard_coerce_float_to_double.
10997	* config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10998
109992002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11000
11001	* alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11002	* alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11003	from gdbarch_tdep rather than a constant.
11004	(alpha_gdbarch_init): Initialize tdep->vm_min_address to
11005	the default text address for all Alpha Unix ABIs.
11006	(alpha_dump_tdep): Report the value of tdep->vm_min_address.
11007	* config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11008
110092002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11010
11011	* alpha-tdep.h: New file.  Includes several Alpha target constants
11012	taken from...
11013	* config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11014	let gdbarch deal with.
11015	(GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11016	* Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11017	to dependency list.
11018	* alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11019	Alpha target register names.
11020	* alphabsd-nat.c: Likewise.
11021	* alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11022	Alpha target register names.  Make serveral routines static.
11023	(alpha_get_saved_register): New function.
11024	(alpha_abi_names): New.
11025	(process_note_abi_tag_sections): New function.
11026	(get_elfosabi): New function.
11027	(alpha_gdbarch_init): New function.
11028	(alpha_dump_tdep): New function.
11029	(_initialize_alpha_tdep): Register alpha_gdbarch_init.
11030
110312002-04-21  Andrew Cagney  <ac131313@redhat.com>
11032
11033	* frame.c (find_saved_register): Delete #ifdef
11034	HAVE_REGISTER_WINDOWS code.
11035	* config/sparc/tm-sparc.h: Update comments.
11036	* config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11037
110382002-04-21  Andrew Cagney  <ac131313@redhat.com>
11039
11040	* i960-tdep.c (i960_find_saved_register): New function.
11041	(i960_get_saved_register): New function.
11042	* config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11043	(i960_get_saved_register): Declare.
11044	* config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11045
110462002-04-20  David S. Miller  <davem@redhat.com>
11047
11048	* sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11049
110502002-04-20  Andrew Cagney  <ac131313@redhat.com>
11051
11052	* arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11053	instead of NUM_PSEUDO_REGS.
11054
110552002-04-20  David S. Miller  <davem@redhat.com>
11056
11057	* config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11058	GDB_MULTI_ARCH_PARTIAL
11059	* config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11060	define, let tm-sp64.h do it.
11061
110622002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11063
11064	* frame.c (find_saved_register): Avoid a NULL pointer
11065	dereference and actually walk the frame list.
11066
110672002-04-20  Andrew Cagney  <ac131313@redhat.com>
11068
11069	* gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11070	sorted in most most-recent-used order.  Document.
11071	* gdbarch.h, gdbarch.c: Regenerate.
11072
110732002-04-19  Andrew Cagney  <ac131313@redhat.com>
11074
11075	* sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11076	instead of ->prev.
11077	* z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11078	* s390-tdep.c (s390_frame_chain): Do not use ->prev.
11079	* rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11080	instead of ->prev.
11081
110822002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11083
11084        Fix PR gdb/471.
11085	* gdbtypes.c (init_simd_type): Rewrite using new functions.
11086	(build_builtin_type_vec128): Ditto.
11087	(append_composite_type_field): Fix calculation of type length in
11088	union case.
11089
110902002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11091
11092	* config/djgpp/README: Update.
11093
11094	* go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11095	compiler warnings.
11096
110972002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11098
11099	* alpha-tdep.c (setup_arbitrary_frame): Rename...
11100	(alpha_setup_arbitrary_frame): ...to this.
11101	* config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11102	for alpha_setup_arbitrary_frame.
11103
111042002-04-18  Andrew Cagney  <cagney@redhat.com>
11105
11106	* gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11107	* gdbarch.h, gdbarch.c: Regenerate.
11108
11109	* defs.h (breakpoint_from_pc_fn): Delete type definition.
11110	* target.h (memory_breakpoint_from_pc): Update declaration.
11111	* config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11112
11113	* arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11114	* mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11115	* mem-break.c (memory_breakpoint_from_pc): Ditto.
11116	* rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11117	* s390-tdep.c (s390_breakpoint_from_pc): Ditto
11118	* xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11119	* mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11120	* mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11121	* m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11122	* ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11123	* d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11124	* arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11125
11126	* mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11127	const pointer.
11128	* monitor.c (monitor_insert_breakpoint): Ditto.
11129	* rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11130
11131	* config/mcore/tm-mcore.h: Update copyright.
11132	* mem-break.c: Ditto.
11133	* xstormy16-tdep.c: Ditto.
11134
111352002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11136
11137	* p-exp.y: Add precedence rule for '^' token.
11138	This removes the shift/reduce conflicts.
11139	Remove the comment concerning these shift/reduce conflicts.
11140
111412002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11142
11143	* rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11144	(registers_powerpc_nofp): New register set for processors
11145	without floating point unit.
11146
111472002-04-18  David S. Miller  <davem@redhat.com>
11148
11149	* MAINTAINERS: Add myself to write-after-approval.
11150
111512002-04-17  Michael Snyder  <msnyder@redhat.com>
11152
11153	* MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11154
111552002-04-17  Andrew Cagney  <ac131313@redhat.com>
11156
11157	* rs6000-tdep.c (frame_initial_stack_address): Use
11158	frame_register_read to read the alloca_reg.
11159
111602002-04-17  Andrew Cagney  <ac131313@redhat.com>
11161
11162	* frame.c (find_saved_register): Find saved registers in the next
11163	not prev frame.
11164	Fix PR gdb/365.
11165
111662002-04-17  Andrew Cagney  <ac131313@redhat.com>
11167
11168	* gdbarch.sh (LANG): Set to ``c''.
11169
111702002-04-15  Andrew Cagney  <ac131313@redhat.com>
11171
11172 	* PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11173
111742002-04-15  Andrew Cagney  <ac131313@redhat.com>
11175
11176	* bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11177	Update copyright.
11178
11179 	* hpread.c (hpread_get_lntt): Add declaration.
11180 	Also fix PR gdb/391.
11181
111822002-04-14  Andrew Cagney  <ac131313@redhat.com>
11183
11184	* acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11185	* aclocal.m4, configure: Re-generate.
11186	Fix PR gdb/391.
11187
111882002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11189
11190        * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11191        instead of tm_print_insn.
11192
111932002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11194
11195	* ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11196
111972002-04-14  Andrew Cagney  <ac131313@redhat.com>
11198
11199	* config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11200	* blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11201	(get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11202
112032002-04-12  Don Howard  <dhoward@redhat.com>
11204
11205	* cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11206	max_user_call_depth.
11207	(init_cmd_lists): Initialize the new value;
11208	* cli/cli-script.c (execute_user_command): Limit the call depth of
11209	user defined commands.  This avoids a core-dump when user commands
11210	are infinitly recursive.
11211
112122002-04-12  Kevin Buettner  <kevinb@redhat.com>
11213
11214	* ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11215	* rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11216	from tdep struct instead of DEFAULT_LR_SAVE.
11217	(rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11218	* config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11219	* config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11220
112212002-04-12  Michael Snyder  <msnyder@redhat.com>
11222
11223	* Remote.c: Spelling fix.
11224	* gcore.c (default_derive_heap_segment): Use bfd_section_name.
11225	If no symbol found for "sbrk", try "_sbrk".
11226	(make_output_phdrs): Use bfd_section_name.
11227	(gcore_copy_callback): Use bfd_section_name.
11228	* eval.c: Indentation fix-ups.
11229	* d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11230	in case it gets applied to an address that is already
11231	in the instruction space.
11232	* cli/cli-decode.c (help_list): Allow long lines to wrap.
11233	* symfile.c: Fix indentation, long lines.
11234	* source.c: White space fix-up.
11235
112362002-04-12  Andrew Cagney  <cagney@redhat.com>
11237
11238	* defs.h (read_relative_register_raw_bytes): Delete declaration.
11239	* frame.c (frame_register_read): New function.  Return non-zero on
11240	success.
11241	(read_relative_register_raw_bytes_for_frame): Delete.
11242	(read_relative_register_raw_bytes): Delete.
11243	* frame.h (frame_register_read): Declare.
11244	* d30v-tdep.c: Update Copyright.  Use frame_register_read.
11245	* sh-tdep.c: Ditto.
11246	* infcmd.c (do_registers_info): Ditto.
11247	* hppa-tdep.c: Ditto.
11248	* rs6000-tdep.c: Ditto.
11249	* h8500-tdep.c: Ditto.
11250	* mips-tdep.c: Ditto.
11251	* h8300-tdep.c: Ditto.
11252	* z8k-tdep.c: Ditto.
11253
112542002-04-12  Kevin Buettner  <kevinb@redhat.com>
11255
11256	From Jimi X <jimix@watson.ibm.com>:
11257	* rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11258	64-bit SysV ABI.
11259
112602002-04-12  Kevin Buettner  <kevinb@redhat.com>
11261
11262	From Jimi X <jimix@watson.ibm.com>:
11263	* rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11264	bfd info.
11265
112662002-04-12  Kevin Buettner  <kevinb@redhat.com>
11267
11268	From Jimi X <jimix@watson.ibm.com>:
11269	* rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11270	register sets for these processor variants.
11271
112722002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11273
11274	* regformats/reg-ppc.dat: Support FPSCR.
11275
112762002-04-11  Kevin Buettner  <kevinb@redhat.com>
11277
11278	* ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11279	* ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11280	Add fpscr as an invalid/unfetchable register.
11281	* ppc-linux-nat.c (ppc_register_u_addr, store_register)
11282	(fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11283	(fill_fpregset): Add support for register fpscr.
11284	(fetch_ppc_registers, store_ppc_registers, supply_gregset)
11285	(fill_gregset): Account for the fact that register ``mq'' might
11286	not exist.
11287	* rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11288	(registers_power): Add fpscr to register set at slot 71.
11289	(rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11290	exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11291
112922002-04-11  Michael Snyder  <msnyder@redhat.com>
11293
11294	* configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11295	* configure: Regenerate.
11296	* config.in: Regenerate.
11297	* acconfig.h: Add define for _SYSCALL32.
11298	* core-sol2.c: Remove #define _SYSCALL32.
11299	* solib-legacy.c: Remove #define _SYSCALL32.
11300
113012002-04-10  Andrew Cagney  <ac131313@redhat.com>
11302
11303	* stack.c (select_frame): Cleanup internal error message, do not
11304	use %p.
11305
113062002-04-10  Andrew Cagney  <ac131313@redhat.com>
11307
11308	* stack.c (select_frame): Check that selected_frame and the
11309	specified level are as expected.
11310	* blockframe.c (get_prev_frame): Set the `level' from next_frame.
11311	Update copyright.
11312	* frame.h (struct frame_info): Add field `level'.  Update
11313	copyright.
11314	Work-in-progress PR gdb/464.
11315
113162002-04-10  Andrew Cagney  <ac131313@redhat.com>
11317
11318	* maint.c (maint_print_section_info): Rename print_section_info.
11319	(print_bfd_section_info, print_objfile_section_info): Update.
11320	* inferior.h (struct gdbarch): Add opaque declaration.
11321	* gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11322	* gdbarch.h: Regenerate.
11323
113242002-04-10  Michal Ludvig  <mludvig@suse.cz>
11325
11326	* x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11327	(PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11328	(kernel_u_size): Added.
11329	* config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11330	(PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11331
113322002-04-04  Jim Ingham  <jingham@apple.com>
11333
11334       * valarith.c (find_size_for_pointer_math): New function, either returns
11335       the size for a pointer's target, returns 1 for void *, or errors for
11336       incomplete types.
11337       (value_add, value_sub): use find_size_for_pointer_math.
11338
113392002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11340
11341	* linux-low.c (linux_look_up_symbols): New hook.
11342	(linux_target_ops): Add linux_look_up_symbols.
11343	* remote-utils.c (decode_address): New function.
11344	(look_up_one_symbol): New function.
11345	* server.c (handle_query): Call target look_up_symbols hook.
11346	* server.h (look_up_one_symbol): Add prototype.
11347	* target.h (struct target_ops): Add look_up_symbols hook.
11348
113492002-04-09  Andrew Cagney  <ac131313@redhat.com>
11350
11351	* frame.c (read_relative_register_raw_bytes_for_frame): Do not
11352	override FP_REGNUM with frame->fp.  Update copyright.
11353	* parse.c (num_std_regs, std_regs): Delete.
11354	(target_map_name_to_register): Do not search std_regs.  Update
11355	function description.
11356	* parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11357	declarations.  Update copyright.
11358	Fix PR gdb/251.
11359
113602002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11361
11362	* symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11363	after the last symbol in a block.
11364
113652002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11366
11367	* p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11368	is non zero as a found symbol.
11369
113702002-04-08  Andrew Cagney  <ac131313@redhat.com>
11371
11372	* findvar.c: Include "builtin-regs.h".
11373	(value_of_register): Call value_of_builtin_reg when applicable.
11374	* parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11375	(target_map_name_to_register): Call
11376	builtin_reg_map_name_to_regnum.
11377	* Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11378	(COMMON_OBS): Add builtin-regs.o and std-regs.o.
11379	(builtin_regs_h): Define.
11380	(builtin-regs.o): New target.
11381	(findvar.o): Add $(builtin_regs_h).
11382	* builtin-regs.c, builtin-regs.h: New files.
11383	* std-regs.c: New file.
11384	Partial fix for PR gdb/251.
11385
113862002-04-08  Kevin Buettner  <kevinb@redhat.com>
11387
11388	* rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11389	it's no longer required.
11390
113912002-04-08  Andrew Cagney  <ac131313@redhat.com>
11392
11393	* Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11394
113952002-04-08  Kevin Buettner  <kevinb@redhat.com>
11396
11397	From Jimi X <jimix@watson.ibm.com>:
11398	* rs6000-tdep.c (rs6000_software_single_step): Use
11399	rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11400	and size.  Use target_insert_breakpoint() and
11401	target_remove_breakpoint() to insert and remove breakpoints
11402	instead of explicit memory reads and writes.
11403
114042002-04-08  Kevin Buettner  <kevinb@redhat.com>
11405
11406	* config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11407	* rs6000-tdep.c (rs6000_push_arguments): Eliminate
11408	ELF_OBJECT_FORMAT ifdef.
11409
114102002-04-08  Kevin Buettner  <kevinb@redhat.com>
11411
11412	From Jimi X <jimix@watson.ibm.com>:
11413	* rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11414
114152002-04-08  Kevin Buettner  <kevinb@redhat.com>
11416
11417	From Jimi X <jimix@watson.ibm.com>:
11418	* rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11419	definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11420
114212002-04-07  Mark Kettenis  <kettenis@gnu.org>
11422
11423	* fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11424	s/asprintf/xasprintf/.
11425	(fbsd_make_corefile_notes): s/strdup/xstrdup/.
11426
114272002-04-07  Andrew Cagney  <ac131313@redhat.com>
11428
11429	I believe Jeff Law denies responsability for this one:
11430	* config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11431	* config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11432	* config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11433	Work-around for PR gdb/366.
11434
114352002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11436
11437	* remote-e7000.c (write_small, e7000_read_inferior_memory,
11438	e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11439	e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11440
114412002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11442
11443	* sh-tdep.c (sh_fp_frame_init_saved_regs,
11444	sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11445	information.
11446
114472002-04-07  Andrew Cagney  <ac131313@redhat.com>
11448
11449	* MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11450	maintainer.
11451
114522002-04-07  Andrew Cagney  <ac131313@redhat.com>
11453
11454	* README (Reporting Bugs in GDB): Document the bug web page as the
11455	prefered way of submitting bugs.
11456	Fix PR gdb/402.
11457
114582002-04-06  Andrew Cagney  <ac131313@redhat.com>
11459
11460	* gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11461	-1.  Update comment.
11462	* gdbarch.h, gdbarch.c: Re-generate.
11463
114642002-04-07  Andreas Schwab  <schwab@suse.de>
11465
11466	* m68klinux-nat.c (fill_fpregset): Properly pass address of
11467	buffer to regcache_collect.
11468
114692002-04-06  Andrew Cagney  <ac131313@redhat.com>
11470
11471	* gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11472	* gdbarch.c, gdbarch.h: Re-generate.
11473
114742002-04-06  Andrew Cagney  <ac131313@redhat.com>
11475
11476	* symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11477	declaration.  Fix -Werror.
11478
114792002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11480
11481	* gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11482	* gdbarch.c: Regenerate.
11483
114842002-04-05  Michael Snyder  <msnyder@redhat.com>
11485
11486	* breakpoint.c (clear_command): Rewrite middle section to
11487	combine two loops with identical control conditions.
11488	Add a cleanup to eliminate a memory leak.
11489	* cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11490
114912002-04-05  H.J. Lu  (hjl@gnu.org)
11492
11493	* solib-svr4.c (bkpt_names): Add "__start".
11494
114952002-04-04  Andrew Cagney  <ac131313@redhat.com>
11496
11497	* sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11498	as test for 64 bit target.
11499
115002002-04-05  Andrew Cagney  <ac131313@redhat.com>
11501
11502	* h8500-tdep.c (h8500_write_fp): Delete function.
11503	* dwarf2cfi.c (cfi_write_fp): Document as not used.
11504	* mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11505	* ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11506	* m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11507	* rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11508	* s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11509	(s390_write_fp):
11510	* sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11511	* x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11512	* d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11513	(d10v_write_fp): Delete function.
11514	* inferior.h (write_fp, generic_target_write_fp): Delete
11515	declarations.
11516	* regcache.c (generic_target_write_fp): Delete function.
11517	(write_fp): Delete function.
11518	* gdbarch.sh (TARGET_WRITE_FP): Delete.
11519	* gdbarch.h, gdbarch.c: Regenerate.
11520	* config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11521	* config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11522	(sparc64_write_fp): Delete declaration.
11523	* config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11524	(h8500_write_fp): Delete declaration.
11525
115262002-04-04  Andrew Cagney  <ac131313@redhat.com>
11527
11528	* sparc-tdep.c (sparc64_write_fp): Delete.
11529	(sparc_push_dummy_frame): Replace write_fp call with code to store
11530	the FP directly.
11531	(sparc_gdbarch_init): Do not initialize write_fp.
11532
115332002-04-05  Kevin Buettner  <kevinb@redhat.com>
11534
11535	* rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11536	clause.
11537
115382002-03-29  Jim Blandy  <jimb@redhat.com>
11539
11540	* stack.c (get_selected_block): Add new argument `addr_in_block',
11541	used to return the exact code address we used to select the block,
11542	not just the block.
11543	* blockframe.c (get_frame_block, get_current_block): Same.
11544	* frame.h (get_frame_block, get_current_block,
11545	get_selected_block): Update declarations.
11546	* linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11547	linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11548
115492002-04-05  Michael Snyder  <msnyder@redhat.com>
11550
11551	* breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11552	warning message.
11553
115542002-04-05  J. Brobecker  <brobecker@gnat.com>
11555
11556	* utils.c (xfullpath): New function.
11557	* defs.h (xfullpath): Add declaration.
11558	* source.c (openp): Use xfullpath in place of gdb_realpath to
11559	avoid resolving the basename part of filenames when the
11560	associated file is a symbolic link. This fixes a potential
11561	inconsistency between the filenames known to GDB and the
11562	filenames it prints in the annotations.
11563	* symtab.c (lookup_symtab): Use the new xfullpath function, in order
11564	to be able to match a filename with either the real filename, or
11565	the name of any symbolic link to this file.
11566	(lookup_partial_symtab): Ditto.
11567
115682002-04-04  Michael Snyder  <msnyder@redhat.com>
11569
11570	* breakpoint.c: Add support for hardware breakpoints in overlays.
11571	(overlay_events_enabled): New state variable.
11572	(insert_breakpoints): Use overlay_events_enabled to decide
11573	whether to attempt to set a breakpoint at the overlay load addr.
11574	Handle bp_hardware_breakpoint as well as bp_breakpoint.
11575	(remove_breakpoint): Use overlay_events_enabled to decide
11576	whether breakpoints need to be removed from overlay load addr.
11577	Handle bp_hardware_breakpoint as well as bp_breakpoint.
11578	(bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11579	(create_overlay_event_breakpoint, enable_overlay_breakpoints,
11580	disable_overlay_breakpoints): Update overlay_events_enabled.
11581
115822002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11583
11584	* dwarf2read.c (struct function_range): New.
11585	(cu_first_fn, cu_last_fn, cu_cached_fn): New.
11586	(check_cu_functions): New.
11587	(read_file_scope): Initialize global function lists.
11588	Call dwarf_decode_line after processing children.
11589	(read_func_scope): Add to global function list.
11590	(dwarf_decode_lines): Call check_cu_functions everywhere
11591	record_line is called.  Call record_line with a linenumber
11592	of 0 to mark sequence ends.
11593
115942002-04-04  Michal Ludvig  <mludvig@suse.cz>
11595
11596	* x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11597	change sync with glibc.
11598
115992002-04-03  Jim Blandy  <jimb@redhat.com>
11600
11601	* configure.in: Call AC_C_INLINE.
11602	* configure: Regenerated.
11603
116042002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11605
11606	* rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11607	and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11608
116092002-03-31  Mark Kettenis  <kettenis@gnu.org>
11610
11611	* NEWS: Mention gcore support on FreeBSD/i386.
11612
11613	* fbsd-proc.c: New file.
11614	* config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11615	* config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11616
11617	* lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11618	while statement.
11619
116202002-03-29  Jim Blandy  <jimb@redhat.com>
11621
11622	* cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11623	unescaped newlines in string literals, but newer ones don't.  So
11624	escape them.
11625
116262002-03-26  Michael Snyder  <msnyder@redhat.com>
11627	    Andrew Cagney <cagney@redhat.com>
11628
11629	* cli/cli-dump.c: New file.  Dump memory to file,
11630	restore file to memory.
11631	* cli/cli-dump.h: New file.
11632	* Makefile.in: Add rules, dependencies for cli-dump.o.
11633	* NEWS: Mention new commands.
11634
116352002-03-28  Michael Snyder  <msnyder@redhat.com>
11636
11637	* symfile.c (symbol_file_add): Move test for null symbols to later.
11638
116392002-03-27  Andrew Cagney  <ac131313@redhat.com>
11640
11641	From veksler at il.ibm.com:
11642	* utils.c (gdb_realpath): If canonicalize_file_name fails, return
11643	the xstrduped original path.
11644	Fix PR gdb/417.
11645
116462002-03-27  Michael Snyder  <msnyder@redhat.com>
11647
11648	* breakpoint.c (_initialize_breakpoint): Clean up help string.
11649	* infcmd.c (_initialize_infcmd): Ditto.
11650	* language.c (_initialize_language): Ditto.
11651	* symfile.c (_initialize_symfile): Ditto.
11652	* top.c (_init_main): Ditto.
11653	* cli/cli-cmds.c (init_cli_cmds): Ditto.
11654
116552002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11656
11657	* rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11658	vector registers handling.
11659	(skip_prologue): Handle new AltiVec instructions.  Fill in new
11660	fields of frame data.
11661	(frame_get_saved_regs): Fill in information for AltiVec registers.
11662
116632002-03-27  Jim Blandy  <jimb@redhat.com>
11664
11665	* symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11666	a function; leave this macro here to invoke that function.
11667	(symbol_init_mangled_name): Declaration for that function.
11668	* symtab.c (symbol_init_mangled_name): New function.
11669
116702002-03-27  Andrew Cagney  <ac131313@redhat.com>
11671
11672	* valarith.c: Replace strerror with safe_strerror.
11673	* tracepoint.c: Ditto.
11674	* lin-lwp.c: Ditto.
11675	* go32-nat.c: Ditto.
11676	* inflow.c: Ditto.
11677	* gnu-nat.c: Ditto.
11678
116792002-03-27  Andreas Schwab  <schwab@suse.de>
11680
11681	* event-top.c (command_line_handler): Remove useless if.
11682
116832002-03-27  Andreas Jaeger  <aj@suse.de>
11684
11685	* dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11686	comment.
11687
116882002-03-27  Michal Ludvig  <mludvig@suse.cz>
11689
11690	* x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11691	(x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11692	* x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11693	(x86_64_linux_dr_get_status, supply_gregset),
11694	(fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11695	* x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11696	(x86_64_register_info_table): Add.
11697	(X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11698	(x86_64_register_raw_size, x86_64_register_virtual_type),
11699	(x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11700	general x86_64_register_info_table.
11701	(i386_gdbarch_init): gdbarch_register_bytes is now set
11702	dynamicaly during initialization.
11703	* regformats/reg-x86-64.dat: Synced with changes to registers above.
11704	* gdbserver/linux-x86-64-low.c: Ditto.
11705
117062002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11707
11708	* gdbserver/server.c (main): Call target_signal_to_host_p
11709	and target_signal_to_host on signals received from the remote.
11710	* gdbserver/remote-utils.c (prepare_resume_reply): Call
11711	target_signal_from_host on signals sent to the remote.
11712	* gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11713	* gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11714
117152002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11716
11717	* signals/signals.c: Include "server.h" in gdbserver build.
11718	(target_signal_from_name): Don't use STREQ.
11719	(_initialize_signals): Likewise.  Don't include function in
11720	gdbserver build.
11721
117222002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11723
11724	* signals.c: Moved to...
11725	* signals/signals.c: Here.
11726	* Makefile (signals.o): Update.
11727
117282002-03-26  Jeff Law (law@redhat.com)
11729
11730	* somread.c (som_symtab_read): Remove some commented out code and
11731	updated related comments.  Do not set the minimal symbol table to
11732	mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11733	in a dynamic executable.
11734	* hppa-tdep.c (find_proc_framesize): Sanely handle the case
11735	where we are unable to find the minimal symbol for the given
11736	PC value.
11737
117382002-03-25  Jeff Law (law@redhat.com)
11739
11740	* linux-proc.c (read_mapping): Scan up to end of line for filename.
11741
117422002-03-25  Michal Ludvig  <mludvig@suse.cz>
11743
11744	* x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11745
117462002-03-23  Andrew Cagney  <ac131313@redhat.com>
11747
11748	* command.h: Update copyright.
11749	(struct cmd_list_element): Replace definition with opaque
11750	declaration.
11751	(enum cmd_types): Document that it will eventually be moved to
11752	cli/cli-decode.h
11753	(CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11754	(MALLOCED_REPLACEMENT): Delete macro.
11755	* Makefile.in (cli_decode_h): Add $(command_h).
11756	(top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11757	* top.c: Include "cli/cli-decode.h".
11758	* completer.c: Include "cli/cli-decode.h".
11759	* maint.c: Include "cli/cli-decode.h".
11760	* cli/cli-decode.h: Include "command.h".
11761	(enum command_class): Delete.
11762	(enum cmd_types): Comment out.
11763	(enum cmd_auto_boolean): Delete.
11764	(enum var_types): Delete.
11765
117662002-03-23  Andrew Cagney  <ac131313@redhat.com>
11767
11768	* cli/cli-decode.c: Include "gdb_assert.h".
11769	(add_set_or_show_cmd): New static function.
11770	(add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11771	(add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11772	all fields, such as func, from the set command.
11773
117742002-03-23  Andrew Cagney  <ac131313@redhat.com>
11775
11776	* MAINTAINERS (sh-elf): Change warning flag to -w.
11777
117782002-03-23  Andrew Cagney  <cagney@redhat.com>
11779
11780	* defs.h (error): Add printf format attribute.
11781	* thread-db.c (thread_from_lwp): Fix error format string.
11782	* stack.c (parse_frame_specification): Ditto.
11783	* cli/cli-decode.c (undef_cmd_error): Ditto.
11784	* scm-lang.c (scm_lookup_name): Ditto.
11785	* tracepoint.c (trace_error): Ditto.
11786	* remote-utils.c (usage): Ditto.
11787	* remote.c (compare_sections_command): Ditto.
11788	Fix PR gdb/328.
11789
117902002-03-22  Andrew Cagney  <ac131313@redhat.com>
11791
11792	* gdbtypes.c (append_composite_type_field): New function.
11793	(init_composite_type): New function.
11794	* gdbtypes.h (append_composite_type_field): Declare.
11795	(init_composite_type): Ditto.
11796
117972002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11798
11799        * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11800        function.
11801	* ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11802        * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11803        structure returning convention for SYSV ABI case, but not
11804        for GNU/Linux, FreeBSD, or NetBSD.
11805
118062002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11807
11808	* symtab.h (lookup_block_symbol): Add mangled_name argument
11809	to prototype.
11810
11811	* symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11812	with new mangled_name argument.
11813	* linespec.c (decode_line_1): Likewise.
11814	* valops (value_of_this): Likewise.
11815	* symtab.c (lookup_transparent_type): Likewise.
11816	(lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11817	(lookup_symbol): If we are given a mangled name, pass it down
11818	to lookup_symbol_aux.
11819	(lookup_block_symbol): If we are given a mangled name to check
11820	against, only return symbols which match it.
11821
118222002-03-22  Christopher Faylor  <cgf@redhat.com>
11823
11824	* win32-nat.c (child_create_inferior): Check for proper shell to use
11825	here, in case the user changes it on the fly.
11826	(_initialize_inftarg): Remove shell path considerations.
11827
118282002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11829
11830	* rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11831	for gdbarch_max_register_raw_size and max_register_virtual_size.
11832	Adjust copyright year.
11833
118342002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11835
11836	 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11837	 in a function to cover the entire beginning of the function
11838	 as well if it does not already.
11839
118402002-03-21  Tom Rix  <trix@redhat.com>
11841
11842	* rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11843	(rs6000_ptrace64): Renamed from ptrace64.
11844
118452002-03-20  Martin M. Hunt  <hunt@redhat.com>
11846
11847	* gdbserver/remote-utils.c (remote_open): Don't call
11848	getprotobyname, we're all using TCP here so just use
11849	IPPROTO_TCP.
11850	* gdbserver/gdbreplay.c (remote_open): Ditto.
11851
118522002-03-20  Martin M. Hunt  <hunt@redhat.com>
11853
11854	* regcache.c (_initialize_regcache): No need to call
11855	build_regcache() at this time; it gets called whenever
11856	the gdbarch changes.
11857
118582002-03-20  David O'Brien  <obrien@FreeBSD.org>
11859
11860	* sparc-nat.c:  Include sys/param.h where possible.
11861
118622002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11863
11864	Fix PR gdb/422.
11865	* c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11866	FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11867	* dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11868	complex types.
11869	* stabsread.c (rs6000_builtin_type): Likewise.
11870	(read_sun_floating_type): Likewise.
11871
118722002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11873
11874	* stabsread.c (read_member_functions): Remove skip code for duplicate
11875	constructor/destructor methods.  Use standard parsing for these
11876	methods and just do not chain them to the list of methods after
11877	parsing.
11878
118792002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11880
11881	* coffread.c: Remove redundant static declarations.  Replace
11882	occurrences of `PTR' with `void *'.
11883	* elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11884	* top.h (quit_cover): Likewise.
11885	* defs.h (catch_errors): Likewise.
11886
118872002-03-18  Andrew Cagney  <ac131313@redhat.com>
11888
11889	* defs.h (XMALLOC): Define.
11890	* gdb-events.sh (XMALLOC): Delete macro.
11891	* gdb-events.c, gdb-events.h: Regenerate.
11892	* gdbarch.sh (XMALLOC): Delete macro.
11893	* gdbarch.c: Regenerate.
11894	* serial.c (XMALLOC): Delete macro.
11895	* ui-file.c (XMALLOC): Ditto.
11896	* ser-unix.h (XMALLOC): Ditto.
11897	* sh-tdep.c (XMALLOC): Ditto.
11898	* ui-out.c (XMALLOC): Ditto.
11899	* utils.c (XMALLOC): Ditto.
11900	* i386-tdep.c (XMALLOC): Ditto.
11901	* gdb-events.c (XMALLOC): Ditto.
11902	* d10v-tdep.c (XMALLOC): Ditto.
11903	* cli-out.c (XMALLOC): Ditto.
11904
11905	* cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11906	* gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11907	* ui-file.c, ui-out.c: Ditto.
11908
119092002-03-18  Andrew Cagney  <ac131313@redhat.com>
11910
11911	* command.h (struct cmd_list_element): Add field context.
11912	(set_cmd_context, get_cmd_context): Declare.
11913	* cli/cli-decode.h: Ditto.
11914	* cli/cli-decode.c (get_cmd_context): New function.
11915	(set_cmd_context): New function.
11916	(add_cmd): Initialize context.
11917	Part of fixing PR gdb/145 and PR gdb/146.
11918
119192002-03-17  Andrew Cagney  <ac131313@redhat.com>
11920
11921	* cli/cli-decode.c (cmd_type): New function.
11922	* command.h (cmd_type): Declare.
11923	* infrun.c (set_schedlock_func): Call function cmd_type.
11924	* kod.c (kod_set_os): Call cmd_type.
11925	* cris-tdep.c (cris_version_update): Use function cmd_type.
11926	(cris_mode_update, cris_abi_update): Ditto.
11927
11928	* command.h: (execute_cmd_post_hook): Declare.
11929	(execute_cmd_pre_hook): Declare.
11930	* cli/cli-script.c (clear_hook_in_cleanup): New function.
11931	(execute_cmd_post_hook, execute_cmd_pre_hook): New
11932	functions. Execute pre/post hook while ensuring that afterwords
11933	hook_in is cleared.
11934	* top.c (execute_command): Use execute_cmd_post_hook, and
11935	execute_cmd_pre_hook to execute pre/post commands.
11936	* infrun.c (normal_stop): Pass stop_command and not pre_hook to
11937	hook_stop_stub.
11938	(hook_stop_stub): Call execute_cmd_pre_hook.
11939
119402002-03-17  Andrew Cagney  <ac131313@redhat.com>
11941
11942	* kod.c (kod_set_os): Revert previous change.  Is called by ``info
11943	set'' and this leads to a core dump.  Move xstrdup of
11944	operating_system to after check that it is not NULL.
11945
119462002-03-17  Andrew Cagney  <ac131313@redhat.com>
11947
11948	* kod.c (kod_set_os): Remove unnecessary check that
11949	``command->type'' is set_cmd.
11950
11951	* valprint.c (set_input_radix): Use input_radix.
11952	(set_output_radix): Use output_radix.
11953	(set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11954	isn't reverted.
11955
119562002-03-16  Andrew Cagney  <ac131313@redhat.com>
11957
11958	* value.h (struct value): Delete field ``substring_addr''.  Change
11959	aligner fields to force_doublest_align, force_longest_align,
11960	force_core_addr_align and force_pointer_aligh.
11961
11962	* value.h (struct value): Fix typo in above change.
11963
119642002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11965
11966	* ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11967	to fix internal_error from ``maintenance print architecture''.
11968
119692002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11970
11971	* cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11972	for gcc versions after gcc-2.8.1.
11973
119742002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11975
11976	* eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11977	for method resolution.  Restore adjustment of ``this'' pointer after
11978	calling value_struct_elt, which was accidentally removed during the
11979	HP merge.
11980
119812002-03-15  Andrew Cagney  <ac131313@redhat.com>
11982
11983	* eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11984	value_of_register.
11985	* findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11986	get_saved_register.
11987	* value.h (value_of_register): Update.
11988
119892002-03-14  Richard Henderson  <rth@redhat.com>
11990
11991	* configure.in: Detect declaration for canonicalize_file_name.
11992	* utils.c (canonicalize_file_name): Declare, if needed.
11993	(gdb_realpath): Prefer realpath if available and usable.
11994	* config.in, configure: Rebuild.
11995
119962002-03-14  Richard Henderson  <rth@redhat.com>
11997
11998	* dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11999	a constant array bound.
12000
12001	* MAINTAINERS: Add myself to write-after-approval.
12002
120032002-03-14  Michael Snyder  <msnyder@redhat.com>
12004
12005	* symfile.c (syms_from_objfile): Return immediately if no syms.
12006	(symbol_file_add): Return immediately if no syms.
12007	(find_sym_fns): Return immediately if no syms.
12008
120092002-03-13  Michal Ludvig  <mludvig@suse.cz>
12010
12011	* gdbserver/remote-util.c (remote_open): Print remote-side's
12012	IP address when remote debugging over the network.
12013
120142002-03-12  David O'Brien  <obrien@FreeBSD.org>
12015
12016	* config/sparc/fbsd.mh: Fix copyright.
12017	* config/sparc/fbsd.mt: Likewise.
12018
120192002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12020
12021	* MAINTAINERS: Fix typo in name of gdb warnings option.
12022	(x86-64): Fix formating so that this can be parsed by awk.
12023
120242002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12025
12026	* Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12027	* defs.h: Include "gdb/signals.h".
12028	(enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12029
120302002-03-10  Michal Ludvig  <mludvig@suse.cz>
12031
12032	* x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12033	* x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12034	from x86-64-tdep.h
12035
120362002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12037	    Don Howard <dhoward@redhat.com>
12038
12039	* mips-tdep.c (ST0_FR): Define.
12040	(mips2_fp_compat): New function, temporarily disabled.
12041	(mips_read_fp_register_single): New function.
12042	(mips_read_fp_register_double): New function.
12043	(mips_print_register): Use them.
12044	(do_fp_register_row): Likewise.
12045
120462002-03-09  Andrew Cagney  <ac131313@redhat.com>
12047
12048	* MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12049	approval''.
12050
120512002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12052
12053	* stabsread.c (read_member_functions): Fix is_stub test for
12054	static member functions, improve comment.
12055
120562002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12057
12058	* remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12059	(mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12060	(_initialize_remote_rdi): Use add_set_boolean_cmd to register
12061	commands that set boolean values.
12062	(arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12063	(arm_rdi_resume): Always initialize PC.
12064	(arm_rdi_open): Don't use rslt as a boolean.
12065	(arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12066	(arm_rdi_fetch_registers, arm_rdi_store_registers)
12067	(arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12068	(arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12069
120702002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12071
12072	* configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12073	* configure: Rebuilt.
12074
120752002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12076
12077	* m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12078	(m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12079
120802002-03-06  Andrew Cagney  <ac131313@redhat.com>
12081
12082	* cli/cli-decode.c (set_cmd_completer): New function.
12083	* command.h (set_cmd_completer): Declare.
12084	* cli/cli-decode.h (set_cmd_completer): Ditto.
12085
12086	* breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12087	* cli/cli-cmds.c (init_cli_cmds): Ditto.
12088	* win32-nat.c (_initialize_inftarg): Ditto.
12089	* remote-rdi.c (_initialize_remote_rdi): Ditto.
12090	* proc-api.c (_initialize_proc_api): Ditto.
12091	* hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12092	* source.c (_initialize_source): Ditto.
12093	* exec.c (_initialize_exec): Ditto.
12094	* solib.c (_initialize_solib): Ditto.
12095	* top.c (init_main): Ditto.
12096	* tracepoint.c (_initialize_tracepoint): Ditto.
12097	* symfile.c (_initialize_symfile): Ditto.
12098	* printcmd.c (_initialize_printcmd): Ditto.
12099	* infcmd.c (_initialize_infcmd): Ditto.
12100	* corefile.c (_initialize_core): Ditto.
12101
121022002-03-05  Andrew Cagney  <ac131313@redhat.com>
12103
12104	* MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12105
121062002-03-05  Andrew Cagney  <ac131313@redhat.com>
12107
12108	* MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12109
121102002-03-05  Andrew Cagney  <ac131313@redhat.com>
12111
12112	* NEWS: Update headings, 5.2 has branched.
12113
121142002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12115
12116	* gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12117	(num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12118	(register_addr, REGISTER_RAW_SIZE): Likewise.
12119	(usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12120	* gdbserver/linux-x86-64-low.c: Remove extra #endif.
12121
121222002-03-03  Michal Ludvig <mludvig@suse.cz>
12123
12124	* MAINTAINERS (x86-64): Add myself.
12125	* x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12126	changed value_ptr -> struct value *
12127
121282002-03-01  David O'Brien  <obrien@FreeBSD.org>
12129
12130	* configure.host (sparc64-*-freebsd): Add.
12131	* configure.tgt: Likewise.
12132	* config/sparc/fbsd.mh: New file.
12133	* config/sparc/fbsd.mt: Likewise.
12134	* config/sparc/nm-fbsd.h: Likewise.
12135	* config/sparc/tm-fbsd.h: Likewise.
12136
121372002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12138
12139	* config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12140	regformats/reg-s390x.dat.
12141
121422002-03-01  Andrew Cagney  <ac131313@redhat.com>
12143
12144	* utils.c: Add FIXME explaining true/false problem.
12145
121462002-02-28  Andrew Cagney  <ac131313@redhat.com>
12147
12148	* MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12149
121502002-02-28  Michael Chastain  <mec@shout.net>
12151
12152	* MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12153
121542002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12155
12156	* gdbserver/linux-s390-low.c: New file.
12157	* regformats/reg-s390.dat: New file.
12158	* regformats/reg-s390x.dat: New file.
12159	* gdbserver/configure.srv: Add S/390.
12160	* gdbserver/Makefile.in: Add S/390.
12161	* configure.tgt: Enable gdbserver for S/390.
12162
121632002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12164
12165	* go32-nat.c (_initialize_go32_nat): Don't use periods in the
12166	first line of the doc string for "info dos", except at the end of
12167	the sentence, since the short help stops at the first period.
12168
121692002-02-28  Jason Merrill  <jason@redhat.com>
12170
12171	* dwarf2read.c (dwarf_cfi_name): Add new codes.
12172
121732002-02-27  Fred Fish  <fnf@redhat.com>
12174
12175	* blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12176	comment (dumy -> dummy).
12177
121782002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12179
12180	* symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12181
121822002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12183
12184      * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12185
121862002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12187
12188	* gdbserver/acconfig.h: New file.
12189	* gdbserver/i387-fp.c: New file.
12190	* gdbserver/i387-fp.h: New file.
12191	* gdbserver/linux-x86-64.c: New file.
12192	* regformats/reg-x86-64.dat: New file.
12193	* configure.tgt: Add x86_64-*-linux* gdbserver support.
12194	* gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12195	* gdbserver/configure.in: Add support for regsets.
12196	* gdbserver/config.in: Regenerate.
12197	* gdbserver/configure: Regenerate.
12198	* gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12199	* gdbserver/linux-low.h: New file.
12200	* gdbserver/linux-low.c: Include "linux-low.h".  Add support
12201	for regsets.
12202	* gdbserver/linux-arm-low.c: Include "linux-low.h".
12203	* gdbserver/linux-ia64-low.c: Include "linux-low.h".
12204	* gdbserver/linux-m68k-low.c: Include "linux-low.h".
12205	* gdbserver/linux-mips-low.c: Include "linux-low.h".
12206	* gdbserver/linux-ppc-low.c: Include "linux-low.h".
12207	* gdbserver/linux-sh-low.c: Include "linux-low.h".
12208	* gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12209	"i387-fp.h".  Add PTRACE_GETREGS and friends.
12210	* gdbserver/regcache.c (supply_register): New function.
12211	(supply_register_by_name): New function.
12212	(collect_register): New function.
12213	(collect_register_by_name): New function.
12214
122152002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12216
12217	* gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12218	(config.status): Add configure.srv dependency.
12219	(server_h): Add config.h dependency.
12220
122212002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12222
12223	* regformats/reg-i386-linux.dat: New file, with $orig_eax.
12224	* gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12225	* gdbserver/configure.srv: Change i386-*-linux* to use
12226	reg-i386-linux.o.
12227
122282002-02-26  Andrew Cagney  <ac131313@redhat.com>
12229
12230	* x86-64-tdep.c: Re-indent.  Update copyright date.
12231
122322002-02-26  Andrew Cagney  <ac131313@redhat.com>
12233
12234	From Michal Ludvig <mludvig@suse.cz>:
12235	* x86-64-tdep.c (value.h): Delete.
12236	(gdb_assert.h): Include.
12237	(x86_64_register_convert_to_virtual,
12238	x86_64_register_convert_to_raw ): Add check which lets only
12239	floating-point values to be converted.
12240	(value_push): Delete.
12241	(x86_64_push_arguments): Order of arguments pushed on stack fixed.
12242	(i386_gdbarch_init): Number of register_bytes fixed.
12243
122442002-02-26  Andrew Cagney  <ac131313@redhat.com>
12245
12246	* MAINTAINERS: Add x86-64 target.
12247
122482002-02-26  Andrew Cagney  <ac131313@redhat.com>
12249
12250	* memattr.c (mem_command): Eliminate ``true'' and ``false''.
12251	* osfsolib.c (solib_map_sections): Ditto.
12252	* irix5-nat.c (solib_map_sections): Ditto.
12253	* corelow.c (gdb_check_format): Ditto.
12254	* symfile.c (symfile_bfd_open): Ditto.
12255	* solib.c (solib_map_sections): Ditto.
12256	Fix PR gdb/354.
12257
122582002-02-26  Andrew Cagney  <ac131313@redhat.com>
12259
12260	* remote.c (_initialize_remote): By default, disable ``e'' and
12261	``E'' step out-of-range packets.
12262
122632002-02-26  Andreas Schwab  <schwab@suse.de>
12264
12265	* config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12266	m68k_linux_frame_saved_pc.
12267	(IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12268	in_sigtramp.
12269	(SIGCONTEXT_PC_OFFSET): Remove.
12270	* m68klinux-nat.c (m68k_linux_frame_saved_pc,
12271	m68k_linux_sigtramp_saved_pc): New functions.
12272	(IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12273	(SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12274	(UCONTEXT_PC_OFFSET): Define.
12275	(m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12276	non-RT and RT signal trampolines.
12277
122782002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12279
12280	* config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12281	(TARGET_NBPG, STACK_END_ADDR): Delete
12282	(VARIABLES_INSIDE_BLOCK): Delete.
12283
122842002-02-25  Andrew Cagney  <ac131313@redhat.com>
12285
12286	* utils.c (perror_with_name): Make string parameter constant.
12287	(print_sys_errmsg): Ditto.
12288	(query): Ditto.
12289	* defs.h (perror_with_name): Update.
12290	(print_sys_errmsg): Update.
12291	(query): Update.
12292
122932002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12294
12295	From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12296	* gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12297
122982002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12299
12300	* rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12301	if it already matches the current architecture from the exec file.
12302	Include arch-utils.h for gdbarch_info_init prototype.
12303	* Makefile.in (rs6000-nat.o): Update dependencies.
12304
123052002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12306
12307	* config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12308	 list of exported variables.
12309
123102002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12311
12312	* gdbserver/configure.srv: New file.
12313	* gdbserver/configure.in: Use configure.srv instead
12314	of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12315	from it.
12316	* gdbserver/configure: Regenerated.
12317	* gdbserver/terminal.h: New file.
12318	* gdbserver/Makefile.in: Update for configure changes.  Remove
12319	more unneeded include paths.
12320
123212002-02-24  Andrew Cagney  <ac131313@redhat.com>
12322
12323	From wiz at danbala:
12324	* config/sparc/tm-sp64.h: Fix grammar and typos.
12325	Fix PR gdb/287.
12326
123272002-02-24  Andrew Cagney  <ac131313@redhat.com>
12328
12329	* lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12330	with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12331	* m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12332	* x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12333	* ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12334	* proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12335	* s390-tdep.c: Ditto.
12336	* config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12337	* config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12338	* config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12339	* config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12340	* config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12341	* config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12342	* config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12343	* config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12344	* config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12345	* config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12346	Fix PR gdb/378.
12347
123482002-02-23  Andrew Cagney  <ac131313@redhat.com>
12349
12350	* lin-thread.c: Delete file.
12351	* configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12352	to gdb_proc_service.h.
12353	* configure: Re-generate.
12354
12355	* ocd.c (ocd_open): Do not try to open the "ocd" device.
12356	* serial.c (serial_open): Delete check for "ocd".
12357	Fix PR gdb/349.
12358
12359	* Makefile.in (linux-thread.o): Delete target.
12360	* linux-thread.c: Delete file.
12361
12362	* config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12363	renamed SH files to be consistent.
12364
12365	* symtab.c (sort_search_symbols): Use xfree.
12366
123672002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12368
12369	* arm-linux-tdep.c (arm_linux_init_abi): Register
12370	IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12371	* config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12372	definition with undef, since we don't want the sysvr4 definition.
12373	(SKIP_TRAMPOLINE_CODE): Likewise.
12374
123752002-02-23  Andrew Cagney  <ac131313@redhat.com>
12376
12377	From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12378
12379	* configure.in: (AC_CHECK_FUNCS) Added test for
12380	canonicalize_file_name Regenerated.
12381        * config.in, configure: Regenerated.
12382        * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12383	defined use canonicalize_file_name.
12384
123852002-02-23  Michael Chastain  <mec@shout.net>
12386
12387	* MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12388
123892002-02-23  Andrew Cagney  <ac131313@redhat.com>
12390
12391	* README: Remove references to cygnus.com.
12392	* MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12393	dot com'' form.  Remove references to cygnus.com and sourceware.
12394
123952002-02-23  Andrew Cagney  <ac131313@redhat.com>
12396
12397	From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12398	* Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12399	1003.1-2001 no longer allows "head -1".
12400	* gdb/Makefile.in (version.c): Likewise.
12401	* gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12402	* gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12403	equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12404
124052002-02-23  Andrew Cagney  <ac131313@redhat.com>
12406
12407	* cli/cli-decode.c (cmd_cfunc_eq): New function.
12408	* command.h (cmd_cfunc_eq): Declare.
12409	* cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12410
12411	* cli/cli-cmds.h (is_complete_command): Change parameter to a
12412	``struct cmd_list_element *''.
12413	* cli/cli-cmds.c (is_complete_command): Update.  Use
12414	cmd_cfunc_eq.
12415	* top.c (execute_command): Pass the command to
12416	is_complete_command.
12417	* tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12418
124192002-02-23  Andrew Cagney  <ac131313@redhat.com>
12420
12421	From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12422	* config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12423	architecture defines.
12424	* s390-tdep.c (s390_gdbarch_init): Likewise.
12425
124262002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12427
12428	* arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12429	(arm_linux_push_arguments): Likewise.
12430	(arm_linux_init_abi): Register them.  Also register linux-specific
12431	call_dummy_words.
12432	(find_minsym_and_objfile): Use strcmp, not STREQ.
12433	* config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12434	(arm_linux_call_dummy_words): Delete declaration.
12435	(EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12436	(arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12437	declarations.
12438	(LOWEST_PC): Delete.
12439
124402002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12441
12442	* maint.c (print_section_info): Do not prepend `0x' to filepos
12443	output, it will be handled by local_hex_string_custom.
12444
124452002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12446
12447	* arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12448	(store_newfpe_double, store_newfpe_extended, store_fpregister)
12449	(store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12450
124512002-02-22  Jim Blandy  <jimb@redhat.com>
12452
12453	Indicate that the bcache functions don't change the strings
12454	they're passed.
12455	* bcache.h (bcache, hash): Add `const' keywords to declarations.
12456	* bcache.c (bcache, hash): Add `const' keywords to definitions.
12457
124582002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12459
12460	* win32-nat.c (child_create_inferior): Fix create flags setting bug.
12461
124622002-02-21  Christopher Faylor  <cgf@redhat.com>
12463
12464	* win32-nat.c (register_loaded_dll): Just use raw name when we can't
12465	find the complete path to a loaded DLL.
12466
124672002-02-21  Fred Fish  <fnf@redhat.com>
12468
12469	* dbxread.c (process_one_symbol): When finding an N_FUN symbol
12470	that marks the end of the range of a function, enter a line number
12471	entry that has a line number of zero and a PC offset that matches
12472	the end of the function.  This starts a range of PC's for which no
12473	line number information is known.
12474	* symtab.c (find_pc_sect_line): If our best fit is in a range of
12475	PC's for which no line number info is found (line number is zero)
12476	then we didn't find any valid line information.
12477	* symtab.h: Document use of zero line number entry.
12478
124792002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12480
12481	* ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12482	(have_ptrace_getvrregs): Define for run time checks.
12483	(gdb_vrregset_t): New type for Altivec register handling.
12484	(fetch_register, store_register): Fetch/store altivec register
12485	when needed.
12486	(fetch_altivec_register, store_altivec_register): New functions.
12487	(supply_vrregset, fill_vrregset): New functions.
12488	(fetch_altivec_registers, store_altivec_registers): New functions.
12489	(fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12490	registers as well.
12491
124922002-02-21  Jiri Smid  <smid@suse.cz>
12493
12494	* config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12495
124962002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12497
12498	* Makefile.in (armnbsd-nat.o): Update dependencies.
12499	* armnbsd-nat.c (supply_gregset): New function.  Common code to
12500	supply the integer register set.
12501	(supply_fparegset): New function.  Similar for FPA registers.
12502	(fetch_regs, fetch_fp_regs): Use them.
12503	(fetch_core_registers): Likewise.
12504	(fetch_elfcore_registers): New function.
12505	(arm_netbsd_elfcore_fns): New core-file type specification.
12506	(_initialize_arm_netbsd_nat): Register it.
12507
125082002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12509
12510	* armnbsd-nat.c: Include gdbcore.h.
12511	(FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12512	(fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12513	'void' to declaration, to shut up ARI.
12514	(fetch_core_registers): Make static.  Rewrite using supply_register.
12515	(arm_netbsd_core_fns): New core-file type specification.
12516	(_initialize_arm_netbsd_nat): New function.
12517
125182002-02-21  Christopher Faylor  <cgf@redhat.com>
12519
12520	* win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12521	value.
12522
125232002-02-20  Christopher Faylor  <cgf@redhat.com>
12524
12525	* win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12526	fails.
12527
125282002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12529
12530	* jv-exp.y (parse_number): Change type of implicit longs
12531	to builtin_type_uint64.
12532
125332002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12534
12535	* gdbserver/linux-low.c (mywait): Change argument to waitpid
12536	to be an integer instead of a `union wait'.
12537
125382002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12539
12540	* mips-linux-nat.c: Call the operating system GNU/Linux.
12541	* mips-linux-tdep.c: Likewise.
12542	* mips-tdep.c: Likewise.
12543
125442002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12545
12546	Fix PR gdb/265.
12547	* jv-exp.y (parse_number): Handle 64-bit integers.
12548
125492002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12550
12551	* gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12552	AC_STDC_HEADERS to AC_HEADER_STDC.
12553	* gdbserver/configure: Regenerated.
12554
125552002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12556
12557	* arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12558	is defined.
12559	* sparc-tdep.c (get_longjmp_target): Likewise.
12560
125612002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12562
12563	* News: Add news about ARM and Multi-arch.  Mention the new target
12564	arm*-*-netbsd*.
12565
125662002-02-19  Jim Blandy  <jimb@redhat.com>
12567
12568	* stabsread.c (error_type_complaint): Improve error message.
12569
125702002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12571
12572	* gdbserver/README: Update documentation.
12573	* gdbserver/configure.in: Update configury to match documentation.
12574	* gdbserver/Makefile.in: Likewise.
12575	* gdbserver/configure: Regenerated.
12576	* gdbserver/aclocal.m4: New file, generated by aclocal.
12577	* gdbserver/config.in: New file, generated by autoheader.
12578
125792002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12580
12581	* config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12582	armnbsd-nat.c.
12583
125842002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12585
12586	* arm-tdep.h (enum arm_float_model): New enum.
12587	(struct gdbarch_tdep): Add fp_model.
12588	* arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12589	up floating-point conversions until we know the floating-point model
12590	in use by the inferior.  Don't complain about being unable to
12591	determine the ABI of the inferior when we don't have one.
12592	(arm_extract_return_value): Support different floating-point models.
12593	(arm_store_return_value): Likewise.
12594	* armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12595	ARM_FLOAT_SOFT.
12596	(arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12597
125982002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12599
12600	* i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12601        of ``current_gdbarch''.
12602
126032002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12604
12605	* armnbsd-nat.c : ANSIfy all function declarations.
12606	(fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12607	(fetch_inferior_registers): Re-implement in terms of above.
12608	(store_register, store_regs, store_fp_register, store_fp_regs): New.
12609	(store_inferior_registers): Re-implement in terms of above.
12610
126112002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12612
12613	* arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12614	kernel.
12615	* arm-linux-tdep.c: Likewise.
12616	* config/arm/tm-linux.h: Likewise.
12617
126182002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12619
12620	* configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12621	* config/arm/nbsd.mt (TM_FILE): Delete.
12622	* config/arm/tm-nbsd.h: Delete.
12623
126242002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12625
12626	* arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12627	Initialize CALL_DUMMY_LENGTH.
12628
126292002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12630
12631	* armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12632	function.
12633	(arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12634	* config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12635	defines one thing and that is incorrect for this port.
12636	(IN_SOLIB_CALL_TRAMPOLINE): Delete.
12637
126382002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12639
12640	* go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12641
126422002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12643
12644	* win32-nat.c (display_selector): New function. Displays information
12645	about the information returned by GetThreadSelectorEntry API function.
12646	(display_selectors): New function. Displays the infomation of
12647	the selector given as argument, or of CS, DS ans FS selectors
12648	if no argument is given.
12649	( _initialize_inftarg): Add "w32" as info prefix command.
12650	Add "info w32 selector" as command calling display_selectors.
12651
126522002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12653
12654	* i386-tdep.c (get_longjmp_target): Fix compilation failure
12655	by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12656	if not defined.
12657
126582002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12659
12660	* config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12661
126622002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12663
12664	* arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12665	(arm_fix_call_dummy): Call it.
12666	(arm_call_dummy_breakpoint_offset): Delete.
12667	(arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12668	* config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12669
126702002-02-18  Andrew Cagney  <ac131313@redhat.com>
12671
12672	* gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12673	Default to func_frame_chain_valid.
12674	* gdbarch.h, gdbarch.c: Re-generate.
12675	* frame.h (FRAME_CHAIN_VALID): Delete definition.
12676
126772002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12678
12679	* ppc-linux-nat.c: Update copyright.
12680	(fetch_register, store_register): Add tid parameter, don't compute
12681	tid here.
12682	(fetch_ppc_registers, store_ppc_registers): Add tid
12683	parameter. Pass it along to callees.
12684	(fetch_inferior_registers, store_inferior_registers): Compute tid
12685	here, and pass it to calleed functions.
12686	(fill_gregset, supply_fpregset): Clean up formatting.
12687
126882002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12689
12690	* arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12691	* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12692
126932002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12694
12695	* gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12696	* gdbarch.c gdbarch.h: Regenerate.
12697	* breakpoint.c (create_longjmp_breakpoint): Always compile this
12698	function.
12699	(breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12700	* infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12701	(handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12702
12703	* arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12704	* arm-tdep.c (arm_get_longjmp_target): New function.
12705	(arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12706	this to a positive value register arm_get_longjmp_target as the
12707	longjmp handler.
12708	* arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12709	(arm_linux_init_abi): Set up longjmp description in tdep.
12710	* armnbsd-nat.c (get_longjmp_target): Delete.
12711	* armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12712	description in tdep.
12713	* config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12714	(get_longjmp_target): Delete declaration.
12715	(GET_LONGJMP_TARGET): Delete.
12716	* config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12717	(GET_LONGJMP_TARGET): Delete.
12718
127192002-02-17  Kevin Buettner  <kevinb@redhat.com>
12720
12721	From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12722	* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12723	of ``current_gdbarch''.
12724
127252002-02-17  Tom Tromey  <tromey@redhat.com>
12726
12727	* cli/cli-cmds.c (compare_strings): New function.
12728	(complete_command): Only print each unique item once.
12729	* completer.h (complete_line): Declare.
12730	* completer.c (complete_line): New function.
12731	(line_completion_function): Use it.
12732
127332002-02-16  Andrew Cagney  <ac131313@redhat.com>
12734
12735	* gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12736	* gdbarch.h, gdbarch.c: Re-generate.
12737
127382002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12739
12740	* valarith.c (value_x_unop): Fix decrement; support post-decrement.
12741
127422002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12743
12744	From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12745	* valops.c (value_arg_coerce): Don't take the address of a reference
12746	to convert an argument to a reference.
12747
127482002-02-15  Christopher Faylor  <cgf@redhat.com>
12749
12750	* win32-nat.c (get_image_name): New function.
12751	(handle_load_dll): Use get_image_name function.
12752	(get_child_debug_event): Avoid registering debug events until possibly
12753	execed process is started.
12754	(child_create_inferior): Allow invocation via shell so that command
12755	line redirection, etc.  works ok.
12756	(_initialize_inftarg): Add new command: "set shell" to control whether
12757	a shell is used to start a process.
12758
127592002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12760
12761	* gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12762	instead of find_register_by_number.
12763	(cannot_store_register): Likewise.
12764
127652002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12766
12767	* dwarf2read.c: Replace fprintf (stderr, ...) by
12768	fprintf_unfiltered (gdb_stderr, ...).
12769
127702002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12771
12772	* gdbserver/gdbserver.1: Document --attach.
12773
127742002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12775
12776	* arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12777	descriptions.
12778	* arm-tdep.c (arm_default_arm_le_breakpoint)
12779	(arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12780	(arm_default_thumb_be_breakpoint): New.  Initialize them from
12781	traditional breakpoint defines.
12782	(arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12783	(arm_gdbarch_init): Initialize new breakpoint variables.
12784	* arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12785	(arm_linux_init_abi): Initialize linux-specific breakpoint.
12786	* armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12787	(arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12788	code out to ...
12789	(arm_netbsd_init_abi_common): ... here; new function.
12790	* config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12791	(THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12792	* config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12793	* config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12794
127952002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12796
12797	* arm-tdep.h (enum arm_abi): New enum.
12798	(struct gdbarch_tdep): New structure.
12799	(LOWEST_PC): Provide a default.
12800	(arm_gdbarch_register_os_abi): Declare new function.
12801	* arm-tdep.c (arm_abi_names): New array.
12802	(process_note_abi_tag_sections): New function.
12803	(get_elfosabi): New function.
12804	(arm_gdbarch_register_os_abi): New function.
12805	(arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12806	support for that ABI has been built in, then call the appropriate
12807	configuration routine.  Use gdbarch_num_regs() to get the number
12808	of registers.
12809	(arm_dump_tdep): New function.
12810	(arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12811	place-holder functions.
12812	(_initialize_arm_tdep): Register them.
12813	* config/arm/tm-arm.h (LOWEST_PC): Delete.
12814
12815	* armnbsd-tdep.c: New file.
12816	* Makefile.in (armnbsd-tdep.o): Add dependencies.
12817	* config/arm/nbsd.mt (TDEPFILES): Add it.
12818	* config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12819
12820	* armnbsd-nat.c: Include regcache.h.
12821	* Makefile.in (armnbsd-nat.o): Update dependency list.
12822
12823	* arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12824
128252002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12826
12827	* gdbserver/Makefile.in: Fix typos in target rules.
12828
128292002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12830
12831	Fix part of PR gdb/267.
12832	* linespec.c (find_methods): Handle constructors specially for now.
12833
128342002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12835
12836	* arm-tdep.c (arm_push_arguments): Eliminate special float type
12837	handling.
12838	* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12839	standard_coerce_float_to_double().
12840
128412002-02-14  Christopher Faylor  <cgf@redhat.com>
12842
12843	* config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12844	GDBINIT_FILENAME.
12845
128462002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12847
12848	* rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12849	find_variant_by_name, because it confuses the multiarch
12850	framework. Return NULL if there isn't an architecture with the
12851	user supplied name, instead of forcing a different one without
12852	recording the change with the multiarch machinery.
12853	(find_variant_by_name): Delete.
12854
128552002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12856
12857	* config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12858	i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12859
128602002-02-13  Martin M. Hunt  <hunt@redhat.com>
12861
12862	* stack.c (print_frame_info_base): When calling
12863	print_frame_info_listing_hook, set current_source_symtab.
12864
128652002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12866
12867	* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12868	and remove unused $(INCLUDE_DIR).
12869	Add regcache.c to OBS.
12870	Add generated register protocol files to clean target.
12871	Update dependencies for new objects, obsolete old target code.
12872
12873	* gdbserver/linux-low.c: Remove all platform-specific code to
12874	new files.  Remove various dead code.  Update to use regcache
12875	functionality.
12876	* gdbserver/remote-utils.c (fromhex): Add return statement
12877	to quiet warning.
12878	(putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12879	constant.
12880	(input_interrupt): Add integer parameter to match prototype
12881	of a signal handler.
12882	(outreg): Use register_data ().
12883	(prepare_resume_reply): Use gdbserver_expedite_regs.
12884	* gdbserver/server.c (main): Dynamically allocate own_buf because
12885	PBUFSIZ is no longer constant.  Use registers_to_string () and
12886	registers_from_string ().
12887	* gdbserver/server.h: No longer include "defs.h".  Add prototypes
12888	for error (), fatal (), and warning ().  Update definition of
12889	PBUFSIZ to use regcache functionality.  Add include guard.
12890	* gdbserver/utils.c (fatal): Add missing ``const''.
12891	(warning): New function.
12892
12893	* regformats/regdat.sh: Include "regcache.h" in generated files.
12894	Provide init_registers () function.
12895	* regformats/regdef.h: Add prototype for set_register_cache ().
12896	Add include guard.
12897
12898	* gdbserver/linux-arm-low.c: New file.
12899	* gdbserver/linux-i386-low.c: New file.
12900	* gdbserver/linux-ia64-low.c: New file.
12901	* gdbserver/linux-m68k-low.c: New file.
12902	* gdbserver/linux-mips-low.c: New file.
12903	* gdbserver/linux-ppc-low.c: New file.
12904	* gdbserver/linux-sh-low.c: New file.
12905
12906	* gdbserver/regcache.c: New file.
12907	* gdbserver/regcache.h: New file.
12908
12909	* gdbserver/low-linux.c: Removed obsolete file.
12910
129112002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12912
12913	* config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12914	* config/i386/linux.mt: Likewise.
12915	* config/ia64/linux.mt: Likewise.
12916	* config/m68k/linux.mh: Likewise.
12917	* config/powerpc/linux.mh: Likewise.
12918	* config/mips/linux.mt: Likewise.
12919
12920	* config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12921
12922	* config/i386/i386lynx.mh: Mark gdbserver variables
12923	as (currently) obsolete for this target.
12924	* config/i386/nbsd.mt: Likewise.
12925	* config/i386/nbsdelf.mt: Likewise.
12926	* config/m32r/m32r.mt: Likewise.
12927	* config/m68k/m68klynx.mh: Likewise.
12928	* config/m68k/nbsd.mt: Likewise.
12929	* config/m68k/sun3os4.mh: Likewise.
12930	* config/mips/vr5000.mt: Likewise.
12931	* config/ns32k/nbsd.mt: Likewise.
12932	* config/pa/hppabsd.mh: Likewise.
12933	* config/pa/hppaosf.mh: Likewise.
12934	* config/powerpc/nbsd.mt: Likewise.
12935	* config/rs6000/rs6000lynx.mh: Likewise.
12936	* config/s390/s390.mt: Likewise.
12937	* config/s390/s390x.mt: Likewise.
12938	* config/sparc/sparclynx.mh: Likewise.
12939	* config/sparc/sun4os4.mh: Likewise.
12940	* config/i386/x86-64linux.mt: Likewise.
12941	* config/sparc/linux.mh: Likewise.
12942
129432002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12944
12945	* configure.tgt: Configure gdbserver only for known working
12946	targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12947	* configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12948	SUBDIRS if it is configured.  Update comment for ${nativefile}.
12949	* configure: Regenerated.
12950
129512002-02-13  Michael Snyder  <msnyder@redhat.com>
12952
12953	* config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12954
12955	* gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12956	(default_gcore_mach): Just return 0, work around a problem in bfd.
12957	(default_gcore_target): OK to return NULL if exec_bfd is null.
12958	(make_mem_sec): Use a cast, avoid a warning.
12959
12960	* procfs.c (find_memory_regions_callback): Use a cast instead of
12961	calling host_pointer_to_address (which complains if
12962	sizeof (host pointer) != sizeof (target pointer)).
12963	(procfs_make_note_section): Avoid overflow in psargs string.
12964
12965	* procfs.c (procfs_make_note_section): Make the default
12966	implementation return an error.
12967
129682002-02-13  Rodney Brown  <rbrown64@csc.com.au>
12969
12970	* procfs.c (procfs_make_note_section): Provide a default definition
12971	(for alpha-dec-osf4.0f). Fix typos.
12972
129732002-02-13  Elena Zannoni  <ezannoni@redhat.com>
12974
12975	* linux-proc.c: Add include of regcache.h.
12976	* Makefile.in (linux-proc.o): Add dependency on regcache.h.
12977
129782002-02-13  Andrew Cagney  <ac131313@redhat.com>
12979
12980	From 2002-01-18 Greg McGary <greg@mcgary.org>:
12981	* memattr.c (create_mem_region): Disallow useless empty region.
12982	Regions are half-open intervals, so allow [A..B) [B..C) as
12983	non-overlapping.
12984
129852002-02-13  Michael Chastain <mec@shout.net>
12986
12987	* defs.h: Kill CONST_PTR.
12988	* c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12989	* c-lang.c (c_builtin_types): Likewise.
12990	* ch-lang.c (ch_builtin_types): Likewise.
12991	* f-lang.c (f_builtin_types): Likewise.
12992	* language.c (unknown_builtin_types): Likewise.
12993	* m2-lang.c (m2_builtin_types): Likewise.
12994	* p-lang.c (pascal_builtin_types): Likewise.
12995	* scm-lang.c (c_builtin_types): Likewise.
12996
129972002-02-13  Keith Seitz  <keiths@redhat.com>
12998
12999	* arm-tdep.h (arm_get_next_pc): Add declaration.
13000
130012002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13002
13003	* arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13004	with other related struct-returning functions.
13005	(arm_extract_struct_value_address): New function.
13006	(arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13007	initialize float_format, double_format and long_double_format as
13008	appropriate to the endianness of the target.
13009	* config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13010	(arm_use_struct_convention): Delete declaration.
13011	(USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13012
130132002-02-13  Keith Seitz  <keiths@redhat.com>
13014
13015        * defs.h (core_addr_to_string_nz): New function.
13016
130172002-02-13  Mark Kettenis  <kettenis@gnu.org>
13018
13019	Apply missing bits of 2002-01-15 patch.
13020	* i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13021	(fill_fpregset): Use i387_fill_fsave.
13022
130232002-02-12  Keith Seitz  <keiths@redhat.com>
13024
13025	* utils.c (core_addr_to_string): Use phex instead of phex_nz.
13026	(core_addr_to_string_nz): New function.
13027
130282002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13029
13030	* arm-linux-nat.c: Really include arm-tdep.h.
13031	* config/arm/tm-linux.h (struct type, struct value): Declare.
13032
130332002-02-11  Michael Snyder  <msnyder@redhat.com>
13034
13035	* procfs.c: Include elf-bfd.h (for elfcore_write functions).
13036	(gcore section): Ifdef for Solaris and Unixware only.
13037	(procfs_do_thread_registers): Unixware needs one lwpstatus
13038	per thread (not one prstatus or pstatus).
13039	(procfs_make_note_section): Iterate only over kernel threads (lwps),
13040	not over all gdb threads.  For unixware, call elfcore_write_pstatus
13041	once before iterating over threads.
13042
130432002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13044
13045	* arm-tdep.h: New file.
13046	* arm-tdep.c: Include arm-tdep.h.
13047	(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13048	(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13049	(arm_print_float_info, arm_register_type, convert_to_extended)
13050	(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13051	(arm_extract_return_value, arm_register_name): Make static.
13052	(arm_software_single_step): Similarly.  Fix types in declaration.
13053	(arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13054	(arm_store_return_value, arm_store_struct_return): New functions.
13055	(arm_gdbarch_init): Register the above functions.  Also register
13056	call_dummy_start_offset, sizeof_call_dummy_words,
13057	function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13058	sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13059	max_register_virtual_size, register_size.  Set up
13060	prologue_cache.saved_regs here, rather than ...
13061	(_initialize_arm_tdep): ... here.
13062	* config/arm/tm-arm.h (struct type, struct value): Delete forward
13063	declarations.
13064	(arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13065	(arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13066	(arm_print_float_info, arm_register_type, convert_to_extended)
13067	(arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13068	(arm_extract_return_value, arm_register_name): Delete declarations.
13069	(SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13070	(SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13071	(DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13072	(REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13073	(REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13074	(MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13075	(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13076	(SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13077	(SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13078	(ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13079	(arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13080	(arm_get_next_pc): No-longer static -- these are needed by the RDI
13081	interface.
13082	* arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13083	* remote-rdi.c remote-rdp.c: Likewise.
13084	* Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13085	(armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13086	* config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13087	definition.
13088
13089	* arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13090	(ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13091	(ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13092	from non-ARM_ prefixed definitions.
13093	* arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13094	all uses of above.
13095	* remote-rdi.c remote-rdp.c: Likewise.
13096	* arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13097
130982002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13099
13100	* arm-tdep.c (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_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13104	(arm_pop_frame, arm_get_next_pc): Make static.
13105	(arm_gdbarch_init): Register above in gdbarch structure.
13106	(arm_read_fp): Renamed from arm_target_read_fp.
13107	(arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13108	* config/arm/tm-arm.h (arm_frameless_function_invocation)
13109	(arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13110	(arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13111	(arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13112	(arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13113	(arm_pc_is_thumb_dummy): Delete declarations.
13114	(INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13115	(FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13116	(FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13117	(FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13118
131192002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13120
13121	* symtab.c (compare_search_syms): New function.
13122	(sort_search_symbols): New function.
13123	(search_symbols): Sort symbols after searching rather than
13124	before.
13125
131262002-02-10  Andrew Cagney  <ac131313@redhat.com>
13127
13128	* NEWS: Linux -> GNU/Linux.
13129
131302002-02-10  Andrew Cagney  <ac131313@redhat.com>
13131
13132	* gdbarch.sh: For for level one methods, disallow a definition
13133	when partially multi-arched.  Add comments explaining rationale.
13134	* gdbarch.h: Re-generate.
13135
131362002-02-10  Andrew Cagney  <ac131313@redhat.com>
13137
13138	* gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13139	multi-arch partial.
13140
131412002-02-10  Andrew Cagney  <ac131313@redhat.com>
13142
13143	* gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13144	field.  Use diff -u.
13145	* gdbarch.c: Re-generate.
13146
131472002-02-10  Andrew Cagney  <ac131313@redhat.com>
13148
13149	* config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13150	* gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13151	partial.
13152
131532002-02-10  Andrew Cagney  <ac131313@redhat.com>
13154
13155	* gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13156	multi-arch partial.
13157	(PUSH_ARGUMENTS): Switch to using predefault.
13158	* gdbarch.c: Regenerate.
13159
131602002-02-10  Andrew Cagney  <ac131313@redhat.com>
13161
13162	* valops.c (PUSH_ARGUMENTS): Delete definition.
13163	* gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13164	partial.  Default to default_push_arguments.
13165	* gdbarch.h, gdbarch.c: Regenerate.
13166
131672002-02-09  Andrew Cagney  <ac131313@redhat.com>
13168
13169	* defs.h (throw_exception): Rename return_to_top_level.  Update
13170	comments.
13171	* utils.c (error_stream, internal_verror, quit): Ditto.
13172	* top.c (throw_exception, catcher): Ditto.
13173	* sparclet-rom.c (sparclet_load): Ditto.
13174	* remote.c (interrupt_query, minitelnet): Ditto.
13175	* remote-sds.c (interrupt_query): Ditto.
13176	* remote-mips.c (mips_error, mips_kill): Ditto.
13177	* ocd.c (interrupt_query): Ditto.
13178	* monitor.c (monitor_interrupt_query): Ditto.
13179	* m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13180	* target.h: Update comment.
13181
13182	* m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13183
131842002-02-09  Andrew Cagney  <ac131313@redhat.com>
13185
13186	* gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13187	default_double_format.
13188	* gdbarch.h, gdbarch.c: Re-generate.
13189	* findvar.c (floatformat_unknown): Delete variable definition.
13190	* doublest.h (floatformat_unknown): Delete variable declaration.
13191
131922002-02-09  Jim Blandy  <jimb@redhat.com>
13193
13194	* stabsread.c (read_type): Add code to parse Sun's syntax for
13195	prototyped function types.
13196
131972002-02-09  Andrew Cagney  <ac131313@redhat.com>
13198
13199	* Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13200	(SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13201
132022002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13203
13204	* xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13205	_initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13206	now _initialize_xcoffsolib gets called again and overrides the
13207	commands from solib.c in a native configuration.
13208
132092002-02-09  Mark Kettenis  <kettenis@gnu.org>
13210
13211	* doublest.c (store_typed_floating): Don't try to return a value.
13212	Fixes PR gdb/290.
13213
132142002-02-08  Jim Blandy  <jimb@redhat.com>
13215
13216	* c-typeprint.c (c_type_print_varspec_suffix): If a function type
13217	is prototyped and has no arguments, print its argument list as
13218	`(void)'.
13219
132202002-02-08  Chris Demetriou  <cgd@broadcom.com>
13221
13222	* MAINTAINERS (write-after-approval): Add myself.
13223	(paper-trail): I've escaped!
13224
132252002-02-08  Christopher Faylor  <cgf@redhat.com>
13226
13227	* win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13228	changes.
13229	(_initialize_check_for_gdb_ini): Ditto.
13230
132312002-02-08  Martin M. Hunt  <hunt@redhat.com>
13232
13233	* win32-nat.c (cygwin_pid_to_str): Fix typo.
13234	xaprintf -> xasprintf.
13235
132362002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13237
13238	* win32-nat.c: Remove use of printf and sprintf functions.
13239
132402002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13241
13242	* arm-tdep.c (arm_frame_chain_valid): Make static.
13243	(arm_push_arguments): Likewise.
13244	(arm_gdbarch_init): New function.
13245	(_initialize_arm_tdep): Call it.
13246	* config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13247	(TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13248	(FRAME_CHAIN_VALID): Delete.
13249	(arm_frame_chain_valid): Delete declaration.
13250	(PUSH_ARGUMENTS): Delete.
13251	(arm_push_arguments): Delete declaration.
13252	(CALL_DUMMY_P): Delete.
13253
132542002-02-08  Andrew Cagney  <ac131313@redhat.com>
13255	    Corinna Vinschen  <vinschen@redhat.com>
13256
13257	* gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13258	on builtin float types.
13259
132602002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13261
13262	* utils.c: Include <curses.h> before "bfd.h".
13263	* tui/tui-hooks.c: Likewise.
13264	* tui/tui.c: Likewise.
13265	* tui/tuiCommand.c: Likewise.
13266	* tui/tuiData.c: Likewise.
13267	* tui/tuiDataWin.c: Likewise.
13268	* tui/tuiDisassem.c: Likewise.
13269	* tui/tuiGeneralWin.c: Likewise.
13270	* tui/tuiIO.c: Likewise.
13271	* tui/tuiLayout.c: Likewise.
13272	* tui/tuiRegs.c: Likewise.
13273	* tui/tuiSource.c: Likewise.
13274	* tui/tuiSourceWin.c: Likewise.
13275	* tui/tuiStack.c: Likewise.
13276	* tui/tuiWin.c: Likewise.
13277
132782002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13279
13280	* sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13281	to include space for pseudoregs as well. Update loops accordingly.
13282	(sh_fp_frame_init_saved_regs): Ditto.
13283	(sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13284
132852002-02-07  Andrew Cagney  <ac131313@redhat.com>
13286
13287	* MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13288	Add Richard Earnshaw to Arm maintainers.
13289
132902002-02-07  Andrew Cagney  <ac131313@redhat.com>
13291
13292	* defs.h (warning_begin): Delete declaration.
13293
13294	* config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13295	Delete macro.
13296
132972002-02-07  Michael Snyder  <msnyder@redhat.com>
13298
13299	* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13300	Logic bug, remove misplaced else.
13301
133022002-02-07  Klee Dienes  <klee@apple.com>
13303
13304	* fork-inferior.c (fork_inferior): Add '!' to the list of
13305	characters that need to be quoted when building a string for the
13306	shell.  Quote '!' specifically with a backslash, since CSH chokes
13307	when trying to evaluate "str!str".
13308
133092002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13310
13311	* rdi-share/host.h: Only provide a typedef for bool if it is not
13312	defined.
13313
133142002-02-04  Michael Snyder  <msnyder@redhat.com>
13315
13316	* breakpoint.h (enum bptype): Add new overlay event bp type.
13317	(enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13318
13319	* breakpoint.c (create_internal_breakpoint): New function.
13320	(internal_breakpoint_number): Moved into create_internal_breakpoint.
13321	(create_longjmp_breakpoint): Use create_internal_breakpoint.
13322	(create_thread_event_breakpoint): Ditto.
13323	(create_solib_event_breakpoint): Ditto.
13324	(create_overlay_event_breakpoint): New function.
13325	(enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13326	(update_breakpoints_after_exec): Delete and re-initialize
13327	overlay event breakpoints after an exec.  Add FIXME comment
13328	about longjmp breakpoint.
13329	(print_it_typical): Ignore overlay event breakpoints.
13330	(print_one_breakpoint): Ditto.
13331	(mention): Ditto.
13332	(bpstat_what): Do not stop for overlay event breakpoints.
13333	(delete_breakpoint): Don't delete overlay event breakpoints.
13334	(breakpoint_re_set_one): Delete the overlay event breakpoint.
13335	(breakpoint_re_set): Re-create overlay event breakpoint.
13336
13337	* symfile.c (overlay_auto_command): Enable overlay breakpoints.
13338	(overlay_manual_command): Disable overlay breakpoints.
13339	(overlay_off_command): Disable overlay breakpoints.
13340
133412002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13342
13343	* arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13344	(MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13345	to here from config/tm-arm.h.
13346	(coff_sym_is_thumb): Make static.
13347	(arm_elf_make_msymbol_special): New function.
13348	(arm_coff_make_msymbol_special): New function.
13349	* config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13350	(MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13351	(coff_sym_is_thumb): Delete declaration.
13352	(arm_elf_make_msymbol_special): Declare.
13353	(arm_coff_make_msymbol_special): Declare.
13354	(ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13355	(COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13356
133572002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13358
13359	* arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13360
133612002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13362
13363	* gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13364	* gdbarch.c gdbarch.h: Regenerate.
13365	* arch-utils.c (default_print_float_info): New function.
13366	* arch-utils.h (default_print_float_info): Prototype it.
13367	* infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13368	* doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13369	(PRINT_FLOAT_INFO): Document it.
13370
13371	* arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13372	* config/arm/tm-arm.h (FLOAT_INFO): Delete.
13373	(PRINT_FLOAT_INFO): Define.
13374
133752002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13376
13377	* win32-nat.c (_initialize_check_for_gdb_ini):
13378	Add typecast to sprintf argument to suppress a warning.
13379
133802002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13381
13382	* win32-nat.c (last_sig): Changed type of variable to target_signal,
13383	to allow easier handling of pass state.
13384	(DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13385	that gives exception name and address.
13386	(handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13387	and set last_sig value to ourstatus->value.sig. Some missing
13388	exceptions added.
13389	(child_continue): Correctly report continue_status.
13390	(get_child_debug_event,do_initial_child_stuff): Set last_sig to
13391	TARGET_SIGNAL_0 (new default value).
13392	(child_resume): consider sig argument passed to decide if
13393	the exception should be passed to debuggee or not.
13394
133952002-02-05  Michael Snyder  <msnyder@redhat.com>
13396
13397	* regcache.c (fetch_register): Call target_fetch_register
13398	only if we don't call FETCH_PSEUDO_REGISTER.
13399	(store_register): Call target_store_register only if we
13400	don't call STORE_PSEUDO_REGISTER.
13401
134022002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13403
13404	* gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13405	ELF_MAKE_MSYMBOL_SPECIAL.
13406	* gdbarch.c, gdbarch.h: Regenerate.
13407	* arch-utils.c (default_make_msymbol_special): New function.
13408	* arch-utils.h (default_make_msymbol_special): Export.
13409	* elfread.c (elf_symtab_read): Compile use of
13410	ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13411	multiarched.
13412	* coffread.c (coff_symtab_read): Ditto, for
13413	COFF_MAKE_MSYMBOL_SPECIAL.
13414
134152002-02-05  Jim Blandy  <jimb@redhat.com>
13416
13417	* solib-svr4.c (svr4_truncate_ptr): New function.
13418	(svr4_relocate_section_addresses): Do the address arithmetic with
13419	the appropriate truncation for target addresses, even when
13420	CORE_ADDR is larger than a target address.
13421
134222002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13423
13424	* gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13425	to (int *).
13426
134272002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13428
13429	* gdbserver/linux-low.c (kill_inferior): Remove commented out
13430	code.
13431
134322002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13433
13434        * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13435
134362002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13437
13438	* gdbserver/linux-low.c: Remove unused include files.
13439
134402002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13441
13442	* gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13443	(read_inferior_memory): Use it.
13444	(write_inferior_memory): Likewise.
13445
134462002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13447
13448	* gdbserver/linux-low.c (create_inferior): Call strerror instead of
13449	grubbing through sys_errlist.
13450
134512002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13452
13453	* gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13454
134552002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13456	* win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13457
134582002-02-04  Andrew Cagney  <ac131313@redhat.com>
13459
13460	* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13461	(do_sfunc, set_cmd_sfunc): New functions.
13462
13463	* command.h (struct cmd_list_element): Add field func.
13464	* cli/cli-decode.h (struct cmd_list_element): Ditto.
13465	* command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13466	* cli/cli-decode.h: Ditto.
13467
13468	* cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13469	(help_all, help_cmd_list): Ditto.
13470	(find_cmd, complete_on_cmdlist): Ditto.
13471	* top.c (execute_command): Ditto.
13472
13473	* cli/cli-setshow.c (do_setshow_command): Call func instead of
13474	function.sfunc.
13475
13476	* infcmd.c (notice_args_read): Fix function signature.
13477
13478	* cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13479	* cli/cli-decode.c (add_set_cmd): Ditto.
13480	* utils.c (initialize_utils): Ditto.
13481	* maint.c (_initialize_maint_cmds): Ditto.
13482	* infrun.c (_initialize_infrun): Ditto.
13483	* demangle.c (_initialize_demangler): Ditto.
13484	* remote.c (add_packet_config_cmd): Ditto.
13485	* mips-tdep.c (_initialize_mips_tdep): Ditto.
13486	* cris-tdep.c (_initialize_cris_tdep): Ditto.
13487	* proc-api.c (_initialize_proc_api): Ditto.
13488	* kod.c (_initialize_kod): Ditto.
13489	* valprint.c (_initialize_valprint): Ditto.
13490	* top.c (init_main): Ditto.
13491	* infcmd.c (_initialize_infcmd): Ditto.
13492	* corefile.c (_initialize_core): Ditto.
13493	* arm-tdep.c (_initialize_arm_tdep): Ditto.
13494	* arch-utils.c (initialize_current_architecture): Ditto.
13495	(_initialize_gdbarch_utils): Ditto.
13496	* alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13497
13498	* cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13499	* wince.c (_initialize_inftarg): Ditto.
13500	* symfile.c (_initialize_symfile): Ditto.
13501	* mips-tdep.c (_initialize_mips_tdep): Ditto.
13502	* language.c (_initialize_language): Ditto.
13503	* arc-tdep.c (_initialize_arc_tdep): Ditto.
13504
135052002-02-04  Michael Snyder  <msnyder@redhat.com>
13506
13507	* memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13508
135092002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13510
13511	* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13512	Add rules for building the register data files.
13513
135142002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13515
13516	* regformats/regdat.sh: Add braces to the definition of
13517	expedite_regs_${arch}.
13518
135192002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13520
13521	* regformats/regdef.h (struct reg): Add comment describing the
13522	requirements for offset and size fields.
13523
135242002-02-04  Andreas Schwab  <schwab@suse.de>
13525
13526	* config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13527	* config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13528
135292002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13530
13531	* gdbarch.sh (copyright): Update years in generated header.
13532	(SMASH_TEXT_ADDRESS): Add rule.
13533	* gdbarch.h, gdbarch.c: Re-generate.
13534	* coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13535	* dbxread.c: Likewise.
13536	* dwarfread.c: Likewise.
13537	* elfread.c: Likewise.
13538	* somread.c: Likewise.
13539
13540	* arm-tdep.c (arm_smash_text_address): New function.
13541	* config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13542
135432002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13544
13545	Add support for hardware watchpoints on win32 native.
13546	* win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13547	CONTEXT_DEBUG_REGISTERS.
13548	(dr variable): New variable. Static array containing a local copy
13549	of debug registers.
13550	(debug_registers_changed): New variable.  Reflects when debug registers
13551	are changed and need to be written to inferior.
13552	(debug_registers_used): New variable. Reflects when any debug register
13553	was set, used when new threads are created.
13554	(cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13555	i386-nat code.
13556	(thread_rec): Set dr array if id is the thread of current_event .
13557	(child_continue, child_resume): Change the debug registers for all
13558	threads if debug_registers_changed.
13559	(child_add_thread): Change the debug registers if debug_registers_used.
13560	* config/i386/cygwin.mh: Add use of i386-nat.o file.
13561	Link nm.h to new nm-cygwin.h file.
13562	+ config/i386/nm-cygwin.h: New file. Contains the macros used for use
13563	of hardware registers.
13564
135652002-02-03  Andrew Cagney  <ac131313@redhat.com>
13566
13567	* valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13568	Restore behavour broken by 2002-01-20 Andrew Cagney
13569	<ac131313@redhat.com> IEEE_FLOAT removal.
13570
135712002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13572
13573	* c-valprint.c (c_val_print): Pass a proper valaddr to
13574	cp_print_class_method.
13575	* valops.c (search_struct_method): If there is only one method
13576	and args is NULL, return that method.
13577
135782002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13579
13580	* gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13581	accessing tag_name directly.
13582
135832002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13584
13585	* ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13586	of accessing tag_name directly.
13587
135882002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13589
13590	PR gdb/280
13591	* gdbtypes.c (replace_type): New function.
13592	* gdbtypes.h (replace_type): Add prototype.
13593	* stabsread.c (read_type): Use replace_type.
13594
135952002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13596
13597	* Makefile.in (memattr.o): Add missing dependencies rule.
13598
135992002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13600
13601	* breakpoint.c (break_at_finish_command): Really export.
13602	(break_at_finish_at_depth_command): Ditto.
13603	(tbreak_at_finish_command): Ditto.
13604	* hppa-tdep.c: Include completer.h.
13605	* Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13606	(COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13607
136082002-02-01  Andrew Cagney  <ac131313@redhat.com>
13609
13610	* utils.c (do_write): New function.
13611	(error_stream): Rewrite combining the code from error_begin and
13612	verror.
13613	(verror): Rewrite using error_stream.
13614	(error_begin): Delete function.
13615
136162002-02-01  Andrew Cagney  <ac131313@redhat.com>
13617
13618	* utils.c (error_begin): Make static.
13619	* defs.h (error_begin): Delete declaration.
13620
13621	* linespec.c (cplusplus_error): Replace cplusplus_hint.
13622	(decode_line_1): Use cplusplus_error instead of error_begin,
13623	cplusplus_hint and return_to_top_level.
13624	* coffread.c (coff_symfile_read): Use error instead of error_begin
13625	and return_to_top_level.
13626	* infrun.c (default_skip_permanent_breakpoint): Ditto.
13627
136282002-02-01  Andrew Cagney  <ac131313@redhat.com>
13629
13630	* language.h (type_error, range_error): Make string parameter
13631	constant.
13632	* language.c (warning_pre_print): Delete extern declaration.
13633	* dwarfread.c (warning_pre_print): Ditto.
13634	* language.c (type_error, range_error): Rewrite to use verror and
13635	vwarning instead of warning_begin.
13636
136372002-02-01  Michael Snyder  <msnyder@redhat.com>
13638
13639	* breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13640	(set_ignore_count): Move misplaced comment back where it belongs.
13641
136422002-02-01  Andrew Cagney  <ac131313@redhat.com>
13643
13644	* command.h (NO_FUNCTION): Delete macro.
13645	* cli/cli-decode.h (NO_FUNCTION): Ditto.
13646	* top.c (execute_command): Replace NO_FUNCTION with NULL.
13647	* tracepoint.c (_initialize_tracepoint): Ditto.
13648	* cli/cli-decode.c (add_set_cmd): Ditto.
13649	* cli/cli-cmds.c (init_cli_cmds): Ditto.
13650
136512002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13652
13653	* gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13654	Update ``this'' pointer when calling virtual functions.
13655
136562002-02-01  Michael Snyder  <msnyder@redhat.com>
13657
13658	* breakpoint.c (create_temp_exception_breakpoint): Delete.
13659	* hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13660
136612002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13662
13663	* regformats/reg-arm.dat: New file.
13664	* regformats/reg-i386.dat: New file.
13665	* regformats/reg-ia64.dat: New file.
13666	* regformats/reg-m68k.dat: New file.
13667	* regformats/reg-mips.dat: New file.
13668	* regformats/reg-ppc.dat: New file.
13669	* regformats/reg-sh.dat: New file.
13670	* regformats/regdef.h: New file.
13671	* regformats/regdat.sh: New file.
13672
136732002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13674
13675	* arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13676	(arm_frame_args_address, arm_frame_locals_address): New functions.
13677	(arm_frame_num_args): New function.
13678	* config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13679	(FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13680	(FRMA_NUM_ARGS): Call arm_frame_num_args.
13681
136822002-01-31  Michael Snyder  <msnyder@redhat.com>
13683
13684	* breakpoint.c (break_at_finish_command): Export.
13685	(break_at_finish_at_depth_command): Export.
13686	(tbreak_at_finish_command): Export.
13687	(_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13688	* hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13689	"txbreak" commands, which are HPPA specific.
13690
13691	* printcmd.c (disassemble_command): Remove an ancient
13692	artifact of an old merge.
13693
13694	* symfile.h (enum overlay_debugging_state):
13695	Define enum constant values for overlay mode.
13696	* symfile.c (overlay_debugging): Use enums instead of literals.
13697	(overlay_is_mapped, overlay_auto_command,
13698	overlay_manual_command): Ditto.
13699
13700	* breakpoint.c (insert_breakpoints, remove_breakpoint,
13701	breakpoint_here_p, breakpoint_inserted_here_p,
13702	breakpoint_thread_match, bpstat_stop_status,
13703	describe_other_breakpoints, check_duplicates, clear_command):
13704	Coding standard fixes.
13705
13706	* target.c (target_xfer_memory): Add spaces, coding standard.
13707	(do_xfer_memory): Add missing line to trust-readonly
13708	code: check bfd SEC_READONLY flag for section.
13709
137102002-01-31  Andrew Cagney  <ac131313@redhat.com>
13711
13712	* PROBLEMS: Fix typo, 5.1->5.1.1.
13713
137142002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13715
13716	* symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13717	data symbols, since we search based on textlow and texthigh.
13718	(find_pc_sect_symtab): Likewise.
13719
137202002-01-30  Andrew Cagney  <ac131313@redhat.com>
13721
13722	* defs.h (vwarning): Declare.
13723	* utils.c (vwarning): New function.
13724	(warning): Call vwarning.
13725	(warning_begin): Delete function.
13726
13727	* rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13728	the warning message.
13729	* d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13730	warning_begin.
13731
137322002-01-30  Michael Snyder  <msnyder@redhat.com>
13733
13734	* NEWS: Mention "set trust-readonly-sections" command.
13735	Mention generate-core-file command.
13736
137372002-01-15  Michael Snyder  <msnyder@redhat.com>
13738
13739	* target.c: New command, "set trust-readonly-sections on".
13740	(do_xfer_memory): Honor the suggestion to trust readonly sections
13741	by reading them from the object file instead of from the target.
13742	(initialize_targets): Register command "set trust-readonly-sections".
13743
137442002-01-29  Andrew Cagney  <ac131313@redhat.com>
13745
13746	* parse.c (target_map_name_to_register): Simplify, search regs and
13747	pseudo-regs using a single loop.
13748
137492002-01-30  Andrew Cagney  <ac131313@redhat.com>
13750
13751	* PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13752
137532002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13754
13755	* config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13756	* config/i386/i386v42mp.mh: Add i387-nat.o .
13757	* i386v4-nat.c: Include i387-nat.h.
13758	(supply_fpregset): Use i387_supply_fsave.
13759	(fill_fpregset): Use i387_fill_fsave.
13760
137612002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13762
13763	* arm-tdep.c (arm_call_dummy_words): Define.
13764	* arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13765	* config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13766	(CALL_DUMMY_WORDS): Define.
13767	(arm_call_dummy_words): Declare.
13768	* config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13769	(arm_linux_call_dummy_words): Declare.
13770
137712002-01-30  Andreas Schwab  <schwab@suse.de>
13772
13773	* m68klinux-nat.c: Fix last change to use regcache_collect
13774	instead of referencing registers[] directly.
13775
137762002-01-29  Andrew Cagney  <ac131313@redhat.com>
13777
13778	* parse.c (target_map_name_to_register): Delete code wrapped in
13779	#ifdef REGISTER_NAME_ALIAS_HOOK.
13780
137812002-01-28  Michael Snyder  <msnyder@redhat.com>
13782
13783	* regcache.c (legacy_read_register_gen): Need to be able to
13784	read pseudo-register as well as real register.
13785	(legacy_write_register_gen): Ditto.
13786
137872002-01-28  Andrew Cagney  <ac131313@redhat.com>
13788
13789	* config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13790	* config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13791	* config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13792	* config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13793	* config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13794	* config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13795	* config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13796	* config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13797	* config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13798	* config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13799	* config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13800	* config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13801	* config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13802	* config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13803	* config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13804	* config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13805	* config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13806	* config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13807	* config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13808	* config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13809
138102002-01-28  Andrew Cagney  <ac131313@redhat.com>
13811
13812	* arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13813	(target_byte_order): Initialize to BFD_ENDIAN_BIG.
13814	(initialize_current_architecture): Update target_byte_order using
13815	information from BFD.
13816	* config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13817	* config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13818
138192002-01-28  Andrew Cagney  <ac131313@redhat.com>
13820
13821	* config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13822	* vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13823
13824	* rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13825	#ifdef INVALID_FLOAT.
13826	* infcmd.c (do_registers_info): Ditto.
13827	* values.c (unpack_double): Ditto.  Add comment.
13828
13829	* config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13830	already commented out.
13831
138322002-01-26  Andreas Schwab  <schwab@suse.de>
13833
13834	* config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13835	* m68klinux-nat.c: Update ptrace interface for fetching/storing
13836	registers and add support for PTRACE_GETREGS.
13837
138382002-01-24  Andrew Cagney  <ac131313@redhat.com>
13839
13840	GDB 5.1.1 released from 5.1 branch.
13841	* NEWS: Add 5.1.1 news.
13842	* README: Sync with 5.1 branch.
13843
138442002-01-23  Fred Fish  <fnf@redhat.com>
13845
13846	* mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13847	stabstring on initial malloc.  Reallocing will copy it for us,
13848	if necessary.
13849
138502002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13851
13852        * Makefile.in (hpread_h): Delete.
13853        (HFILES_NO_SRCDIR): Remove hpread.h.
13854        (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13855        (hpread.o): Update dependencies.
13856        (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13857
13858        * hp-psymtab-read.c: Remove file.
13859        * hp-symtab-read.c: Remove file.
13860        * hpread.h: Remove file.
13861
13862        * hpread.c: Merge all contents of hp-psymtab-read.c,
13863        hp-symtab-read.c and hpread.h into this file, as it was prior to
13864        January 1999.
13865
13866        * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13867        config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13868        config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13869        Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13870
138712002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13872
13873	* ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13874	fill_gregset): Call gdbarch_tdep() just once, assign result to
13875	variable and use that, instead of calling the function several
13876	times.
13877
138782002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13879
13880	* configure.host: Accept sparcv9 as alias for sparc64.
13881	* configure.tgt: Likewise.
13882
138832002-01-22  Kevin Buettner  <kevinb@redhat.com>
13884
13885	* solib-aix5.c (build_so_list_from_mapfile)
13886	(aix5_relocate_main_executable): Fix xcalloc() calls so order of
13887	arguments is not reversed.
13888	* solib-sunos.c (sunos_relocate_main_executable): Likewise.
13889	* solib-svr4.c (svr4_relocate_main_executable): Likewise.
13890
138912002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13892
13893	* sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13894	modified version of obsolete sh_fetch_pseudo_register.
13895	(sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13896	(sh4_register_read): New function.
13897	(sh_pseudo_register_write): New function. Renamed and modified
13898	version of obsolete sh_store_pseudo_register.
13899	(sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13900	(sh4_register_write): New function.
13901	(sh_gdbarch_init): Remove setting of gdbarch function
13902	fetch_pseudo_register and store_pseudo_register. Remove setting of
13903	register_convert_to_raw, register_convert_to_virtual,
13904	register_convertible.
13905	(sh_sh4_register_convertible): Delete. No longer needed. All is
13906	taken care by architecture specific functions
13907	register_read/register_write.
13908	(sh_sh4_register_convert_to_virtual): Make static.
13909	(sh_sh4_register_convert_to_raw): Ditto.
13910
139112002-01-22  Andrew Cagney  <ac131313@redhat.com>
13912
13913	* doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13914	(floatformat_is_nan, floatformat_mantissa): Ditto.
13915
13916	* gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13917	for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13918	builtin_type_ieee_double_little,
13919	builtin_type_ieee_double_littlebyte_bigword,
13920	builtin_type_m68881_ext, builtin_type_i960_ext,
13921	builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13922	builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13923	builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13924	builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13925
139262002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13927
13928	* xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13929	parameter.  Set frameless flag if it exists and depended of
13930	whether the scanned function is frameless or not.
13931	(xstormy16_skip_prologue): If function is frameless, return
13932	result of xstormy16_scan_prologue().
13933	(xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13934	call.
13935
139362002-01-21  Elena Zannoni  <ezannoni@redhat.com>
13937
13938	* sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13939	sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13940	sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13941	sh_sh4_register_byte, sh_sh4_register_raw_size,
13942	sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13943	sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13944	sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13945	sh_store_pseudo_register, sh_do_pseudo_register): Call
13946	gdbarch_tdep() just once, assign result to variable and use that,
13947	instead of calling the function several times.
13948
139492002-01-20  Mark Kettenis  <kettenis@gnu.org>
13950
13951	* go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13952	macros instead of LAST_FPU_CTRL_REGNUM.
13953	(store_register): Likewise.
13954
139552002-01-21  Jim Blandy  <jimb@redhat.com>
13956
13957	* infcmd.c (run_command): Check that the `exec' target layer's BFD
13958	is up-to-date before running the program, not just when a program
13959	exits.
13960
139612002-01-21  Fred Fish  <fnf@redhat.com>
13962
13963	* arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13964	when we have found all instructions we are looking for.
13965
139662002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13967
13968	* arm-tdep.c (arm_register_name): New function.
13969	(arm_registers_names): Make static.
13970	* config/arm/tm-arm.h (arm_register_names): Delete declaration.
13971	(arm_register_name): Declare.
13972	(REGISTER_NAME): Use it.
13973
139742002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13975	    Kevin Buettner  <kevinb@redhat.com>
13976
13977	Convert arm targets to new FRAME interface.
13978	* arm-tdep.c (struct frame_extra_info): Remove fsr.
13979	(arm_frame_find_save_regs): Delete.
13980	(arm_frame_init_saved_regs): New.
13981	(arm_init_extra_frame_info): Alloacte saved_regs as required.
13982	Allocate extra_info as required.  Convert all uses of fsr.regs
13983	to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13984	to use extra_info.
13985	(thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13986	(arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13987	(check_prologue_cache, save_prologue_cache): Likewise.
13988	(_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13989	* config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13990	(FRAME_FIND_SAVED_REGS): Delete.
13991	(arm_frame_find_saved_regs): Delete prototype.
13992	(arm_frame_init_saved_regs): New prototype.
13993	(FRAME_INIT_SAVED_REGS): Define.
13994
139952002-01-20  Andrew Cagney  <ac131313@redhat.com>
13996
13997	* config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13998
139992002-01-20  Andrew Cagney  <ac131313@redhat.com>
14000
14001	From Jeff Law <law@redhat.com>:
14002	* infttrace.c: Include <sys/pstat.h>.
14003	(child_pid_to_exec_file): Revamp.  Use pstat call to get the
14004	exec file if the ttrace equivalent fails.
14005
140062002-01-20  Andrew Cagney  <ac131313@redhat.com>
14007
14008	* rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14009	(closeLogFile): Ditto.
14010
140112002-01-20  Michael Chastain  <mec@shout.net>
14012
14013	* top.c (print_gdb_version): Bump copyright year to 2002.
14014
140152002-01-20  Andrew Cagney  <ac131313@redhat.com>
14016
14017	* MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14018	Zannoni and Eli Zaretskii.
14019
140202002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14021
14022	* buildsym.c: Update copyright years.
14023	* c-typeprint.c: Likewise.
14024	* dwarf2read.c: Likewise.
14025	* f-typeprint.c: Likewise.
14026	* gdbtypes.c: Likewise.
14027	* gdbtypes.h: Likewise.
14028	* hp-symtab-read.c: Likewise.
14029	* hpread.c: Likewise.
14030	* mdebugread.c: Likewise.
14031	* p-typeprint.c: Likewise.
14032
140332002-01-20  Andrew Cagney  <ac131313@redhat.com>
14034
14035	* remote-sim.c (gdbsim_open): Simplify code testing the macro
14036	TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14037	byte-order selectable.
14038	* sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14039	* arch-utils.c: Ditto.
14040	(set_endian): Ditto.
14041	(set_endian_from_file): Ditto.
14042	* gdbserver/low-sim.c (create_inferior): Ditto.
14043	* gdbarch.sh: Ditto.
14044	* gdbarch.h: Re-generate.
14045	* config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14046	* config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14047	* config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14048	* config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14049	* config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14050	* config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14051	* config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14052	* config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14053	macro definition.
14054	* config/mips/tm-wince.h: Remove #undef of macro
14055	TARGET_BYTE_ORDER_SELECTABLE.
14056	* config/sh/tm-wince.h: Ditto.
14057
140582002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14059
14060	* gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14061	member function fields.  Add accessor macro
14062	TYPE_FN_FIELD_ARTIFICIAL.
14063	* dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14064	* c-typeprint.c (c_type_print_base): Skip artificial member
14065	functions.
14066
140672002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14068
14069	* f-typeprint.c: Delete unused function f_type_print_args.
14070	* p-typeprint.c: Delete unused function pascal_type_print_args.
14071
140722002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14073
14074	* gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14075	comment.  Add ``artificial'' to ``union field_location''.
14076
14077	* dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14078
14079	* buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14080	* mdebugread.c (parse_symbol): Likewise.
14081	* stabsread.c (define_symbol): Likewise.
14082	* hp-symtab-read.c (hpread_function_type): Likewise, instead of
14083	initializing TYPE_FIELD_BITPOS to n (obsolete).
14084	(hpread_doc_function_type): Likewise.
14085	* hpread.c (hpread_function_type): Likewise.
14086
140872002-01-20  Andrew Cagney  <ac131313@redhat.com>
14088
14089	* configure.in (host_makefile_frag): Only require a host makefile
14090	fragment when a native build.
14091	* configure: Re-generate.
14092
140932002-01-20  Andrew Cagney  <ac131313@redhat.com>
14094
14095	* doublest.h (floatformat_from_type): Declare.
14096	* doublest.c (floatformat_from_type): New function.
14097	(convert_typed_floating): Use.
14098
14099	* valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14100	call to function floatformat_from_type.
14101
14102	* gdbarch.sh (IEEE_FLOAT): Delete.
14103	* gdbarch.h, gdbarch.c: Re-generate.
14104	* config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14105	* config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14106	* config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14107	* config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14108	* config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14109	* config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14110	* config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14111	* config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14112	* config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14113	* config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14114	* config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14115	* config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14116
14117	* s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14118	* x86-64-tdep.c (i386_gdbarch_init): Ditto.
14119	* sparc-tdep.c (sparc_gdbarch_init): Ditto.
14120	* sh-tdep.c (sh_gdbarch_init): Ditto.
14121	* mips-tdep.c (mips_gdbarch_init): Ditto.
14122	* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14123	* cris-tdep.c (cris_gdbarch_init): Ditto.
14124
141252002-01-20  Jiri Smid  <smid@suse.cz>
14126
14127	* configure.host, configure.tgt: Support x86-64.
14128	* NEWS: Note new target x86-64.
14129
14130	* config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14131	* x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14132	* config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14133	* Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14134	x86-64-linux-nat.o): Fix dependencies.
14135
141362002-01-19  Andrew Cagney  <ac131313@redhat.com>
14137
14138	* utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14139	* config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14140	* config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14141	* config/sparc/xm-sun4os4.h: Delete file.
14142	* config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14143
141442002-01-19  Andrew Cagney  <ac131313@redhat.com>
14145
14146	* config/sparc/sparclynx.mh (XM_FILE): Delete.
14147	* config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14148	* config/m68k/m68klynx.mh (XM_FILE): Delete.
14149	* config/i386/i386lynx.mh (XM_FILE): Delete.
14150	* config/rs6000/xm-rs6000ly.h: Delete file.
14151	* config/sparc/xm-sparclynx.h: Delete file.
14152	* config/m68k/xm-m68klynx.h: Delete file.
14153	* config/i386/xm-i386lynx.h: Delete file.
14154	* config/xm-lynx.h: Delete file.
14155	* config/djgpp/fnchange.lst: Update.
14156
141572002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14158
14159	* alpha-tdep.c (alpha_register_byte): New function.
14160	(alpha_register_raw_size): Ditto.
14161	(alpha_register_virtual_size): Ditto.
14162	(alpha_skip_prologue_internal): Renamed from
14163	alpha_skip_prologue.
14164	(alpha_skip_prologue): New version that calls
14165	alpha_skip_prologue_internal.
14166	(alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14167	* config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14168	second argument from alpha_skip_prologue.
14169	(REGISTER_BYTE): Use alpha_register_byte.
14170	(REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14171	(REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14172	(FRAMELESS_FUNCTION_INVOCATION): Use
14173	generic_frameless_function_invocation_not.
14174	(FRAME_NUM_ARGS): Use frame_num_args_unknown.
14175	(COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14176
141772002-01-19  Andrew Cagney  <ac131313@redhat.com>
14178
14179	* config/mips/xm-news-mips.h: Delete file.
14180	* config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14181
14182	* config/m88k/xm-m88k.h: Delete file.
14183	* config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14184	* config/m88k/xm-delta88v4.h: Ditto.
14185	* config/m88k/xm-delta88.h: Ditto.
14186
14187	* config/alpha/xm-fbsd.h: Delete file.
14188	* config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14189
14190	* config/sparc/xm-sparc.h: Delete file.
14191	* Makefile.in (xm-sun4os4.h): Delete dependency.
14192	* config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14193	* config/sparc/xm-sun4os4.h: Ditto.
14194	* config/sparc/xm-linux.h: Ditto.
14195
14196	* config/i386/xm-windows.h: Delete file.
14197
141982002-01-19  Andrew Cagney  <ac131313@redhat.com>
14199
14200	* utils.c: Include <sys/param.h> for MAXPATHLEN.
14201	(gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14202
142032002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14204
14205	* alpha-tdep.c (alpha_call_dummy_words): New.
14206	* config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14207	(CALL_DUMMY_P): Define.
14208	(CALL_DUMMY_WORDS): Define.
14209	(SIZEOF_CALL_DUMMY_WORDS): Define.
14210
142112002-01-19  Per Bothner  <per@bothner.com>
14212
14213	* gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14214	isn't NULL, which can happen with some gcj-3.x-produced code.
14215
142162002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14217
14218	* alpha-tdep.c (alpha_register_virtual_type): New function.
14219	(alpha_init_frame_pc_first): Ditto.
14220	(alpha_fix_call_dummy): Ditto.
14221	(alpha_store_struct_return): Ditto.
14222	(alpha_extract_struct_value_address): Ditto.
14223	* config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14224	alpha_register_virtual_type.
14225	(STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14226	(EXTRACT_STRUCT_VALUE_ADDRESS): Use
14227	alpha_extract_struct_value_address.
14228	(FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14229	(INIT_FRAME_PC): Use init_frame_pc_noop.
14230	(INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14231
142322002-01-19  Mark Kettenis  <kettenis@gnu.org>
14233
14234	* i386gnu-nat.c: Include "i386-tdep.h".
14235	(fetch_fpregs): Simplify code dealing with uninitialized floating
14236	point states such that it doesn't require FP7_REGNUM.
14237
142382002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14239
14240	* alpha-tdep.c (frame_extra_info): New.
14241	(alpha_find_saved_regs): Make static.  Use
14242	frame->extra_info.
14243	(alpha_frame_init_saved_regs): New function.
14244	(alpha_frame_saved_pc): Use frame->extra_info.
14245	(temp_saved_regs): Don't declare as struct frame_saved_regs.
14246	(heuristic_proc_desc): Adjust for temp_saved_regs changes.
14247	(init_extra_frame_info): Rename to...
14248	(alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14249	(alpha_print_extra_frame_info): New function.
14250	(alpha_frame_locals_address): Ditto.
14251	(alpha_frame_args_address): Ditto.
14252	(alpha_pop_frame): Use frame->extra_info.
14253	* config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14254	alpha_frame_args_address.
14255	(FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14256	(alpha_find_saved_regs): Remove prototype.
14257	(FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14258	(EXTRA_FRAME_INFO): Remove.
14259	(INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14260	(PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14261
142622002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14263
14264	* alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14265	(alpha_cannot_fetch_register): Ditto.
14266	(alpha_cannot_store_register): Ditto.
14267	(alpha_register_convertible): Ditto.
14268	(alpha_use_struct_convention): Ditto.
14269	* config/alpha/tm-alpha.h: Update copyright years.
14270	(IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14271	(INNER_THAN): Use core_addr_lessthan.
14272	(CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14273	(CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14274	(REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14275	(USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14276	(FRAME_CHAIN): Remove unnecessary cast.
14277
142782002-01-18  Andrew Cagney  <ac131313@redhat.com>
14279
14280	* NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14281	obsolete.
14282
142832002-01-18  Andrew Cagney  <ac131313@redhat.com>
14284
14285	* infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14286	* monitor.c, remote-array.c, remote-bug.c: Ditto.
14287	* remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14288	* remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14289	* remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14290	* remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14291	* x86-64-linux-nat.c: Ditto.
14292
142932002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14294
14295	* alpha-tdep.c (alpha_register_name): New function.
14296	* config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14297	(REGISTER_NAME): Define.
14298
142992002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14300
14301	* config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14302
143032002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14304
14305	* alpha-tdep.c: Update copyright years.
14306	(alpha_next_pc): New function.
14307	(alpha_software_single_step): Ditto.
14308	* config/alpha/tm-alpha.h: Add prototype for
14309	alpha_software_single_step.
14310
143112002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14312
14313	* alphabsd-nat.c: Update copyright years.
14314	(fill_gregset): Use regcache_collect.
14315	(fill_fpregset): Likewise.
14316	(fetch_inferior_registers): Only fetch integer registers
14317	if requested to do so.
14318	(store_inferior_registers): Only store integer registers
14319	if requested to do so.
14320
143212002-01-17  Andrew Cagney  <ac131313@redhat.com>
14322
14323	* config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14324	* config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14325	* config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14326	* config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14327	* config/alpha/fbsd.mh (XDEPFILES): Delete.
14328	* config/arm/linux.mh (XDEPFILES): Delete.
14329	* config/arm/nbsd.mh (XDEPFILES): Delete.
14330	* config/i386/i386dgux.mh (XDEPFILES): Delete.
14331	* config/i386/i386sol2.mh (XDEPFILES): Delete.
14332	* config/i386/i386m3.mh (XDEPFILES): Delete.
14333	(NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14334	* config/i386/i386gnu.mh (XDEPFILES): Delete.
14335	* config/i386/fbsd.mh (XDEPFILES): Delete.
14336	* config/i386/i386bsd.mh (XDEPFILES): Delete.
14337	* config/i386/i386sco5.mh (XDEPFILES): Delete.
14338	* config/i386/i386v4.mh (XDEPFILES): Delete.
14339	* config/i386/i386v42mp.mh (XDEPFILES): Delete.
14340	* config/i386/i386sco4.mh (XDEPFILES): Delete.
14341	* config/i386/i386aix.mh (XDEPFILES): Delete.
14342	* config/i386/go32.mh (XDEPFILES): Delete.
14343	* config/i386/cygwin.mh (XDEPFILES): Delete.
14344	* config/i386/i386lynx.mh (XDEPFILES): Delete.
14345	* config/i386/i386mach.mh (XDEPFILES): Delete.
14346	* config/i386/i386v32.mh (XDEPFILES): Delete.
14347	* config/i386/linux.mh (XDEPFILES): Delete.
14348	* config/i386/nbsdelf.mh (XDEPFILES): Delete.
14349	* config/i386/ncr3000.mh (XDEPFILES): Delete.
14350	* config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14351	* config/i386/i386sco.mh (XDEPFILES): Delete.
14352	* config/i386/i386v.mh (XDEPFILES): Delete.
14353	* config/i386/nbsd.mh (XDEPFILES): Delete.
14354	* config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14355	* config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14356	* config/i386/symmetry.mh (XDEPFILES): Delete.
14357	* config/i386/obsd.mh (XDEPFILES): Delete.
14358	* config/i386/x86-64linux.mh (XDEPFILES): Delete.
14359	* config/ia64/linux.mh (XDEPFILES): Delete.
14360	* config/ia64/aix.mh (XDEPFILES): Delete.
14361	* config/m68k/apollo68b.mh (XDEPFILES): Delete.
14362	* config/m68k/dpx2.mh (XDEPFILES): Delete.
14363	* config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14364	* config/m68k/apollo68v.mh (XDEPFILES): Delete.
14365	* config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14366	* config/m68k/linux.mh (XDEPFILES): Delete.
14367	* config/m68k/m68klynx.mh (XDEPFILES): Delete.
14368	* config/m68k/m68kv4.mh (XDEPFILES): Delete.
14369	* config/m68k/nbsd.mh (XDEPFILES): Delete.
14370	* config/m68k/sun2os3.mh (XDEPFILES): Delete.
14371	* config/m68k/sun2os4.mh (XDEPFILES): Delete.
14372	* config/m68k/sun3os3.mh (XDEPFILES): Delete.
14373	* config/m68k/sun3os4.mh (XDEPFILES): Delete.
14374	* config/m88k/delta88.mh (XDEPFILES): Delete.
14375	* config/m88k/delta88v4.mh (XDEPFILES): Delete.
14376	* config/m88k/m88k.mh (XDEPFILES): Delete.
14377	* config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14378	* config/mips/linux.mh (XDEPFILES): Delete.
14379	* config/mips/irix6.mh (XDEPFILES): Delete.
14380	* config/mips/irix5.mh (XDEPFILES): Delete.
14381	* config/mips/irix4.mh (XDEPFILES): Delete.
14382	* config/mips/irix3.mh (XDEPFILES): Delete.
14383	* config/mips/decstation.mh (XDEPFILES): Delete.
14384	* config/mips/mipsm3.mh (XDEPFILES): Delete.
14385	(NATDEPFILES): Move core-aout.o to here.
14386	* config/ns32k/nbsd.mh (XDEPFILES): Delete.
14387	* config/pa/hpux1020.mh (XDEPFILES): Delete.
14388	* config/pa/hppabsd.mh (XDEPFILES): Delete.
14389	* config/pa/hppahpux.mh (XDEPFILES): Delete.
14390	* config/pa/hpux11w.mh (XDEPFILES): Delete.
14391	* config/pa/hppaosf.mh (XDEPFILES): Delete.
14392	* config/pa/hpux11.mh (XDEPFILES): Delete.
14393	* config/powerpc/aix.mh (XDEPFILES): Delete.
14394	* config/powerpc/nbsd.mh (XDEPFILES): Delete.
14395	* config/powerpc/linux.mh (XDEPFILES): Delete.
14396	* config/romp/rtbsd.mh: Rename XDEPFILES.
14397	* config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14398	* config/rs6000/aix4.mh (XDEPFILES): Delete.
14399	* config/rs6000/rs6000.mh (XDEPFILES): Delete.
14400	* config/s390/s390.mh (XDEPFILES): Delete.
14401	* config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14402	* config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14403	* config/sparc/sun4os4.mh (XDEPFILES): Delete.
14404	* config/sparc/sparclynx.mh (XDEPFILES): Delete.
14405	* config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14406	* config/sparc/nbsd.mh (XDEPFILES): Delete.
14407	* config/sparc/linux.mh (XDEPFILES): Delete.
14408	* config/vax/vaxult.mh (XDEPFILES): Delete.
14409	* config/vax/vaxult2.mh (XDEPFILES): Delete.
14410	* Makefile.in (DEPFILES): Remove XDEPFILES.
14411
144122002-01-17  Andrew Cagney  <ac131313@redhat.com>
14413
14414	* utils.c (internal_verror): Fix comments, default is yes not no.
14415	Update queries to match.  Default to quit and dump core.
14416
144172002-01-17  Andrew Cagney  <ac131313@redhat.com>
14418
14419	* breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14420	copyright.
14421	* defs.h, event-top.c, gdbcmd.h: Ditto.
14422	* infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14423	* source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14424	* top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14425	* cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14426	* mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14427	* mi/mi-main.c:Ditto.
14428
14429	* stack.c, symfile.c: Update copyright.
14430
144312002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14432
14433	* gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14434	gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14435	gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14436	gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14437
144382002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14439
14440	* gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14441	* gdbserver/low-lynx.c (myattach): Likewise.
14442	* gdbserver/low-nbsd.c (myattach): Likewise.
14443	* gdbserver/low-sim.c (myattach): Likewise.
14444	* gdbserver/low-sparc.c (myattach): Likewise.
14445	* gdbserver/low-sun3.c (myattach): Likewise.
14446
14447	* gdbserver/low-linux.c (myattach): New function.
14448
14449	* gdbserver/server.c (attach_inferior): New function.
14450	(main): Handle "--attach".
14451
144522002-01-16  Andrew Cagney  <ac131313@redhat.com>
14453
14454	* MAINTAINERS (language support): Daniel Jacobwitz is C++
14455	maintainer.
14456
144572002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14458
14459	* c-typeprint.c (is_type_conversion_operator): Add additional
14460	check for non-conversion operators.
14461
144622002-01-15  Michael Snyder  <msnyder@redhat.com>
14463
14464	* linux-proc.c: Add "info proc" command, a la procfs.c.
14465	(read_mapping): New function, abstract and re-use code.
14466	(linux_find_memory_regions): Use new func read_mapping.
14467	(linux_info_proc_cmd): New function, implement "info proc".
14468	(_initialize_linux_proc): Add new command "info proc".
14469
144702002-01-15  Michael Snyder  <msnyder@redhat.com>
14471
14472	* symfile.c (generic_load): Use bfd_map_over_sections method
14473	instead of manipulating bfd structure members directly.
14474	(add_section_size_callback): New function, bfd sections callback
14475	used by generic_load.
14476	(load_sections_callback): New function, bfd sections callback
14477	used by generic_load.
14478
144792002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14480
14481	[Based on work by Jim Blandy]
14482	* gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14483	(builtin_type_vec128): Export.
14484	* gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14485	types.
14486	(builtin_type_vec128): New builtin type for 128 bit vector
14487	registers.
14488	(build_gdbtypes): Initialize builtin_type_v16qi and
14489	builtin_type_v8hi. Create the vec128 register builtin type
14490	structure.
14491	(build_builtin_type_vec128): New function.
14492	(_initialize_gdbtypes): Register builtin_type_v16qi and
14493	builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14494	* rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14495	AltiVec register to new builtin type.
14496
144972002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14498
14499	* stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14500	to make_cv_type.
14501
145022002-01-14  Andrew Cagney  <ac131313@redhat.com>
14503
14504	* config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14505	CLEAN_UP_REGISTER_VALUE.
14506	* regcache.c (supply_register): Update only call.
14507
145082002-01-14  Andrew Cagney  <ac131313@redhat.com>
14509
14510	* configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14511	a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14512	a29k-*-vxworks* targets as obsolete.
14513
145142002-01-14  Michael Snyder  <msnyder@redhat.com>
14515
14516	* linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14517	until we can resolve portability issues.
14518	* gregset.h: Remove references to fpxregs.
14519	* gcore.c (gcore_command): Initialize note_sec to NULL.
14520
145212002-01-13  Andrew Cagney  <ac131313@redhat.com>
14522
14523	* signals.c (target_signal_to_name): Rewrite.  Only use
14524	signals[].name when in bounds and non-NULL.
14525
145262002-01-13  Andrew Cagney  <ac131313@redhat.com>
14527
14528	From Petr Ledvina <ledvinap@kae.zcu.cz>:
14529	* signals.c (target_signal_to_name): Verify that SIG is within the
14530	bounds of the signals array.
14531
145322002-01-13  Andrew Cagney  <ac131313@redhat.com>
14533
14534	* MAINTAINERS: Remove arm-coff and arm-pe from target list.
14535
145362002-01-13  Keith Seitz  <keiths@redhat.com>
14537
14538	* stack.c (print_frame_info_base): Print the frame's pc
14539	only if when print_frame_info_listing_hook is not defined.
14540
145412002-01-13  Keith Seitz  <keiths@redhat.com>
14542
14543	* varobj.c (varobj_set_value): Make sure that there were no
14544	errors evaluating the object before attempting to set its
14545	value.
14546	value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14547	so this offset adjustment is no longer necessary.
14548	(create_child): Don't set the error flag if the child is
14549	a CPLUS_FAKE_CHILD.
14550	(value_of_child): If value_fetch_lazy fails, return NULL
14551	so that callers will be notified that an error occurred.
14552	(c_value_of_variable): Delay check of variable's validity
14553	until later. We actually want all structs and unions to have
14554	the value "{...}".
14555	Do not return "???" for variables which could not be evaluated.
14556	This error condition must be returned to the caller so that it
14557	can get the error condition from gdb.
14558	(cplus_name_of_child): Adjust index for vptr before figuring
14559	out the name of the child.
14560	(cplus_value_of_child): If a child's (real) parent is not valid,
14561	don't even bother trying to give a value for it. Just return
14562	an error. Change all instances in this function.
14563	(cplus_type_of_child): If our parent is one of the "fake"
14564	parents, we need to get at the type of the real parent, and
14565	derive the child's true type using this information.
14566
145672002-01-13  Andrew Cagney  <ac131313@redhat.com>
14568
14569	From 2002-01-09 John Marshall <johnm@falch.net>:
14570	* CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14571	sources.redhat.com, and tweak some related URLs which had
14572	suffered from linkrot.
14573
145742002-01-13  Andrew Cagney  <ac131313@redhat.com>
14575
14576	From Jeff law:
14577	* hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14578	structures passed in registers.
14579
145802002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14581
14582	* go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14583	white space which prevented compilation.  Reported by DSK
14584	<dsk@student.unsw.edu.au>.
14585
145862002-01-11  Michael Snyder  <msnyder@redhat.com>
14587
14588	* symfile.c (build_section_addr_info_from_section_tab):
14589	Use bfd access method instead of manipulating bfd directly.
14590	(syms_from_objfile): Ditto.
14591	(simple_overlay_update_1): Ditto.
14592	(simple_overlay_update): Ditto.
14593	(generic_load): Ditto.
14594	(overlay_unmapped_address): FIXME comment, bfd access methods.
14595	(sections_overlap): FIXME comment, bfd access methods.
14596	(pc_in_mapped_range): FIXME comment, bfd access methods.
14597	(pc_in_unmapped_range): FIXME comment, bfd access methods.
14598	(section_is_mapped): FIXME comment, bfd access methods.
14599	(section_is_overlay): FIXME comment, bfd access methods.
14600
14601	* symfile.c (generic_load): Whitespace and long line cleanups.
14602	Remove duplicate variable, change several local variables to
14603	more appropriate data types.
14604	(print_transfer_performance): Use %lu instead of %ld for ulongs.
14605
146062002-01-12  Andrew Cagney  <ac131313@redhat.com>
14607
14608	From Peter Schauer:
14609	* language.c (longest_local_hex_string_custom): Use phex_nz to
14610	convert NUM to a hex string.
14611
146122002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14613
14614	* sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14615	the function.
14616	Update Copyright year.
14617
146182002-01-12  Andrew Cagney  <ac131313@redhat.com>
14619
14620	* language.c (longest_raw_hex_string): Delete unused function.
14621
146222002-01-11  Petr Sorfa  <petrs@caldera.com>
14623
14624	* MAINTAINERS (write-after-approval): Add myself.
14625	* dwarf2read.c (read_tag_string_type): Handling of
14626	DW_AT_byte_size.
14627	(read_tag_string_type): FORTRAN fix to prevent propagation of
14628	first string size.
14629	(set_cu_language): Handling of DW_LANG_Fortran95
14630
146312002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14632
14633	* armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14634	GETPID(inferior_ptid).
14635	(store_inferior_registers): Likewise.
14636
146372002-01-10  Jason Merrill  <jason@redhat.com>
14638
14639	* dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14640	Fix DW_OP_minus.
14641
146422002-01-10  Andrew Cagney  <ac131313@redhat.com>
14643
14644	* config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14645	and bfd/elf32-sh-nbsd.c.
14646
146472002-01-10  Michael Snyder  <msnyder@redhat.com>
14648
14649	* NEWS: Mention --pid and corefile/proc-id behavior change.
14650
14651	* Makefile.in: Add rules for gcore.o and linux-proc.o.
14652	* gcore.c: Include cli/cli-decode.h instead of command.h.
14653
14654	* main.c (captured_main): Add new command line option "--pid".
14655	If the second command line argument (following the symbol-file)
14656	begins with a digit, try to attach to it before trying to open
14657	it as a corefile.
14658	(print_gdb_help): Document the "--pid" argument.
14659
146602002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14661
14662	* completer.c (command_completer): New function.
14663
14664	* completer.h <command_completer>: Add prototype.
14665
14666	* cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14667	completer for the "help" command.
14668
146692002-01-09  Jason Merrill  <jason@redhat.com>
14670
14671	* c-typeprint.c (is_type_conversion_operator): Fix thinko.
14672
146732002-01-09  Michael Snyder  <msnyder@redhat.com>
14674
14675	* i386-linux-nat.c (fill_fpxregset): Make global.
14676	(store_fpxregset): Ditto.
14677
14678	* gregset.h (gdb_fpxregset_t): Define.
14679	(supply_fpxregset): Prototype.
14680	(fill_fpxregset): Prototype.
14681
14682	* exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14683
146842002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14685
14686	* config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14687	* config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14688	* config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14689
146902002-01-09  Andrew Cagney  <ac131313@redhat.com>
14691
14692	* MAINTAINERS: Update target maintainer rules so that any
14693	Maintainer can approve a tested patch for a maintenance-only
14694	target.
14695
146962002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14697
14698	* MAINTAINERS (write-after-approval): Add myself.
14699
14700	* arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14701	IN_SIGTRAMP.
14702
147032002-01-08  Michael Snyder  <msnyder@redhat.com>
14704
14705	* linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14706	real name of the executable, rather than the /proc name.
14707
147082002-01-03  Michael Snyder  <msnyder@redhat.com>
14709
14710	Implement a "generate-core-file" command in gdb, save target state.
14711	* gcore.c: New file.  Implement new command 'generate-core-file'.
14712	Save a corefile image of the current state of the inferior.
14713	* linux-proc.c: Add linux-specific code for saving corefiles.
14714	* target.h (struct target_ops): Add new target vectors for saving
14715	corefiles; to_find_memory_regions and to_make_corefile_notes.
14716	(target_find_memory_regions): New macro.
14717	(target_make_corefile_notes): New macro.
14718	* target.c (update_current_target): Inherit new target methods.
14719	(dummy_find_memory_regions): New place-holder method.
14720	(dummy_make_corefile_notes): New place-holder method.
14721	(init_dummy_target): Initialize new dummy target vectors.
14722	* exec.c (exec_set_find_memory_regions): New function.
14723	Allow the exec_ops vector for memory regions to be taken over.
14724	(exec_make_note_section): New function, target vector method.
14725	* defs.h (exec_set_find_memory_regions): Export prototype.
14726	* procfs.c (proc_find_memory_regions): New function, corefile method.
14727	(procfs_make_note_section): New function, corefile method.
14728	(init_procfs_ops): Set new target vector pointers.
14729	(find_memory_regions_callback): New function.
14730	(procfs_do_thread_registers): New function.
14731	(procfs_corefile_thread_callback): New function.
14732	* sol-thread.c (sol_find_memory_regions): New function.
14733	(sol_make_note_section): New function.
14734	(init_sol_thread_ops): Initialize new target vectors.
14735	* inftarg.c (inftarg_set_find_memory_regions): New function.
14736	Allow to_find_memory_regions vector to be taken over.
14737	(inftarg_set_make_corefile_notes): New function.
14738	Allow to_make_corefile_notes vector to be taken over.
14739	* thread-db.c (thread_db_new_objfile): Don't activate thread-db
14740	interface layer if not target_has_execution (may be a corefile).
14741	* config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14742	* config/sparc/sun4sol2.mh: Ditto.
14743	* config/alpha/alpha-linux.mh: Ditto.
14744	* config/arm/linux.mh: Ditto.
14745	* config/i386/x86-64linux.mh: Ditto.
14746	* config/ia64/linux.mh: Ditto.
14747	* config/m68k/linux.mh: Ditto.
14748	* config/mips/linux.mh: Ditto.
14749	* config/powerpc/linux.mh: Ditto.
14750	* config/sparc/linux.mh: Ditto.
14751
147522002-01-07  Michael Snyder  <msnyder@redhat.com>
14753
14754	* arm-linux-nat.c: Remove references to regcache.c internal data
14755	(registers[] and register_valid[]).
14756
147572002-01-07  Michael Snyder  <msnyder@redhat.com>
14758
14759	* linux-proc.c: New file.  Implement child_pid_to_exec_file,
14760	so that attaching to a pid will automatically read the process's
14761	symbol file and shlibs.
14762	* Makefile.in: Add rule for linux-proc.o.
14763	* config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14764	* config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14765	* config/arm/linux.mh: Ditto.
14766	* config/i386/linux.mh: Ditto.
14767	* config/i386/x86-64linux.mh: Ditto.
14768	* config/ia64/linux.mh: Ditto.
14769	* config/m68k/linux.mh: Ditto.
14770	* config/mips/linux.mh: Ditto.
14771	* config/powerpc/linux.mh: Ditto.
14772	* config/sparc/linux.mh: Ditto.
14773
147742002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14775
14776	* win32-nat.c: Add i386-tdep.h dependency.
14777
147782002-01-07  Michael Snyder  <msnyder@redhat.com>
14779
14780	* solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14781	instead of bfd_get_arch_size.  Don't bail out just because
14782	there's no exec_bfd.
14783
14784	* cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14785	* p-valprint.c (pascal_object_print_value): Ditto.
14786	* somread.c (som_symtab_read): Ditto.
14787	* symfile.c (simple_free_overlay_region_table): Ditto.
14788	* valops.c (value_assign): Ditto.
14789
14790	* tracepoint.c (tracepoint_save_command): From Klee Dienes --
14791	use tilde_expand and strerror for opening save-tracepoints file.
14792
14793	* thread-db.c (thread_db_new_objfile): Indendation fix.
14794
14795	* infptrace.c (GDB_MAX_ALLOCA): New define.
14796	(child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14797	size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14798	can be overridden with whatever value is appropriate to the host).
14799	* infttrace.c (child_xfer_memory): Add FIXME warning about use of
14800	alloca to allocate potentially large buffer.
14801	* rs6000-nat.c (child_xfer_memory): Ditto.
14802	* symm-nat.c (child_xfer_memory): Ditto.
14803	* x86-64-linux-nat.c (child_xfer_memory): Ditto.
14804
148052002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14806
14807	From Nick Clifton  <nickc@redhat.com>
14808	* d10v-tdep.c: Set STACK_START to 0x200bffe.
14809
148102002-01-07  Michael Snyder  <msnyder@redhat.com>
14811
14812	* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14813	Don't use exec_bfd if it's NULL.
14814
148152002-01-06  Mark Kettenis  <kettenis@gnu.org>
14816
14817	* valops.c (value_arg_coerce): Fix formatting.
14818
148192002-01-06  Andrew Cagney  <ac131313@redhat.com>
14820
14821	* hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14822	* gnu-nat.c: Ditto.
14823
148242002-01-06  Andrew Cagney  <ac131313@redhat.com>
14825
14826	* MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14827	arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14828	i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14829	ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14830	z8k-coff have not been multi-arched.  Update z8k-coff build
14831	status.
14832
148332002-01-06  Andrew Cagney  <ac131313@redhat.com>
14834
14835	* MAINTAINERS: Mark a29k target as obsolete.
14836	* Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14837	(remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14838	comments.
14839	* NEWS: Note that a29k targets are obsolete.
14840	* a29k-tdep.c: Mark as obsolete.
14841	* configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14842	a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14843	a29k-*-vxworks* targets as obsolete.
14844	* remote-adapt.c: Obsolete.
14845	* remote-eb.c: Obsolete.
14846	* remote-mm.c: Obsolete.
14847	* remote-udi.c: Obsolete.
14848	* config/a29k/a29k-udi.mt: Obsolete.
14849	* config/a29k/a29k.mt: Obsolete.
14850	* config/a29k/tm-a29k.h: Obsolete.
14851	* config/a29k/tm-vx29k.h: Obsolete.
14852	* config/a29k/vx29k.mt: Obsolete.
14853
148542002-01-05  Andrew Cagney  <ac131313@redhat.com>
14855
14856	* rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14857	with BFD_ENDIAN_BIG.
14858
148592002-01-05  Andrew Cagney  <ac131313@redhat.com>
14860
14861	* configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14862	* configure, config.in: Re-generate.
14863	* config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14864	* defs.h: Do not include <endian.h>.
14865
148662002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14867
14868	* acconfig.h (HAVE_PT_GETXMMREGS): New.
14869	* config.in: Regenerate.
14870	* configure.in: Update copyright years.
14871	Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14872	* configure: Regenerate.
14873	* i386bsd-nat.c: Update copyright years.
14874	(fill_gregset): Use regcache_collect.
14875	(fetch_inferior_registers): Only fetch integer registers
14876	if requested to do so.  Add support for XMM registers
14877	using PT_GETXMMREGS.
14878	(store_inferior_registers): Only store integer registers
14879	if requested to do so.  Add support for XMM registers
14880	using PT_SETXMMREGS.
14881	* i386nbsd-nat.c (fetch_inferior_registers): Remove.
14882	(store_inferior_registers): Remove.
14883	(fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14884	(fetch_elfcore_registers): New function.
14885	(i386nbsd_elfcore_fns): New.
14886	(_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14887	* config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14888	i386bsd-nat.o.
14889	* config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14890	* config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14891	* config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14892	* config/i386/tm-nbsd.h: Update copyright years.
14893	(HAVE_SSE_REGS): Define.
14894	(IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14895	(SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14896	(SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14897	(SIGCONTEXT_PC_OFFSET): Remove.
14898	(FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14899
149002002-01-05  Andrew Cagney  <ac131313@redhat.com>
14901
14902	* configure.tgt: Remove powerpc-*-macos* target.
14903	* config/m68k/xm-mpw.h: Delete file.
14904	* config/xm-mpw.h: Delete file.
14905	* ser-mac.c: Delete file.
14906	* mpw-make.sed: Delete file.
14907	* mpw-config.in: Delete file.
14908	* mac-xdep.c: Delete file.
14909	* mac-gdb.r: Delete file.
14910	* mac-defs.h: Delete file.
14911	* mac-nat.c: Delete file.
14912	* config/powerpc/macos.mh: Delete file.
14913	* config/powerpc/macos.mt: Delete file.
14914	* config/powerpc/nm-macos.h: Delete file.
14915	* config/powerpc/tm-macos.h: Delete file.
14916	* source.c (openp, open_source_file): Remove obsolete code.
14917	* top.c	(gdb_readline): Ditto.
14918	* utils.c (query): Ditto.
14919	* event-top.c (display_gdb_prompt): Ditto.
14920	* Makefile.in (ser-mac.o): Delete obsolete target.
14921	* NEWS: Update.
14922
149232002-01-04  Andrew Cagney  <ac131313@redhat.com>
14924
14925	* defs.h (BIG_ENDIAN): Delete macro definition.
14926	* a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14927	coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14928	findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14929	printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14930	remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14931	stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14932	config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14933	config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14934	config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14935	config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14936	config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14937	config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14938	mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14939	* gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14940	* gdbarch.c: Re-generate.
14941
149422002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14943
14944	* thread-db.c (thread_db_new_objfile): Do not enable thread_db
14945	for core files.
14946
149472002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14948
14949	* config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14950
149512002-01-04  Andrew Cagney  <ac131313@redhat.com>
14952
14953	* value.h (value_ptr): Delete typedef.
14954
149552002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
14956
14957	* i386nbsd-nat.c: Update copyright years.
14958	Include i386-tdep.h.
14959
149602002-01-04  Elena Zannoni  <ezannoni@redhat.com>
14961
14962	* stabsread.c: Update copyright years.
14963
14964	From Debashis Mahata <debashis.mahata@wipro.com>:
14965	(read_struct_fields): Deal with Sun C compiler erroneous stab
14966	output for structs and unions.
14967        Fix PR gdb/269.
14968
149692002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14970
14971	* p-valprint.c: Include "cp-abi.h" for baseclass_offset
14972	prototype.
14973
149742002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14975
14976	* cp-abi.c: Fix whitespace.
14977	(baseclass_offset): New wrapper function.
14978	* cp-abi.h (baseclass_offset): Add prototype.
14979	(struct cp_abi_ops): Add baseclass_offset pointer.
14980
14981	* valops.c (vb_match): Move to...
14982	* gnu-v2-abi.c (vb_match): here.
14983	* valops.c (baseclass_offset): Move to...
14984	* gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14985
14986	* gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14987
14988	* gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14989	* gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14990	* hpacc-abi.c (init_hpacc_ops): Likewise.
14991
149922002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14993
14994	* valops.c (find_overload_match): Accept obj as a
14995	reference parameter.  Update it before returning.
14996	* value.h (find_overload_match): Update prototype.
14997	* eval.c (evaluate_subexp_standard): Pass object to
14998	find_overload_match by reference.
14999
150002002-01-03  Andrew Cagney  <ac131313@redhat.com>
15001
15002	* valarith.c: Replace value_ptr with struct value pointer.  Remove
15003	register attribute from value declarations.
15004	* valops.c: Ditto.
15005	* value.h: Ditto.
15006	* scm-lang.c (scm_lookup_name): Ditto.
15007
150082002-01-03  Michael Snyder  <msnyder@redhat.com>
15009
15010	Abstract the functionality of iterating over mapped memory
15011	regions into a general purpose iterator function.
15012	* procfs.c (iterate_over_mappings): New function, general purpose
15013	iterator for memory sections.
15014	(proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15015	(solib_mappings_callback): New function, callback for above.
15016	(info_proc_mappings): Reimpliment using iterate_over_mappings.
15017	(info_mappings_callback): New function, callback for above.
15018
15019	* procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15020
150212002-01-01  Mark Kettenis  <kettenis@gnu.org>
15022
15023	* i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15024	* i386-tdep.c: Include "elf-bfd.h".
15025	(process_note_abi_tag_sections): New function.
15026	(i386_gdbarch_init): Add code to recognize various OS/ABI
15027	combinations.
15028
15029	* maint.c (_initialize_maint_cmds): Add missing \ in
15030	string-literal.
15031
15032For older changes see ChangeLog-2001
15033
15034Local Variables:
15035mode: change-log
15036left-margin: 8
15037fill-column: 74
15038version-control: never
15039End:
15040