2003-01-02 Andrew Cagney <ac131313@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
2
3         * valarith.c (value_binop): Delete obsolete code and comments.
4         * configure.host: Ditto.
5         * buildsym.h (make_blockvector): Ditto.
6         * buildsym.c (make_blockvector): Ditto.
7         * defs.h (enum language): Ditto.
8         (chill_demangle): Ditto.
9         * elfread.c (elf_symtab_read): Ditto.
10         * dwarfread.c (CHILL_PRODUCER): Ditto.
11         (set_cu_language): Ditto.
12         (handle_producer): Ditto.
13         * expprint.c (print_subexp): Ditto.
14         * gdbtypes.c (chill_varying_type): Ditto.
15         * gdbtypes.h (builtin_type_chill_bool): Ditto.
16         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
17         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
18         (chill_varying_type): Ditto.
19         * language.h (_LANG_chill): Ditto.
20         * language.c (binop_result_type, integral_type): Ditto.
21         (character_type, string_type, structured_type): Ditto.
22         (lang_bool_type, binop_type_check): Ditto.
23         * stabsread.h (os9k_stabs): Ditto.
24         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
25         (define_symbol, read_type, read_struct_fields): Ditto.
26         (read_array_type, read_enum_type, read_huge_number): Ditto.
27         (read_range_type, start_stabs): Ditto.
28         * symfile.c (init_filename_language_table): Ditto.
29         (add_psymbol_with_dem_name_to_list): Ditto.
30         * symtab.c (symbol_init_language_specific): Ditto.
31         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
32         * symtab.h (struct general_symbol_info): Ditto.
33         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
34         * typeprint.c (typedef_print): Ditto.
35         * utils.c (fprintf_symbol_filtered): Ditto.
36         * valops.c (value_cast, search_struct_field, value_slice): Delete
37         obsolete code.
38         (varying_to_slice): Delete function.
39         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
40         (varying_to_slice): Delete declaration.
41         * MAINTAINERS: Update.
42
43 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
44
45         * configure.in: Reorganize "Checks for library functions section"
46         a bit.  Remove check for `btowc' and `isascii' functions.
47         * configure: Regenerated.
48
49         * acconfig.h (_MSE_INT_H): Remove.
50         * configure.in: Create "Checks for header files" section, and move
51         appropriate tests there.  Don't check for objlist.h, wchar.h,
52         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
53         misdetection fix.  Also add "Checks for types", "Checks for
54         compiler characteristics" and "Checks for library functions"
55         sections.
56         * config.in, configure: Regenerated.
57
58         * configure.in: Create "Checks for programs" section, and move
59         appropriate tests there.
60
61 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
62
63         * configure.in: Create "Checks for libraries" section, and move
64         appropriate tests there.  Cleanup check for wctype in libw.  Use
65         AC_SEARCH_LIBS to see whether we need libsocket.
66         * configure: Regenerated.
67
68 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
69
70         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
71         * config.in, configure: Regenerated.
72
73 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
74
75         * gdb_dirent.h: Cleanup and update code to match the example in
76         the Autoconf manual.
77         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
78         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
79         * configure: Regenerated.
80
81 2002-12-30  Adam Fedor  <fedor@gnu.org>
82
83         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
84         (yylex): Initialize c to avoid uninitialized warning.
85
86 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
87
88         * doc/fdl.texi: Revert the last change.
89
90 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
91
92         * tracepoint.c (ISATTY): Removed.
93
94 2002-12-26  J. Brobecker  <brobecker@gnat.com>
95
96         Continuing work to convert the hppa targets to multiarch partil.
97
98         * hppa-tdep.c: Add some missing forward declarations.
99         (frameless_function_invocation): Prefix the function name
100         by "hppa_" to avoid polluting the namespace.  Update all calls
101         to use the new function name.
102         (saved_pc_after_call): Ditto.
103         (init_extra_frame_info): Ditto.
104         (frame_chain): Ditto.
105         (push_dummy_frame): Ditto.
106         (target_read_pc): Ditto.
107         (target_write_pc): Ditto.
108         (in_solib_call_trampoline): Ditto.
109         (in_solib_return_trampoline): Ditto.
110         (skip_trampoline_code): Ditto.
111         (hppa_read_fp): New function, renamed from target_read_fp.
112         (hppa_target_read_fp): New function, using hppa_read_fp.
113         This function conforms to the function profile for the
114         READ_FP gdbarch method.
115         (hppa_extract_struct_value_address): New function, extracted
116         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
117         macro.
118         (hppa_frame_num_args): New function.
119         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
120
121         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
122         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
123         for the switch to multiarch partial.
124         Update some of the macros definitions to match some changes
125         described above in the name of the function they are calling.
126         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
127         not be straightforward to convert. Do now wrap it inside
128         "#if !... #endif" to remember that this macro has still not
129         been taken care of.
130         (FIX_CALL_DUMMY): Likewise.
131
132 2002-12-26  J. Brobecker  <brobecker@gnat.com>
133
134         Continuing work to convert the hppa targets to multiarch partial.
135
136         * hppa-tdep.c (hppa_register_raw_size): New function replacing
137         the body of macro REGISTER_RAW_SIZE.
138         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
139         config/pa/tm-hppah.h. These functions will be used to initialize
140         the gdbarch structure.
141         (hppa_hpux_pc_in_sigtramp): New function.
142         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
143         (hppa_hpux_frame_base_before_sigtramp): New function.
144         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
145         Add gdbcore.h #include.
146         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
147         of this gdbarch-eligible macro to a call to the new associated
148         function.
149         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
150         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
151         into a call to the new associated function.
152         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
153         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
154         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
155
156 2002-12-24  David Carlton  <carlton@math.stanford.edu>
157
158         * config/sparc/tm-sparc.h: Delete duplicate definition of
159         DEPRECATED_PC_IN_CALL_DUMMY.
160
161 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
162
163         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
164         $(gdb_assert_h).
165         * configure.tgt: Recognize mips64*-*-linux*.
166         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
167         (supply_32_bit_reg): New function.
168         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
169         (fill_gregset): Use regcache_collect() instead of
170         deprecated_registers[].
171         (register_addr): Change name to mips_linux_register_addr().
172         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
173         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
174         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
175         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
176         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
177         (MIPS64_LINUX_JB_PC): New defines.
178         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
179         (mips64_elf_fpregset_t): New typedefs.
180         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
181         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
182         (mips64_linux_register_addr, set_mips_linux_register_addr)
183         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
184         (init_register_addr_data)
185         New functions.
186         (fetch_core_registers): Add support for core file formats with 64-bit
187         registers.
188         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
189         (register_addr_data): New static global variable.
190         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
191         gdbarch_register_osabi() for each MIPS machine.
192         * config/mips/linux64.mt: New file.
193         * config/mips/tm-linux64.h: New file.
194
195 2002-12-23  Adam Fedor  <fedor@gnu.org>
196
197         * maint.c (maintenance_demangle): Add switch to demangle
198         ObjC language symbols as well.
199
200 2002-12-23  Adam Fedor  <fedor@gnu.org>
201
202         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
203         last argument from complaint function call.
204
205 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
206
207         * exec.c (print_section_info): Add FIXME comments regarding format
208         string choices.
209
210 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
211
212         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
213         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
214
215 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
216
217         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
218
219 2002-12-23  David Carlton  <carlton@math.stanford.edu>
220
221         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
222         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
223         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
224         information associated to a minsym, not lookup_symbol.
225
226 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
227
228         * x86-64-tdep.h (x86_64_init_abi): New prototype.
229         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
230         (x86_64_init_abi): Make non-static.  Set number of pseudo
231         registers to 0.
232         (x86_64_gdbarch_init): Remove function.
233         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
234         Remove code dealing with dissambly.
235         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
236         (_initialize_x86_64_linux_tdep): New function.
237         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
238         i386-tdep.o.
239
240 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
241
242         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
243         (struct gdb_osabi_handler): Remove member `arch'.  Add member
244         `arch_info'.
245         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
246         construct a `struct bfd_arch_info' and store it in the `struct
247         gdb_osabi_handler' that is created.
248         (gdbarch_init_osabi): Check for compatibility based on machine
249         type and architecture.
250         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
251         comment.
252         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
253         second argument in call to gdbarch_register_osabi.
254         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
255         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
256         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
257         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
258         * arm-tdep.c (_initialize_arm_tdep): Likewise.
259         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
260         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
261         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
262         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
263         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
264         * i386-tdep.c (_initialize_i386_tdep): Likewise.
265         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
266         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
267         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
268         _initialize_i386bsd_tdep and updated likewise.
269         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
270         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
271         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
272         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
273         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
274         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
275         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
276         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
277         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
278         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
279
280 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
281
282         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
283         DT_MIPS_RLD_MAP case for 64-bit targets.
284
285 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
286
287         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
288         ``temp_saved_regs'', not the pointer or other storage contiguous
289         to this pointer.
290
291 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
292
293         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
294         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
295         (mips_linux_get_longjmp_target): Delete declarations.
296         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
297         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
298         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
299         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
300         (mips_linux_get_longjmp_target)
301         (mips_linux_svr4_fetch_link_map_offsets): Make static.
302         (mips_linux_init_abi): New function.
303         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
304
305 2002-12-19  Keith Seitz  <keiths@redhat.com>
306
307         patch committed by Elena Zannoni  <ezannoni@redhat.com>
308         * thread.c (do_captured_list_thread_ids): Call prune_threads and
309         target_find_new_threads. Fix for PR mi/669.
310
311 2002-12-19  David Carlton  <carlton@math.stanford.edu>
312
313         * linespec.c (decode_line_1): Move code into decode_all_digits.
314         (decode_all_digits): New function.
315
316 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
317
318         * exec.c (print_section_info): Select a format string to use with
319         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
320
321 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
322
323         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
324         deprecated_update_current_frame_pc_hack.
325         (deprecated_update_frame_base_hack): New function.
326         * frame.h (deprecated_update_frame_pc_hack): Replace
327         (deprecated_update_frame_base_hack): Declare.
328         * infrun.c (normal_stop): Update.
329
330 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
331
332         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
333         frame_extra_info_zalloc.
334         (rs6000_frame_args_address): Use get_frame_extra_info.
335         (frame_get_saved_regs): Use get_frame_saved_regs.
336         (frame_initial_stack_address): Use get_frame_saved_regs and
337         get_frame_extra_info.
338         (frame_initial_stack_address): Use get_frame_extra_info.
339
340 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
341
342         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
343         array size.
344         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
345         checks for r3900_regnames[].
346
347 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
348
349         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
350         All uses changed
351         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
352
353 2002-12-17  David Carlton  <carlton@math.stanford.edu>
354
355         * symtab.c (lookup_partial_symbol): Don't search past the end of
356         the partial symbols.
357
358 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
359
360         * stack.c (frame_info): Use get_frame_saved_regs.
361         * breakpoint.c (until_break_command): Use get_frame_pc.
362
363 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
364
365         * buildsym.c (block_end_complaint, anon_block_end_complaint)
366         (innerblock_complaint, innerblock_anon_complaint)
367         (blockvector_complaint): Delete deprecated complaint structs.
368         (finish_block, make_blockvector, end_symtab): Replace calls
369         to complain() with calls to complaint().
370         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
371         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
372         (unexpected_type_complaint, bad_sclass_complaint)
373         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
374         Delete deprecated complaint structs.
375         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
376         Replace calls to complain() with calls to complaint().
377         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
378         (unknown_symtype_complaint, unknown_symchar_complaint)
379         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
380         (lbrac_mismatch_complaint, repeated_header_complaint)
381         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
382         Delete deprecated complaint structs.
383         (unknown_symtype_complaint, lbrac_mismatch_complaint)
384         (repeated_header_complaint)
385         (function_outside_compiliation_unit_complaint): New functions.
386         (add_old_header_file, find_corresponding_bincl_psymtab)
387         (set_namestring, find_stab_function_addr, read_dbx_symtab)
388         (process_one_symbol): Replace calls to complain() with, possibly
389         indirect, calls to complaint().
390         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
391         (unknown_attribute_form, unknown_attribute_length)
392         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
393         (const_ignored, botched_modified_type, op_deref2, op_deref4)
394         (basereg_not_handled, dup_user_type_allocation)
395         (dup_user_type_definition, missing_tag, bad_array_element_type)
396         (subscript_data_items, unhandled_array_subscript_format)
397         (unknown_array_subscript_format, not_row_major)
398         (missing_at_name): Delete deprecated complaint structs.
399         (bad_die_ref_complaint, unknown_attribute_form_complaint)
400         (dup_user_type_definition_complaint)
401         (bad_array_element_type_complaint): New functions.
402         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
403         (decode_subscript_data_item, dwarf_read_array_type)
404         (read_tag_string_type, read_subroutine_type, read_func_scope)
405         (locval, scan_partial_symbols, decode_modified_type)
406         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
407         (attribute_size): Replace calls to complain() with, possibly
408         indirect, calls to complaint().
409         * elfread.c (section_info_complaint, section_info_dup_complaint)
410         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
411         Delete deprecated complaint structs.
412         (elf_symtab_read, elfstab_offset_sections): Replace calls to
413         complain() with calls to complaint().
414         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
415         struct.
416         (stub_noname_complaint): New function.
417         (check_typedef, add_mangled_type): Replace calls to complain()
418         with calls to complaint().
419         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
420         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
421         (hpread_unhandled_type_complaint, hpread_struct_complaint)
422         (hpread_array_complaint, hpread_type_lookup_complaint)
423         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
424         (hpread_unhandled_common_complaint)
425         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
426         struct definitions and declarations.
427         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
428         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
429         Replace calls to complain() with, possibly indirect, calls to
430         complaint().
431         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
432         Likewise.
433         * mdebugread.c (bad_file_number_complaint, index_complaint)
434         (aux_index_complaint, block_index_complaint)
435         (unknown_ext_complaint, unknown_sym_complaint)
436         (unknown_st_complaint, block_overflow_complaint)
437         (basic_type_complaint, unknown_type_qual_complaint)
438         (array_index_type_complaint, bad_tag_guess_complaint)
439         (block_member_complaint, stEnd_complaint)
440         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
441         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
442         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
443         (bad_continued_complaint, bad_rfd_entry_complaint)
444         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
445         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
446         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
447         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
448         complaint structs.
449         (index_complaint, unknown_ext_complaint, basic_type_complaint)
450         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
451         (unexpected_type_code_complaint)
452         (function_outside_compilation_unit_complaint): New functions.
453         (parse_symbol, parse_type, upgrade_type, parse_procedure)
454         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
455         Replace calls to complain() with, possibly indirect calls to
456         complaint().
457         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
458         Delete deprecated complaint structs.
459         (lookup__objc_class, lookup_child_selector): Replace complain()
460         with complaint().
461         * remote-vx.c (cant_contact_target): Delete deprecated complaint
462         struct.
463         (vx_lookup_symbol): Replace complain() with complaint().
464         * stabsread.c (invalid_cpp_abbrev_complaint)
465         (invalid_cpp_type_complaint, member_fn_complaint)
466         (const_vol_complaint, error_type_complaint)
467         (invalid_member_complaint, range_type_base_complaint)
468         (reg_value_complaint, vtbl_notfound_complaint)
469         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
470         (unresolved_sym_chain_complaint, stabs_general_complaint)
471         (lrs_general_complaint, multiply_defined_struct): Delete
472         deprecated complaint structs.
473         (invalid_cpp_abbrev_complaint, ref_value_complaint)
474         (stabs_general_complaint, lrs_general_complaint)
475         (msg_unknown_complaint): New functions.
476         (dbx_lookup_type, read_cfront_baseclasses)
477         (read_cfront_member_functions, resolve_symbol_reference)
478         (define_symbol, resolve_live_range, add_live_range, read_type)
479         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
480         (read_one_struct_field, read_baseclasses, read_tilde_fields)
481         (read_cfront_static_fields, attach_fields_to_type)
482         (complain_about_struct_wipeout, read_range_type)
483         (common_block_start, common_block_end, cleanup_undefined_types)
484         (scan_file_globals): Replace complain() with complaint().
485         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
486         Delete deprecated complaint struct declarations.
487         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
488         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
489         (bf_not_found_complaint, ef_complaint, eb_complaint)
490         (function_outside_compilation_unit_complaint): New functions.
491         (record_include_begin, record_include_end, enter_line_range)
492         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
493         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
494         complain() with complaint().
495
496 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
497
498         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
499         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
500         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
501         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
502         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
503         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
504         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
505         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
506         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
507         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
508         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
509         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
510         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
511         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
512         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
513         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
514         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
515         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
516         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
517         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
518         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
519         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
520         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
521         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
522         * config/m88k/xm-dgux.h: Delete.
523         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
524         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
525         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
526         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
527         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
528         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
529         * ch-valprint.c: Delete.
530         
531 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
532
533         * infrun.c (handle_inferior_event): Rearrange code to resume if
534         no catchpoint triggers for an event.
535
536 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
537
538         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
539         and TARGET_WAITKIND_VFORKED cases.
540
541 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
542
543         * infrun.c (handle_inferior_event): Assume that catchpoints
544         are not affected by DECR_PC_AFTER_BREAK.
545
546 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
547
548         * target.c (update_current_target): Don't inherit DONT_USE.
549         * target.h (struct target_ops): Remove DONT_USE.
550         (target_next): Remove macro.
551
552 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
553
554         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
555
556 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
557
558         * arm-tdep.c (convert_from_extended): New argument to hold the
559         type of floating point result we want to convert to.  Make input 
560         argument const.  Fix all callers.
561         (convert_to_extended): Similarly.
562         (arm_extract_return_value): Now takes a regcache argument.  Change
563         code to use regcache accessor functions.  Correctly extract 
564         smaller-than-word results on big-endian machines.
565         (arm_store_return_value): Now takes a regcache argument.  Change
566         code to use regcache accessor functions.  Correctly zero/sign extend
567         smaller than word results before storing into r0.
568         (arm_gdbarch_init): Register new-style extract_return_value and
569         store_return_value functions.
570
571 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
572
573         * thread-db.c (thread_from_lwp): Uniquify error msg.
574         (lwp_from_thread): Ditto.
575         (check_event): Ditto.
576         (find_new_threads_callback): Ditto.
577         (thread_db_pid_to_str): Ditto.
578
579 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
580
581         * frame.h (get_frame_saved_regs): Declare.
582         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
583         pointer.
584         * frame.c (get_frame_saved_regs): New function.
585         (frame_saved_regs_zalloc): Return the allocated saved_regs.
586
587 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
588
589         * frame.c (deprecated_update_current_frame_pc_hack): New
590         function.
591         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
592         * infrun.c (normal_stop): Use said function instead of directly
593         modifying the frame's PC.
594         
595 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
596
597         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
598
599 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
600
601         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
602         config/mips/tm-irix6.h (NUM_REGS): Delete.
603         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
604         (temp_saved_regs): Declare as a pointer rather than an array.
605         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
606         that ``temp_saved_regs'' has storage allocated to it and that
607         it's the correct size.
608
609 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
610
611         * defs.h (init_last_source_visited): New prototype.
612         (add_path): Ditto.
613         * source.c (add_path): New function that adds to a specified path.
614         (mod_path): Change to call add_path.
615         (init_last_source_visited): New function to allow interfaces to
616         initialize static variable: last_source_visited.  Part of fix
617         for PR gdb/741.
618         * Makefile.in: Add support for mi/mi-cmd-env.c.
619
620 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
621
622         * frame.h (frame_id_unwind): Declare.
623         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
624         id_unwind_cache.
625         (frame_id_unwind_ftype): Declare.
626         * frame.c (frame_id_unwind): New function.
627         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
628         (create_new_frame, get_prev_frame): Pass id_unwind to
629         set_unwind_by_pc.
630         (frame_saved_regs_id_unwind): New function.
631         (frame_saved_regs_id_unwind): New function.
632         * dummy-frame.c (dummy_frame_id_unwind): New function.
633         (struct dummy_frame): Add field id.
634         (generic_push_dummy_frame): Initialize `id'.
635         * dummy-frame.h (dummy_frame_id_unwind): Declare.
636
637 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
638
639         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
640         pass that to set_momentary_breakpoint.  Move comments to where they
641         belong.
642         * frame.h (set_current_frame): Delete declaration.
643         * frame.c (set_current_frame): Delete function.
644
645 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
646
647         * frame.c (frame_extra_info_zalloc): New function.
648         * frame.h (frame_extra_info_zalloc): Declare.
649
650 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
651
652         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
653         in the previous prototype change to set_momentary_breakpoint.
654
655 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
656
657         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
658         and saw_child_exec.
659         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
660         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
661         (stop_stepping): Remove outdated check for child vfork events.
662
663 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
664
665         * GDB 5.3 released from gdb_5_3-branch.
666
667 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
668
669         * corelow.c (init_core_ops): Delete references to to_require_attach
670         and to_require_detach.
671         * exec.c (init_exec_ops): Likewise.
672         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
673         hppa_require_detach directly.
674         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
675         * inftarg.c (child_detach): Remove.
676         (child_detach_from_process): Rename to child_detach, remove
677         after_fork argument.
678         (child_attach): Remove.
679         (child_attach_to_process): Rename to child_attach, remove after_fork
680         argument.
681         (init_child_ops): Delete references to to_require_attach
682         and to_require_detach.
683         * infttrace.c (hppa_require_attach): Update comment.
684         * target.c (cleanup_target, update_current_target)
685         (init_dummy_target, setup_target_debug): Delete references to
686         to_require_attach and to_require_detach.
687         (find_default_require_detach, find_default_require_attach)
688         (debug_to_require_attach, debug_to_require_detach): Remove
689         functions.
690         * target.h (struct target_ops): Remove to_require_attach
691         and to_require_detach.
692         (target_require_attach, target_require_detach): Delete macros.
693         (find_default_require_detach, find_default_require_attach): Delete
694         prototypes.
695         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
696
697 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
698
699         * frame.c (get_frame_extra_info): New function.
700         * frame.h (get_frame_extra_info): Declare.
701
702 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
703
704         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
705         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
706         with `struct frame_id'.
707         (set_longjmp_resume_breakpoint): Ditto.
708         * infrun.c (handle_inferior_event): Update.
709         * breakpoint.c (watch_command_1, until_break_command): Update.
710         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
711         (handle_inferior_event, step_over_function): Update.
712         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
713         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
714         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
715         * infcmd.c (finish_command, run_stack_dummy): Update.
716
717 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
718
719         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
720         (dwarf2_non_const_array_bound_ignored)
721         (dwarf2_missing_line_number_section)
722         (dwarf2_statement_list_fits_in_line_number_section)
723         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
724         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
725         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
726         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
727         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
728         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
729         (dwarf2_missing_member_fn_type_complaint)
730         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
731         (dwarf2_const_value_length_mismatch)
732         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
733         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
734         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
735         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
736         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
737         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
738         complaints using deprecated struct..
739         (dwarf2_non_const_array_bound_ignored_complaint)
740         (dwarf2_complex_location_expr_complaint)
741         (dwarf2_unsupported_at_frame_base_complaint)
742         (dwarf2_const_value_length_mismatch_complaint)
743         (dwarf2_macros_too_long_complaint)
744         (dwarf2_macro_malformed_definition_complaint)
745         (dwarf2_invalid_attrib_class_complaint): New functions.
746         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
747         (read_structure_scope, read_array_type, read_common_block)
748         (read_tag_pointer_type, read_base_type, read_partial_die)
749         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
750         (new_symbol, dwarf2_const_value, read_type_die)
751         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
752         (parse_macro_definition, dwarf_decode_macros): Replace calls to
753         complain() with, possibly indirect, calls to complaint().
754
755 2002-12-11  Andrew Cagney  <cagney@redhat.com>
756
757         * frame.c (deprecated_get_frame_saved_regs): Rename
758         get_frame_saved_regs.
759         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
760         * sparc-tdep.c: Update.
761         * hppa-tdep.c: Update.
762         * h8500-tdep.c: Update.
763
764 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
765
766         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
767         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
768         ``char *'' for return and parameter types.
769         * gdbarch.h, gdbarch.c: Regenerate.
770         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
771         return type from ``char *'' to ``const char *''.
772         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
773         const.
774
775 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
776
777         * i386-tdep.c: Include "dummy-frame.h".
778         (i386_frame_chain, i386_frame_saved_pc): Replace
779         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
780         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
781
782 2002-12-10  Andrew Cagney  <cagney@redhat.com>
783
784         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
785         Change to a function with predicate.
786         * gdbarch.h, gdbarch.c: Re-generate.
787         * frame.c (get_prev_frame): Update.  Test
788         DEPRECATED_INIT_FRAME_PC_P.
789         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
790         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
791         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
792         * alpha-tdep.c (alpha_gdbarch_init): Update.
793         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
794         * mips-tdep.c (mips_gdbarch_init): Update.
795         * i386-interix-tdep.c (i386_interix_init_abi): Update.
796         * arm-tdep.c: Update comments.
797         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
798         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
799         * frv-tdep.c (frv_gdbarch_init): Ditto.
800         * x86-64-tdep.c (x86_64_init_abi): Ditto.
801         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
802         * s390-tdep.c (s390_gdbarch_init): Ditto.
803         * v850-tdep.c (v850_gdbarch_init): Ditto.
804         * vax-tdep.c (vax_gdbarch_init): Ditto.
805         * sh-tdep.c (sh_gdbarch_init): Ditto.
806         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
807         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
808         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
809         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
810         * i386-tdep.c (i386_gdbarch_init): Ditto.
811         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
812         * cris-tdep.c (cris_gdbarch_init): Ditto.
813         * avr-tdep.c (avr_gdbarch_init): Ditto.
814         * arm-tdep.c (arm_gdbarch_init): Ditto.
815         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
816         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
817
818 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
819
820         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
821         CHILD_FOLLOW_FORK.
822         * hppah-nat.c (saved_vfork_pid): Add.
823         (child_post_follow_vfork): Remove.
824         (child_follow_fork): New function.
825         (child_wait): Call detach_breakpoints after receiving the child vfork.
826         Call child_resume directly instead of going through resume ().
827         Make sure we have the exec before reporting the vfork.
828         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
829         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
830         (follow_fork): New function.  Call target_follow_fork.
831         (follow_inferior_reset_breakpoints): New function broken out from
832         old follow_inferior_fork.
833         (resume): Remove hack to follow exec after vfork.
834         * inftarg.c (child_post_follow_vfork): Remove.
835         (child_follow_fork): New function.
836         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
837         * target.c (cleanup_target): Replace to_post_follow_vfork with
838         to_follow_fork.
839         (update_current_target): Likewise.
840         (setup_target_debug): Likewise.
841         (debug_to_post_follow_vfork): Remove.
842         (debug_to_follow_fork): New function.
843         * target.h (struct target_ops): Replace to_post_folow_vfork with
844         to_follow_fork.
845         (child_post_follow_vfork): Remove prototype.
846         (child_follow_fork): Add prototype.
847         (target_post_follow_vfork): Remove macro.
848         (target_follow_fork): Add macro.
849
850 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
851
852         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
853         (child_post_follow_vfork): Cancel pending exec event if we follow
854         the parent.
855         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
856         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
857         event at the following wait call if necessary.
858         * infrun.c (follow_vfork): Don't follow_exec here.
859         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
860         case about HP/UX 10.20.  Remove code pushed down to
861         hppah-nat.c:child_wait.
862         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
863         vfork_in_flight is set.
864
865 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
866
867         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
868         for the parent's fork event.
869         * infrun.c (handle_inferior_event): Only expect one fork event.
870         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
871         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
872
873 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
874
875         * PROBLEMS: Delete reference to PR gdb/725.
876         
877         * MAINTAINERS (gdb.c++): Add David Carlton.
878
879 2002-12-09  David Carlton  <carlton@math.stanford.edu>
880
881         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
882         * cli/cli-cmds.c: Ditto.
883
884 2002-12-09  Andrew Cagney  <cagney@redhat.com>
885
886         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
887         function address in <>.
888         * gdbarch.c: Re-generate.
889
890 2002-12-09  David Carlton  <carlton@math.stanford.edu>
891
892         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
893
894 2002-12-09  David Carlton  <carlton@math.stanford.edu>
895
896         * linespec.c (symtab_from_filename): New function.
897         (decode_line_1): Move code into symtab_from_filename.
898
899 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
900
901         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
902
903 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
904
905         * f-valprint.c (info_common_command): Use get_frame_pc.
906         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
907         * ax-gdb.c (agent_command): Ditto.
908         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
909         (rs6000_pop_frame): Ditto.
910         (rs6000_frameless_function_invocation): Ditto.
911         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
912         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
913         * macroscope.c (default_macro_scope): Ditto.
914         * stack.c (print_frame_info_base): Ditto.
915         (print_frame, frame_info, print_frame_label_vars): Ditto.
916         (return_command, func_command, get_frame_language): Ditto.
917         * infcmd.c (finish_command): Ditto.
918         * dummy-frame.c (cached_find_dummy_frame): Ditto.
919         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
920         (break_at_finish_at_depth_command_1): Ditto.
921         (break_at_finish_command_1): Ditto.
922         (until_break_command, get_catch_sals): Ditto.
923         * blockframe.c (func_frame_chain_valid): Ditto.
924         (frameless_look_for_prologue): Ditto.
925         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
926
927 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
928
929         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
930         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
931
932 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
933
934         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
935         to pure functions.
936         * gdbarch.h, gdbarch.c: Re-generate.
937         * frame.c (get_prev_frame): Explictly assign prev's pc with value
938         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
939
940         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
941         declaration to a function returning a CORE_ADDR.
942         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
943         * arch-utils.c (init_frame_pc_noop): Return the PC value.
944         (init_frame_pc_default): Ditto.
945         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
946         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
947         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
948         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
949         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
950         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
951
952         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
953         to init_frame_pc_noop.
954         (i386_interix_init_frame_pc): Delete function.
955         * z8k-tdep.c (init_frame_pc): Delete function.
956         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
957         (INIT_FRAME_PC_FIRST): Ditto.
958         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
959         (INIT_FRAME_PC_FIRST): Ditto.
960         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
961         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
962         init_frame_pc_noop.
963         (INIT_FRAME_PC_FIRST): Convert to an expression.
964         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
965
966 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
967
968         * blockframe.c: Use get_frame_base instead of directly accessing
969         the `struct frame_info' member frame.
970         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
971         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
972
973 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
974
975         * Makefile.in (readline_h): Define.
976         (completer.o): Depend on readline_h.
977         (corelow.o): Ditto.
978         (event-top.o): Ditto.
979         (exec.o): Ditto.
980         (solib.o): Ditto.
981         (source.o): Ditto. 
982         (symfile.o): Ditto. 
983         (symmisc.o): Ditto. 
984         (top.o): Ditto.
985         (tracepoint.o): Ditto. 
986         (utils.o): Ditto.
987         (cli-dump.o): Ditto.
988         (tui-hooks.o): Ditto. 
989         (tuiWin.o): Ditto. 
990
991 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
992
993         More cleanup from import of readline 4.3.
994         * completer.h (complete_line, readline_line_completion_function):
995         Update prototypes.
996         (line_completion_function): Removed, not used outside of completer.c.
997         * completer.c (readline_line_completion_function,
998         complete_function, line_completion_function): Use const for first
999         parameter.
1000         (line_completion_function): Make static.
1001         (filename_completer): filename_completion_function is now called
1002         rl_filename_completion_function
1003         * corelow.c: Include <readline/readline.h>.
1004         * exec.c: Ditto.
1005         * solib.c: Ditto.
1006         * source.c: Ditto.
1007         * symfile.c: Ditto.
1008         * symmisc.c: Ditto.
1009         * top.c (init_main): No need to coerce
1010         readline_line_completion_function anymore.
1011         * cli/cli-dump.c: Include <readline/readline.h>.
1012
1013 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1014
1015         * stack.c (frame_info): Use get_prev_frame.
1016         * blockframe.c (frame_address_in_block): Ditto.
1017         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1018         (rs6000_frameless_function_invocation): Ditto.
1019         (rs6000_frame_saved_pc): Ditto.
1020         (rs6000_frame_chain): Ditto.
1021         * arch-utils.c (init_frame_pc_default): Ditto.
1022
1023 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1024
1025         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1026         Delete redundant definition.
1027
1028 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1029
1030         Import of readline 4.3:
1031         * cli/cli-cmds.c: Include readline/tilde.h.
1032         * cli/cli-setshow.c: Ditto.
1033         * defs.h: Don't declare tilde_expand anymore, since readline
1034         exports it.
1035
1036 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1037
1038         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1039         -Werror on this file.
1040
1041 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1042
1043         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1044         the format name.
1045         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1046         * gdbarch.c: Regenerate.
1047         
1048 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1049
1050         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1051         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1052         provide a default value.
1053         * gdbarch.h, gdbarch.c: Regenerate.
1054         * frame.c (get_prev_frame): Update.  Check
1055         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1056         * s390-tdep.c (s390_gdbarch_init): Update.
1057         * mips-tdep.c (mips_gdbarch_init): Update.
1058         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1059         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1060         * alpha-tdep.c (alpha_gdbarch_init): Update.
1061         
1062 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1063
1064         * ia64-linux-nat.c: Include gdb_string.h.
1065         * alpha-nat.c: Ditto.
1066         * ppc-linux-nat.c: Ditto.
1067         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1068         Update dependencies.
1069
1070 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1071
1072         * gdbthread.h: Include "frame.h".
1073         (struct thread_info): Replace step_frame_address with
1074         step_frame_id.
1075         * inferior.h: Include "frame.h".
1076         (step_frame_id): Replace external variable step_frame_address.
1077         * gdbthread.h (save_infrun_state): Replace step_frame_address
1078         parameter with step_frame_id parameter.
1079         (load_infrun_state): Ditto.
1080         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1081         * infcmd.c (step_frame_id, step_1, step_once): Update.
1082         * thread.c (load_infrun_state, save_infrun_state): Update.
1083         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1084         (handle_inferior_event, step_over_function): Update.
1085         (normal_stop, context_switch, restore_inferior_status): Update.
1086         (struct inferior_status): Replace step_frame_address with
1087         step_frame_id.
1088
1089 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1090
1091         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1092         DW_TAG_member as well as a declaration as being a C++ static data
1093         member.
1094         (read_structure_scope): Combine tests for DW_TAG_member and
1095         DW_TAG_variable.
1096
1097 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1098
1099         * linespec.c (decode_compound): New function.
1100         (decode_line_1): Move code into decode_compound.
1101
1102 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1103
1104         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1105         argument.
1106         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1107         the static block.  See PR gdb/804.
1108
1109 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1110
1111         * symtab.c (lookup_symbol_aux_block): New function.
1112         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1113
1114 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1115
1116         * gdbarch.sh: Dump the predicate function and macro values.
1117         (read): Print error on standard error.
1118         * gdbarch.c: Regenerate.
1119         
1120 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1121
1122         * Makefile.in (mips_tdep_h): Define.
1123         (mips-tdep.o): Add mips_tdep_h to dependency list.
1124         * mips-tdep.h: New file.
1125         * mips-tdep.c (mips-tdep.h): Include.
1126         (enum mips_abi): Move to mips-tdep.h.
1127         (mips_abi): New function.
1128
1129 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1130
1131         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1132
1133 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1134
1135         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1136         function.
1137         (lookup_symbol_aux_minsyms): New function.
1138
1139 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1140
1141         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1142
1143 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1144
1145         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1146         which is an obsolete macro name.
1147
1148 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1149
1150         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1151         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1152
1153 2002-12-03  H.J. Lu  (hjl@gnu.org)
1154
1155         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1156         (create_breakpoints): Make sure the addr_string field is not
1157         NULL.
1158
1159 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1160
1161         * sparc-nat.c (fetch_inferior_registers)
1162         (store_inferior_registers): Add comment on problem of LWP vs
1163         threads.
1164         
1165         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1166         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1167         (lin_lwp_store_registers): Remove.
1168         (init_lin_lwp_ops): Use fetch_inferior_registers
1169         and store_inferior_registers directly.
1170         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1171         (store_inferior_registers): Likewise.
1172         Fix PR gdb/725.
1173
1174 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1175
1176         * frame.h (get_frame_id): Convert to a function.
1177         (null_frame_id, frame_id_p): Declare.
1178         (frame_id_eq, frame_id_inner): Declare.
1179         (frame_id_build): New function.
1180         * frame.c (get_frame_id): Update.  Use null_frame_id.
1181         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1182         frame_id_inner.
1183         (null_frame_id, frame_id_p): Define.
1184         (frame_id_eq, frame_id_inner): Define.
1185         (frame_id_build): New function.
1186         * varobj.c (varobj_create): Update.
1187         (varobj_update): Update.
1188         * valops.c (value_assign): Update.
1189         (new_root_variable): Update.
1190         * infrun.c (save_inferior_status): Update.
1191         * breakpoint.c (watch_command_1): Update.
1192
1193 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1194
1195         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1196         (SNAP2): Likewise.
1197
1198 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1199
1200         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1201         patch.
1202
1203         * PROBLEMS: Mention PR gdb/725.
1204
1205 2002-12-03  Andreas Schwab  <schwab@suse.de>
1206
1207         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1208
1209 2002-12-02  Adam Fedor  <fedor@gnu.org>
1210             Klee Dienes  <kdienes@apple.com>
1211
1212         * objc-lang.c (objc_printstr): Add width arg to match
1213         printstr prototype.
1214         (compare_selectors): Add 'const' to arg types.
1215         (compare_classes): Likewise.
1216         (find_imps): Cast msym pointer to avoid compiler warning.
1217         (print_object_command): Validate the address before
1218         passing it to the print routine.
1219         (find_objc_msgcall_submethod): Change function argument to
1220         return an int.
1221         * objc-lang.h: Add 'extern' to all function declarations.
1222         (value_nsstring): Add declaration.
1223
1224 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1225
1226         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1227         Fixes a build failure on HP/UX.
1228
1229         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1230         failure on HP/UX. 
1231         (hpread_has_name): Advance declaration to avoid a compilation warning.
1232         (pst_syms_count): Add missing variable type. By change, the compiler
1233         was defaulting to int, which seems a good choice. Fixes a compilation
1234         warning.
1235         (pst_syms_size): Likewise.
1236  
1237 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1238
1239         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1240         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1241         later to set the proper gdbarch methods depending on the osabi.
1242         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1243
1244 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1245
1246         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1247         * osabi.c (gdb_osabi_name): Add strings images for the two new
1248         enum values.
1249         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1250
1251 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1252
1253         * MAINTAINERS (Java): Global maintainers are responible for Java.
1254         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1255         part Java maintainers.
1256
1257 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1258
1259         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1260         Fixes a compilation failure on AiX.
1261
1262 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1263
1264         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1265         why aix-thread.o is not listed.
1266
1267 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1268
1269         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1270         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1271         * gdbarch.h, gdbarch.c: Re-generate.
1272         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1273         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1274         * config/pa/tm-hppa.h, frame.h: Update.
1275         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1276         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1277         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1278         * cris-tdep.c, alpha-tdep.c: Update.
1279         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1280         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1281         (get_prev_frame): Ditto.
1282
1283 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1284
1285         * exec.c (xfer_memory): Replace boolean with int.
1286         * p-exp.y: Use 0 instead of false.
1287         * corelow.c (gdb_check_format): Change return type to int from
1288         boolean.
1289         * utils.c: Don't include <curses.h> or <term.h> first.
1290
1291 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1292
1293         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1294         (m68hc11_register_byte): Remove.
1295         (m68hc11_gdbarch_init): Don't set the above.
1296
1297 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1298
1299         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1300         by calling get_selected_frame.
1301         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1302         set_current_frame, create_new_frame, select_frame and
1303         get_current_frame.
1304         * remote-e7000.c (e7000_start_remote): Ditto.
1305         * remote-mips.c (common_open): Ditto
1306         * remote-rdp.c (remote_rdp_open): Ditto.
1307
1308 2002-11-29  Andreas Schwab  <schwab@suse.de>
1309
1310         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1311         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1312         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1313         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1314         read_memory_unsigned_integer instead of read_memory_integer when
1315         dealing with addresses and instruction opcodes.
1316         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1317         (m68k_linux_frame_saved_pc): Likewise.
1318
1319 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1320
1321         * stack.c (selected_frame, select_frame): Move from here ...
1322         * frame.c (selected_frame, select_frame): ... to here.  Include
1323         "language.h".
1324         * Makefile.in (frame.o): Update dependencies.
1325         * frame.c (get_selected_frame): New function.
1326         * frame.h (get_selected_frame): Declare.
1327         (deprecated_selected_frame): Rename selected_frame.
1328         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1329         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1330         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1331         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1332         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1333         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1334         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1335         * z8k-tdep.c, cli/cli-cmds.c: Update.
1336         
1337 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1338
1339         * frame.h (get_selected_block): Add comments.
1340
1341 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1342
1343         * frame.c (pc_notcurrent): New function.
1344         (find_frame_sal): New function.
1345         * frame.h (find_frame_sal): Declare.
1346         (struct symtab_and_line): Add opaque declaration.
1347         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1348         find_pc_line.
1349         (frame_info): Ditto.
1350         * ada-lang.c (find_printable_frame): Ditto.
1351
1352 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1353
1354         * configure.in: Check that the pthdebug library is recent enough
1355         before enabling thread support on native AiX.
1356         * configure: Regenerate.
1357
1358         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1359         from the list of object files as it is now appended by configure
1360         if thread support is enabled.
1361         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1362         if thread support is enabled.
1363
1364 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1365
1366         * stack.c (get_selected_block): In-line get_current_block.
1367         * frame.h (get_current_block): Delete declaration.
1368         * blockframe.c (get_current_block): Delete function.
1369
1370 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1371
1372         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1373         USE_GENERIC_DUMMY_FRAMES.
1374         * gdbarch.h, gdbarch.c: Regenerate.
1375         * valops.c, frame.c: Update.
1376         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1377         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1378         * config/pa/tm-hppa.h, blockframe.c: Update.
1379         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1380         * m68k-tdep.c, alpha-tdep.c: Ditto.
1381
1382         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1383         * mips-tdep.c: Ditto.
1384
1385 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1386
1387         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1388         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1389         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1390         * gdbarch.c, gdbarch.h: Re-generate.
1391         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1392         (CALL_DUMMY_LOCATION): Delete macro definition.
1393         (PC_IN_CALL_DUMMY): Delete macro definitions.
1394         
1395         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1396         default is already generic_pc_in_call_dummy.
1397         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1398         * v850-tdep.c (v850_gdbarch_init): Ditto.
1399         * sh-tdep.c (sh_gdbarch_init): Ditto.
1400         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1401         * mips-tdep.c (mips_gdbarch_init): Ditto.
1402         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1403         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1404         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1405         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1406         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1407         * avr-tdep.c (avr_gdbarch_init): Ditto.
1408         
1409         * arm-tdep.c (arm_gdbarch_init): Do not set
1410         use_generic_dummy_frames, default is already 1.
1411         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1412         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1413         * v850-tdep.c (v850_gdbarch_init): Ditto.
1414         * sh-tdep.c (sh_gdbarch_init): Ditto.
1415         * s390-tdep.c (s390_gdbarch_init): Ditto.
1416         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1417         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1418         * mips-tdep.c (mips_gdbarch_init): Ditto.
1419         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1420         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1421         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1422         * i386-tdep.c (i386_gdbarch_init): Ditto.
1423         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1424         * frv-tdep.c (frv_gdbarch_init): Ditto.
1425         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1426         * cris-tdep.c (cris_gdbarch_init): Ditto.
1427         * avr-tdep.c (avr_gdbarch_init): Ditto.
1428
1429         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1430         call_dummy_location, default is already AT_ENTRY_POINT.
1431         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1432         * v850-tdep.c (v850_gdbarch_init): Ditto.
1433         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1434         * sh-tdep.c (sh_gdbarch_init): Ditto.
1435         * s390-tdep.c (s390_gdbarch_init): Ditto.
1436         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1437         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1438         * mips-tdep.c (mips_gdbarch_init): Ditto.
1439         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1440         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1441         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1442         * i386-tdep.c (i386_gdbarch_init): Ditto.
1443         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1444         * frv-tdep.c (frv_gdbarch_init): Ditto.
1445         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1446         * cris-tdep.c (cris_gdbarch_init): Ditto.
1447         * avr-tdep.c (avr_gdbarch_init): Ditto.
1448         * arm-tdep.c (arm_gdbarch_init): Ditto.
1449         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1450
1451 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1452
1453         * frame.h: Update comments on set_current_frame, create_new_frame,
1454         flush_cached_frames, reinit_frame_cache, select_frame and
1455         selected_frame.
1456         
1457 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1458
1459         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1460         deprecated pc_in_call_dummy function.
1461         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1462         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1463         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1464         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1465         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1466
1467 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1468
1469         * Makefile.in: Remove Tix dependencies.
1470         * acinclude.m4: Ditto.
1471         * aclocal.m4: Ditto.
1472         * configure.in: Ditto.
1473         * configure: Regenerated.
1474         
1475 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1476
1477         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1478         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1479         * gdbarch.c: Re-generate.
1480         
1481 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1482
1483         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1484         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1485         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1486         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1487         pc_in_call_dummy_at_entry_point.
1488         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1489         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1490         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1491         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1492         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1493         pc_in_call_dummy_on_stack.
1494         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1495         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1496         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1497         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1498         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1499         
1500 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1501
1502         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1503         pc_in_call_dummy_before_text_end
1504         (deprecated_pc_in_call_dummy_after_text_end): Rename
1505         pc_in_call_dummy_after_text_end.
1506         (deprecated_pc_in_call_dummy_on_stack): Rename
1507         pc_in_call_dummy_on_stack.
1508         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1509         pc_in_call_dummy_at_entry_point.
1510         * m68k-tdep.c (m68k_gdbarch_init): Update.
1511         * s390-tdep.c (s390_gdbarch_init): Update.
1512         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1513         * vax-tdep.c (vax_gdbarch_init): Update.
1514         * sparc-tdep.c (sparc_gdbarch_init): Update.
1515         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1516         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1517         * i386-tdep.c (i386_gdbarch_init): Update.
1518         * frv-tdep.c (frv_gdbarch_init): Update.
1519         * cris-tdep.c (cris_gdbarch_init): Update.
1520         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1521         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1522         (deprecated_pc_in_call_dummy_after_text_end)
1523         (deprecated_pc_in_call_dummy_on_stack)
1524         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1525         * alpha-tdep.c (alpha_gdbarch_init): Update.
1526
1527 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1528
1529         * acconfig.h (HAVE_PREAD64): Add.
1530         * configure.in: Check for pread64.
1531         * config.in: Regenerated.
1532         * configure: Regenerated.
1533         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1534         * linux-proc.c (linux_proc_xfer_memory): New function.
1535         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1536
1537 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1538
1539         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1540         pdi's with no name.
1541
1542 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1543
1544         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1545         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1546
1547 2002-11-25  Jim Blandy  <jimb@redhat.com>
1548
1549         * symfile.c (init_objfile_sect_indices): New function.
1550         (default_symfile_offsets): Move the section-index-initializing
1551         stuff into init_objfile_sect_indices, and call that.
1552
1553         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1554         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1555
1556         * symfile.c (syms_from_objfile): Adjust indentation.
1557
1558         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1559         || info_verbose isn't true.
1560
1561 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1562
1563         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1564         default to get_frame_base.
1565         * gdbarch.h, gdbarch.c: Regenerate.
1566         * arch-utils.c (default_frame_address): Delete function.
1567         * arch-utils.h (default_frame_address): Delete declaration
1568
1569 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1570
1571         * varobj.c (find_frame_addr_in_frame_chain):
1572         Use get_frame_base instead of FRAME_FP,
1573         obvious fix.
1574
1575 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1576
1577         * frame.h (FRAME_FP): Delete macro.
1578         (get_frame_base): New function declaration.
1579         * frame.c (get_frame_base): New function.
1580         (get_frame_id): Use ->frame.
1581         (frame_find_by_id): Rewrite to use get_frame_id.
1582         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1583         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1584         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1585         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1586         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1587         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1588         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1589
1590 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1591
1592         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1593
1594 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1595
1596         * frame.c (set_unwind_by_pc): Revert change below, use
1597         PC_IN_CALL_DUMMY.
1598         (get_prev_frame): Ditto.
1599
1600 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1601
1602         * dummy-frame.c (pc_in_dummy_frame): New function.
1603         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1604         (find_dummy_frame): Update comment.
1605         (generic_pop_current_frame): Use get_frame_type.
1606         * dummy-frame.h (pc_in_dummy_frame): Declare.
1607         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1608         (create_new_frame): Use pc_in_dummy_frame.
1609         (get_prev_frame): Use pc_in_dummy_frame.
1610         (frame_saved_regs_register_unwind): Use get_prev_frame.
1611         (deprecated_generic_get_saved_register): Use get_prev_frame.
1612
1613 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1614
1615         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1616         from here ...
1617         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1618         (varobj_create): Note that frame ID should be used.
1619         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1620
1621 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1622
1623         * breakpoint.c: Include "gdb_assert.h".
1624         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1625         not being used.
1626         * Makefile.in (breakpoint.o): Update dependencies.
1627         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1628         deprecated_frame_in_dummy.
1629         * stack.c (print_frame_info_base): Ditto.
1630         (frame_info): Ditto.
1631         (print_frame_info_base): Ditto.  Delete dead code.
1632         
1633 2002-11-23  Andreas Schwab  <schwab@suse.de>
1634
1635         * Makefile.in (m68k_tdep_h): Define.
1636         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1637         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1638         * m68k-tdep.c: Move register number enum ...
1639         * m68k-tdep.h: ... to this new file and rename the constants from
1640         E_* to M68K_*.  All uses changed.
1641         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1642         * abug-rom.c: Include "m68k-tdep.h".  Use
1643         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1644         * cpu32bug-rom.c: Likewise.
1645         * dbug-rom.c: Likewise.
1646         * m68k-tdep.c: Likewise.
1647         * m68klinux-nat.c: Likewise.
1648         * remote-est.c: Likewise.
1649         * rom68k-rom.c: Likewise.
1650         * config/m68k/tm-linux.h: Likewise.
1651
1652 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1653
1654         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1655         dummy frame initialization code.
1656         * mips-tdep.c (mips_gdbarch_init): Ditto.
1657
1658 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1659
1660         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1661         attach will hang.
1662
1663 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1664
1665         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1666         to default_frame_address.
1667         * gdbarch.h, gdbarch.c: Re-generate.
1668
1669         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1670         or frame_locals_address to default_frame_address.
1671         * m68k-tdep.c (m68k_gdbarch_init): Update.
1672         * i386-tdep.c (i386_gdbarch_init): Update.
1673         * frv-tdep.c (frv_gdbarch_init): Update.
1674         * sh-tdep.c (sh_gdbarch_init): Update.
1675         * v850-tdep.c (v850_gdbarch_init): Update.
1676         * sparc-tdep.c (sparc_gdbarch_init): Update.
1677         * mips-tdep.c (mips_gdbarch_init): Update.
1678         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1679         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1680         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1681
1682         * cris-tdep.c (cris_frame_args_address): Delete function.
1683         (cris_frame_locals_address): Delete function.
1684         (cris_gdbarch_init): Do not set frame_args_address or
1685         frame_locals_address.
1686
1687 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1688
1689         * thread-db.c (thread_db_load): Tell the user what's going on
1690         if dlopen fails on libthread_db.
1691
1692 2002-11-23  Andreas Schwab  <schwab@suse.de>
1693
1694         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1695         invariant return values.
1696
1697 2002-11-22  Andreas Schwab  <schwab@suse.de>
1698
1699         * valops.c (value_slice): Move declaration of `offset' to avoid
1700         warning.
1701
1702 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1703
1704         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1705         (struct so_stuff): Add end_addr field.
1706         (register_loaded_dll): Calculate and store end address of loaded dll.
1707         (solib_address): New function.
1708         (child_solib_loaded_library_pathname): Pass carefully constructed
1709         section info to safe_symbol_file_add rather than ignoring it.
1710         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1711         DLL is loaded.
1712         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1713         (child_create_inferior): Fix a compiler warning.
1714         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1715         (solib_address): Declare new function.
1716
1717 2002-11-22  Andreas Schwab  <schwab@suse.de>
1718
1719         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1720         and FPS registers.
1721
1722 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1723
1724         * maint.c (_initialize_maint_cmds): Fix typo.  From
1725         Francesco Potorti` <pot@gnu.org>.
1726
1727 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1728
1729         * mips-tdep.c (mips_dump_tdep): Delete references to
1730         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1731         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1732         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1733         * printcmd.c (build_address_symbolic): Delete calls to
1734         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1735         (address_info): Ditto.
1736         Fix PR gdb/773.
1737         
1738 2002-11-19  Klee Dienes  <kdienes@apple.com>
1739             Adam Fedor  <fedor@gnu.org>
1740
1741         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1742         the ability to explicitly specify the quote characters and word
1743         break characters; if NULL is specified for either, use the old
1744         behavior of using the characters used by the completer.
1745         (skip_chars): New function.  Convenience wrapper around
1746         skip_quoted_chars to provide the original skip_chars behavior.
1747         * completer.h (skip_quoted_chars): Add prototype.
1748
1749 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1750
1751         Problems reported by Paul Eggert.
1752         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1753
1754 2002-11-19  Andreas Schwab  <schwab@suse.de>
1755
1756         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1757         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1758         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1759         (m68k_linux_frame_saved_pc): Move to ...
1760         * m68klinux-tdep.c: ... here.  New file.
1761         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1762         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1763
1764 2002-11-19  Adam Fedor  <fedor@gnu.org>
1765
1766         * objc-exp.y: Revert to old skip_quoted usage.
1767
1768 2002-11-19  Adam Fedor  <fedor@gnu.org>
1769
1770         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1771         (objc_lang_h): Define.
1772         (YYFILES): Add objc-exp.tab.c.
1773         (local-maintainer-clean): Remove objc-exp.tab.c.
1774         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1775         
1776 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1777
1778         * p-exp.y (typecast rule): Add automatic dereference of
1779         pascal classes if needed.
1780         (THIS): Set current_type.
1781         Automatically dereference pascal classes. 
1782         (typebase rule): Add ^typebase recognition.
1783
1784 2002-11-18  Adam Fedor  <fedor@gnu.org>
1785
1786         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1787         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1788         (op_name): Handle OP_OBJC_SELF.
1789         * Makefile.in (expprint.o): Add additional depends.
1790
1791 2002-11-18  Adam Fedor  <fedor@gnu.org>
1792
1793         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1794         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1795         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1796         * objc-exp.y: Likewise. 
1797
1798 2002-11-18  Adam Fedor  <fedor@gnu.org>
1799
1800         * gdb/parser-defs.h: (struct objc_class_str): New structure
1801         for parsing ObjC classes.
1802
1803 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1804
1805         * stack.c (frame_relative_level): Copy function from here ...
1806         * frame.c (frame_relative_level): ...to here.
1807
1808 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1809
1810         * frame.h (enum frame_type): Define.
1811         (get_frame_type): Declare.
1812         (struct frame_info): Add field `type'.  Delete field
1813         signal_handler_caller.
1814         (deprecated_set_frame_signal_handler_caller): Declare.
1815         * frame.c (get_frame_type): New function.
1816         (deprecated_set_frame_type): New function.
1817         (create_new_frame): Set the frame's type.
1818         (get_prev_frame): Similar.
1819         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1820         * s390-tdep.c: Ditto.
1821         * m68klinux-nat.c: Ditto.
1822         * ns32k-tdep.c: Ditto.
1823         * x86-64-linux-tdep.c: Ditto.
1824         * vax-tdep.c: Ditto.
1825         * rs6000-tdep.c: Ditto.
1826         * ppc-linux-tdep.c: Ditto.
1827         * i386-interix-tdep.c: Ditto.
1828         * mips-tdep.c: Ditto.
1829         * m68k-tdep.c: Ditto.
1830         * hppa-tdep.c: Ditto.
1831         * ia64-tdep.c: Ditto.
1832         * cris-tdep.c: Ditto.
1833         * arm-tdep.c: Ditto.
1834         * alpha-tdep.c: Ditto.
1835         * i386-tdep.c: Ditto.
1836         * stack.c: Ditto.
1837         * ada-lang.c: Ditto.
1838         * blockframe.c: Update.
1839         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1840         deprecated_set_frame_type instead of signal_handler_caller.
1841         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1842         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1843         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1844
1845 2002-11-18   Klee Dienes  <kdienes@apple.com>
1846
1847         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1848
1849 2002-11-18  Klee Dienes  <kdienes@apple.com>
1850
1851         * buildsym.c (pop_context): Add comment.
1852         
1853 2002-11-18  Klee Dienes  <kdienes@apple.com>
1854
1855         * buildsym.h (pop_context): Convert to function, defined in
1856         buildsym.c.
1857         * buildsym.c: Include gdb_assert.h.
1858         (pop_context): Implement as C function.  Add check for stack
1859         underflow.
1860         * dbxread.c (process_one_symbol): Complain and stop processing
1861         that symbol if we are already at the top of the context stack for
1862         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1863         when processing N_RBRAC.
1864
1865 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1866
1867         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1868         define.
1869         (struct target_waitstatus): Add opaque definition.
1870         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1871         * exec.c (init_exec_ops): Likewise.
1872         * fork-child.c (clone_and_follow_inferior): Remove.
1873         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1874         * inferior.h (clone_and_follow_inferior): Remove prototype.
1875         * infrun.c (follow_fork_mode_both): Remove.
1876         (follow_fork_mode_kind_names): Remove commented out "both".
1877         (follow_inferior_fork): Remove follow_fork_mode_both support.
1878         * inftarg.c (child_clone_and_follow_inferior): Remove.
1879         (child_post_follow_inferior_by_clone): Remove.
1880         (init_child_ops): Don't set to_clone_and_follow_inferior
1881         or to_post_follow_inferior_by_clone.
1882         * target.c (default_clone_and_follow_inferior): Remove.
1883         (cleanup_target): Don't set to_clone_and_follow_inferior
1884         or to_post_follow_inferior_by_clone.
1885         (find_default_clone_and_follow_inferior): Remove.
1886         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1887         (debug_to_clone_and_follow_inferior): Remove.
1888         (debug_to_post_follow_inferior_by_clone): Remove.
1889         (setup_target_debug): Don't set to_clone_and_follow_inferior
1890         or to_post_follow_inferior_by_clone.
1891         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1892         and to_post_follow_inferior_by_clone.
1893         (child_clone_and_follow_inferior): Remove prototype.
1894         (child_post_follow_inferior_by_clone): Remove prototype.
1895         (target_clone_and_follow_inferior): Remove macro.
1896         (target_post_follow_inferior_by_clone): Remove macro.
1897         (find_default_clone_and_follow_inferior): Remove prototype.
1898
1899 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1900
1901         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1902         inferior_has_vforked, and inferior_has_execd instead of
1903         target_has_forked, target_has_vforked, and target_has_execd.
1904         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1905         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1906         (CHILD_WAIT): Define.
1907         (child_wait): Add prototype.
1908         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1909         Add prototype.
1910         (hpux_has_vforked): Likewise, from child_has_vforked.
1911         (hpux_has_execd): Likewise, from child_has_execd.
1912         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1913         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1914         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1915         and hpux_has_syscall_event instead of the target hooks.
1916         * infrun.c (inferior_has_forked, inferior_has_vforked)
1917         (inferior_has_execd): New functions.
1918         * inftarg.c (not_same_real_pid): Remove.
1919         (child_wait): Remove references to not_same_real_pid,
1920         target_has_forked, target_has_vforked, target_has_execd,
1921         and target_has_syscall_event.
1922         (child_has_forked, child_has_vforked, child_has_execd)
1923         (child_has_syscall_event): Remove.
1924         (init_child_ops): Remove references to child_has_forked,
1925         child_has_vforked, child_has_execd, and child_has_syscall_event.
1926         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1927         (hpux_has_vforked): Likewise, from child_has_vforked.
1928         (hpux_has_execd): Likewise, from child_has_execd.
1929         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1930         * target.c (cleanup_target): Remove references to
1931         to_has_forked, to_has_vforked, to_has_execd, and
1932         to_has_syscall_event.
1933         (update_current_target): Likewise.
1934         (setup_target_debug): Likewise.
1935         (debug_to_has_forked): Remove.
1936         (debug_to_has_vforked): Remove.
1937         (debug_to_has_execd): Remove.
1938         (debug_to_has_syscall_event): Remove.
1939         * target.h (struct target_ops): Remove to_has_forked.
1940         to_has_vforked, to_has_execd, and to_has_syscall_event.
1941         (child_has_forked, child_has_vforked, child_has_execd)
1942         (child_has_syscall_event): Remove prototypes.
1943         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1944         prototypes.
1945         (target_has_forked, target_has_vforked, target_has_execd)
1946         (target_has_syscall_event): Remove macros.
1947
1948 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1949
1950         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1951         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1952         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1953         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1954         * target.c (cleanup_target): Remove reference to
1955         to_can_follow_vfork_prior_to_exec.
1956         (update_current_target): Likewise.
1957         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1958         (setup_target_debug): Remove reference to
1959         to_can_follow_vfork_prior_to_exec.
1960         * target.h (struct target_ops): Remove
1961         to_can_follow_vfork_prior_to_exec.
1962         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1963         (target_can_follow_vfork_prior_to_exec): Remove definition.
1964         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1965         define.
1966         * infrun.c (follow_vfork_when_exec): Remove.
1967         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1968         (follow_exec): Likewise.
1969         (handle_inferior_event): Likewise.
1970         (keep_going): Likewise.
1971
1972 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1973
1974         * frame.c (generic_unwind_get_saved_register): Make static.
1975         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1976         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1977         defaults to generic_unwind_get_saved_register.
1978         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1979         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1980         * frv-tdep.c (frv_gdbarch_init): Ditto.
1981         * i386-tdep.c (i386_gdbarch_init): Ditto.
1982         * s390-tdep.c (s390_gdbarch_init): Ditto.
1983         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1984         * v850-tdep.c (v850_gdbarch_init): Ditto.
1985         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1986         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1987         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1988
1989 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1990
1991         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1992         i386-tdep.c.
1993
1994 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1995
1996         * frame.h (sigtramp_saved_pc): Delete declaration.
1997         * blockframe.c (sigtramp_saved_pc): Delete function.
1998         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1999         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2000         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2001         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2002
2003 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2004
2005         * frame.c (frame_pc_unwind): New function.
2006         (frame_saved_regs_pc_unwind): New function.
2007         (frame_register_unwind): Pass unwind_cache instead of
2008         register_unwind_cache.
2009         (set_unwind_by_pc): Add unwind_pc parameter, set.
2010         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2011         (get_prev_frame): Ditto.
2012         * frame.h (frame_pc_unwind_ftype): Declare.
2013         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2014         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2015         (frame_pc_unwind): Declare.
2016         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2017         (struct dummy_frame): Add comment mentioning that values are for
2018         previous frame.
2019         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2020         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2021         (generic_file_frame_chain_valid): Ditto.
2022         * stack.c (frame_info): Ditto.
2023
2024 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2025
2026         * linespec.c (locate_first_half): New function.
2027         (decode_line_1): Move code into locate_first_half.
2028
2029 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2030
2031         * complaints.h: Add comment explaining how to eliminate a
2032         deprecated_complain call.
2033         * complaints.h: Fix spelling errors.
2034
2035 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2036
2037         * printcmd.c: Remove #include "disasm.h".
2038
2039 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2040
2041         * frame.h: Move the most relevant interface functions to the start
2042         of the file.
2043
2044 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2045
2046         * regcache.h (deprecated_registers): Rename registers.
2047         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2048         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2049         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2050         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2051         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2052         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2053         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2054         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2055         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2056         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2057         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2058         * v850ice.c: Update.
2059
2060 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2061
2062         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2063         NULL buffer.
2064
2065 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2066
2067         * regcache.h (deprecated_read_register_bytes): Rename
2068         read_register_bytes.
2069         (deprecated_write_register_bytes): Rename write_register_bytes.
2070         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2071         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2072         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2073         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2074         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2075         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2076         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2077         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2078         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2079         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2080         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2081         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2082         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2083         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2084
2085 2002-11-13  Jim Blandy  <jimb@redhat.com>
2086
2087         * findvar.c (read_var_value): Doc fix.
2088
2089 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2090
2091         * regcache.c (struct regcache): Replace passthough_p with
2092         readonly_p.
2093         (regcache_xmalloc): Initialize readonly_p.
2094         (build_regcache): Initialize readonly_p.
2095         (regcache_save): New function.
2096         (regcache_restore): New function.
2097         (regcache_cpy): Re-implement using regcache_save and
2098         regcache_restore.
2099         (regcache_raw_read): Update.
2100         (regcache_cooked_read): When a read-only cache, checked for cached
2101         pseudo register values.
2102         (regcache_raw_write): Assert that the cache is not read-only.
2103         Remove code handling a non-passthrough cache.
2104         * regcache.h (regcache_save): Declare.
2105         (regcache_restore): Declare.
2106
2107 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2108
2109         * regcache.c (struct regcache_descr): Add fields
2110         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2111         (init_legacy_regcache_descr): Compute the size of a cooked
2112         register cache and then assign that to sizeof_raw_registers.  Set
2113         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2114         (init_legacy_regcache_descr): Ditto.
2115
2116 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2117
2118         * regcache.c (register_buffer): Move to near start of file, update
2119         description.
2120         (regcache_raw_read): Use.
2121         (regcache_raw_write): Use.
2122         (struct regcache): Rename raw_registers to registers and
2123         raw_register_valid_p to register_valid_p.
2124         (regcache_xmalloc): Update.
2125         (regcache_xfree): Update.
2126         (register_buffer): Update.
2127         (regcache_cpy): Update.
2128         (regcache_cpy_no_passthrough): Update.
2129         (regcache_valid_p): Update.
2130         (deprecated_grub_regcache_for_registers): Update.
2131         (deprecated_grub_regcache_for_register_valid): Update.
2132         (set_register_cached): Update.
2133         (regcache_raw_write): Update.
2134
2135 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2136
2137         * p-exp.y (name_not_typename): Use copy_name to
2138         set current_type variable for fields of THIS.
2139
2140 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2141
2142         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2143         * monitor.c (init_base_monitor_ops): Likewise.
2144         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2145         * remote-array.c (init_array_ops): Likewise.
2146         * remote-e7000.c (init_e7000_ops): Likewise.
2147         * remote-es.c (init_es1800_ops): Likewise.
2148         (init_es1800_child_ops): Likewise.
2149         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2150         * remote-sim.c (init_gdbsim_ops): Likewise.
2151         * remote-st.c (init_st2000_ops): Likewise.
2152         * sol-thread.c (init_sol_core_ops): Likewise.
2153         (init_sol_thread_ops): Likewise.
2154         * v850ice.c (init_850ice_ops): Likewise.
2155         * win32-nat.c (init_child_ops): Likewise.
2156         * wince.c (init_child_ops): Likewise.
2157
2158 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2159
2160         * utils.c (gdb_realpath): Make rp a constant pointer.
2161
2162 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2163
2164         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2165         a constant buffer; cannonicalize_file_name(); realpath() with a
2166         pathconf() defined buffer, xstrdup().
2167
2168 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2169
2170         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2171         to hang2.C; hang3.c to hang3.C.
2172
2173 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2174
2175         * findvar.c (read_var_value): Reenable TLS code.
2176
2177 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2178             Jim Blandy  <jimb@redhat.com>
2179         
2180         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2181         * target.c (update_current_target): Add
2182         to_get_thread_local_address.
2183         * target.h (to_get_thread_local_address): Export.
2184         (target_get_thread_local_address): Define.
2185         (target_get_thread_local_address_p): Define.
2186         * thread-db.c: Include solib-svr4.h.
2187         (td_thr_tls_get_addr_p): Define.
2188         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2189         (thread_db_get_thread_local_address): New function.
2190         (init_thread_db_ops): Initialize to_get_thread_local_address.
2191         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2192         * configure: Regenerate.
2193         * config.in: Regenerate.
2194
2195 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2196
2197         * linespec.c (set_flags): New function.
2198         (decode_line_1): Move code into set_flags.
2199
2200 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2201
2202         * linespec.c (decode_line_1): Move chunks of code to separate
2203         functions.
2204         (initialize_defaults): New function.
2205         (decode_indirect): New function.
2206
2207 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2208
2209         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2210         instead of void_code_ptr.
2211         (sigtramp_saved_pc): Ditto.
2212
2213         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2214         i386_fp_regnum_p.
2215
2216 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2217
2218         * gdbtypes.h (struct main_type): Move artificial flag out of
2219         loc.  New member of ``struct field'' named static_kind.  Reduce
2220         overloaded meaning of bitsize.
2221         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2222         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2223         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2224
2225         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2226         new fields.
2227         (template_to_fixed_record_type, template_to_static_fixed_type)
2228         (to_record_with_fixed_variant_part): Likewise.
2229         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2230         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2231         * dwarfread.c (struct_type, enum_type): Likewise.
2232         * hpread.c (hpread_read_enum_type)
2233         (hpread_read_function_type, hpread_read_doc_function_type)
2234         (hpread_read_struct_type): Likewise.
2235         * mdebugread.c (parse_symbol): Likewise.
2236
2237 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2238
2239         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2240         * stack.c (print_frame_info_base): Update.
2241         (print_frame_info_base, frame_info): Update.
2242         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2243         (sparc_frame_saved_pc): Update.
2244         * ada-lang.c (find_printable_frame): Update.
2245         * breakpoint.c (deprecated_frame_in_dummy): Update.
2246         
2247 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2248
2249         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2250         defined.
2251         (regmap): Extend to cover all registers.
2252         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2253         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2254         definitions.
2255         (fetch_register, sore_register): Simplify.
2256         (old_fetch_inferior_registers, old_store_inferior_registers):
2257         Remove functions.
2258         (cannot_fetch_register, cannot_store_register): Change
2259         implementation to use regmap array to decide which registers
2260         cannot be fetched/stored.  This removes $orig_eax from the
2261         registers that cannot be fetched/stored.
2262         (fetch_inferior_registers): Call fetch_register directly instead
2263         of calling old_fetch_inferior_registers.
2264         (store_inferior_registers): Call store_register directly instead
2265         of calling old_store_inferior_registers.
2266         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2267         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2268         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2269
2270 2002-11-09  Klee Dienes  <kdienes@apple.com>
2271
2272         * i387-tdep.c (i387_supply_register): When called with NULL as a
2273         buffer, mark the register as not provided (to mirror the behavior
2274         of supply_register).
2275         (i387_supply_fxsave): Ditto.
2276         (i387_supply_fsave): Ditto (inherits the behavior from
2277         i387_supply_register).
2278
2279 2002-11-09  Klee Dienes  <kdienes@apple.com>
2280
2281         * blockframe.c (sigtramp_saved_pc): Use
2282         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2283         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2284         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2285         
2286 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2287
2288         * frame.c (get_prev_frame): Test prev_p to identify a previously
2289         unwound frame.  Initialize prev_p.
2290         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2291         comment.
2292
2293 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2294
2295         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2296         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2297         more comments.  Zap dead code.
2298
2299 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2300
2301         * infcmd.c (print_vector_info, print_float_info): Move code that
2302         checks whether the target has any registers and whether there is a
2303         selected frame up, such that it is also used if a target provides
2304         multi-arch definitions of these functions.
2305
2306 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2307
2308         * Makefile.in (DESTDIR): Define.
2309         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2310         prefix.
2311
2312         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2313         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2314
2315 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2316
2317         * i386-linux-tdep.c: Include "reggroups.h".
2318         (i386_linux_register_reggroup_p): New function.
2319         (i386_linux_init_abi): Set register_reggroup_p to
2320         i386_linux_register_reggroup_p.
2321         * i386-tdep.h (i386_register_reggroup_p): Declare.
2322         * i386-tdep.c: Include "reggroups.h".
2323         (i386_init_reggroups): New function.
2324         (i386_add_reggroups): New function.
2325         (i386_register_reggroup_p): New function.
2326         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2327         (_initialize_i386_tdep): Call i386_init_reggroups.
2328         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2329         specific reggroups.
2330
2331 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2332
2333         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2334         request that's available in *BSD.
2335
2336         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2337
2338         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2339         FDOFF_REGNUM.
2340
2341 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2342
2343         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2344         * dummy-frame.c (find_dummy_frame): Rename
2345         generic_find_dummy_frame, make static.  Return the dummy frame
2346         instead of the regcache.
2347         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2348         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2349         (dummy_frame_register_unwind): Rename
2350         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2351         * dummy-frame.h (dummy_frame_register_unwind): Rename
2352         generic_call_dummy_register_unwind.
2353
2354 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2355
2356         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2357         except the inclusion of "i386/tm-i386.h", to...
2358         * config/i386/nm-i386v42mp.h: ...here.
2359         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2360
2361 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2362
2363         * Makefile.in (frame.o): Update dependencies.
2364         * blockframe.c (current_frame, frame_obstack_alloc)
2365         (frame_saved_regs_zalloc, get_current_frame)
2366         (set_current_frame, create_new_frame)
2367         (set_unwind_by_pc, get_next_frame)
2368         (flush_cached_frames, reinit_frame_cache)
2369         (frame_saved_regs_register_unwind)
2370         (deprecated_generic_get_saved_register)
2371         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2372         (_initialize_blockframe): Move frame code from here...
2373         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2374         "annotate.h" and "dummy-frame.h".
2375         (_initialize_frame): New function.
2376
2377 2002-11-08  Jim Blandy  <jimb@redhat.com>
2378
2379         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2380         when we finish a function a context.
2381         * buildsym.h (outermost_context_p): New macro.
2382         (Bug analyzed by David Edelsohn.)
2383
2384 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2385
2386         * blockframe.c: Include "dummy-frame.h".
2387         (struct dummy_frame, dummy_frame_stack)
2388         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2389         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2390         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2391         (generic_save_call_dummy_addr, generic_pop_current_frame)
2392         (generic_pop_dummy_frame, generic_fix_call_dummy)
2393         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2394         dummy frame code from here...
2395         * dummy-frame.c: ...to here.  New file.
2396         * dummy-frame.h: New file.
2397         (generic_call_dummy_register_unwind): Declare.
2398         (generic_find_dummy_frame): Declare.
2399         * Makefile.in (SFILES): Add dummy-frame.c.
2400         (dummy-frame.o): Specify dependencies.
2401         (dummy_frame_h): Define.
2402         (COMMON_OBS): Add dummy-frame.o.
2403         (blockframe.o): Update dependencies.
2404
2405 2002-11-08  Jim Blandy  <jimb@redhat.com>
2406
2407         * dwarf2read.c (read_func_scope): Restore local_symbols and
2408         param_symbols after we finish the function context.  (Based on a
2409         patch from David Edelsohn.)
2410
2411 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2412
2413         * linespec.c (symbol_found): New function.
2414         (minsym_found): New function.
2415         (decode_line_1): Separate out some code into separate functions.
2416
2417 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2418
2419         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2420         the benefit of the interix target.
2421         * i386-tdep.h (i386_frameless_signal_p): Declare.
2422
2423 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2424
2425         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2426         declaration that snuck in from change below.
2427
2428 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2429
2430         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2431         all callers.
2432         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2433         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2434         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2435         (i386_mxcsr_regnum_p): new function.  Use instead of
2436         MXCSR_REGNUM_P.
2437         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2438         (i386_sse_regnum_p): Declare.
2439         (i386_mxcsr_regnum_p): Declare.
2440         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2441         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2442         (IS_FP_REGNUM): Update definition.
2443         (IS_FPU_CTRL_REGNUM): Update definition..
2444         (IS_SSE_REGNUM): Update definition..
2445         * i386v-nat.c (register_u_addr): Update.
2446         * go32-nat.c (fetch_register): Update.
2447         (store_register): Update.
2448
2449 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2450
2451         Preparation work to convert the hppa targets to multiarch partial.
2452
2453         * hppa-tdep.c: Add new functions replacing macro bodies from
2454         config/pa/tm-hppa.h. These function will be used to initialize
2455         the gdbarch structure. Import some comments from tm-hppa.h,
2456         and place them where appropriate, to avoid loosing them when
2457         we cleanup this file.
2458         (hppa_reg_struct_has_addr): New function.
2459         (hppa_inner_than): New function.
2460         (hppa_stack_align): New function.
2461         (hppa_pc_requires_run_before_use): New function.
2462         (hppa_instruction_nullified): New function.
2463         (hppa_register_byte): New function.
2464         (hppa_register_virtual_type): New function.
2465         (hppa_store_struct_return): New function.
2466         (hppa_cannot_store_register): New function.
2467         (hppa_frame_args_address): New function.
2468         (hppa_frame_locals_address): New function.
2469         (hppa_smash_text_address): New function.
2470         (hppa_coerce_float_to_double): New function. Requires the inclusion
2471         of "language.h".
2472
2473         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2474
2475         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2476         gdbarch-eligible macro to a call to the new associated function
2477         created in hppa-tdep.c.
2478         (INNER_THAN): Likewise.
2479         (STACK_ALIGN): Likewise.
2480         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2481         (INSTRUCTION_NULLIFIED): Likewise.
2482         (REGISTER_BYTE): Likewise.
2483         (REGISTER_VIRTUAL_TYPE): Likewise.
2484         (STORE_STRUCT_RETURN): Likewise.
2485         (CANNOT_STORE_REGISTER): Likewise.
2486         (FRAME_ARGS_ADDRESS): Likewise.
2487         (FRAME_LOCALS_ADDRESS): Likewise.
2488         (SMASH_TEXT_ADDRESS): Likewise.
2489         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2490         (ABOUT_TO_RETURN): Delete, as no longer used.
2491
2492 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2493
2494         * printcmd.c (disassemble_command): Remove obsolete function.
2495         (_initialize_printcmd): Do not create disassemble command here.
2496         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2497         disassemble command.
2498         (init_cli_cmds): Create disassemble command here instead.
2499
2500 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2501
2502         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2503
2504 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2505
2506         * regcache.h (regcache_cooked_read_using_offset_hack)
2507         (regcache_cooked_write_using_offset_hack): Delete declarations.
2508         (register_changed): Delete declaration.
2509         * regcache.c (regcache_cooked_read_using_offset_hack)
2510         (regcache_cooked_write_using_offset_hack): Delete functions.
2511         (cooked_xfer_using_offset_hack): Delete function.
2512         (register_changed): Delete function.
2513
2514 2002-11-07  Jim Blandy  <jimb@redhat.com>
2515
2516         * macroscope.c: #include "complaints.h".
2517         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2518         but not in the macro table.
2519         * Makefile.in (macroscope.o): Record dependency.
2520
2521 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2522
2523         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2524
2525 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2526
2527         * regcache.c (deprecated_registers_fetched): Update.
2528         * regcache.h (deprecated_registers_fetched): Rename
2529         registers_fetched.
2530         * remote-vxsparc.c (vx_read_register): Update.
2531         * remote-vxmips.c (vx_read_register): Update.
2532         * remote-vx68.c (vx_read_register): Update.
2533         * irix5-nat.c (fetch_core_registers): Update.
2534         * mipsm3-nat.c (fetch_inferior_registers): Update.
2535         * sun3-nat.c (fetch_inferior_registers): Update.
2536         * symm-nat.c (fetch_inferior_registers): Update.
2537         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2538         (fetch_core_registers): Update.
2539         (fetch_kcore_registers): Update.
2540         * mips-nat.c (fetch_inferior_registers): Update.
2541         * corelow.c (get_core_registers): Update.
2542         * a68v-nat.c (fetch_inferior_registers): Update.
2543
2544 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2545
2546         Put in place the framework necessary for multiarching the hppa targets.
2547         * hppa-tdep.c (hppa_gdbarch_init): New function.
2548         (hppa_dump_tdep): New function.
2549         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2550         tdep structure dumper.
2551         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2552         until the multi-arching conversion has partially been completed.
2553
2554 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2555
2556         * valops.c (value_assign): Merge lval_register case into
2557         lval_reg_frame_relative.  Use frame_register and
2558         regcache_cooked_write instead of get_saved_register and
2559         write_register_bytes.  After flushing the register cache, try to
2560         re-select the selected frame.
2561
2562 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2563
2564         * regcache.h (deprecated_register_valid): Rename register_valid.
2565         * regcache.c: Update.
2566         * ia64-aix-nat.c: Update.
2567         * i386gnu-nat.c: Update.
2568         * alpha-nat.c: Update.
2569         * sparc-nat.c: Update.
2570         * lynx-nat.c: Update.
2571         * remote-mips.c: Update.
2572
2573 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2574
2575         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2576         to end of file, to be more consistent with the pratice followed
2577         by other targets.
2578
2579 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2580
2581         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2582         (print_float_info): Print registers in float_reggroup.
2583         (print_vector_info): Print registers in vector_reggroup.
2584         (default_print_registers_info): When all, print registers in
2585         all_reggroup.  Otherwize, print registers in general_reggroup.
2586         (registers_info): Rewrite.  Add support for register groups.
2587         Eliminate a goto.
2588
2589 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2590
2591         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2592         ages.
2593         (symtab_symbol_info): Remove eons old ifdeffed out code.
2594         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2595         command.
2596
2597 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2598
2599         * c-exp.y: Add missing semi-colons.
2600         * f-exp.y: Add missing semi-colons.
2601         * m2-exp.y: Add missing semi-colons.
2602         * p-exp.y: Add missing semi-colons.
2603         Add empty action to start rule to avoid a type clash error when
2604         building with bison >= 1.50.
2605
2606 2002-11-06  Jim Blandy  <jimb@redhat.com>
2607
2608         * macrotab.h (struct macro_source_file): Doc fix.
2609
2610 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2611
2612         * varobj.c (child_exists, cplus_number_of_children): Change
2613         STREQ macro references to strcmp.
2614         (cplus_name_of_child): Change code to handle the fact that
2615         fields are not necessarily contiguous with regards to their 
2616         access control. This is a fix for PR gdb/792.
2617
2618 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2619
2620         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2621         * gdbarch.h, gdbarch.c: Regnerate.
2622         * frame.h (frame_register): Declare.
2623         * frame.c (frame_register): New function.
2624         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2625         GET_SAVED_REGISTER, otherwize call
2626         generic_unwind_get_saved_register.
2627         (frame_register_read): Use frame_register instead of
2628         get_saved_register.
2629
2630 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2631         
2632         From Jim Ingham  <jingham@apple.com>:
2633         * event-top.c (gdb_disable_readline): New function.
2634         (_initialize_event_loop): Move comment.
2635
2636 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2637
2638         * event-loop.c (start_event_loop): Add comment.
2639         Update copyright.
2640
2641 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2642
2643         * infcmd.c (default_print_registers_info): Do not call
2644         PRINT_REGISTER_HOOK.
2645
2646 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2647
2648         * sparc-tdep.c (sparc_print_register_hook): Make static.
2649         (sparc_print_registers_info): New function.
2650         (sparc_do_registers_info): New function.
2651         (sparclet_print_registers_info): New function.
2652         (sparclet_do_registers_info): New function.
2653         (do_sparc_print_registers_info): New function.
2654         (sparc_print_registers): New static function, clone of infcmd.c's
2655         default_print_registers_info.
2656         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2657         (sparclet_do_registers_info): Declare.
2658         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2659         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2660         Re-define.
2661         (sparc_do_registers_info): Declare.
2662         (PRINT_REGISTER_HOOK): Delete macro.
2663         (sparc_print_register_hook): Delete declaration.
2664
2665 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2666
2667         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2668         functions.
2669         (lookup_symbol_aux_local): New function.
2670         (lookup_symbol_aux_symtabs): New function.
2671         (lookup_symbol_aux_psymtabs): New function.
2672
2673 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2674
2675         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2676         previous values of 'objfile' and 'block'.
2677
2678 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2679
2680         * values.c (value_change_enclosing_type): Set 
2681         enclosing_type field correctly also for the case where 
2682         more memory needs to be allocated.
2683
2684 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2685
2686         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2687         of puts_filtered.
2688
2689         * i387-tdep.c (i387_print_float_info): Replace calls to
2690         register_read and deprecated_read_register_gen with calls to
2691         frame_register_read, and make the necessary adjustments to the
2692         surrounding code.
2693
2694 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2695
2696         * gdbarch.sh (register_reggroup_p): Allow default value.
2697         * gdbarch.h, gdbarch.c: Regenerate.
2698
2699 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2700
2701         * regcache.h: Add coment indicating replacements for deprecated
2702         functions.
2703
2704 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2705
2706         * reggroups.h, reggroups.c: New files.
2707         * regcache.c: Include "reggroups.h".
2708         (enum regcache_dump_what): Add `regcache_dump_groups'.
2709         (regcache_dump): Contract size of the "Type" column.  When
2710         specified, dump the register's groups.
2711         (maintenance_print_register_groups): New function.
2712         (_initialize_regcache): Add command `maint print register-groups'.
2713         * Makefile.in (COMMON_OBS): Add reggroups.o
2714         (SFILES): Add reggroups.c.
2715         (reggroups_h): Define.
2716         (regcache.o, gdbarch.o): Update dependencies.
2717         (reggroups.o): Specify dependencies.
2718         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2719         Add opaque declaration for `struct reggroup' in generated .h file.
2720         Include "reggroups.h" in generated .c file.
2721         gdbarch.h, gdbarch.c: Re-generate.
2722
2723 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2724
2725         * regcache.h (deprecated_read_register_gen): Rename
2726         read_register_gen.
2727         (deprecated_write_register_gen): Rename write_register_gen.
2728         * i387-tdep.c: Update.
2729         * x86-64-linux-nat.c: Update
2730         * wince.c: Update.
2731         * thread-db.c: Update.
2732         * win32-nat.c: Update.
2733         * mips-tdep.c: Update.
2734         * d10v-tdep.c: Update.
2735         * cris-tdep.c: Update.
2736         * remote-sim.c: Update.
2737         * remote-rdi.c: Update.
2738         * remote-rdp.c: Update.
2739         * frame.c: Update.
2740         * target.c: Update.
2741         * blockframe.c: Update.
2742         * x86-64-tdep.c: Update.
2743         * xstormy16-tdep.c: Update.
2744         * sh-tdep.c: Update.
2745         * s390-tdep.c: Update.
2746         * rs6000-tdep.c: Update.
2747         * sparc-tdep.c: Update.
2748         * i386-tdep.c: Update.
2749         * dwarf2cfi.c: Update.
2750         * regcache.c: Update.
2751
2752 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2753
2754         New interix-specific files:
2755         * config/i386/nm-interix.h: New file.
2756         * config/i386/interix.mh: New file.
2757         * config/i386/interix.mt: New file.
2758         * i386-interix-nat.c: New file.
2759         * i386-interix-tdep.c: New file.
2760
2761 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2762
2763         * frame.h (deprecated_generic_get_saved_register): Rename
2764         generic_get_saved_register.
2765         * blockframe.c (deprecated_generic_get_saved_register): Update.
2766         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2767         (xstormy16_frame_saved_register): Update.
2768         * sh-tdep.c (sh_gdbarch_init): Update.
2769         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2770         * ia64-tdep.c (ia64_get_saved_register): Update.
2771         * cris-tdep.c (cris_gdbarch_init): Update.
2772         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2773         * arm-tdep.c (arm_gdbarch_init): Update.
2774
2775 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2776
2777         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2778
2779 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2780
2781         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2782         trampolines in sigaction.
2783
2784 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2785
2786         * h8300-tdep.c: Include "gdb_assert.h".
2787         (h8300_print_register): Add gdbarch, file and frame parameters.
2788         Use frame_read_unsigned_register to read the register's value.
2789         Use fprintf_filtered to display output.
2790         (h8300_print_registers_info): Replace h8300_do_registers_info.
2791         (h8300_gdbarch_init): Set print_registers_info.
2792
2793 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2794
2795         * frame.c (frame_read_unsigned_register): New function.
2796         (frame_read_signed_register): New function.
2797         * frame.h (frame_read_unsigned_register): Declare.
2798         (frame_read_signed_register): Declare.
2799
2800 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2801
2802         * h8500-tdep.c (h8500_print_registers_info): New static function,
2803         clone of infcmd.c's default_print_registers_info.
2804         (h8500_do_registers_info): New funtion.
2805         (h8500_print_register_hook): Rename print_register_hook, make
2806         static.
2807
2808         * config/h8500/tm-h8500.h: Update copyright.
2809         (DEPRECATED_DO_REGISTERS_INFO): Define.
2810         (h8500_do_registers_info: Declare.
2811         (PRINT_REGISTER_HOOK): Delete macro.
2812         (print_register_hook): Delete function.
2813
2814 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2815
2816         * z8k-tdep.c (z8k_print_register_hook): Make static.
2817         (z8k_print_registers_info): New static function, clone of
2818         infcmd.c's default_print_registers_info.
2819         (z8k_do_registers_info): New function.  Wrap
2820         z8k_print_registers_info.
2821         * config/z8k/tm-z8k.h: Update copyright.
2822         (PRINT_REGISTER_HOOK): Delete macro.
2823         (z8k_print_register_hook): Delete declaration.
2824         (DEPRECATED_DO_REGISTERS_INFO): Define.
2825         (z8k_do_registers_info): Declare.
2826
2827 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2828
2829         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2830         as this is already provided by value.h, and was actually causing
2831         a compilation error because of a conflict in parameter type
2832         declaration due to a missing const keyword.
2833         (low_text_segment_addres): Fix a compilation warning.
2834
2835 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2836
2837         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2838         registers without a name.
2839         (mips_linux_cannot_store_register): Don't store registers without
2840         a name.
2841
2842 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2843
2844         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2845         out.)
2846         * symtab.h: Delete prototype for find_addr_symbol.
2847
2848 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2849
2850         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2851         DO_REGISTERS_INFO.
2852         gdbarch.h, gdbarch.c: Re-generate.
2853         * infcmd.c (default_print_registers_info): Update reference.
2854         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2855         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2856         * sh-tdep.c (sh_gdbarch_init): Ditto.
2857         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2858         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2859
2860 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2861
2862         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2863         cfi_init_extra_frame_info.
2864         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2865         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2866
2867         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2868         target where necessary.  Add more comments and remove the ones
2869         that don't provide any useful information.
2870
2871         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2872         deprecated_read_register_dummy with
2873         frame_unwind_unsigned_register.
2874
2875         * i386-tdep.c (i386_extract_struct_value_address): Use
2876         regcache_raw_read_unsigned instead of
2877         regcache_cooked_read_unsigned since we know that the register
2878         we're reading isn't a pseudo register.  Rename variable 'val' into
2879         the more descriptive 'addr'.
2880
2881         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2882         (x86_64_push_return_address): Add comment.
2883         (x86_64_pop_frame): Make static.
2884         (examine_argument): Clarify comment.
2885         (x86_64_skip_prologue): Make prolog_expact variable static.
2886
2887         * dwarf2cfi.c: Fix some formatting problems.
2888         (context_cpy, read_encoded_pointer): Clarify comments.
2889
2890         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2891         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2892         i386 target back into x86_64_gdbarch_init.  Add some comments and
2893         remove meaningless ones.
2894
2895 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2896
2897         * complaints.h (struct deprecated_complaint): Rename `struct
2898         complaint'.
2899         * complaints.c (complain): Update.
2900         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2901         incorrect comment indicating that "symfile.h" was being included
2902         for the `struct complaint' definition.
2903         * remote-vx.c: Update.
2904         * objc-lang.c: Update.
2905         * xcoffread.c: Update.
2906         * hpread.c: Update.
2907         * mdebugread.c: Update.
2908         * stabsread.c: Update.
2909         * dwarf2read.c: Update.
2910         * dwarfread.c: Update.
2911         * elfread.c: Update.
2912         * coffread.c: Update.
2913         * stabsread.h: Update.
2914         * dbxread.c: Update.
2915         * buildsym.c: Update.
2916         * gdbtypes.c: Update.
2917         * macrotab.c: Update.
2918
2919 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2920
2921         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2922         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2923         (x86_64_init_abi): ...new function.
2924
2925         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2926         * i386v-nat.c: Include "i386-tdep.h".
2927
2928 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2929
2930         * gdbtypes.c (address_space_name_to_int): Update.
2931         (address_space_int_to_name): Update.
2932         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2933         multi-arch predicate.
2934         (address_class_name_to_type_flags): Ditto.
2935         * gdbarch.h, gdbarch.c: Re-generate.
2936         
2937         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2938
2939 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2940
2941         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2942
2943 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2944
2945         * symtab.h (INIT_SAL): Delete macro.
2946         (init_sal): Export.
2947         * symtab.c (init_sal): New function.
2948
2949         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2950         to init_sal function call.
2951         (find_sal_from_funcs_and_line): Ditto.
2952         (all_sals_for_line): Ditto. 
2953         * breakpoint.c (create_internal_breakpoint): Ditto. 
2954         (create_fork_vfork_event_catchpoint): Ditto. 
2955         (create_exec_event_catchpoint): Ditto. 
2956         (parse_breakpoint_sals): Ditto. 
2957         (watch_command_1): Ditto. 
2958         (handle_gnu_4_16_catch_command): Ditto.
2959         (clear_command): Ditto. 
2960         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2961         * infcmd.c (run_stack_dummy): Ditto. 
2962         * infrun.c (process_event_stop_test): Ditto.
2963         (check_sigtramp2): Ditto.
2964         (step_over_function): Ditto. 
2965         * linespec.c (decode_line_2): Ditto. 
2966         (decode_line_1): Ditto. 
2967         * source.c (line_info): Ditto. 
2968         * symtab.c (find_pc_sect_line): Ditto.
2969
2970 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2971
2972         * dwarf2cfi.c (struct context)
2973         (struct context_reg): Moved to dwarf2cfi.h
2974         (context_alloc, frame_state_alloc, context_cpy):
2975         Made extern instead of static, removed prototypes.
2976         * dwarf2cfi.h (struct context)
2977         (struct context_reg): New, moved from dwarf2cfi.c
2978         (context_alloc, frame_state_alloc, context_cpy):
2979         New prototypes.
2980         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2981         Changed from static to extern.
2982         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2983         (LINUX_SIGCONTEXT_FP_OFFSET)
2984         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2985         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2986         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2987         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2988         set_gdbarch_*() calls now use x86-64 specific functions 
2989         instead of DWARF2 CFI ones.
2990         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2991         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2992         (x86_64_init_extra_frame_info): New prototypes.
2993         
2994 2002-10-23  David Carlton  <carlton@math.stanford.edu>
2995
2996         * linespec.c: #include "parser-defs.h".
2997         Delete prototype for find_template_name_end.
2998         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2999
3000 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3001
3002         * NEWS: add recent mi fixes.
3003         * varobj.c (struct varobj): Add new "updated" flag.
3004         (new_variable): Default "updated" flag to 0.
3005         (varobj_set_value): Set "updated" flag to 1 if value
3006         changes.
3007         (varobj_update): Check varobj "updated" flag before
3008         comparing old and refreshed values.  Fix for
3009         PR gdb/702.
3010
3011 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3012
3013         * parse.c (parse_exp_1): Use BLOCK_START.
3014         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3015         SYMBOL_BLOCK_VALUE.
3016         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3017
3018 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3019
3020         * symtab.c: Delete cplusplus_hint.
3021         Delete prototype for find_template_name_end.
3022
3023 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3024
3025         * symtab.h: Update comment.
3026
3027 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3028
3029         * printcmd.c (address_info): Restore quotes in output.
3030         * valops.c (value_of_local): Restore quotes in error message.
3031
3032 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3033
3034         * symtab.c (symbol_demangled_name): New function.
3035         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3036         turning most of it into a function.
3037         (symbol_demangled_name): Export.
3038
3039 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3040
3041         * valops.c (value_of_local): Restore quotes in error message.
3042
3043 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3044
3045         * symtab.c (symbol_init_language_specific): New function.
3046         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3047         turning most of it into a function.
3048         (symbol_init_language_specific): Export.
3049
3050 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3051
3052         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3053         (dwarf_attr_name): Ditto.
3054         (dwarf_type_encoding_name): Ditto.
3055         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3056         (process_die): Handle DW_TAG_namespace,
3057         DW_TAG_imported_declaration, DW_TAG_imported_module.
3058         (read_namespace): New function.
3059
3060 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3061
3062         * configure.in: Define NEW_PROC_API on Interix too.
3063         * configure: Regenerate.
3064
3065 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3066
3067         * configure: Regenerate using the proper version of autoconf.
3068
3069 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3070
3071         * findvar.c (read_var_value): Temporarily disable TLS code, until
3072         complete TLS support is added.
3073
3074 2002-10-21  Jim Blandy  <jimb@redhat.com>
3075             Elena Zannoni  <ezannoni@redhat.com>
3076
3077         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3078         for thread local storage locations.
3079         (struct symbol): Add objfile field.
3080         (SYMBOL_OBJFILE): Define.
3081         * dwarf2read.c (is_thread_local): New static variable.
3082         (new_symbol): If variable is in thread local fill in address class
3083         and objfile appropriately.
3084         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3085         stack operation.
3086         * printcmd.c (address_info): Print the information for thread
3087         local storage variable.
3088         * findvar.c (read_var_value): In case of thread local variable,
3089         defer to the target vector code to compute address.
3090
3091 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3092
3093         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3094         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3095
3096 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3097
3098         * symtab.h (address_class):  Rename
3099         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3100         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3101         * printcmd.c (address_info): Ditto.
3102         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3103
3104 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3105
3106         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3107         DBREG_DRX macro to acces debug registers.
3108
3109         * Makefile.in (i386obsd-tdep.o): New target.
3110
3111         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3112         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3113
3114         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3115         * config/i386/obsd.mt: New file.
3116         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3117         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3118         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3119         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3120         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3121         * i386obsd-tdep.c: New file.
3122
3123 2002-10-19  Adam Fedor  <fedor@gnu.org>
3124
3125         * objc-exp.y (name_not_typename): Fix invalid comment.  
3126
3127 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3128
3129         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3130         to allocate partial syms and macro byte caches.
3131
3132 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3133
3134         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3135
3136 2002-10-18  Adam Fedor  <fedor@gnu.org>
3137
3138         * stabsread.c (find_name_end): New function.
3139         (define_symbol): Use it.
3140
3141 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3142
3143         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3144         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3145         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3146         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3147
3148 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3149
3150         * symfile.h: Add opaque declaration for struct obstack.
3151         Declare obsavestring to take a const char *.
3152         * symfile.c (obsavestring): Make first argument a const char *.
3153
3154 2002-10-16  Adam Fedor  <fedor@gnu.org>
3155
3156         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3157         names when matching breakpoints in current file.
3158
3159 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3160
3161         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3162         (read_tag_pointer_type): Add address class support.
3163         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3164         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3165         New methods.
3166         * gdbarch.h, gdbarch.c: Regenerate.
3167         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3168         (make_type_with_address_space, recursive_type_dump): Add address
3169         class support.
3170         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3171         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3172         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3173
3174 2002-10-16  Klee Dienes  <kdienes@apple.com>
3175
3176         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3177         to get the last character of a char[] buffer, not
3178         name[sizeof(vptr_name)-1].
3179
3180 2002-10-14  Adam Fedor  <fedor@gnu.org>
3181
3182         * symtab.h: New objc_specific struct.
3183         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3184         (SYMBOL_DEMANGLED_NAME): Likewise.
3185
3186 2002-10-14  Adam Fedor  <fedor@gnu.org>
3187
3188         * symfile.c (init_filename_language_table): Add ObjC file extension.
3189
3190 2002-10-14  Adam Fedor  <fedor@gnu.org>
3191
3192         * utils.c (puts_filtered_tabular): New function.
3193         (fprintf_symbol_filtered): Get ObjC demangled name.
3194         * defs.h (puts_filtered_tabular): Declared.
3195
3196 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3197
3198         * c-lang.h (c_type_print_varspec_prefix): Delete.
3199         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3200         ``need_post_space'' parameter.  Adjust all callers.
3201
3202 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3203  
3204         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3205         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3206         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3207         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3208
3209 2002-10-13  Adam Fedor  <fedor@gnu.org>
3210
3211         * source.c (print_source_lines): Update comments.
3212
3213 2002-10-13  Adam Fedor  <fedor@gnu.org>
3214
3215         * valops.c (value_of_local): New function.
3216         (value_of_this): Use it.
3217         * value.h (value_of_local): Declared.
3218
3219 2002-10-13  Adam Fedor  <fedor@gnu.org>
3220
3221         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3222         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3223
3224 2002-10-12  Adam Fedor  <fedor@gnu.org>
3225
3226         * language.c (binop_result_type): Add language_objc to case.
3227         (integral_type): Likewise.
3228         (character_type): Likewise.
3229         (string_type): Likewise.
3230         (boolean_type): Likewise.
3231         (structured_type): Likewise.
3232         (binop_type_check): Likewise.
3233
3234 2002-10-11  Adam Fedor  <fedor@gnu.org>
3235
3236         * printcmd.c (address_info): Print 'self' for ObjC.
3237
3238 2002-10-11  Adam Fedor  <fedor@gnu.org>
3239
3240         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3241         OP_SELF.
3242
3243 2002-10-11  Adam Fedor  <fedor@gnu.org>
3244
3245         * language.h (CAST_IS_CONVERSION): Add language_objc.
3246
3247 2002-10-11  Adam Fedor  <fedor@gnu.org>
3248
3249         * defs.h (enum language): Add language_objc.
3250
3251 2002-10-11  Klee Dienes  <kdienes@apple.com>
3252
3253         * corefile.c (read_memory_typed_address): New function.
3254         * gdbcore.h (read_memory_typed_address): Add prototype.
3255         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3256         to read a value destined for a CORE_ADDR, not read_memory_integer.
3257         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3258         (f77_get_dynamic_lowerbound): Ditto.
3259
3260 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3261
3262         * utils.c (string_to_core_addr): After turning string into
3263         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3264         which will do necessary sign-extension, etc.
3265
3266 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3267
3268         * c-exp.y (THIS): Delete token and grammar rule.
3269         (yylex): Don't return THIS.
3270         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3271         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3272         * demangle.c (cplus_markers): Update comment.  Put '$'
3273         first.  Remove CPLUS_MARKER.
3274         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3275         * jv-exp.y (THIS): Delete token and grammar rule.
3276         (yylex): Don't return THIS.
3277         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3278         * objc-exp.y (THIS): Delete token and grammar rule.
3279         (yylex): Don't return THIS.
3280         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3281         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3282         (read_member_functions): Likewise for opname.
3283         (read_tilde_fields): Use is_cplus_marker.
3284
3285         * defs.h (CPLUS_MARKER): Don't define.
3286         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3287         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3288         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3289         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3290         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3291
3292         * config/i386/tm-i386v4.h: Delete file.
3293         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3294         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3295         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3296         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3297         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3298         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3299         * config/i386/i386v4.mt (TM_FILE): Likewise.
3300         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3301
3302 2002-10-10  Marko Mlinar  <markom@opencores.org>
3303
3304         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3305         accidentially not commited 2002-10-09
3306         * gdbarch.h, gdbarch.c: Re-generate.
3307
3308 2002-10-09  Marko Mlinar  <markom@opencores.org>
3309
3310         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3311         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3312         * gdbarch.h, gdbarch.c: Re-generate.
3313
3314 2002-10-08  Petr Sorfa <petrs@caldera.com>
3315
3316         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3317
3318         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3319         so we can work on more than one compilation unit at a time.  This
3320         helps prepare GDB to handle inter-CU die references.
3321         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3322         the code to be defined before struct comp_unit_head.
3323         (comp_unit_head): Added new members - offset, cu_head,
3324         begin_die, next and dwarf2_abbrevs.
3325         (dwarf2_abbrevs): Removed single static var; now member of
3326         struct comp_unit_head.
3327         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3328         members.
3329         (psymtab_to_symtab_1): Changed to work with the new
3330         struct comp_unit_head.
3331         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3332         constructs the dwarf2_abbrevs[] inside the cu_header.
3333         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3334         dwarf2_abbrev table to clean up.
3335         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3336         handling of dwarf2_abbrevs inside the cu_header.
3337         (read_partial_die): Now supports the call to the new
3338         dwarf2_lookup_abbrev.
3339         (read_full_die): Now supports the call to the new
3340         dwarf2_lookup_abbrev.
3341
3342 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3343
3344         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3345         insure that shell variables, such as "transformed_name" are propagated
3346         to later shell statements in rule.
3347
3348 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3349
3350         * config/i386/nm-i386sco.h: Add protection against
3351         multiple-inclusion.  Include "i386/nm-i386v.h".
3352         (REGISTER_U_ADDR): Remove define.
3353         (i386_register_u_addr): Remove prototype.
3354
3355 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3356
3357         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3358         before treating it as a single-step event.
3359
3360 2002-10-03  Adam Fedor  <fedor@gnu.org>
3361
3362         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3363         (objc_demangle): Remove assignment in if statements, Replace
3364         free with xfree.
3365         (add_msglist): Likewise.
3366         (end_msglist): Likewise.
3367         (complare_selectors): Likewise.
3368         (selectors_info): Likewise.
3369         (compare_classes): Likewise.
3370         (classes_info): Likewise.
3371         (print_object_command): Likewise.
3372         (find_objc_msgcall_submethod): Replace PTR with void *.
3373         * objc-lang.h: Remove check for __STDC__.
3374
3375 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3376
3377         * ui-out.h (ui_out_field_fmt_int): New prototype.
3378         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3379         of field width and alignment.
3380         * stack.c (print_frame_info_base): When printing frame level, use
3381         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3382         PR gdb/192
3383
3384 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3385
3386         * MAINTAINERS: Add self to Write After Approval list.
3387
3388 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3389
3390         * infcmd.c (interrupt_target_command_wrapper): Delete.
3391         (interrupt_target_command): Make non static.
3392         (nofp_registers_info): Make static.
3393         * stack.c (return_command_wrapper): Delete.
3394         (return_command): Make non static.
3395
3396 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3397
3398         * event-top.c (gdb_setup_readline): New function. Code moved from
3399         _initialize_event_loop().
3400         (_initialize_event_loop): Call gdb_setup_readline().
3401
3402 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3403
3404         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3405         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3406         * gdbarch.h, gdbarch.c: Re-generate.
3407
3408 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3409
3410         Fix PR gdb/778
3411         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3412         before recursing.
3413         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3414         of fill_in_vptr_fieldno.
3415
3416 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3417
3418         * inferior.h (registers_info, stepi_command, nexti_command,
3419         continue_command, interrupt_target_command): Export from infcmd.c.
3420         * frame.h (args_info, selected_frame_level_changed_hook,
3421         return_command): Export from stack.c.
3422         * v850ice.c (stepi_command, nexti_command, continue_command): use
3423         prototypes from inferior.h.
3424         * tracepoint.c (registers_info, args_info, locals_info): Use
3425         prototypes from frame.h and inferior.h.
3426         * Makefile.in (mi-main.o): Add dependency on frame.h.
3427
3428 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3429
3430         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3431         value in register 3 adjusted by ppc_gp0_regnum.
3432
3433         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3434
3435 2002-10-02  Marko Mlinar <markom@opencores.org>
3436
3437         * MAINTAINERS: Add myself to the Write After Approval list.
3438
3439 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3440
3441         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3442         of the section for the N64 ABI, fixed.
3443
3444         * config/mips/tm-irix6.h: Include solib.h.
3445
3446 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3447
3448         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3449         GNU operators.
3450
3451 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3452
3453         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3454         and that "mi0" syntax has been removed.
3455
3456 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3457
3458         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3459         * ppc-sysv-tdep.c: #include "gdb_string.h".
3460         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3461         pacify GCC.
3462
3463 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3464
3465         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3466         "vrsave"'s register number.
3467
3468 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3469
3470         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3471         use frame_unwind_signed_register to obtain the PC.
3472         (mips_frame_chain): Handle a generic dummy frame.
3473         (mips_init_extra_frame_info): When a generic dummy frame, don't
3474         re-compute the frame base.
3475         (mips_pop_frame): Handle generic dummy frames.
3476         (mips_gdbarch_init): When generic dummy frames, set
3477         use_generic_dummy_frames, push_dummy_frame to
3478         generic_push_dummy_frame, pc_in_call_dummy to
3479         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3480         generic_save_dummy_frame_tos.
3481
3482 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3483
3484         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3485         against TOP when TOP was explictly set.
3486         (generic_push_dummy_frame): Set TOP to zero.
3487
3488 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3489
3490         * event-loop.c (start_event_loop): Rename variable 'result' to
3491         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3492
3493 2002-09-30  Keith Seitz  <keiths@redhat.com>
3494
3495         * gdb-events.sh (selected_thread_changed): New event.
3496         * gdb-events.c: Regenerated.
3497         * gdb-events.h: Regenerated.
3498
3499 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3500
3501         * MAINTAINERS: Add self to Write After Approval list.
3502
3503 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3504
3505         * disasm.c: New file.  
3506         * disasm.h: New file.  
3507         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3508         (compare_lines): Ditto.
3509         (dump_insns): Ditto.
3510         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3511         argument.
3512         (do_assembly_only): Ditto.
3513         (do_disassembly): Renamed to gdb_disassembly and moved to
3514         disasm.c.  Sdded uiout argument.
3515         * Makefile.in: Add new files.  Reorder SFILES list. Update
3516         dependencies.  Include libgdb.a later in the insight executable.
3517
3518 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3519
3520         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3521         bfd/elf64-alpha-fbsd.c.
3522
3523 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3524
3525         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3526         i386gnu-tdep.c.
3527
3528 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3529
3530         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3531         __FUNCTION__.
3532         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3533         function name.
3534         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3535         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3536         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3537         (S_msg_sig_post_reply): Ditto.
3538         
3539 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3540
3541         * sh-tdep.c (sh_use_struct_convention): Use definition according
3542         to ABI.
3543         (sh_push_arguments): Store in register with correct endianess.
3544         (sh_default_store_return_value): Ditto.
3545         (sh_gdbarch_init): Set sizeof long double to 8.
3546
3547 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3548
3549         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3550         Fix some whitespace problems.
3551
3552 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3553
3554         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3555         (mcore-tdep.o): Ditto.
3556         (ns32k-tdep.o): Ditto.
3557         (ns32knbsd-tdep.o): Ditto.
3558         (sh3-rom.o): Ditto.
3559         (vax-tdep.o): Ditto.
3560         * cris-tdep.c: #include "gdb_string.h"
3561         * mcore-tdep.c: Ditto.
3562         * ns32k-tdep.c: Ditto.
3563         * ns32knbsd-tdep.c: Ditto.
3564         * sh3-rom.c: Ditto.
3565         * vax-tdep.c: Ditto.
3566
3567 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3568
3569         * config/djgpp/fnchange.lst: Add entries for
3570         gdb/testsuite/gdb.c++/m-static files.
3571
3572 2002-09-27  Jim Wilson  <wilson@redhat.com>
3573
3574         * MAINTAINERS: Add myself to the Write After Approval list.
3575
3576 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3577
3578         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3579
3580
3581 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3582
3583         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3584         frame.
3585
3586 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3587
3588         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3589         (rs6000_struct_return_address): Delete variable.
3590         (rs6000_store_struct_return): Update.
3591         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3592         deprecated_extract_struct_value_address.
3593         (rs6000_frame_align): New function.
3594         (rs6000_gdbarch_init): Set frame_align.
3595
3596 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3597
3598         From Grace Sainsbury <graces@redhat.com>:
3599         * Makefile.in (gdbtk-main.o): New target.
3600         (gdb.o): New target.
3601         (main_h): Define.
3602         (main.o): Update dependencies.
3603         (gdb$(EXEEXT)): Add gdb.o.
3604         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3605         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3606         (SUBDIR_GDBTK_CLEAN): Set.
3607         (install-gdbtk): Install the insight binary.
3608         (uninstall-gdbtk): New target.
3609         (all-gdbtk, clean-gdbtk): New rule.
3610         * top.c (use_windows): Default to zero.
3611         * main.c: Include "main.h".
3612         (main): Delete.
3613         (struct captured_main_args): Delete.
3614         (gdb_main): New function.
3615         * main.h: New file.
3616         * gdb.c: New File.
3617
3618 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3619
3620         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3621         (frame_map_regnum_to_name): New function.
3622         (frame_map_name_to_regnum): New function.
3623         * frame.h (frame_map_name_to_regnum): Declare.
3624         (frame_map_regnum_to_name): Declare.
3625         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3626         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3627         * parse.c: Do not include "builtin-regs.h".
3628         (target_map_name_to_register): Delete function.
3629         (write_dollar_variable): Use frame_map_name_to_regnum.
3630         * parser-defs.h (target_map_name_to_register): Delete declaration.
3631         * expprint.c: Include "frame.h".
3632         (print_subexp): Use frame_map_regnum_to_name.
3633         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3634         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3635
3636 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3637
3638         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3639         wasn't saved, and the next innermost frame is a dummy, return the
3640         dummy frame's link register.
3641
3642 2002-09-24  Jim Blandy  <jimb@redhat.com>
3643
3644         Fix from Paul Breed:
3645         * main.c (captured_main): Add a `break' after the case for 'b'.
3646
3647 2002-09-24  Keith Seitz  <keiths@redhat.com>
3648
3649         * varobj.c (c_type_of_child): Use get_target_type instead
3650         of TYPE_TARGET_TYPE.
3651
3652 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3653
3654         * source.c (get_current_or_default_source_symtab_and_line): Remove
3655         function.
3656         (set_default_source_symtab_and_line): New function. Attempts to
3657         determine a source file to list lines from if one is not currently
3658         defined.
3659         (get_current_source_symtab_and_line): Initialize sal.pc and
3660         sal.end fields.
3661         (set_current_source_symtab_and_line): Mark argument as const.
3662         * source.h: Update declarations and comments.
3663         * linespec.c (decode_line_1): Replace call to removed routine above.
3664         * stack.c (print_frame_info_base): Ditto.
3665         * cli/cli-cmds.c (edit_command): Ditto.
3666         (list_command): Ditto.
3667
3668 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3669
3670         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3671         sal.pc and sal.end fields.
3672         (get_current_or_default_source_symtab_and_line): Ditto.
3673         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3674         so we do not cause a new source symtab to be searched for (reverting an
3675         unintentional change from the 2002-09-20 patch).
3676         * scm-lang.c (scm_unpac): Ditto.
3677
3678 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3679
3680         * complaints.c (symfile_explanations): Remove new-line from
3681         ``isolated_message''.
3682         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3683         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3684
3685 2002-09-20  Nick Clifton  <nickc@redhat.com>
3686         
3687         * NEWS: Announce that V850EA ISA is no longer supported.
3688         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3689
3690 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3691
3692         * Makefile.in (c-lang.o): Correct dependencies.
3693         (utils.o): Gather dependencies.
3694         (charset.o): Move.
3695         * c-lang.c: #include "gdb_string.h"
3696
3697 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3698
3699         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3700         * cli/cli-cmds.c (list_command): New function.  Implements the new
3701         cli edit command.
3702         (_init_cli_cmds): Add new command definition.
3703         * gdb.1: Document edit command.
3704         * doc/gdb.texinfo: Document edit command.
3705
3706 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3707
3708         * source.c: Make global variables current_source_symtab and
3709         current_source_line static.
3710         (list_command): Moved to cli/cli-cmds.c.
3711         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3712         (get_first_line_listed): New accessor function.
3713         (get_lines_to_list): New accessor function.
3714         (get_current_source_symtab_and_line): New function. Retrieves the
3715         position in the source code that we consider current.
3716         (get_current_or_default_source_symtab_and_line): New function.
3717         Like the above but attempts to determine a default position if one
3718         is not currently defined.
3719         (set_current_source_symtab_and_line): New function. Sets the source
3720         code position considered current and returns the previously set one.
3721         (clear_current_source_symtab_and_line): Reset stored information about
3722         a current source line.
3723         (_initialize_source): Remove registration for the "list" command and
3724         its alias.
3725         * source.h: Add declarations for the new functions above.
3726         * symtab.h: Remove declarations for the global variables mentioned
3727         above.
3728         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3729         obtain current source line.
3730         * linespec.c (decode_line_1): Ditto.
3731         * macroscope.c (default_macro_scope): Ditto.
3732         * scm-lang.c (scm_unpac): Ditto.
3733         * stack.c (print_frame_info_base): Ditto.
3734         * symfile.c (clear_symtab_users): Ditto.
3735         * symtab.c (decode_line_spec): Ditto.
3736         * cli/cli-cmds.c (list_command): Moved here from source.c.
3737         (ambiguous_line_spec): Moved here from source.c.
3738         (_init_cli_cmds): Add definition for "list" and its alias.
3739         * Makefile.in: Update dependencies.
3740
3741 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3742
3743         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3744         with what gcc thinks is correct.
3745
3746 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3747
3748         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3749         multiple register push instruction.
3750
3751 2002-09-19  Jim Blandy  <jimb@redhat.com>
3752
3753         Add support for distinct host and target character sets.
3754         * charset.c, charset.h: New files.
3755         * c-exp.y: #include "charset.h".
3756         (yylex): Convert character and string literals to the target
3757         character set, before returning them as the semantic value of the
3758         token.
3759         * c-lang.c: #include "charset.h".
3760         (c_emit_char): Use charset-specific methods to recognize
3761         characters with backslash escape forms, to decide which characters
3762         to print literally and which to print using numeric escape
3763         sequences, and to convert target characters to host characters
3764         before printing.
3765         * utils.c: #include "charset.h".
3766         (no_control_char_error): New function.
3767         (parse_escape): Use charset-specific methods to recognize
3768         backslash escapes, parse `control character' notation, and convert
3769         characters from the host character set to the target character set.
3770         * configure.in: Set the default host character set.
3771         Check where to find iconv, and what its argument types might be.
3772         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3773         * Makefile.in (SFILES): List charset.c.
3774         (COMMON_OBS): List charset.o.   
3775         (charset.o): New rule.
3776         (charset_h): New header dependency variable.
3777         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3778         (LIBICONV): New variable, set by configure.
3779         (CLIBS): Include $(LIBICONV) here.
3780         * aclocal.m4, config.in, configure: Regenerated.
3781
3782 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3783
3784         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3785         bison 1.35 warning.
3786
3787 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3788
3789         * gdb_mbuild.sh: New file.
3790
3791 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3792
3793         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3794
3795 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3796
3797         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3798         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3799         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3800         valops.c, value.h: Revert previous change.
3801         
3802 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3803
3804         Preliminary support for Objective-C:
3805         * defs.h (language_objc): New enum value.
3806         (puts_filtered_tabular): Declaration only, exported from utils.c.
3807         (skip_quoted): Delete, declared in completer.h.
3808         * c-exp.y: Include completer.h.
3809         * p-exp.y: Ditto.
3810         * jv-exp.y: Ditto.
3811         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3812         New operator enum values.
3813         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3814         * language.c (binop_result_type): Handle language_objc case.
3815         (integral_type, character_type, string_type, boolean_type,
3816         structured_type, binop_type_check): Ditto.
3817         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3818         (struct objc_specific): Add to general_symbol_info.
3819         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3820         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3821         * parser-defs.h (struct objc_class_str): New struct type.
3822         (start_msglist, end_msglist, add_msglist): Declaration only,
3823         exported from objc-lang.c.
3824         * value.h (value_of_local, value_nsstring, 
3825         call_function_by_hand_expecting_type): Exported from valops.c.
3826         * valops.c (find_function_addr): Export.
3827         (call_function_by_hand_expecting_type): New function.
3828         (value_of_local): New function.
3829         * symfile.c (init_filename_language_table): Add ".m" extension
3830         for Objective-C.
3831         * utils.c (puts_filtered_tabular): New function.
3832         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3833         (set/show demangle): Extend help-string to refer to ObjC.
3834         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3835         * stabsread.c (symbol_reference_defined): Objective-C symbols
3836         may contain colons: make allowances when scanning stabs strings
3837         for colons.
3838         (objc_find_colon): New function.
3839         * printcmd.c (address_info): If language == objc then print
3840         "self" instead of "this".
3841         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3842         OP_NSSTRING, and OP_SELF.
3843         (prefixify_subexp): Ditto.
3844         * source.c (print_source_lines): Mention objc in comment.
3845         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3846         method names.
3847
3848 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3849
3850         * complaints.h: Update copyright.
3851         (struct complaints): Declare.
3852         (struct complaint): Make `message' constant.
3853         (internal_complaint): Declare.
3854         (complaint): Declare.
3855         (complaint_root): Delete declaration.
3856         (symfile_complaints): Delete declaration.
3857         (struct complaints): Add opaque declaration.
3858         (clear_complaints): Add a complaints parameter.
3859         * complaints.c: Update copyright.
3860         (enum complaint_series): Define.
3861         (complaint_root): Delete.
3862         (struct complaints): Define.
3863         (complaint_sentinel, symfile_complaint_book): New variables.
3864         (symfile_explanations, symfile_complaints): New variables.
3865         New variables.
3866         (get_complaints): New function.
3867         (vcomplaint): New function.
3868         (complaint): New function.
3869         (internal_complaint): New function.
3870         (complain): Call vcomplain with symfile_complaint.
3871         (clear_complaints): Rewrite.
3872         (_initialize_complaints): Use add_setshow_command.
3873         * Makefile.in (complaints.o): Update dependencies.
3874         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3875         to call to clear_complaints.
3876         (new_symfile_objfile, reread_symbols): Ditto.
3877         (oldsyms_complaint): Delete.
3878         (empty_symtab_complaint, unknown_option_complaint): Delete.
3879         (free_named_symtabs): Use complaint instead of complain.
3880
3881 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3882
3883         Contributed by Apple Computer, Inc.  Merged with current sources
3884         by Adam Fedor <fedor@doc.com> [cagney].
3885         
3886         * objc-lang.c: First clean-up round: comments, indentation.
3887         * objc-lang.h: Ditto.
3888         * objc-lang.y: Ditto.
3889
3890 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3891
3892         * maint.c (maintenance_internal_error): Print the parameter as the
3893         error message.
3894         (maintenance_internal_warning): New function.
3895         (_initialize_maint_cmds): Add command `maint internal-warning'.
3896
3897         * defs.h (internal_warning, internal_vwarning): Declare.
3898         * utils.c (struct internal_problem): Define.
3899         (internal_vproblem): New function.
3900         (internal_warning): New function.
3901         (internal_vwarning): New function.
3902         (internal_warning_problem, internal_error_problem): New variables.
3903         (internal_verror): Just call internal_vproblem.
3904
3905 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3906
3907         * objc-lang.c: New file, support for Objective-C.
3908         Preliminary check-in, not yet integrated into gdb.
3909         * objc-lang.h: New file.
3910         * objc-exp.y:  New file.
3911
3912 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3913
3914         * infrun.c (signal_stop_update): Convert definition to ISO C.
3915         (signal_print_update): Ditto.
3916         (signal_pass_update): Ditto.
3917         * inflow.c (terminal_save_ours): Ditto.
3918
3919         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3920         comments.
3921         
3922         * config/djgpp/fnchange.lst: Handle name clashes between
3923         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3924         bfd/coff-tic80.c.
3925
3926         * i386-linux-tdep.h: Fix tipo.
3927
3928 2002-09-18  Adam Fedor  <fedor@gnu.org>
3929
3930         * MAINTAINERS: Add myself to the Write After Approval list.
3931
3932 2002-09-18  Jim Blandy  <jimb@redhat.com>
3933
3934         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3935         texthigh and textlow to reader-specific structs caused
3936         objfile_relocate to miss them.  This is fixable, but the work that
3937         the change was supposed to prepare GDB for never got done anyway.
3938
3939 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3940
3941         * MAINTAINERS: Alphabetize Write After Approval list.
3942
3943 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3944
3945         Fix PR gdb/709
3946         * values.c (value_static_field): Call read_var_value.
3947
3948 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3949
3950         * valops.c (hand_function_call): Align the initial stack pointer
3951         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3952         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3953         return value.
3954         * mips-tdep.c (mips_frame_align): New function.
3955         (mips_gdbarch_init): Set frame_align.
3956         * gdbarch.sh (FRAME_ALIGN): New method.
3957         * gdbarch.h, gdbarch.c: Re-generate.
3958
3959 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3960
3961         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3962         registers.
3963
3964 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3965
3966         * NEWS: Mention that MIPS $fp behavior changed.
3967         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3968         reference to FP_REGNUM.
3969         (mipsnbsd_cannot_store_register): Ditto.
3970         * mips-linux-nat.c: Update copyright.
3971         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3972         (mips_linux_cannot_store_register): Ditto.
3973         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3974         * config/mips/tm-mips.h: Update copyright.
3975         (FP_REGNUM): Delete macro.
3976         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3977         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3978         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3979         (mips_r3041_reg_names, mips_r3051_reg_names)
3980         (mips_r3081_reg_names): Replace "fp" with "".
3981         Fix PR gdb/480.
3982
3983 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3984
3985         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3986         generic_read_register_dummy() (PR gdb/703).
3987         (avr_push_return_address): #if 0 out unused vars.
3988         (avr_gdbarch_init): Enable use of avr_push_return_address().
3989
3990 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3991
3992         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3993         RTE will take care of it.
3994
3995 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3996
3997         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3998         invalid, return SP_REGNUM.
3999
4000 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4001
4002         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4003         point registers without sign extension.
4004
4005 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4006
4007         * blockframe.c (deprecated_read_register_dummy): Rename
4008         generic_read_register_dummy.
4009         * frame.c (frame_unwind_signed_register): New function.
4010         (frame_unwind_unsigned_register): New function.
4011         * frame.h (frame_unwind_signed_register): Declare.
4012         (frame_unwind_unsigned_register): Declare.
4013         (deprecated_read_register_dummy): Rename
4014         generic_read_register_dummy.
4015
4016         * h8300-tdep.c (h8300_frame_chain): Update.
4017         (h8300_frame_saved_pc): Update.
4018         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4019         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4020         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4021         (s390_frame_chain): Update.
4022         * v850-tdep.c (v850_find_callers_reg): Update.
4023         (v850_frame_saved_pc): Update.
4024         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4025         (m32r_find_callers_reg): Update.
4026         (m32r_frame_saved_pc): Update.
4027         * sh-tdep.c (sh_find_callers_reg): Update.
4028         (sh64_get_saved_pr): Update.
4029         (sh_init_extra_frame_info): Update.
4030         (sh_init_extra_frame_info): Update.
4031         (sh64_init_extra_frame_info): Update.
4032         (sh64_init_extra_frame_info): Update.
4033         * mcore-tdep.c (mcore_find_callers_reg): Update.
4034         (mcore_frame_saved_pc): Update.
4035         (mcore_init_extra_frame_info): Update.
4036         * i386-tdep.c (i386_frame_saved_pc): Update.
4037         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4038         (ia64_init_extra_frame_info): Update.
4039         (ia64_init_extra_frame_info): Update.
4040         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4041         * cris-tdep.c (cris_init_extra_frame_info): Update.
4042         * avr-tdep.c (avr_frame_chain): Update.
4043         (avr_init_extra_frame_info): Update.
4044         (avr_frame_saved_pc): Update.
4045         * arm-tdep.c (arm_find_callers_reg): Update.
4046         (arm_init_extra_frame_info): Update.
4047         (arm_frame_saved_pc): Update.
4048
4049 2002-09-17  Tom Tromey  <tromey@redhat.com>
4050
4051         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4052         is "'".
4053
4054 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4055
4056         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4057         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4058         NEXT_PROLOGUE_INSN.
4059         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4060         NEXT_PROLOGUE_INSN.
4061
4062 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4063
4064         * osfsolib.c: Remove file, replaced by solib-osf.c.
4065         * Makefile.in: Remove compilation rules for osfsolib.c.
4066
4067 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4068
4069         * cp-valprint.c (cp_print_class_method): Correct args to
4070         check_stub_method_group.
4071
4072 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4073
4074         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4075         `set architecture'.  Unify naming convention of functions.
4076         (h8300_skip_prologue): Improve prologue analysis.
4077         (h8300_push_arguments): Rewritten to more closely match GCC's
4078         bizarre argument-passing behavior, along with the comment describing
4079         said behavior.
4080         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4081         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4082         sim, remote-e7000.c, remote-hms.c and remote.c
4083
4084 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4085
4086         * i386-tdep.c (gdb_print_insn_i386): Removed.
4087         (i386_print_insn): New function.
4088         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4089         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4090         tm_print_insn_info.
4091
4092 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4093
4094         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4095         zero.
4096
4097 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4098
4099         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4100         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4101         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4102
4103 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4104
4105         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4106
4107 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4108
4109         * gdbtypes.c (check_stub_method): Make static.
4110         (check_stub_method_group): New function.
4111         * gdbtypes.h: Update prototypes.
4112         * cp-support.c: New file.
4113         * cp-support.h: New file.
4114
4115         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4116         (update_method_name_from_physname): New function.
4117         (read_member_functions): Correct method names for operators
4118         and v3 constructors/destructors.  Separate v2 constructors and
4119         destructors.
4120         * Makefile.in (stabsread.o): Update dependencies.
4121         (SFILES): Add cp-support.c.
4122         (COMMON_OBS): Add cp-support.o.
4123         (cp_support_h, cp-support.o): Add.
4124
4125         * cp-valprint.c (cp_print_class_method): Call
4126         check_stub_method_group instead of check_stub_method.  Remove
4127         extraneous QUITs.
4128         * p-valprint.c (pascal_object_print_class_method): Likewise.
4129         * valops.c (search_struct_method): Likewise.
4130         (find_method_list, value_struct_elt_for_reference): Likewise.
4131
4132 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4133
4134         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4135         * gdbarch.h, gdbarch.c: Regenerate.
4136
4137 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4138
4139         * frame.c (find_saved_register): Delete function.
4140         * frame.h (find_saved_register): Delete declaration.
4141         Fix PR gdb/631.
4142
4143 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4144
4145         * mips-tdep.c (read_next_frame_reg): Re-hack using
4146         frame_register_unwind.
4147
4148 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4149
4150         * mips-tdep.c (mips_get_saved_register): Re-hack using
4151         frame_register_unwind.
4152
4153 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4154
4155         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4156         vector. Will be useful for Interix.  
4157         * gdbarch.h, gdbarch.c: Regenerate.
4158
4159         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4160         name of the malloc function by NAME_OF_MALLOC.
4161
4162 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4163
4164         * value.h (find_function_in_inferior): Add const keyword to
4165         one of the parameters. Allows us to invoke this function with
4166         a const char *.
4167         * valops.c (find_function_in_inferior): Likewise.
4168
4169 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4170
4171         * exec.c (xfer_memory): Fix compilation warning with old versions
4172         of GCC.
4173         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4174
4175 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4176
4177         * symtab.h: Run through gdb_indent.h.
4178         Add 2002 to Copyright year list.
4179
4180 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4181
4182         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4183         mach constants.
4184         * MAINTAINERS: Add myself to write after approval list.
4185
4186 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4187
4188         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4189
4190 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4191
4192         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4193         Interix.
4194
4195 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4196
4197         * procfs.c (do_detach): Clear current signal, not just fault.
4198         Corrects problem with breakpoint trap signal leaking to detached
4199         process on Tru64.
4200
4201 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4202
4203         * buildsym.c (finish_block): Protect against null pointer.
4204
4205 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4206
4207         * infcmd.c (default_print_registers_info): Send all output to
4208         ``file'' instead of ``gdb_stdout''.
4209
4210 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4211
4212         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4213         LONGEST, and use signed register read (addresses are sign-
4214         extended for mips).
4215
4216 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4217
4218         * event-loop.c (gdb_do_one_event): Make public.
4219         * event-loop.h (gdb_do_one_event): Declare.
4220
4221 2002-09-10  Jeff Law  <law@redhat.com>
4222
4223         * infttrace.c (child_resume): Simplify and rework to avoid
4224         TT_PROC_CONTINUE.
4225
4226 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4227
4228         * printcmd.c (print_scalar_formatted): "len" is the number of
4229         target bytes, NOT the number of target bits.
4230
4231 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4232
4233         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4234         * top.c (init_main): Set rl_terminal_name.
4235
4236 2002-09-08  Aidan Skinner <aidan@velvet.net>
4237
4238         * ada-lang.c (ada_array_bound, ada_type_match,
4239         _initialize_ada_language): Fix K&R definitions.
4240         * ada-tasks.c (get_current_task): Fix K&R definitions.
4241         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4242                         
4243 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4244
4245         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4246         Add XP.
4247
4248 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4249
4250         * i386-tdep.c (i386_register_virtual_type,
4251         i386_register_convertible, i386_register_convert_to_virtual,
4252         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4253         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4254         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4255         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4256         Don't set push_arguments twice.
4257
4258         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4259         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4260         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4261         sigtramp_end to NULL.
4262         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4263         defines.
4264         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4265
4266         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4267         whitespace.
4268
4269         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4270         * gdbarch.h, gdbarch.c: Re-generate.
4271         * blockframe.c (find_pc_sect_partial_function): Convert to use
4272         SIGTRAMP_START_P predicate.
4273
4274 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4275
4276         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4277         generic_dummy_frame method and old method.  Also distinguish
4278         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4279         (arm_extract_return_value): Use new regcache method.
4280
4281         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4282         adjustment that doesn't conform to the ABI.
4283         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4284         saved regcache, not from current regcache.
4285
4286 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4287
4288         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4289         * README: Update.
4290
4291 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4292
4293         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4294         if arm_apcs_32 is false.
4295
4296 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4297
4298         GDB 5.3 branch created.
4299
4300 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4301
4302         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4303         generic_unwind_get_saved_register.
4304
4305 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4306
4307         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4308         argument (PR gdb/653).  Update call to smash_to_method_type.
4309         (read_structure_scope): Update call to dwarf2_add_member_fn.
4310
4311 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4312
4313         * x86-64-linux-tdep.c: Include gdb_string.h
4314         * x86-64-linux-nat.c: Ditto.
4315
4316 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4317
4318         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4319         when YYDEBUG is set to 1.  
4320         * c-exp.y: Likewise.
4321         * f-exp.y: Likewise.
4322         * jv-exp.y: Likewise.
4323         * m2-exp.y: Likewise.
4324         * p-exp.y: Likewise.
4325
4326 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4327
4328         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4329         dependency list.
4330         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4331         solib_svr4_fetch_link_map_offsets to
4332         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4333         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4334         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4335         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4336         solib-svr4.o, and solib-legacy.o.
4337         * config/i386/tm-nbsd.h: Include solib.h.
4338
4339 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4340
4341         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4342         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4343         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4344         comment noting that this needs its own target configuration.
4345         * config/i386/nbsd.mt: New file.
4346         * config/i386/nbsdaout.mt: Remove.
4347         * config/i386/nbsdelf.mt: Ditto.
4348         * config/i386/tm-nbsdaout.h: Ditto. 
4349
4350 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4351
4352         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4353         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4354         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4355         tdep->sigtramp_end.
4356         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4357         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4358         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4359
4360 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4361
4362         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4363         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4364         * i386-tdep.h (i386bsd_init_abi): New prototype.
4365         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4366         function declaration.
4367         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4368         for NetBSD-a.out or NetBSD-ELF.
4369         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4370         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4371         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4372         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4373         and nbsd-tdep.h.
4374         (i386nbsd_pc_in_sigtramp): New function.
4375         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4376         i386nbsd_pc_in_sigtramp.
4377         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4378         and i386nbsdelf_init_abi OS ABI handlers.
4379         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4380         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4381
4382 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4383
4384         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4385         registers if the target really has them.
4386
4387 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4388
4389         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4390         than nbsd-tdep.h.
4391
4392 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4393
4394         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4395         list.
4396         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4397         (alphanbsd_skip_sigtramp_frame): New functions. 
4398         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4399         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4400         to alphanbsd_sigcontext_addr. 
4401
4402 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4403
4404         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4405         list.
4406         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4407         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4408         nbsd_pc_in_sigtramp. 
4409         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4410         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4411         * nbsd-tdep.c: Include gdb_string.h.
4412         (nbsd_pc_in_sigtramp): New function. 
4413         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4414         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4415         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4416         ppcnbsd_pc_in_sigtramp. 
4417         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4418         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4419         shnbsd_pc_in_sigtramp. 
4420         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4421         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4422         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4423
4424 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4425
4426         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4427         watchpoints to NULL.
4428         (insert_breakpoints): set val field of watchpoints if NULL.
4429
4430
4431 2002-08-29  Jim Blandy  <jimb@redhat.com>
4432
4433         * symtab.c (lookup_symbol_aux): In the cases where we find a
4434         minimal symbol of an appropriate name and use its address to
4435         select a symtab to read and search, use `name' (as passed to us)
4436         as the demangled name when searching the symtab's global and
4437         static blocks, not the minsym's name.
4438
4439 2002-08-29  Keith Seitz  <keiths@redhat.com>
4440
4441         * stack.c (print_frame_info_base): Always set current_source_symtab
4442         and current_source_line.
4443
4444 2002-08-29  Donn Terry  <donnte@microsoft.com>
4445
4446         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4447
4448 2002-08-28  Keith Seitz  <keiths@redhat.com>
4449
4450         * stack.c (select_frame): Add FIXME concerning selected-frame
4451         events.
4452         (select_frame_command): Send selected-frame-level-changed
4453         event notification, but only if the level actually changed.
4454         (up_silently_base): Add selected-frame-level-changed event
4455         notification.
4456         (down_silently_base): Likewise.
4457
4458 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4459
4460         * Makefile.in: Update dependencies for all gdb/*.c files.
4461
4462 2002-08-27  Tom Tromey  <tromey@redhat.com>
4463
4464         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4465         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4466         Update dependencies.
4467         * i387-tdep.c: Include gdb_string.h.
4468         * osabi.c: Likewise.
4469         * i386-linux-nat.c: Likewise.
4470         * lin-lwp.c: Likewise.
4471         * ax-gdb.c: Likewise.
4472         * signals/signals.c: Likewise.
4473         * jv-valprint.c: Likewise.
4474         * p-lang.c: Likewise.
4475         * c-valprint.c: Likewise.
4476         * cp-abi.c: Likewise.
4477
4478 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4479
4480         * cli/cli-script.h (copy_command_lines): Export.
4481         * breakpoint.c: Include cli/cli-script.h.
4482         * Makefile.in (breakpoint.o): Update dependencies.
4483
4484 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4485
4486         * breakpoint.c (insert_breakpoints): Protect all references
4487         to 'process_warning'.  Shorten long lines.
4488
4489 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4490
4491         * cli/cli-script.c (copy_command_lines): New function.
4492         * defs.h (copy_command_lines): Export.
4493         * testsuite/gdb.base/commands.exp: New tests for commands
4494         attached to a temporary breakpoint, and for commands that
4495         delete the breakpoint they are attached to.
4496         
4497 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4498
4499         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4500         pointer to the breakpoint commands struct, make a new copy
4501         of the struct and point to that.
4502         (bpstat_clear): Free the commands struct.
4503         (bpstat_clear_actions): Free the commands struct.
4504         (bpstat_do_actions): Free the command actions.  Also execute
4505         the local cleanups, instead of deleting them.
4506         (delete_breakpoint): Leave the commands field of the bpstat
4507         chain alone -- it will be freed later.
4508
4509 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4510
4511         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4512         deleted in 2002-08-20 commit.  This function is still used by
4513         ppc-linux-nat.c.
4514
4515 2002-08-26  Keith Seitz  <keiths@redhat.com>
4516
4517         * gdb-events.sh: Add selected-frame-level-changed event.
4518         * gdb-events.c: Regenerated.
4519         * gdb-events.h: Regenerated.
4520         
4521 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4522
4523         Fix PR gdb/393:
4524         * inflow.c (terminal_save_ours): New function to save terminal
4525         settings.
4526         * inferior.h (terminal_save_ours): Declare.
4527         * target.c (debug_to_terminal_save_ours): New function.
4528         (cleanup_target): Defaults to_terminal_save_ours.
4529         (update_current_target): Inherit to_terminal_save_ours.
4530         (setup_target_debug): Set to_terminal_save_ours.
4531         * target.h (target_terminal_save_ours): New to save terminal settings.
4532         (target_ops): New member to_terminal_save_ours.
4533         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4534         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4535         * inftarg.c (init_child_ops): Likewise.
4536         * m3-nat.c (init_m3_ops): Likewise.
4537         * procfs.c (init_procfs_ops): Likewise.
4538         * wince.c (init_child_ops): Likewise.
4539         * win32-nat.c (init_child_ops): Likewise.
4540         * sol-thread.c (init_sol_thread_ops): Likewise.
4541
4542 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4543
4544         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4545         use regcache_* functions.
4546         (i386_gdbarch_init): Set store_return_value instead of
4547         deprecated_store_return_value.
4548
4549         * regcache.c (regcache_raw_write_signed,
4550         regcache_raw_write_unsigned): New functions.
4551         * regcache.h (regcache_raw_write_signed,
4552         regcache_raw_write_unsigned): New prototypes.
4553
4554 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4555
4556         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4557         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4558         source file dependencies.  Cleanup corresponding generator rules.
4559
4560 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4561
4562         * regcache.h (register_offset_hack): Declare.
4563         (regcache_cooked_read_using_offset_hack): Declare.
4564         (regcache_cooked_write_using_offset_hack): Declare.
4565
4566         * regcache.c (register_offset_hack): New function.
4567         (regcache_cooked_read_using_offset_hack): New function.
4568         (regcache_cooked_write_using_offset_hack): New function.
4569         (regcache_dump): Check that the registers, according to their
4570         offset, are packed hard against each other.
4571         (cooked_xfer_using_offset_hack): New function.
4572
4573 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4574
4575         * regcache.c (struct regcache_descr): Add field register_type.
4576         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4577         in as a parameter
4578         (init_regcache_descr): Initialize register_type.  Pass the descr
4579         to init_legacy_regcache_descr.  Use register_type instead of
4580         REGISTER_VIRTUAL_TYPE.
4581         (register_type): New function.
4582         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4583         * regcache.h (register_type): Declare.
4584
4585 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4586
4587         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4588         instead of deprecated_store_return_value.  Fix fallout from
4589         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4590
4591 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4592
4593         * regcache.c (max_register_size): New function.
4594         (init_legacy_regcache_descr): Ensure that max_register_size is
4595         large enough for REGISTER_VIRTUAL_SIZE.
4596         * regcache.h (max_register_size): Declare.
4597
4598 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4599
4600         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4601         store_return_value.
4602         (e500_extract_return_value): Change type of valbuf pointer to
4603         void.
4604
4605 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4606
4607         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4608         workaround.
4609
4610         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4611         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4612         long long) to prevent compiler warning on 64-bit systems.
4613
4614 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4615
4616         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4617         (DEPRECATED_STORE_RETURN_VALUE): New method.
4618         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4619         * gdbarch.h, gdbarch.c: Re-generate.
4620
4621         * values.c (set_return_value): Pass current_regcache to
4622         STORE_RETURN_VALUE.
4623         * arch-utils.h (legacy_store_return_value): Declare.
4624         * arch-utils.c (legacy_store_return_value): New function.
4625         (legacy_extract_return_value): Update parameters.
4626
4627         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4628         STORE_RETURN_VALUE.
4629         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4630         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4631         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4632         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4633         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4634         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4635         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4636         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4637         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4638         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4639
4640         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4641         * i386-tdep.c (i386_extract_return_value): Update.
4642         * arch-utils.c (legacy_extract_return_value): Update.
4643         * frv-tdep.c (frv_gdbarch_init): Update.
4644         * cris-tdep.c (cris_gdbarch_init): Update.
4645         * d10v-tdep.c (d10v_gdbarch_init): Update.
4646         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4647         * m68k-tdep.c (m68k_gdbarch_init): Update.
4648         * mcore-tdep.c (mcore_gdbarch_init): Update.
4649         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4650         * s390-tdep.c (s390_gdbarch_init): Update.
4651         * sparc-tdep.c (sparc_gdbarch_init): Update.
4652         * sh-tdep.c (sh_gdbarch_init): Update.
4653         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4654         * v850-tdep.c (v850_gdbarch_init): Update.
4655         * avr-tdep.c (avr_gdbarch_init): Update.
4656         * ia64-tdep.c (ia64_gdbarch_init): Update.
4657         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4658         * vax-tdep.c (vax_gdbarch_init): Update.
4659         * alpha-tdep.c (alpha_gdbarch_init): Update.
4660         * arm-tdep.c (arm_gdbarch_init): Update.
4661         * mips-tdep.c (mips_gdbarch_init): Update.
4662         * i386-tdep.c (i386_gdbarch_init): Update.
4663
4664 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4665
4666         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4667         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4668
4669 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4670
4671         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4672         problems.
4673
4674 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4675
4676         * infrun.c (handle_inferior_event): Move a comment outside of a
4677         function call, in order to avoid indent reformatting this part
4678         of the code in an unreadable way.
4679
4680 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4681
4682         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4683         when breakpoints fail. Move general breakpoint error messages to
4684         insert_breakpoints.  
4685         * breakpoint.c (insert_breakpoints): Change warnings when
4686         breakpoints are nto inserted to specify the type. Remove call to
4687         memory_error when hardware breakpoints can't be inserted. Remove
4688         multiple calls to warning so all messages are sent to the user at
4689         once.
4690         (delete_breakpoints): Make insert error messsages more explicit.
4691
4692 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4693
4694         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4695         gdbserver/ChangeLog.
4696
4697 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4698
4699         * i386-tdep.c: Include "objfiles.h".
4700         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4701         skip_trampoline_code.
4702         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4703         (CPLUS_MARKER): Define to '.'.
4704
4705         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4706         member.
4707         (linux_corefile_thread_callback): Increase args->num_notes.
4708         (linux_make_note_section): Initialize thread_args.num_notes, and
4709         use it to determine whether notes for any threads were created.
4710
4711 2002-08-23  Donn Terry  <donnte@microsoft.com>
4712
4713         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4714         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4715         and PCUNKILL.
4716         (write_with_trace): Conditionalize out the switch branch handling
4717         PCSHOLD if the corresponding macro is not defined. Likewise for
4718         PRSABORT and PRSTOP.
4719         This change will be needed by the Interix port.
4720
4721 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4722
4723         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4724         write_register wherever possible instead of manipulating the
4725         register bytes directly.
4726         Assign VALUE_CONTENTS to a variable and use that.
4727         The GPR numbers are now dependent on the architecture.
4728         
4729 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4730
4731         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4732         ev_offset fields.
4733         (skip_prologue): Add support for BookE/e500 instructions.
4734         (e500_extract_return_value): New function.
4735         (frame_get_saved_regs): Add support for saving ev registers and
4736         pseudo gpr's.
4737         (e500_store_return_value): New function.
4738         (rs6000_gdbarch_init): Move up default intializations of
4739         deprecated_extract_return_value and store_return_value.  Overwrite
4740         init of store_return_value with e500 specific version.
4741         Set extract_return_value for e500.
4742         
4743 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4744
4745         * blockframe.c (generic_call_dummy_register_unwind): Use
4746         regcache_cooked_read to catch cases in which the variable is
4747         stored in a pseudo register.
4748
4749 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4750
4751         * NEWS: Mention that the i960 has been made obsolete.
4752         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4753         i960-tdep.c
4754         (remote-nrom.o): Obsolete target.
4755         (remote-nindy.o, i960-tdep.o): Ditto.
4756         * remote-nrom.c: Make file obsolete.
4757         * remote-nindy.c, remote-vx960.c: Ditto.
4758         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4759         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4760         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4761         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4762         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4763         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4764         i960-*-vxworks* obsolete.
4765         * MAINTAINERS: Note that the i960 is obsolete.
4766
4767 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4768
4769         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4770         detach to allow reinitialization.
4771
4772 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4773
4774         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4775         attempt).
4776
4777 2002-08-22  Jim Blandy  <jimb@redhat.com>
4778
4779         * coffread.c (coff_symfile_read): Don't try to read the line
4780         number table from disk if the image file doesn't have a symbol
4781         table; we'll never actually look at the info anyway, and Windows
4782         ships DLL's with bogus file offsets for the line number data.
4783
4784 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4785
4786         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4787         an e500 executable.
4788
4789 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4790
4791         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4792         (MSYMBOL_SIZE): Replace macro with function.
4793         (DEFAULT_MIPS_TYPE): Delete unused macro.
4794         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4795         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4796
4797 2002-08-21  Jim Blandy  <jimb@redhat.com>
4798
4799         * valops.c (value_cast): Simplify and correct logic for doing a
4800         static cast from a pointer to a base class to a pointer to a
4801         derived class.
4802
4803 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4804
4805         * infcmd.c (default_print_registers_info): Replace
4806         do_registers_info.
4807         (registers_info): Use gdbarch_print_registers_info instead of
4808         DO_REGISTERS_INFO.
4809         * inferior.h (default_print_registers_info): Replace
4810         do_registers_info.
4811         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4812         (DO_REGISTERS_INFO): Change to a predicate function.
4813         * gdbarch.h, gdbarch.c: Regenerate.
4814         
4815 2002-08-21  Keith Seitz  <keiths@redhat.com>
4816
4817         * gdb-events.sh: Add target-changed event.
4818         * gdb-events.c: Regenerated.
4819         * gdb-events.c: Regenerated.
4820         * valops.c (value_assign): Add target-changed event notification
4821         to inlval_register, lval_memory, and lval_reg_frame_relative.
4822
4823 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4824
4825         * NEWS: Add an entry regarding the improvement of the next/step
4826         operation on Alpha Tru64 multi-processor machines.
4827
4828 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4829
4830         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4831         directores.
4832         * Makefile.in: Update all _h macro definitions.
4833         * Makefile.in (install-gdbtk): Move to install section.
4834         (rdi-share/libangsd.a): Move to end of file.
4835
4836 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4837
4838         * frame.c (frame_register_unwind): When a register, set addrp to
4839         the register's byte.
4840
4841 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4842
4843         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4844         used locally, so move them from the target machine header to here.
4845         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4846         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4847         Make static.
4848         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4849
4850 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4851
4852         * NEWS: Mention that the Apollo line was made obsolete.
4853         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4854         m68*-hp-hpux* obsolete.
4855         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4856         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4857         * buildsym.c (make_blockvector): Make static.
4858         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4859         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4860         (ALLDEPFILES): Remove dstread.c.
4861         (dstread.o): Obsolete make rule.
4862         * dstread.c: Makefile obsolete.
4863         * dst.h: Ditto.
4864         * config/m68k/hp300hpux.mt: Ditto.
4865         * config/m68k/hp300hpux.mh: Ditto.
4866         * config/m68k/hp300bsd.mt: Ditto.
4867         * config/m68k/hp300bsd.mh: Ditto.
4868         * config/m68k/apollo68b.mt: Ditto.
4869         * config/m68k/apollo68v.mh: Ditto.
4870         * config/m68k/apollo68b.mh: Ditto.
4871
4872 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4873
4874         * mips-tdep.c (mips_in_return_stub): Make static.
4875         (mips_gdbarch_init): Set in_solib_return_trampoline.
4876         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4877
4878 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4879
4880         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4881         * gdbarch.c, gdbarch.h: Regenerate.
4882         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4883         Add.
4884         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4885
4886 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4887
4888         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4889         (mips_gdbarch_init): Set skip_trampoline_code, 
4890         in_solib_call_trampoline.
4891         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4892         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4893
4894 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4895
4896         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4897
4898         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4899         vector type for ev registers.
4900         (e500_pseudo_register_read): New function.
4901         (e500_pseudo_register_write): New function.
4902         (e500_dwarf2_reg_to_regnum): New function.
4903         (PPC_UISA_NOFP_SPRS): New macro.
4904         (PPC_EV_REGS): New macro.
4905         (PPC_GPRS_PSEUDO_REGS): New macro.
4906         (registers_e500): New register set for e500.
4907         (variants): Add e500 variant.
4908         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4909         before setting architectural dependent variations.  Initialize ev
4910         registers numbers.  Add case for e500 architecture.  Set the
4911         number of pseudo registers.
4912
4913 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4914
4915         * rs6000-tdep.c: Clean up comments.
4916
4917 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4918
4919         * h8300-tdep.c: Re-indent file.
4920
4921 2002-08-20  Jim Blandy  <jimb@redhat.com>
4922
4923         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4924         default for this.
4925
4926 2002-08-20  Keith Seitz  <keiths@redhat.com>
4927
4928         * breakpoints.c (watch_command_1): Use internal breakpoint
4929         when setting a watchpoint_scope breakpoint.
4930
4931 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4932
4933         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4934         (build_builtin_type_vec64i): Ditto.
4935         (build_builtin_type_vec128): Ditto.
4936         (build_builtin_type_vec128i): Ditto.
4937
4938 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4939
4940         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4941         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4942         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4943         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4944         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4945         CALL_DUMMY_ADDRESS): Delete.
4946         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4947         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4948         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4949         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4950         push_return_address.
4951         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4952         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4953         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4954         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4955         mips_n32n64_push_arguments, mips_push_return_address,
4956         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4957         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4958
4959 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4960
4961         * mips-tdep.c (mips_frame_num_args): New function.
4962         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4963         frame_saved_pc, frame_args_address, frame_locals_address, 
4964         frame_num_args, and frame_args_skip.
4965         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4966         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4967         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4968         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4969
4970 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4971
4972         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4973         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4974         * mips-tdep.c (mips_store_struct_return): New function.
4975         (mips_extract_struct_value_address): New function.
4976         (mips_gdbarch_init): Set store_struct_return and
4977         extract_struct_value_address.
4978
4979 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4980
4981         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4982         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4983         (read_file_scope): Check that line_header is nonzero before
4984         decoding macro information.
4985
4986 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4987
4988         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4989         flag the general-purpose registers as floating-point on targets
4990         that don't support the floating-point registers.
4991
4992 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4993
4994         * rs6000-tdep.c (altivec_register_p): Delete.
4995         (rs6000_do_altivec_registers): Delete.
4996         (rs6000_altivec_registers_info): Delete.
4997         (rs6000_do_registers_info): Delete.
4998         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4999         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5000
5001 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5002
5003         * infcmd.c (do_registers_info): Print vector registers in hex
5004         format only.
5005         (print_vector_info): Check that printing registers
5006         makes sense.
5007         (print_float_info): Ditto.
5008
5009 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5010
5011         * mips-tdep.c (mips_gdbarch_init): Update.
5012         (mips_o32_extract_return_value): Rewrite.
5013         (mips_o32_store_return_value): Rewrite.
5014         (mips_o32_xfer_return_value): New function.
5015         (mips_xfer_register): Tweak debug print message.  Allow for
5016         buf_offset when dumping the value transfered.
5017
5018 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5019
5020         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5021         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5022         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5023         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5024         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5025
5026 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5027
5028         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5029
5030 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5031
5032         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5033         register.
5034         (P): New macro to define a register as a pseudo register.
5035         (R, R4, R8, R16, FR32, R64, R0): Updated.
5036         (struct variant): Add new fields for number of pseudo registers
5037         and number of total registers.
5038         (tot_num_registers): New macro replacing....
5039         (num_registers): ...deleted macro.
5040         (num_registers): New function.
5041         (num_pseudo_registers): New function.
5042         (variants): Update all variants to intialize new fields correctly.
5043         Postpone initialization of number of pseudo regs and real regs.
5044         (init_variants): New function.
5045         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5046         registers offsets.
5047
5048 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5049
5050         * valops.c (search_struct_field): Change error message to treat
5051         return value of 0 from value_static_field as meaning that field is
5052         optimized out.
5053         (value_struct_elt_for_reference): Ditto.
5054         * values.c (value_static_field): Treat an unresolved location the
5055         same as a nonexistent symbol.  Fix PR gdb/635.
5056         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5057         enclosed.  Fix PR gdb/574.
5058         * MAINTAINERS: Add self to Write After Approval list.
5059
5060 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5061
5062         * mips-tdep.c (mips_xfer_register): New function.
5063         (mips_n32n64_extract_return_value): Rewrite.
5064         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5065         instead of deprecated_extract_return_value.
5066
5067 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5068
5069         * rs6000-tdep.c (TDEP): Delete macro.
5070         (branch_dest): Replace use of TDEP macro with its body.
5071         (rs6000_pop_frame): Ditto.
5072         (rs6000_push_arguments): Ditto.
5073         (rs6000_skip_trampoline_code): Ditto.
5074         (rs6000_frame_saved_pc): Ditto.
5075         (rs6000_frame_chain): Ditto.
5076         (rs6000_register_name): Ditto.
5077         (rs6000_register_byte): Ditto.
5078         (rs6000_register_raw_size): Ditto.
5079         (rs6000_register_virtual_type): Ditto.
5080         (rs6000_register_convertible): Ditto.
5081         (rs6000_convert_from_func_ptr_addr): Ditto.
5082
5083 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5084
5085         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5086         conditionally.
5087         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5088         MIPS_LINUX_JB_ELEMENT_SIZE.
5089         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5090         for MAX_REGISTER_RAW_SIZE arrays.
5091         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5092         MIPS_LINUX_JB_ELEMENT_SIZE.
5093
5094 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5095
5096         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5097
5098 2002-08-19  Aidan Skinner <aidan@velvet.net>
5099
5100         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5101         ada-valprint.c ada-tasks.c.
5102         (YYFILES): Add ada-exp.y.
5103         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5104         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5105         (ada-exp.tab.o): New target.
5106                 
5107 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5108
5109         * regcache.c (regcache_xfer_part): New function.
5110         (regcache_raw_read_part): New function.
5111         (regcache_raw_write_part): New function.
5112         (regcache_cooked_read_part): New function.
5113         (regcache_cooked_write_part): New function.
5114         * regcache.h (regcache_raw_read_part): Declare.
5115         (regcache_raw_write_part): Declare.
5116         (regcache_cooked_read_part): Declare.
5117         (regcache_cooked_write_part): Declare.
5118
5119 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5120
5121         * remote.c (remote_open_1): Add async_p.
5122         (remote_async_open_1): Delete.
5123         (open_remote_target): Delete.
5124         (remote_open, extended_remote_open): Update calls to remote_open_1.
5125         (remote_async_open, extended_remote_async_open): Call
5126         remote_open_1 instead of remote_async_open_1.
5127
5128 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5129
5130         * blockframe.c: Fix a few coding standard violations.
5131
5132 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5133
5134         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5135         here from ...
5136         * config/i386/tm-i386sco5.h: ... here.  File removed.
5137         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5138
5139         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5140         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5141         (TM_FILE): Set to tm-i386.h.
5142         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5143         * config/i386/tm-i386v.h: Remove file.
5144         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5145         instead of "i386/tm-i386v.h".
5146         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5147         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5148         "i386/tm-i386v.h".
5149         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5150         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5151         "i386/tm-i386.h".
5152
5153 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5154
5155         * config/i386/nm-i386v.h: Add protection against
5156         multiple-inclusion.
5157         (i386_register_u_addr): Remove prototype.
5158         (register_u_addr): New prototype.
5159         (REGISTER_U_ADDR): Redefine accordingly.
5160         * i386v-nat.c: Improve several comments.
5161         (i386_register_u_addr): Change signature and rename to
5162         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5163         ubase variable.
5164
5165 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5166
5167         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5168         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5169         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5170         deprecated_extract_return_value.
5171         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5172         rename mips_o32o64_push_arguments.
5173         (mips_gdbarch_init): Update.
5174         (mips_extract_return_value): Delete.
5175         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5176         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5177         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5178         (mips_n32n64_extract_return_value): Clone
5179         mips_extract_return_value.
5180         (mips_store_return_value): Delete.
5181         (mips_o32_store_return_value): Clone mips_store_return_value.
5182         (mips_o64_store_return_value): Clone mips_store_return_value.
5183         (mips_eabi_store_return_value): Clone mips_store_return_value.
5184         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5185
5186 2002-08-18  Aidan Skinner <aidan@velvet.net>
5187
5188         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5189         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5190                 
5191 2002-08-18  Aidan Skinner <aidan@velvet.net>
5192
5193         * ada-lang.c: Run through gdb_indent.sh.
5194         * ada-lang.h: Run through gdb_indent.sh.
5195         * ada-tasks.c: Run through gdb_indent.sh.
5196         * ada-typeprint.c: Run through gdb_indent.sh.
5197         * ada-valprint.c: Run through gdb_indent.sh.
5198
5199 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5200
5201         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5202         ABI.
5203
5204 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5205
5206         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5207
5208         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5209         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5210
5211         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5212         write_register_gen instead of write_register_bytes.
5213
5214         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5215         i[3456]-*-osf1mk* configurations have been made obsolete.
5216         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5217         i[3456]86-*-osf1mk* hosts obsolete.
5218         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5219         targets obsolete.
5220         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5221         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5222         config/i386/i386m3.mt, config/i386/nm-m3.h,
5223         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5224         config/i386/i386mk.mh, config/i386/i386mk.mt,
5225         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5226         obsolete.
5227         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5228         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5229         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5230
5231 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5232
5233         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5234         (hppa_value_returned_from_stack): Declare.
5235         (hppa_extract_return_value): Declare.
5236         * config/pa/hppa.mt: New file.
5237         * configure.tgt: Recognize hppa*-*-*.
5238         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5239
5240 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5241
5242         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5243         comment.
5244
5245 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5246
5247         * top.c (gdb_rl_operate_and_get_next): Make sure
5248         operate-and-get-next functions correctly even when the history
5249         list is completely filled.
5250
5251 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5252
5253         * MAINTAINERS (Target Instruction Set Architectures): Rename
5254         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5255         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5256         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5257         already listed under Host/Native.
5258
5259         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5260         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5261         mips*-*-*.
5262
5263 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5264
5265         * config/ia64/ia64.mt: New file.
5266         * config/alpha/alpha.mt: New file.
5267         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5268         ia64-linux-gnu.  Mention that ia64-elf is broken.
5269         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5270
5271 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5272
5273         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5274         generic_func_frame_valid instead of func_frame_valid.
5275
5276 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5277
5278         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5279         procfs appears to be broken when debugging on multi-processor
5280         machines. So enable software single stepping in order to avoid
5281         using the procfs interface to do next/step operations, using
5282         internal breakpoints instead.
5283
5284         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5285         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5286         make this pc address equal to the value it would have if the
5287         system stepping capability was used. Also set a new flag used
5288         to ensure that we don't readjust the PC one more time later.
5289
5290         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5291         address by DECR_PC_AFTER_BREAK when software single step is
5292         in use for this architecture, as this has already been taken
5293         care of in handle_inferior_event().
5294
5295 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5296
5297         * infrun.c (handle_inferior_event): Minor reformatting, to make
5298         a rather long condition expression easier to read.
5299
5300 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5301
5302         * Makefile.in (gdbtk.o): Move to end of file.
5303         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5304         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5305         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5306         (gdbtk-wrapper.o, gdbres.o): Ditto.
5307
5308 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5309
5310         * Makefile.in (copying.o): Separate out compile rule.
5311         (hpux-thread.o, procfs.o, signals.o): Ditto.
5312         (v850ice.o, z8k-tdep.o): Ditto.
5313         (tui-file.o): Move to TUI section.
5314         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5315         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5316
5317 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5318
5319         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5320         skip_trampoline_code, for better namespace-proofing.   
5321
5322         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5323
5324 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5325
5326         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5327
5328 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5329
5330         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5331         signal, check whether we hit a breakpoint before checking for a
5332         single step breakpoint. Otherwise, GDB fails to notice that a
5333         breakpoint has been hit when stepping onto a breakpoint.
5334
5335 2002-08-16  Keith Seitz  <keiths@redhat.com>
5336
5337         * gdb-events.sh (clear_gdb_event_hooks): New function.
5338         * gdb-events.c: Regenerate.
5339         * gdb-events.h: Regenerate.
5340
5341 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5342
5343         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5344         not_a_sw_breakpoint.
5345         * breakpoint.h (bpstat_stop_status): Add parameter names.
5346
5347 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5348
5349         * remote.c (remote_insert_hw_breakpoint)
5350         (remote_remove_hw_breakpoint): Fix calculation of length field
5351         for Z-packet.
5352
5353 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5354
5355         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5356         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5357         (supply_fpregset): Ditto.
5358         
5359         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5360         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5361         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5362         (TARGET_READ_SP): Delete.
5363         (DO_REGISTERS_INFO): Delete.
5364         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5365         Delete.
5366         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5367         from macros to functions.
5368
5369         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5370         (mips_register_convertible, mips_register_convert_to_virtual,
5371         mips_register_convert_to_raw): Make static.
5372         (mips_read_sp): New function.
5373         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5374         (mips_do_registers_info): Make static.
5375         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5376         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5377         (mips_register_convert_from_type, mips_register_convert_to_type):
5378         New functions.
5379         (mips_gdbarch_init): Set up function_start_offset, 
5380         register_virtual_size, pc_in_sigtramp.
5381
5382 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5383
5384         * infcmd.c (vector_info): New function.
5385         (_initialize_infcmd): Add command "info vector".
5386         (print_vector_info): New function.
5387
5388         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5389         * gdbarch.h, gdbarch.c: Regenerate.
5390
5391 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5392
5393         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5394         ``print_all''.  Only print vector registers when ``print_all''.
5395
5396 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5397
5398         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5399         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5400
5401         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5402         Add `args' parameter.
5403         * gdbarch.h, gdbarch.c: Regenerate.
5404         
5405         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5406         
5407         * infcmd.c (float_info): Call print_float_info.
5408         (print_float_info): New function.  By default, print the
5409         floating-point registers.
5410
5411         * arch-utils.h (default_print_float_info): Delete declaration.
5412         * arch-utils.c (default_print_float_info): Delete function.
5413         
5414 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5415
5416         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5417         out define.
5418
5419         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5420         FRAME.
5421
5422         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5423         * configure.host: Make i[3456]86-*-aix host obsolete.
5424         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5425         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5426         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5427         config/i386/xm-i386aix.h: Make files obsolete.
5428         * i386aix-nat.c: Make file obsolete.
5429         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5430         (i386aix-nat.o): Make target obsolete.
5431
5432         * config/i386/nm-gnu.h: Removed.
5433         * config/i386/nm-i386gnu.h: New file.
5434         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5435         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5436         Moved here from ...
5437         * config/i386/tm-i386gnu.h: ... here.  Removed.
5438         * config/i386/xm-i386gnu.h: Removed.
5439         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5440         (NAT_FILE): Set to nm-i386gnu.h.
5441         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5442         * i386-tdep.c: New file.
5443         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5444         (i386gnu-tdep.o): Specify dependencies.
5445
5446 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5447
5448         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5449         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5450         Adjust a few comments to reflect reality a bit closer.
5451         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5452         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5453         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5454         target_insert_watchpoint, target_remove_watchpoint):
5455         Move defines to ...
5456         * config/i386/nm-i386sco5.h: ... here.
5457         (kernel_u_size): Add prototype.  Improve a few comments and add
5458         protection against multiple inclusion.
5459         
5460         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5461         out define.
5462
5463         * uw-thread.c (SP_ARG0): Define if not already defined.
5464         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5465
5466         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5467
5468         * config/i386/tm-i386.h: Don't include "regcache.h".
5469
5470         * i387-tdep.h (i387_print_float_info): New prototype.
5471         * i387-tdep.c (print_i387_value, print_i387_ext,
5472         print_i387_status_word, print_i387_control_word): Add `struct
5473         ui_file *' argument and use it for output.
5474         (i387_print_float_info): Renamed from i387_float_info.  Add
5475         `struct gdbarch *' and `struct ui_file *' arguments and use the
5476         latter for output.
5477         * i386-tdep.c: Include "i387-tdep.h".
5478         (i386_gdbarch_init): Set print_float_info.
5479         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5480         (FLOAT_INFO): Remove define.
5481
5482 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5483
5484         * mips-tdep.c (mips_push_arguments): Rename to
5485         mips_eabi_push_arguments, and tune for EABI.
5486         (MIPS_REGS_HAVE_HOME_P): Delete.
5487         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5488         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5489         Delete references to mips_regs_have_home_p.
5490
5491 2002-08-14  Keith Seitz  <keiths@redhat.com>
5492
5493         * Makefile.in (install-gdbtk): Create insight plugin directory.
5494         Install plugins.tcl file.
5495
5496 2002-08-14  Keith Seitz  <keiths@redhat.com>
5497
5498         * configure.in: Move SUBDIRS to near top of the file so that
5499         --enable options may add things to it.
5500         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5501         * configure: Regenerate.
5502
5503 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5504
5505         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5506         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5507         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5508
5509 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5510
5511         * vax-tdep.c (vax_get_saved_register): Delete function.
5512         (vax_gdbarch_init): Update.
5513         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5514         (ns32k_gdbarch_init): Update.
5515         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5516         (alpha_gdbarch_init): Update.
5517
5518 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5519
5520         * regcache.c (init_regcache_descr): Overallocate the
5521         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5522         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5523         nr_raw_registers.
5524         (set_register_cached): Add range checking assertions.  Use
5525         current_regcache.
5526
5527 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5528
5529         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5530         numbers for MMX registers.
5531
5532 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5533
5534         * i386-tdep.c (i386_gdbarch_init): Use
5535         generic_unwind_get_saved_register.
5536
5537 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5538
5539         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5540         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5541         target vector.
5542         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5543         Delete.  Add comment regarding this now-deleted target method.
5544
5545 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5546
5547         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5548         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5549         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5550         real PC and the page number (if it's within the memory bank window).
5551         (m68hc11_pseudo_register_write): Likewise when saving.
5552         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5553         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5554         (m68hc11_register_raw_size): And use 32-bit for it.
5555         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5556         16K memory bank is used by the prog; also use the virtual pc.
5557
5558 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5559
5560         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5561         (m68hc11_gdbarch_init): Install it in gdbarch.
5562         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5563         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5564         (MSYMBOL_SIZE): New for documentation.
5565         (insn_return_kind): Enum to specify how a function returns.
5566         (frame_extra_info): Cleanup and record the return mode.
5567         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5568         register in address computation.
5569         (m68hc11_get_return_insn): New to obtain the return instruction used
5570         by the function.
5571         (m68hc11_frame_init_saved_regs): Take into account the return
5572         instruction used by the function for far and interrupt functions.
5573         (m68hc11_init_extra_frame_info): Take into account page register.
5574         (m68hc11_frame_args_address): Adjust according to the return mode.
5575         (show_regs): Print page register only when it's used.
5576
5577 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5578
5579         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5580         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5581         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5582         registers.
5583         (m68hc11_register_raw_size): Likewise.
5584
5585 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5586
5587         * i386-tdep.c (i386_register_name): Handle mmx registers.
5588         (mmx_regnum_p): New function.
5589         (i386_mmx_names): New array.
5590         (mmx_num_regs): New variable.
5591         (i386_pseudo_register_read): New function.
5592         (i386_pseudo_register_write): New function.
5593         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5594
5595         * regcache.c (regcache_raw_read_unsigned): New function.
5596         (regcache_raw_read_signed): New function.
5597         * regcache.h (regcache_raw_read_unsigned): Declare.
5598         (regcache_raw_read_signed): Declare.
5599
5600 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5601
5602         * regcache.c (regcache_raw_read_as_address): Delete function.
5603         (regcache_cooked_read_signed): New function.
5604         (regcache_cooked_read_unsigned): New function.
5605         * regcache.h (regcache_cooked_read_signed): Declare.
5606         (regcache_cooked_read_unsigned): Declare.
5607         (regcache_raw_read_as_address): Delete declaration.
5608
5609         * blockframe.c (generic_read_register_dummy): Use
5610         regcache_cooked_read_unsigned.
5611         * i386-tdep.c (i386_extract_struct_value_address): Use
5612         regcache_cooked_read_unsigned.
5613
5614 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5615
5616         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5617         double sizes according to ELF ABI flags.
5618         (gdbarch_tdep): Record elf_flags.
5619
5620 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5621
5622         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5623         (m6812_prolog): They can appear in 68HC12 function prologue.
5624         (m68hc11_frame_chain): Cleanup.
5625
5626 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5627
5628         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5629         declarations.
5630         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5631         (i386_linux_register_raw_size): Delete function.
5632         (i386_linux_init_abi): Update.
5633         * i386-tdep.c (i386_register_raw_size): Delete function.
5634         (i386_register_byte): Delete function.
5635         (i386_gdbarch_init): Update.
5636         (i386_register_size): Delete array.
5637         (i386_register_offset): Delete array.
5638
5639         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5640         (REGISTER_RAW_SIZE): Delete macro.
5641         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5642         (REGISTER_BYTE): Delete macro.
5643
5644 2002-08-11  Aidan Skinner <aidan@velvet.net>
5645
5646         * ada-lang.c (ada_lookup_partial_symbol)
5647         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5648         prototype names so that grep ^func works properly.
5649
5650         * ada-lang.c (ada_array_element_type)
5651         (ada_lookup_partial_symbol): Fix typos in parameter list.
5652
5653         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5654         Fix prototype names so that grep ^func works properly.
5655         
5656 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5657             Elena Zannoni  <ezannoni@redhat.com>
5658             Martin M. Hunt  <hunt@redhat.com>
5659
5660         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5661         (build_builtin_type_vec128i): Set the vector bit.
5662         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5663         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5664         (build_builtin_type_vec64): New function.
5665         (build_builtin_type_vec64i): New function.
5666         (build_gdbtypes): Initialize builtin_type_vec64 and
5667         builtin_type_vec64i.
5668
5669 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5670
5671         * regcache.c (regcache_dump): Compare the register offset
5672         with REGISTER_BYTE.
5673         * arch-utils.c (generic_register_byte): New function.
5674         * arch-utils.h (generic_register_byte): Declare.
5675         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5676         * gdbarch.h, gdbarch.c: Regenerate.
5677
5678 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5679
5680         * regcache.c: Include "gdbcmd.h"
5681         (_initialize_regcache): Add commands "maintenance print
5682         registers", "maintenance print raw-registers" and "maintenance
5683         print cooked-registers".
5684         (enum regcache_dump_what): Define.
5685         (dump_endian_bytes): New function.
5686         (regcache_dump): New function.
5687         (regcache_print): New function.
5688         (maintenance_print_registers): New function.
5689         (maintenance_print_raw_registers): New function.
5690         (maintenance_print_cooked_registers): New function.
5691         * Makefile.in (regcache.o): Update dependencies.
5692
5693 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5694
5695         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5696         (mips_push_arguments): Correct some comments.  Use paddr_nz
5697         for printing addresses in debug output.  Replace static
5698         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5699         (mips_n32n64_push_arguments): New function, cloned from
5700         mips_push_arguments and tuned for the n32/n64 ABI.
5701         (mips_push_register): Buffer needs dynamic allocation.
5702         (mips_print_register): Ditto.
5703         (do_gp_register_row): Ditto.
5704         (mips_store_return_value): Ditto.
5705         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5706
5707 2002-08-09  Don Howard  <dhoward@redhat.com>
5708
5709         * memattr.c (mem_info_command): Print special case of upper bound
5710         as max CORE_ADDR + 1.
5711
5712 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5713
5714         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5715         returns structs by ref if they're too big to fit in two registers.
5716
5717 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5718
5719         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5720         saved regs value.
5721         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5722         mips_find_saved_regs().
5723         (mips_pop_frame): Likewise.
5724
5725 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5726
5727         * blockframe.c (frame_saved_regs_register_unwind): Revise
5728         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5729         frames are in use.
5730
5731 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5732         
5733         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5734         T-packets; the 'a' is not taken as a register number.
5735         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5736         (remote_stopped_data_address): New functions; add to target
5737         vector.
5738         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5739         prototypes to match other implementations of this
5740         function. replace integer argument with pointer -- the length
5741         field in the Z-packet is the length of what is pointed to or 1 if
5742         pointer is null. Add to target vector.
5743         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5744         target vector.
5745
5746         From Mark Salter:
5747         * remote.c (remote_wait): Add support to extract optional
5748         watchpoint information from T-packet. Ignore unrecognized
5749         optional info in T-packet.
5750         (remote_async_wait): Ditto.
5751
5752 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5753
5754         * cli/cli-dump.c: Change fopen modes to use binary open modes
5755         as defined in include/fopen-bin.h throughout.
5756
5757 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5758
5759         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5760
5761 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5762
5763         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5764         assertion failure by returning early after a warning.
5765
5766 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5767
5768         * mips-tdep.c (mips_find_saved_regs): Make static.
5769         (mips_frame_init_saved_regs): New function.
5770         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5771         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5772         (mips_find_saved_regs): Delete declaration.
5773
5774 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5775
5776         * remote.c (remote_wait, remote_async_wait): Change
5777         thread_num from int to ULONGEST.
5778         (unpack_varlen_hex): Change result parameter from
5779         int * to ULONGEST *.
5780
5781 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5782
5783         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5784         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5785         powerpc*-*-*.
5786         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5787
5788 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5789
5790         * gcore.c (override_derive_stack_segment): Delete variable.
5791         (preempt_derive_stack_segment): Delete function.
5792         (derive_stack_segment): Delete function.
5793         (default_derive_stack_segment): Renamed to derive_stack_segment.
5794         (override_derive_heap_segment): Delete variable.
5795         (preempt_derive_heap_segment): Delete function.
5796         (derive_heap_segment): Delete function.
5797         (default_derive_heap_segment): Rename to derive_heap_segment.
5798
5799 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5800
5801         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5802         * mips-tdep.c (mips_EABI_use_struct_convention, 
5803         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5804         New functions.  (mips_use_struct_convention): Delete.
5805         (mips_gdbarch_init): set use_gdbarch_convention.
5806
5807 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5808
5809         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5810         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5811         mips_o32_reg_struct_has_addr): New functions.
5812         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5813
5814 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5815
5816         * regcache.c (pseudo_register): Delete function.
5817         (fetch_register): Delete function.
5818         (store_register): Delete function.
5819         (regcache_raw_read, legacy_read_register_gen): Use
5820         target_fetch_registers instead of fetch_register.
5821         (legacy_write_register_gen, regcache_raw_write): Use
5822         target_store_register instead of store_register.
5823         (write_register_bytes): Ditto.
5824
5825         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5826         (STORE_PSEUDO_REGISTER): Delete.
5827         * gdbarch.h, gdbarch.c: Regenerate.
5828
5829 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5830
5831         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5832         write dump file binary.
5833
5834 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5835
5836         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5837         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5838         (mips_gdbarch_init): Set N32 target to be mips64.
5839
5840 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5841
5842         * frame.c (find_saved_register): Break out of loop once saved
5843         register address is found.  Don't mention sparc in loop comment
5844         anymore.
5845
5846 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5847
5848         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5849         mips_default_saved_regsize to 8.
5850
5851 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5852
5853         * gcore.c: Do not include <sys/procfs.h>.
5854         * Makefile.in (gcore.o): Update dependencies.
5855
5856 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5857
5858         * configure.tgt: Make arc-*-* obsolete.
5859         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5860         * MAINTAINERS: Make arc-elf obsolete.
5861         * arc-tdep.c: Make file obsolete.
5862         * config/arc/arc.mt: Ditto.
5863         * config/arc/tm-arc.h: Ditto.
5864
5865 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5866
5867         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5868
5869 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5870
5871         * mcore-tdep.c (mcore_gdbarch_init): Use
5872         generic_unwind_get_saved_register instead of
5873         generic_get_saved_register.
5874         * v850-tdep.c (v850_gdbarch_init): Ditto.
5875         * frv-tdep.c (frv_gdbarch_init): Ditto.
5876         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5877         * s390-tdep.c (s390_gdbarch_init): Ditto.
5878         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5879         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5880         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5881
5882 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5883
5884         * objfiles.h: Add missing #include "symfile.h"
5885
5886         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5887
5888 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5889
5890         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5891         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5892         of FIELD_BITSIZE.
5893
5894 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5895
5896         * NEWS: Cleanup and nitpick.
5897
5898 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5899
5900         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5901
5902 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5903
5904         * Makefile.in (gdbtk-bp.o): Update dependencies.
5905         (gdbtk-register.o): Ditto.
5906         (gdbtk-varobj.o): Ditto.
5907
5908 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5909
5910         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5911         m68hc11_fetch_pseudo_register.
5912         (m68hc11_pseudo_register_write): Replace
5913         m68hc11_store_pseudo_register.
5914         (m68hc11_gdbarch_init): Update.
5915
5916 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5917
5918         * gdbarch.sh: Include "gdb_string.h".
5919         * gdbarch.c: Regenerate.
5920
5921         * regcache.c: Include "gdb_string.h".
5922         * ax-general.c: Ditto.
5923         * varobj.c: Ditto.
5924         * std-regs.c: Ditto.
5925         * fbsd-proc.c: Ditto.
5926         * thread.c: Ditto.
5927
5928         * Makefile.in (regcache.o): Update dependencies.
5929         (thread.o, gdbarch.o): Ditto.
5930         (ax-general.o, gdbarch.o): Ditto.
5931         (varobj.o, std-regs.o): Ditto.
5932         (fbsd-proc.o): Specify dependencies.
5933
5934 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5935
5936         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5937         regnum.
5938         (regcache_cooked_write): Ditto.
5939
5940 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5941
5942         * regcache.c (regcache_cooked_read): New function.
5943         (regcache_cooked_write): New function.
5944         (read_register_gen): Rewrite using regcache_cooked_read.
5945         (write_register_gen): Rewrite using regcache_cooked_write.
5946
5947         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5948         Declare.
5949
5950 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5951
5952         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5953         Replace the architecture methods register_read and register_write.
5954         * gdbarch.h, gdbarch.c: Regenerate.
5955         * regcache.c (init_regcache_descr): Update.
5956         (read_register_gen): Update.
5957         (write_register_gen): Update.
5958         (supply_register): Update comment.
5959
5960         * sh-tdep.c (sh_gdbarch_init): Update.
5961         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5962         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5963         pointer.  Update code.
5964         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5965         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5966         void pointer.  Update code.
5967         (sh64_register_write): Delete.
5968         (sh4_register_read): Delete.
5969         (sh64_register_read): Delete.
5970         (sh4_register_write): Delete.
5971         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5972         void pointer, `to' parameter a void pointer.
5973         (sh_sh64_register_convert_to_raw): Ditto.
5974
5975 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5976
5977         * mips-tdep.c (mips_register_virtual_type): Use architecture
5978         invariant return values.
5979
5980 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5981
5982         * linux-proc.c: Include "gdb_string.h".
5983         * Makefile.in (linux-proc.o): Update dependency list.
5984
5985 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5986
5987         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5988         comment.
5989
5990 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5991
5992         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5993         to_insert_watchpoint, to_remove_watchpoint,
5994         to_stopped_by_watchpoint, to_stopped_data_address,
5995         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5996         target vecctor. Define their corresponding macros so they call
5997         them.
5998         
5999         * target.c: Add default and debug versions of for
6000         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6001         to_insert_watchpoint, to_remove_watchpoint,
6002         to_stopped_by_watchpoint, to_stopped_data_address,
6003         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6004
6005 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6006
6007         * mips-tdep.c (mips_register_virtual_type): New function.
6008         (mips_gdbarch_init): Register mips_register_virtual_type()
6009         with gdbarch machinery.
6010         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6011         this file instead of tm-bigmips.h.
6012         (MIPS_REGSIZE): Delete this macro.
6013         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6014         multiarch version in mips-tdep.c will be found.
6015
6016 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6017
6018         * NEWS: Menion that CHILL has been made obsolete.
6019
6020         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6021         * stabsread.c (read_range_type): Ditto.
6022         * gdbtypes.h: Ditto.
6023         * language.c (binop_type_check): Ditto.
6024         (binop_result_type): Ditto.
6025         (integral_type): Ditto.
6026         (character_type): Ditto.
6027         (string_type): Ditto.
6028         (boolean_type): Ditto.
6029         (structured_type): Ditto.
6030         (lang_bool_type): Ditto.
6031         (binop_type_check): Ditto.
6032         * language.h (_LANG_chill): Ditto.
6033         * dwarfread.c (set_cu_language): Ditto.
6034         * dwarfread.c (CHILL_PRODUCER): Ditto.
6035         * dwarfread.c (handle_producer): Ditto.
6036         * expression.h (enum exp_opcode): Ditto.
6037         * eval.c: Ditto for comments.
6038         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6039         * expprint.c (print_subexp): Ditto.
6040         (print_subexp): Ditto.
6041         * valops.c (value_cast): Ditto.
6042         (search_struct_field): Ditto.
6043         * value.h (COERCE_VARYING_ARRAY): Ditto.
6044         * symfile.c (init_filename_language_table): Ditto.
6045         (add_psymbol_with_dem_name_to_list): Ditto.
6046         * valarith.c (value_binop): Ditto.
6047         (value_neg): Ditto.
6048         * valops.c (value_slice): Ditto.
6049         * symtab.h (union language_specific): Ditto.
6050         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6051         (SYMBOL_DEMANGLED_NAME): Ditto.
6052         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6053         * defs.h (enum language): Ditto.
6054         * symtab.c (got_symtab): Ditto.
6055         * utils.c (fprintf_symbol_filtered): Ditto.
6056
6057         * ch-typeprint.c: Make file obsolete.
6058         * ch-valprint.c: Make file obsolete.
6059         * ch-lang.h: Make file obsolete.
6060         * ch-exp.c: Make file obsolete.
6061         * ch-lang.c: Make file obsolete.
6062
6063         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6064         CHILL_LIB.
6065         (TARGET_FLAGS_TO_PASS): Ditto.
6066         (CHILLFLAGS): Obsolete.
6067         (CHILL): Obsolete.
6068         (CHILL_FOR_TARGET): Obsolete.
6069         (CHILL_LIB): Obsolete.
6070         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6071         ch-valprint.c.
6072         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6073         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6074         ch-lang.o.
6075         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6076         targets.
6077
6078 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6079
6080         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6081         This does not change anything at the moment, but will be helpful
6082         later when full Ada support is integrated.
6083
6084 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6085
6086         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6087         help message.
6088
6089 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6090
6091         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6092         and save it in a local variable.  Use variable in later test.
6093
6094 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6095
6096         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6097         test.  (Thanks to Daniel Jacobowitz.)
6098         
6099 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6100
6101         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6102         (mips_abi_strings): Add "n64".
6103         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6104
6105 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6106
6107         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6108         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6109
6110 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6111
6112         * utils.c (host_pointer_to_address, address_to_host_pointer):
6113         Use gdb_assert() instead of explicit call to internal_error().
6114
6115 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6116
6117         * Makefile.in (rs6000-nat.o): Update dependencies.
6118
6119         From Nicholas Duffek:
6120         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6121         (aix-thread.o): New rule.
6122         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6123         * config/powerpc/aix432.mh: New file.
6124
6125 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6126
6127         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6128         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6129         (fetch_core_registers, ppc_linux_supply_gregset)
6130         (ppc_linux_supply_fpregset): New functions.
6131         (ppc_linux_regset_core_fns): New.
6132         (_initialize_ppc_linux_tdep): Call add_core_fns.
6133         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6134         and ppc_linux_supply_gregset.
6135         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6136         (supply_fpregset): Call ppc_linux_supply_fpregset.
6137         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6138         corelow.o.
6139         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6140
6141 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6142
6143         * symtab.c (lookup_symbol): Demangle before lowercasing.
6144
6145 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6146
6147         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6148         declaration.
6149         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6150         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6151         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6152         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6153         "gdb_string.h".
6154         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6155         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6156         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6157         (avr-tdep.o, mon960-rom.o): Ditto.
6158         (aout_stabs_gnu_h): Define.
6159         (symtab_h): Remove $(gdb_obstack_h).
6160
6161 2002-07-30  Jim Blandy  <jimb@redhat.com>
6162
6163         Patch from David Carlton <carlton@math.stanford.edu>:
6164         * gdbinit.in: Move the `dir' commands that add GDB's own source
6165         directory to the search path to the end, so that the `gdb' source
6166         directory will be searched first.
6167
6168 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6169
6170         * gdb_obstack.h: New file.
6171         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6172         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6173         * objfiles.h: Include "gdb_obstack.h".
6174         * Makefile.in (gdb_obstack_h): Define.
6175         (symtab_h): Add $(gdb_obstack_h).
6176         (objfiles_h): Add $(gdb_obstack_h).
6177         
6178         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6179         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6180         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6181         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6182         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6183         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6184         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6185         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6186
6187         * Makefile.in (bcache.o): Update dependencies.
6188         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6189         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6190         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6191         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6192         (stabsread.o, symfile.o, symmisc.o): Ditto.
6193         (symtab.o, typeprint.o, macroexp.o): Ditto.
6194         (macrotab.o, mdebugread.o): Ditto.
6195         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6196         (coff_ecoff_h, aout_aout64_h): Define.
6197         (aout_stabs_gnu_h, libaout_h): Define.
6198
6199 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6200
6201         * regcache.c (struct regcache_descr): Rename nr_registers to
6202         nr_cooked_registers.  Revise comments describing the structure
6203         member fields.
6204         (init_regcache_descr): Update.
6205         (init_legacy_regcache_descr): Update.
6206         (read_register_gen, write_register_gen): When a cooked register in
6207         the raw register range, directly access the value from the raw
6208         register cache.
6209
6210 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6211
6212         * z8k-tdep.c: Do not include "obstack.h".
6213         * h8300-tdep.c, h8500-tdep.c: Ditto.
6214         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6215         * valprint.c, v850-tdep.c: Ditto.
6216         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6217         * mn10200-tdep.c: Ditto.
6218
6219         * Makefile.in (z8k-tdep.o): Update dependencies.
6220         (m68hc11-tdep.o, valprint.o): Ditto.
6221         (v850-tdep.o, d10v-tdep.o): Ditto.
6222         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6223         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6224         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6225         (sh_opc_h, gdb_sim_sh_h): Define.
6226         (elf_sh_h, elf_bfd_h): Define.
6227         (opcode_m68hc11_h): Define.
6228         (OPCODES_SRC, OPCODES_DIR): define.
6229         (OPCODES): Use $(OPCODES_DIR).
6230         (gdb_sim_d10v_h): Rename sim_d10v_h.
6231         (gdb_sim_arm_h): Rename sim_arm_h.
6232
6233 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6234
6235         * utils.c (host_pointer_to_address, address_to_host_pointer):
6236         Change internal_error() message to indicate function responsible
6237         for the error.
6238
6239 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6240
6241         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6242         calls to local_hex_string_custom().
6243
6244 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6245
6246         * irix5-nat.c: Move IRIX shared library support from here...
6247         * solib-irix.c: ...to here.  Revised substantially to work with
6248         generic solib framework.
6249
6250         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6251         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6252         * mips-irix-tdep.c: New file.
6253
6254         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6255         (mips-irix-tdep.o, solib-irix.o): New rules.
6256         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6257         solib-irix.o.
6258         * config/mips/irix6.mt (TDEPFILES): Likewise.
6259         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6260
6261 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6262
6263         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6264         disabled (via ``#if 0'') includes.
6265
6266 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6267
6268         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6269         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6270         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6271         Add support for the fpscr register.
6272         * rs6000-nat.c (regmap, fetch_inferior_registers)
6273         (store_inferior_registers, fetch_core_registers): Likewise.
6274
6275 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6276
6277         * rs6000-nat.c (language.h): Include.
6278         (special_regs): Delete this array.
6279         (regmap): New function.
6280         (fetch_register, store_register):  Use regmap() to map gdb
6281         register numbers to ptrace register numbers.  Also, use
6282         outputs from regmap() to make decisions regarding type of
6283         ptrace() call to make.  In particular, don't compare against
6284         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6285         (fetch_inferior_registers, store_inferior_registers): Where
6286         possible, obtain register numbers from tdep struct.  Don't
6287         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6288         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6289         (LAST_UISA_SP_REGNUM): Delete.
6290         
6291 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6292
6293         * rs6000-nat.c (ppc-tdep.h): Include.
6294         (fetch_registers, store_register, fetch_core_registers): Don't
6295         access registers[] directly.  Instead, use supply_register() or
6296         regcache_collect() as appropriate.
6297         (find_toc_address): Format hex address with local_hex_string().
6298
6299 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6300
6301         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6302         bfd/elf32-frv.c.
6303
6304 2002-07-24  Tom Tromey  <tromey@redhat.com>
6305
6306         * jv-exp.y: Marked all strings with _().
6307         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6308         internal_error.
6309         (MethodInvocation, CastExpression, parse_number, yyerror,
6310         java_type_from_name, push_expression_name, yylex): Typo fixes.
6311
6312 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6313
6314         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6315         (tee_file_flush, tee_file_write, tee_file_fputs)
6316         (tee_file_isatty): New.
6317         * ui-file.h (tee_file_new): Add prototype.
6318
6319 2002-07-24  Aidan Skinner <aidan@velvet.net>
6320
6321         * ada-lang.c: Change k&r style function definitions to prototyped
6322         form.
6323         * ada-typeprint.c: Change k&r style function definitions to prototyped
6324         form.
6325         * ada-valprint.c: Change k&r style function definitions to prototyped
6326         form.
6327         
6328 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6329
6330         * README: Remove reference to remote-bug.
6331         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6332         remote-bug.c.
6333         (m88k-nat.o): Delete rule.
6334         (m88k-tdep.o): Delete rule.
6335         (remote-bug.o): Delete rule.
6336         * MAINTAINERS: Mark as obsolete.
6337         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6338         * m88k-tdep.c: Make file obsolete.
6339         * config/m88k/m88k.mh: Ditto.
6340         * config/m88k/delta88v4.mh: Ditto.
6341         * config/m88k/delta88v4.mt: Ditto.
6342         * config/m88k/delta88.mt: Ditto.
6343         * config/m88k/delta88.mh: Ditto.
6344         * remote-bug.c: Ditto.
6345         * config/m88k/tm-delta88.h: Ditto.
6346         * config/m88k/nm-delta88v4.h: Ditto.
6347         * config/m88k/xm-delta88.h: Ditto.
6348         * config/m88k/xm-dgux.h: Ditto.
6349         * config/m88k/tm-m88k.h: Ditto.
6350         * config/m88k/nm-m88k.h: Ditto.
6351         * config/m88k/tm-delta88v4.h: Ditto.
6352         * m88k-nat.c: Ditto.
6353         * cxux-nat.c: Ditto.
6354         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6355         and m88*-*-* obsolete.
6356         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6357         m88*-*-* obsolete.
6358
6359 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6360
6361         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6362         constant.  Same for local pointer variables.
6363         (extract_signed_integer): Ditto.
6364         * defs.h (extract_unsigned_integer): Update.
6365         (extract_signed_integer): Update.
6366
6367 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6368
6369         * regcache.c (regcache_raw_write): Change buf parameter to a
6370         constant void pointer.
6371         (regcache_raw_read): Change buf parameter to a void pointer.
6372         (legacy_write_register_gen): Change myaddr parameter a constant
6373         void pointer.
6374         (supply_register): Change val parameter to a const void pointer.
6375         * regcache.h (regcache_raw_write): Update declaration.
6376         (regcache_raw_read): Update declaration.
6377         (supply_register): Update declaration.
6378
6379 2002-07-24  Tom Tromey  <tromey@redhat.com>
6380
6381         * defs.h (gdb_readline_wrapper): Declare.
6382         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6383         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6384         * top.c (gdb_readline_wrapper): New function.
6385         (command_line_input): Use it.
6386
6387 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6388
6389         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6390         regcache_read and regcache_write.
6391         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6392         * regcache.c: Update.
6393         * sh-tdep.c (sh64_push_arguments): Update comment.
6394         (sh_pseudo_register_read): Update.
6395         (sh_pseudo_register_write): Update.
6396         (sh4_register_read): Update.
6397         (sh4_register_write): Update.
6398         (sh64_pseudo_register_read): Update.
6399         (sh64_pseudo_register_write): Update.
6400         (sh64_register_read): Update.
6401         (sh64_register_write): Update.
6402         * i386-tdep.c (i386_extract_return_value): Update.
6403         (i386_extract_struct_value_address): Update.
6404         (i386_extract_return_value): Update.
6405         * blockframe.c (generic_read_register_dummy): Update.
6406         (generic_call_dummy_register_unwind): Update
6407         * infrun.c (write_inferior_status_register): Update.
6408
6409 2002-07-23  Jim Blandy  <jimb@redhat.com>
6410
6411         * parser-defs.h (expression_context_pc): Make this extern.
6412         (Thanks to Michael Snyder.)
6413
6414 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6415
6416         GDB 5.2.1 released from 5.2 branch.
6417         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6418         * README: Update to mention 5.2.1.
6419
6420 2002-07-23  Mark Salter  <msalter@redhat.com>
6421
6422         * remote.c (remote_read_bytes): Fix check for error.
6423
6424 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6425
6426         * aix-thread.c (language.h): Include.
6427         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6428         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6429         Print newlines at end of debug messages.
6430         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6431         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6432
6433 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6434
6435         * aix-thread.c (ppc-tdep.h): Include.
6436         (special_register_p): New function.
6437         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6438         (store_regs_user_thread): Use register number information from
6439         gdbarch_tdep struct instead of hardcoded offsets relative to
6440         FIRST_UISA_SP_REGNUM.
6441         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6442         special_register_p() instead of using FPLAST_REGNUM and
6443         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6444         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6445         will be MQ's register number.
6446
6447 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6448
6449         * aix-thread.c (ops): Rename to aix_thread_ops.
6450         (base_ops): Rename to base_target.
6451         (ops_attach): Rename to aix_thread_attach.
6452         (ops_detach): Rename to aix_thread_detach.
6453         (ops_resume): Rename to aix_thread_detach.
6454         (ops_wait):   Rename to aix_thread_wait.
6455         (ops_kill):   Rename to aix_thread_kill.
6456         (init_ops):   Rename to init_aix_thread_ops.
6457         (ops_fetch_register): Rename to aix_thread_fetch_register.
6458         (ops_store_register): Rename to aix_thread_store_register.
6459         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6460         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6461         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6462         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6463         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6464         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6465         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6466         (store_regs_lib):  Rename to store_regs_user_thread.
6467         (store_regs_kern): Rename to store_regs_kernel_thread.
6468
6469 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6470
6471         * aix-thread.c (ops_prepare_to_store): Eliminate.
6472         (init_ops): Don't initialize ops.prepare_to_store.
6473         (store_regs_kern): Pre-fetch register buffers from child, 
6474         because some registers may not be in the cache.  Copy
6475         regs from register cache only if they are cached.
6476         (store_regs_lib): Copy regs from register cache only
6477         if they are cached.
6478         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6479         fill_gprs64): Ditto.
6480
6481 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6482
6483         * aix-thread.c (gdb_assert.h): Include.
6484         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6485         register sizes (from register cache) match size of buffer holding
6486         register data.
6487         (fill_sprs32): Change parameter types to match those in the ptrace()
6488         buffer.
6489         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6490         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6491
6492 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6493
6494         * aix-thread.c (supply_sprs64): Cosmetic change.
6495         (supply_sprs32): Cosmetic change.
6496         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6497         (fill_sprs64): Use regcache_collect instead of read_register.
6498         (store_regs_lib): Use regcache_collect instead of 
6499         read_register.  Use fill_sprs32 instead of fill_sprs64,
6500         if debugging a 32-bit architecture.
6501         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6502         out of the register cache, instead of passing a pointer into
6503         the register cache directly to ptrace.  Use regcache_collect
6504         insteaad of read_register.
6505         (ops_prepare_to_store): Use target_read_registers instead
6506         of read_register_bytes.
6507
6508 2002-07-20  Aidan Skinner <aidan@velvet.net>
6509
6510         * MAINTAINERS: Add self under write after approval. 
6511                 
6512 2002-07-20  Aidan Skinner <aidan@velvet.net>
6513
6514         * ada-tasks.c: Change k&r style function definitions to prototyped
6515         form.
6516                 
6517 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6518
6519         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6520         * x86-64-tdep.c: Include "objfiles.h".
6521         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6522         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6523
6524 2002-07-17  Michal Ludvig  <michal@suse.cz>
6525
6526         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6527         (update_context): Initialise cfa variable.
6528
6529 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6530
6531         * aix-thread.c: Shorten some long lines.  
6532         Bring comments into line with code spec.
6533
6534 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6535
6536         * infrun.c: Re-indent using gdb_indent.sh.
6537
6538 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6539
6540         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6541         Leave the indentation temporarily untouched, to minimize the diffs.
6542
6543 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6544
6545         * stabsread.c: Make os9k sections of the code obsolete,
6546         for real this time.
6547         * stabsread.h: Make os9k sections of the code obsolete.
6548
6549 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6550
6551         * linux-low.c (regsets_store_inferior_registers): Add free()
6552         at the end of a loop to prevent memory leak.
6553         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6554         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6555         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6556         line a comment.
6557         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6558
6559 2002-07-17  Jim Blandy  <jimb@redhat.com>
6560
6561         * macrocmd.c (info_macro_command): Remove newline from error
6562         message.
6563
6564 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6565
6566         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6567         (sh_gdbarch_init): Use it for sh-dsp.
6568
6569 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6570
6571         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6572         64-bit DWARF2 format.
6573
6574 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6575
6576         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6577         <sys/proc.h> when not available.
6578
6579 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6580
6581         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6582         * stabsread.c: Make os9k sections of the code obsolete.
6583         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6584         * config/i386/i386os9k.mt: Make file obsolete.
6585         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6586         (COMMON_OBS): Remove os9kread.o
6587         (SFILES): Remove os9kread.c.
6588         (os9kread.o, remote-os9k.o): Make target obsolete.
6589         * remote-os9k.c: Make file obsolete.
6590         * os9kread.c: Make file obsolete.
6591         * Makefile.in
6592
6593 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6594
6595         * NEWS: Mention that the FR30 has been made obsolete.
6596         * fr30-tdep.c: Make file obsolete.
6597         * config/fr30/tm-fr30.h: Ditto.
6598         * config/fr30/fr30.mt: Ditto.
6599         * configure.tgt: Make fr30-*-elf obsolete.
6600         * MAINTAINERS: Make fr30-elf obsolete.
6601
6602 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6603
6604         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6605         found is not inside a section.
6606
6607 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6608
6609         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6610         strerror().
6611         (pdc_realloc): Use xrealloc() instead of realloc().
6612
6613 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6614
6615         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6616         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6617         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6618         macros.
6619
6620 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6621
6622         * aix-thread.c (ptrace_check): Eliminate goto.
6623         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6624         problem.
6625
6626 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6627
6628         * aix-thread.c (gdbcmd.h): Include.
6629         (DEBUG, DBG, DBG2, dbg): Eliminate.
6630         (debug_aix_thread): New static global.
6631         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6632         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6633         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6634         invocations to DBG and DBG2 macros to test against
6635         ``debug_aix_thread'' and call fprintf_unfiltered().
6636         (_initialize_aix_thread): Add new command "set debug aix-thread".
6637
6638 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6639
6640         From Gerhard Tonn <TON@de.ibm.com>:
6641         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6642         instead of supply_register.
6643
6644 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6645
6646         * dwarf2cfi.c: Include "gdb_assert.h".
6647         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6648         non-NULL.
6649         (update_context): Do not use __func__.  Add missing ``break''.
6650         (update_context): Do not use __func__.
6651
6652 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6653
6654         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6655         and its setting.  Set gdbarch instruction printing functions
6656         directly.  For non-rs6000 case use new function
6657         gdb_print_insn_powerpc.
6658         (gdb_print_insn_powerpc): New function.
6659
6660 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6661
6662         * NEWS: Mention that the d30v has been marked obsolete.
6663         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6664         * configure.tgt: Mark d30v-*-* as obsolete.
6665         * d30v-tdep.c: Mark file as obsolete.
6666         * config/d30v/d30v.mt: Ditto.
6667         * config/d30v/tm-d30v.h: Ditto.
6668
6669 2002-07-13  Aidan Skinner <aidan@velvet.net>
6670
6671         * ada-tasks.c (add_task_entry): replace calls to
6672         malloc() with xmalloc
6673         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6674         
6675         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6676         ada_finish_decode_line_1, all_sals_for_line
6677         ada_breakpoint_rewrite): replace calls to free() with xfree()
6678                 
6679 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6680
6681         From Nicholas Duffek (with minor changes by Martin Hunt, 
6682         Louis Hamilton, and Kevin Buettner):
6683         * aix-thread.c: New file.
6684
6685 2002-07-12  Petr Sorfa <petrs@caldera.com>
6686
6687         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6688         complaint for invalid attribute class or form.
6689         (read_func_scope): DW_AT_frame_base
6690         better handling of DW_AT_block*.
6691         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6692         better handling of DW_AT_block*.
6693         (read_common_block): DW_AT_location
6694         better handling of DW_AT_block*.
6695         (read_partial_die): DW_AT_location better handling
6696         of DW_AT_block*.
6697         (new_symbol): DW_AT_external better handling of
6698         DW_AT_block*. Proper initialization of variable
6699         "addr".
6700         (attr_form_is_block): New function that returns true
6701         if the attribute's form is of DW_FORM_block*.
6702
6703 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6704
6705         * valops.c (find_method_list): Remove comment about
6706         removed STATIC_MEMFUNCP argument.
6707         (value_find_oload_method_list): Likewise.
6708
6709 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6710
6711         From Nicholas Duffek:
6712         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6713         target_new_objfile_hook.
6714
6715 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6716
6717         From Nicholas Duffek:
6718         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6719         csect.
6720
6721 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6722
6723         * MAINTAINERS: Mention --enable-sim-build-warnings.
6724         (m68hc11-elf): Disable sim build warnings.
6725         (m32r-elf): Mark as broken obsolete candidate.
6726         (x86_64-linux-gnu): Mark as buildable with -Werror.
6727         (arm-elf): Change -w to ``,'' which enables warnings but not
6728         -Werror.
6729
6730 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6731
6732         * bcache.h: Update copyright.
6733         (struct bstring, struct bcache): Move definition to "bcache.c".
6734         Replaced by opaque declaration.
6735         (bcache_xfree): Replace free_bcache.
6736         (bcache_xmalloc, bcache_memory_used): Declare.
6737         
6738         * bcache.c: Update copyright.
6739         (struct bstring, struct bcache): Moved to here from "bcache.h".
6740         Update comments.
6741         (bcache_xmalloc, bcache_memory_used): New functions.
6742         (bcache_xfree): Replace function free_bcache.
6743         
6744         * Makefile.in (objfiles.o): Add $(bcache_h).
6745         (objfiles_h): Remove $(bcache_h).
6746         (symfile.o): Add $(bcache_h).
6747
6748         * symmisc.c: Update copyright.
6749         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6750         (print_objfile_statistics): Use bcache_memory_used.
6751
6752         * symfile.c: Include "bcache.h".
6753         (reread_symbols): Use bcache_xfree.
6754         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6755         (add_psymbol_to_list): Pass psymbol_cache by value.
6756         (add_psymbol_with_dem_name_to_list): Ditto.
6757
6758         * objfiles.h: Update copyright.
6759         (struct bcache): Declare opaque.  Do not include "bcache.h".
6760         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6761         bcache'' pointers.
6762         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6763
6764         * objfiles.c: Include "bcache.h".  Update copyright.
6765         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6766         macro_cache.
6767         (free_objfile): Use bcache_xfree.
6768
6769 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6770
6771         * monitor.c (monitor_fetch_register): Make name a constant.
6772         (monitor_store_register): Same.
6773
6774 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6775
6776         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6777         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6778         (finish_block) For non-function blocks, hash the symbol table.  For
6779         function blocks, mark the symbol table as unhashed.
6780         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6781         (msymbol_hash_iw): Likewise.
6782         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6783         value.
6784         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6785         (lookup_minimal_symbol): Likewise for both.
6786         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6787         hashtable.
6788         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6789         (ALL_BLOCK_SYMBOLS): Update.
6790         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6791         (struct symbol): Add `hash_next' pointer.
6792         * symtab.c (lookup_block_symbol): Search using the hash table when
6793         possible.
6794         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6795         (search_symbols, find_addr_symbol): Likewise.
6796
6797         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6798         (read_dst_symtab): Likewise.
6799         * jv-lang.c (get_java_class_symtab): Likewise.
6800         * mdebugread.c: Include "gdb_assert.h".
6801         (shrink_block): Assert that the block being modified is not hashed.
6802         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6803         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6804         symbols.
6805         (dump_symtab): Recognize hashed blocks.
6806         * printcmd.c (print_frame_args):  Assert that function blocks do not
6807         have hashed symbol tables.
6808         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6809         (fill_in_ada_prototype, debug_print_block): Likewise.
6810         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6811
6812 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6813
6814         * stack.c (print_frame): Use result of frame_address_in_block()
6815         instead of fi->pc when evaluating symbols.
6816         (backtrace_command_1): Ditto.
6817
6818 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6819
6820         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6821         Make static.
6822
6823         * arm-tdep.c (arm_register_name): Make return type constant.
6824
6825 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6826
6827         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6828         prototype.
6829         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6830         * s390-tdep.c (s390_fp_regnum): Ditto.
6831         (s390_read_fp): Ditto.
6832         (s390_pop_frame): Ditto.
6833         (_initialize_s390_tdep): Ditto.
6834         * remote.c (get_remote_state): Ditto.
6835         * procfs.c (mappingflags): Ditto.
6836         * memattr.c (_initialize_mem): Ditto.
6837         * mcore-tdep.c (mcore_pop_frame): Ditto.
6838         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6839         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6840         * language.c (set_case_str): Ditto.
6841         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6842         * frv-tdep.c (new_variant): Ditto.
6843         (frv_stopped_data_address): Ditto.
6844         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6845         (context_alloc): Ditto.
6846         (frame_state_alloc): Ditto.
6847         (unwind_tmp_obstack_init): Ditto.
6848         (unwind_tmp_obstack_free): Ditto.
6849         (cfi_read_fp): Ditto.
6850         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6851         (cris_pop_frame): Ditto.
6852         * c-lang.c (scanning_macro_expansion): Ditto.
6853         (finished_macro_expansion): Ditto.
6854         (c_preprocess_and_parse): Ditto.
6855         * gdbarch.sh: Ditto.
6856         * gdbarch.h, gdbarch.c: Regenerate.
6857         * config/mn10200/tm-mn10200.h: Adjust indentation.
6858         * target.c: Adjust indentation.
6859         * symtab.h: Adjust indentation.
6860         * stabsread.h: Adjust indentation.
6861         * remote-es.c: Adjust indentation.
6862         * os9kread.c: Adjust indentation.
6863
6864 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6865         
6866         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6867         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6868
6869 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6870         
6871         * NEWS: Mention m68k, mcore multi-arching.  
6872         * MAINTAINERS: Change status of m68k, mcore to reflect
6873         multi-arching.
6874
6875 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6876
6877         * valops.c (find_overload_match): Free oload_syms.
6878
6879 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6880
6881         Define HAVE_SYS_PROC_H if sys/proc.h exists
6882         * configure.in: Add check for sys/proc.h
6883         * config.in: Regenerate.
6884         * configure: Regenerate.
6885
6886 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6887
6888         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6889         #if !GDB_MULTI_ARCH. 
6890
6891 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6892
6893         * config.in, configure: Regenerate.
6894
6895 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6896
6897         * dwarf2cfi.c: Include "gcore.h".
6898         (execute_stack_op): Fix implementation of the
6899         DW_OP_deref and DW_OP_deref_size operators by letting do their
6900         lookup in the target.
6901
6902 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6903
6904         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6905         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6906         tdep->sc_sp_offset.
6907
6908 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6909
6910         Fix PR gdb/595, gdb/602
6911         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6912         Don't call value_cast, just read the vtable pointer; update comments
6913         to match.
6914
6915 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6916
6917         * config/mcore/tm-mcore.h: Remove file.
6918         * config/mcore/mcore.mt: Remove definition of TM_FILE
6919         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6920
6921 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6922
6923         * i386bsd-tdep.c: Include "gdb_string.h".
6924
6925 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6926
6927         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6928         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6929         mcore-tdep.
6930         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6931         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6932         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6933         (RETVAL_REGNUM): Move macros from tm-mcore.h
6934         (mcore_reg_struct_has_addr): New function.
6935         (mcore_gdbarch_init): Added initializations for the macros removed
6936         from tm-mcore.h.
6937
6938 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6939
6940         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6941         traditonal string branding within the ELF header.
6942
6943 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6944
6945         * symtab.c (remove_params): New function.
6946         (make_symbol_overload_list): Use it instead of cplus_demangle.
6947         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6948
6949 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6950
6951         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6952
6953         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6954         New variables.
6955         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6956         and tdep->sigtramp_end.
6957         * i386obsd-nat.c: New file.
6958         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6959
6960         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6961         Don't call get_current_frame().
6962
6963 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6964
6965         * i386-nat.c (child_post_startup_inferior): New function
6966         calling i386_cleanup_dregs if
6967         I386_USE_GENERIC_WATCHPOINTS is defined.
6968         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6969         conditional to acknowledge that i386-nat.c has its
6970         own child_post_startup_inferior function.
6971
6972 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6973
6974         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6975         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6976         instead of MAX_REGISTER_RAW_SIZE.
6977         (i386_extract_return_value, i386_extract_struct_value_address):
6978         Convert to use regcache.
6979         (i386_gdbarch_init): Set max_register_raw_size and
6980         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6981         Set extract_return_value and extract_struct_value_address instead
6982         of their deprecated variants.
6983
6984         Convert i386 target to generic dummy frames.
6985         * i386-tdep.c: Include "symfile.h".
6986         (i386_frameless_signal_p): Consider a function to be frameless if
6987         the pc points at the first instruction of the function.
6988         (i386_frame_chain): Handle (generic) call dummies.
6989         (i386_frame_saved_pc): Likewise.
6990         (i386_frame_init_saved_regs): Remove code dealing with call
6991         dummies on the stack.
6992         (i386_push_dummy_frame): Removed.
6993         (i386_call_dummy_words): Removed.
6994         (i386_fix_call_dummy): Removed.
6995         (i386_push_return_address): New function.
6996         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6997         parameter, and don't call get_current_frame.
6998         (i386_pop_frame): New function.
6999         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7000         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7001         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7002         call_dummy_length to 0, set call_dummy_words to NULL, set
7003         sizeof_call_dummy_words to 0, set fix_call_dummy to
7004         generic_fix_call_dummy, set pc_in_call_dummy to
7005         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7006         generic_push_dummy_frame, set push_return_address to
7007         i386_push_return_address and set frame_chain_valid to
7008         generic_file_frame_chain_valid.
7009
7010 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7011
7012         * gdbarch.sh (struct regcache): Add opaque declaration.
7013         (EXTRACT_RETURN_VALUE): New architecture method.
7014         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7015         * gdbarch.h, gdbarch.c: Regenerate.
7016         * arch-utils.c (legacy_extract_return_value): New function.
7017         * arch-utils.h (legacy_extract_return_value): Declare.
7018         * values.c (value_being_returned): Re-enable code handling
7019         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7020         deprecated_grub_regcache_for_registers call to block handling
7021         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7022         (EXTRACT_RETURN_VALUE): Do not define.
7023
7024 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7025
7026         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7027         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7028         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7029         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7030         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7031         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7032         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7033         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7034         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7035         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7036         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7037         argument so the function fits the prototype in the architecture
7038         vector.
7039         (mcore_pop_frame): Remove argument so the function fits the
7040         prototype. Use get_current_frame instead of the argument.
7041         (mcore_push_arguments): Change type of struct_return so the
7042         function can be used in the architecture vector.
7043         (mcore_store_struct_return): Add.
7044         (mcore_frame_init_saved_regs): Add.
7045         (mcore_gdbarch_init): Add function calls to replace the macros
7046         removed from tm-mcore.h
7047
7048 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7049
7050         * infcmd.c (print_return_value): Remove compatibility code calling
7051         deprecated_grub_regcache_for_registers.
7052         
7053         * values.c: Include "regcache.h".
7054         (value_being_returned): Update.  Use
7055         deprecated_grub_regcache_for_registers to extract the register
7056         buffer address.  
7057         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7058         ``struct regcache''.
7059         * Makefile.in (values.o): Add dependency on $(regcache_h).
7060
7061         * inferior.h (run_stack_dummy): Change type of second parameter to
7062         a ``struct regcache''.
7063         * valops.c (hand_function_call): Change type of retbuf to ``struct
7064         regcache''.  Allocate using regcache_xmalloc, clean using
7065         make_cleanup_regcache_xfree.
7066         * infcmd.c (run_stack_dummy): Update.  Use
7067         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7068
7069         * regcache.c (do_regcache_xfree): New function.
7070         (make_cleanup_regcache_xfree): New function.
7071         * regcache.h (make_cleanup_regcache_xfree): Declare.
7072
7073 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7074
7075         * event-top.c (command_line_handler): Don't read past
7076         beginning of buffer.
7077
7078 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7079         
7080         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7081         struct frame_id. 
7082         (varobj_create): Store frame_id for root.
7083         (varobj_gen_name): Use xasprintf.
7084         (varobj_update): Save and restore frame using get_frame_id() and
7085         frame_find_by_id().
7086         (create_child): Use xasprintf.
7087         (new_root_variable): Initialize frame_id.
7088         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7089         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7090         to prevent memory leak.
7091
7092 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7093
7094         * valops.c (hand_function_call): Move declaration of retbuf to
7095         start of function, allocate using malloc, add a cleanup but before
7096         the inf_status cleanup, cleanup the buffer.  Rename local variable
7097         old_chain to inf_status_cleanup.
7098
7099 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7100
7101         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7102
7103         * cli/cli-decode.c (cmd_func_p): New function.
7104         (cmd_func): New function.
7105
7106         * command.h: Add cmd_func() and cmd_func_p().   
7107         
7108 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7109
7110         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7111         (REGISTER_SIZE): Remove.
7112         (MAX_REGISTER_RAW_SIZE): Remove.
7113         (REGISTER_VIRTUAL_TYPE): Remove.
7114         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7115         (REGISTER_NAME): Remove.
7116         (USE_GENERIC_DUMMY_FRAMES): Remove.
7117         (CALL_DUMMY): Remove.
7118         (CALL_DUMMY_START_OFFSET): Remove.
7119         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7120         (CALL_DUMMY_LOCATION): Remove.
7121         (FIX_CALL_DUMMY): Remove.
7122         (CALL_DUMMY_ADDRESS): Remove.
7123         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7124         (SAVE_DUMMY_FRAME_TOS): Remove.
7125         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7126         (mcore_register_virtual_type): New function.
7127         (mcore_register_byte): New function.
7128         (mcore_register_size): New function.
7129         (mcore_register_name): New function.
7130         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7131         macros removed from tm-mcore.h.
7132         (mcore_dump_tdep): Add.
7133         (_initialize_mcore_tdep): Add gdbarch_register call.
7134
7135 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7136
7137         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7138         frameless_look_for_prologue, such that we actually call this
7139         function.
7140
7141 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7142
7143         * frame.h (frame_address_in_block): New function.
7144
7145         * blockframe.c (frame_address_in_block): New function extracted
7146         from get_frame_block().
7147         (get_frame_block): Use frame_address_in_block().
7148         (block_innermost_frame): Use frame_address_in_block() to match
7149         the frame pc address against the block boundaries rather than
7150         the frame pc directly. This prevents a failure when a frame pc
7151         is actually a return-address pointing immediately after the end
7152         of the given block. 
7153
7154 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7155
7156         * MAINTAINERS: Add self under write after approval. 
7157
7158 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7159
7160         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7161         used in architecture vector. The default is
7162         m68k_local_breakpoint_from_pc.
7163         (m68k_local_breakpoint_from_pc): Add.
7164         (enum): Add register numbers from tm-m68k.h.
7165         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7166         vector.  
7167         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7168         GDB_MULTI_ARCH_PARTIAL.
7169         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7170         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7171         m68k-tdep.c.
7172         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7173         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7174         to enum in m68k-tdep.c
7175
7176 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7177
7178         * solib-osf.c (open_map): Compute the list of shared libraries
7179         loaded by the inferior, rather than the list of libraries loaded
7180         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7181         the wrong shared libraries...
7182
7183 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7184
7185         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7186         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7187         macros.
7188         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7189         Remove functions.
7190         (FRAMELESS_SIGNAL): Remove function.
7191         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7192         i386_linux_saved_pc_after_call): Removed.
7193         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7194         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7195         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7196
7197         * i386-tdep.c (i386_frameless_signal_p): New function.
7198         (i386_frame_chain): Deal with frameless signals.
7199         (i386_sigtramp_saved_sp): New function.
7200         (i386_frame_saved_pc): Deal with frameless signals.
7201         (i386_saved_pc_after_call): Make sure the correct value is
7202         returned just after entry into a sigtramp.
7203         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7204         i386fbsd4_sc_sp_offset): New variables.
7205         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7206         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7207         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7208         similiar to what we already did for sc_pc_offset.
7209         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7210         tdep->sc_sp_offset.
7211
7212         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7213
7214 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7215
7216         * config/i386/tm-x86-64linux.h: New.
7217         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7218         definitions.
7219         * config/i386/nm-x86-64.h: Rename to ...
7220         * config/i386/nm-x86-64linux.h: ... this one.
7221         * config/i386/x86-64linux.mh: Reflect the above change.
7222         
7223 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7224
7225         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7226         with sigcontext_addr.  Add sc_sp_offset.
7227         (i386bsd_sigtramp_saved_pc): Remove prototype.
7228         (i386bsd_sicontext_addr): Add prototype.
7229         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7230         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7231         (i386_svr4_sigtramp_saved_pc): Removed.
7232         (i386_svr4_sigcontext_addr): New function.
7233         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7234         Initialize tdep->sigcontext_addr instead.  Initialize
7235         tdep->sc_pc_offset and tdep->sc_sp_offset.
7236         (i386_gdbarch_init): Likewise.
7237         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7238         any more.
7239         (i386bsd_sigtramp_saved_pc): Remove function.
7240         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7241         Initialize tdep->sigcontext_addr instead.  Initialize
7242         tdep->sc_pc_offset.
7243         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7244         of tdep->sigtramp_saved_pc.
7245         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7246         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7247         instead.
7248
7249         * i386-tdep.c (i386_frameless_function_invocation,
7250         i386_frame_num_args, i386_frame_init_saved_regs,
7251         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7252         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7253         i386_extract_return_value, i386_store_return_value,
7254         i386_extract_struct_value_address, i386_register_virtual_type,
7255         i386_register_convertible, i386_register_convert_to_virtual,
7256         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7257         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7258         static.
7259
7260 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7261
7262         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7263
7264         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7265         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7266         this macro.  Include "value.h".
7267
7268 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7269
7270         * ada-exp.tab.c: remove as it's a generated file
7271         * ada-lex.c: remove as it's a generated file
7272                 
7273 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7274
7275         * config/i386/tm-i386.h (struct frame_info, struct
7276         frame_saved_regs, struct value, struct type): Remove forward
7277         declarations.
7278
7279         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7280         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7281         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7282         (FILL_FPXREGSET): Define.
7283
7284         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7285
7286         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7287         i[3456]86-*-netbsd* case.
7288         * config/i386/tm-obsd.h: Removed.
7289         * config/i386/obsd.mt: Removed.
7290         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7291         core-aout.o.
7292         (MH_CFLAGS): Add -DYYDEBUG=0.
7293
7294         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7295         i386nbsd_sc_pc_offset on OpenBSD too.
7296
7297         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7298         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7299         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7300         define.
7301         * i386bsd-tdep.c: Include "arch-utils.h".
7302         (i386bsd_aout_in_solib_call_trampoline): New function.
7303         (i386bsd_init_abi): Set in_solib_call_trampoline to
7304         i386bsd_aout_in_solib_call_trampoline.
7305         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7306         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7307
7308 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7309
7310         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7311         (struct obstack, struct bcache): Add opaque declarations.
7312         * Makefile.in (macrotab_h): Update
7313
7314 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7315
7316         * blockframe.c (generic_find_dummy_frame): Change return type to
7317         ``struct regcache''.
7318         (struct dummy_frame): Replace field ``registers'' with regcache, a
7319         struct regcache object.
7320         (generic_find_dummy_frame): Update.
7321         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7322         regcache_xmalloc and regcache_cpy.
7323         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7324         regcache_xfree.
7325         (deprecated_generic_find_dummy_frame): Update.
7326         (generic_read_register_dummy): Update.  Use
7327         regcache_read_as_address.
7328         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7329         (generic_get_saved_register): Update.  Use regcache_read.
7330
7331 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7332
7333         * Makefile.in (objfiles_h): Add $(bcache_h).
7334         * objfiles.h: Include "bcache.h".
7335
7336         * Makefile.in (symtab_h): Remove $(bcache_h).
7337         * symtab.h: Do not include "bcache.h".
7338
7339 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7340
7341         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7342         generic_func_frame_chain_valid.
7343
7344 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7345
7346         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7347         * config/i386/tm-fbsd.h: Likewise.
7348
7349 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7350
7351         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7352         generic_unwind_get_saved_register.
7353
7354 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7355
7356         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7357         * regcache.c (supply_register): Add missing argument to
7358         register_buffer call.
7359
7360 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7361
7362         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7363         Solaris /bin/grep does not not like it.  From Peter Schauer.
7364
7365 2002-06-26  Tom Tromey  <tromey@redhat.com>
7366
7367         * command.h (add_setshow_cmd): Declare.
7368         (add_setshow_cmd_full): Declare.
7369         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7370         returns void.  Use add_setshow_cmd_full.
7371         (add_setshow_cmd_full): New function.
7372         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7373         (add_setshow_boolean_cmd): Likewise.
7374
7375 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7376
7377         * config/vax/tm-vax.h: Protect from multiple inclusion.
7378         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7379         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7380         * config/vax/tm-vaxbsd.h: ...here.  New file.
7381         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7382
7383 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7384
7385         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7386         (BELIEVE_PCC_PROMOTION): Remove.
7387         (AP_REGNUM): Move to...
7388         * config/vax/nm-vax.h: ...here.
7389         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7390         (vax_breakpoint_from_pc): New function.
7391         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7392         and gdbarch_believe_pcc_promotion.
7393
7394 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7395
7396         * Makefile.in (vax_tdep_h): Define.  
7397         (vax-tdep.o): Use $(vax_tdep_h).
7398         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7399         (vax_dump_tdep): New function. 
7400         (_initialize_vax_tdep): Register vax_dump_tdep.
7401         * vax-tdep.h: Include osabi.h.     
7402         (struct gdbarch_tdep): New. 
7403
7404 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7405
7406         * frame.h (deprecated_generic_find_dummy_frame): Rename
7407         generic_find_dummy_frame.
7408         * blockframe.c (generic_find_dummy_frame): Make static.
7409         (deprecated_generic_find_dummy_frame): New function.
7410         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7411         generic_find_dummy_frame with deprecated_find_dummy_frame.
7412         (sh64_nofp_frame_init_saved_regs): Ditto.
7413         (sh_fp_frame_init_saved_regs): Ditto.
7414         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7415         (s390_frame_chain): Ditto.
7416         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7417
7418 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7419
7420         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7421         gdbarch vector are at the top.
7422         (NUM_REGS): Remove.
7423         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7424         (FRAME_ARGS_ADDRESS): Remove.
7425         (FRAME_LOCALS_ADDRESS): Remove.
7426         (FRAME_NUM_ARGS): Remove.
7427         (FRAME_ARGS_SKIP): Remove.  
7428         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7429         (m68k_gdbarch_init): Add gdbarch initializations for macros
7430         undefined in tm-m68k.h
7431
7432 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7433
7434         * monitor.h: Add the function regname to monitor_ops
7435         structure. This way NUM_REGS does not have to be a constant.
7436         * monitor.c (monitor_fetch_register): Added support for regname
7437         function. The function is called if the array regnames is NULL.
7438         (monitor_store_register): Same.
7439         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7440         regnames array.
7441         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7442         cpu32bug_cmds.regname to point to new function.
7443         * abug-rom.c (abug_regname): Same as above.
7444         (init_abug_cmds): Same.
7445         * dbug-rom.c (dbug_regname): Same as above.
7446         (init_dbug_cmds): Same.
7447         * remote-est.c (est_regname): Same. 
7448         (init_est_cmds): Same.
7449         * rom68k-rom.c (rom68k_regname): Same. 
7450         (init_rom68k_cmds): Same.
7451
7452 2002-06-25  Tom Tromey  <tromey@redhat.com>
7453
7454         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7455
7456 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7457
7458         * infrun.c (stop_registers): Change variable's type to ``struct
7459         regcache'''.
7460         (xmalloc_inferior_status): Delete function.
7461         (free_inferior_status): Delete function.
7462         (normal_stop): Use regcache_cpy.
7463         (struct inferior_status): Change type of fields ``stop_registers''
7464         and ``registers'' to ``struct regcache''.
7465         (write_inferior_status_register): Use regcache_write.
7466         (save_inferior_status): Instead of calling
7467         xmalloc_inferior_status, allocate the inf_status buffer directly.
7468         Use regcache_dup_no_passthrough and regcache_dup to save the
7469         buffers.
7470         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7471         Replace the stop_registers regcache instead of overriding it.  Use
7472         regcache_xfree.  Instead of calling free_inferior_status, xfree
7473         the buffer directly.
7474         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7475         free_inferior_status, xfree the buffer directly.
7476         (build_infrun): Use regcache_xmalloc.
7477         (_initialize_infrun): Delete redundant call to build_infrun.
7478
7479         * Makefile.in (infcmd.o): Add $(regcache_h).
7480
7481         * infcmd.c: Include "regcache.h".
7482         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7483         obtain the address of `stop_registers' register buffer.
7484         (print_return_value): Ditto.
7485
7486         * inferior.h (struct regcache): Add opaque declaration.
7487         (stop_registers): Change variable's declared type to ``struct
7488         regcache''.
7489
7490 2002-06-24  Tom Tromey  <tromey@redhat.com>
7491
7492         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7493         * target.c (initialize_targets): Fixed typo in
7494         trust-readonly-sections `show' documentation.
7495
7496         * main.c: Marked all strings with _().
7497
7498 2002-06-24  Don Howard  <dhoward@redhat.com>
7499
7500         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7501         that means max CORE_ADDR+1.
7502         (lookup_mem_region): Ditto.
7503         (mem_info_command): Ditto.
7504
7505 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7506
7507         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7508         (REGISTER_BYTES_OK): Remove.
7509         (REGISTER_BYTES): Remove.
7510         (STORE_STRUCT_RETURN): Remove.
7511         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7512         (STORE_RETURN_VALUE): Remove.
7513         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7514         (FRAME_CHAIN): Remove.
7515         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7516         (FRAME_SAVED_PC): Remove.  
7517         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7518         (m68k_store_struct_return): Add.
7519         (m68k_deprecated_extract_return_value): Add.
7520         (m68k_deprecated_extract_struct_value_address): Add.
7521         (m68k_store_return_value): Add.
7522         (m68k_frame_chain): Add.
7523         (m68k_frameless_function_invocation): Add.
7524         (m68k_frame_saved_pc): Add.
7525         (m68k_gdbarch_init): added set_gdbarch calls for new 
7526         functions and deleted macros.
7527
7528 2002-06-23  Tom Tromey  <tromey@redhat.com>
7529
7530         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7531         (ALLDEPFILES): Likewise.
7532         (udiheaders): Removed.
7533         (udip2soc.o): Likewise.
7534         (udi2go32.o): Likewise.
7535         (udr.o): Likewise.
7536         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7537
7538 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7539
7540         * infrun.c (_initialize_infrun): Delete unnecessary call to
7541         build_infrun.
7542
7543         * regcache.h: Update comments describing the regcache_cpy family
7544         of functions.
7545         (regcache_save, regcache_restore): Delete declaration.
7546         (regcache_save_no_passthrough): Delete declaration.
7547         (regcache_restore_no_passthrough): Delete declaration.
7548         * regcache.c (regcache_save): Delete function.
7549         (regcache_save_no_passthrough): Delete function.
7550         (regcache_restore): Delete function.
7551         (regcache_restore_no_passthrough): Delete function.
7552
7553 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7554
7555         * config/m68k/tm-m68k.h: Fix typo.
7556         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7557         (m68k_frame_init_saved_regs): Declare.
7558
7559 2002-06-21  Jim Blandy  <jimb@redhat.com>
7560
7561         Remove some vestiges of Harris 88k support.
7562         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7563         register numbering quirk.
7564         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7565         odd symbols occurring in Harris 88k ELF targets.
7566
7567 2002-06-21  Tom Tromey  <tromey@redhat.com>
7568
7569         * gdb_locale.h: New file.
7570         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7571         (defs_h): Added gdb_locale.h.
7572         * configure, config.in: Rebuilt.
7573         * configure.in (PACKAGE): Define.
7574         * defs.h: Include gdb_locale.h.
7575         * main.c (captured_main): Call setlocale, bindtextdomain,
7576         textdomain.
7577
7578 2002-06-21  Dave Brolley  <brolley@redhat.com>
7579
7580         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7581         * config/frv/frv.mt: New file.
7582         * config/frv/tm-frv.h: New file.
7583         * configure.tgt: Support frv-*-*.
7584         * Makefile.in (frv-tdep.o): New target.
7585         * frv-tdep.c: New file.
7586         * NEWS: Mention frv.
7587
7588 2002-06-21  Dave Brolley  <brolley@redhat.com>
7589
7590         * MAINTAINERS: Add self to "Write After Approval" list.
7591
7592 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7593
7594         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7595         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7596         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7597         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7598         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7599
7600         * m68k-tdep.c: Include arch-utils.h
7601         (m68k_register_raw_size): Add.
7602         (m68k_register_virtual_size): Add.
7603         (m68k_register_virtual_type): Add.
7604         (m68k_register_name): Add.
7605         (m68k_stack_align): Add.
7606         (m68k_register_byte): Add.
7607         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7608         tm-m68k.h.
7609
7610 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7611
7612         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7613         m68k_find_saved_regs.
7614         (m68k_pop_frame): Removed saved_regs structure, and replaced
7615         references to it with frame->saved_regs.
7616         (m68k_gdbarch_init): Added function calls to initialize the
7617         gdbarch structure.
7618         (m68k_fix_call_dummy): Add. 
7619         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7620         (CALL_DUMMY): Remove.
7621         (CALL_DUMMY_LENGTH): Remove.
7622         (CALL_DUMMY_START_OFFSET): Remove.
7623         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7624         (FIX_CALL_DUMMY): Remove.
7625         (PUSH_DUMMY_FRAME): Remove.
7626         (POP_FRAME): Remove.
7627
7628 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7629
7630         * parse.c (parse_fprintf): New function used to avoid calls to
7631         fprintf in bison parser generated debug code.
7632         * parser-defs.h: Declaration of new parse_fprintf function.
7633         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7634         Set YYDEBUG to 1 by default.
7635         Set YYFPRINTF as parse_fprintf.
7636
7637 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7638
7639         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7640         encoding anymore.
7641         (pointer_encoding, enum ptr_encoding): New.
7642         (execute_cfa_program): Take care about pointer encoding.        
7643         (dwarf2_build_frame_info): Only call parse_frame_info for 
7644         .debug_frame and .eh_frame.
7645         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7646         fixed augmentation handling, added relative addressing, 
7647         ignore duplicate FDEs. Added comments.
7648         * dwarf2cfi.c: Reindented.
7649         
7650 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7651
7652         * event-top.c (command_handler): Don't use space_at_cmd_start
7653         unless there is sbrk() on the host. Assign time and space data
7654         to union fields of the appropriate length.
7655
7656 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7657
7658         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7659         x86_64_register_name. Return type changed to 'const char *'.
7660         (x86_64_register_name2nr): Rename to x86_64_register_number.
7661         (x86_64_gdbarch_init): Update to reflect the change.
7662         * x86-64-tdep.h: Ditto.
7663         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7664         (supply_fpregset): Ditto.
7665
7666 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7667
7668         * regcache.h: Update copyright.
7669         (struct regcache, struct gdbarch): Add opaque declarations.
7670         (current_regcache): Declare global variable.
7671         (regcache_read, regcache_write): Add gdbarch parameter.
7672         (regcache_save, regcache_save_no_passthrough)
7673         (regcache_restore, regcache_restore_no_passthrough)
7674         (regcache_dup, regcache_dup_no_passthrough)
7675         (regcache_cpy, regcache_cpy_no_passthrough)
7676         (deprecated_grub_regcache_for_registers)
7677         (deprecated_grub_regcache_for_register_valid)
7678         (regcache_valid_p): Add function declarations.
7679         
7680         * regcache.c: Update copyright.
7681         (regcache_descr_handle): New global variable.
7682         (struct regcache_descr): Define.
7683         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7684         (regcache_descr, xfree_regcache_descr): New functions.
7685         (struct regcache): Define.
7686         (regcache_xmalloc, regcache_xfree): New functions.
7687         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7688         (regcache_dup, regcache_dup_no_passthrough): New functions.
7689         (regcache_valid_p, regcache_read_as_address): New functions.
7690         (deprecated_grub_regcache_for_registers): New function.
7691         (deprecated_grub_regcache_for_register_valid): New function.
7692         (current_regcache): New global variable.
7693         (register_buffer): Add regcache parameter.  Update calls.
7694         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7695         (read_register_gen, write_register_gen): Update register_buffer
7696         call.  Test for legacy_p instead of gdbarch_register_read_p or
7697         gdbarch_register_write_p.
7698         (regcache_collect): Update register_buffer call.
7699         (build_regcache): Rewrite.  Use deprecated grub functions.
7700         (regcache_save, regcache_save_no_passthrough): New functions.
7701         (regcache_restore, regcache_restore_no_passthrough): New
7702         functions.
7703         (_initialize_regcache): Create the regcache_data_handle. Swap
7704         current_regcache global variable.
7705         
7706         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7707         parameter to regcache_read and regcache_write calls.
7708         (sh4_register_read): Ditto.
7709         (sh64_pseudo_register_read): Ditto.
7710         (sh64_register_read): Ditto.
7711         (sh_pseudo_register_write): Ditto.
7712         (sh4_register_write): Ditto.
7713         (sh64_pseudo_register_write): Ditto.
7714         (sh64_register_write): Ditto.
7715
7716         * defs.h (XCALLOC): Define.
7717
7718 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7719
7720         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7721         * m68k-tdep.c (m68k_gdbarch_init): Added.
7722         (m68k_dump_tdep): Added.
7723
7724 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7725
7726         * ada-lang.c (fill_in_ada_prototype): Update comment.
7727
7728 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7729
7730         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7731         MIPS_ABI_LAST.
7732         (mips_abi_string, mips_abi_strings): New.
7733         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7734         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7735         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7736         O32 if no ABI is found.
7737         (mips_dump_tdep): Use mips_abi_strings.
7738         (mips_abi_update): New function.
7739         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7740         ``set mips abi'' and ``show mips abi''.  Check the size of
7741         mips_abi_strings.
7742
7743 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7744
7745         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7746         constant.
7747
7748 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7749
7750         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7751         current frame using only the first stack size adjustment. All
7752         subsequent size adjustments are not considered to be part of
7753         the "static" part of the current frame.
7754         Compute the address of the saved registers relative to the
7755         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7756         in use in this frame.
7757
7758 2002-06-18  Don Howard  <dhoward@redhat.com>
7759  
7760         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7761         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7762         suggesting this solution.
7763
7764 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7765
7766         * config/romp/xm-rtbsd.h: Delete file.
7767         * config/romp/rtbsd.mh: Delete file.
7768
7769 2002-06-18  Keith Seitz  <keiths@redhat.com>
7770
7771         * breakpoint.c (condition_command): Post breakpoint_modify
7772         when a condition is added to an existing breakpoint.
7773         (commands_command): Likewise for commands.
7774         (set_ignore_count): Likewise for ignore counts.
7775         If no tty, do not simply return, still need to send event
7776         notification.
7777         (ignore_command): Only print a newline if the command came
7778         from a tty.
7779         Don't call breakpoints_changed, since this is now properly
7780         handled by set_ignore_count.
7781
7782 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7783
7784         * MAINTAINERS: Note that cris-elf target can be compiled with
7785         -Werror.
7786         * cris-tdep.c (cris_register_name): Make return type constant.
7787         (cris_breakpoint_from_pc): Ditto.
7788
7789 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7790
7791         * frame.h (struct frame_info): Change type of context to 
7792         'struct context'.
7793
7794 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7795
7796         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7797         pointer.
7798         * gdbarch.h, gdbarch.c: Regenerate.
7799         * config/mips/tm-mips.h (mips_register_name): Update.
7800         * i386-tdep.h (i386_register_name): Update.
7801         * mips-tdep.c (mips_register_name): Update
7802         * alpha-tdep.c (alpha_register_name): Update.
7803         * arch-utils.c (legacy_register_name): Update.
7804         * arch-utils.h (legacy_register_name): Update.
7805         * avr-tdep.c (avr_register_name): Update.
7806         * ia64-tdep.c (ia64_register_name): Update.
7807         * i386-tdep.c (i386_register_name): Update.
7808         * sparc-tdep.c (sparc32_register_name): Update.
7809         (sparc64_register_name): Update.
7810         (sparclite_register_name): Update.
7811         (sparclet_register_name): Update.
7812         * sh-tdep.c (sh_generic_register_name): Update.
7813         (sh_sh_register_name): Update.
7814         (sh_sh3_register_name): Update.
7815         (sh_sh3e_register_name): Update.
7816         (sh_sh_dsp_register_name): Update.
7817         (sh_sh3_dsp_register_name): Update.
7818         (sh_sh4_register_name): Update.
7819         (sh_sh64_register_name): Update.
7820         * s390-tdep.c (s390_register_name): Update.
7821         * rs6000-tdep.c (rs6000_register_name): Update.
7822         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7823         (ns32k_register_name_32382): Update.
7824         * d10v-tdep.c (d10v_ts2_register_name): Update.
7825         (d10v_ts3_register_name): Update.
7826         * xstormy16-tdep.c (xstormy16_register_name): Update.
7827         * vax-tdep.c (vax_register_name): Update.
7828         * v850-tdep.c (v850_register_name): Update.
7829         * m68hc11-tdep.c (m68hc11_register_name): Update.
7830         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7831         (am33_register_name): Update.
7832
7833 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7834
7835         * m68k-tdep.c: Reindented.
7836
7837 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7838
7839         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7840         list of predefined types.
7841
7842 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7843
7844         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7845         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7846         REGISTER_CONVERT_TO_RAW): Remove defines.
7847         (i386_register_virtual_type, i386_register_convertible,
7848         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7849         Remove prototypes.
7850         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7851         macros mentioned above.
7852
7853         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7854         (i386lynx_saved_pc_after_call): Remove prototype.
7855         * i386ly-tdep.c: Include "i386-tdep.h".
7856         (i386lynx_saved_pc_after_call): Make static.  Use
7857         read_memory_nobpt instead of read_memory.  Use
7858         read_memory_unsigned_integer instead of read_memory_integer.
7859         (i386lynx_init_abi): New function.
7860         (i386lynx_coff_osabi_sniffer): New function.
7861         (_initialize_i386bsd_tdep): New function.
7862
7863         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7864         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7865         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7866         (i386_fix_call_dummy): Remove prototype.
7867         * i386-tdep.c (i386_call_dummy_words): New variable.
7868         (i386_gdbarch_init): Adjust for removal of the
7869         macros mentioned above.
7870
7871 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7872
7873         * command.h (add_setshow_auto_boolean_cmd): Replace
7874         add_set_auto_boolean_cmd.
7875         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7876         add_set_auto_boolean_cmd.
7877         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7878         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7879         mask-address'' command.
7880         (show_mask_address): Add cmd parameter.
7881         * remote.c (add_packet_config_cmd): Update.  Change type of
7882         set_func and show_func to cmd_sfunc_ftype.
7883         (_initialize_remote): Update `set remote Z-packet'
7884         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7885         (show_remote_protocol_e_packet_cmd): Ditto.
7886         (show_remote_protocol_E_packet_cmd): Ditto.
7887         (show_remote_protocol_P_packet_cmd): Ditto.
7888         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7889         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7890         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7891         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7892         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7893         (show_remote_protocol_Z_packet_cmd): Ditto.
7894         (show_remote_protocol_binary_download_cmd): Ditto.
7895         (show_remote_cmd): Pass NULL to all of above.
7896
7897 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7898
7899         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7900         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7901         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7902         POP_FRAME): Remove defines.
7903         (i386_push_arguments, i386_store_struct_return,
7904         i386_extract_return_value, i386_store_return_value,
7905         i386_extract_struct_value_address, i386_push_dummy_frame,
7906         i386_pop_frame): Renove prototypes.
7907         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7908         macros mentioned above.
7909
7910 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7911
7912         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7913         add_set_boolean_cmd.
7914         (add_setshow_cmd): New function.
7915         * command.h (add_setshow_boolean_cmd): Replace
7916         add_set_boolean_cmd.
7917         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7918         and ``set rdiromatzero''.
7919         * maint.c (_initialize_maint_cmds): Update commented out code.
7920         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7921         * target.c (initialize_targets): Update `set
7922         trust-readonly-sections'.
7923         * remote.c (_initialize_remote): Update `set remotebreak'.
7924
7925 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7926
7927         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7928         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7929         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7930         fit into multi-arch framework.
7931         (i386_breakpoint_from_pc): New function.
7932         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7933         above.
7934
7935         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7936         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7937         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7938         (i386_frameless_function_invocation, i386_frame_num_args,
7939         i386_frame_init_saved_regs): Remove prototypes.
7940         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7941         macros mentioned above.
7942
7943 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7944
7945         * cli/cli-decode.c (set_cmd_cfunc): Update.
7946         (set_cmd_sfunc): Update.
7947         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7948         (set_cmd_sfunc, set_cmd_cfunc): Update.
7949         * cli/cli-decode.h: Update.
7950
7951 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7952
7953         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7954         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7955
7956 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7957
7958         * defs.h (auto_boolean): Declare enum.
7959         * command.h (cmd_auto_boolean): Delete enum.
7960         * mips-tdep.c (mask_address_var): Update.
7961         (mips_mask_address_p): Update.
7962         (show_mask_address): Update.
7963         * remote.c (struct packet_config): Update.
7964         (update_packet_config): Update.
7965         (show_packet_config_cmd): Update.
7966         (packet_ok): Update.
7967         (add_packet_config_cmd): Update.
7968         (_initialize_remote): 
7969         * command.h: Update.
7970         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7971         (do_setshow_command): Update.
7972         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7973         * cli/cli-decode.h: Update.
7974
7975 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7976
7977         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7978         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7979         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7980         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7981         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7982         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7983
7984         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7985         list of DJGPP COFF targets.
7986
7987         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7988         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7989         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7990         (FP0_REGNUM): Remove define.
7991         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7992         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7993         (i386_register_virtual_size): Remove protoype.
7994         * i386-tdep.c (i386_register_virtual_size): Removed.
7995         (i386_extract_return_value, i386_store_return_value): Use
7996         FP0_REGNUM instead of NUM_FREGS to determine whether the
7997         floating-point registers are available.
7998         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7999         Adjust for removal of macros mentioned above.
8000
8001 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8002
8003         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8004         comments.
8005         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8006         Remove prototypes.
8007         (supply_gregset, fill_gregset): Remove use of register keyword and
8008         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8009         NUM_REGS and NUM_FREGS.
8010         (FPREGSET_FSAVE_OFFSET): Remove.
8011         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8012         NUM_FREGS to determine whether the floating-point registers are
8013         available.
8014
8015         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8016         gnu_store_registers): Replace usage of NUM_GREGS with
8017         I386_NUM_GREGS.
8018
8019         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8020         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8021         usage of NUM_GREGS with I386_NUM_GREGS.
8022
8023         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8024
8025         * i386bsd-nat.c: Include "i386-tdep.h".
8026         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8027         I386_NUM_GREGS.
8028
8029         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8030         and associated comment.  They no longer make any sense, since we
8031         don't use this file anymore on Linux.
8032
8033         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8034         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8035         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8036         elements in these arrays.
8037         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8038         MAX_NUM_REGS.
8039
8040 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8041
8042         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8043         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8044
8045 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8046
8047         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8048         EXTRACT_RETURN_VALUE.
8049         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8050         EXTRACT_STRUCT_VALUE_ADDRESS.
8051         * gdbarch.h, gdbarch.c: Regenerate.
8052         
8053         * values.c (value_being_returned): Handle
8054         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8055         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8056
8057         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8058         * arm-tdep.c (arm_gdbarch_init): Update.
8059         * avr-tdep.c (avr_gdbarch_init): Update.
8060         * cris-tdep.c (cris_gdbarch_init): Update.
8061         * d10v-tdep.c (d10v_gdbarch_init): Update.
8062         * ia64-tdep.c (ia64_gdbarch_init): Update.
8063         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8064         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8065         * s390-tdep.c (s390_gdbarch_init): Update.
8066         * sh-tdep.c (sh_gdbarch_init): Update.
8067         * s390-tdep.c (s390_gdbarch_init): Update.
8068         * sparc-tdep.c (sparc_gdbarch_init): Update.
8069         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8070         * v850-tdep.c (v850_gdbarch_init): Update.
8071         * vax-tdep.c (vax_gdbarch_init): Update.
8072         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8073         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8074
8075         * config/arc/tm-arc.h: Update.
8076         * config/d30v/tm-d30v.h: Update.
8077         * config/fr30/tm-fr30.h: Update.
8078         * config/h8300/tm-h8300.h: Update.
8079         * config/h8500/tm-h8500.h: Update.
8080         * config/i386/tm-i386.h: Update.
8081         * config/i386/tm-ptx.h: Update.
8082         * config/i386/tm-symmetry.h: Update.
8083         * config/i960/tm-i960.h: Update.
8084         * config/m32r/tm-m32r.h: Update.
8085         * config/m68k/tm-delta68.h: Update.
8086         * config/m68k/tm-linux.h: Update.
8087         * config/m68k/tm-m68k.h: Update.
8088         * config/m88k/tm-m88k.h: Update.
8089         * config/mcore/tm-mcore.h: Update.
8090         * config/mips/tm-mips.h: Update.
8091         * config/mn10200/tm-mn10200.h: Update.
8092         * config/pa/tm-hppa.h: Update.
8093         * config/pa/tm-hppa64.h: Update.
8094         * config/sparc/tm-sp64.h: Update.
8095         * config/sparc/tm-sparc.h: Update.
8096         * config/sparc/tm-sparclet.h: Update.
8097         * config/z8k/tm-z8k.h: Update.
8098
8099 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8100
8101         * Makefile.in (i386_linux_tdep_h): Define.
8102         (i386_tdep_h, i387_tdep_h): Define.
8103         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8104         $(i386_tdep_h) and $(i387_tdep_h).
8105         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8106
8107 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8108
8109         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8110         Already covered by the default.
8111
8112         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8113         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8114         (i386_gdbarch_init): Initialize long_double_format and long_double
8115         bit.
8116
8117         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8118         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8119         Move these to ...
8120         * config/i386/i386sol2.mh: ... here.
8121         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8122         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8123         (SIGCONTEXT_PC_OFFSET): Remove define.
8124         (IN_SIGTRAMP): Remove define.
8125         * i386-sol2-tdep.c: New file.
8126         
8127         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8128         * config/i386/tm-i386nw.h: Removed.
8129
8130         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8131         USE_STRUCT_CONVENTION): Remove defines.
8132         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8133         (get_longjmp_target): Remove prototype.
8134         (IN_SIGTRAMP): Remove define.
8135         (i386bsd_in_sigtramp): Remove prototype.
8136         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8137         function.  Update comment accordingly
8138         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8139         (FRAME_SAVED_PC): Remove define.
8140         (i386bsd_frame_saved_pc): Remove prototype.
8141         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8142         GET_LONGJMP_TARGET): Remove defines.
8143         (get_longjmp_target): Remove prototype.
8144         (IN_SIGTRAMP): Remove define.
8145         (i386bsd_in_sigtramp): Remove prototype.
8146         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8147         function.  Update comment accordingly
8148         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8149         (FRAME_SAVED_PC): Remove define.
8150         (i386bsd_frame_saved_pc): Remove prototype.
8151         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8152         Remove prototype.
8153         (USE_STRUCT_CONVENTION): Remove prototype.
8154         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8155         declaration.
8156         (_initialize_i386bsd_nat): Revise logic to determine some
8157         constants at compile time when compiling a native GDB.  Warn if
8158         things don't match up with what we expect.
8159         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8160         Remove variables.
8161         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8162         to use date stored in `struct gdbarch_tdep'.
8163         (i386bsd_sigcontext_offset): Remove varaible.
8164         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8165         stored in `struct gdbarch_tdep'.
8166         (i386bsd_frame_saved_pc): Make static.
8167         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8168         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8169         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8170         i386fbsd4_sc_pc_offset): New variables.
8171         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8172         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8173         functions.
8174         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8175         functions.
8176         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8177         Modify the value of i386fbsd_sigtramp_start and
8178         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8179         i386fbsd_sigtramp_end.
8180         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8181         function.
8182
8183         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8184         define to i386-linux-tdep.h.
8185         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8186         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8187         defines.
8188         (i386_linux_register_name, i386_linux_register_byte,
8189         i386_linux_register_raw_size): Remove prototypes.
8190         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8191         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8192         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8193         TARGET_WRITE_PC): Remove defines.
8194         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8195         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8196         i386_linux_write_pc): Remove prototypes.
8197         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8198         (get_longjmp_target): Remove prototype.
8199         * i386-linux-tdep.h: New file.
8200         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8201         * i386-linux-tdep.c: Include "i386-tdep.h" and
8202         "i386-linux-tdep.h".
8203         (i386_linux_register_name, i386_linux_register_byte,
8204         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8205         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8206         Make static.
8207         (i386_linux_init_abi): New function.
8208         (_initialize_i386_linux_tdep): New function.
8209
8210         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8211         (i386_saved_pc_after_call): Remove prototype.
8212         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8213         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8214         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8215         (i386_register_name, i386_stab_reg_to_regnum,
8216         i386_dwarf_reg_to_regnum): Remove prototypes.
8217         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8218         SIZEOF_SSE_REGS): Remove defines.
8219         (REGISTER_BYTES): Remove define.
8220         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8221         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8222         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8223         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8224         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8225         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8226         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8227         (get_longjmp_target): Remove prototype.
8228         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8229         (sigtramp_saved_pc): Remove define.
8230         (i386v4_sigtramp_saved_pc): Remove prototype.
8231         * config/i386/tm-go32.h (FRAME_CHAIN,
8232         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8233         (i386go32_frame_saved_pc): Remove prototype.
8234         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8235         (get_longjmp_target): Remove prototype.
8236         * i386-tdep.h: Include "osabi.h".
8237         (enum i386_abi): Removed.
8238         (enum struct_return): New enum.
8239         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8240         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8241         sc_pc_offset members.
8242         (i386_gdbarch_register_os_abi): Remove prototype.
8243         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8244         I386_SSE_NUM_REGS): New defines.
8245         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8246         I386_SSE_SIZEOF_REGS): New defines.
8247         (i386_register_name, i386_register_byte, i386_register_raw_size):
8248         New prototypes.
8249         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8250         (i386bsd_sigtramp_saved_pc): New prototype.
8251         * i386-tdep.c: Don't include "elf-bfd.h".
8252         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8253         i386_frame_chain, i386_saved_pc_after_call): Make static.
8254         (i386_frame_saved_pc): Rewrite to call architecture dependent
8255         function to deal with signal handlers.  Make static.
8256         (i386go32_frame_saved_pc): Removed.
8257         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8258         Removed.
8259         (i386_get_longjmp_target): New function.
8260         (default_struct_convention, pcc_struct_convention,
8261         reg_struct_convention, valid_conventions, struct_convention): New
8262         variables.
8263         (i386_use_struct_convention): New function.
8264         (i386v4_sigtramp_saved_pc): Renamed to
8265         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8266         (i386_pc_in_sigtramp): New function.
8267         (i386_abi_names): Removed.
8268         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8269         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8270         Removed.
8271         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8272         i386_gdbarch_register_os_abi): Removed.
8273         (struct i386_abi_handler): Removed.
8274         (i386_abi_handler_list): Removed.
8275         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8276         functions.
8277         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8278         i386_nw_init_abi): New functions.
8279         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8280         Use set_gdbarch_xxx() calls instead of relying on macros for a
8281         number of calls.
8282         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8283         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8284         Register the various architecture variants defined in this file.
8285
8286 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8287
8288         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8289         (struct main_type): Remove arg_types member.  Update comments for
8290         struct field.
8291         (TYPE_ARG_TYPES): Remove.
8292         (TYPE_FN_FIELD_ARGS): Update.
8293         (smash_to_method_type): Update prototype.
8294
8295         * c-typeprint.c (cp_type_print_method_args): Take method type
8296         instead of argument list.  Use new argument layout.  Simplify.
8297         (c_type_print_args): Use new argument layout.  Simplify.
8298         (c_type_print_base): Update call to cp_type_print_method_args.
8299         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8300         argument; use die->type instead.  Update call to
8301         smash_to_method_type.
8302         (read_structure_scope): Update call to dwarf2_add_member_fn.
8303         * gdbtypes.c (allocate_stub_method): Update comment.
8304         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8305         Use new argument layout.
8306         (check_stub_method): Use new argument layout.  Don't count
8307         void as an argument.
8308         (print_arg_types): Update comments.  Use new argument layout.
8309         (recursive_dump_type): Don't print arg_types member.
8310         * hpread.c (hpread_read_struct_type): Use new argument layout.
8311         (fixup_class_method_type): Likewise.
8312         (hpread_type_lookup): Likewise.
8313         * stabsread.c (read_type): Update calls to read_args and
8314         smash_to_method_type.
8315         (read_args): Use new argument layout.  Simplify.
8316         * valops.c (typecmp): Use new argument layout.  Update parameters
8317         and comments.  Simplify.
8318         (hand_function_call): Use new argument layout.
8319         (search_struct_method): Update call to typecmp.
8320         (find_overload_match): Use new argument layout.
8321
8322 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8323
8324         * NEWS: Mention multithreaded debug support for gdbserver.
8325
8326 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8327
8328         * MAINTAINERS: Mention NEWS.
8329
8330 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8331
8332         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8333         (struct mips_objfile_private, compare_pdr_entries): New.
8334         (non_heuristic_proc_desc): Read the ".pdr" section if it
8335         is present.
8336
8337 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8338
8339         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8340         (arm_debug): New static variable.
8341         (_initialize_arm_tdep): Add ``set debug arm'' command.
8342
8343 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8344
8345         * Makefile.in (sim_arm_h): Define.
8346         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8347         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8348         (arm_register_sim_regno): New function, map an internal REGNUM
8349         onto a simulator register number.
8350         (arm_gdbarch_init): Set register_sim_regno.
8351
8352 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8353
8354         * MAINTAINERS: Add self.
8355
8356 2002-06-11  Jim Blandy  <jimb@redhat.com>
8357
8358         * source.c (source_info): Mention whether the symtab has
8359         information about preprocessor macros.
8360
8361         Call the command `info macro', not `show macro'.
8362         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8363         Fix error message.
8364         (_initialize_macrocmd): Register `info_macro_command' in
8365         `infolist', not `showlist'.
8366
8367 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8368
8369         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8370         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8371         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8372         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8373         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8374         unconditionally.
8375         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8376         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8377         (_initialize_mips_tdep): Remove dead code.
8378         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8379         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8380         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8381         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8382         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8383         MIPS_LAST_FP_ARG_REGNUM): Remove.
8384
8385 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8386
8387         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8388         (unwind_tmp_obstack_free, parse_frame_info)
8389         (update_context, cfi_read_fp, cfi_write_fp)
8390         (cfi_frame_chain, cfi_init_extra_frame_info)
8391         (cfi_virtual_frame_pointer): Use the above function.
8392         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8393
8394 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8395
8396         * v850-tdep.c (v850_type_is_scalar): New function.
8397         (v850_use_struct_convention): Match current gcc implementation
8398         as close as possible.
8399         (v850_push_arguments): Fix stack_offset handling.  Don't write
8400         struct_addr into register.  This is done by v850_store_struct_return.
8401         (v850_extract_return_value): Care for structs.
8402         (v850_store_return_value): Ditto.
8403         (v850_store_struct_return): Actually write address.
8404
8405 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8406
8407         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8408         without debug information too.
8409
8410 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8411
8412         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8413         Make multi-arch pure.
8414         * gdbarch.h, gdbarch.c: Re-generate.
8415         * arm-tdep.c (arm_print_float_info): Update.
8416         * arch-utils.h (default_print_float_info): Update.
8417         * arch-utils.c (default_print_float_info): Update.
8418         * infcmd.c (float_info): Update call.
8419
8420 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8421
8422         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8423         the front of the initialize list.
8424
8425 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8426
8427         * infrun.c (struct inferior_status): Replace fields
8428         selected_frame_address and selected_level with field
8429         selected_frame_id.
8430         (save_inferior_status): Update.  Use get_frame_id.
8431         (struct restore_selected_frame_args): Delete.
8432         (restore_selected_frame): Update.  Use frame_find_by_id.
8433         (restore_inferior_status): Update.
8434
8435         * breakpoint.h (struct breakpoint): Change type of
8436         watchpoint_frame to frame_id.
8437         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8438         call to get_current_frame.
8439         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8440         get_current_frame.
8441         (watchpoint_check): Use frame_find_by_id.
8442
8443         * frame.h (record_selected_frame): Delete declaration.
8444         * stack.c (record_selected_frame): Delete function.
8445         
8446         * frame.h (struct frame_id): Define.
8447         (get_frame_id): Declare.
8448         (frame_find_by_id): Declare.
8449         * frame.c (frame_find_by_id): New function.
8450         (get_frame_id): New function.
8451
8452 2002-06-10  Andrey Volkov <avolkov@transas.com>
8453
8454         * ser-e7kpc.c: Fix duplicated define and call of 
8455         _initialize_ser_e7000pc
8456             
8457 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8458
8459         * signals/signals.c (target_signal_from_host): Fix #ifdef
8460         SIGRTMIN case.
8461         (do_target_signal_to_host): Likewise.
8462
8463 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8464
8465         * mips-tdep.c (mips_find_abi_section): New function.
8466         (mips_gdbarch_init): Call it.
8467
8468 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8469
8470         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8471         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8472         after Andrew's 2002-06-08 gdbarch change.
8473
8474 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8475
8476         * i386-linux-nat.c (suppy_gregset): Don't supply
8477         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8478         register cache.
8479         (fill_gregset): Don't fetch it under the same circumstances.
8480
8481 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8482
8483         * Makefile.in (callback_h): Define.
8484         (remote_sim_h): Update path to remote-sim.h.
8485         (remote-rdp.o): Add $(callback_h).
8486         (remote-sim.o): Use $(callback_h).
8487         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8488         * remote-rdp.c: Include "gdb/callback.h".
8489
8490 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8491
8492         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8493         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8494
8495 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8496
8497         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8498         * rdi-share/serpardr.c: Ditto.
8499         * rdi-share/unixcomm.c: Ditto.
8500         * rdi-share/serdrv.c: Ditto.
8501         * rdi-share/hostchan.h: Ditto.
8502         * rdi-share/hostchan.c: Ditto.
8503         * rdi-share/host.h: Ditto.
8504         * rdi-share/devsw.c: Ditto.
8505
8506         * objfiles.h: Change type of obj_private to void pointer.
8507         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8508         strcmp instead of STREQ, use LONGEST, do not use PTR
8509         * somsolib.c: Ditto.
8510
8511         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8512         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8513         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8514
8515 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8516
8517         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8518         (default_get_saved_register): Delete function.
8519         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8520         generic_unwind_get_saved_register.
8521         * gdbarch.h, gdbarch.c: Re-generate.
8522         
8523 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8524
8525         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8526         generic_func_frame_chain_valid.
8527         * gdbarch.h, gdbarch.c: Re-generate.
8528         * blockframe.c (generic_func_frame_chain_valid): Only check
8529         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8530         passing FP to PC_IN_CALL_DUMMY.
8531         Fix PR gdb/360.
8532
8533 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8534
8535         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8536         (register_gdbarch_data): Initialize init_p.
8537         (gdbarch_data): Initialize data pointer using the init function.
8538         (init_gdbarch_data): Delete function.
8539         (gdbarch_update_p): Update.
8540         (initialize_non_multiarch): Update.
8541         (struct gdbarch): Add field initialized_p.
8542         * gdbarch.h, gdbarch.c: Re-generate.
8543
8544 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8545
8546         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8547         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8548         better do the things actually here.
8549         * x86-64-tdep.c (x86_64_register_name2nr): New.
8550         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8551         (x86_64_gdbarch_init): Respect the above change.
8552         * x86-64-tdep.h (x86_64_register_name2nr)
8553         (x86_64_register_nr2name): Add prototypes.
8554         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8555
8556 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8557
8558         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8559         Delete extra braces and re-indent.
8560         (d10v_store_return_value): Char return values
8561         must be shifted over by one byte in R0.
8562         (d10v_extract_return_value): Delete extra braces, re-indent.
8563
8564 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8565
8566         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8567         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8568         (d10v_integer_to_address): Rewrite.
8569         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8570         the d10v specific functions which take care of converting to the
8571         correct space.
8572
8573 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8574
8575         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8576         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8577
8578 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8579
8580         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8581         includes.
8582         * config/tm-linux.h: Ditto.
8583         * config/alpha/tm-alphalinux.h: Ditto.
8584         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8585         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8586         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8587         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8588         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8589         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8590         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8591         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8592         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8593         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8594         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8595         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8596         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8597         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8598         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8599         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8600         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8601         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8602         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8603         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8604         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8605         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8606         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8607         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8608         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8609         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8610         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8611         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8612         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8613         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8614         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8615         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8616         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8617         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8618         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8619         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8620         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8621
8622 2002-05-04  Aidan Skinner <aidan@velvet.net>
8623
8624         * ada-exp.tab.c: New file
8625         * ada-exp.y: New file
8626         * ada-lang.c: New file
8627         * ada-lang.h: New file
8628         * ada-lex.c: New file
8629         * ada-lex.l: New file
8630         * ada-tasks.c: New file
8631         * ada-typeprint.c: New file
8632         * ada-valprint.c: New file
8633         
8634 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8635
8636         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8637         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8638
8639 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8640
8641         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8642         insetead of ppc-linux-tdep.o.
8643         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8644         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8645
8646 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8647
8648         2002-05-07 Christian Groessler <chris@groessler.org>
8649         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8650         bit register contents for little endian hosts.
8651
8652 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8653
8654         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8655         any maintainer.
8656
8657 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8658
8659         * gdbarch.h: Regenerate.
8660
8661 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8662
8663         * MAINTAINERS: Add everyone to write-after-approval list.
8664
8665 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8666
8667         * stack.c (frame_info): Use frame_register_unwind instead of
8668         saved_regs.  Mention when the SP is on the stack or in a register.
8669
8670         * frame.h (frame_register_unwind_ftype): Define.  Document.
8671         (struct frame_info): Add field register_unwind and
8672         register_unwind_cache.
8673         (frame_register_unwind): Declare.
8674         (generic_unwind_get_saved_register): Declare.
8675
8676         * frame.c (frame_register_unwind): New function.
8677         (generic_unwind_get_saved_register): New function.
8678
8679         * blockframe.c (generic_call_dummy_register_unwind): New function.
8680         (frame_saved_regs_register_unwind): New function.
8681         (set_unwind_by_pc): New function.
8682         (create_new_frame): New function.
8683         (get_prev_frame): New function.
8684
8685 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8686
8687         * a29k-share/: Delete directory.
8688         * remote-vx29k.c: Delete file.
8689
8690 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8691
8692         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8693         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8694
8695 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8696
8697         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8698         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8699         (sparc64nbsd-nat.o)
8700         (sparcnbsd-nat.o)
8701         (sparcnbsd-tdep.o): New dependency lists.
8702         * NEWS: Note new UltraSPARC NetBSD native configuration.
8703         * configure.host (sparc64-*-netbsd*): New host.
8704         * configure.tgt (sparc-*-netbsdelf*)
8705         (sparc-*-netbsd*): Set gdb_target to nbsd.
8706         (sparc64-*-netbsd*): New target.
8707         * sparc64nbsd-nat.c: New file.
8708         * sparcnbsd-nat.c: New file.
8709         * sparcnbsd-tdep.c: New file.
8710         * sparcnbsd-tdep.h: New file.
8711         * config/sparc/nbsd.mt: New file.
8712         * config/sparc/nbsd64.mh: New file.
8713         * config/sparc/nbsd64.mt: New file.
8714         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8715         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8716         (HOST_IPC): Remove.
8717         * config/sparc/nbsdaout.mt: Remove.
8718         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8719         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8720         (HOST_IPC): Remove.
8721         * config/sparc/nbsdelf.mt: Remove.
8722         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8723         sparc-nat.c compatiblity defines.
8724         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8725         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8726         * config/sparc/tm-nbsd64.h: New file.
8727         * config/sparc/tm-nbsdaout.h: Remove.
8728         * config/sparc/xm-nbsd.h: Remove.
8729
8730 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8731
8732         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8733         * sparc-tdep.c: Include osabi.h.
8734         (gdbarch_tdep): Add osabi member.
8735         (_initialize_sparc_tdep): Use gdbarch_register.
8736         (sparc_gdbarch_init): Use generic OS ABI framework.
8737         (sparc_dump_tdep): New function.
8738
8739 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8740
8741         * corefile.c (do_captured_read_memory_integer): Return non-zero
8742         result.
8743         (safe_read_memory_integer): Copy result of memory read when
8744         status is non-zero.  Also, add comments.
8745
8746 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8747
8748         * Makefile.in (ppc_tdep_h): Define.
8749         (ppc-linux-nat.o)
8750         (ppc-linux-tdep.o)
8751         (rs6000-tdep.o): Use $(ppc_tdep_h).
8752         (ppc-sysv-tdep.o)
8753         (ppcnbsd-nat.o)
8754         (ppcnbsd-tdep.o): New dependency lists.
8755         * ppc-tdep.h: Use generic OS ABI framework.
8756         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8757         (ppc_linux_init_abi): New functions.
8758         (ppc_sysv_abi_broken_use_struct_convention)
8759         (ppc_sysv_abi_use_struct_convention)
8760         (ppc_sysv_abi_push_arguments): Move to...
8761         * ppc-sysv-tdep.c: ...here.
8762         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8763         * rs6000-tdep.c (process_note_abi_tag_sections)
8764         (get_elfosabi): Remove.
8765         (rs6000_gdbarch_init): Use generic OS ABI framework.
8766         (rs6000_dump_tdep): New function.
8767         (_initialize_rs6000_tdep): Use gdbarch_register.
8768         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8769         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8770         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8771         of ppc-linux-tdep.o.
8772         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8773         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8774         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8775         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8776         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8777         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8778
8779 2002-05-29  Jim Blandy  <jimb@redhat.com>
8780
8781         * macroscope.c (default_macro_scope): Put `void' in empty argument
8782         list.
8783
8784 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8785
8786         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8787         * arch-utils.c: Include "sim-regno.h".
8788         * gdbarch.sh: Don't include "sim-regno.h".
8789         * gdbarch.h, gdbarch.c: Regenerate.
8790         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8791         here.
8792         * arch-utils.h (legacy_register_sim_regno): To here.
8793         * remote-sim.c (legacy_register_sim_regno): Move function from
8794         here.
8795         * arch-utils.c (legacy_register_sim_regno): To here.
8796
8797 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8798
8799         * sim-regno.h: New file.
8800         * Makefile.in (sim_regno_h): Define.
8801         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8802         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8803         (legacy_register_sim_regno): New function.
8804         (one2one_register_sim_regno): New function.
8805         (gdbsim_fetch_register): Rewrite.
8806         (gdbsim_store_register): Only store a register when
8807         REGISTER_SIM_REGNO is valid.
8808         * d10v-tdep.c: Include "sim-regno.h".
8809         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8810         (d10v_ts3_register_sim_regno): Ditto.
8811         * gdbarch.sh: Include "sim-regno.h".
8812         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8813         * gdbarch.h, gdbarch.c: Regenerate.
8814         * arch-utils.h (default_register_sim_regno): Delete declaration.
8815         * arch-utils.c (default_register_sim_regno): Delete function.
8816
8817 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8818
8819         * ppcnbsd-nat.c: Rewrite.
8820         * ppcnbsd-tdep.c: New file.
8821         * ppcnbsd-tdep.h: New file.
8822         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8823         solib.o, and solib-svr4.o.
8824         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8825         nbsd-tdep.o, and corelow.o.
8826
8827 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8828
8829         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8830         `tr' and `sed'.  Mention that `broken' targets are not expected to
8831         build.
8832
8833 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8834
8835         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8836         Let PC point right after the prologue before looking up symbols.
8837         
8838 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8839
8840         * i386-tdep.c (i386_register_virtual_type): Return 
8841         builtin_type_vec128i for SSE registers.
8842
8843         * gdbtypes.h (builtin_type_vec128i): Declare.
8844
8845         * gdbtypes.c (build_builtin_type_vec128i): New function.
8846         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8847         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8848         (build_gdbtypes): Initialize new builtin vector types.
8849         (_initialize_gdbtypes): Register new vector types with gdbarch.
8850
8851 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8852
8853         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8854         since it has been multi-arch'd.
8855         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8856         Move Alpha and VAX multi-arch news entries to same section
8857         as other multi-arch news.
8858
8859 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8860
8861         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8862         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8863         static.  Rename some register numbers to put them in ns32k-tdep
8864         private namespace.
8865         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8866         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8867         functions.
8868         (_initialize_ns32k_tdep): Use gdbarch_register.
8869         * ns32k-tdep.h: New file.
8870         * ns32knbsd-tdep.c: New file.
8871         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8872         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8873         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8874         REGISTER_BYTES, REGISTER_BYTE): Remove.
8875         * config/ns32k/tm-ns32k.h: New file.
8876         * config/ns32k/tm-umax.h: Remove.
8877
8878 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8879
8880         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8881         ns32k_store_struct_return, ns32k_extract_return_value,
8882         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8883         functions.
8884         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8885         ns32k_saved_pc_after_call.
8886         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8887         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8888         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8889         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8890         ns32k_extract_struct_value_address.
8891
8892 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8893
8894         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8895         ns32k_fix_call_dummy): New.
8896         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8897         ns32k_call_dummy_words.
8898         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8899         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8900         CALL_DUMMY_NARGS): Remove.
8901         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8902
8903 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8904
8905         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8906         ns32k_frame_saved_pc, ns32k_frame_args_address,
8907         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8908         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8909         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8910         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8911         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8912         (BREAKPOINT): Remove..
8913         (FRAME_CHAIN): Define as ns32k_frame_chain.
8914         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8915         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8916         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8917         (FRAME_FIND_SAVED_REGS): Remove.
8918         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8919         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8920         (POP_FRAME): Define as ns32k_pop_frame.
8921
8922 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8923
8924         * ns32k-tdep.c (ns32k_register_byte_32082,
8925         ns32k_register_byte_32382, ns32k_register_raw_size,
8926         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8927         functions.
8928         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8929         ns32k_register_byte_32382.
8930         * config/ns32k/tm-umax.h: Update copyright years.
8931         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8932         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8933         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8934         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8935         (ns32k_get_enter_addr): Fix prototype.
8936
8937 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8938
8939         * ns32k-tdep.c: Update copyright years.
8940         (ns32k_register_name_32082): New function.
8941         (ns32k_register_name_32382): Ditto.
8942         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8943         (REGISTER_NAME): Define as ns32k_register_name_32382.
8944         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8945         (REGISTER_NAME): Define as ns32k_register_name_32082.
8946
8947 2002-05-24  Jim Blandy  <jimb@redhat.com>
8948
8949         * dwarf2read.c (free_line_header): Use xfree, not free.
8950
8951 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8952
8953         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8954         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8955
8956 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8957
8958         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8959
8960 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8961
8962         From Ross Alexander at NEC Europe:
8963         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8964
8965 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8966
8967         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8968         for input, rather than parse_and_eval_address.  
8969
8970 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8971
8972         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8973         * Makefile.in (sim_d10v_h): Update definition.
8974
8975 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8976
8977         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8978         change `2002-05-22 Michael Snyder' below.
8979         (d10v_push_arguments): Ditto.
8980         (d10v_extract_return_value): Ditto.
8981
8982 2002-05-23  Jim Blandy  <jimb@redhat.com>
8983
8984         * macrotab.c (check_for_redefinition): Don't complain if the new
8985         definition is the same as the previous one.  Take more arguments
8986         to allow the comparison.
8987         (macro_define_object, macro_define_function): Pass more arguments
8988         to check_for_redefinition.
8989
8990 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8991
8992         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8993         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8994         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8995         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8996         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8997         Add a temp variable to save a call (and a memory read).
8998         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8999         if possible (so that PC_IN_CALL_DUMMY will work).
9000
9001 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9002
9003         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9004
9005 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9006
9007         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9008         fde->cie_ptr.
9009         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9010         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9011         so that frames of shared libraries are mapped correctly.
9012         (execute_stack_op): Change type of 'result' from ULONGEST to
9013         CORE_ADDR.
9014         
9015 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9016
9017         * config/alpha/tm-nbsd.h: Include solib.h.
9018
9019 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9020
9021         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9022         assumptions about the host's byte order.
9023
9024 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9025
9026         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9027         to dependency list.
9028         * alphanbsd-tdep.c: Include solib-svr4.h.
9029         * shnbsd-tdep.c: Ditto.
9030
9031 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9032
9033         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9034         nbsd-tdep.h to dependency list.
9035         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9036         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9037         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9038         nbsdaout.mh and nbsdelf.mh consistently.
9039         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9040         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9041         nbsdaout.mt and nbsdelf.mh consistently.
9042         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9043         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9044         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9045         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9046         a.out shared library stuff from here...
9047         * config/nm-nbsdaout.h: ...to here.
9048         * config/tm-nbsd.h: Remove.
9049         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9050         * config/arm/nbsd.mh: Remove.
9051         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9052         nbsd-tdep.o.
9053         * config/arm/nbsdaout.mh: New file. 
9054         * config/arm/nbsdelf.mh: New file.
9055         * config/arm/nm-nbsdaout.h: New file.
9056         * config/i386/nbsd.mh: Remove.
9057         * config/i386/nbsd.mt: Remove.
9058         * config/i386/nbsdaout.mh: New file.
9059         * config/i386/nbsdaout.mt: New file.
9060         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9061         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9062         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9063         i386_register_u_addr): Remove.
9064         * config/i386/nm-nbsdaout.h: New file.
9065         * config/i386/nm-nbsdelf.h: Remove.
9066         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9067         (USE_STRUCT_CONVENTION): Remove.
9068         * config/i386/tm-nbsdaout.h: New file.
9069         * config/i386/tm-nbsdelf.h: Remove.
9070         * config/m68k/nbsd.mh: Remove.
9071         * config/m68k/nbsd.mt: Remove.
9072         * config/m68k/nbsdaout.mh: New file.
9073         * config/m68k/nbsdaout.mt: New file. 
9074         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9075         * config/m68k/nm-nbsdaout.h: New file.
9076         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9077         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9078         * config/ns32k/nbsd.mh: Remove.
9079         * config/ns32k/nbsd.mt: Remove. 
9080         * config/ns32k/nbsdaout.mh: New file.
9081         * config/ns32k/nbsdaout.mt: New file.
9082         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9083         * config/ns32k/nm-nbsdaout.h: New file.
9084         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9085         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9086         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9087         (SVR4_SHARED_LIBS): Remove.
9088         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9089         * config/sparc/nbsd.mh: Remove.
9090         * config/sparc/nbsd.mt: Remove.
9091         * config/sparc/nbsdaout.mh: New file.
9092         * config/sparc/nbsdaout.mt: New file.
9093         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9094         * config/sparc/nbsdelf.mt: New file.
9095         * config/sparc/nm-nbsdaout.h: New file.   
9096         * config/sparc/nm-nbsdelf.h: Remove.
9097         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9098         * config/sparc/tm-nbsdaout.h: New file.
9099
9100 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9101
9102         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9103         mipsnbsd-tdep.c
9104         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9105
9106 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9107
9108         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9109         shnbsd-nat.c.
9110         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9111
9112 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9113
9114         * NEWS: Note new MIPS NetBSD native configuration. 
9115         * configure.host (mips*-*-netbsd*): New host. 
9116         * configure.tgt (mips*-*-netbsd*): New target. 
9117         * mipsnbsd-nat.c: New file.
9118         * mipsnbsd-tdep.c: New file.
9119         * mipsnbsd-tdep.h: New file.
9120         * config/mips/nbsd.mh: New file.
9121         * config/mips/nbsd.mt: New file.
9122         * config/mips/nm-nbsd.h: New file.
9123         * config/mips/tm-nbsd.h: New file.
9124
9125 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9126
9127         * Makefile.in (SFILES): Add osabi.c.
9128         (COMMON_OBS): Add osabi.o.
9129         (osabi.o): New dependency list.
9130         * osabi.c: New file.
9131         * osabi.h: New file.
9132         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9133
9134         * Makefile.in (alpha_tdep_h): Define and use instead of
9135         alpha-tdep.h.
9136         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9137         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9138         Remove.
9139         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9140         * alpha-tdep.h: Include osabi.h.
9141         (alpha_abi): Remove.
9142         (gdbarch_tdep): Use generic OS ABI framework.
9143         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9144         gdbarch_register_osabi.
9145         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9146         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9147         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9148
9149         * Makefile.in (sh_tdep_h): Add osabi.h.
9150         * sh-tdep.h (sh_osabi): Remove.
9151         (gdbarch_tdep): Use generic OS ABI framework.
9152         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9153         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9154         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9155         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9156
9157         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9158         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9159         gdbarch_register_osabi.
9160         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9161         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9162         (get_elfosabi): Rename to...
9163         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9164         ABI framework support routines.
9165         (arm_gdbarch_init): Use generic OS ABI framework.
9166         (arm_dump_tdep): Likewise.
9167         (_initialize_arm_tdep): Likewise.
9168         * arm-tdep.h: Include osabi.h.
9169         (arm_abi): Remove.
9170         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9171         osabi member.
9172         (arm_gdbarch_register_os_abi): Remove prototype.
9173         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9174         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9175
9176         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9177         * mips-tdep.c: Include osabi.h.
9178         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9179         OS ABI framework.
9180
9181 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9182
9183         * h8300-tdep.c: Fix formatting.
9184
9185 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9186
9187         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9188         printing vector registers.
9189
9190 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9191
9192         From Fernando Nasser:
9193         * remote.c (remote_async_open_1): Re-throw the exception when the
9194         connection fails.
9195         (remote_cisco_open): Ditto.
9196         (remote_open_1): Ditto.
9197
9198 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9199
9200         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9201         (remote_start_remote): Add uiout parameter.  Pass through to
9202         remote_start_remote_dummy.
9203         (remote_open_1): Use catch_exception instead of catch_errors.
9204         (remote_async_open_1): Ditto.
9205         (remote_cisco_open): Ditto.
9206
9207 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9208
9209         * remote.c (remote_start_remote): Replace PTR with void pointer.
9210         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9211         static.
9212
9213 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9214
9215         * gdb_indent.sh: Allow the script to be run in the sim directory.
9216
9217 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9218
9219         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9220         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9221
9222         * corelow.c (core_open): Only call set_gdbarch_from_file if
9223         exec_bfd is NULL.
9224
9225 2002-05-17  Andrey Volkov <avolkov@transas.com>
9226
9227         * h8300-tdep.c: Add support of EXR register
9228         * config/h8300/tm-h8300.h: Ditto. 
9229         
9230 2002-05-17  Andrey Volkov <avolkov@transas.com>
9231
9232         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9233         
9234 2002-05-17  Andrey Volkov <avolkov@transas.com>
9235
9236         * h8300-tdep.c: Change literal regnums to REGNO.
9237         
9238 2002-05-17  Jim Blandy  <jimb@redhat.com>
9239
9240         * NEWS: Note addition of macro support.
9241
9242         Expand preprocessor macros in C expressions.
9243         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9244         (scan_macro_expansion, scanning_macro_expansion,
9245         finished_macro_expansion): New function declarations.
9246         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9247         variable declarations.
9248         * parser-defs.h (expression_context_pc): New declaration.
9249         * parse.c (expression_context_pc): New variable.
9250         (parse_exp_1): Set expression_context_pc, as well as
9251         expression_context_block.
9252         * c-exp.y (yylex): If we're not already reading the result of a
9253         macro expansion, try to macro-expand the next token.  When we're
9254         done scanning a macro expansion, switch back to the mainline text.
9255         Commas and `if's in a macro's expansion don't terminate the input.
9256         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9257         (macro_original_text, macro_expanded_text,
9258         expression_macro_lookup_func, expression_macro_lookup_baton): New
9259         variables.
9260         (scan_macro_expansion, scanning_macro_expansion,
9261         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9262         c_preprocess_and_parse): New functions.
9263         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9264         c_preprocess_and_parse, instead of c_parse.
9265         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9266         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9267
9268 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9269
9270         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9271         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9272         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9273
9274 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9275
9276         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9277
9278 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9279
9280         * Makefile.in (sh_tdep_h): Define and use.
9281         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9282         register enum): Move to...
9283         * * sh-tdep.h: ...here.
9284         * sh-tdep.c: Include sh-tdep.h.
9285         * sh3-rom.c: Likewise.
9286         * shnbsd-tdep.c: Likewise.
9287
9288 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9289
9290         * arm-tdep.c: Spelling fix in comment.
9291
9292 2002-05-16  Jim Blandy  <jimb@redhat.com>
9293
9294         Add commands for manually expanding macros and showing their
9295         definitions.
9296         * macrocmd.c, macroscope.c, macroscope.h: New files.
9297         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9298         (macroscope_h): New variable.
9299         (HFILES_NO_SRCDIR): Add macroscope.h.
9300         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9301         (macroscope.o, macrocmd.o): New rules.
9302
9303         Teach the Dwarf 2 reader to read macro information.
9304         * dwarf2read.c: #include "macrotab.h".
9305         (dwarf_macinfo_buffer): New variable.
9306         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9307         dwarf_macinfo_size.
9308         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9309         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9310         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9311         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9312         dwarf2_macro_spaces_in_definition): New complaints.
9313         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9314         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9315         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9316         the partial symbol table.
9317         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9318         from what's recorded in the partial symbol table.
9319         (read_file_scope): If the compilation unit has a
9320         `DW_AT_macro_info' attribute, read its macro information.
9321         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9322
9323 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9324
9325         Fix PR gdb/546
9326         * ser-tcp.c: Don't include <netinet/udp.h>.
9327
9328 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9329
9330         * MAINTAINERS: Update my email address.
9331
9332 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9333
9334         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9335         include file of the same name.
9336
9337 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9338
9339         * configure.tgt: Mark v850 as multi-arched.
9340         * config/v850/tm-v850.h: Remove file.
9341         * config/v850/v850.mt: Eliminate TM_FILE.
9342
9343 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9344
9345         * v850-tdep.c: Full multi-arch.
9346         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9347         Define GDB_MULTI_ARCH to 2.
9348
9349 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9350
9351         * p-exp.y (current_type): New static variable.
9352         Carries the type of the expression at the position that is parsed.
9353         (push_current_type, pop_current_type): Two new functions. Used
9354         to store/restore current_type in expression on specific tokens.
9355         (search_field): New static variable. Set to one after parsing a point
9356         as at that point only a FIELDNAME token should be searched.
9357         (FIELDNAME): New token. After a point only a token belonging to 
9358         current_type type definition is allowed.
9359         (all over token rules): reset and change current_type according
9360         to rules.
9361         (exp '[' rule): insert implicit array index field if
9362         exp is a pascal string type.
9363
9364 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9365
9366         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9367         frame info.  Use frame_info's saved_regs instead of matching member
9368         in extra_frame_info throughout.
9369         (v850_frame_init_saved_regs): New function.
9370         (v850_init_extra_frame_info): Move most functionality into
9371         v850_frame_init_saved_regs().
9372         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9373         (v850_frame_find_saved_regs): Remove declaration.
9374         (FRAME_FIND_SAVED_REGS): Remove definition.
9375         (v850_frame_init_saved_regs): Add declaration.
9376         (FRAME_INIT_SAVED_REGS): Add definition.
9377
9378 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9379
9380         * v850-tdep.c: Begin multi-arch'ing v850.
9381         (v850_target_architecture_hook): Remove function.
9382         (v850_gdbarch_init): New function.  Add code previously in
9383         v850_target_architecture_hook().
9384         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9385         Call register_gdbarch_init() instead.
9386
9387 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9388
9389         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9390         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9391         (fixup_class_method_type): Likewise.
9392
9393 2002-05-15  Jim Blandy  <jimb@redhat.com>
9394
9395         Add macro structures to GDB's symbol tables.  Nobody puts anything
9396         in them yet.
9397         * symtab.h (struct symtab): New member: `macro_table'.
9398         * buildsym.h (pending_macros): New global variable.
9399         * buildsym.c: #include "macrotab.h".
9400         (buildsym_init): Initialize `pending_macros'.
9401         (end_symtab): If we found macro information while reading a CU's
9402         debugging info, do build a symtab structure for it.  Make the
9403         symtab point to the macro information, and clear the
9404         `pending_macros' pointer which held it while we were reading the
9405         debug info.
9406         (really_free_pendings): Free any pending macro table.
9407         * objfiles.h (struct objfile): New member: `macro_cache'.
9408         * objfiles.c (allocate_objfile): Set allocate and free functions
9409         for the macro cache's objstack.
9410         (free_objfile): Empty the macro cache's obstack.
9411         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9412         set new allocate and free functions for it.
9413         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9414         free functions for the macro cache's objstack.  (Why is this
9415         function building its own objfile?)
9416         * symmisc.c (print_objfile_statistics): Print statistics on the
9417         macro bcache.
9418         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9419
9420 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9421
9422         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9423         (REGISTER_U_ADDR): Delete definition.
9424         (arm_register_u_addr): Delete declaration.
9425
9426 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9427
9428         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9429         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9430
9431 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9432
9433         * regcache.c (register_valid): Revise comments refering to "Not
9434         available" and "unavailable".
9435         * frame.c (frame_register_read): Ditto.
9436         * findvar.c (value_of_register): Ditto.
9437
9438 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9439
9440         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9441         (remote-sim.o): Update dependencies.
9442         (d10v-tdep.o): Specify dependencies.
9443         (sim_d10v_h): Define.
9444
9445 2002-05-14  Jim Blandy  <jimb@redhat.com>
9446
9447         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9448         * macrotab.c (macro_lookup_inclusion, find_definition,
9449         new_macro_table): Same.
9450         
9451         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9452         not `! strcmp ()'.  This is a dubious improvement.
9453         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9454
9455         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9456         although it's not necessary, to avoid a warning.
9457
9458 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9459
9460         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9461         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9462         TYPE_INSTANCE_FLAGS.
9463         (struct main_type): New.
9464         (struct type): Move most members to struct main_type.  Change
9465         cv_type and as_type to new type_chain member.  Add instance_flags.
9466         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9467         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9468         (finish_cv_type): Remove prototype.
9469         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9470         Set TYPE_CHAIN.
9471         (alloc_type_instance): New function.
9472         (smash_type): New function.
9473         (make_pointer_type, make_reference_type, make_function_type)
9474         (smash_to_member_type, smash_to_method_type): Call smash_type.
9475         (make_qualified_type): New function.
9476         (make_type_with_address_space): Call make_qualified_type.
9477         (make_cv_type): Likewise.
9478         (finish_cv_type): Remove unnecessary function.
9479         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9480         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9481         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9482         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9483         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9484         * hpread.c (hpread_read_struct_type): Likewise.
9485         * stabsread.c (read_struct_type): Likewise.
9486
9487 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9488
9489         * configure.tgt: Add a catch all sh* target, for cases like
9490         sh[2,3,4]-elf and sh-hms.
9491
9492 2002-05-14  Keith Seitz  <keiths@redhat.com>
9493
9494         * event-loop.c (create_file_handler): Don't do anything but
9495         update data when we are given a fd which we are already
9496         monitoring.
9497
9498 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9499
9500         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9501         (update_context): Use __func__ in warnings.
9502         
9503 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9504
9505         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9506         and tcp_close to net_open and net_close.
9507         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9508         using UDP if requested.  Don't try to disable Nagle on UDP
9509         sockets.
9510         * remote.c (remote_serial_open): New function.  Warn about UDP.
9511         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9512
9513 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9514
9515         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9516
9517 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9518
9519         * configure.tgt: Remove sh-hms target.
9520         * MAINTAINERS: Don't list sh-hms as a separate target.
9521
9522 2002-05-13  Jim Blandy  <jimb@redhat.com>
9523
9524         Add first preprocessor macro-expansion files.
9525         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9526         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9527         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9528         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9529         (COMMON_OBS): Add macrotab.o, macroexp.o.
9530         (macroexp.o, macrotab.o): New rules.
9531
9532 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9533
9534         * config/m88k/tm-m88k.h: Update copyright.
9535         (m88k_target_write_pc): Declare
9536         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9537         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9538         (SHIFT_INST_REGS): Update definition.
9539         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9540         using old definition of TARGET_WRITE_PC.
9541         * regcache.c (generic_target_write_pc): Delete code handling
9542         NNPC_REGNUM.
9543         * gdbarch.sh (NNPC_REGNUM): Delete.
9544         * gdbarch.h, gdbarch.c: Regenerate.
9545
9546 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9547
9548         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9549         builtin reg number.
9550
9551 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9552
9553         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9554         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9555         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9556         access macros.
9557         * c-typeprint.c (cp_type_print_method_args): Likewise.
9558         (c_type_print_args): Likewise.
9559         * d10v-tdep.c (d10v_push_arguments): Likewise.
9560         (d10v_extract_return_value): Likewise.
9561         * expprint.c (print_subexp): Likewise.
9562         * gdbtypes.c (lookup_primitive_typename): Likewise.
9563         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9564         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9565         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9566         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9567         (TYPE_VECTOR): Likewise.
9568         * hpread.c (hpread_read_struct_type)
9569         (fix_static_member_physnames, fixup_class_method_type)
9570         (hpread_type_lookup): Likewise.
9571         * mdebugread.c (parse_symbol, parse_type): Likewise.
9572         * p-lang.c (is_pascal_string_type): Likewise.
9573         * valops.c (hand_function_call): Likewise.
9574         * x86-64-tdep.c (classify_argument): Likewise.
9575
9576         * hpread.c (hpread_read_function_type)
9577         (hpread_read_doc_function_type): Call replace_type.
9578         * dstread.c (create_new_type): Delete.
9579         (decode_dst_structure, process_dst_function): Call alloc_type.
9580         Use type access macros.
9581
9582 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9583
9584         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9585         the're not supported by the current architecture.
9586         (i387_fill_fxsave): Likewise.
9587
9588 2002-05-12  Fred Fish  <fnf@redhat.com>
9589
9590         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9591         sect_index_xxx members to index the first slot in section_offsets
9592         if all of the section_offsets are zero.
9593
9594 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9595
9596         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9597         checked in with last change.
9598
9599 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9600
9601         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9602         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9603         config.sub.
9604
9605 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9606
9607         * Makefile.in: Update dependencies.
9608
9609 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9610
9611         * language.c (local_hex_string_custom): Simplify.  Do not depend
9612         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9613
9614         * memattr.c (mem_info_command): Replace calls to
9615         longest_local_hex_string and longest_local_hex_string_custom.
9616         * buildsym.c (make_blockvector): Ditto.
9617         * solib.c (info_sharedlibrary_command): Ditto.
9618         * tracepoint.c (tracepoints_info): Ditto.
9619         * symtab.c (print_msymbol_info): Ditto.
9620
9621         * language.c (local_hex_string): Delete.
9622         (local_hex_string_custom): Delete.
9623         (longest_local_hex_string): Rename to local_hex_string.
9624         (longest_local_hex_string_custom): Rename to
9625         local_hex_string_custom.
9626         * language.h (local_hex_string): Change parameter type to LONGEST.
9627         (local_hex_string_custom): Ditto.
9628         (longest_local_hex_string): Delete declaration.
9629         (longest_local_hex_string_custom): Ditto.
9630
9631         * solib.c: Update copyright.
9632         * memattr.c: Update copyright.
9633         
9634 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9635
9636         * arch-utils.h (legacy_register_to_value): Declare.
9637         (legacy_value_to_register): Declare.
9638         (legacy_convert_register_p): Declare.
9639         * arch-utils.c (legacy_register_to_value): New function.
9640         (legacy_value_to_register): New function.
9641         (legacy_convert_register_p): New function.
9642
9643         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9644         (VALUE_TO_REGISTER): Define.
9645         (CONVERT_REGISTER_P): Define.
9646         * gdbarch.h, gdbarch.c: Regenerate.
9647
9648         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9649         VALUE_TO_REGISTER.
9650         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9651         CONVERT_REGISTER_P.
9652
9653 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9654             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9655
9656         * Makefile.in: Update dependencies for valops.c.
9657         * valops.c: Include "gdb_assert.h".
9658         (typecmp): Skip THIS parameter to methods.
9659         (find_method_list): Remove static_memfuncp argument,
9660         update callers.  Check for stub methods.
9661         (find_value_oload_method_list): Don't set *static_memfuncp.
9662         (find_overload_match): Don't check for stub methods.  Assert
9663         that methods are not stubbed.  Handle static methods.
9664         (value_find_oload_method_list): Remove static_memfuncp argument.
9665         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9666         to the argument list for static stub methods.
9667         * value.h (value_find_oload_method_list): Update prototype.
9668
9669 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9670
9671         * arch-utils.h (generic_register_size): Declare.
9672         (generic_register_raw_size, generic_register_virtual_size): Delete
9673         declarations.
9674         * arch-utils.c (generic_register_raw_size): Delete.
9675         (generic_register_size): New function.
9676         (generic_register_virtual_size): Delete.
9677
9678         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9679         default generic_register_size.
9680         * gdbarch.h, gdbarch.c: Re-generate.
9681         
9682         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9683         register_virtual_size.
9684         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9685         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9686
9687 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9688
9689         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9690         * gdbarch.h, gdbarch.c: Regenerate.
9691         * gnu-v3-abi.c: Update copyright.
9692         (vtable_address_point_offset): Update.
9693         (gnuv3_rtti_type): Update.
9694         (gnuv3_baseclass_offset): Update.
9695         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9696         (init_fetch_link_map_offsets): Update.
9697         * remote.c (get_remote_state): Update.
9698         
9699 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9700
9701         * TODO: Remove value_headof/value_from_vtable_info comment.
9702         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9703         * values.c (value_headof, value_from_vtable_info): Delete.
9704         * value.h (value_from_vtable_info): Delete prototype.
9705
9706 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9707
9708         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9709         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9710         $(gdb_regex_h).
9711         (gdb_assert_h): Define.
9712         (gdb_wait_h): Define.
9713         (gdb_regex_h): Define.
9714
9715 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9716
9717         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9718         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9719
9720 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9721
9722         * nbsd-tdep.c: Fix comment.
9723
9724 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9725
9726         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9727         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9728         (nbsd-tdep.o): New dependency list.
9729         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9730         nbsd-tdep.h.
9731         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9732         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9733         * nbsd-tdep.c: New file.
9734         * nbsd-tdep.h: New file.
9735         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9736         nbsd-tdep.h.
9737         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9738         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9739         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9740         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9741
9742 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9743
9744         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9745         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9746         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9747         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9748         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9749         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9750
9751 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9752
9753         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9754         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9755         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9756         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9757         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9758         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9759         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9760
9761 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9762
9763         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9764         fetch_elfcore_registers to...
9765         * i386nbsd-tdep.c: ...here.
9766         (i386nbsd_use_struct_convention): Rename to...
9767         (i386nbsd_aout_use_struct_convention): ...this.
9768         (i386nbsd_supply_reg): New function.
9769         (i386nbsd_fill_reg): New function.
9770         (fetch_core_registers): Use i386nbsd_supply_reg.
9771         (fetch_elfcore_registers): Likewise.
9772         (_initialize_i386nbsd_tdep): New function.
9773         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9774         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9775         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9776         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9777         (i386nbsd_aout_use_struct_convention): ...this.
9778
9779 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9780
9781         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9782         (store_inferior_registers): Use shnbsd_fill_reg.
9783         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9784         sh_nbsd_supply_register): Collapse into...
9785         (shnbsd_supply_reg): ...this.
9786         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9787         (shnbsd_fill_reg): ...this.
9788         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9789         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9790         (fetch_core_registers): Use shnbsd_supply_reg.
9791         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9792         (sh_nbsd_core_fns): Rename to...
9793         (shnbsd_core_fns): ...this.
9794         (sh_nbsd_elfcore_fns): Rename to...
9795         (shnbsd_elfcore_fns): ...this.
9796         (sh_nbsd_init_abi): Rename to...
9797         (shnbsd_init_abi): ...this.
9798         (_initialize_sh_nbsd_tdep): Rename to...
9799         (_initialize_shnbsd_tdep): ...this.
9800         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9801         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9802         sh_nbsd_fill_register): Remove prototypes.
9803         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9804
9805 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9806
9807         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9808         (i387-nat.o): Delete dependency list.
9809         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9810         (x86-64-linux-nat.o): Likewise.
9811         * i387-nat.c: Delete file, moving contents to...
9812         * i387-tdep.c: ...here.
9813         * i387-nat.h: Rename...
9814         * i387-tdep.h: ...to this.
9815         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9816         * i386-linux-nat.c: Likewise.
9817         * i386bsd-nat.c: Likewise.
9818         * i386gnu-nat.c: Likewise.
9819         * i386nbsd-nat.c: Likewise.
9820         * i386v4-nat.c: Likewise.
9821         * x86-64-linux-nat.c: Likewise.
9822         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9823         * config/i386/go32.mh (NATDEPFILES): Likewise.
9824         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9825         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9826         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9827         * config/i386/linux.mh (NATDEPFILES): Likewise.
9828         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9829         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9830         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9831         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9832
9833 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9834
9835         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9836         (alphanbsd-nat.o): Remove dependency list.
9837         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9838         * alphanbsd-nat.c: Delete.  Contents moved to...
9839         * alphanbsd-tdep.c: ...here.
9840         (_initialize_alphanbsd_tdep): Register core functions.
9841         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9842
9843 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9844
9845         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9846         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9847         (alphanbsd-nat.o): Likewise.
9848         (alphabsd-tdep.o): New dependency list.
9849         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9850         (fill_gregset): Use alphabsd_fill_reg.
9851         (supply_fpregset): Use alphabsd_supply_fpreg.
9852         (fill_fpregset): Use alphabsd_fill_fpreg.
9853         (fetch_inferior_registers): Use struct reg and struct fpreg
9854         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9855         and alphabsd_supply_fpreg.
9856         (store_inferior_registers): Use struct reg and struct fpreg
9857         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9858         and alphabsd_fill_fpreg.
9859         * alphabsd-tdep.c: New file.
9860         * alphabsd-tdep.h: New file.
9861         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9862         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9863         alphabsd_supply_fpreg.
9864         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9865         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9866
9867 2002-05-11  Eric Christopher  <echristo@redhat.com>
9868
9869         * mips-tdep.c (mips_double_register_type): Fix thinko.
9870         (mips_single_register_type): Ditto.
9871         * MAINTAINERS: Add self.
9872
9873 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9874
9875         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9876         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9877         right thing on architectures with different endianness and/or
9878         integer sizes.
9879
9880 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9881
9882         From Christian Limpach <chris@Pin.LU>
9883         * configure.in: Change sed expression which comments out
9884         NATDEPFILES to also comment out continuation lines.
9885         * configure: Regenerate.
9886
9887 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9888
9889         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9890         big patch.
9891
9892 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9893
9894         * sh-tdep.c: Include correct file.
9895
9896 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9897
9898         New support for sh64-elf (sh5) target.
9899
9900         * configure.tgt: For sh64-elf target, default to sh-elf.
9901
9902         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9903         (struct gdbarch_tdep): Add new fields for new registers and ABI
9904         info.
9905
9906         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9907         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9908         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9909         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9910         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9911         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9912         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9913         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9914         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9915         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9916         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9917         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9918         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9919         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9920         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9921         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9922         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9923         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9924         sign_extend, sh64_nofp_frame_init_saved_regs,
9925         sh64_init_extra_frame_info, sh64_get_saved_register,
9926         sh64_extract_struct_value_address, sh64_pop_frame,
9927         sh64_push_arguments, sh64_extract_return_value,
9928         sh64_store_return_value, sh64_show_media_regs,
9929         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9930         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9931         sh_sh64_register_virtual_type,
9932         sh_sh64_register_convert_to_virtual,
9933         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9934         sh64_register_read, sh64_pseudo_register_write,
9935         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9936         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9937         sh64_do_pseudo_register, sh_compact_do_registers_info,
9938         sh64_do_registers_info, sh_gdbarch_init): New functions.
9939
9940 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9941
9942         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9943
9944 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9945
9946         * linespec.c (decode_line_1): Check for a double quote after
9947         a filename correctly.
9948
9949 2002-05-10  Jim Blandy  <jimb@redhat.com>
9950
9951         Properly track the size of the current objfile's .debug_line section.
9952         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9953         (DWARF_LINE_SIZE): New macro.
9954         (dwarf2_build_psymtabs_hard): Record the line section's size in
9955         the partial symbol table.
9956         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9957         symbol table.
9958
9959 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9960
9961         * ia64-tdep.c: Handle breakpoints on L instruction type
9962         in MLX instruction bundle by moving the breakpoint to
9963         the third slot (X instruction type) as L holds only data.
9964
9965 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9966
9967         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9968         (process_one_symbol): Complain about discarding local symbols
9969         due to a misplaced N_LBRAC entry.
9970
9971 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9972
9973         From Daniel Berlin <dan@cgsoftware.com>
9974         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9975         decrease the depth we are at, in the case of templates.
9976
9977 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9978
9979         * mips-tdep.c (mips_float_register_type): New function.
9980         (mips_double_register_type): New function.
9981         (mips_print_register): Use them.
9982         (do_fp_register_row): Likewise.
9983
9984 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9985
9986         * signals/signals.c (signals): Remove conditional compilation around
9987         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9988         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9989
9990 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9991
9992         * remote-rdp.c (remote_rdp_can_run): Remove.
9993
9994 2002-05-09  Tom Tromey  <tromey@redhat.com>
9995
9996         * jv-valprint.c (java_val_print): Handle `char' as a special case
9997         of TYPE_CODE_INT.
9998
9999 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10000
10001         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10002         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10003         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10004         str r(0123),[sp,#nn].
10005         (arm_skip_prologue): Ditto.  Also make disassembly
10006         order-independent by placing it in a loop.
10007
10008 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10009
10010         * stabsread.c (read_type): Add recognition for new attribute:
10011         "@V;" means that an array type is actually a vector.
10012         This is analogous to the vector flag that's been added to dwarf2.
10013
10014 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10015
10016         * i386-tdep.h (i386_abi): New enum.
10017         (struct gdbarch_tdep): Replace os_ident member with abi.
10018         (i386_gdbarch_register_os_abi): New prototype.
10019         * i386-tdep.c (i386_abi_names): New array.
10020         (process_note_abi_tag_sections): Removed.
10021         (process_note_sections): New function.
10022         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10023         (struct i386_abi_handler): New struct.
10024         (i386_abi_handler_list): New variable.
10025         (i386_gdbarch_register_os_abi): New function.
10026         (i386_gdbarch_init): Adapt for the changes given above.
10027
10028 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10029
10030         * gregset.h: Say "GNU/Linux".
10031
10032 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10033
10034         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10035         (build_gdbtypes): Build builtin_type_v2_float.
10036         (_initialize_gdbtypes): Register new builtin type.
10037
10038 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10039
10040         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10041         (clear_gdbarch_swap): New function.
10042         (initialize_non_multiarch): Call.
10043         (gdbarch_update_p): Before calling init(), swap out and clear the
10044         existing architecture.
10045         * gdbarch.c: Regenerate.
10046
10047 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10048
10049         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10050         alphanbsd-tdep.c.
10051
10052 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10053
10054         * sh-nbsd-nat.c: Rename to...
10055         * shnbsd-nat.c: ...this.
10056         * sh-nbsd-tdep.c: Rename to...
10057         * shnbsd-tdep.c: ...this.
10058         * sh-nbsd-tdep.h: Rename to...
10059         * shnbsd-tdep.h: ...this.
10060         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10061         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10062
10063 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10064
10065         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10066         concatenation for command help messages.
10067
10068 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10069
10070         * NEWS: Note new sh*-*-netbsdelf* configuration.
10071         * configure.host: Set gdb_host_cpu to sh for all sh*.
10072         (sh*-*-netbsdelf*): New host.
10073         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10074         (sh*-*-netbsdelf*): New target.
10075         * sh-nbsd-nat.c: New file.
10076         * sh-nbsd-tdep.c: New file.
10077         * sh-nbsd-tdep.h: New file.
10078         * config/sh/nbsd.mh: New file.
10079         * config/sh/nbsd.mt: New file.
10080         * config/sh/nm-nbsd.h: New file.
10081         * config/sh/tm-nbsd.h: New file.
10082
10083 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10084
10085         * sh-tdep.c (sh_osabi_names): Declare.
10086         (process_note_abi_tag_sections): New function.
10087         (get_elfosabi): Ditto.
10088         (sh_gdbarch_register_os_abi): Ditto.
10089         (sh_dump_tdep): Ditto.
10090         _initialize_sh_tdep): Use gdbarch_register to register
10091         sh_gdbarch_init and sh_dump_tdep.
10092         * config/sh/tm-sh.h (sh_osabi): Declare.
10093         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10094
10095 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10096
10097         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10098         (thumb_scan_prologue): Ditto.
10099         (arm_find_callers_reg): Ditto.
10100         (arm_frame_chain): Ditto.
10101         (arm_init_extra_frame_info): Ditto.
10102         (arm_frame_saved_pc): Ditto.
10103         (arm_pop_frame): Ditto.
10104         (arm_push_return_address): New function.
10105         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10106         call_dummy_location, call_dummy_breakpoint_offset_p,
10107         call_dummy_breakpoint_offset, call_dummy_p,
10108         call_dummy_stack_adjust_p, call_dummy_words,
10109         sizeof_call_dummy_words, call_dummy_start_offset,
10110         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10111         call_dummy_address, push_return_address and push_dummy_frame for
10112         generic dummy frames.
10113
10114 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10115
10116         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10117         size computation for alloca.
10118         (sh_fp_frame_init_saved_regs): Likewise.
10119
10120 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10121
10122         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10123         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10124         * arm-tdep.c (arm_store_return_value): Use them.
10125         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10126         * remote-rdp.c (remote_rdp_fetch_register): Use
10127         ARM_MAX_REGISTER_RAW_SIZE.
10128         (remote_rdp_store_register): Likewise.
10129
10130 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10131
10132         * dwarf2cfi.c: Code cleanup, removed unused variables,
10133         added default labels to switch {} statements.
10134         * x86-64-tdep.c: Ditto.
10135         * x86-64-linux-nat.c: Ditto.
10136
10137 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10138
10139         * solib.h: Protect against multiple inclusion.
10140
10141 2002-05-06  Jim Blandy  <jimb@redhat.com>
10142
10143         Add first preprocessor macro-expansion files.
10144         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10145         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10146         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10147         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10148         (COMMON_OBS): Add macrotab.o, macroexp.o.
10149         (macroexp.o, macrotab.o): New rules.
10150
10151         Separate the job of reading the line number info statement program
10152         header (...expialidocious) out into its own function.
10153         * dwarf2read.c (struct line_head, struct filenames, struct
10154         directories): Replace with...
10155         (struct line_header): New structure, containing the full
10156         contents of the statement program header, including the
10157         include directory and file name tables.
10158         (read_file_scope): If we have line number info, instead of just
10159         calling dwarf_decode_lines to do all the work, call
10160         dwarf_decode_line_header first to get a `struct line_header'
10161         containing the data in the statement program header, and then
10162         pass that to dwarf_decode_lines, which will pick up where that
10163         left off.  Be sure to clean up the `struct line_header' object.
10164         (dwarf_decode_line_header, free_line_header, add_include_dir,
10165         add_file_name): New functions.
10166         (dwarf_decode_lines): Move all the code to read the statement
10167         program header into dwarf_decode_line_header.  Take the line
10168         header it built as the first argument, instead of the offset to
10169         the compilation unit's line number info.  Use the new `struct
10170         line_header' type instead of the old structures.  No need to do
10171         cleanups here now, since we don't allocate anything.
10172         (dwarf2_statement_list_fits_in_line_number_section,
10173         dwarf2_line_header_too_long): New complaints.
10174
10175 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10176
10177         * gdbtypes.c (init_vector_type): New function.
10178         (build_builtin_type_vec128): Simplify the representation of SIMD
10179         registers.
10180         (build_gdbtypes): Initialize new builtin vector types.
10181         (_initialize_gdbtypes): Register new vector types with gdbarch.
10182         (builtin_type_v4_float, builtin_type_v4_int32,
10183         builtin_type_v8_int16, builtin_type_v16_int8,
10184         builtin_type_v2_int32, builtin_type_v4_int16,
10185         builtin_type_v8_int8): New (renamed) SIMD types.
10186
10187 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10188
10189         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10190         (i387_fill_fxsave): Likewise.
10191
10192 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10193
10194         * alpha-tdep.c (alpha_extract_return_value): Don't use
10195         non-constant array size in prototype.
10196
10197 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10198
10199         From Brian Taylor <briant at model dot com>:
10200         * ui-out.c (ui_out_field_core_addr): Use the function
10201         longest_local_hex_string_custom'to format addresses > 32 bits
10202         wide.
10203
10204         * ui-out.c (ui_out_field_core_addr): Update comment.
10205
10206 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10207
10208         * stack.c (select_and_print_frame): Make static.  Delete the
10209         parameter `level'.
10210         (func_command): Update call.
10211         (select_frame_command): Delete code computing the frame level.
10212         * frame.h (select_and_print_frame): Delete declaration.
10213
10214 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10215
10216         * sparc-tdep.c (sparc_get_saved_register): Comment why
10217         get_prev_frame call is safe.
10218
10219 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10220
10221         * frame.h (select_frame): Delete level parameter.
10222         * stack.c (select_frame): Update.  Use frame_relative_level to
10223         obtain the frame's level.
10224         (select_and_print_frame): Update call.
10225         (select_frame_command): Ditto.
10226         (up_silently_base): Ditto.
10227         (down_silently_base): Ditto.
10228         * ocd.c (ocd_start_remote): Ditto.
10229         * remote-rdp.c (remote_rdp_open): Ditto.
10230         * remote-mips.c (mips_initialize): Ditto.
10231         (common_open): Ditto.
10232         * remote-e7000.c (e7000_start_remote): Ditto.
10233         * m3-nat.c (select_thread): Ditto.
10234         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10235         (child_get_current_exception_event): Ditto.
10236         * varobj.c (varobj_create): Ditto.
10237         (varobj_update): Ditto.
10238         (c_value_of_root): Ditto.
10239         * tracepoint.c (finish_tfind_command): Ditto.
10240         * corelow.c (core_open): Ditto.
10241         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10242         * thread.c (info_threads_command): Ditto.
10243         (switch_to_thread): Ditto.
10244         * infrun.c (normal_stop): Ditto.
10245         (restore_selected_frame): Ditto.
10246         (restore_inferior_status): Ditto.
10247         * breakpoint.c (insert_breakpoints): Ditto.
10248         (watchpoint_check): Ditto.
10249         (bpstat_stop_status): Ditto.
10250         (do_enable_breakpoint): Ditto.
10251         * blockframe.c (flush_cached_frames): Ditto.
10252         (reinit_frame_cache): Ditto.
10253
10254 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10255
10256         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10257         maintainer.
10258
10259 2002-05-04  Jim Blandy  <jimb@redhat.com>
10260
10261         * gdbtypes.c (replace_type): Doc fix.
10262
10263 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10264
10265         * valprint.c (strcat_longest): Delete commented out function.
10266         Update copyright.
10267
10268 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10269
10270         * MAINTAINERS: Mark a29k as deleted.
10271         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10272         Move new configurations to the top.
10273         * configure.tgt: Remove a29k.
10274         * config/a29k/tm-vx29k.h: Delete.
10275         * config/a29k/vx29k.mt: Delete.
10276         * config/a29k/tm-a29k.h: Delete.
10277         * config/a29k/a29k-udi.mt: Delete.
10278         * config/a29k/a29k.mt: Delete.
10279         * a29k-tdep.c: Delete.
10280         * remote-udi.c: Delete.
10281         * remote-mm.c: Delete.
10282         * remote-eb.c: Delete.
10283         * remote-adapt.c: Delete.
10284         * Makefile.in: Remove obsolete code.
10285         * config/s390/s390x.mt: Ditto.
10286         * config/s390/s390.mt: Ditto.
10287         * config/sparc/sparclynx.mh: Ditto.
10288         * config/sparc/linux.mh: Ditto.
10289         * config/pa/hppaosf.mh: Ditto.
10290         * config/pa/hppabsd.mh: Ditto.
10291         * config/ns32k/nbsd.mt: Ditto.
10292         * config/mips/vr5000.mt: Ditto.
10293         * config/m68k/sun3os4.mh: Ditto.
10294         * config/m68k/nbsd.mt: Ditto.
10295         * config/m68k/m68klynx.mh: Ditto.
10296         * config/m32r/m32r.mt: Ditto.
10297         * config/i386/x86-64linux.mt: Ditto.
10298         * config/i386/nbsdelf.mt: Ditto.
10299         * config/i386/nbsd.mt: Ditto.
10300         * config/i386/i386lynx.mh: Ditto.
10301
10302 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10303
10304         * target.c (debug_print_register): New function.  Handle oversize
10305         registers.
10306         (debug_to_fetch_registers): Call.
10307         (debug_to_store_registers): Call.
10308
10309 2002-05-03  Jim Blandy  <jimb@redhat.com>
10310
10311         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10312         (read_type): Doc fix.
10313         * gdbtypes.c (replace_type): Doc fix.
10314
10315         * stabsread.c (multiply_defined_struct): New complaint.
10316         (read_struct_type): If the type we were passed isn't empty, or
10317         incomplete, don't read the new struct type into it; complain,
10318         and return the original type unchanged.  Take a new `type_code'
10319         argument, which is the type code for the new type.
10320         (read_type): Rather than storing the type's type code here, pass
10321         it as an argument to read_struct_type, and let that take care of
10322         storing it.  That way, we don't overwrite the original type code,
10323         so read_struct_type can use it to decide whether we're overwriting
10324         something we shouldn't.
10325         (complain_about_struct_wipeout): New function.
10326
10327 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10328
10329         * gdbarch.sh: Assert that gdbarch is non-NULL.
10330         * gdbarch.c: Regenerate.
10331
10332 2002-05-03  Jason Merrill  <jason@redhat.com>
10333
10334         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10335         and return NULL.
10336
10337 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10338
10339         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10340         (x86_64_dwarf2gdb_regno_map_length),
10341         (x86_64_dwarf2_reg_to_regnum): Added.
10342         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10343         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10344         (_initialize_x86_64_tdep): Synced with the change above.
10345         (x86_64_skip_prologue): Reformulated message.
10346
10347 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10348
10349         * f-exp.y: Also use new prev_lexptr variable
10350         to improve error reporting. Based on Michael Snyder
10351         2002-04-24 dated patch to c-exp.y.
10352         * jv-exp.y: Likewise.
10353         * m2-exp.y: Likewise.
10354
10355 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10356
10357         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10358         we are dealing with vectors.
10359
10360 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10361
10362         * config/m68k/tm-nbsd.h: Obvious fix,
10363         correct machine name.
10364
10365 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10366
10367         * p-typeprint.c (pascal_type_print_base): Add support
10368         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10369
10370 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10371
10372         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10373         for fondamental pascal 'char' type.
10374
10375 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10376
10377         * p-lang.h (is_pascal_string_type): Declaration changed,
10378         new sixth argument of type char ** added.
10379         * p-lang.c (is_pascal_string_type): Implementation
10380         changed. Args length_pos, length_size, string_pos, char_size
10381         can now be NULL. New argument arrayname set to the field
10382         name of the char array. Return value set to char array
10383         field index plus one.
10384         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10385         is_pascal_string_type function.
10386
10387 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10388
10389         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10390         <cagney@redhat.com> change.
10391         * gdbarch.c: Regenerate.
10392
10393 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10394
10395         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10396         before probing for a new one.  Detect errorenous gdbarch_init
10397         functions.
10398         * gdbarch.c: Regenerate.
10399
10400 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10401
10402         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10403         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10404         * config/v850/tm-v850.h: Ditto.  Update copyright.
10405
10406 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10407
10408         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10409         current_gdbarch.
10410
10411 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10412
10413         * arm-tdep.c: Whitespace clean-ups.
10414         (arm_skip_prologue): Fix thinko; two lines
10415         should have been removed as part of 4/24 change.
10416
10417 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10418
10419         * rs6000-tdep.c: Added comment describing how fpscr register
10420         numbers were chosen.
10421
10422 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10423
10424         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10425
10426 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10427
10428         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10429         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10430         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10431
10432 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10433
10434         From Louis Hamilton <hamilton@redhat.com>:
10435         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10436         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10437         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10438         not bfd-private xcoff data, to determine wordsize.
10439         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10440
10441 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10442
10443         GDB 5.2 released from 5.2 branch.
10444
10445 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10446
10447         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10448         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10449         (x86_64_register_info_table): Added comments with register numbers.
10450
10451 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10452
10453         * rs6000-tdep.c (rs6000_extract_return_value,
10454         rs6000_store_return_value): Handle returning vectors.
10455         (rs6000_gdbarch_init): Use
10456         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10457         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10458         New function.
10459         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10460         vectors.
10461         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10462         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10463
10464 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10465
10466         * hpread.c (hpread_psymtab_to_symtab_1,
10467         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10468         with fprintf_unfiltered (gdb_stderr,...).
10469
10470 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10471
10472         * remote-array.c (printf_monitor, write_monitor,
10473         array_insert_breakpoint, array_remove_breakpoint ):
10474         Replace fprintf (stderr,...
10475         with fprintf_unfiltered (gdb_stderr,....
10476         * remote-es.c: Likewise.
10477         * remote-os9k.c: Likewise.
10478         * remote-st.c: Likewise.
10479
10480 2002-04-28  Andreas Schwab  <schwab@suse.de>
10481
10482         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10483         linux-proc.o and gcore.o.
10484
10485 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10486
10487         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10488         code without frame pointers.
10489
10490 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10491
10492         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10493         ON_STACK is needed.
10494
10495 2002-04-26  Ben Elliston  <bje@redhat.com>
10496
10497         * target.c (do_xfer_memory): Correct reference to the new option
10498         "trust-readonly-sections".
10499
10500 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10501
10502         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10503         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10504         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10505         vectors.
10506         (read_array_type): Record the fact that this array type is really a
10507         vector (i.e. are passed in by value).
10508
10509 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10510
10511         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10512         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10513         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10514         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10515         * alpha-linux-tdep.c: Include frame.h.
10516         (alpha_linux_sigcontext_addr): New function.
10517         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10518         alpha_linux_sigcontext_addr.
10519         * alpha-osf1-tdep.c: Include gdbcore.h.
10520         (alpha_osf1_sigcontext_addr): New function.
10521         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10522         alpha_osf1_sigcontext_addr.
10523         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10524         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10525
10526 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10527
10528         * stack.c (selected_frame_level):
10529         (select_frame): Do not set selected_frame_level.
10530         * frame.h (selected_frame_level): Delete declaration.
10531
10532 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10533
10534         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10535         convert_from_func_ptr-addr when AIX / PowerOpen.
10536
10537 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10538
10539         * valops.c (hand_function_call): Call
10540         generic_save_call_dummy_addr.
10541         * frame.h (generic_save_call_dummy_addr): Declare.
10542         * blockframe.c (struct dummy_frame): Add fields call_lo and
10543         call_hi.
10544         (generic_find_dummy_frame): Check for PC in range call_lo to
10545         call_hi instead of entry_point_address.
10546         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10547         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10548         (generic_save_call_dummy_addr): New function.
10549
10550 2002-04-24  David S. Miller  <davem@redhat.com>
10551
10552         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10553         sparc_skip_prologue.
10554         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10555         information to find prologue when possible.
10556         (sparc_prologue_frameless_p): Call examine_prologue directly.
10557         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10558         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10559         second argument.
10560         (SKIP_PROLOGUE): Likewise.
10561
10562 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10563
10564         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10565         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10566         indicate that the condition it was testing is always true.
10567         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10568         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10569         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10570
10571 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10572
10573         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10574         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10575         tdep->jb_pc and tdep->jb_elt_size.
10576         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10577         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10578         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10579         * alpha-nat.c (get_longjmp_target): Remove.
10580         (JB_ELEMENT_SIZE): Ditto.
10581         (JB_PC): Ditto.
10582         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10583         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10584         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10585         to alpha_get_longjmp_target.
10586         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10587         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10588         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10589
10590 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10591
10592         * README: Update to GDB 5.2.
10593
10594 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10595
10596         * gdbarch.sh (LC_ALL): Set to `c'.
10597
10598 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10599
10600         * avr-tdep.c: Ran through gdb_indent.sh.
10601
10602 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10603
10604         * MAINTAINERS: Add myself as AVR maintainer.
10605         * NEWS: Note new target avr.
10606
10607 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10608
10609         * Makefile.in: Add support for AVR target.
10610         * configure.tgt: Add support for AVR target.
10611         * avr-tdep.c: New file
10612         * config/avr/avr.mt: New file.
10613
10614 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10615
10616         * MAINTAINERS: Add myself to write-after-approval.
10617
10618 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10619
10620         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10621         with fprintf_unfiltered (gdb_stderr,....
10622
10623 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10624
10625         Fix PR gdb/508.
10626         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10627
10628 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10629
10630         * p-exp.y: Also use new prev_lexptr variable
10631         to improve error reporting. Based on Michael Snyder
10632         2002-04-24 dated patch to c-exp.y.
10633
10634 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10635
10636         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10637         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10638         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10639         to 0.
10640         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10641         and struct value.
10642         (FUNCTION_START_OFFSET): Remove.
10643         (BREAKPOINT): Ditto.
10644
10645 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10646
10647         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10648         * NEWS: Ditto.
10649
10650 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10651
10652         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10653         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10654         alpha_linux_pc_in_sigtramp.
10655         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10656         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10657         alpha_osf1_pc_in_sigtramp.
10658         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10659         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10660         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10661         alphafbsd_pc_in_sigtramp.
10662         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10663         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10664         alphanbsd_pc_in_sigtramp.
10665         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10666         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10667
10668 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10669
10670         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10671
10672 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10673
10674         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10675         alphanbsd-tdep.c.
10676         (alphanbsd-nat.o): New dependency list.
10677         (alphanbsd-tdep.o): Ditto.
10678         * NEWS: Note new native NetBSD/alpha configuration.
10679         * alphanbsd-nat.c: New file.
10680         * alphanbsd-tdep.c: Ditto.
10681         * configure.host (alpha*-*-netbsd*): New host.
10682         * configure.tgt (alpha*-*-netbsd*): New target.
10683         * config/alpha/nbsd.mh: New file.
10684         * config/alpha/nbsd.mt: Ditto.
10685         * config/alpha/nm-nbsd.h: Ditto.
10686         * config/alpha/tm-nbsd.h: Ditto.
10687
10688 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10689
10690         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10691         (alpha-osf1-tdep.o): New dependency list.
10692         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10693         and skip_sigtramp_frame members.
10694         * alpha-linux-tdep.c: Include gdbcore.h.
10695         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10696         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10697         * alpha-osf1-tdep.c: New file.
10698         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10699         alpha-osf1-dep.c.
10700         (alpha_frame_past_sigtramp_frame): New function.
10701         (alpha_dynamic_sigtramp_offset): Ditto.
10702         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10703         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10704         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10705         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10706         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10707         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10708         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10709         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10710         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10711         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10712         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10713         to find_solib_trampoline_target.
10714         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10715         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10716         (SKIP_TRAMPOLINE_CODE): Remove.
10717         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10718         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10719         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10720         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10721         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10722         (PROC_SIGTRAMP_MAGIC): Ditto.
10723         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10724         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10725         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10726         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10727         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10728
10729 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10730
10731         * NEWS: Note that Alpha targets are now multi-arch.
10732
10733 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10734
10735         * parser-defs.h (prev_lexptr): New external variable.
10736         * parse.c (parse_exp_1): Set prev_lexptr to null before
10737         calling the language-specific parser.
10738         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10739         (yyerror): Use prev_lexptr in error reporting.
10740
10741 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10742
10743         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10744         * gregset.h: If FILL_FPXREGSET is defined, provide
10745         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10746         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10747         is defined, call fill_fpxregset.
10748
10749 2002-04-24  Roland McGrath  <roland@frob.com>
10750
10751         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10752         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10753         (supply_gregset, supply_fpregset): New functions.
10754
10755         * gnu-nat.c (gnu_find_memory_regions): New function.
10756         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10757         (gnu_xfer_memory): Add a cast.
10758
10759 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10760
10761         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10762         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10763         of argument regs ("str r(0123), [r11, #-nn"]).
10764         (arm_skip_prologue): Better handling for frameless functions.
10765         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10766         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10767
10768 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10769
10770         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10771         NUM_PSEUDO_REGS can be used.
10772
10773 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10774
10775         * arch-utils.h: Update copyright.
10776
10777         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10778         * gdbarch.h, gdbarch.c: Re-generate.
10779
10780         * inferior.h (IN_SIGTRAMP): Delete definition.
10781         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10782         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10783
10784         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10785         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10786         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10787         (find_proc_framesize): Ditto.
10788         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10789         (alpha_init_extra_frame_info): Ditto.
10790         * infrun.c (handle_inferior_event): Ditto.
10791         (handle_inferior_event): Ditto.
10792         (check_sigtramp2): Ditto.
10793         * blockframe.c (create_new_frame): Ditto.
10794         (get_prev_frame): Ditto.
10795         * ppc-linux-tdep.c: Update comments.
10796         * i386-linux-tdep.c: Update comments.
10797         * breakpoint.c (bpstat_what): Update comment.
10798
10799 2002-04-24  David S. Miller  <davem@redhat.com>
10800
10801         * i960-tdep.c (register_in_window_p): New function.
10802         (i960_find_saved_register): Use it instead of
10803         REGISTER_IN_WINDOW_P.
10804         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10805
10806         * symtab.h (find_stab_function_addr): Kill extern.
10807         * minsyms.c (find_stab_function_addr): Remove from here...
10808         * dbxread.c: ... to here, and mark it static.
10809
10810 2002-04-20  David S. Miller  <davem@redhat.com>
10811
10812         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10813         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10814
10815 2002-04-21  David S. Miller  <davem@redhat.com>
10816
10817         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10818         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10819         (vx_write_register): Likewise.
10820
10821 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10822
10823         * source.c (is_regular_file): New function.
10824         (openp): Check wether file to open is a regular file
10825         to avoid opening directories.
10826
10827 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10828
10829         * findvar.c (extract_signed_integer): Cast printf argument
10830         to suppress format warning.
10831         (extract_unsigned_integer): Likewise.
10832         * infcmd.c (registers_info): Likewise.
10833         * top.c (get_prompt_1): Likewise.
10834         * valops.c (value_assign): Likewise.
10835         * valprint.c (print_decimal): Likewise.
10836
10837 2002-04-22  H.J. Lu  (hjl@gnu.org)
10838
10839         * c-exp.y (typebase): Support
10840
10841         [long|long long|short] [signed|unsigned] [int|]
10842
10843         and
10844
10845         signed [long|long long|short] int
10846
10847 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10848
10849         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10850         and vax-tdep.h.
10851         * vax-tdep.h: New file.
10852         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10853         Make several routines static.
10854         (vax_get_saved_register): New function.
10855         (vax_gdbarch_init): New function.
10856         (_initialize_vax_tdep): Register vax_gdbarch_init.
10857         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10858         Remove macros now under the control of gdbarch.
10859
10860 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10861
10862         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10863         Some whitespace and coding standards tweaks.
10864
10865 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10866
10867         * vax-tdep.c: Include regcache.h.
10868         (vax_call_dummy_words): New.
10869         (sizeof_vax_call_dummy_words): New.
10870         (vax_fix_call_dummy): New function.
10871         (vax_saved_pc_after_call): Ditto.
10872         * config/vax/tm-vax.h: Don't include regcache.h.
10873         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10874         (CALL_DUMMY): Remove.
10875         (CALL_DUMMY_WORDS): Define.
10876         (SIZEOF_CALL_DUMMY_WORDS): Define.
10877         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10878
10879 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10880
10881         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10882
10883 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10884
10885         * vax-tdep.c (vax_frame_chain): New function.
10886         (vax_push_dummy_frame): Ditto.
10887         (vax_pop_frame): Ditto.
10888         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10889         (FRAMELESS_FUNCTION_INVOCATION): Use
10890         generic_frameless_function_invocation_not.
10891         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10892         (POP_FRAME): Use vax_pop_frame.
10893
10894 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10895
10896         * vax-tdep.c (vax_store_struct_return): New function.
10897         (vax_extract_return_value): Ditto.
10898         (vax_store_return_value): Ditto.
10899         (vax_extract_struct_value_address): Ditto.
10900         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10901         vax_store_struct_return.
10902         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10903         (STORE_RETURN_VALUE): Use vax_store_return_value.
10904         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10905
10906 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10907
10908         * vax-tdep.c (vax_frame_saved_pc): New function.
10909         (vax_frame_args_address_correct): Ditto.
10910         (vax_frame_args_address): Ditto.
10911         (vax_frame_locals_address): Ditto.
10912         (vax_frame_num_args): Move code to be in proximity to
10913         other frame-related functions.
10914         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10915         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10916         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10917         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10918         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10919
10920 2002-04-22  H.J. Lu  (hjl@gnu.org)
10921
10922         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10923         includedir.
10924
10925 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10926
10927         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10928         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10929         (FRAME_INIT_SAVED_REGS): New macro.
10930
10931 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10932
10933         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10934
10935 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10936
10937         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10938         where needed.
10939         (fetch_osf_core_registers): Likewise.
10940         (supply_gregset): Likewise.
10941
10942 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10943
10944         * symfile.h (get_section_index): Define.
10945         * symfile.c (get_section_index): New function.
10946         * mdebugread.c (SC_IS_SBSS): New macro.
10947         (SC_IS_BSS): Return true for the scBss storage class only, as
10948         the scSBss storage class refers to the .sbss section.
10949         (parse_partial_symbols): Discard the symbols which associated
10950         section does not exist.
10951         Make sure to use the .sbss section index for symbols which
10952         storage class is scBss, rather than using the .bss section index.
10953
10954 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10955
10956         * vax-tdep.c: Update copyright years.
10957         (vax_register_name): New function.
10958         (vax_register_byte): Ditto.
10959         (vax_register_raw_size): Ditto.
10960         (vax_register_virtual_size): Ditto.
10961         (vax_register_virtual_type): Ditto.
10962         * config/vax/tm-vax.h: Update copyright years.
10963         (REGISTER_NAMES): Remove.
10964         (REGISTER_NAME): Define.
10965         (REGISTER_BYTE): Use vax_register_byte.
10966         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10967         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10968         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10969
10970 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10971
10972         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10973         declaration
10974         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10975
10976 2002-04-21  David S. Miller  <davem@redhat.com>
10977
10978         * arch-utils.c (generic_prologue_frameless_p): Kill
10979         SKIP_PROLOGUE_FRAMELESS_P code.
10980         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10981         references.
10982         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10983         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10984         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10985         references.
10986         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10987         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10988         (sparc_gdbarch_init): Pass it to
10989         set_gdbarch_prologue_frameless_p.
10990
10991 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10992
10993         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10994         (alphabsd-nat.o): New dependency list.
10995
10996 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10997
10998         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10999         alphafbsd-tdep.c.
11000         (alpha-linux-tdep.o): New dependency list.
11001         (alphafbsd-tdep.o): Likewise.
11002
11003 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11004
11005         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11006         to here...
11007         * alpha-tdep.c: ...from here.
11008         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11009
11010 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11011
11012         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11013         prototype from here...
11014         * alpha-tdep.h: ...to here.
11015
11016 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11017
11018         * frame.h (selected_frame_level): Document as deprecated.
11019         (frame_relative_level): Declare.
11020         * stack.c (frame_relative_level): New function.
11021         (selected_frame_level): Document as deprecated.
11022         (select_frame): Do not set the selected_frame_level.
11023
11024         * stack.c (frame_info, record_selected_frame): Update.
11025         (frame_command, current_frame_command): Update.
11026         (up_silently_base, up_command, down_silently_base): Update.
11027         (down_command): Update.
11028         * inflow.c (kill_command): Update.
11029         * tracepoint.c (finish_tfind_command): Update.
11030         * corelow.c (core_open): Update.
11031         * thread.c (info_threads_command): Update.
11032         (do_captured_thread_select): Update.
11033         * infcmd.c (finish_command): Update.
11034         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11035
11036 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11037
11038         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11039
11040 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11041
11042         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11043         type const.
11044
11045 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11046
11047         * alphafbsd-tdep.c: Update copyright years.  Include
11048         alpha-tdep.h.
11049         (alphafbsd_use_struct_convention): Make static.
11050         (alphafbsd_init_abi): New function.
11051         (_initialize_alphafbsd_tdep): New function.
11052         * config/alpha/tm-fbsd.h: Update copyright years.
11053         (USE_STRUCT_CONVENTION): Remove.
11054
11055 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11056
11057         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11058         an Alpha ABI variant.
11059         (alpha_abi_handler_list): Declare.
11060         (alpha_gdbarch_register_os_abi): New function.
11061         (alpha_gdbarch_init): Give registered ABI variant handlers a
11062         chance to tweak the gdbarch once we have set up defaults.
11063         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11064
11065 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11066
11067         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11068         to standard_coerce_float_to_double.
11069         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11070
11071 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11072
11073         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11074         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11075         from gdbarch_tdep rather than a constant.
11076         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11077         the default text address for all Alpha Unix ABIs.
11078         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11079         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11080
11081 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11082
11083         * alpha-tdep.h: New file.  Includes several Alpha target constants
11084         taken from...
11085         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11086         let gdbarch deal with.
11087         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11088         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11089         to dependency list.
11090         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11091         Alpha target register names.
11092         * alphabsd-nat.c: Likewise.
11093         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11094         Alpha target register names.  Make serveral routines static.
11095         (alpha_get_saved_register): New function.
11096         (alpha_abi_names): New.
11097         (process_note_abi_tag_sections): New function.
11098         (get_elfosabi): New function.
11099         (alpha_gdbarch_init): New function.
11100         (alpha_dump_tdep): New function.
11101         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11102
11103 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11104
11105         * frame.c (find_saved_register): Delete #ifdef
11106         HAVE_REGISTER_WINDOWS code.
11107         * config/sparc/tm-sparc.h: Update comments.
11108         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11109
11110 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11111
11112         * i960-tdep.c (i960_find_saved_register): New function.
11113         (i960_get_saved_register): New function.
11114         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11115         (i960_get_saved_register): Declare.
11116         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11117
11118 2002-04-20  David S. Miller  <davem@redhat.com>
11119
11120         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11121
11122 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11123
11124         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11125         instead of NUM_PSEUDO_REGS.
11126
11127 2002-04-20  David S. Miller  <davem@redhat.com>
11128
11129         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11130         GDB_MULTI_ARCH_PARTIAL
11131         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11132         define, let tm-sp64.h do it.
11133
11134 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11135
11136         * frame.c (find_saved_register): Avoid a NULL pointer
11137         dereference and actually walk the frame list.
11138
11139 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11140
11141         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11142         sorted in most most-recent-used order.  Document.
11143         * gdbarch.h, gdbarch.c: Regenerate.
11144
11145 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11146
11147         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11148         instead of ->prev.
11149         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11150         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11151         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11152         instead of ->prev.
11153
11154 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11155
11156         Fix PR gdb/471.
11157         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11158         (build_builtin_type_vec128): Ditto.
11159         (append_composite_type_field): Fix calculation of type length in
11160         union case.
11161
11162 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11163
11164         * config/djgpp/README: Update.
11165
11166         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11167         compiler warnings.
11168
11169 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11170
11171         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11172         (alpha_setup_arbitrary_frame): ...to this.
11173         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11174         for alpha_setup_arbitrary_frame.
11175
11176 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11177
11178         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11179         * gdbarch.h, gdbarch.c: Regenerate.
11180
11181         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11182         * target.h (memory_breakpoint_from_pc): Update declaration.
11183         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11184
11185         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11186         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11187         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11188         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11189         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11190         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11191         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11192         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11193         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11194         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11195         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11196         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11197
11198         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11199         const pointer.
11200         * monitor.c (monitor_insert_breakpoint): Ditto.
11201         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11202
11203         * config/mcore/tm-mcore.h: Update copyright.
11204         * mem-break.c: Ditto.
11205         * xstormy16-tdep.c: Ditto.
11206
11207 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11208
11209         * p-exp.y: Add precedence rule for '^' token.
11210         This removes the shift/reduce conflicts.
11211         Remove the comment concerning these shift/reduce conflicts.
11212
11213 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11214
11215         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11216         (registers_powerpc_nofp): New register set for processors
11217         without floating point unit.
11218
11219 2002-04-18  David S. Miller  <davem@redhat.com>
11220
11221         * MAINTAINERS: Add myself to write-after-approval.
11222
11223 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11224
11225         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11226
11227 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11228
11229         * rs6000-tdep.c (frame_initial_stack_address): Use
11230         frame_register_read to read the alloca_reg.
11231
11232 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11233
11234         * frame.c (find_saved_register): Find saved registers in the next
11235         not prev frame.
11236         Fix PR gdb/365.
11237
11238 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11239
11240         * gdbarch.sh (LANG): Set to ``c''.
11241
11242 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11243
11244         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11245
11246 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11247
11248         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11249         Update copyright.
11250
11251         * hpread.c (hpread_get_lntt): Add declaration.
11252         Also fix PR gdb/391.
11253
11254 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11255
11256         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11257         * aclocal.m4, configure: Re-generate.
11258         Fix PR gdb/391.
11259
11260 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11261
11262         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11263         instead of tm_print_insn.
11264
11265 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11266
11267         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11268
11269 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11270
11271         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11272         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11273         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11274
11275 2002-04-12  Don Howard  <dhoward@redhat.com>
11276
11277         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11278         max_user_call_depth.
11279         (init_cmd_lists): Initialize the new value;
11280         * cli/cli-script.c (execute_user_command): Limit the call depth of
11281         user defined commands.  This avoids a core-dump when user commands
11282         are infinitly recursive.
11283
11284 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11285
11286         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11287         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11288         from tdep struct instead of DEFAULT_LR_SAVE.
11289         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11290         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11291         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11292
11293 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11294
11295         * Remote.c: Spelling fix.
11296         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11297         If no symbol found for "sbrk", try "_sbrk".
11298         (make_output_phdrs): Use bfd_section_name.
11299         (gcore_copy_callback): Use bfd_section_name.
11300         * eval.c: Indentation fix-ups.
11301         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11302         in case it gets applied to an address that is already
11303         in the instruction space.
11304         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11305         * symfile.c: Fix indentation, long lines.
11306         * source.c: White space fix-up.
11307
11308 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11309
11310         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11311         * frame.c (frame_register_read): New function.  Return non-zero on
11312         success.
11313         (read_relative_register_raw_bytes_for_frame): Delete.
11314         (read_relative_register_raw_bytes): Delete.
11315         * frame.h (frame_register_read): Declare.
11316         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11317         * sh-tdep.c: Ditto.
11318         * infcmd.c (do_registers_info): Ditto.
11319         * hppa-tdep.c: Ditto.
11320         * rs6000-tdep.c: Ditto.
11321         * h8500-tdep.c: Ditto.
11322         * mips-tdep.c: Ditto.
11323         * h8300-tdep.c: Ditto.
11324         * z8k-tdep.c: Ditto.
11325
11326 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11327
11328         From Jimi X <jimix@watson.ibm.com>:
11329         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11330         64-bit SysV ABI.
11331
11332 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11333
11334         From Jimi X <jimix@watson.ibm.com>:
11335         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11336         bfd info.
11337
11338 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11339
11340         From Jimi X <jimix@watson.ibm.com>:
11341         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11342         register sets for these processor variants.
11343
11344 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11345
11346         * regformats/reg-ppc.dat: Support FPSCR.
11347
11348 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11349
11350         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11351         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11352         Add fpscr as an invalid/unfetchable register.
11353         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11354         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11355         (fill_fpregset): Add support for register fpscr.
11356         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11357         (fill_gregset): Account for the fact that register ``mq'' might
11358         not exist.
11359         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11360         (registers_power): Add fpscr to register set at slot 71.
11361         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11362         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11363
11364 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11365
11366         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11367         * configure: Regenerate.
11368         * config.in: Regenerate.
11369         * acconfig.h: Add define for _SYSCALL32.
11370         * core-sol2.c: Remove #define _SYSCALL32.
11371         * solib-legacy.c: Remove #define _SYSCALL32.
11372
11373 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11374
11375         * stack.c (select_frame): Cleanup internal error message, do not
11376         use %p.
11377
11378 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11379
11380         * stack.c (select_frame): Check that selected_frame and the
11381         specified level are as expected.
11382         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11383         Update copyright.
11384         * frame.h (struct frame_info): Add field `level'.  Update
11385         copyright.
11386         Work-in-progress PR gdb/464.
11387
11388 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11389
11390         * maint.c (maint_print_section_info): Rename print_section_info.
11391         (print_bfd_section_info, print_objfile_section_info): Update.
11392         * inferior.h (struct gdbarch): Add opaque declaration.
11393         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11394         * gdbarch.h: Regenerate.
11395
11396 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11397
11398         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11399         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11400         (kernel_u_size): Added.
11401         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11402         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11403
11404 2002-04-04  Jim Ingham  <jingham@apple.com>
11405
11406        * valarith.c (find_size_for_pointer_math): New function, either returns
11407        the size for a pointer's target, returns 1 for void *, or errors for
11408        incomplete types.
11409        (value_add, value_sub): use find_size_for_pointer_math.
11410
11411 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11412
11413         * linux-low.c (linux_look_up_symbols): New hook.
11414         (linux_target_ops): Add linux_look_up_symbols.
11415         * remote-utils.c (decode_address): New function.
11416         (look_up_one_symbol): New function.
11417         * server.c (handle_query): Call target look_up_symbols hook.
11418         * server.h (look_up_one_symbol): Add prototype.
11419         * target.h (struct target_ops): Add look_up_symbols hook.
11420
11421 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11422
11423         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11424         override FP_REGNUM with frame->fp.  Update copyright.
11425         * parse.c (num_std_regs, std_regs): Delete.
11426         (target_map_name_to_register): Do not search std_regs.  Update
11427         function description.
11428         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11429         declarations.  Update copyright.
11430         Fix PR gdb/251.
11431
11432 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11433
11434         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11435         after the last symbol in a block.
11436
11437 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11438
11439         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11440         is non zero as a found symbol.
11441
11442 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11443
11444         * findvar.c: Include "builtin-regs.h".
11445         (value_of_register): Call value_of_builtin_reg when applicable.
11446         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11447         (target_map_name_to_register): Call
11448         builtin_reg_map_name_to_regnum.
11449         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11450         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11451         (builtin_regs_h): Define.
11452         (builtin-regs.o): New target.
11453         (findvar.o): Add $(builtin_regs_h).
11454         * builtin-regs.c, builtin-regs.h: New files.
11455         * std-regs.c: New file.
11456         Partial fix for PR gdb/251.
11457
11458 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11459
11460         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11461         it's no longer required.
11462
11463 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11464
11465         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11466
11467 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11468
11469         From Jimi X <jimix@watson.ibm.com>:
11470         * rs6000-tdep.c (rs6000_software_single_step): Use
11471         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11472         and size.  Use target_insert_breakpoint() and
11473         target_remove_breakpoint() to insert and remove breakpoints
11474         instead of explicit memory reads and writes.
11475
11476 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11477
11478         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11479         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11480         ELF_OBJECT_FORMAT ifdef.
11481
11482 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11483
11484         From Jimi X <jimix@watson.ibm.com>:
11485         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11486
11487 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11488
11489         From Jimi X <jimix@watson.ibm.com>:
11490         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11491         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11492
11493 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11494
11495         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11496         s/asprintf/xasprintf/.
11497         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11498
11499 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11500
11501         I believe Jeff Law denies responsability for this one:
11502         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11503         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11504         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11505         Work-around for PR gdb/366.
11506
11507 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11508
11509         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11510         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11511         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11512
11513 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11514
11515         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11516         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11517         information.
11518
11519 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11520
11521         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11522         maintainer.
11523
11524 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11525
11526         * README (Reporting Bugs in GDB): Document the bug web page as the
11527         prefered way of submitting bugs.
11528         Fix PR gdb/402.
11529
11530 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11531
11532         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11533         -1.  Update comment.
11534         * gdbarch.h, gdbarch.c: Re-generate.
11535
11536 2002-04-07  Andreas Schwab  <schwab@suse.de>
11537
11538         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11539         buffer to regcache_collect.
11540
11541 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11542
11543         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11544         * gdbarch.c, gdbarch.h: Re-generate.
11545
11546 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11547
11548         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11549         declaration.  Fix -Werror.
11550
11551 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11552
11553         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11554         * gdbarch.c: Regenerate.
11555
11556 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11557
11558         * breakpoint.c (clear_command): Rewrite middle section to
11559         combine two loops with identical control conditions.
11560         Add a cleanup to eliminate a memory leak.
11561         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11562
11563 2002-04-05  H.J. Lu  (hjl@gnu.org)
11564
11565         * solib-svr4.c (bkpt_names): Add "__start".
11566
11567 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11568
11569         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11570         as test for 64 bit target.
11571
11572 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11573
11574         * h8500-tdep.c (h8500_write_fp): Delete function.
11575         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11576         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11577         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11578         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11579         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11580         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11581         (s390_write_fp):
11582         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11583         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11584         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11585         (d10v_write_fp): Delete function.
11586         * inferior.h (write_fp, generic_target_write_fp): Delete
11587         declarations.
11588         * regcache.c (generic_target_write_fp): Delete function.
11589         (write_fp): Delete function.
11590         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11591         * gdbarch.h, gdbarch.c: Regenerate.
11592         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11593         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11594         (sparc64_write_fp): Delete declaration.
11595         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11596         (h8500_write_fp): Delete declaration.
11597
11598 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11599
11600         * sparc-tdep.c (sparc64_write_fp): Delete.
11601         (sparc_push_dummy_frame): Replace write_fp call with code to store
11602         the FP directly.
11603         (sparc_gdbarch_init): Do not initialize write_fp.
11604
11605 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11606
11607         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11608         clause.
11609
11610 2002-03-29  Jim Blandy  <jimb@redhat.com>
11611
11612         * stack.c (get_selected_block): Add new argument `addr_in_block',
11613         used to return the exact code address we used to select the block,
11614         not just the block.
11615         * blockframe.c (get_frame_block, get_current_block): Same.
11616         * frame.h (get_frame_block, get_current_block,
11617         get_selected_block): Update declarations.
11618         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11619         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11620
11621 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11622
11623         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11624         warning message.
11625
11626 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11627
11628         * utils.c (xfullpath): New function.
11629         * defs.h (xfullpath): Add declaration.
11630         * source.c (openp): Use xfullpath in place of gdb_realpath to
11631         avoid resolving the basename part of filenames when the
11632         associated file is a symbolic link. This fixes a potential
11633         inconsistency between the filenames known to GDB and the
11634         filenames it prints in the annotations.
11635         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11636         to be able to match a filename with either the real filename, or
11637         the name of any symbolic link to this file.
11638         (lookup_partial_symtab): Ditto.
11639
11640 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11641
11642         * breakpoint.c: Add support for hardware breakpoints in overlays.
11643         (overlay_events_enabled): New state variable.
11644         (insert_breakpoints): Use overlay_events_enabled to decide
11645         whether to attempt to set a breakpoint at the overlay load addr.
11646         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11647         (remove_breakpoint): Use overlay_events_enabled to decide
11648         whether breakpoints need to be removed from overlay load addr.
11649         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11650         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11651         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11652         disable_overlay_breakpoints): Update overlay_events_enabled.
11653
11654 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11655
11656         * dwarf2read.c (struct function_range): New.
11657         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11658         (check_cu_functions): New.
11659         (read_file_scope): Initialize global function lists.
11660         Call dwarf_decode_line after processing children.
11661         (read_func_scope): Add to global function list.
11662         (dwarf_decode_lines): Call check_cu_functions everywhere
11663         record_line is called.  Call record_line with a linenumber
11664         of 0 to mark sequence ends.
11665
11666 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11667
11668         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11669         change sync with glibc.
11670
11671 2002-04-03  Jim Blandy  <jimb@redhat.com>
11672
11673         * configure.in: Call AC_C_INLINE.
11674         * configure: Regenerated.
11675
11676 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11677
11678         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11679         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11680
11681 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11682
11683         * NEWS: Mention gcore support on FreeBSD/i386.
11684
11685         * fbsd-proc.c: New file.
11686         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11687         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11688
11689         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11690         while statement.
11691
11692 2002-03-29  Jim Blandy  <jimb@redhat.com>
11693
11694         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11695         unescaped newlines in string literals, but newer ones don't.  So
11696         escape them.
11697
11698 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11699             Andrew Cagney <cagney@redhat.com>
11700
11701         * cli/cli-dump.c: New file.  Dump memory to file,
11702         restore file to memory.
11703         * cli/cli-dump.h: New file.
11704         * Makefile.in: Add rules, dependencies for cli-dump.o.
11705         * NEWS: Mention new commands.
11706
11707 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11708
11709         * symfile.c (symbol_file_add): Move test for null symbols to later.
11710
11711 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11712
11713         From veksler at il.ibm.com:
11714         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11715         the xstrduped original path.
11716         Fix PR gdb/417.
11717
11718 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11719
11720         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11721         * infcmd.c (_initialize_infcmd): Ditto.
11722         * language.c (_initialize_language): Ditto.
11723         * symfile.c (_initialize_symfile): Ditto.
11724         * top.c (_init_main): Ditto.
11725         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11726
11727 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11728
11729         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11730         vector registers handling.
11731         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11732         fields of frame data.
11733         (frame_get_saved_regs): Fill in information for AltiVec registers.
11734
11735 2002-03-27  Jim Blandy  <jimb@redhat.com>
11736
11737         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11738         a function; leave this macro here to invoke that function.
11739         (symbol_init_mangled_name): Declaration for that function.
11740         * symtab.c (symbol_init_mangled_name): New function.
11741
11742 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11743
11744         * valarith.c: Replace strerror with safe_strerror.
11745         * tracepoint.c: Ditto.
11746         * lin-lwp.c: Ditto.
11747         * go32-nat.c: Ditto.
11748         * inflow.c: Ditto.
11749         * gnu-nat.c: Ditto.
11750
11751 2002-03-27  Andreas Schwab  <schwab@suse.de>
11752
11753         * event-top.c (command_line_handler): Remove useless if.
11754
11755 2002-03-27  Andreas Jaeger  <aj@suse.de>
11756
11757         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11758         comment.
11759
11760 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11761
11762         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11763         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11764         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11765         (x86_64_linux_dr_get_status, supply_gregset),
11766         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11767         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11768         (x86_64_register_info_table): Add.
11769         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11770         (x86_64_register_raw_size, x86_64_register_virtual_type),
11771         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11772         general x86_64_register_info_table.
11773         (i386_gdbarch_init): gdbarch_register_bytes is now set
11774         dynamicaly during initialization.
11775         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11776         * gdbserver/linux-x86-64-low.c: Ditto.
11777
11778 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11779
11780         * gdbserver/server.c (main): Call target_signal_to_host_p
11781         and target_signal_to_host on signals received from the remote.
11782         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11783         target_signal_from_host on signals sent to the remote.
11784         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11785         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11786
11787 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11788
11789         * signals/signals.c: Include "server.h" in gdbserver build.
11790         (target_signal_from_name): Don't use STREQ.
11791         (_initialize_signals): Likewise.  Don't include function in
11792         gdbserver build.
11793
11794 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11795
11796         * signals.c: Moved to...
11797         * signals/signals.c: Here.
11798         * Makefile (signals.o): Update.
11799
11800 2002-03-26  Jeff Law (law@redhat.com)
11801
11802         * somread.c (som_symtab_read): Remove some commented out code and
11803         updated related comments.  Do not set the minimal symbol table to
11804         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11805         in a dynamic executable.
11806         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11807         where we are unable to find the minimal symbol for the given
11808         PC value.
11809
11810 2002-03-25  Jeff Law (law@redhat.com)
11811
11812         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11813
11814 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11815
11816         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11817
11818 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11819
11820         * command.h: Update copyright.
11821         (struct cmd_list_element): Replace definition with opaque
11822         declaration.
11823         (enum cmd_types): Document that it will eventually be moved to
11824         cli/cli-decode.h
11825         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11826         (MALLOCED_REPLACEMENT): Delete macro.
11827         * Makefile.in (cli_decode_h): Add $(command_h).
11828         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11829         * top.c: Include "cli/cli-decode.h".
11830         * completer.c: Include "cli/cli-decode.h".
11831         * maint.c: Include "cli/cli-decode.h".
11832         * cli/cli-decode.h: Include "command.h".
11833         (enum command_class): Delete.
11834         (enum cmd_types): Comment out.
11835         (enum cmd_auto_boolean): Delete.
11836         (enum var_types): Delete.
11837
11838 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11839
11840         * cli/cli-decode.c: Include "gdb_assert.h".
11841         (add_set_or_show_cmd): New static function.
11842         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11843         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11844         all fields, such as func, from the set command.
11845
11846 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11847
11848         * MAINTAINERS (sh-elf): Change warning flag to -w.
11849
11850 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11851
11852         * defs.h (error): Add printf format attribute.
11853         * thread-db.c (thread_from_lwp): Fix error format string.
11854         * stack.c (parse_frame_specification): Ditto.
11855         * cli/cli-decode.c (undef_cmd_error): Ditto.
11856         * scm-lang.c (scm_lookup_name): Ditto.
11857         * tracepoint.c (trace_error): Ditto.
11858         * remote-utils.c (usage): Ditto.
11859         * remote.c (compare_sections_command): Ditto.
11860         Fix PR gdb/328.
11861
11862 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11863
11864         * gdbtypes.c (append_composite_type_field): New function.
11865         (init_composite_type): New function.
11866         * gdbtypes.h (append_composite_type_field): Declare.
11867         (init_composite_type): Ditto.
11868
11869 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11870
11871         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11872         function.
11873         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11874         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11875         structure returning convention for SYSV ABI case, but not
11876         for GNU/Linux, FreeBSD, or NetBSD.
11877
11878 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11879
11880         * symtab.h (lookup_block_symbol): Add mangled_name argument
11881         to prototype.
11882
11883         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11884         with new mangled_name argument.
11885         * linespec.c (decode_line_1): Likewise.
11886         * valops (value_of_this): Likewise.
11887         * symtab.c (lookup_transparent_type): Likewise.
11888         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11889         (lookup_symbol): If we are given a mangled name, pass it down
11890         to lookup_symbol_aux.
11891         (lookup_block_symbol): If we are given a mangled name to check
11892         against, only return symbols which match it.
11893
11894 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11895
11896         * win32-nat.c (child_create_inferior): Check for proper shell to use
11897         here, in case the user changes it on the fly.
11898         (_initialize_inftarg): Remove shell path considerations.
11899
11900 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11901
11902         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11903         for gdbarch_max_register_raw_size and max_register_virtual_size.
11904         Adjust copyright year.
11905
11906 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11907
11908          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11909          in a function to cover the entire beginning of the function
11910          as well if it does not already.
11911
11912 2002-03-21  Tom Rix  <trix@redhat.com>
11913
11914         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11915         (rs6000_ptrace64): Renamed from ptrace64.
11916
11917 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11918
11919         * gdbserver/remote-utils.c (remote_open): Don't call
11920         getprotobyname, we're all using TCP here so just use
11921         IPPROTO_TCP.
11922         * gdbserver/gdbreplay.c (remote_open): Ditto.
11923
11924 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11925
11926         * regcache.c (_initialize_regcache): No need to call
11927         build_regcache() at this time; it gets called whenever
11928         the gdbarch changes.
11929
11930 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11931
11932         * sparc-nat.c:  Include sys/param.h where possible.
11933
11934 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11935
11936         Fix PR gdb/422.
11937         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11938         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11939         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11940         complex types.
11941         * stabsread.c (rs6000_builtin_type): Likewise.
11942         (read_sun_floating_type): Likewise.
11943
11944 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11945
11946         * stabsread.c (read_member_functions): Remove skip code for duplicate
11947         constructor/destructor methods.  Use standard parsing for these
11948         methods and just do not chain them to the list of methods after
11949         parsing.
11950
11951 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11952
11953         * coffread.c: Remove redundant static declarations.  Replace
11954         occurrences of `PTR' with `void *'.
11955         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11956         * top.h (quit_cover): Likewise.
11957         * defs.h (catch_errors): Likewise.
11958
11959 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11960
11961         * defs.h (XMALLOC): Define.
11962         * gdb-events.sh (XMALLOC): Delete macro.
11963         * gdb-events.c, gdb-events.h: Regenerate.
11964         * gdbarch.sh (XMALLOC): Delete macro.
11965         * gdbarch.c: Regenerate.
11966         * serial.c (XMALLOC): Delete macro.
11967         * ui-file.c (XMALLOC): Ditto.
11968         * ser-unix.h (XMALLOC): Ditto.
11969         * sh-tdep.c (XMALLOC): Ditto.
11970         * ui-out.c (XMALLOC): Ditto.
11971         * utils.c (XMALLOC): Ditto.
11972         * i386-tdep.c (XMALLOC): Ditto.
11973         * gdb-events.c (XMALLOC): Ditto.
11974         * d10v-tdep.c (XMALLOC): Ditto.
11975         * cli-out.c (XMALLOC): Ditto.
11976
11977         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11978         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11979         * ui-file.c, ui-out.c: Ditto.
11980
11981 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11982
11983         * command.h (struct cmd_list_element): Add field context.
11984         (set_cmd_context, get_cmd_context): Declare.
11985         * cli/cli-decode.h: Ditto.
11986         * cli/cli-decode.c (get_cmd_context): New function.
11987         (set_cmd_context): New function.
11988         (add_cmd): Initialize context.
11989         Part of fixing PR gdb/145 and PR gdb/146.
11990
11991 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11992
11993         * cli/cli-decode.c (cmd_type): New function.
11994         * command.h (cmd_type): Declare.
11995         * infrun.c (set_schedlock_func): Call function cmd_type.
11996         * kod.c (kod_set_os): Call cmd_type.
11997         * cris-tdep.c (cris_version_update): Use function cmd_type.
11998         (cris_mode_update, cris_abi_update): Ditto.
11999
12000         * command.h: (execute_cmd_post_hook): Declare.
12001         (execute_cmd_pre_hook): Declare.
12002         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12003         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12004         functions. Execute pre/post hook while ensuring that afterwords
12005         hook_in is cleared.
12006         * top.c (execute_command): Use execute_cmd_post_hook, and
12007         execute_cmd_pre_hook to execute pre/post commands.
12008         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12009         hook_stop_stub.
12010         (hook_stop_stub): Call execute_cmd_pre_hook.
12011
12012 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12013
12014         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12015         set'' and this leads to a core dump.  Move xstrdup of
12016         operating_system to after check that it is not NULL.
12017
12018 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12019
12020         * kod.c (kod_set_os): Remove unnecessary check that
12021         ``command->type'' is set_cmd.
12022
12023         * valprint.c (set_input_radix): Use input_radix.
12024         (set_output_radix): Use output_radix.
12025         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12026         isn't reverted.
12027
12028 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12029
12030         * value.h (struct value): Delete field ``substring_addr''.  Change
12031         aligner fields to force_doublest_align, force_longest_align,
12032         force_core_addr_align and force_pointer_aligh.
12033
12034         * value.h (struct value): Fix typo in above change.
12035
12036 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12037
12038         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12039         to fix internal_error from ``maintenance print architecture''.
12040
12041 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12042
12043         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12044         for gcc versions after gcc-2.8.1.
12045
12046 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12047
12048         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12049         for method resolution.  Restore adjustment of ``this'' pointer after
12050         calling value_struct_elt, which was accidentally removed during the
12051         HP merge.
12052
12053 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12054
12055         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12056         value_of_register.
12057         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12058         get_saved_register.
12059         * value.h (value_of_register): Update.
12060
12061 2002-03-14  Richard Henderson  <rth@redhat.com>
12062
12063         * configure.in: Detect declaration for canonicalize_file_name.
12064         * utils.c (canonicalize_file_name): Declare, if needed.
12065         (gdb_realpath): Prefer realpath if available and usable.
12066         * config.in, configure: Rebuild.
12067
12068 2002-03-14  Richard Henderson  <rth@redhat.com>
12069
12070         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12071         a constant array bound.
12072
12073         * MAINTAINERS: Add myself to write-after-approval.
12074
12075 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12076
12077         * symfile.c (syms_from_objfile): Return immediately if no syms.
12078         (symbol_file_add): Return immediately if no syms.
12079         (find_sym_fns): Return immediately if no syms.
12080
12081 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12082
12083         * gdbserver/remote-util.c (remote_open): Print remote-side's
12084         IP address when remote debugging over the network.
12085
12086 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12087
12088         * config/sparc/fbsd.mh: Fix copyright.
12089         * config/sparc/fbsd.mt: Likewise.
12090
12091 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12092
12093         * MAINTAINERS: Fix typo in name of gdb warnings option.
12094         (x86-64): Fix formating so that this can be parsed by awk.
12095
12096 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12097
12098         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12099         * defs.h: Include "gdb/signals.h".
12100         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12101
12102 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12103
12104         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12105         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12106         from x86-64-tdep.h
12107
12108 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12109             Don Howard <dhoward@redhat.com>
12110
12111         * mips-tdep.c (ST0_FR): Define.
12112         (mips2_fp_compat): New function, temporarily disabled.
12113         (mips_read_fp_register_single): New function.
12114         (mips_read_fp_register_double): New function.
12115         (mips_print_register): Use them.
12116         (do_fp_register_row): Likewise.
12117
12118 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12119
12120         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12121         approval''.
12122
12123 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12124
12125         * stabsread.c (read_member_functions): Fix is_stub test for
12126         static member functions, improve comment.
12127
12128 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12129
12130         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12131         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12132         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12133         commands that set boolean values.
12134         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12135         (arm_rdi_resume): Always initialize PC.
12136         (arm_rdi_open): Don't use rslt as a boolean.
12137         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12138         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12139         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12140         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12141
12142 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12143
12144         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12145         * configure: Rebuilt.
12146
12147 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12148
12149         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12150         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12151
12152 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12153
12154         * cli/cli-decode.c (set_cmd_completer): New function.
12155         * command.h (set_cmd_completer): Declare.
12156         * cli/cli-decode.h (set_cmd_completer): Ditto.
12157
12158         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12159         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12160         * win32-nat.c (_initialize_inftarg): Ditto.
12161         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12162         * proc-api.c (_initialize_proc_api): Ditto.
12163         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12164         * source.c (_initialize_source): Ditto.
12165         * exec.c (_initialize_exec): Ditto.
12166         * solib.c (_initialize_solib): Ditto.
12167         * top.c (init_main): Ditto.
12168         * tracepoint.c (_initialize_tracepoint): Ditto.
12169         * symfile.c (_initialize_symfile): Ditto.
12170         * printcmd.c (_initialize_printcmd): Ditto.
12171         * infcmd.c (_initialize_infcmd): Ditto.
12172         * corefile.c (_initialize_core): Ditto.
12173
12174 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12175
12176         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12177
12178 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12179
12180         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12181
12182 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12183
12184         * NEWS: Update headings, 5.2 has branched.
12185
12186 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12187
12188         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12189         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12190         (register_addr, REGISTER_RAW_SIZE): Likewise.
12191         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12192         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12193
12194 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12195
12196         * MAINTAINERS (x86-64): Add myself.
12197         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12198         changed value_ptr -> struct value *
12199
12200 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12201
12202         * configure.host (sparc64-*-freebsd): Add.
12203         * configure.tgt: Likewise.
12204         * config/sparc/fbsd.mh: New file.
12205         * config/sparc/fbsd.mt: Likewise.
12206         * config/sparc/nm-fbsd.h: Likewise.
12207         * config/sparc/tm-fbsd.h: Likewise.
12208
12209 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12210
12211         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12212         regformats/reg-s390x.dat.
12213
12214 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12215
12216         * utils.c: Add FIXME explaining true/false problem.
12217
12218 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12219
12220         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12221
12222 2002-02-28  Michael Chastain  <mec@shout.net>
12223
12224         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12225
12226 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12227
12228         * gdbserver/linux-s390-low.c: New file.
12229         * regformats/reg-s390.dat: New file.
12230         * regformats/reg-s390x.dat: New file.
12231         * gdbserver/configure.srv: Add S/390.
12232         * gdbserver/Makefile.in: Add S/390.
12233         * configure.tgt: Enable gdbserver for S/390.
12234
12235 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12236
12237         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12238         first line of the doc string for "info dos", except at the end of
12239         the sentence, since the short help stops at the first period.
12240
12241 2002-02-28  Jason Merrill  <jason@redhat.com>
12242
12243         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12244
12245 2002-02-27  Fred Fish  <fnf@redhat.com>
12246
12247         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12248         comment (dumy -> dummy).
12249
12250 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12251
12252         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12253
12254 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12255
12256       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12257
12258 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12259
12260         * gdbserver/acconfig.h: New file.
12261         * gdbserver/i387-fp.c: New file.
12262         * gdbserver/i387-fp.h: New file.
12263         * gdbserver/linux-x86-64.c: New file.
12264         * regformats/reg-x86-64.dat: New file.
12265         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12266         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12267         * gdbserver/configure.in: Add support for regsets.
12268         * gdbserver/config.in: Regenerate.
12269         * gdbserver/configure: Regenerate.
12270         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12271         * gdbserver/linux-low.h: New file.
12272         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12273         for regsets.
12274         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12275         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12276         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12277         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12278         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12279         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12280         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12281         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12282         * gdbserver/regcache.c (supply_register): New function.
12283         (supply_register_by_name): New function.
12284         (collect_register): New function.
12285         (collect_register_by_name): New function.
12286
12287 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12288
12289         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12290         (config.status): Add configure.srv dependency.
12291         (server_h): Add config.h dependency.
12292
12293 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12294
12295         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12296         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12297         * gdbserver/configure.srv: Change i386-*-linux* to use
12298         reg-i386-linux.o.
12299
12300 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12301
12302         * x86-64-tdep.c: Re-indent.  Update copyright date.
12303
12304 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12305
12306         From Michal Ludvig <mludvig@suse.cz>:
12307         * x86-64-tdep.c (value.h): Delete.
12308         (gdb_assert.h): Include.
12309         (x86_64_register_convert_to_virtual,
12310         x86_64_register_convert_to_raw ): Add check which lets only
12311         floating-point values to be converted.
12312         (value_push): Delete.
12313         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12314         (i386_gdbarch_init): Number of register_bytes fixed.
12315
12316 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12317
12318         * MAINTAINERS: Add x86-64 target.
12319
12320 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12321
12322         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12323         * osfsolib.c (solib_map_sections): Ditto.
12324         * irix5-nat.c (solib_map_sections): Ditto.
12325         * corelow.c (gdb_check_format): Ditto.
12326         * symfile.c (symfile_bfd_open): Ditto.
12327         * solib.c (solib_map_sections): Ditto.
12328         Fix PR gdb/354.
12329
12330 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12331
12332         * remote.c (_initialize_remote): By default, disable ``e'' and
12333         ``E'' step out-of-range packets.
12334
12335 2002-02-26  Andreas Schwab  <schwab@suse.de>
12336
12337         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12338         m68k_linux_frame_saved_pc.
12339         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12340         in_sigtramp.
12341         (SIGCONTEXT_PC_OFFSET): Remove.
12342         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12343         m68k_linux_sigtramp_saved_pc): New functions.
12344         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12345         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12346         (UCONTEXT_PC_OFFSET): Define.
12347         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12348         non-RT and RT signal trampolines.
12349
12350 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12351
12352         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12353         (TARGET_NBPG, STACK_END_ADDR): Delete
12354         (VARIABLES_INSIDE_BLOCK): Delete.
12355
12356 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12357
12358         * utils.c (perror_with_name): Make string parameter constant.
12359         (print_sys_errmsg): Ditto.
12360         (query): Ditto.
12361         * defs.h (perror_with_name): Update.
12362         (print_sys_errmsg): Update.
12363         (query): Update.
12364
12365 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12366
12367         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12368         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12369
12370 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12371
12372         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12373         if it already matches the current architecture from the exec file.
12374         Include arch-utils.h for gdbarch_info_init prototype.
12375         * Makefile.in (rs6000-nat.o): Update dependencies.
12376
12377 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12378
12379         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12380          list of exported variables.
12381
12382 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12383
12384         * gdbserver/configure.srv: New file.
12385         * gdbserver/configure.in: Use configure.srv instead
12386         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12387         from it.
12388         * gdbserver/configure: Regenerated.
12389         * gdbserver/terminal.h: New file.
12390         * gdbserver/Makefile.in: Update for configure changes.  Remove
12391         more unneeded include paths.
12392
12393 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12394
12395         From wiz at danbala:
12396         * config/sparc/tm-sp64.h: Fix grammar and typos.
12397         Fix PR gdb/287.
12398
12399 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12400
12401         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12402         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12403         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12404         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12405         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12406         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12407         * s390-tdep.c: Ditto.
12408         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12409         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12410         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12411         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12412         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12413         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12414         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12415         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12416         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12417         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12418         Fix PR gdb/378.
12419
12420 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12421
12422         * lin-thread.c: Delete file.
12423         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12424         to gdb_proc_service.h.
12425         * configure: Re-generate.
12426
12427         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12428         * serial.c (serial_open): Delete check for "ocd".
12429         Fix PR gdb/349.
12430
12431         * Makefile.in (linux-thread.o): Delete target.
12432         * linux-thread.c: Delete file.
12433
12434         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12435         renamed SH files to be consistent.
12436
12437         * symtab.c (sort_search_symbols): Use xfree.
12438
12439 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12440
12441         * arm-linux-tdep.c (arm_linux_init_abi): Register
12442         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12443         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12444         definition with undef, since we don't want the sysvr4 definition.
12445         (SKIP_TRAMPOLINE_CODE): Likewise.
12446
12447 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12448
12449         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12450
12451         * configure.in: (AC_CHECK_FUNCS) Added test for
12452         canonicalize_file_name Regenerated.
12453         * config.in, configure: Regenerated.
12454         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12455         defined use canonicalize_file_name.
12456
12457 2002-02-23  Michael Chastain  <mec@shout.net>
12458
12459         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12460
12461 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12462
12463         * README: Remove references to cygnus.com.
12464         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12465         dot com'' form.  Remove references to cygnus.com and sourceware.
12466
12467 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12468
12469         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12470         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12471         1003.1-2001 no longer allows "head -1".
12472         * gdb/Makefile.in (version.c): Likewise.
12473         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12474         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12475         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12476
12477 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12478
12479         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12480         * command.h (cmd_cfunc_eq): Declare.
12481         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12482
12483         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12484         ``struct cmd_list_element *''.
12485         * cli/cli-cmds.c (is_complete_command): Update.  Use
12486         cmd_cfunc_eq.
12487         * top.c (execute_command): Pass the command to
12488         is_complete_command.
12489         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12490
12491 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12492
12493         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12494         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12495         architecture defines.
12496         * s390-tdep.c (s390_gdbarch_init): Likewise.
12497
12498 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12499
12500         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12501         (arm_linux_push_arguments): Likewise.
12502         (arm_linux_init_abi): Register them.  Also register linux-specific
12503         call_dummy_words.
12504         (find_minsym_and_objfile): Use strcmp, not STREQ.
12505         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12506         (arm_linux_call_dummy_words): Delete declaration.
12507         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12508         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12509         declarations.
12510         (LOWEST_PC): Delete.
12511
12512 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12513
12514         * maint.c (print_section_info): Do not prepend `0x' to filepos
12515         output, it will be handled by local_hex_string_custom.
12516
12517 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12518
12519         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12520         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12521         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12522
12523 2002-02-22  Jim Blandy  <jimb@redhat.com>
12524
12525         Indicate that the bcache functions don't change the strings
12526         they're passed.
12527         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12528         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12529
12530 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12531
12532         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12533
12534 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12535
12536         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12537         find the complete path to a loaded DLL.
12538
12539 2002-02-21  Fred Fish  <fnf@redhat.com>
12540
12541         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12542         that marks the end of the range of a function, enter a line number
12543         entry that has a line number of zero and a PC offset that matches
12544         the end of the function.  This starts a range of PC's for which no
12545         line number information is known.
12546         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12547         PC's for which no line number info is found (line number is zero)
12548         then we didn't find any valid line information.
12549         * symtab.h: Document use of zero line number entry.
12550
12551 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12552
12553         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12554         (have_ptrace_getvrregs): Define for run time checks.
12555         (gdb_vrregset_t): New type for Altivec register handling.
12556         (fetch_register, store_register): Fetch/store altivec register
12557         when needed.
12558         (fetch_altivec_register, store_altivec_register): New functions.
12559         (supply_vrregset, fill_vrregset): New functions.
12560         (fetch_altivec_registers, store_altivec_registers): New functions.
12561         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12562         registers as well.
12563
12564 2002-02-21  Jiri Smid  <smid@suse.cz>
12565
12566         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12567
12568 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12569
12570         * Makefile.in (armnbsd-nat.o): Update dependencies.
12571         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12572         supply the integer register set.
12573         (supply_fparegset): New function.  Similar for FPA registers.
12574         (fetch_regs, fetch_fp_regs): Use them.
12575         (fetch_core_registers): Likewise.
12576         (fetch_elfcore_registers): New function.
12577         (arm_netbsd_elfcore_fns): New core-file type specification.
12578         (_initialize_arm_netbsd_nat): Register it.
12579
12580 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12581
12582         * armnbsd-nat.c: Include gdbcore.h.
12583         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12584         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12585         'void' to declaration, to shut up ARI.
12586         (fetch_core_registers): Make static.  Rewrite using supply_register.
12587         (arm_netbsd_core_fns): New core-file type specification.
12588         (_initialize_arm_netbsd_nat): New function.
12589
12590 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12591
12592         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12593         value.
12594
12595 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12596
12597         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12598         fails.
12599
12600 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12601
12602         * jv-exp.y (parse_number): Change type of implicit longs
12603         to builtin_type_uint64.
12604
12605 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12606
12607         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12608         to be an integer instead of a `union wait'.
12609
12610 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12611
12612         * mips-linux-nat.c: Call the operating system GNU/Linux.
12613         * mips-linux-tdep.c: Likewise.
12614         * mips-tdep.c: Likewise.
12615
12616 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12617
12618         Fix PR gdb/265.
12619         * jv-exp.y (parse_number): Handle 64-bit integers.
12620
12621 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12622
12623         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12624         AC_STDC_HEADERS to AC_HEADER_STDC.
12625         * gdbserver/configure: Regenerated.
12626
12627 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12628
12629         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12630         is defined.
12631         * sparc-tdep.c (get_longjmp_target): Likewise.
12632
12633 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12634
12635         * News: Add news about ARM and Multi-arch.  Mention the new target
12636         arm*-*-netbsd*.
12637
12638 2002-02-19  Jim Blandy  <jimb@redhat.com>
12639
12640         * stabsread.c (error_type_complaint): Improve error message.
12641
12642 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12643
12644         * gdbserver/README: Update documentation.
12645         * gdbserver/configure.in: Update configury to match documentation.
12646         * gdbserver/Makefile.in: Likewise.
12647         * gdbserver/configure: Regenerated.
12648         * gdbserver/aclocal.m4: New file, generated by aclocal.
12649         * gdbserver/config.in: New file, generated by autoheader.
12650
12651 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12652
12653         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12654         armnbsd-nat.c.
12655
12656 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12657
12658         * arm-tdep.h (enum arm_float_model): New enum.
12659         (struct gdbarch_tdep): Add fp_model.
12660         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12661         up floating-point conversions until we know the floating-point model
12662         in use by the inferior.  Don't complain about being unable to
12663         determine the ABI of the inferior when we don't have one.
12664         (arm_extract_return_value): Support different floating-point models.
12665         (arm_store_return_value): Likewise.
12666         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12667         ARM_FLOAT_SOFT.
12668         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12669
12670 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12671
12672         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12673         of ``current_gdbarch''.
12674
12675 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12676
12677         * armnbsd-nat.c : ANSIfy all function declarations.
12678         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12679         (fetch_inferior_registers): Re-implement in terms of above.
12680         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12681         (store_inferior_registers): Re-implement in terms of above.
12682
12683 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12684
12685         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12686         kernel.
12687         * arm-linux-tdep.c: Likewise.
12688         * config/arm/tm-linux.h: Likewise.
12689
12690 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12691
12692         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12693         * config/arm/nbsd.mt (TM_FILE): Delete.
12694         * config/arm/tm-nbsd.h: Delete.
12695
12696 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12697
12698         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12699         Initialize CALL_DUMMY_LENGTH.
12700
12701 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12702
12703         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12704         function.
12705         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12706         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12707         defines one thing and that is incorrect for this port.
12708         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12709
12710 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12711
12712         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12713
12714 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12715
12716         * win32-nat.c (display_selector): New function. Displays information
12717         about the information returned by GetThreadSelectorEntry API function.
12718         (display_selectors): New function. Displays the infomation of
12719         the selector given as argument, or of CS, DS ans FS selectors
12720         if no argument is given.
12721         ( _initialize_inftarg): Add "w32" as info prefix command.
12722         Add "info w32 selector" as command calling display_selectors.
12723
12724 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12725
12726         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12727         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12728         if not defined.
12729
12730 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12731
12732         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12733
12734 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12735
12736         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12737         (arm_fix_call_dummy): Call it.
12738         (arm_call_dummy_breakpoint_offset): Delete.
12739         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12740         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12741
12742 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12743
12744         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12745         Default to func_frame_chain_valid.
12746         * gdbarch.h, gdbarch.c: Re-generate.
12747         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12748
12749 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12750
12751         * ppc-linux-nat.c: Update copyright.
12752         (fetch_register, store_register): Add tid parameter, don't compute
12753         tid here.
12754         (fetch_ppc_registers, store_ppc_registers): Add tid
12755         parameter. Pass it along to callees.
12756         (fetch_inferior_registers, store_inferior_registers): Compute tid
12757         here, and pass it to calleed functions.
12758         (fill_gregset, supply_fpregset): Clean up formatting.
12759
12760 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12761
12762         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12763         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12764
12765 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12766
12767         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12768         * gdbarch.c gdbarch.h: Regenerate.
12769         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12770         function.
12771         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12772         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12773         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12774
12775         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12776         * arm-tdep.c (arm_get_longjmp_target): New function.
12777         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12778         this to a positive value register arm_get_longjmp_target as the
12779         longjmp handler.
12780         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12781         (arm_linux_init_abi): Set up longjmp description in tdep.
12782         * armnbsd-nat.c (get_longjmp_target): Delete.
12783         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12784         description in tdep.
12785         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12786         (get_longjmp_target): Delete declaration.
12787         (GET_LONGJMP_TARGET): Delete.
12788         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12789         (GET_LONGJMP_TARGET): Delete.
12790
12791 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12792
12793         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12794         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12795         of ``current_gdbarch''.
12796
12797 2002-02-17  Tom Tromey  <tromey@redhat.com>
12798
12799         * cli/cli-cmds.c (compare_strings): New function.
12800         (complete_command): Only print each unique item once.
12801         * completer.h (complete_line): Declare.
12802         * completer.c (complete_line): New function.
12803         (line_completion_function): Use it.
12804
12805 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12806
12807         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12808         * gdbarch.h, gdbarch.c: Re-generate.
12809
12810 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12811
12812         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12813
12814 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12815
12816         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12817         * valops.c (value_arg_coerce): Don't take the address of a reference
12818         to convert an argument to a reference.
12819
12820 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12821
12822         * win32-nat.c (get_image_name): New function.
12823         (handle_load_dll): Use get_image_name function.
12824         (get_child_debug_event): Avoid registering debug events until possibly
12825         execed process is started.
12826         (child_create_inferior): Allow invocation via shell so that command
12827         line redirection, etc.  works ok.
12828         (_initialize_inftarg): Add new command: "set shell" to control whether
12829         a shell is used to start a process.
12830
12831 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12832
12833         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12834         instead of find_register_by_number.
12835         (cannot_store_register): Likewise.
12836
12837 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12838
12839         * dwarf2read.c: Replace fprintf (stderr, ...) by
12840         fprintf_unfiltered (gdb_stderr, ...).
12841
12842 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12843
12844         * gdbserver/gdbserver.1: Document --attach.
12845
12846 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12847
12848         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12849         descriptions.
12850         * arm-tdep.c (arm_default_arm_le_breakpoint)
12851         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12852         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12853         traditional breakpoint defines.
12854         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12855         (arm_gdbarch_init): Initialize new breakpoint variables.
12856         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12857         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12858         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12859         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12860         code out to ...
12861         (arm_netbsd_init_abi_common): ... here; new function.
12862         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12863         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12864         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12865         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12866
12867 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12868
12869         * arm-tdep.h (enum arm_abi): New enum.
12870         (struct gdbarch_tdep): New structure.
12871         (LOWEST_PC): Provide a default.
12872         (arm_gdbarch_register_os_abi): Declare new function.
12873         * arm-tdep.c (arm_abi_names): New array.
12874         (process_note_abi_tag_sections): New function.
12875         (get_elfosabi): New function.
12876         (arm_gdbarch_register_os_abi): New function.
12877         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12878         support for that ABI has been built in, then call the appropriate
12879         configuration routine.  Use gdbarch_num_regs() to get the number
12880         of registers.
12881         (arm_dump_tdep): New function.
12882         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12883         place-holder functions.
12884         (_initialize_arm_tdep): Register them.
12885         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12886
12887         * armnbsd-tdep.c: New file.
12888         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12889         * config/arm/nbsd.mt (TDEPFILES): Add it.
12890         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12891
12892         * armnbsd-nat.c: Include regcache.h.
12893         * Makefile.in (armnbsd-nat.o): Update dependency list.
12894
12895         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12896
12897 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12898
12899         * gdbserver/Makefile.in: Fix typos in target rules.
12900
12901 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12902
12903         Fix part of PR gdb/267.
12904         * linespec.c (find_methods): Handle constructors specially for now.
12905
12906 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12907
12908         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12909         handling.
12910         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12911         standard_coerce_float_to_double().
12912
12913 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12914
12915         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12916         GDBINIT_FILENAME.
12917
12918 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12919
12920         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12921         find_variant_by_name, because it confuses the multiarch
12922         framework. Return NULL if there isn't an architecture with the
12923         user supplied name, instead of forcing a different one without
12924         recording the change with the multiarch machinery.
12925         (find_variant_by_name): Delete.
12926
12927 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12928
12929         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12930         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12931
12932 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12933
12934         * stack.c (print_frame_info_base): When calling
12935         print_frame_info_listing_hook, set current_source_symtab.
12936
12937 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12938
12939         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12940         and remove unused $(INCLUDE_DIR).
12941         Add regcache.c to OBS.
12942         Add generated register protocol files to clean target.
12943         Update dependencies for new objects, obsolete old target code.
12944
12945         * gdbserver/linux-low.c: Remove all platform-specific code to
12946         new files.  Remove various dead code.  Update to use regcache
12947         functionality.
12948         * gdbserver/remote-utils.c (fromhex): Add return statement
12949         to quiet warning.
12950         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12951         constant.
12952         (input_interrupt): Add integer parameter to match prototype
12953         of a signal handler.
12954         (outreg): Use register_data ().
12955         (prepare_resume_reply): Use gdbserver_expedite_regs.
12956         * gdbserver/server.c (main): Dynamically allocate own_buf because
12957         PBUFSIZ is no longer constant.  Use registers_to_string () and
12958         registers_from_string ().
12959         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12960         for error (), fatal (), and warning ().  Update definition of
12961         PBUFSIZ to use regcache functionality.  Add include guard.
12962         * gdbserver/utils.c (fatal): Add missing ``const''.
12963         (warning): New function.
12964
12965         * regformats/regdat.sh: Include "regcache.h" in generated files.
12966         Provide init_registers () function.
12967         * regformats/regdef.h: Add prototype for set_register_cache ().
12968         Add include guard.
12969
12970         * gdbserver/linux-arm-low.c: New file.
12971         * gdbserver/linux-i386-low.c: New file.
12972         * gdbserver/linux-ia64-low.c: New file.
12973         * gdbserver/linux-m68k-low.c: New file.
12974         * gdbserver/linux-mips-low.c: New file.
12975         * gdbserver/linux-ppc-low.c: New file.
12976         * gdbserver/linux-sh-low.c: New file.
12977
12978         * gdbserver/regcache.c: New file.
12979         * gdbserver/regcache.h: New file.
12980
12981         * gdbserver/low-linux.c: Removed obsolete file.
12982
12983 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12984
12985         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12986         * config/i386/linux.mt: Likewise.
12987         * config/ia64/linux.mt: Likewise.
12988         * config/m68k/linux.mh: Likewise.
12989         * config/powerpc/linux.mh: Likewise.
12990         * config/mips/linux.mt: Likewise.
12991
12992         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12993
12994         * config/i386/i386lynx.mh: Mark gdbserver variables
12995         as (currently) obsolete for this target.
12996         * config/i386/nbsd.mt: Likewise.
12997         * config/i386/nbsdelf.mt: Likewise.
12998         * config/m32r/m32r.mt: Likewise.
12999         * config/m68k/m68klynx.mh: Likewise.
13000         * config/m68k/nbsd.mt: Likewise.
13001         * config/m68k/sun3os4.mh: Likewise.
13002         * config/mips/vr5000.mt: Likewise.
13003         * config/ns32k/nbsd.mt: Likewise.
13004         * config/pa/hppabsd.mh: Likewise.
13005         * config/pa/hppaosf.mh: Likewise.
13006         * config/powerpc/nbsd.mt: Likewise.
13007         * config/rs6000/rs6000lynx.mh: Likewise.
13008         * config/s390/s390.mt: Likewise.
13009         * config/s390/s390x.mt: Likewise.
13010         * config/sparc/sparclynx.mh: Likewise.
13011         * config/sparc/sun4os4.mh: Likewise.
13012         * config/i386/x86-64linux.mt: Likewise.
13013         * config/sparc/linux.mh: Likewise.
13014
13015 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13016
13017         * configure.tgt: Configure gdbserver only for known working
13018         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13019         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13020         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13021         * configure: Regenerated.
13022
13023 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13024
13025         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13026
13027         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13028         (default_gcore_mach): Just return 0, work around a problem in bfd.
13029         (default_gcore_target): OK to return NULL if exec_bfd is null.
13030         (make_mem_sec): Use a cast, avoid a warning.
13031
13032         * procfs.c (find_memory_regions_callback): Use a cast instead of
13033         calling host_pointer_to_address (which complains if
13034         sizeof (host pointer) != sizeof (target pointer)).
13035         (procfs_make_note_section): Avoid overflow in psargs string.
13036
13037         * procfs.c (procfs_make_note_section): Make the default
13038         implementation return an error.
13039
13040 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13041
13042         * procfs.c (procfs_make_note_section): Provide a default definition
13043         (for alpha-dec-osf4.0f). Fix typos.
13044
13045 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13046
13047         * linux-proc.c: Add include of regcache.h.
13048         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13049
13050 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13051
13052         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13053         * memattr.c (create_mem_region): Disallow useless empty region.
13054         Regions are half-open intervals, so allow [A..B) [B..C) as
13055         non-overlapping.
13056
13057 2002-02-13  Michael Chastain <mec@shout.net>
13058
13059         * defs.h: Kill CONST_PTR.
13060         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13061         * c-lang.c (c_builtin_types): Likewise.
13062         * ch-lang.c (ch_builtin_types): Likewise.
13063         * f-lang.c (f_builtin_types): Likewise.
13064         * language.c (unknown_builtin_types): Likewise.
13065         * m2-lang.c (m2_builtin_types): Likewise.
13066         * p-lang.c (pascal_builtin_types): Likewise.
13067         * scm-lang.c (c_builtin_types): Likewise.
13068
13069 2002-02-13  Keith Seitz  <keiths@redhat.com>
13070
13071         * arm-tdep.h (arm_get_next_pc): Add declaration.
13072
13073 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13074
13075         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13076         with other related struct-returning functions.
13077         (arm_extract_struct_value_address): New function.
13078         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13079         initialize float_format, double_format and long_double_format as
13080         appropriate to the endianness of the target.
13081         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13082         (arm_use_struct_convention): Delete declaration.
13083         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13084
13085 2002-02-13  Keith Seitz  <keiths@redhat.com>
13086
13087         * defs.h (core_addr_to_string_nz): New function.
13088
13089 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13090
13091         Apply missing bits of 2002-01-15 patch.
13092         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13093         (fill_fpregset): Use i387_fill_fsave.
13094
13095 2002-02-12  Keith Seitz  <keiths@redhat.com>
13096
13097         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13098         (core_addr_to_string_nz): New function.
13099
13100 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13101
13102         * arm-linux-nat.c: Really include arm-tdep.h.
13103         * config/arm/tm-linux.h (struct type, struct value): Declare.
13104
13105 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13106
13107         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13108         (gcore section): Ifdef for Solaris and Unixware only.
13109         (procfs_do_thread_registers): Unixware needs one lwpstatus
13110         per thread (not one prstatus or pstatus).
13111         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13112         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13113         once before iterating over threads.
13114
13115 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13116
13117         * arm-tdep.h: New file.
13118         * arm-tdep.c: Include arm-tdep.h.
13119         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13120         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13121         (arm_print_float_info, arm_register_type, convert_to_extended)
13122         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13123         (arm_extract_return_value, arm_register_name): Make static.
13124         (arm_software_single_step): Similarly.  Fix types in declaration.
13125         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13126         (arm_store_return_value, arm_store_struct_return): New functions.
13127         (arm_gdbarch_init): Register the above functions.  Also register
13128         call_dummy_start_offset, sizeof_call_dummy_words,
13129         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13130         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13131         max_register_virtual_size, register_size.  Set up
13132         prologue_cache.saved_regs here, rather than ...
13133         (_initialize_arm_tdep): ... here.
13134         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13135         declarations.
13136         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13137         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13138         (arm_print_float_info, arm_register_type, convert_to_extended)
13139         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13140         (arm_extract_return_value, arm_register_name): Delete declarations.
13141         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13142         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13143         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13144         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13145         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13146         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13147         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13148         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13149         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13150         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13151         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13152         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13153         interface.
13154         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13155         * remote-rdi.c remote-rdp.c: Likewise.
13156         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13157         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13158         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13159         definition.
13160
13161         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13162         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13163         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13164         from non-ARM_ prefixed definitions.
13165         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13166         all uses of above.
13167         * remote-rdi.c remote-rdp.c: Likewise.
13168         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13169
13170 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13171
13172         * arm-tdep.c (arm_frameless_function_invocation)
13173         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13174         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13175         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13176         (arm_pop_frame, arm_get_next_pc): Make static.
13177         (arm_gdbarch_init): Register above in gdbarch structure.
13178         (arm_read_fp): Renamed from arm_target_read_fp.
13179         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13180         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13181         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13182         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13183         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13184         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13185         (arm_pc_is_thumb_dummy): Delete declarations.
13186         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13187         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13188         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13189         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13190
13191 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13192
13193         * symtab.c (compare_search_syms): New function.
13194         (sort_search_symbols): New function.
13195         (search_symbols): Sort symbols after searching rather than
13196         before.
13197
13198 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13199
13200         * NEWS: Linux -> GNU/Linux.
13201
13202 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13203
13204         * gdbarch.sh: For for level one methods, disallow a definition
13205         when partially multi-arched.  Add comments explaining rationale.
13206         * gdbarch.h: Re-generate.
13207
13208 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13209
13210         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13211         multi-arch partial.
13212
13213 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13214
13215         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13216         field.  Use diff -u.
13217         * gdbarch.c: Re-generate.
13218
13219 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13220
13221         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13222         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13223         partial.
13224
13225 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13226
13227         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13228         multi-arch partial.
13229         (PUSH_ARGUMENTS): Switch to using predefault.
13230         * gdbarch.c: Regenerate.
13231
13232 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13233
13234         * valops.c (PUSH_ARGUMENTS): Delete definition.
13235         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13236         partial.  Default to default_push_arguments.
13237         * gdbarch.h, gdbarch.c: Regenerate.
13238
13239 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13240
13241         * defs.h (throw_exception): Rename return_to_top_level.  Update
13242         comments.
13243         * utils.c (error_stream, internal_verror, quit): Ditto.
13244         * top.c (throw_exception, catcher): Ditto.
13245         * sparclet-rom.c (sparclet_load): Ditto.
13246         * remote.c (interrupt_query, minitelnet): Ditto.
13247         * remote-sds.c (interrupt_query): Ditto.
13248         * remote-mips.c (mips_error, mips_kill): Ditto.
13249         * ocd.c (interrupt_query): Ditto.
13250         * monitor.c (monitor_interrupt_query): Ditto.
13251         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13252         * target.h: Update comment.
13253
13254         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13255
13256 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13257
13258         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13259         default_double_format.
13260         * gdbarch.h, gdbarch.c: Re-generate.
13261         * findvar.c (floatformat_unknown): Delete variable definition.
13262         * doublest.h (floatformat_unknown): Delete variable declaration.
13263
13264 2002-02-09  Jim Blandy  <jimb@redhat.com>
13265
13266         * stabsread.c (read_type): Add code to parse Sun's syntax for
13267         prototyped function types.
13268
13269 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13270
13271         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13272         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13273
13274 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13275
13276         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13277         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13278         now _initialize_xcoffsolib gets called again and overrides the
13279         commands from solib.c in a native configuration.
13280
13281 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13282
13283         * doublest.c (store_typed_floating): Don't try to return a value.
13284         Fixes PR gdb/290.
13285
13286 2002-02-08  Jim Blandy  <jimb@redhat.com>
13287
13288         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13289         is prototyped and has no arguments, print its argument list as
13290         `(void)'.
13291
13292 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13293
13294         * MAINTAINERS (write-after-approval): Add myself.
13295         (paper-trail): I've escaped!
13296
13297 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13298
13299         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13300         changes.
13301         (_initialize_check_for_gdb_ini): Ditto.
13302
13303 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13304
13305         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13306         xaprintf -> xasprintf.
13307
13308 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13309
13310         * win32-nat.c: Remove use of printf and sprintf functions.
13311
13312 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13313
13314         * arm-tdep.c (arm_frame_chain_valid): Make static.
13315         (arm_push_arguments): Likewise.
13316         (arm_gdbarch_init): New function.
13317         (_initialize_arm_tdep): Call it.
13318         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13319         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13320         (FRAME_CHAIN_VALID): Delete.
13321         (arm_frame_chain_valid): Delete declaration.
13322         (PUSH_ARGUMENTS): Delete.
13323         (arm_push_arguments): Delete declaration.
13324         (CALL_DUMMY_P): Delete.
13325
13326 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13327             Corinna Vinschen  <vinschen@redhat.com>
13328
13329         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13330         on builtin float types.
13331
13332 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13333
13334         * utils.c: Include <curses.h> before "bfd.h".
13335         * tui/tui-hooks.c: Likewise.
13336         * tui/tui.c: Likewise.
13337         * tui/tuiCommand.c: Likewise.
13338         * tui/tuiData.c: Likewise.
13339         * tui/tuiDataWin.c: Likewise.
13340         * tui/tuiDisassem.c: Likewise.
13341         * tui/tuiGeneralWin.c: Likewise.
13342         * tui/tuiIO.c: Likewise.
13343         * tui/tuiLayout.c: Likewise.
13344         * tui/tuiRegs.c: Likewise.
13345         * tui/tuiSource.c: Likewise.
13346         * tui/tuiSourceWin.c: Likewise.
13347         * tui/tuiStack.c: Likewise.
13348         * tui/tuiWin.c: Likewise.
13349
13350 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13351
13352         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13353         to include space for pseudoregs as well. Update loops accordingly.
13354         (sh_fp_frame_init_saved_regs): Ditto.
13355         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13356
13357 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13358
13359         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13360         Add Richard Earnshaw to Arm maintainers.
13361
13362 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13363
13364         * defs.h (warning_begin): Delete declaration.
13365
13366         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13367         Delete macro.
13368
13369 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13370
13371         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13372         Logic bug, remove misplaced else.
13373
13374 2002-02-07  Klee Dienes  <klee@apple.com>
13375
13376         * fork-inferior.c (fork_inferior): Add '!' to the list of
13377         characters that need to be quoted when building a string for the
13378         shell.  Quote '!' specifically with a backslash, since CSH chokes
13379         when trying to evaluate "str!str".
13380
13381 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13382
13383         * rdi-share/host.h: Only provide a typedef for bool if it is not
13384         defined.
13385
13386 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13387
13388         * breakpoint.h (enum bptype): Add new overlay event bp type.
13389         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13390
13391         * breakpoint.c (create_internal_breakpoint): New function.
13392         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13393         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13394         (create_thread_event_breakpoint): Ditto.
13395         (create_solib_event_breakpoint): Ditto.
13396         (create_overlay_event_breakpoint): New function.
13397         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13398         (update_breakpoints_after_exec): Delete and re-initialize
13399         overlay event breakpoints after an exec.  Add FIXME comment
13400         about longjmp breakpoint.
13401         (print_it_typical): Ignore overlay event breakpoints.
13402         (print_one_breakpoint): Ditto.
13403         (mention): Ditto.
13404         (bpstat_what): Do not stop for overlay event breakpoints.
13405         (delete_breakpoint): Don't delete overlay event breakpoints.
13406         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13407         (breakpoint_re_set): Re-create overlay event breakpoint.
13408
13409         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13410         (overlay_manual_command): Disable overlay breakpoints.
13411         (overlay_off_command): Disable overlay breakpoints.
13412
13413 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13414
13415         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13416         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13417         to here from config/tm-arm.h.
13418         (coff_sym_is_thumb): Make static.
13419         (arm_elf_make_msymbol_special): New function.
13420         (arm_coff_make_msymbol_special): New function.
13421         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13422         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13423         (coff_sym_is_thumb): Delete declaration.
13424         (arm_elf_make_msymbol_special): Declare.
13425         (arm_coff_make_msymbol_special): Declare.
13426         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13427         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13428
13429 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13430
13431         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13432
13433 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13434
13435         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13436         * gdbarch.c gdbarch.h: Regenerate.
13437         * arch-utils.c (default_print_float_info): New function.
13438         * arch-utils.h (default_print_float_info): Prototype it.
13439         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13440         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13441         (PRINT_FLOAT_INFO): Document it.
13442
13443         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13444         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13445         (PRINT_FLOAT_INFO): Define.
13446
13447 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13448
13449         * win32-nat.c (_initialize_check_for_gdb_ini):
13450         Add typecast to sprintf argument to suppress a warning.
13451
13452 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13453
13454         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13455         to allow easier handling of pass state.
13456         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13457         that gives exception name and address.
13458         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13459         and set last_sig value to ourstatus->value.sig. Some missing
13460         exceptions added.
13461         (child_continue): Correctly report continue_status.
13462         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13463         TARGET_SIGNAL_0 (new default value).
13464         (child_resume): consider sig argument passed to decide if
13465         the exception should be passed to debuggee or not.
13466
13467 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13468
13469         * regcache.c (fetch_register): Call target_fetch_register
13470         only if we don't call FETCH_PSEUDO_REGISTER.
13471         (store_register): Call target_store_register only if we
13472         don't call STORE_PSEUDO_REGISTER.
13473
13474 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13475
13476         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13477         ELF_MAKE_MSYMBOL_SPECIAL.
13478         * gdbarch.c, gdbarch.h: Regenerate.
13479         * arch-utils.c (default_make_msymbol_special): New function.
13480         * arch-utils.h (default_make_msymbol_special): Export.
13481         * elfread.c (elf_symtab_read): Compile use of
13482         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13483         multiarched.
13484         * coffread.c (coff_symtab_read): Ditto, for
13485         COFF_MAKE_MSYMBOL_SPECIAL.
13486
13487 2002-02-05  Jim Blandy  <jimb@redhat.com>
13488
13489         * solib-svr4.c (svr4_truncate_ptr): New function.
13490         (svr4_relocate_section_addresses): Do the address arithmetic with
13491         the appropriate truncation for target addresses, even when
13492         CORE_ADDR is larger than a target address.
13493
13494 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13495
13496         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13497         to (int *).
13498
13499 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13500
13501         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13502         code.
13503
13504 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13505
13506         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13507
13508 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13509
13510         * gdbserver/linux-low.c: Remove unused include files.
13511
13512 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13513
13514         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13515         (read_inferior_memory): Use it.
13516         (write_inferior_memory): Likewise.
13517
13518 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13519
13520         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13521         grubbing through sys_errlist.
13522
13523 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13524
13525         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13526
13527 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13528         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13529
13530 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13531
13532         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13533         (do_sfunc, set_cmd_sfunc): New functions.
13534
13535         * command.h (struct cmd_list_element): Add field func.
13536         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13537         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13538         * cli/cli-decode.h: Ditto.
13539
13540         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13541         (help_all, help_cmd_list): Ditto.
13542         (find_cmd, complete_on_cmdlist): Ditto.
13543         * top.c (execute_command): Ditto.
13544
13545         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13546         function.sfunc.
13547
13548         * infcmd.c (notice_args_read): Fix function signature.
13549
13550         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13551         * cli/cli-decode.c (add_set_cmd): Ditto.
13552         * utils.c (initialize_utils): Ditto.
13553         * maint.c (_initialize_maint_cmds): Ditto.
13554         * infrun.c (_initialize_infrun): Ditto.
13555         * demangle.c (_initialize_demangler): Ditto.
13556         * remote.c (add_packet_config_cmd): Ditto.
13557         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13558         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13559         * proc-api.c (_initialize_proc_api): Ditto.
13560         * kod.c (_initialize_kod): Ditto.
13561         * valprint.c (_initialize_valprint): Ditto.
13562         * top.c (init_main): Ditto.
13563         * infcmd.c (_initialize_infcmd): Ditto.
13564         * corefile.c (_initialize_core): Ditto.
13565         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13566         * arch-utils.c (initialize_current_architecture): Ditto.
13567         (_initialize_gdbarch_utils): Ditto.
13568         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13569
13570         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13571         * wince.c (_initialize_inftarg): Ditto.
13572         * symfile.c (_initialize_symfile): Ditto.
13573         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13574         * language.c (_initialize_language): Ditto.
13575         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13576
13577 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13578
13579         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13580
13581 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13582
13583         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13584         Add rules for building the register data files.
13585
13586 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13587
13588         * regformats/regdat.sh: Add braces to the definition of
13589         expedite_regs_${arch}.
13590
13591 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13592
13593         * regformats/regdef.h (struct reg): Add comment describing the
13594         requirements for offset and size fields.
13595
13596 2002-02-04  Andreas Schwab  <schwab@suse.de>
13597
13598         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13599         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13600
13601 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13602
13603         * gdbarch.sh (copyright): Update years in generated header.
13604         (SMASH_TEXT_ADDRESS): Add rule.
13605         * gdbarch.h, gdbarch.c: Re-generate.
13606         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13607         * dbxread.c: Likewise.
13608         * dwarfread.c: Likewise.
13609         * elfread.c: Likewise.
13610         * somread.c: Likewise.
13611
13612         * arm-tdep.c (arm_smash_text_address): New function.
13613         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13614
13615 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13616
13617         Add support for hardware watchpoints on win32 native.
13618         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13619         CONTEXT_DEBUG_REGISTERS.
13620         (dr variable): New variable. Static array containing a local copy
13621         of debug registers.
13622         (debug_registers_changed): New variable.  Reflects when debug registers
13623         are changed and need to be written to inferior.
13624         (debug_registers_used): New variable. Reflects when any debug register
13625         was set, used when new threads are created.
13626         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13627         i386-nat code.
13628         (thread_rec): Set dr array if id is the thread of current_event .
13629         (child_continue, child_resume): Change the debug registers for all
13630         threads if debug_registers_changed.
13631         (child_add_thread): Change the debug registers if debug_registers_used.
13632         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13633         Link nm.h to new nm-cygwin.h file.
13634         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13635         of hardware registers.
13636
13637 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13638
13639         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13640         Restore behavour broken by 2002-01-20 Andrew Cagney
13641         <ac131313@redhat.com> IEEE_FLOAT removal.
13642
13643 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13644
13645         * c-valprint.c (c_val_print): Pass a proper valaddr to
13646         cp_print_class_method.
13647         * valops.c (search_struct_method): If there is only one method
13648         and args is NULL, return that method.
13649
13650 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13651
13652         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13653         accessing tag_name directly.
13654
13655 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13656
13657         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13658         of accessing tag_name directly.
13659
13660 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13661
13662         PR gdb/280
13663         * gdbtypes.c (replace_type): New function.
13664         * gdbtypes.h (replace_type): Add prototype.
13665         * stabsread.c (read_type): Use replace_type.
13666
13667 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13668
13669         * Makefile.in (memattr.o): Add missing dependencies rule.
13670
13671 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13672
13673         * breakpoint.c (break_at_finish_command): Really export.
13674         (break_at_finish_at_depth_command): Ditto.
13675         (tbreak_at_finish_command): Ditto.
13676         * hppa-tdep.c: Include completer.h.
13677         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13678         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13679
13680 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13681
13682         * utils.c (do_write): New function.
13683         (error_stream): Rewrite combining the code from error_begin and
13684         verror.
13685         (verror): Rewrite using error_stream.
13686         (error_begin): Delete function.
13687
13688 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13689
13690         * utils.c (error_begin): Make static.
13691         * defs.h (error_begin): Delete declaration.
13692
13693         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13694         (decode_line_1): Use cplusplus_error instead of error_begin,
13695         cplusplus_hint and return_to_top_level.
13696         * coffread.c (coff_symfile_read): Use error instead of error_begin
13697         and return_to_top_level.
13698         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13699
13700 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13701
13702         * language.h (type_error, range_error): Make string parameter
13703         constant.
13704         * language.c (warning_pre_print): Delete extern declaration.
13705         * dwarfread.c (warning_pre_print): Ditto.
13706         * language.c (type_error, range_error): Rewrite to use verror and
13707         vwarning instead of warning_begin.
13708
13709 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13710
13711         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13712         (set_ignore_count): Move misplaced comment back where it belongs.
13713
13714 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13715
13716         * command.h (NO_FUNCTION): Delete macro.
13717         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13718         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13719         * tracepoint.c (_initialize_tracepoint): Ditto.
13720         * cli/cli-decode.c (add_set_cmd): Ditto.
13721         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13722
13723 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13724
13725         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13726         Update ``this'' pointer when calling virtual functions.
13727
13728 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13729
13730         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13731         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13732
13733 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13734
13735         * regformats/reg-arm.dat: New file.
13736         * regformats/reg-i386.dat: New file.
13737         * regformats/reg-ia64.dat: New file.
13738         * regformats/reg-m68k.dat: New file.
13739         * regformats/reg-mips.dat: New file.
13740         * regformats/reg-ppc.dat: New file.
13741         * regformats/reg-sh.dat: New file.
13742         * regformats/regdef.h: New file.
13743         * regformats/regdat.sh: New file.
13744
13745 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13746
13747         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13748         (arm_frame_args_address, arm_frame_locals_address): New functions.
13749         (arm_frame_num_args): New function.
13750         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13751         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13752         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13753
13754 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13755
13756         * breakpoint.c (break_at_finish_command): Export.
13757         (break_at_finish_at_depth_command): Export.
13758         (tbreak_at_finish_command): Export.
13759         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13760         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13761         "txbreak" commands, which are HPPA specific.
13762
13763         * printcmd.c (disassemble_command): Remove an ancient
13764         artifact of an old merge.
13765
13766         * symfile.h (enum overlay_debugging_state):
13767         Define enum constant values for overlay mode.
13768         * symfile.c (overlay_debugging): Use enums instead of literals.
13769         (overlay_is_mapped, overlay_auto_command,
13770         overlay_manual_command): Ditto.
13771
13772         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13773         breakpoint_here_p, breakpoint_inserted_here_p,
13774         breakpoint_thread_match, bpstat_stop_status,
13775         describe_other_breakpoints, check_duplicates, clear_command):
13776         Coding standard fixes.
13777
13778         * target.c (target_xfer_memory): Add spaces, coding standard.
13779         (do_xfer_memory): Add missing line to trust-readonly
13780         code: check bfd SEC_READONLY flag for section.
13781
13782 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13783
13784         * PROBLEMS: Fix typo, 5.1->5.1.1.
13785
13786 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13787
13788         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13789         data symbols, since we search based on textlow and texthigh.
13790         (find_pc_sect_symtab): Likewise.
13791
13792 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13793
13794         * defs.h (vwarning): Declare.
13795         * utils.c (vwarning): New function.
13796         (warning): Call vwarning.
13797         (warning_begin): Delete function.
13798
13799         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13800         the warning message.
13801         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13802         warning_begin.
13803
13804 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13805
13806         * NEWS: Mention "set trust-readonly-sections" command.
13807         Mention generate-core-file command.
13808
13809 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13810
13811         * target.c: New command, "set trust-readonly-sections on".
13812         (do_xfer_memory): Honor the suggestion to trust readonly sections
13813         by reading them from the object file instead of from the target.
13814         (initialize_targets): Register command "set trust-readonly-sections".
13815
13816 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13817
13818         * parse.c (target_map_name_to_register): Simplify, search regs and
13819         pseudo-regs using a single loop.
13820
13821 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13822
13823         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13824
13825 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13826
13827         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13828         * config/i386/i386v42mp.mh: Add i387-nat.o .
13829         * i386v4-nat.c: Include i387-nat.h.
13830         (supply_fpregset): Use i387_supply_fsave.
13831         (fill_fpregset): Use i387_fill_fsave.
13832
13833 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13834
13835         * arm-tdep.c (arm_call_dummy_words): Define.
13836         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13837         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13838         (CALL_DUMMY_WORDS): Define.
13839         (arm_call_dummy_words): Declare.
13840         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13841         (arm_linux_call_dummy_words): Declare.
13842
13843 2002-01-30  Andreas Schwab  <schwab@suse.de>
13844
13845         * m68klinux-nat.c: Fix last change to use regcache_collect
13846         instead of referencing registers[] directly.
13847
13848 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13849
13850         * parse.c (target_map_name_to_register): Delete code wrapped in
13851         #ifdef REGISTER_NAME_ALIAS_HOOK.
13852
13853 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13854
13855         * regcache.c (legacy_read_register_gen): Need to be able to
13856         read pseudo-register as well as real register.
13857         (legacy_write_register_gen): Ditto.
13858
13859 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13860
13861         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13862         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13863         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13864         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13865         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13866         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13867         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13868         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13869         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13870         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13871         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13872         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13873         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13874         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13875         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13876         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13877         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13878         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13879         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13880         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13881
13882 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13883
13884         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13885         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13886         (initialize_current_architecture): Update target_byte_order using
13887         information from BFD.
13888         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13889         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13890
13891 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13892
13893         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13894         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13895
13896         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13897         #ifdef INVALID_FLOAT.
13898         * infcmd.c (do_registers_info): Ditto.
13899         * values.c (unpack_double): Ditto.  Add comment.
13900
13901         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13902         already commented out.
13903
13904 2002-01-26  Andreas Schwab  <schwab@suse.de>
13905
13906         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13907         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13908         registers and add support for PTRACE_GETREGS.
13909
13910 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13911
13912         GDB 5.1.1 released from 5.1 branch.
13913         * NEWS: Add 5.1.1 news.
13914         * README: Sync with 5.1 branch.
13915
13916 2002-01-23  Fred Fish  <fnf@redhat.com>
13917
13918         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13919         stabstring on initial malloc.  Reallocing will copy it for us,
13920         if necessary.
13921
13922 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13923
13924         * Makefile.in (hpread_h): Delete.
13925         (HFILES_NO_SRCDIR): Remove hpread.h.
13926         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13927         (hpread.o): Update dependencies.
13928         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13929
13930         * hp-psymtab-read.c: Remove file.
13931         * hp-symtab-read.c: Remove file.
13932         * hpread.h: Remove file.
13933
13934         * hpread.c: Merge all contents of hp-psymtab-read.c,
13935         hp-symtab-read.c and hpread.h into this file, as it was prior to
13936         January 1999.
13937
13938         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13939         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13940         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13941         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13942
13943 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13944
13945         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13946         fill_gregset): Call gdbarch_tdep() just once, assign result to
13947         variable and use that, instead of calling the function several
13948         times.
13949
13950 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13951
13952         * configure.host: Accept sparcv9 as alias for sparc64.
13953         * configure.tgt: Likewise.
13954
13955 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13956
13957         * solib-aix5.c (build_so_list_from_mapfile)
13958         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13959         arguments is not reversed.
13960         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13961         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13962
13963 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13964
13965         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13966         modified version of obsolete sh_fetch_pseudo_register.
13967         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13968         (sh4_register_read): New function.
13969         (sh_pseudo_register_write): New function. Renamed and modified
13970         version of obsolete sh_store_pseudo_register.
13971         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13972         (sh4_register_write): New function.
13973         (sh_gdbarch_init): Remove setting of gdbarch function
13974         fetch_pseudo_register and store_pseudo_register. Remove setting of
13975         register_convert_to_raw, register_convert_to_virtual,
13976         register_convertible.
13977         (sh_sh4_register_convertible): Delete. No longer needed. All is
13978         taken care by architecture specific functions
13979         register_read/register_write.
13980         (sh_sh4_register_convert_to_virtual): Make static.
13981         (sh_sh4_register_convert_to_raw): Ditto.
13982
13983 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13984
13985         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13986         (floatformat_is_nan, floatformat_mantissa): Ditto.
13987
13988         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13989         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13990         builtin_type_ieee_double_little,
13991         builtin_type_ieee_double_littlebyte_bigword,
13992         builtin_type_m68881_ext, builtin_type_i960_ext,
13993         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13994         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13995         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13996         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13997
13998 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
13999
14000         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14001         parameter.  Set frameless flag if it exists and depended of
14002         whether the scanned function is frameless or not.
14003         (xstormy16_skip_prologue): If function is frameless, return
14004         result of xstormy16_scan_prologue().
14005         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14006         call.
14007
14008 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14009
14010         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14011         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14012         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14013         sh_sh4_register_byte, sh_sh4_register_raw_size,
14014         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14015         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14016         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14017         sh_store_pseudo_register, sh_do_pseudo_register): Call
14018         gdbarch_tdep() just once, assign result to variable and use that,
14019         instead of calling the function several times.
14020
14021 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14022
14023         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14024         macros instead of LAST_FPU_CTRL_REGNUM.
14025         (store_register): Likewise.
14026
14027 2002-01-21  Jim Blandy  <jimb@redhat.com>
14028
14029         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14030         is up-to-date before running the program, not just when a program
14031         exits.
14032
14033 2002-01-21  Fred Fish  <fnf@redhat.com>
14034
14035         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14036         when we have found all instructions we are looking for.
14037
14038 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14039
14040         * arm-tdep.c (arm_register_name): New function.
14041         (arm_registers_names): Make static.
14042         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14043         (arm_register_name): Declare.
14044         (REGISTER_NAME): Use it.
14045
14046 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14047             Kevin Buettner  <kevinb@redhat.com>
14048
14049         Convert arm targets to new FRAME interface.
14050         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14051         (arm_frame_find_save_regs): Delete.
14052         (arm_frame_init_saved_regs): New.
14053         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14054         Allocate extra_info as required.  Convert all uses of fsr.regs
14055         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14056         to use extra_info.
14057         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14058         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14059         (check_prologue_cache, save_prologue_cache): Likewise.
14060         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14061         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14062         (FRAME_FIND_SAVED_REGS): Delete.
14063         (arm_frame_find_saved_regs): Delete prototype.
14064         (arm_frame_init_saved_regs): New prototype.
14065         (FRAME_INIT_SAVED_REGS): Define.
14066
14067 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14068
14069         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14070
14071 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14072
14073         From Jeff Law <law@redhat.com>:
14074         * infttrace.c: Include <sys/pstat.h>.
14075         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14076         exec file if the ttrace equivalent fails.
14077
14078 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14079
14080         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14081         (closeLogFile): Ditto.
14082
14083 2002-01-20  Michael Chastain  <mec@shout.net>
14084
14085         * top.c (print_gdb_version): Bump copyright year to 2002.
14086
14087 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14088
14089         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14090         Zannoni and Eli Zaretskii.
14091
14092 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14093
14094         * buildsym.c: Update copyright years.
14095         * c-typeprint.c: Likewise.
14096         * dwarf2read.c: Likewise.
14097         * f-typeprint.c: Likewise.
14098         * gdbtypes.c: Likewise.
14099         * gdbtypes.h: Likewise.
14100         * hp-symtab-read.c: Likewise.
14101         * hpread.c: Likewise.
14102         * mdebugread.c: Likewise.
14103         * p-typeprint.c: Likewise.
14104
14105 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14106
14107         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14108         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14109         byte-order selectable.
14110         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14111         * arch-utils.c: Ditto.
14112         (set_endian): Ditto.
14113         (set_endian_from_file): Ditto.
14114         * gdbserver/low-sim.c (create_inferior): Ditto.
14115         * gdbarch.sh: Ditto.
14116         * gdbarch.h: Re-generate.
14117         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14118         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14119         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14120         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14121         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14122         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14123         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14124         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14125         macro definition.
14126         * config/mips/tm-wince.h: Remove #undef of macro
14127         TARGET_BYTE_ORDER_SELECTABLE.
14128         * config/sh/tm-wince.h: Ditto.
14129
14130 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14131
14132         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14133         member function fields.  Add accessor macro
14134         TYPE_FN_FIELD_ARTIFICIAL.
14135         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14136         * c-typeprint.c (c_type_print_base): Skip artificial member
14137         functions.
14138
14139 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14140
14141         * f-typeprint.c: Delete unused function f_type_print_args.
14142         * p-typeprint.c: Delete unused function pascal_type_print_args.
14143
14144 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14145
14146         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14147         comment.  Add ``artificial'' to ``union field_location''.
14148
14149         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14150
14151         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14152         * mdebugread.c (parse_symbol): Likewise.
14153         * stabsread.c (define_symbol): Likewise.
14154         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14155         initializing TYPE_FIELD_BITPOS to n (obsolete).
14156         (hpread_doc_function_type): Likewise.
14157         * hpread.c (hpread_function_type): Likewise.
14158
14159 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14160
14161         * configure.in (host_makefile_frag): Only require a host makefile
14162         fragment when a native build.
14163         * configure: Re-generate.
14164
14165 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14166
14167         * doublest.h (floatformat_from_type): Declare.
14168         * doublest.c (floatformat_from_type): New function.
14169         (convert_typed_floating): Use.
14170
14171         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14172         call to function floatformat_from_type.
14173
14174         * gdbarch.sh (IEEE_FLOAT): Delete.
14175         * gdbarch.h, gdbarch.c: Re-generate.
14176         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14177         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14178         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14179         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14180         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14181         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14182         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14183         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14184         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14185         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14186         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14187         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14188
14189         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14190         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14191         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14192         * sh-tdep.c (sh_gdbarch_init): Ditto.
14193         * mips-tdep.c (mips_gdbarch_init): Ditto.
14194         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14195         * cris-tdep.c (cris_gdbarch_init): Ditto.
14196
14197 2002-01-20  Jiri Smid  <smid@suse.cz>
14198
14199         * configure.host, configure.tgt: Support x86-64.
14200         * NEWS: Note new target x86-64.
14201
14202         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14203         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14204         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14205         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14206         x86-64-linux-nat.o): Fix dependencies.
14207
14208 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14209
14210         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14211         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14212         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14213         * config/sparc/xm-sun4os4.h: Delete file.
14214         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14215
14216 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14217
14218         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14219         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14220         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14221         * config/i386/i386lynx.mh (XM_FILE): Delete.
14222         * config/rs6000/xm-rs6000ly.h: Delete file.
14223         * config/sparc/xm-sparclynx.h: Delete file.
14224         * config/m68k/xm-m68klynx.h: Delete file.
14225         * config/i386/xm-i386lynx.h: Delete file.
14226         * config/xm-lynx.h: Delete file.
14227         * config/djgpp/fnchange.lst: Update.
14228
14229 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14230
14231         * alpha-tdep.c (alpha_register_byte): New function.
14232         (alpha_register_raw_size): Ditto.
14233         (alpha_register_virtual_size): Ditto.
14234         (alpha_skip_prologue_internal): Renamed from
14235         alpha_skip_prologue.
14236         (alpha_skip_prologue): New version that calls
14237         alpha_skip_prologue_internal.
14238         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14239         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14240         second argument from alpha_skip_prologue.
14241         (REGISTER_BYTE): Use alpha_register_byte.
14242         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14243         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14244         (FRAMELESS_FUNCTION_INVOCATION): Use
14245         generic_frameless_function_invocation_not.
14246         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14247         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14248
14249 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14250
14251         * config/mips/xm-news-mips.h: Delete file.
14252         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14253
14254         * config/m88k/xm-m88k.h: Delete file.
14255         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14256         * config/m88k/xm-delta88v4.h: Ditto.
14257         * config/m88k/xm-delta88.h: Ditto.
14258
14259         * config/alpha/xm-fbsd.h: Delete file.
14260         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14261
14262         * config/sparc/xm-sparc.h: Delete file.
14263         * Makefile.in (xm-sun4os4.h): Delete dependency.
14264         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14265         * config/sparc/xm-sun4os4.h: Ditto.
14266         * config/sparc/xm-linux.h: Ditto.
14267
14268         * config/i386/xm-windows.h: Delete file.
14269
14270 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14271
14272         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14273         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14274
14275 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14276
14277         * alpha-tdep.c (alpha_call_dummy_words): New.
14278         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14279         (CALL_DUMMY_P): Define.
14280         (CALL_DUMMY_WORDS): Define.
14281         (SIZEOF_CALL_DUMMY_WORDS): Define.
14282
14283 2002-01-19  Per Bothner  <per@bothner.com>
14284
14285         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14286         isn't NULL, which can happen with some gcj-3.x-produced code.
14287
14288 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14289
14290         * alpha-tdep.c (alpha_register_virtual_type): New function.
14291         (alpha_init_frame_pc_first): Ditto.
14292         (alpha_fix_call_dummy): Ditto.
14293         (alpha_store_struct_return): Ditto.
14294         (alpha_extract_struct_value_address): Ditto.
14295         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14296         alpha_register_virtual_type.
14297         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14298         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14299         alpha_extract_struct_value_address.
14300         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14301         (INIT_FRAME_PC): Use init_frame_pc_noop.
14302         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14303
14304 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14305
14306         * i386gnu-nat.c: Include "i386-tdep.h".
14307         (fetch_fpregs): Simplify code dealing with uninitialized floating
14308         point states such that it doesn't require FP7_REGNUM.
14309
14310 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14311
14312         * alpha-tdep.c (frame_extra_info): New.
14313         (alpha_find_saved_regs): Make static.  Use
14314         frame->extra_info.
14315         (alpha_frame_init_saved_regs): New function.
14316         (alpha_frame_saved_pc): Use frame->extra_info.
14317         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14318         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14319         (init_extra_frame_info): Rename to...
14320         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14321         (alpha_print_extra_frame_info): New function.
14322         (alpha_frame_locals_address): Ditto.
14323         (alpha_frame_args_address): Ditto.
14324         (alpha_pop_frame): Use frame->extra_info.
14325         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14326         alpha_frame_args_address.
14327         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14328         (alpha_find_saved_regs): Remove prototype.
14329         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14330         (EXTRA_FRAME_INFO): Remove.
14331         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14332         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14333
14334 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14335
14336         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14337         (alpha_cannot_fetch_register): Ditto.
14338         (alpha_cannot_store_register): Ditto.
14339         (alpha_register_convertible): Ditto.
14340         (alpha_use_struct_convention): Ditto.
14341         * config/alpha/tm-alpha.h: Update copyright years.
14342         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14343         (INNER_THAN): Use core_addr_lessthan.
14344         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14345         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14346         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14347         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14348         (FRAME_CHAIN): Remove unnecessary cast.
14349
14350 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14351
14352         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14353         obsolete.
14354
14355 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14356
14357         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14358         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14359         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14360         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14361         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14362         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14363         * x86-64-linux-nat.c: Ditto.
14364
14365 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14366
14367         * alpha-tdep.c (alpha_register_name): New function.
14368         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14369         (REGISTER_NAME): Define.
14370
14371 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14372
14373         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14374
14375 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14376
14377         * alpha-tdep.c: Update copyright years.
14378         (alpha_next_pc): New function.
14379         (alpha_software_single_step): Ditto.
14380         * config/alpha/tm-alpha.h: Add prototype for
14381         alpha_software_single_step.
14382
14383 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14384
14385         * alphabsd-nat.c: Update copyright years.
14386         (fill_gregset): Use regcache_collect.
14387         (fill_fpregset): Likewise.
14388         (fetch_inferior_registers): Only fetch integer registers
14389         if requested to do so.
14390         (store_inferior_registers): Only store integer registers
14391         if requested to do so.
14392
14393 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14394
14395         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14396         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14397         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14398         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14399         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14400         * config/arm/linux.mh (XDEPFILES): Delete.
14401         * config/arm/nbsd.mh (XDEPFILES): Delete.
14402         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14403         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14404         * config/i386/i386m3.mh (XDEPFILES): Delete.
14405         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14406         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14407         * config/i386/fbsd.mh (XDEPFILES): Delete.
14408         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14409         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14410         * config/i386/i386v4.mh (XDEPFILES): Delete.
14411         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14412         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14413         * config/i386/i386aix.mh (XDEPFILES): Delete.
14414         * config/i386/go32.mh (XDEPFILES): Delete.
14415         * config/i386/cygwin.mh (XDEPFILES): Delete.
14416         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14417         * config/i386/i386mach.mh (XDEPFILES): Delete.
14418         * config/i386/i386v32.mh (XDEPFILES): Delete.
14419         * config/i386/linux.mh (XDEPFILES): Delete.
14420         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14421         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14422         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14423         * config/i386/i386sco.mh (XDEPFILES): Delete.
14424         * config/i386/i386v.mh (XDEPFILES): Delete.
14425         * config/i386/nbsd.mh (XDEPFILES): Delete.
14426         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14427         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14428         * config/i386/symmetry.mh (XDEPFILES): Delete.
14429         * config/i386/obsd.mh (XDEPFILES): Delete.
14430         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14431         * config/ia64/linux.mh (XDEPFILES): Delete.
14432         * config/ia64/aix.mh (XDEPFILES): Delete.
14433         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14434         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14435         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14436         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14437         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14438         * config/m68k/linux.mh (XDEPFILES): Delete.
14439         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14440         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14441         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14442         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14443         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14444         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14445         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14446         * config/m88k/delta88.mh (XDEPFILES): Delete.
14447         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14448         * config/m88k/m88k.mh (XDEPFILES): Delete.
14449         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14450         * config/mips/linux.mh (XDEPFILES): Delete.
14451         * config/mips/irix6.mh (XDEPFILES): Delete.
14452         * config/mips/irix5.mh (XDEPFILES): Delete.
14453         * config/mips/irix4.mh (XDEPFILES): Delete.
14454         * config/mips/irix3.mh (XDEPFILES): Delete.
14455         * config/mips/decstation.mh (XDEPFILES): Delete.
14456         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14457         (NATDEPFILES): Move core-aout.o to here.
14458         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14459         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14460         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14461         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14462         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14463         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14464         * config/pa/hpux11.mh (XDEPFILES): Delete.
14465         * config/powerpc/aix.mh (XDEPFILES): Delete.
14466         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14467         * config/powerpc/linux.mh (XDEPFILES): Delete.
14468         * config/romp/rtbsd.mh: Rename XDEPFILES.
14469         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14470         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14471         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14472         * config/s390/s390.mh (XDEPFILES): Delete.
14473         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14474         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14475         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14476         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14477         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14478         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14479         * config/sparc/linux.mh (XDEPFILES): Delete.
14480         * config/vax/vaxult.mh (XDEPFILES): Delete.
14481         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14482         * Makefile.in (DEPFILES): Remove XDEPFILES.
14483
14484 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14485
14486         * utils.c (internal_verror): Fix comments, default is yes not no.
14487         Update queries to match.  Default to quit and dump core.
14488
14489 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14490
14491         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14492         copyright.
14493         * defs.h, event-top.c, gdbcmd.h: Ditto.
14494         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14495         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14496         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14497         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14498         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14499         * mi/mi-main.c:Ditto.
14500
14501         * stack.c, symfile.c: Update copyright.
14502
14503 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14504
14505         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14506         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14507         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14508         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14509
14510 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14511
14512         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14513         * gdbserver/low-lynx.c (myattach): Likewise.
14514         * gdbserver/low-nbsd.c (myattach): Likewise.
14515         * gdbserver/low-sim.c (myattach): Likewise.
14516         * gdbserver/low-sparc.c (myattach): Likewise.
14517         * gdbserver/low-sun3.c (myattach): Likewise.
14518
14519         * gdbserver/low-linux.c (myattach): New function.
14520
14521         * gdbserver/server.c (attach_inferior): New function.
14522         (main): Handle "--attach".
14523
14524 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14525
14526         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14527         maintainer.
14528
14529 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14530
14531         * c-typeprint.c (is_type_conversion_operator): Add additional
14532         check for non-conversion operators.
14533
14534 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14535
14536         * linux-proc.c: Add "info proc" command, a la procfs.c.
14537         (read_mapping): New function, abstract and re-use code.
14538         (linux_find_memory_regions): Use new func read_mapping.
14539         (linux_info_proc_cmd): New function, implement "info proc".
14540         (_initialize_linux_proc): Add new command "info proc".
14541
14542 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14543
14544         * symfile.c (generic_load): Use bfd_map_over_sections method
14545         instead of manipulating bfd structure members directly.
14546         (add_section_size_callback): New function, bfd sections callback
14547         used by generic_load.
14548         (load_sections_callback): New function, bfd sections callback
14549         used by generic_load.
14550
14551 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14552
14553         [Based on work by Jim Blandy]
14554         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14555         (builtin_type_vec128): Export.
14556         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14557         types.
14558         (builtin_type_vec128): New builtin type for 128 bit vector
14559         registers.
14560         (build_gdbtypes): Initialize builtin_type_v16qi and
14561         builtin_type_v8hi. Create the vec128 register builtin type
14562         structure.
14563         (build_builtin_type_vec128): New function.
14564         (_initialize_gdbtypes): Register builtin_type_v16qi and
14565         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14566         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14567         AltiVec register to new builtin type.
14568
14569 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14570
14571         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14572         to make_cv_type.
14573
14574 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14575
14576         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14577         CLEAN_UP_REGISTER_VALUE.
14578         * regcache.c (supply_register): Update only call.
14579
14580 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14581
14582         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14583         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14584         a29k-*-vxworks* targets as obsolete.
14585
14586 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14587
14588         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14589         until we can resolve portability issues.
14590         * gregset.h: Remove references to fpxregs.
14591         * gcore.c (gcore_command): Initialize note_sec to NULL.
14592
14593 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14594
14595         * signals.c (target_signal_to_name): Rewrite.  Only use
14596         signals[].name when in bounds and non-NULL.
14597
14598 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14599
14600         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14601         * signals.c (target_signal_to_name): Verify that SIG is within the
14602         bounds of the signals array.
14603
14604 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14605
14606         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14607
14608 2002-01-13  Keith Seitz  <keiths@redhat.com>
14609
14610         * stack.c (print_frame_info_base): Print the frame's pc
14611         only if when print_frame_info_listing_hook is not defined.
14612
14613 2002-01-13  Keith Seitz  <keiths@redhat.com>
14614
14615         * varobj.c (varobj_set_value): Make sure that there were no
14616         errors evaluating the object before attempting to set its
14617         value.
14618         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14619         so this offset adjustment is no longer necessary.
14620         (create_child): Don't set the error flag if the child is
14621         a CPLUS_FAKE_CHILD.
14622         (value_of_child): If value_fetch_lazy fails, return NULL
14623         so that callers will be notified that an error occurred.
14624         (c_value_of_variable): Delay check of variable's validity
14625         until later. We actually want all structs and unions to have
14626         the value "{...}".
14627         Do not return "???" for variables which could not be evaluated.
14628         This error condition must be returned to the caller so that it
14629         can get the error condition from gdb.
14630         (cplus_name_of_child): Adjust index for vptr before figuring
14631         out the name of the child.
14632         (cplus_value_of_child): If a child's (real) parent is not valid,
14633         don't even bother trying to give a value for it. Just return
14634         an error. Change all instances in this function.
14635         (cplus_type_of_child): If our parent is one of the "fake"
14636         parents, we need to get at the type of the real parent, and
14637         derive the child's true type using this information.
14638
14639 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14640
14641         From 2002-01-09 John Marshall <johnm@falch.net>:
14642         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14643         sources.redhat.com, and tweak some related URLs which had
14644         suffered from linkrot.
14645
14646 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14647
14648         From Jeff law:
14649         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14650         structures passed in registers.
14651
14652 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14653
14654         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14655         white space which prevented compilation.  Reported by DSK
14656         <dsk@student.unsw.edu.au>.
14657
14658 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14659
14660         * symfile.c (build_section_addr_info_from_section_tab):
14661         Use bfd access method instead of manipulating bfd directly.
14662         (syms_from_objfile): Ditto.
14663         (simple_overlay_update_1): Ditto.
14664         (simple_overlay_update): Ditto.
14665         (generic_load): Ditto.
14666         (overlay_unmapped_address): FIXME comment, bfd access methods.
14667         (sections_overlap): FIXME comment, bfd access methods.
14668         (pc_in_mapped_range): FIXME comment, bfd access methods.
14669         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14670         (section_is_mapped): FIXME comment, bfd access methods.
14671         (section_is_overlay): FIXME comment, bfd access methods.
14672
14673         * symfile.c (generic_load): Whitespace and long line cleanups.
14674         Remove duplicate variable, change several local variables to
14675         more appropriate data types.
14676         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14677
14678 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14679
14680         From Peter Schauer:
14681         * language.c (longest_local_hex_string_custom): Use phex_nz to
14682         convert NUM to a hex string.
14683
14684 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14685
14686         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14687         the function.
14688         Update Copyright year.
14689
14690 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14691
14692         * language.c (longest_raw_hex_string): Delete unused function.
14693
14694 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14695
14696         * MAINTAINERS (write-after-approval): Add myself.
14697         * dwarf2read.c (read_tag_string_type): Handling of
14698         DW_AT_byte_size.
14699         (read_tag_string_type): FORTRAN fix to prevent propagation of
14700         first string size.
14701         (set_cu_language): Handling of DW_LANG_Fortran95
14702
14703 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14704
14705         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14706         GETPID(inferior_ptid).
14707         (store_inferior_registers): Likewise.
14708
14709 2002-01-10  Jason Merrill  <jason@redhat.com>
14710
14711         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14712         Fix DW_OP_minus.
14713
14714 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14715
14716         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14717         and bfd/elf32-sh-nbsd.c.
14718
14719 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14720
14721         * NEWS: Mention --pid and corefile/proc-id behavior change.
14722
14723         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14724         * gcore.c: Include cli/cli-decode.h instead of command.h.
14725
14726         * main.c (captured_main): Add new command line option "--pid".
14727         If the second command line argument (following the symbol-file)
14728         begins with a digit, try to attach to it before trying to open
14729         it as a corefile.
14730         (print_gdb_help): Document the "--pid" argument.
14731
14732 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14733
14734         * completer.c (command_completer): New function.
14735
14736         * completer.h <command_completer>: Add prototype.
14737
14738         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14739         completer for the "help" command.
14740
14741 2002-01-09  Jason Merrill  <jason@redhat.com>
14742
14743         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14744
14745 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14746
14747         * i386-linux-nat.c (fill_fpxregset): Make global.
14748         (store_fpxregset): Ditto.
14749
14750         * gregset.h (gdb_fpxregset_t): Define.
14751         (supply_fpxregset): Prototype.
14752         (fill_fpxregset): Prototype.
14753
14754         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14755
14756 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14757
14758         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14759         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14760         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14761
14762 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14763
14764         * MAINTAINERS: Update target maintainer rules so that any
14765         Maintainer can approve a tested patch for a maintenance-only
14766         target.
14767
14768 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14769
14770         * MAINTAINERS (write-after-approval): Add myself.
14771
14772         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14773         IN_SIGTRAMP.
14774
14775 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14776
14777         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14778         real name of the executable, rather than the /proc name.
14779
14780 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14781
14782         Implement a "generate-core-file" command in gdb, save target state.
14783         * gcore.c: New file.  Implement new command 'generate-core-file'.
14784         Save a corefile image of the current state of the inferior.
14785         * linux-proc.c: Add linux-specific code for saving corefiles.
14786         * target.h (struct target_ops): Add new target vectors for saving
14787         corefiles; to_find_memory_regions and to_make_corefile_notes.
14788         (target_find_memory_regions): New macro.
14789         (target_make_corefile_notes): New macro.
14790         * target.c (update_current_target): Inherit new target methods.
14791         (dummy_find_memory_regions): New place-holder method.
14792         (dummy_make_corefile_notes): New place-holder method.
14793         (init_dummy_target): Initialize new dummy target vectors.
14794         * exec.c (exec_set_find_memory_regions): New function.
14795         Allow the exec_ops vector for memory regions to be taken over.
14796         (exec_make_note_section): New function, target vector method.
14797         * defs.h (exec_set_find_memory_regions): Export prototype.
14798         * procfs.c (proc_find_memory_regions): New function, corefile method.
14799         (procfs_make_note_section): New function, corefile method.
14800         (init_procfs_ops): Set new target vector pointers.
14801         (find_memory_regions_callback): New function.
14802         (procfs_do_thread_registers): New function.
14803         (procfs_corefile_thread_callback): New function.
14804         * sol-thread.c (sol_find_memory_regions): New function.
14805         (sol_make_note_section): New function.
14806         (init_sol_thread_ops): Initialize new target vectors.
14807         * inftarg.c (inftarg_set_find_memory_regions): New function.
14808         Allow to_find_memory_regions vector to be taken over.
14809         (inftarg_set_make_corefile_notes): New function.
14810         Allow to_make_corefile_notes vector to be taken over.
14811         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14812         interface layer if not target_has_execution (may be a corefile).
14813         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14814         * config/sparc/sun4sol2.mh: Ditto.
14815         * config/alpha/alpha-linux.mh: Ditto.
14816         * config/arm/linux.mh: Ditto.
14817         * config/i386/x86-64linux.mh: Ditto.
14818         * config/ia64/linux.mh: Ditto.
14819         * config/m68k/linux.mh: Ditto.
14820         * config/mips/linux.mh: Ditto.
14821         * config/powerpc/linux.mh: Ditto.
14822         * config/sparc/linux.mh: Ditto.
14823
14824 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14825
14826         * arm-linux-nat.c: Remove references to regcache.c internal data
14827         (registers[] and register_valid[]).
14828
14829 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14830
14831         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14832         so that attaching to a pid will automatically read the process's
14833         symbol file and shlibs.
14834         * Makefile.in: Add rule for linux-proc.o.
14835         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14836         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14837         * config/arm/linux.mh: Ditto.
14838         * config/i386/linux.mh: Ditto.
14839         * config/i386/x86-64linux.mh: Ditto.
14840         * config/ia64/linux.mh: Ditto.
14841         * config/m68k/linux.mh: Ditto.
14842         * config/mips/linux.mh: Ditto.
14843         * config/powerpc/linux.mh: Ditto.
14844         * config/sparc/linux.mh: Ditto.
14845
14846 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14847
14848         * win32-nat.c: Add i386-tdep.h dependency.
14849
14850 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14851
14852         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14853         instead of bfd_get_arch_size.  Don't bail out just because
14854         there's no exec_bfd.
14855
14856         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14857         * p-valprint.c (pascal_object_print_value): Ditto.
14858         * somread.c (som_symtab_read): Ditto.
14859         * symfile.c (simple_free_overlay_region_table): Ditto.
14860         * valops.c (value_assign): Ditto.
14861
14862         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14863         use tilde_expand and strerror for opening save-tracepoints file.
14864
14865         * thread-db.c (thread_db_new_objfile): Indendation fix.
14866
14867         * infptrace.c (GDB_MAX_ALLOCA): New define.
14868         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14869         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14870         can be overridden with whatever value is appropriate to the host).
14871         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14872         alloca to allocate potentially large buffer.
14873         * rs6000-nat.c (child_xfer_memory): Ditto.
14874         * symm-nat.c (child_xfer_memory): Ditto.
14875         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14876
14877 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14878
14879         From Nick Clifton  <nickc@redhat.com>
14880         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14881
14882 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14883
14884         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14885         Don't use exec_bfd if it's NULL.
14886
14887 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14888
14889         * valops.c (value_arg_coerce): Fix formatting.
14890
14891 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14892
14893         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14894         * gnu-nat.c: Ditto.
14895
14896 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14897
14898         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14899         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14900         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14901         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14902         z8k-coff have not been multi-arched.  Update z8k-coff build
14903         status.
14904
14905 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14906
14907         * MAINTAINERS: Mark a29k target as obsolete.
14908         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14909         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14910         comments.
14911         * NEWS: Note that a29k targets are obsolete.
14912         * a29k-tdep.c: Mark as obsolete.
14913         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14914         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14915         a29k-*-vxworks* targets as obsolete.
14916         * remote-adapt.c: Obsolete.
14917         * remote-eb.c: Obsolete.
14918         * remote-mm.c: Obsolete.
14919         * remote-udi.c: Obsolete.
14920         * config/a29k/a29k-udi.mt: Obsolete.
14921         * config/a29k/a29k.mt: Obsolete.
14922         * config/a29k/tm-a29k.h: Obsolete.
14923         * config/a29k/tm-vx29k.h: Obsolete.
14924         * config/a29k/vx29k.mt: Obsolete.
14925
14926 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14927
14928         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14929         with BFD_ENDIAN_BIG.
14930
14931 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14932
14933         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14934         * configure, config.in: Re-generate.
14935         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14936         * defs.h: Do not include <endian.h>.
14937
14938 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14939
14940         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14941         * config.in: Regenerate.
14942         * configure.in: Update copyright years.
14943         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14944         * configure: Regenerate.
14945         * i386bsd-nat.c: Update copyright years.
14946         (fill_gregset): Use regcache_collect.
14947         (fetch_inferior_registers): Only fetch integer registers
14948         if requested to do so.  Add support for XMM registers
14949         using PT_GETXMMREGS.
14950         (store_inferior_registers): Only store integer registers
14951         if requested to do so.  Add support for XMM registers
14952         using PT_SETXMMREGS.
14953         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14954         (store_inferior_registers): Remove.
14955         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14956         (fetch_elfcore_registers): New function.
14957         (i386nbsd_elfcore_fns): New.
14958         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14959         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14960         i386bsd-nat.o.
14961         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14962         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14963         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14964         * config/i386/tm-nbsd.h: Update copyright years.
14965         (HAVE_SSE_REGS): Define.
14966         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14967         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14968         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14969         (SIGCONTEXT_PC_OFFSET): Remove.
14970         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14971
14972 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14973
14974         * configure.tgt: Remove powerpc-*-macos* target.
14975         * config/m68k/xm-mpw.h: Delete file.
14976         * config/xm-mpw.h: Delete file.
14977         * ser-mac.c: Delete file.
14978         * mpw-make.sed: Delete file.
14979         * mpw-config.in: Delete file.
14980         * mac-xdep.c: Delete file.
14981         * mac-gdb.r: Delete file.
14982         * mac-defs.h: Delete file.
14983         * mac-nat.c: Delete file.
14984         * config/powerpc/macos.mh: Delete file.
14985         * config/powerpc/macos.mt: Delete file.
14986         * config/powerpc/nm-macos.h: Delete file.
14987         * config/powerpc/tm-macos.h: Delete file.
14988         * source.c (openp, open_source_file): Remove obsolete code.
14989         * top.c (gdb_readline): Ditto.
14990         * utils.c (query): Ditto.
14991         * event-top.c (display_gdb_prompt): Ditto.
14992         * Makefile.in (ser-mac.o): Delete obsolete target.
14993         * NEWS: Update.
14994
14995 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
14996
14997         * defs.h (BIG_ENDIAN): Delete macro definition.
14998         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14999         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15000         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15001         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15002         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15003         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15004         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15005         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15006         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15007         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15008         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15009         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15010         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15011         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15012         * gdbarch.c: Re-generate.
15013
15014 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15015
15016         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15017         for core files.
15018
15019 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15020
15021         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15022
15023 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15024
15025         * value.h (value_ptr): Delete typedef.
15026
15027 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15028
15029         * i386nbsd-nat.c: Update copyright years.
15030         Include i386-tdep.h.
15031
15032 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15033
15034         * stabsread.c: Update copyright years.
15035
15036         From Debashis Mahata <debashis.mahata@wipro.com>:
15037         (read_struct_fields): Deal with Sun C compiler erroneous stab
15038         output for structs and unions.
15039         Fix PR gdb/269.
15040
15041 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15042
15043         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15044         prototype.
15045
15046 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15047
15048         * cp-abi.c: Fix whitespace.
15049         (baseclass_offset): New wrapper function.
15050         * cp-abi.h (baseclass_offset): Add prototype.
15051         (struct cp_abi_ops): Add baseclass_offset pointer.
15052
15053         * valops.c (vb_match): Move to...
15054         * gnu-v2-abi.c (vb_match): here.
15055         * valops.c (baseclass_offset): Move to...
15056         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15057
15058         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15059
15060         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15061         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15062         * hpacc-abi.c (init_hpacc_ops): Likewise.
15063
15064 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15065
15066         * valops.c (find_overload_match): Accept obj as a
15067         reference parameter.  Update it before returning.
15068         * value.h (find_overload_match): Update prototype.
15069         * eval.c (evaluate_subexp_standard): Pass object to
15070         find_overload_match by reference.
15071
15072 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15073
15074         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15075         register attribute from value declarations.
15076         * valops.c: Ditto.
15077         * value.h: Ditto.
15078         * scm-lang.c (scm_lookup_name): Ditto.
15079
15080 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15081
15082         Abstract the functionality of iterating over mapped memory
15083         regions into a general purpose iterator function.
15084         * procfs.c (iterate_over_mappings): New function, general purpose
15085         iterator for memory sections.
15086         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15087         (solib_mappings_callback): New function, callback for above.
15088         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15089         (info_mappings_callback): New function, callback for above.
15090
15091         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15092
15093 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15094
15095         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15096         * i386-tdep.c: Include "elf-bfd.h".
15097         (process_note_abi_tag_sections): New function.
15098         (i386_gdbarch_init): Add code to recognize various OS/ABI
15099         combinations.
15100
15101         * maint.c (_initialize_maint_cmds): Add missing \ in
15102         string-literal.
15103
15104 For older changes see ChangeLog-2001
15105 \f
15106 Local Variables:
15107 mode: change-log
15108 left-margin: 8
15109 fill-column: 74
15110 version-control: never
15111 End: