* configure.in: Fix typo in last change.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
2
3         * configure.in: Fix typo in last change.
4         * config.in, configure: Regenerated.
5
6 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
7
8         * valarith.c (value_binop): Delete obsolete code and comments.
9         * configure.host: Ditto.
10         * buildsym.h (make_blockvector): Ditto.
11         * buildsym.c (make_blockvector): Ditto.
12         * defs.h (enum language): Ditto.
13         (chill_demangle): Ditto.
14         * elfread.c (elf_symtab_read): Ditto.
15         * dwarfread.c (CHILL_PRODUCER): Ditto.
16         (set_cu_language): Ditto.
17         (handle_producer): Ditto.
18         * expprint.c (print_subexp): Ditto.
19         * gdbtypes.c (chill_varying_type): Ditto.
20         * gdbtypes.h (builtin_type_chill_bool): Ditto.
21         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
22         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
23         (chill_varying_type): Ditto.
24         * language.h (_LANG_chill): Ditto.
25         * language.c (binop_result_type, integral_type): Ditto.
26         (character_type, string_type, structured_type): Ditto.
27         (lang_bool_type, binop_type_check): Ditto.
28         * stabsread.h (os9k_stabs): Ditto.
29         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
30         (define_symbol, read_type, read_struct_fields): Ditto.
31         (read_array_type, read_enum_type, read_huge_number): Ditto.
32         (read_range_type, start_stabs): Ditto.
33         * symfile.c (init_filename_language_table): Ditto.
34         (add_psymbol_with_dem_name_to_list): Ditto.
35         * symtab.c (symbol_init_language_specific): Ditto.
36         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
37         * symtab.h (struct general_symbol_info): Ditto.
38         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
39         * typeprint.c (typedef_print): Ditto.
40         * utils.c (fprintf_symbol_filtered): Ditto.
41         * valops.c (value_cast, search_struct_field, value_slice): Delete
42         obsolete code.
43         (varying_to_slice): Delete function.
44         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
45         (varying_to_slice): Delete declaration.
46         * MAINTAINERS: Update.
47
48 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
49
50         * configure.in: Reorganize "Checks for library functions section"
51         a bit.  Remove check for `btowc' and `isascii' functions.
52         * configure: Regenerated.
53
54         * acconfig.h (_MSE_INT_H): Remove.
55         * configure.in: Create "Checks for header files" section, and move
56         appropriate tests there.  Don't check for objlist.h, wchar.h,
57         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
58         misdetection fix.  Also add "Checks for types", "Checks for
59         compiler characteristics" and "Checks for library functions"
60         sections.
61         * config.in, configure: Regenerated.
62
63         * configure.in: Create "Checks for programs" section, and move
64         appropriate tests there.
65
66 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
67
68         * configure.in: Create "Checks for libraries" section, and move
69         appropriate tests there.  Cleanup check for wctype in libw.  Use
70         AC_SEARCH_LIBS to see whether we need libsocket.
71         * configure: Regenerated.
72
73 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
74
75         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
76         * config.in, configure: Regenerated.
77
78 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
79
80         * gdb_dirent.h: Cleanup and update code to match the example in
81         the Autoconf manual.
82         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
83         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
84         * configure: Regenerated.
85
86 2002-12-30  Adam Fedor  <fedor@gnu.org>
87
88         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
89         (yylex): Initialize c to avoid uninitialized warning.
90
91 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
92
93         * doc/fdl.texi: Revert the last change.
94
95 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
96
97         * tracepoint.c (ISATTY): Removed.
98
99 2002-12-26  J. Brobecker  <brobecker@gnat.com>
100
101         Continuing work to convert the hppa targets to multiarch partil.
102
103         * hppa-tdep.c: Add some missing forward declarations.
104         (frameless_function_invocation): Prefix the function name
105         by "hppa_" to avoid polluting the namespace.  Update all calls
106         to use the new function name.
107         (saved_pc_after_call): Ditto.
108         (init_extra_frame_info): Ditto.
109         (frame_chain): Ditto.
110         (push_dummy_frame): Ditto.
111         (target_read_pc): Ditto.
112         (target_write_pc): Ditto.
113         (in_solib_call_trampoline): Ditto.
114         (in_solib_return_trampoline): Ditto.
115         (skip_trampoline_code): Ditto.
116         (hppa_read_fp): New function, renamed from target_read_fp.
117         (hppa_target_read_fp): New function, using hppa_read_fp.
118         This function conforms to the function profile for the
119         READ_FP gdbarch method.
120         (hppa_extract_struct_value_address): New function, extracted
121         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
122         macro.
123         (hppa_frame_num_args): New function.
124         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
125
126         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
127         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
128         for the switch to multiarch partial.
129         Update some of the macros definitions to match some changes
130         described above in the name of the function they are calling.
131         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
132         not be straightforward to convert. Do now wrap it inside
133         "#if !... #endif" to remember that this macro has still not
134         been taken care of.
135         (FIX_CALL_DUMMY): Likewise.
136
137 2002-12-26  J. Brobecker  <brobecker@gnat.com>
138
139         Continuing work to convert the hppa targets to multiarch partial.
140
141         * hppa-tdep.c (hppa_register_raw_size): New function replacing
142         the body of macro REGISTER_RAW_SIZE.
143         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
144         config/pa/tm-hppah.h. These functions will be used to initialize
145         the gdbarch structure.
146         (hppa_hpux_pc_in_sigtramp): New function.
147         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
148         (hppa_hpux_frame_base_before_sigtramp): New function.
149         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
150         Add gdbcore.h #include.
151         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
152         of this gdbarch-eligible macro to a call to the new associated
153         function.
154         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
155         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
156         into a call to the new associated function.
157         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
158         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
159         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
160
161 2002-12-24  David Carlton  <carlton@math.stanford.edu>
162
163         * config/sparc/tm-sparc.h: Delete duplicate definition of
164         DEPRECATED_PC_IN_CALL_DUMMY.
165
166 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
167
168         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
169         $(gdb_assert_h).
170         * configure.tgt: Recognize mips64*-*-linux*.
171         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
172         (supply_32_bit_reg): New function.
173         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
174         (fill_gregset): Use regcache_collect() instead of
175         deprecated_registers[].
176         (register_addr): Change name to mips_linux_register_addr().
177         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
178         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
179         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
180         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
181         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
182         (MIPS64_LINUX_JB_PC): New defines.
183         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
184         (mips64_elf_fpregset_t): New typedefs.
185         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
186         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
187         (mips64_linux_register_addr, set_mips_linux_register_addr)
188         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
189         (init_register_addr_data)
190         New functions.
191         (fetch_core_registers): Add support for core file formats with 64-bit
192         registers.
193         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
194         (register_addr_data): New static global variable.
195         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
196         gdbarch_register_osabi() for each MIPS machine.
197         * config/mips/linux64.mt: New file.
198         * config/mips/tm-linux64.h: New file.
199
200 2002-12-23  Adam Fedor  <fedor@gnu.org>
201
202         * maint.c (maintenance_demangle): Add switch to demangle
203         ObjC language symbols as well.
204
205 2002-12-23  Adam Fedor  <fedor@gnu.org>
206
207         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
208         last argument from complaint function call.
209
210 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
211
212         * exec.c (print_section_info): Add FIXME comments regarding format
213         string choices.
214
215 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
216
217         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
218         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
219
220 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
221
222         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
223
224 2002-12-23  David Carlton  <carlton@math.stanford.edu>
225
226         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
227         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
228         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
229         information associated to a minsym, not lookup_symbol.
230
231 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
232
233         * x86-64-tdep.h (x86_64_init_abi): New prototype.
234         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
235         (x86_64_init_abi): Make non-static.  Set number of pseudo
236         registers to 0.
237         (x86_64_gdbarch_init): Remove function.
238         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
239         Remove code dealing with dissambly.
240         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
241         (_initialize_x86_64_linux_tdep): New function.
242         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
243         i386-tdep.o.
244
245 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
246
247         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
248         (struct gdb_osabi_handler): Remove member `arch'.  Add member
249         `arch_info'.
250         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
251         construct a `struct bfd_arch_info' and store it in the `struct
252         gdb_osabi_handler' that is created.
253         (gdbarch_init_osabi): Check for compatibility based on machine
254         type and architecture.
255         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
256         comment.
257         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
258         second argument in call to gdbarch_register_osabi.
259         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
260         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
261         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
262         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
263         * arm-tdep.c (_initialize_arm_tdep): Likewise.
264         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
265         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
266         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
267         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
268         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
269         * i386-tdep.c (_initialize_i386_tdep): Likewise.
270         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
271         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
272         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
273         _initialize_i386bsd_tdep and updated likewise.
274         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
275         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
276         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
277         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
278         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
279         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
280         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
281         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
282         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
283         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
284
285 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
286
287         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
288         DT_MIPS_RLD_MAP case for 64-bit targets.
289
290 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
291
292         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
293         ``temp_saved_regs'', not the pointer or other storage contiguous
294         to this pointer.
295
296 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
297
298         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
299         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
300         (mips_linux_get_longjmp_target): Delete declarations.
301         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
302         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
303         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
304         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
305         (mips_linux_get_longjmp_target)
306         (mips_linux_svr4_fetch_link_map_offsets): Make static.
307         (mips_linux_init_abi): New function.
308         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
309
310 2002-12-19  Keith Seitz  <keiths@redhat.com>
311
312         patch committed by Elena Zannoni  <ezannoni@redhat.com>
313         * thread.c (do_captured_list_thread_ids): Call prune_threads and
314         target_find_new_threads. Fix for PR mi/669.
315
316 2002-12-19  David Carlton  <carlton@math.stanford.edu>
317
318         * linespec.c (decode_line_1): Move code into decode_all_digits.
319         (decode_all_digits): New function.
320
321 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
322
323         * exec.c (print_section_info): Select a format string to use with
324         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
325
326 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
327
328         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
329         deprecated_update_current_frame_pc_hack.
330         (deprecated_update_frame_base_hack): New function.
331         * frame.h (deprecated_update_frame_pc_hack): Replace
332         (deprecated_update_frame_base_hack): Declare.
333         * infrun.c (normal_stop): Update.
334
335 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
336
337         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
338         frame_extra_info_zalloc.
339         (rs6000_frame_args_address): Use get_frame_extra_info.
340         (frame_get_saved_regs): Use get_frame_saved_regs.
341         (frame_initial_stack_address): Use get_frame_saved_regs and
342         get_frame_extra_info.
343         (frame_initial_stack_address): Use get_frame_extra_info.
344
345 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
346
347         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
348         array size.
349         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
350         checks for r3900_regnames[].
351
352 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
353
354         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
355         All uses changed
356         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
357
358 2002-12-17  David Carlton  <carlton@math.stanford.edu>
359
360         * symtab.c (lookup_partial_symbol): Don't search past the end of
361         the partial symbols.
362
363 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
364
365         * stack.c (frame_info): Use get_frame_saved_regs.
366         * breakpoint.c (until_break_command): Use get_frame_pc.
367
368 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
369
370         * buildsym.c (block_end_complaint, anon_block_end_complaint)
371         (innerblock_complaint, innerblock_anon_complaint)
372         (blockvector_complaint): Delete deprecated complaint structs.
373         (finish_block, make_blockvector, end_symtab): Replace calls
374         to complain() with calls to complaint().
375         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
376         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
377         (unexpected_type_complaint, bad_sclass_complaint)
378         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
379         Delete deprecated complaint structs.
380         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
381         Replace calls to complain() with calls to complaint().
382         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
383         (unknown_symtype_complaint, unknown_symchar_complaint)
384         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
385         (lbrac_mismatch_complaint, repeated_header_complaint)
386         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
387         Delete deprecated complaint structs.
388         (unknown_symtype_complaint, lbrac_mismatch_complaint)
389         (repeated_header_complaint)
390         (function_outside_compiliation_unit_complaint): New functions.
391         (add_old_header_file, find_corresponding_bincl_psymtab)
392         (set_namestring, find_stab_function_addr, read_dbx_symtab)
393         (process_one_symbol): Replace calls to complain() with, possibly
394         indirect, calls to complaint().
395         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
396         (unknown_attribute_form, unknown_attribute_length)
397         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
398         (const_ignored, botched_modified_type, op_deref2, op_deref4)
399         (basereg_not_handled, dup_user_type_allocation)
400         (dup_user_type_definition, missing_tag, bad_array_element_type)
401         (subscript_data_items, unhandled_array_subscript_format)
402         (unknown_array_subscript_format, not_row_major)
403         (missing_at_name): Delete deprecated complaint structs.
404         (bad_die_ref_complaint, unknown_attribute_form_complaint)
405         (dup_user_type_definition_complaint)
406         (bad_array_element_type_complaint): New functions.
407         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
408         (decode_subscript_data_item, dwarf_read_array_type)
409         (read_tag_string_type, read_subroutine_type, read_func_scope)
410         (locval, scan_partial_symbols, decode_modified_type)
411         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
412         (attribute_size): Replace calls to complain() with, possibly
413         indirect, calls to complaint().
414         * elfread.c (section_info_complaint, section_info_dup_complaint)
415         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
416         Delete deprecated complaint structs.
417         (elf_symtab_read, elfstab_offset_sections): Replace calls to
418         complain() with calls to complaint().
419         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
420         struct.
421         (stub_noname_complaint): New function.
422         (check_typedef, add_mangled_type): Replace calls to complain()
423         with calls to complaint().
424         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
425         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
426         (hpread_unhandled_type_complaint, hpread_struct_complaint)
427         (hpread_array_complaint, hpread_type_lookup_complaint)
428         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
429         (hpread_unhandled_common_complaint)
430         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
431         struct definitions and declarations.
432         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
433         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
434         Replace calls to complain() with, possibly indirect, calls to
435         complaint().
436         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
437         Likewise.
438         * mdebugread.c (bad_file_number_complaint, index_complaint)
439         (aux_index_complaint, block_index_complaint)
440         (unknown_ext_complaint, unknown_sym_complaint)
441         (unknown_st_complaint, block_overflow_complaint)
442         (basic_type_complaint, unknown_type_qual_complaint)
443         (array_index_type_complaint, bad_tag_guess_complaint)
444         (block_member_complaint, stEnd_complaint)
445         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
446         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
447         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
448         (bad_continued_complaint, bad_rfd_entry_complaint)
449         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
450         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
451         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
452         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
453         complaint structs.
454         (index_complaint, unknown_ext_complaint, basic_type_complaint)
455         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
456         (unexpected_type_code_complaint)
457         (function_outside_compilation_unit_complaint): New functions.
458         (parse_symbol, parse_type, upgrade_type, parse_procedure)
459         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
460         Replace calls to complain() with, possibly indirect calls to
461         complaint().
462         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
463         Delete deprecated complaint structs.
464         (lookup__objc_class, lookup_child_selector): Replace complain()
465         with complaint().
466         * remote-vx.c (cant_contact_target): Delete deprecated complaint
467         struct.
468         (vx_lookup_symbol): Replace complain() with complaint().
469         * stabsread.c (invalid_cpp_abbrev_complaint)
470         (invalid_cpp_type_complaint, member_fn_complaint)
471         (const_vol_complaint, error_type_complaint)
472         (invalid_member_complaint, range_type_base_complaint)
473         (reg_value_complaint, vtbl_notfound_complaint)
474         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
475         (unresolved_sym_chain_complaint, stabs_general_complaint)
476         (lrs_general_complaint, multiply_defined_struct): Delete
477         deprecated complaint structs.
478         (invalid_cpp_abbrev_complaint, ref_value_complaint)
479         (stabs_general_complaint, lrs_general_complaint)
480         (msg_unknown_complaint): New functions.
481         (dbx_lookup_type, read_cfront_baseclasses)
482         (read_cfront_member_functions, resolve_symbol_reference)
483         (define_symbol, resolve_live_range, add_live_range, read_type)
484         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
485         (read_one_struct_field, read_baseclasses, read_tilde_fields)
486         (read_cfront_static_fields, attach_fields_to_type)
487         (complain_about_struct_wipeout, read_range_type)
488         (common_block_start, common_block_end, cleanup_undefined_types)
489         (scan_file_globals): Replace complain() with complaint().
490         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
491         Delete deprecated complaint struct declarations.
492         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
493         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
494         (bf_not_found_complaint, ef_complaint, eb_complaint)
495         (function_outside_compilation_unit_complaint): New functions.
496         (record_include_begin, record_include_end, enter_line_range)
497         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
498         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
499         complain() with complaint().
500
501 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
502
503         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
504         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
505         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
506         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
507         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
508         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
509         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
510         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
511         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
512         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
513         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
514         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
515         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
516         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
517         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
518         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
519         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
520         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
521         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
522         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
523         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
524         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
525         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
526         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
527         * config/m88k/xm-dgux.h: Delete.
528         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
529         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
530         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
531         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
532         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
533         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
534         * ch-valprint.c: Delete.
535         
536 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
537
538         * infrun.c (handle_inferior_event): Rearrange code to resume if
539         no catchpoint triggers for an event.
540
541 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
542
543         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
544         and TARGET_WAITKIND_VFORKED cases.
545
546 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
547
548         * infrun.c (handle_inferior_event): Assume that catchpoints
549         are not affected by DECR_PC_AFTER_BREAK.
550
551 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
552
553         * target.c (update_current_target): Don't inherit DONT_USE.
554         * target.h (struct target_ops): Remove DONT_USE.
555         (target_next): Remove macro.
556
557 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
558
559         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
560
561 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
562
563         * arm-tdep.c (convert_from_extended): New argument to hold the
564         type of floating point result we want to convert to.  Make input 
565         argument const.  Fix all callers.
566         (convert_to_extended): Similarly.
567         (arm_extract_return_value): Now takes a regcache argument.  Change
568         code to use regcache accessor functions.  Correctly extract 
569         smaller-than-word results on big-endian machines.
570         (arm_store_return_value): Now takes a regcache argument.  Change
571         code to use regcache accessor functions.  Correctly zero/sign extend
572         smaller than word results before storing into r0.
573         (arm_gdbarch_init): Register new-style extract_return_value and
574         store_return_value functions.
575
576 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
577
578         * thread-db.c (thread_from_lwp): Uniquify error msg.
579         (lwp_from_thread): Ditto.
580         (check_event): Ditto.
581         (find_new_threads_callback): Ditto.
582         (thread_db_pid_to_str): Ditto.
583
584 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
585
586         * frame.h (get_frame_saved_regs): Declare.
587         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
588         pointer.
589         * frame.c (get_frame_saved_regs): New function.
590         (frame_saved_regs_zalloc): Return the allocated saved_regs.
591
592 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
593
594         * frame.c (deprecated_update_current_frame_pc_hack): New
595         function.
596         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
597         * infrun.c (normal_stop): Use said function instead of directly
598         modifying the frame's PC.
599         
600 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
601
602         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
603
604 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
605
606         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
607         config/mips/tm-irix6.h (NUM_REGS): Delete.
608         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
609         (temp_saved_regs): Declare as a pointer rather than an array.
610         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
611         that ``temp_saved_regs'' has storage allocated to it and that
612         it's the correct size.
613
614 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
615
616         * defs.h (init_last_source_visited): New prototype.
617         (add_path): Ditto.
618         * source.c (add_path): New function that adds to a specified path.
619         (mod_path): Change to call add_path.
620         (init_last_source_visited): New function to allow interfaces to
621         initialize static variable: last_source_visited.  Part of fix
622         for PR gdb/741.
623         * Makefile.in: Add support for mi/mi-cmd-env.c.
624
625 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
626
627         * frame.h (frame_id_unwind): Declare.
628         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
629         id_unwind_cache.
630         (frame_id_unwind_ftype): Declare.
631         * frame.c (frame_id_unwind): New function.
632         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
633         (create_new_frame, get_prev_frame): Pass id_unwind to
634         set_unwind_by_pc.
635         (frame_saved_regs_id_unwind): New function.
636         (frame_saved_regs_id_unwind): New function.
637         * dummy-frame.c (dummy_frame_id_unwind): New function.
638         (struct dummy_frame): Add field id.
639         (generic_push_dummy_frame): Initialize `id'.
640         * dummy-frame.h (dummy_frame_id_unwind): Declare.
641
642 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
643
644         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
645         pass that to set_momentary_breakpoint.  Move comments to where they
646         belong.
647         * frame.h (set_current_frame): Delete declaration.
648         * frame.c (set_current_frame): Delete function.
649
650 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
651
652         * frame.c (frame_extra_info_zalloc): New function.
653         * frame.h (frame_extra_info_zalloc): Declare.
654
655 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
656
657         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
658         in the previous prototype change to set_momentary_breakpoint.
659
660 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
661
662         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
663         and saw_child_exec.
664         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
665         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
666         (stop_stepping): Remove outdated check for child vfork events.
667
668 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
669
670         * GDB 5.3 released from gdb_5_3-branch.
671
672 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
673
674         * corelow.c (init_core_ops): Delete references to to_require_attach
675         and to_require_detach.
676         * exec.c (init_exec_ops): Likewise.
677         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
678         hppa_require_detach directly.
679         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
680         * inftarg.c (child_detach): Remove.
681         (child_detach_from_process): Rename to child_detach, remove
682         after_fork argument.
683         (child_attach): Remove.
684         (child_attach_to_process): Rename to child_attach, remove after_fork
685         argument.
686         (init_child_ops): Delete references to to_require_attach
687         and to_require_detach.
688         * infttrace.c (hppa_require_attach): Update comment.
689         * target.c (cleanup_target, update_current_target)
690         (init_dummy_target, setup_target_debug): Delete references to
691         to_require_attach and to_require_detach.
692         (find_default_require_detach, find_default_require_attach)
693         (debug_to_require_attach, debug_to_require_detach): Remove
694         functions.
695         * target.h (struct target_ops): Remove to_require_attach
696         and to_require_detach.
697         (target_require_attach, target_require_detach): Delete macros.
698         (find_default_require_detach, find_default_require_attach): Delete
699         prototypes.
700         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
701
702 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
703
704         * frame.c (get_frame_extra_info): New function.
705         * frame.h (get_frame_extra_info): Declare.
706
707 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
708
709         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
710         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
711         with `struct frame_id'.
712         (set_longjmp_resume_breakpoint): Ditto.
713         * infrun.c (handle_inferior_event): Update.
714         * breakpoint.c (watch_command_1, until_break_command): Update.
715         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
716         (handle_inferior_event, step_over_function): Update.
717         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
718         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
719         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
720         * infcmd.c (finish_command, run_stack_dummy): Update.
721
722 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
723
724         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
725         (dwarf2_non_const_array_bound_ignored)
726         (dwarf2_missing_line_number_section)
727         (dwarf2_statement_list_fits_in_line_number_section)
728         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
729         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
730         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
731         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
732         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
733         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
734         (dwarf2_missing_member_fn_type_complaint)
735         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
736         (dwarf2_const_value_length_mismatch)
737         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
738         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
739         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
740         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
741         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
742         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
743         complaints using deprecated struct..
744         (dwarf2_non_const_array_bound_ignored_complaint)
745         (dwarf2_complex_location_expr_complaint)
746         (dwarf2_unsupported_at_frame_base_complaint)
747         (dwarf2_const_value_length_mismatch_complaint)
748         (dwarf2_macros_too_long_complaint)
749         (dwarf2_macro_malformed_definition_complaint)
750         (dwarf2_invalid_attrib_class_complaint): New functions.
751         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
752         (read_structure_scope, read_array_type, read_common_block)
753         (read_tag_pointer_type, read_base_type, read_partial_die)
754         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
755         (new_symbol, dwarf2_const_value, read_type_die)
756         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
757         (parse_macro_definition, dwarf_decode_macros): Replace calls to
758         complain() with, possibly indirect, calls to complaint().
759
760 2002-12-11  Andrew Cagney  <cagney@redhat.com>
761
762         * frame.c (deprecated_get_frame_saved_regs): Rename
763         get_frame_saved_regs.
764         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
765         * sparc-tdep.c: Update.
766         * hppa-tdep.c: Update.
767         * h8500-tdep.c: Update.
768
769 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
770
771         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
772         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
773         ``char *'' for return and parameter types.
774         * gdbarch.h, gdbarch.c: Regenerate.
775         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
776         return type from ``char *'' to ``const char *''.
777         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
778         const.
779
780 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
781
782         * i386-tdep.c: Include "dummy-frame.h".
783         (i386_frame_chain, i386_frame_saved_pc): Replace
784         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
785         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
786
787 2002-12-10  Andrew Cagney  <cagney@redhat.com>
788
789         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
790         Change to a function with predicate.
791         * gdbarch.h, gdbarch.c: Re-generate.
792         * frame.c (get_prev_frame): Update.  Test
793         DEPRECATED_INIT_FRAME_PC_P.
794         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
795         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
796         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
797         * alpha-tdep.c (alpha_gdbarch_init): Update.
798         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
799         * mips-tdep.c (mips_gdbarch_init): Update.
800         * i386-interix-tdep.c (i386_interix_init_abi): Update.
801         * arm-tdep.c: Update comments.
802         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
803         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
804         * frv-tdep.c (frv_gdbarch_init): Ditto.
805         * x86-64-tdep.c (x86_64_init_abi): Ditto.
806         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
807         * s390-tdep.c (s390_gdbarch_init): Ditto.
808         * v850-tdep.c (v850_gdbarch_init): Ditto.
809         * vax-tdep.c (vax_gdbarch_init): Ditto.
810         * sh-tdep.c (sh_gdbarch_init): Ditto.
811         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
812         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
813         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
814         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
815         * i386-tdep.c (i386_gdbarch_init): Ditto.
816         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
817         * cris-tdep.c (cris_gdbarch_init): Ditto.
818         * avr-tdep.c (avr_gdbarch_init): Ditto.
819         * arm-tdep.c (arm_gdbarch_init): Ditto.
820         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
821         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
822
823 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
824
825         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
826         CHILD_FOLLOW_FORK.
827         * hppah-nat.c (saved_vfork_pid): Add.
828         (child_post_follow_vfork): Remove.
829         (child_follow_fork): New function.
830         (child_wait): Call detach_breakpoints after receiving the child vfork.
831         Call child_resume directly instead of going through resume ().
832         Make sure we have the exec before reporting the vfork.
833         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
834         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
835         (follow_fork): New function.  Call target_follow_fork.
836         (follow_inferior_reset_breakpoints): New function broken out from
837         old follow_inferior_fork.
838         (resume): Remove hack to follow exec after vfork.
839         * inftarg.c (child_post_follow_vfork): Remove.
840         (child_follow_fork): New function.
841         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
842         * target.c (cleanup_target): Replace to_post_follow_vfork with
843         to_follow_fork.
844         (update_current_target): Likewise.
845         (setup_target_debug): Likewise.
846         (debug_to_post_follow_vfork): Remove.
847         (debug_to_follow_fork): New function.
848         * target.h (struct target_ops): Replace to_post_folow_vfork with
849         to_follow_fork.
850         (child_post_follow_vfork): Remove prototype.
851         (child_follow_fork): Add prototype.
852         (target_post_follow_vfork): Remove macro.
853         (target_follow_fork): Add macro.
854
855 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
856
857         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
858         (child_post_follow_vfork): Cancel pending exec event if we follow
859         the parent.
860         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
861         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
862         event at the following wait call if necessary.
863         * infrun.c (follow_vfork): Don't follow_exec here.
864         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
865         case about HP/UX 10.20.  Remove code pushed down to
866         hppah-nat.c:child_wait.
867         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
868         vfork_in_flight is set.
869
870 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
871
872         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
873         for the parent's fork event.
874         * infrun.c (handle_inferior_event): Only expect one fork event.
875         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
876         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
877
878 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
879
880         * PROBLEMS: Delete reference to PR gdb/725.
881         
882         * MAINTAINERS (gdb.c++): Add David Carlton.
883
884 2002-12-09  David Carlton  <carlton@math.stanford.edu>
885
886         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
887         * cli/cli-cmds.c: Ditto.
888
889 2002-12-09  Andrew Cagney  <cagney@redhat.com>
890
891         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
892         function address in <>.
893         * gdbarch.c: Re-generate.
894
895 2002-12-09  David Carlton  <carlton@math.stanford.edu>
896
897         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
898
899 2002-12-09  David Carlton  <carlton@math.stanford.edu>
900
901         * linespec.c (symtab_from_filename): New function.
902         (decode_line_1): Move code into symtab_from_filename.
903
904 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
905
906         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
907
908 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
909
910         * f-valprint.c (info_common_command): Use get_frame_pc.
911         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
912         * ax-gdb.c (agent_command): Ditto.
913         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
914         (rs6000_pop_frame): Ditto.
915         (rs6000_frameless_function_invocation): Ditto.
916         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
917         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
918         * macroscope.c (default_macro_scope): Ditto.
919         * stack.c (print_frame_info_base): Ditto.
920         (print_frame, frame_info, print_frame_label_vars): Ditto.
921         (return_command, func_command, get_frame_language): Ditto.
922         * infcmd.c (finish_command): Ditto.
923         * dummy-frame.c (cached_find_dummy_frame): Ditto.
924         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
925         (break_at_finish_at_depth_command_1): Ditto.
926         (break_at_finish_command_1): Ditto.
927         (until_break_command, get_catch_sals): Ditto.
928         * blockframe.c (func_frame_chain_valid): Ditto.
929         (frameless_look_for_prologue): Ditto.
930         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
931
932 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
933
934         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
935         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
936
937 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
938
939         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
940         to pure functions.
941         * gdbarch.h, gdbarch.c: Re-generate.
942         * frame.c (get_prev_frame): Explictly assign prev's pc with value
943         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
944
945         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
946         declaration to a function returning a CORE_ADDR.
947         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
948         * arch-utils.c (init_frame_pc_noop): Return the PC value.
949         (init_frame_pc_default): Ditto.
950         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
951         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
952         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
953         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
954         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
955         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
956
957         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
958         to init_frame_pc_noop.
959         (i386_interix_init_frame_pc): Delete function.
960         * z8k-tdep.c (init_frame_pc): Delete function.
961         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
962         (INIT_FRAME_PC_FIRST): Ditto.
963         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
964         (INIT_FRAME_PC_FIRST): Ditto.
965         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
966         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
967         init_frame_pc_noop.
968         (INIT_FRAME_PC_FIRST): Convert to an expression.
969         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
970
971 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
972
973         * blockframe.c: Use get_frame_base instead of directly accessing
974         the `struct frame_info' member frame.
975         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
976         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
977
978 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
979
980         * Makefile.in (readline_h): Define.
981         (completer.o): Depend on readline_h.
982         (corelow.o): Ditto.
983         (event-top.o): Ditto.
984         (exec.o): Ditto.
985         (solib.o): Ditto.
986         (source.o): Ditto. 
987         (symfile.o): Ditto. 
988         (symmisc.o): Ditto. 
989         (top.o): Ditto.
990         (tracepoint.o): Ditto. 
991         (utils.o): Ditto.
992         (cli-dump.o): Ditto.
993         (tui-hooks.o): Ditto. 
994         (tuiWin.o): Ditto. 
995
996 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
997
998         More cleanup from import of readline 4.3.
999         * completer.h (complete_line, readline_line_completion_function):
1000         Update prototypes.
1001         (line_completion_function): Removed, not used outside of completer.c.
1002         * completer.c (readline_line_completion_function,
1003         complete_function, line_completion_function): Use const for first
1004         parameter.
1005         (line_completion_function): Make static.
1006         (filename_completer): filename_completion_function is now called
1007         rl_filename_completion_function
1008         * corelow.c: Include <readline/readline.h>.
1009         * exec.c: Ditto.
1010         * solib.c: Ditto.
1011         * source.c: Ditto.
1012         * symfile.c: Ditto.
1013         * symmisc.c: Ditto.
1014         * top.c (init_main): No need to coerce
1015         readline_line_completion_function anymore.
1016         * cli/cli-dump.c: Include <readline/readline.h>.
1017
1018 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1019
1020         * stack.c (frame_info): Use get_prev_frame.
1021         * blockframe.c (frame_address_in_block): Ditto.
1022         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1023         (rs6000_frameless_function_invocation): Ditto.
1024         (rs6000_frame_saved_pc): Ditto.
1025         (rs6000_frame_chain): Ditto.
1026         * arch-utils.c (init_frame_pc_default): Ditto.
1027
1028 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1029
1030         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1031         Delete redundant definition.
1032
1033 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1034
1035         Import of readline 4.3:
1036         * cli/cli-cmds.c: Include readline/tilde.h.
1037         * cli/cli-setshow.c: Ditto.
1038         * defs.h: Don't declare tilde_expand anymore, since readline
1039         exports it.
1040
1041 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1042
1043         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1044         -Werror on this file.
1045
1046 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1047
1048         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1049         the format name.
1050         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1051         * gdbarch.c: Regenerate.
1052         
1053 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1054
1055         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1056         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1057         provide a default value.
1058         * gdbarch.h, gdbarch.c: Regenerate.
1059         * frame.c (get_prev_frame): Update.  Check
1060         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1061         * s390-tdep.c (s390_gdbarch_init): Update.
1062         * mips-tdep.c (mips_gdbarch_init): Update.
1063         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1064         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1065         * alpha-tdep.c (alpha_gdbarch_init): Update.
1066         
1067 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1068
1069         * ia64-linux-nat.c: Include gdb_string.h.
1070         * alpha-nat.c: Ditto.
1071         * ppc-linux-nat.c: Ditto.
1072         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1073         Update dependencies.
1074
1075 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1076
1077         * gdbthread.h: Include "frame.h".
1078         (struct thread_info): Replace step_frame_address with
1079         step_frame_id.
1080         * inferior.h: Include "frame.h".
1081         (step_frame_id): Replace external variable step_frame_address.
1082         * gdbthread.h (save_infrun_state): Replace step_frame_address
1083         parameter with step_frame_id parameter.
1084         (load_infrun_state): Ditto.
1085         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1086         * infcmd.c (step_frame_id, step_1, step_once): Update.
1087         * thread.c (load_infrun_state, save_infrun_state): Update.
1088         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1089         (handle_inferior_event, step_over_function): Update.
1090         (normal_stop, context_switch, restore_inferior_status): Update.
1091         (struct inferior_status): Replace step_frame_address with
1092         step_frame_id.
1093
1094 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1095
1096         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1097         DW_TAG_member as well as a declaration as being a C++ static data
1098         member.
1099         (read_structure_scope): Combine tests for DW_TAG_member and
1100         DW_TAG_variable.
1101
1102 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1103
1104         * linespec.c (decode_compound): New function.
1105         (decode_line_1): Move code into decode_compound.
1106
1107 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1108
1109         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1110         argument.
1111         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1112         the static block.  See PR gdb/804.
1113
1114 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1115
1116         * symtab.c (lookup_symbol_aux_block): New function.
1117         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1118
1119 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1120
1121         * gdbarch.sh: Dump the predicate function and macro values.
1122         (read): Print error on standard error.
1123         * gdbarch.c: Regenerate.
1124         
1125 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1126
1127         * Makefile.in (mips_tdep_h): Define.
1128         (mips-tdep.o): Add mips_tdep_h to dependency list.
1129         * mips-tdep.h: New file.
1130         * mips-tdep.c (mips-tdep.h): Include.
1131         (enum mips_abi): Move to mips-tdep.h.
1132         (mips_abi): New function.
1133
1134 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1135
1136         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1137
1138 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1139
1140         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1141         function.
1142         (lookup_symbol_aux_minsyms): New function.
1143
1144 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1145
1146         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1147
1148 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1149
1150         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1151         which is an obsolete macro name.
1152
1153 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1154
1155         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1156         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1157
1158 2002-12-03  H.J. Lu  (hjl@gnu.org)
1159
1160         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1161         (create_breakpoints): Make sure the addr_string field is not
1162         NULL.
1163
1164 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1165
1166         * sparc-nat.c (fetch_inferior_registers)
1167         (store_inferior_registers): Add comment on problem of LWP vs
1168         threads.
1169         
1170         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1171         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1172         (lin_lwp_store_registers): Remove.
1173         (init_lin_lwp_ops): Use fetch_inferior_registers
1174         and store_inferior_registers directly.
1175         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1176         (store_inferior_registers): Likewise.
1177         Fix PR gdb/725.
1178
1179 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1180
1181         * frame.h (get_frame_id): Convert to a function.
1182         (null_frame_id, frame_id_p): Declare.
1183         (frame_id_eq, frame_id_inner): Declare.
1184         (frame_id_build): New function.
1185         * frame.c (get_frame_id): Update.  Use null_frame_id.
1186         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1187         frame_id_inner.
1188         (null_frame_id, frame_id_p): Define.
1189         (frame_id_eq, frame_id_inner): Define.
1190         (frame_id_build): New function.
1191         * varobj.c (varobj_create): Update.
1192         (varobj_update): Update.
1193         * valops.c (value_assign): Update.
1194         (new_root_variable): Update.
1195         * infrun.c (save_inferior_status): Update.
1196         * breakpoint.c (watch_command_1): Update.
1197
1198 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1199
1200         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1201         (SNAP2): Likewise.
1202
1203 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1204
1205         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1206         patch.
1207
1208         * PROBLEMS: Mention PR gdb/725.
1209
1210 2002-12-03  Andreas Schwab  <schwab@suse.de>
1211
1212         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1213
1214 2002-12-02  Adam Fedor  <fedor@gnu.org>
1215             Klee Dienes  <kdienes@apple.com>
1216
1217         * objc-lang.c (objc_printstr): Add width arg to match
1218         printstr prototype.
1219         (compare_selectors): Add 'const' to arg types.
1220         (compare_classes): Likewise.
1221         (find_imps): Cast msym pointer to avoid compiler warning.
1222         (print_object_command): Validate the address before
1223         passing it to the print routine.
1224         (find_objc_msgcall_submethod): Change function argument to
1225         return an int.
1226         * objc-lang.h: Add 'extern' to all function declarations.
1227         (value_nsstring): Add declaration.
1228
1229 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1230
1231         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1232         Fixes a build failure on HP/UX.
1233
1234         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1235         failure on HP/UX. 
1236         (hpread_has_name): Advance declaration to avoid a compilation warning.
1237         (pst_syms_count): Add missing variable type. By change, the compiler
1238         was defaulting to int, which seems a good choice. Fixes a compilation
1239         warning.
1240         (pst_syms_size): Likewise.
1241  
1242 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1243
1244         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1245         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1246         later to set the proper gdbarch methods depending on the osabi.
1247         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1248
1249 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1250
1251         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1252         * osabi.c (gdb_osabi_name): Add strings images for the two new
1253         enum values.
1254         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1255
1256 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1257
1258         * MAINTAINERS (Java): Global maintainers are responible for Java.
1259         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1260         part Java maintainers.
1261
1262 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1263
1264         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1265         Fixes a compilation failure on AiX.
1266
1267 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1268
1269         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1270         why aix-thread.o is not listed.
1271
1272 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1273
1274         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1275         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1276         * gdbarch.h, gdbarch.c: Re-generate.
1277         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1278         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1279         * config/pa/tm-hppa.h, frame.h: Update.
1280         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1281         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1282         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1283         * cris-tdep.c, alpha-tdep.c: Update.
1284         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1285         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1286         (get_prev_frame): Ditto.
1287
1288 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1289
1290         * exec.c (xfer_memory): Replace boolean with int.
1291         * p-exp.y: Use 0 instead of false.
1292         * corelow.c (gdb_check_format): Change return type to int from
1293         boolean.
1294         * utils.c: Don't include <curses.h> or <term.h> first.
1295
1296 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1297
1298         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1299         (m68hc11_register_byte): Remove.
1300         (m68hc11_gdbarch_init): Don't set the above.
1301
1302 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1303
1304         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1305         by calling get_selected_frame.
1306         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1307         set_current_frame, create_new_frame, select_frame and
1308         get_current_frame.
1309         * remote-e7000.c (e7000_start_remote): Ditto.
1310         * remote-mips.c (common_open): Ditto
1311         * remote-rdp.c (remote_rdp_open): Ditto.
1312
1313 2002-11-29  Andreas Schwab  <schwab@suse.de>
1314
1315         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1316         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1317         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1318         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1319         read_memory_unsigned_integer instead of read_memory_integer when
1320         dealing with addresses and instruction opcodes.
1321         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1322         (m68k_linux_frame_saved_pc): Likewise.
1323
1324 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1325
1326         * stack.c (selected_frame, select_frame): Move from here ...
1327         * frame.c (selected_frame, select_frame): ... to here.  Include
1328         "language.h".
1329         * Makefile.in (frame.o): Update dependencies.
1330         * frame.c (get_selected_frame): New function.
1331         * frame.h (get_selected_frame): Declare.
1332         (deprecated_selected_frame): Rename selected_frame.
1333         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1334         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1335         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1336         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1337         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1338         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1339         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1340         * z8k-tdep.c, cli/cli-cmds.c: Update.
1341         
1342 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1343
1344         * frame.h (get_selected_block): Add comments.
1345
1346 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1347
1348         * frame.c (pc_notcurrent): New function.
1349         (find_frame_sal): New function.
1350         * frame.h (find_frame_sal): Declare.
1351         (struct symtab_and_line): Add opaque declaration.
1352         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1353         find_pc_line.
1354         (frame_info): Ditto.
1355         * ada-lang.c (find_printable_frame): Ditto.
1356
1357 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1358
1359         * configure.in: Check that the pthdebug library is recent enough
1360         before enabling thread support on native AiX.
1361         * configure: Regenerate.
1362
1363         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1364         from the list of object files as it is now appended by configure
1365         if thread support is enabled.
1366         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1367         if thread support is enabled.
1368
1369 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1370
1371         * stack.c (get_selected_block): In-line get_current_block.
1372         * frame.h (get_current_block): Delete declaration.
1373         * blockframe.c (get_current_block): Delete function.
1374
1375 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1376
1377         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1378         USE_GENERIC_DUMMY_FRAMES.
1379         * gdbarch.h, gdbarch.c: Regenerate.
1380         * valops.c, frame.c: Update.
1381         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1382         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1383         * config/pa/tm-hppa.h, blockframe.c: Update.
1384         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1385         * m68k-tdep.c, alpha-tdep.c: Ditto.
1386
1387         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1388         * mips-tdep.c: Ditto.
1389
1390 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1391
1392         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1393         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1394         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1395         * gdbarch.c, gdbarch.h: Re-generate.
1396         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1397         (CALL_DUMMY_LOCATION): Delete macro definition.
1398         (PC_IN_CALL_DUMMY): Delete macro definitions.
1399         
1400         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1401         default is already generic_pc_in_call_dummy.
1402         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1403         * v850-tdep.c (v850_gdbarch_init): Ditto.
1404         * sh-tdep.c (sh_gdbarch_init): Ditto.
1405         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1406         * mips-tdep.c (mips_gdbarch_init): Ditto.
1407         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1408         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1409         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1410         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1411         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1412         * avr-tdep.c (avr_gdbarch_init): Ditto.
1413         
1414         * arm-tdep.c (arm_gdbarch_init): Do not set
1415         use_generic_dummy_frames, default is already 1.
1416         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1417         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1418         * v850-tdep.c (v850_gdbarch_init): Ditto.
1419         * sh-tdep.c (sh_gdbarch_init): Ditto.
1420         * s390-tdep.c (s390_gdbarch_init): Ditto.
1421         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1422         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1423         * mips-tdep.c (mips_gdbarch_init): Ditto.
1424         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1425         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1426         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1427         * i386-tdep.c (i386_gdbarch_init): Ditto.
1428         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1429         * frv-tdep.c (frv_gdbarch_init): Ditto.
1430         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1431         * cris-tdep.c (cris_gdbarch_init): Ditto.
1432         * avr-tdep.c (avr_gdbarch_init): Ditto.
1433
1434         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1435         call_dummy_location, default is already AT_ENTRY_POINT.
1436         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1437         * v850-tdep.c (v850_gdbarch_init): Ditto.
1438         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1439         * sh-tdep.c (sh_gdbarch_init): Ditto.
1440         * s390-tdep.c (s390_gdbarch_init): Ditto.
1441         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1442         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1443         * mips-tdep.c (mips_gdbarch_init): Ditto.
1444         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1445         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1446         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1447         * i386-tdep.c (i386_gdbarch_init): Ditto.
1448         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1449         * frv-tdep.c (frv_gdbarch_init): Ditto.
1450         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1451         * cris-tdep.c (cris_gdbarch_init): Ditto.
1452         * avr-tdep.c (avr_gdbarch_init): Ditto.
1453         * arm-tdep.c (arm_gdbarch_init): Ditto.
1454         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1455
1456 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1457
1458         * frame.h: Update comments on set_current_frame, create_new_frame,
1459         flush_cached_frames, reinit_frame_cache, select_frame and
1460         selected_frame.
1461         
1462 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1463
1464         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1465         deprecated pc_in_call_dummy function.
1466         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1467         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1468         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1469         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1470         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1471
1472 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1473
1474         * Makefile.in: Remove Tix dependencies.
1475         * acinclude.m4: Ditto.
1476         * aclocal.m4: Ditto.
1477         * configure.in: Ditto.
1478         * configure: Regenerated.
1479         
1480 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1481
1482         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1483         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1484         * gdbarch.c: Re-generate.
1485         
1486 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1487
1488         * config/h8500/tm-h8500.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/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1492         pc_in_call_dummy_at_entry_point.
1493         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1494         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1495         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1496         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1497         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1498         pc_in_call_dummy_on_stack.
1499         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1500         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1501         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1502         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1503         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1504         
1505 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1506
1507         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1508         pc_in_call_dummy_before_text_end
1509         (deprecated_pc_in_call_dummy_after_text_end): Rename
1510         pc_in_call_dummy_after_text_end.
1511         (deprecated_pc_in_call_dummy_on_stack): Rename
1512         pc_in_call_dummy_on_stack.
1513         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1514         pc_in_call_dummy_at_entry_point.
1515         * m68k-tdep.c (m68k_gdbarch_init): Update.
1516         * s390-tdep.c (s390_gdbarch_init): Update.
1517         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1518         * vax-tdep.c (vax_gdbarch_init): Update.
1519         * sparc-tdep.c (sparc_gdbarch_init): Update.
1520         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1521         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1522         * i386-tdep.c (i386_gdbarch_init): Update.
1523         * frv-tdep.c (frv_gdbarch_init): Update.
1524         * cris-tdep.c (cris_gdbarch_init): Update.
1525         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1526         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1527         (deprecated_pc_in_call_dummy_after_text_end)
1528         (deprecated_pc_in_call_dummy_on_stack)
1529         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1530         * alpha-tdep.c (alpha_gdbarch_init): Update.
1531
1532 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1533
1534         * acconfig.h (HAVE_PREAD64): Add.
1535         * configure.in: Check for pread64.
1536         * config.in: Regenerated.
1537         * configure: Regenerated.
1538         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1539         * linux-proc.c (linux_proc_xfer_memory): New function.
1540         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1541
1542 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1543
1544         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1545         pdi's with no name.
1546
1547 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1548
1549         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1550         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1551
1552 2002-11-25  Jim Blandy  <jimb@redhat.com>
1553
1554         * symfile.c (init_objfile_sect_indices): New function.
1555         (default_symfile_offsets): Move the section-index-initializing
1556         stuff into init_objfile_sect_indices, and call that.
1557
1558         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1559         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1560
1561         * symfile.c (syms_from_objfile): Adjust indentation.
1562
1563         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1564         || info_verbose isn't true.
1565
1566 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1567
1568         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1569         default to get_frame_base.
1570         * gdbarch.h, gdbarch.c: Regenerate.
1571         * arch-utils.c (default_frame_address): Delete function.
1572         * arch-utils.h (default_frame_address): Delete declaration
1573
1574 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1575
1576         * varobj.c (find_frame_addr_in_frame_chain):
1577         Use get_frame_base instead of FRAME_FP,
1578         obvious fix.
1579
1580 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1581
1582         * frame.h (FRAME_FP): Delete macro.
1583         (get_frame_base): New function declaration.
1584         * frame.c (get_frame_base): New function.
1585         (get_frame_id): Use ->frame.
1586         (frame_find_by_id): Rewrite to use get_frame_id.
1587         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1588         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1589         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1590         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1591         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1592         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1593         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1594
1595 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1596
1597         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1598
1599 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1600
1601         * frame.c (set_unwind_by_pc): Revert change below, use
1602         PC_IN_CALL_DUMMY.
1603         (get_prev_frame): Ditto.
1604
1605 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1606
1607         * dummy-frame.c (pc_in_dummy_frame): New function.
1608         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1609         (find_dummy_frame): Update comment.
1610         (generic_pop_current_frame): Use get_frame_type.
1611         * dummy-frame.h (pc_in_dummy_frame): Declare.
1612         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1613         (create_new_frame): Use pc_in_dummy_frame.
1614         (get_prev_frame): Use pc_in_dummy_frame.
1615         (frame_saved_regs_register_unwind): Use get_prev_frame.
1616         (deprecated_generic_get_saved_register): Use get_prev_frame.
1617
1618 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1619
1620         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1621         from here ...
1622         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1623         (varobj_create): Note that frame ID should be used.
1624         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1625
1626 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1627
1628         * breakpoint.c: Include "gdb_assert.h".
1629         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1630         not being used.
1631         * Makefile.in (breakpoint.o): Update dependencies.
1632         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1633         deprecated_frame_in_dummy.
1634         * stack.c (print_frame_info_base): Ditto.
1635         (frame_info): Ditto.
1636         (print_frame_info_base): Ditto.  Delete dead code.
1637         
1638 2002-11-23  Andreas Schwab  <schwab@suse.de>
1639
1640         * Makefile.in (m68k_tdep_h): Define.
1641         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1642         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1643         * m68k-tdep.c: Move register number enum ...
1644         * m68k-tdep.h: ... to this new file and rename the constants from
1645         E_* to M68K_*.  All uses changed.
1646         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1647         * abug-rom.c: Include "m68k-tdep.h".  Use
1648         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1649         * cpu32bug-rom.c: Likewise.
1650         * dbug-rom.c: Likewise.
1651         * m68k-tdep.c: Likewise.
1652         * m68klinux-nat.c: Likewise.
1653         * remote-est.c: Likewise.
1654         * rom68k-rom.c: Likewise.
1655         * config/m68k/tm-linux.h: Likewise.
1656
1657 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1658
1659         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1660         dummy frame initialization code.
1661         * mips-tdep.c (mips_gdbarch_init): Ditto.
1662
1663 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1664
1665         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1666         attach will hang.
1667
1668 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1669
1670         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1671         to default_frame_address.
1672         * gdbarch.h, gdbarch.c: Re-generate.
1673
1674         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1675         or frame_locals_address to default_frame_address.
1676         * m68k-tdep.c (m68k_gdbarch_init): Update.
1677         * i386-tdep.c (i386_gdbarch_init): Update.
1678         * frv-tdep.c (frv_gdbarch_init): Update.
1679         * sh-tdep.c (sh_gdbarch_init): Update.
1680         * v850-tdep.c (v850_gdbarch_init): Update.
1681         * sparc-tdep.c (sparc_gdbarch_init): Update.
1682         * mips-tdep.c (mips_gdbarch_init): Update.
1683         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1684         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1685         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1686
1687         * cris-tdep.c (cris_frame_args_address): Delete function.
1688         (cris_frame_locals_address): Delete function.
1689         (cris_gdbarch_init): Do not set frame_args_address or
1690         frame_locals_address.
1691
1692 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1693
1694         * thread-db.c (thread_db_load): Tell the user what's going on
1695         if dlopen fails on libthread_db.
1696
1697 2002-11-23  Andreas Schwab  <schwab@suse.de>
1698
1699         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1700         invariant return values.
1701
1702 2002-11-22  Andreas Schwab  <schwab@suse.de>
1703
1704         * valops.c (value_slice): Move declaration of `offset' to avoid
1705         warning.
1706
1707 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1708
1709         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1710         (struct so_stuff): Add end_addr field.
1711         (register_loaded_dll): Calculate and store end address of loaded dll.
1712         (solib_address): New function.
1713         (child_solib_loaded_library_pathname): Pass carefully constructed
1714         section info to safe_symbol_file_add rather than ignoring it.
1715         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1716         DLL is loaded.
1717         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1718         (child_create_inferior): Fix a compiler warning.
1719         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1720         (solib_address): Declare new function.
1721
1722 2002-11-22  Andreas Schwab  <schwab@suse.de>
1723
1724         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1725         and FPS registers.
1726
1727 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1728
1729         * maint.c (_initialize_maint_cmds): Fix typo.  From
1730         Francesco Potorti` <pot@gnu.org>.
1731
1732 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1733
1734         * mips-tdep.c (mips_dump_tdep): Delete references to
1735         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1736         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1737         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1738         * printcmd.c (build_address_symbolic): Delete calls to
1739         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1740         (address_info): Ditto.
1741         Fix PR gdb/773.
1742         
1743 2002-11-19  Klee Dienes  <kdienes@apple.com>
1744             Adam Fedor  <fedor@gnu.org>
1745
1746         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1747         the ability to explicitly specify the quote characters and word
1748         break characters; if NULL is specified for either, use the old
1749         behavior of using the characters used by the completer.
1750         (skip_chars): New function.  Convenience wrapper around
1751         skip_quoted_chars to provide the original skip_chars behavior.
1752         * completer.h (skip_quoted_chars): Add prototype.
1753
1754 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1755
1756         Problems reported by Paul Eggert.
1757         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1758
1759 2002-11-19  Andreas Schwab  <schwab@suse.de>
1760
1761         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1762         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1763         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1764         (m68k_linux_frame_saved_pc): Move to ...
1765         * m68klinux-tdep.c: ... here.  New file.
1766         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1767         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1768
1769 2002-11-19  Adam Fedor  <fedor@gnu.org>
1770
1771         * objc-exp.y: Revert to old skip_quoted usage.
1772
1773 2002-11-19  Adam Fedor  <fedor@gnu.org>
1774
1775         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1776         (objc_lang_h): Define.
1777         (YYFILES): Add objc-exp.tab.c.
1778         (local-maintainer-clean): Remove objc-exp.tab.c.
1779         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1780         
1781 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1782
1783         * p-exp.y (typecast rule): Add automatic dereference of
1784         pascal classes if needed.
1785         (THIS): Set current_type.
1786         Automatically dereference pascal classes. 
1787         (typebase rule): Add ^typebase recognition.
1788
1789 2002-11-18  Adam Fedor  <fedor@gnu.org>
1790
1791         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1792         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1793         (op_name): Handle OP_OBJC_SELF.
1794         * Makefile.in (expprint.o): Add additional depends.
1795
1796 2002-11-18  Adam Fedor  <fedor@gnu.org>
1797
1798         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1799         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1800         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1801         * objc-exp.y: Likewise. 
1802
1803 2002-11-18  Adam Fedor  <fedor@gnu.org>
1804
1805         * gdb/parser-defs.h: (struct objc_class_str): New structure
1806         for parsing ObjC classes.
1807
1808 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1809
1810         * stack.c (frame_relative_level): Copy function from here ...
1811         * frame.c (frame_relative_level): ...to here.
1812
1813 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1814
1815         * frame.h (enum frame_type): Define.
1816         (get_frame_type): Declare.
1817         (struct frame_info): Add field `type'.  Delete field
1818         signal_handler_caller.
1819         (deprecated_set_frame_signal_handler_caller): Declare.
1820         * frame.c (get_frame_type): New function.
1821         (deprecated_set_frame_type): New function.
1822         (create_new_frame): Set the frame's type.
1823         (get_prev_frame): Similar.
1824         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1825         * s390-tdep.c: Ditto.
1826         * m68klinux-nat.c: Ditto.
1827         * ns32k-tdep.c: Ditto.
1828         * x86-64-linux-tdep.c: Ditto.
1829         * vax-tdep.c: Ditto.
1830         * rs6000-tdep.c: Ditto.
1831         * ppc-linux-tdep.c: Ditto.
1832         * i386-interix-tdep.c: Ditto.
1833         * mips-tdep.c: Ditto.
1834         * m68k-tdep.c: Ditto.
1835         * hppa-tdep.c: Ditto.
1836         * ia64-tdep.c: Ditto.
1837         * cris-tdep.c: Ditto.
1838         * arm-tdep.c: Ditto.
1839         * alpha-tdep.c: Ditto.
1840         * i386-tdep.c: Ditto.
1841         * stack.c: Ditto.
1842         * ada-lang.c: Ditto.
1843         * blockframe.c: Update.
1844         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1845         deprecated_set_frame_type instead of signal_handler_caller.
1846         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1847         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1848         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1849
1850 2002-11-18   Klee Dienes  <kdienes@apple.com>
1851
1852         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1853
1854 2002-11-18  Klee Dienes  <kdienes@apple.com>
1855
1856         * buildsym.c (pop_context): Add comment.
1857         
1858 2002-11-18  Klee Dienes  <kdienes@apple.com>
1859
1860         * buildsym.h (pop_context): Convert to function, defined in
1861         buildsym.c.
1862         * buildsym.c: Include gdb_assert.h.
1863         (pop_context): Implement as C function.  Add check for stack
1864         underflow.
1865         * dbxread.c (process_one_symbol): Complain and stop processing
1866         that symbol if we are already at the top of the context stack for
1867         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1868         when processing N_RBRAC.
1869
1870 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1871
1872         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1873         define.
1874         (struct target_waitstatus): Add opaque definition.
1875         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1876         * exec.c (init_exec_ops): Likewise.
1877         * fork-child.c (clone_and_follow_inferior): Remove.
1878         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1879         * inferior.h (clone_and_follow_inferior): Remove prototype.
1880         * infrun.c (follow_fork_mode_both): Remove.
1881         (follow_fork_mode_kind_names): Remove commented out "both".
1882         (follow_inferior_fork): Remove follow_fork_mode_both support.
1883         * inftarg.c (child_clone_and_follow_inferior): Remove.
1884         (child_post_follow_inferior_by_clone): Remove.
1885         (init_child_ops): Don't set to_clone_and_follow_inferior
1886         or to_post_follow_inferior_by_clone.
1887         * target.c (default_clone_and_follow_inferior): Remove.
1888         (cleanup_target): Don't set to_clone_and_follow_inferior
1889         or to_post_follow_inferior_by_clone.
1890         (find_default_clone_and_follow_inferior): Remove.
1891         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1892         (debug_to_clone_and_follow_inferior): Remove.
1893         (debug_to_post_follow_inferior_by_clone): Remove.
1894         (setup_target_debug): Don't set to_clone_and_follow_inferior
1895         or to_post_follow_inferior_by_clone.
1896         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1897         and to_post_follow_inferior_by_clone.
1898         (child_clone_and_follow_inferior): Remove prototype.
1899         (child_post_follow_inferior_by_clone): Remove prototype.
1900         (target_clone_and_follow_inferior): Remove macro.
1901         (target_post_follow_inferior_by_clone): Remove macro.
1902         (find_default_clone_and_follow_inferior): Remove prototype.
1903
1904 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1905
1906         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1907         inferior_has_vforked, and inferior_has_execd instead of
1908         target_has_forked, target_has_vforked, and target_has_execd.
1909         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1910         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1911         (CHILD_WAIT): Define.
1912         (child_wait): Add prototype.
1913         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1914         Add prototype.
1915         (hpux_has_vforked): Likewise, from child_has_vforked.
1916         (hpux_has_execd): Likewise, from child_has_execd.
1917         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1918         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1919         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1920         and hpux_has_syscall_event instead of the target hooks.
1921         * infrun.c (inferior_has_forked, inferior_has_vforked)
1922         (inferior_has_execd): New functions.
1923         * inftarg.c (not_same_real_pid): Remove.
1924         (child_wait): Remove references to not_same_real_pid,
1925         target_has_forked, target_has_vforked, target_has_execd,
1926         and target_has_syscall_event.
1927         (child_has_forked, child_has_vforked, child_has_execd)
1928         (child_has_syscall_event): Remove.
1929         (init_child_ops): Remove references to child_has_forked,
1930         child_has_vforked, child_has_execd, and child_has_syscall_event.
1931         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1932         (hpux_has_vforked): Likewise, from child_has_vforked.
1933         (hpux_has_execd): Likewise, from child_has_execd.
1934         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1935         * target.c (cleanup_target): Remove references to
1936         to_has_forked, to_has_vforked, to_has_execd, and
1937         to_has_syscall_event.
1938         (update_current_target): Likewise.
1939         (setup_target_debug): Likewise.
1940         (debug_to_has_forked): Remove.
1941         (debug_to_has_vforked): Remove.
1942         (debug_to_has_execd): Remove.
1943         (debug_to_has_syscall_event): Remove.
1944         * target.h (struct target_ops): Remove to_has_forked.
1945         to_has_vforked, to_has_execd, and to_has_syscall_event.
1946         (child_has_forked, child_has_vforked, child_has_execd)
1947         (child_has_syscall_event): Remove prototypes.
1948         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1949         prototypes.
1950         (target_has_forked, target_has_vforked, target_has_execd)
1951         (target_has_syscall_event): Remove macros.
1952
1953 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1954
1955         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1956         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1957         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1958         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1959         * target.c (cleanup_target): Remove reference to
1960         to_can_follow_vfork_prior_to_exec.
1961         (update_current_target): Likewise.
1962         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1963         (setup_target_debug): Remove reference to
1964         to_can_follow_vfork_prior_to_exec.
1965         * target.h (struct target_ops): Remove
1966         to_can_follow_vfork_prior_to_exec.
1967         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1968         (target_can_follow_vfork_prior_to_exec): Remove definition.
1969         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1970         define.
1971         * infrun.c (follow_vfork_when_exec): Remove.
1972         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1973         (follow_exec): Likewise.
1974         (handle_inferior_event): Likewise.
1975         (keep_going): Likewise.
1976
1977 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1978
1979         * frame.c (generic_unwind_get_saved_register): Make static.
1980         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1981         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1982         defaults to generic_unwind_get_saved_register.
1983         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1984         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1985         * frv-tdep.c (frv_gdbarch_init): Ditto.
1986         * i386-tdep.c (i386_gdbarch_init): Ditto.
1987         * s390-tdep.c (s390_gdbarch_init): Ditto.
1988         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1989         * v850-tdep.c (v850_gdbarch_init): Ditto.
1990         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1991         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1992         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1993
1994 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1995
1996         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1997         i386-tdep.c.
1998
1999 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2000
2001         * frame.h (sigtramp_saved_pc): Delete declaration.
2002         * blockframe.c (sigtramp_saved_pc): Delete function.
2003         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2004         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2005         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2006         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2007
2008 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2009
2010         * frame.c (frame_pc_unwind): New function.
2011         (frame_saved_regs_pc_unwind): New function.
2012         (frame_register_unwind): Pass unwind_cache instead of
2013         register_unwind_cache.
2014         (set_unwind_by_pc): Add unwind_pc parameter, set.
2015         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2016         (get_prev_frame): Ditto.
2017         * frame.h (frame_pc_unwind_ftype): Declare.
2018         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2019         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2020         (frame_pc_unwind): Declare.
2021         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2022         (struct dummy_frame): Add comment mentioning that values are for
2023         previous frame.
2024         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2025         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2026         (generic_file_frame_chain_valid): Ditto.
2027         * stack.c (frame_info): Ditto.
2028
2029 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2030
2031         * linespec.c (locate_first_half): New function.
2032         (decode_line_1): Move code into locate_first_half.
2033
2034 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2035
2036         * complaints.h: Add comment explaining how to eliminate a
2037         deprecated_complain call.
2038         * complaints.h: Fix spelling errors.
2039
2040 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2041
2042         * printcmd.c: Remove #include "disasm.h".
2043
2044 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2045
2046         * frame.h: Move the most relevant interface functions to the start
2047         of the file.
2048
2049 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2050
2051         * regcache.h (deprecated_registers): Rename registers.
2052         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2053         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2054         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2055         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2056         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2057         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2058         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2059         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2060         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2061         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2062         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2063         * v850ice.c: Update.
2064
2065 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2066
2067         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2068         NULL buffer.
2069
2070 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2071
2072         * regcache.h (deprecated_read_register_bytes): Rename
2073         read_register_bytes.
2074         (deprecated_write_register_bytes): Rename write_register_bytes.
2075         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2076         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2077         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2078         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2079         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2080         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2081         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2082         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2083         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2084         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2085         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2086         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2087         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2088         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2089
2090 2002-11-13  Jim Blandy  <jimb@redhat.com>
2091
2092         * findvar.c (read_var_value): Doc fix.
2093
2094 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2095
2096         * regcache.c (struct regcache): Replace passthough_p with
2097         readonly_p.
2098         (regcache_xmalloc): Initialize readonly_p.
2099         (build_regcache): Initialize readonly_p.
2100         (regcache_save): New function.
2101         (regcache_restore): New function.
2102         (regcache_cpy): Re-implement using regcache_save and
2103         regcache_restore.
2104         (regcache_raw_read): Update.
2105         (regcache_cooked_read): When a read-only cache, checked for cached
2106         pseudo register values.
2107         (regcache_raw_write): Assert that the cache is not read-only.
2108         Remove code handling a non-passthrough cache.
2109         * regcache.h (regcache_save): Declare.
2110         (regcache_restore): Declare.
2111
2112 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2113
2114         * regcache.c (struct regcache_descr): Add fields
2115         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2116         (init_legacy_regcache_descr): Compute the size of a cooked
2117         register cache and then assign that to sizeof_raw_registers.  Set
2118         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2119         (init_legacy_regcache_descr): Ditto.
2120
2121 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2122
2123         * regcache.c (register_buffer): Move to near start of file, update
2124         description.
2125         (regcache_raw_read): Use.
2126         (regcache_raw_write): Use.
2127         (struct regcache): Rename raw_registers to registers and
2128         raw_register_valid_p to register_valid_p.
2129         (regcache_xmalloc): Update.
2130         (regcache_xfree): Update.
2131         (register_buffer): Update.
2132         (regcache_cpy): Update.
2133         (regcache_cpy_no_passthrough): Update.
2134         (regcache_valid_p): Update.
2135         (deprecated_grub_regcache_for_registers): Update.
2136         (deprecated_grub_regcache_for_register_valid): Update.
2137         (set_register_cached): Update.
2138         (regcache_raw_write): Update.
2139
2140 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2141
2142         * p-exp.y (name_not_typename): Use copy_name to
2143         set current_type variable for fields of THIS.
2144
2145 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2146
2147         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2148         * monitor.c (init_base_monitor_ops): Likewise.
2149         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2150         * remote-array.c (init_array_ops): Likewise.
2151         * remote-e7000.c (init_e7000_ops): Likewise.
2152         * remote-es.c (init_es1800_ops): Likewise.
2153         (init_es1800_child_ops): Likewise.
2154         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2155         * remote-sim.c (init_gdbsim_ops): Likewise.
2156         * remote-st.c (init_st2000_ops): Likewise.
2157         * sol-thread.c (init_sol_core_ops): Likewise.
2158         (init_sol_thread_ops): Likewise.
2159         * v850ice.c (init_850ice_ops): Likewise.
2160         * win32-nat.c (init_child_ops): Likewise.
2161         * wince.c (init_child_ops): Likewise.
2162
2163 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2164
2165         * utils.c (gdb_realpath): Make rp a constant pointer.
2166
2167 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2168
2169         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2170         a constant buffer; cannonicalize_file_name(); realpath() with a
2171         pathconf() defined buffer, xstrdup().
2172
2173 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2174
2175         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2176         to hang2.C; hang3.c to hang3.C.
2177
2178 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2179
2180         * findvar.c (read_var_value): Reenable TLS code.
2181
2182 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2183             Jim Blandy  <jimb@redhat.com>
2184         
2185         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2186         * target.c (update_current_target): Add
2187         to_get_thread_local_address.
2188         * target.h (to_get_thread_local_address): Export.
2189         (target_get_thread_local_address): Define.
2190         (target_get_thread_local_address_p): Define.
2191         * thread-db.c: Include solib-svr4.h.
2192         (td_thr_tls_get_addr_p): Define.
2193         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2194         (thread_db_get_thread_local_address): New function.
2195         (init_thread_db_ops): Initialize to_get_thread_local_address.
2196         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2197         * configure: Regenerate.
2198         * config.in: Regenerate.
2199
2200 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2201
2202         * linespec.c (set_flags): New function.
2203         (decode_line_1): Move code into set_flags.
2204
2205 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2206
2207         * linespec.c (decode_line_1): Move chunks of code to separate
2208         functions.
2209         (initialize_defaults): New function.
2210         (decode_indirect): New function.
2211
2212 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2213
2214         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2215         instead of void_code_ptr.
2216         (sigtramp_saved_pc): Ditto.
2217
2218         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2219         i386_fp_regnum_p.
2220
2221 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2222
2223         * gdbtypes.h (struct main_type): Move artificial flag out of
2224         loc.  New member of ``struct field'' named static_kind.  Reduce
2225         overloaded meaning of bitsize.
2226         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2227         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2228         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2229
2230         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2231         new fields.
2232         (template_to_fixed_record_type, template_to_static_fixed_type)
2233         (to_record_with_fixed_variant_part): Likewise.
2234         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2235         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2236         * dwarfread.c (struct_type, enum_type): Likewise.
2237         * hpread.c (hpread_read_enum_type)
2238         (hpread_read_function_type, hpread_read_doc_function_type)
2239         (hpread_read_struct_type): Likewise.
2240         * mdebugread.c (parse_symbol): Likewise.
2241
2242 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2243
2244         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2245         * stack.c (print_frame_info_base): Update.
2246         (print_frame_info_base, frame_info): Update.
2247         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2248         (sparc_frame_saved_pc): Update.
2249         * ada-lang.c (find_printable_frame): Update.
2250         * breakpoint.c (deprecated_frame_in_dummy): Update.
2251         
2252 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2253
2254         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2255         defined.
2256         (regmap): Extend to cover all registers.
2257         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2258         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2259         definitions.
2260         (fetch_register, sore_register): Simplify.
2261         (old_fetch_inferior_registers, old_store_inferior_registers):
2262         Remove functions.
2263         (cannot_fetch_register, cannot_store_register): Change
2264         implementation to use regmap array to decide which registers
2265         cannot be fetched/stored.  This removes $orig_eax from the
2266         registers that cannot be fetched/stored.
2267         (fetch_inferior_registers): Call fetch_register directly instead
2268         of calling old_fetch_inferior_registers.
2269         (store_inferior_registers): Call store_register directly instead
2270         of calling old_store_inferior_registers.
2271         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2272         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2273         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2274
2275 2002-11-09  Klee Dienes  <kdienes@apple.com>
2276
2277         * i387-tdep.c (i387_supply_register): When called with NULL as a
2278         buffer, mark the register as not provided (to mirror the behavior
2279         of supply_register).
2280         (i387_supply_fxsave): Ditto.
2281         (i387_supply_fsave): Ditto (inherits the behavior from
2282         i387_supply_register).
2283
2284 2002-11-09  Klee Dienes  <kdienes@apple.com>
2285
2286         * blockframe.c (sigtramp_saved_pc): Use
2287         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2288         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2289         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2290         
2291 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * frame.c (get_prev_frame): Test prev_p to identify a previously
2294         unwound frame.  Initialize prev_p.
2295         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2296         comment.
2297
2298 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2299
2300         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2301         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2302         more comments.  Zap dead code.
2303
2304 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2305
2306         * infcmd.c (print_vector_info, print_float_info): Move code that
2307         checks whether the target has any registers and whether there is a
2308         selected frame up, such that it is also used if a target provides
2309         multi-arch definitions of these functions.
2310
2311 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2312
2313         * Makefile.in (DESTDIR): Define.
2314         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2315         prefix.
2316
2317         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2318         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2319
2320 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2321
2322         * i386-linux-tdep.c: Include "reggroups.h".
2323         (i386_linux_register_reggroup_p): New function.
2324         (i386_linux_init_abi): Set register_reggroup_p to
2325         i386_linux_register_reggroup_p.
2326         * i386-tdep.h (i386_register_reggroup_p): Declare.
2327         * i386-tdep.c: Include "reggroups.h".
2328         (i386_init_reggroups): New function.
2329         (i386_add_reggroups): New function.
2330         (i386_register_reggroup_p): New function.
2331         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2332         (_initialize_i386_tdep): Call i386_init_reggroups.
2333         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2334         specific reggroups.
2335
2336 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2337
2338         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2339         request that's available in *BSD.
2340
2341         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2342
2343         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2344         FDOFF_REGNUM.
2345
2346 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2347
2348         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2349         * dummy-frame.c (find_dummy_frame): Rename
2350         generic_find_dummy_frame, make static.  Return the dummy frame
2351         instead of the regcache.
2352         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2353         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2354         (dummy_frame_register_unwind): Rename
2355         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2356         * dummy-frame.h (dummy_frame_register_unwind): Rename
2357         generic_call_dummy_register_unwind.
2358
2359 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2360
2361         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2362         except the inclusion of "i386/tm-i386.h", to...
2363         * config/i386/nm-i386v42mp.h: ...here.
2364         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2365
2366 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2367
2368         * Makefile.in (frame.o): Update dependencies.
2369         * blockframe.c (current_frame, frame_obstack_alloc)
2370         (frame_saved_regs_zalloc, get_current_frame)
2371         (set_current_frame, create_new_frame)
2372         (set_unwind_by_pc, get_next_frame)
2373         (flush_cached_frames, reinit_frame_cache)
2374         (frame_saved_regs_register_unwind)
2375         (deprecated_generic_get_saved_register)
2376         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2377         (_initialize_blockframe): Move frame code from here...
2378         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2379         "annotate.h" and "dummy-frame.h".
2380         (_initialize_frame): New function.
2381
2382 2002-11-08  Jim Blandy  <jimb@redhat.com>
2383
2384         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2385         when we finish a function a context.
2386         * buildsym.h (outermost_context_p): New macro.
2387         (Bug analyzed by David Edelsohn.)
2388
2389 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2390
2391         * blockframe.c: Include "dummy-frame.h".
2392         (struct dummy_frame, dummy_frame_stack)
2393         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2394         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2395         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2396         (generic_save_call_dummy_addr, generic_pop_current_frame)
2397         (generic_pop_dummy_frame, generic_fix_call_dummy)
2398         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2399         dummy frame code from here...
2400         * dummy-frame.c: ...to here.  New file.
2401         * dummy-frame.h: New file.
2402         (generic_call_dummy_register_unwind): Declare.
2403         (generic_find_dummy_frame): Declare.
2404         * Makefile.in (SFILES): Add dummy-frame.c.
2405         (dummy-frame.o): Specify dependencies.
2406         (dummy_frame_h): Define.
2407         (COMMON_OBS): Add dummy-frame.o.
2408         (blockframe.o): Update dependencies.
2409
2410 2002-11-08  Jim Blandy  <jimb@redhat.com>
2411
2412         * dwarf2read.c (read_func_scope): Restore local_symbols and
2413         param_symbols after we finish the function context.  (Based on a
2414         patch from David Edelsohn.)
2415
2416 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2417
2418         * linespec.c (symbol_found): New function.
2419         (minsym_found): New function.
2420         (decode_line_1): Separate out some code into separate functions.
2421
2422 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2423
2424         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2425         the benefit of the interix target.
2426         * i386-tdep.h (i386_frameless_signal_p): Declare.
2427
2428 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2429
2430         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2431         declaration that snuck in from change below.
2432
2433 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2434
2435         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2436         all callers.
2437         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2438         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2439         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2440         (i386_mxcsr_regnum_p): new function.  Use instead of
2441         MXCSR_REGNUM_P.
2442         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2443         (i386_sse_regnum_p): Declare.
2444         (i386_mxcsr_regnum_p): Declare.
2445         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2446         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2447         (IS_FP_REGNUM): Update definition.
2448         (IS_FPU_CTRL_REGNUM): Update definition..
2449         (IS_SSE_REGNUM): Update definition..
2450         * i386v-nat.c (register_u_addr): Update.
2451         * go32-nat.c (fetch_register): Update.
2452         (store_register): Update.
2453
2454 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2455
2456         Preparation work to convert the hppa targets to multiarch partial.
2457
2458         * hppa-tdep.c: Add new functions replacing macro bodies from
2459         config/pa/tm-hppa.h. These function will be used to initialize
2460         the gdbarch structure. Import some comments from tm-hppa.h,
2461         and place them where appropriate, to avoid loosing them when
2462         we cleanup this file.
2463         (hppa_reg_struct_has_addr): New function.
2464         (hppa_inner_than): New function.
2465         (hppa_stack_align): New function.
2466         (hppa_pc_requires_run_before_use): New function.
2467         (hppa_instruction_nullified): New function.
2468         (hppa_register_byte): New function.
2469         (hppa_register_virtual_type): New function.
2470         (hppa_store_struct_return): New function.
2471         (hppa_cannot_store_register): New function.
2472         (hppa_frame_args_address): New function.
2473         (hppa_frame_locals_address): New function.
2474         (hppa_smash_text_address): New function.
2475         (hppa_coerce_float_to_double): New function. Requires the inclusion
2476         of "language.h".
2477
2478         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2479
2480         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2481         gdbarch-eligible macro to a call to the new associated function
2482         created in hppa-tdep.c.
2483         (INNER_THAN): Likewise.
2484         (STACK_ALIGN): Likewise.
2485         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2486         (INSTRUCTION_NULLIFIED): Likewise.
2487         (REGISTER_BYTE): Likewise.
2488         (REGISTER_VIRTUAL_TYPE): Likewise.
2489         (STORE_STRUCT_RETURN): Likewise.
2490         (CANNOT_STORE_REGISTER): Likewise.
2491         (FRAME_ARGS_ADDRESS): Likewise.
2492         (FRAME_LOCALS_ADDRESS): Likewise.
2493         (SMASH_TEXT_ADDRESS): Likewise.
2494         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2495         (ABOUT_TO_RETURN): Delete, as no longer used.
2496
2497 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2498
2499         * printcmd.c (disassemble_command): Remove obsolete function.
2500         (_initialize_printcmd): Do not create disassemble command here.
2501         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2502         disassemble command.
2503         (init_cli_cmds): Create disassemble command here instead.
2504
2505 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2506
2507         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2508
2509 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2510
2511         * regcache.h (regcache_cooked_read_using_offset_hack)
2512         (regcache_cooked_write_using_offset_hack): Delete declarations.
2513         (register_changed): Delete declaration.
2514         * regcache.c (regcache_cooked_read_using_offset_hack)
2515         (regcache_cooked_write_using_offset_hack): Delete functions.
2516         (cooked_xfer_using_offset_hack): Delete function.
2517         (register_changed): Delete function.
2518
2519 2002-11-07  Jim Blandy  <jimb@redhat.com>
2520
2521         * macroscope.c: #include "complaints.h".
2522         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2523         but not in the macro table.
2524         * Makefile.in (macroscope.o): Record dependency.
2525
2526 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2527
2528         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2529
2530 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2531
2532         * regcache.c (deprecated_registers_fetched): Update.
2533         * regcache.h (deprecated_registers_fetched): Rename
2534         registers_fetched.
2535         * remote-vxsparc.c (vx_read_register): Update.
2536         * remote-vxmips.c (vx_read_register): Update.
2537         * remote-vx68.c (vx_read_register): Update.
2538         * irix5-nat.c (fetch_core_registers): Update.
2539         * mipsm3-nat.c (fetch_inferior_registers): Update.
2540         * sun3-nat.c (fetch_inferior_registers): Update.
2541         * symm-nat.c (fetch_inferior_registers): Update.
2542         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2543         (fetch_core_registers): Update.
2544         (fetch_kcore_registers): Update.
2545         * mips-nat.c (fetch_inferior_registers): Update.
2546         * corelow.c (get_core_registers): Update.
2547         * a68v-nat.c (fetch_inferior_registers): Update.
2548
2549 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2550
2551         Put in place the framework necessary for multiarching the hppa targets.
2552         * hppa-tdep.c (hppa_gdbarch_init): New function.
2553         (hppa_dump_tdep): New function.
2554         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2555         tdep structure dumper.
2556         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2557         until the multi-arching conversion has partially been completed.
2558
2559 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2560
2561         * valops.c (value_assign): Merge lval_register case into
2562         lval_reg_frame_relative.  Use frame_register and
2563         regcache_cooked_write instead of get_saved_register and
2564         write_register_bytes.  After flushing the register cache, try to
2565         re-select the selected frame.
2566
2567 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2568
2569         * regcache.h (deprecated_register_valid): Rename register_valid.
2570         * regcache.c: Update.
2571         * ia64-aix-nat.c: Update.
2572         * i386gnu-nat.c: Update.
2573         * alpha-nat.c: Update.
2574         * sparc-nat.c: Update.
2575         * lynx-nat.c: Update.
2576         * remote-mips.c: Update.
2577
2578 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2579
2580         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2581         to end of file, to be more consistent with the pratice followed
2582         by other targets.
2583
2584 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2585
2586         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2587         (print_float_info): Print registers in float_reggroup.
2588         (print_vector_info): Print registers in vector_reggroup.
2589         (default_print_registers_info): When all, print registers in
2590         all_reggroup.  Otherwize, print registers in general_reggroup.
2591         (registers_info): Rewrite.  Add support for register groups.
2592         Eliminate a goto.
2593
2594 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2595
2596         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2597         ages.
2598         (symtab_symbol_info): Remove eons old ifdeffed out code.
2599         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2600         command.
2601
2602 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2603
2604         * c-exp.y: Add missing semi-colons.
2605         * f-exp.y: Add missing semi-colons.
2606         * m2-exp.y: Add missing semi-colons.
2607         * p-exp.y: Add missing semi-colons.
2608         Add empty action to start rule to avoid a type clash error when
2609         building with bison >= 1.50.
2610
2611 2002-11-06  Jim Blandy  <jimb@redhat.com>
2612
2613         * macrotab.h (struct macro_source_file): Doc fix.
2614
2615 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2616
2617         * varobj.c (child_exists, cplus_number_of_children): Change
2618         STREQ macro references to strcmp.
2619         (cplus_name_of_child): Change code to handle the fact that
2620         fields are not necessarily contiguous with regards to their 
2621         access control. This is a fix for PR gdb/792.
2622
2623 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2624
2625         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2626         * gdbarch.h, gdbarch.c: Regnerate.
2627         * frame.h (frame_register): Declare.
2628         * frame.c (frame_register): New function.
2629         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2630         GET_SAVED_REGISTER, otherwize call
2631         generic_unwind_get_saved_register.
2632         (frame_register_read): Use frame_register instead of
2633         get_saved_register.
2634
2635 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2636         
2637         From Jim Ingham  <jingham@apple.com>:
2638         * event-top.c (gdb_disable_readline): New function.
2639         (_initialize_event_loop): Move comment.
2640
2641 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2642
2643         * event-loop.c (start_event_loop): Add comment.
2644         Update copyright.
2645
2646 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2647
2648         * infcmd.c (default_print_registers_info): Do not call
2649         PRINT_REGISTER_HOOK.
2650
2651 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2652
2653         * sparc-tdep.c (sparc_print_register_hook): Make static.
2654         (sparc_print_registers_info): New function.
2655         (sparc_do_registers_info): New function.
2656         (sparclet_print_registers_info): New function.
2657         (sparclet_do_registers_info): New function.
2658         (do_sparc_print_registers_info): New function.
2659         (sparc_print_registers): New static function, clone of infcmd.c's
2660         default_print_registers_info.
2661         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2662         (sparclet_do_registers_info): Declare.
2663         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2664         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2665         Re-define.
2666         (sparc_do_registers_info): Declare.
2667         (PRINT_REGISTER_HOOK): Delete macro.
2668         (sparc_print_register_hook): Delete declaration.
2669
2670 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2671
2672         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2673         functions.
2674         (lookup_symbol_aux_local): New function.
2675         (lookup_symbol_aux_symtabs): New function.
2676         (lookup_symbol_aux_psymtabs): New function.
2677
2678 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2679
2680         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2681         previous values of 'objfile' and 'block'.
2682
2683 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2684
2685         * values.c (value_change_enclosing_type): Set 
2686         enclosing_type field correctly also for the case where 
2687         more memory needs to be allocated.
2688
2689 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2690
2691         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2692         of puts_filtered.
2693
2694         * i387-tdep.c (i387_print_float_info): Replace calls to
2695         register_read and deprecated_read_register_gen with calls to
2696         frame_register_read, and make the necessary adjustments to the
2697         surrounding code.
2698
2699 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2700
2701         * gdbarch.sh (register_reggroup_p): Allow default value.
2702         * gdbarch.h, gdbarch.c: Regenerate.
2703
2704 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2705
2706         * regcache.h: Add coment indicating replacements for deprecated
2707         functions.
2708
2709 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2710
2711         * reggroups.h, reggroups.c: New files.
2712         * regcache.c: Include "reggroups.h".
2713         (enum regcache_dump_what): Add `regcache_dump_groups'.
2714         (regcache_dump): Contract size of the "Type" column.  When
2715         specified, dump the register's groups.
2716         (maintenance_print_register_groups): New function.
2717         (_initialize_regcache): Add command `maint print register-groups'.
2718         * Makefile.in (COMMON_OBS): Add reggroups.o
2719         (SFILES): Add reggroups.c.
2720         (reggroups_h): Define.
2721         (regcache.o, gdbarch.o): Update dependencies.
2722         (reggroups.o): Specify dependencies.
2723         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2724         Add opaque declaration for `struct reggroup' in generated .h file.
2725         Include "reggroups.h" in generated .c file.
2726         gdbarch.h, gdbarch.c: Re-generate.
2727
2728 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2729
2730         * regcache.h (deprecated_read_register_gen): Rename
2731         read_register_gen.
2732         (deprecated_write_register_gen): Rename write_register_gen.
2733         * i387-tdep.c: Update.
2734         * x86-64-linux-nat.c: Update
2735         * wince.c: Update.
2736         * thread-db.c: Update.
2737         * win32-nat.c: Update.
2738         * mips-tdep.c: Update.
2739         * d10v-tdep.c: Update.
2740         * cris-tdep.c: Update.
2741         * remote-sim.c: Update.
2742         * remote-rdi.c: Update.
2743         * remote-rdp.c: Update.
2744         * frame.c: Update.
2745         * target.c: Update.
2746         * blockframe.c: Update.
2747         * x86-64-tdep.c: Update.
2748         * xstormy16-tdep.c: Update.
2749         * sh-tdep.c: Update.
2750         * s390-tdep.c: Update.
2751         * rs6000-tdep.c: Update.
2752         * sparc-tdep.c: Update.
2753         * i386-tdep.c: Update.
2754         * dwarf2cfi.c: Update.
2755         * regcache.c: Update.
2756
2757 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2758
2759         New interix-specific files:
2760         * config/i386/nm-interix.h: New file.
2761         * config/i386/interix.mh: New file.
2762         * config/i386/interix.mt: New file.
2763         * i386-interix-nat.c: New file.
2764         * i386-interix-tdep.c: New file.
2765
2766 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2767
2768         * frame.h (deprecated_generic_get_saved_register): Rename
2769         generic_get_saved_register.
2770         * blockframe.c (deprecated_generic_get_saved_register): Update.
2771         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2772         (xstormy16_frame_saved_register): Update.
2773         * sh-tdep.c (sh_gdbarch_init): Update.
2774         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2775         * ia64-tdep.c (ia64_get_saved_register): Update.
2776         * cris-tdep.c (cris_gdbarch_init): Update.
2777         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2778         * arm-tdep.c (arm_gdbarch_init): Update.
2779
2780 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2781
2782         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2783
2784 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2785
2786         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2787         trampolines in sigaction.
2788
2789 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2790
2791         * h8300-tdep.c: Include "gdb_assert.h".
2792         (h8300_print_register): Add gdbarch, file and frame parameters.
2793         Use frame_read_unsigned_register to read the register's value.
2794         Use fprintf_filtered to display output.
2795         (h8300_print_registers_info): Replace h8300_do_registers_info.
2796         (h8300_gdbarch_init): Set print_registers_info.
2797
2798 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2799
2800         * frame.c (frame_read_unsigned_register): New function.
2801         (frame_read_signed_register): New function.
2802         * frame.h (frame_read_unsigned_register): Declare.
2803         (frame_read_signed_register): Declare.
2804
2805 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2806
2807         * h8500-tdep.c (h8500_print_registers_info): New static function,
2808         clone of infcmd.c's default_print_registers_info.
2809         (h8500_do_registers_info): New funtion.
2810         (h8500_print_register_hook): Rename print_register_hook, make
2811         static.
2812
2813         * config/h8500/tm-h8500.h: Update copyright.
2814         (DEPRECATED_DO_REGISTERS_INFO): Define.
2815         (h8500_do_registers_info: Declare.
2816         (PRINT_REGISTER_HOOK): Delete macro.
2817         (print_register_hook): Delete function.
2818
2819 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2820
2821         * z8k-tdep.c (z8k_print_register_hook): Make static.
2822         (z8k_print_registers_info): New static function, clone of
2823         infcmd.c's default_print_registers_info.
2824         (z8k_do_registers_info): New function.  Wrap
2825         z8k_print_registers_info.
2826         * config/z8k/tm-z8k.h: Update copyright.
2827         (PRINT_REGISTER_HOOK): Delete macro.
2828         (z8k_print_register_hook): Delete declaration.
2829         (DEPRECATED_DO_REGISTERS_INFO): Define.
2830         (z8k_do_registers_info): Declare.
2831
2832 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2833
2834         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2835         as this is already provided by value.h, and was actually causing
2836         a compilation error because of a conflict in parameter type
2837         declaration due to a missing const keyword.
2838         (low_text_segment_addres): Fix a compilation warning.
2839
2840 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2841
2842         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2843         registers without a name.
2844         (mips_linux_cannot_store_register): Don't store registers without
2845         a name.
2846
2847 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2848
2849         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2850         out.)
2851         * symtab.h: Delete prototype for find_addr_symbol.
2852
2853 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2854
2855         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2856         DO_REGISTERS_INFO.
2857         gdbarch.h, gdbarch.c: Re-generate.
2858         * infcmd.c (default_print_registers_info): Update reference.
2859         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2860         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2861         * sh-tdep.c (sh_gdbarch_init): Ditto.
2862         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2863         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2864
2865 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2866
2867         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2868         cfi_init_extra_frame_info.
2869         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2870         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2871
2872         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2873         target where necessary.  Add more comments and remove the ones
2874         that don't provide any useful information.
2875
2876         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2877         deprecated_read_register_dummy with
2878         frame_unwind_unsigned_register.
2879
2880         * i386-tdep.c (i386_extract_struct_value_address): Use
2881         regcache_raw_read_unsigned instead of
2882         regcache_cooked_read_unsigned since we know that the register
2883         we're reading isn't a pseudo register.  Rename variable 'val' into
2884         the more descriptive 'addr'.
2885
2886         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2887         (x86_64_push_return_address): Add comment.
2888         (x86_64_pop_frame): Make static.
2889         (examine_argument): Clarify comment.
2890         (x86_64_skip_prologue): Make prolog_expact variable static.
2891
2892         * dwarf2cfi.c: Fix some formatting problems.
2893         (context_cpy, read_encoded_pointer): Clarify comments.
2894
2895         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2896         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2897         i386 target back into x86_64_gdbarch_init.  Add some comments and
2898         remove meaningless ones.
2899
2900 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2901
2902         * complaints.h (struct deprecated_complaint): Rename `struct
2903         complaint'.
2904         * complaints.c (complain): Update.
2905         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2906         incorrect comment indicating that "symfile.h" was being included
2907         for the `struct complaint' definition.
2908         * remote-vx.c: Update.
2909         * objc-lang.c: Update.
2910         * xcoffread.c: Update.
2911         * hpread.c: Update.
2912         * mdebugread.c: Update.
2913         * stabsread.c: Update.
2914         * dwarf2read.c: Update.
2915         * dwarfread.c: Update.
2916         * elfread.c: Update.
2917         * coffread.c: Update.
2918         * stabsread.h: Update.
2919         * dbxread.c: Update.
2920         * buildsym.c: Update.
2921         * gdbtypes.c: Update.
2922         * macrotab.c: Update.
2923
2924 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2925
2926         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2927         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2928         (x86_64_init_abi): ...new function.
2929
2930         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2931         * i386v-nat.c: Include "i386-tdep.h".
2932
2933 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2934
2935         * gdbtypes.c (address_space_name_to_int): Update.
2936         (address_space_int_to_name): Update.
2937         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2938         multi-arch predicate.
2939         (address_class_name_to_type_flags): Ditto.
2940         * gdbarch.h, gdbarch.c: Re-generate.
2941         
2942         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2943
2944 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2945
2946         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2947
2948 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2949
2950         * symtab.h (INIT_SAL): Delete macro.
2951         (init_sal): Export.
2952         * symtab.c (init_sal): New function.
2953
2954         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2955         to init_sal function call.
2956         (find_sal_from_funcs_and_line): Ditto.
2957         (all_sals_for_line): Ditto. 
2958         * breakpoint.c (create_internal_breakpoint): Ditto. 
2959         (create_fork_vfork_event_catchpoint): Ditto. 
2960         (create_exec_event_catchpoint): Ditto. 
2961         (parse_breakpoint_sals): Ditto. 
2962         (watch_command_1): Ditto. 
2963         (handle_gnu_4_16_catch_command): Ditto.
2964         (clear_command): Ditto. 
2965         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2966         * infcmd.c (run_stack_dummy): Ditto. 
2967         * infrun.c (process_event_stop_test): Ditto.
2968         (check_sigtramp2): Ditto.
2969         (step_over_function): Ditto. 
2970         * linespec.c (decode_line_2): Ditto. 
2971         (decode_line_1): Ditto. 
2972         * source.c (line_info): Ditto. 
2973         * symtab.c (find_pc_sect_line): Ditto.
2974
2975 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2976
2977         * dwarf2cfi.c (struct context)
2978         (struct context_reg): Moved to dwarf2cfi.h
2979         (context_alloc, frame_state_alloc, context_cpy):
2980         Made extern instead of static, removed prototypes.
2981         * dwarf2cfi.h (struct context)
2982         (struct context_reg): New, moved from dwarf2cfi.c
2983         (context_alloc, frame_state_alloc, context_cpy):
2984         New prototypes.
2985         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2986         Changed from static to extern.
2987         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2988         (LINUX_SIGCONTEXT_FP_OFFSET)
2989         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2990         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2991         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2992         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2993         set_gdbarch_*() calls now use x86-64 specific functions 
2994         instead of DWARF2 CFI ones.
2995         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2996         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2997         (x86_64_init_extra_frame_info): New prototypes.
2998         
2999 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3000
3001         * linespec.c: #include "parser-defs.h".
3002         Delete prototype for find_template_name_end.
3003         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3004
3005 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3006
3007         * NEWS: add recent mi fixes.
3008         * varobj.c (struct varobj): Add new "updated" flag.
3009         (new_variable): Default "updated" flag to 0.
3010         (varobj_set_value): Set "updated" flag to 1 if value
3011         changes.
3012         (varobj_update): Check varobj "updated" flag before
3013         comparing old and refreshed values.  Fix for
3014         PR gdb/702.
3015
3016 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3017
3018         * parse.c (parse_exp_1): Use BLOCK_START.
3019         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3020         SYMBOL_BLOCK_VALUE.
3021         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3022
3023 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3024
3025         * symtab.c: Delete cplusplus_hint.
3026         Delete prototype for find_template_name_end.
3027
3028 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3029
3030         * symtab.h: Update comment.
3031
3032 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3033
3034         * printcmd.c (address_info): Restore quotes in output.
3035         * valops.c (value_of_local): Restore quotes in error message.
3036
3037 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3038
3039         * symtab.c (symbol_demangled_name): New function.
3040         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3041         turning most of it into a function.
3042         (symbol_demangled_name): Export.
3043
3044 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3045
3046         * valops.c (value_of_local): Restore quotes in error message.
3047
3048 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3049
3050         * symtab.c (symbol_init_language_specific): New function.
3051         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3052         turning most of it into a function.
3053         (symbol_init_language_specific): Export.
3054
3055 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3056
3057         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3058         (dwarf_attr_name): Ditto.
3059         (dwarf_type_encoding_name): Ditto.
3060         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3061         (process_die): Handle DW_TAG_namespace,
3062         DW_TAG_imported_declaration, DW_TAG_imported_module.
3063         (read_namespace): New function.
3064
3065 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3066
3067         * configure.in: Define NEW_PROC_API on Interix too.
3068         * configure: Regenerate.
3069
3070 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3071
3072         * configure: Regenerate using the proper version of autoconf.
3073
3074 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3075
3076         * findvar.c (read_var_value): Temporarily disable TLS code, until
3077         complete TLS support is added.
3078
3079 2002-10-21  Jim Blandy  <jimb@redhat.com>
3080             Elena Zannoni  <ezannoni@redhat.com>
3081
3082         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3083         for thread local storage locations.
3084         (struct symbol): Add objfile field.
3085         (SYMBOL_OBJFILE): Define.
3086         * dwarf2read.c (is_thread_local): New static variable.
3087         (new_symbol): If variable is in thread local fill in address class
3088         and objfile appropriately.
3089         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3090         stack operation.
3091         * printcmd.c (address_info): Print the information for thread
3092         local storage variable.
3093         * findvar.c (read_var_value): In case of thread local variable,
3094         defer to the target vector code to compute address.
3095
3096 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3097
3098         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3099         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3100
3101 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3102
3103         * symtab.h (address_class):  Rename
3104         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3105         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3106         * printcmd.c (address_info): Ditto.
3107         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3108
3109 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3110
3111         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3112         DBREG_DRX macro to acces debug registers.
3113
3114         * Makefile.in (i386obsd-tdep.o): New target.
3115
3116         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3117         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3118
3119         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3120         * config/i386/obsd.mt: New file.
3121         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3122         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3123         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3124         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3125         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3126         * i386obsd-tdep.c: New file.
3127
3128 2002-10-19  Adam Fedor  <fedor@gnu.org>
3129
3130         * objc-exp.y (name_not_typename): Fix invalid comment.  
3131
3132 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3133
3134         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3135         to allocate partial syms and macro byte caches.
3136
3137 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3138
3139         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3140
3141 2002-10-18  Adam Fedor  <fedor@gnu.org>
3142
3143         * stabsread.c (find_name_end): New function.
3144         (define_symbol): Use it.
3145
3146 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3147
3148         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3149         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3150         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3151         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3152
3153 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3154
3155         * symfile.h: Add opaque declaration for struct obstack.
3156         Declare obsavestring to take a const char *.
3157         * symfile.c (obsavestring): Make first argument a const char *.
3158
3159 2002-10-16  Adam Fedor  <fedor@gnu.org>
3160
3161         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3162         names when matching breakpoints in current file.
3163
3164 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3165
3166         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3167         (read_tag_pointer_type): Add address class support.
3168         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3169         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3170         New methods.
3171         * gdbarch.h, gdbarch.c: Regenerate.
3172         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3173         (make_type_with_address_space, recursive_type_dump): Add address
3174         class support.
3175         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3176         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3177         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3178
3179 2002-10-16  Klee Dienes  <kdienes@apple.com>
3180
3181         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3182         to get the last character of a char[] buffer, not
3183         name[sizeof(vptr_name)-1].
3184
3185 2002-10-14  Adam Fedor  <fedor@gnu.org>
3186
3187         * symtab.h: New objc_specific struct.
3188         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3189         (SYMBOL_DEMANGLED_NAME): Likewise.
3190
3191 2002-10-14  Adam Fedor  <fedor@gnu.org>
3192
3193         * symfile.c (init_filename_language_table): Add ObjC file extension.
3194
3195 2002-10-14  Adam Fedor  <fedor@gnu.org>
3196
3197         * utils.c (puts_filtered_tabular): New function.
3198         (fprintf_symbol_filtered): Get ObjC demangled name.
3199         * defs.h (puts_filtered_tabular): Declared.
3200
3201 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3202
3203         * c-lang.h (c_type_print_varspec_prefix): Delete.
3204         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3205         ``need_post_space'' parameter.  Adjust all callers.
3206
3207 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3208  
3209         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3210         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3211         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3212         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3213
3214 2002-10-13  Adam Fedor  <fedor@gnu.org>
3215
3216         * source.c (print_source_lines): Update comments.
3217
3218 2002-10-13  Adam Fedor  <fedor@gnu.org>
3219
3220         * valops.c (value_of_local): New function.
3221         (value_of_this): Use it.
3222         * value.h (value_of_local): Declared.
3223
3224 2002-10-13  Adam Fedor  <fedor@gnu.org>
3225
3226         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3227         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3228
3229 2002-10-12  Adam Fedor  <fedor@gnu.org>
3230
3231         * language.c (binop_result_type): Add language_objc to case.
3232         (integral_type): Likewise.
3233         (character_type): Likewise.
3234         (string_type): Likewise.
3235         (boolean_type): Likewise.
3236         (structured_type): Likewise.
3237         (binop_type_check): Likewise.
3238
3239 2002-10-11  Adam Fedor  <fedor@gnu.org>
3240
3241         * printcmd.c (address_info): Print 'self' for ObjC.
3242
3243 2002-10-11  Adam Fedor  <fedor@gnu.org>
3244
3245         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3246         OP_SELF.
3247
3248 2002-10-11  Adam Fedor  <fedor@gnu.org>
3249
3250         * language.h (CAST_IS_CONVERSION): Add language_objc.
3251
3252 2002-10-11  Adam Fedor  <fedor@gnu.org>
3253
3254         * defs.h (enum language): Add language_objc.
3255
3256 2002-10-11  Klee Dienes  <kdienes@apple.com>
3257
3258         * corefile.c (read_memory_typed_address): New function.
3259         * gdbcore.h (read_memory_typed_address): Add prototype.
3260         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3261         to read a value destined for a CORE_ADDR, not read_memory_integer.
3262         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3263         (f77_get_dynamic_lowerbound): Ditto.
3264
3265 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3266
3267         * utils.c (string_to_core_addr): After turning string into
3268         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3269         which will do necessary sign-extension, etc.
3270
3271 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3272
3273         * c-exp.y (THIS): Delete token and grammar rule.
3274         (yylex): Don't return THIS.
3275         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3276         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3277         * demangle.c (cplus_markers): Update comment.  Put '$'
3278         first.  Remove CPLUS_MARKER.
3279         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3280         * jv-exp.y (THIS): Delete token and grammar rule.
3281         (yylex): Don't return THIS.
3282         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3283         * objc-exp.y (THIS): Delete token and grammar rule.
3284         (yylex): Don't return THIS.
3285         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3286         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3287         (read_member_functions): Likewise for opname.
3288         (read_tilde_fields): Use is_cplus_marker.
3289
3290         * defs.h (CPLUS_MARKER): Don't define.
3291         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3292         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3293         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3294         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3295         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3296
3297         * config/i386/tm-i386v4.h: Delete file.
3298         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3299         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3300         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3301         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3302         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3303         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3304         * config/i386/i386v4.mt (TM_FILE): Likewise.
3305         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3306
3307 2002-10-10  Marko Mlinar  <markom@opencores.org>
3308
3309         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3310         accidentially not commited 2002-10-09
3311         * gdbarch.h, gdbarch.c: Re-generate.
3312
3313 2002-10-09  Marko Mlinar  <markom@opencores.org>
3314
3315         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3316         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3317         * gdbarch.h, gdbarch.c: Re-generate.
3318
3319 2002-10-08  Petr Sorfa <petrs@caldera.com>
3320
3321         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3322
3323         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3324         so we can work on more than one compilation unit at a time.  This
3325         helps prepare GDB to handle inter-CU die references.
3326         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3327         the code to be defined before struct comp_unit_head.
3328         (comp_unit_head): Added new members - offset, cu_head,
3329         begin_die, next and dwarf2_abbrevs.
3330         (dwarf2_abbrevs): Removed single static var; now member of
3331         struct comp_unit_head.
3332         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3333         members.
3334         (psymtab_to_symtab_1): Changed to work with the new
3335         struct comp_unit_head.
3336         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3337         constructs the dwarf2_abbrevs[] inside the cu_header.
3338         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3339         dwarf2_abbrev table to clean up.
3340         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3341         handling of dwarf2_abbrevs inside the cu_header.
3342         (read_partial_die): Now supports the call to the new
3343         dwarf2_lookup_abbrev.
3344         (read_full_die): Now supports the call to the new
3345         dwarf2_lookup_abbrev.
3346
3347 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3348
3349         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3350         insure that shell variables, such as "transformed_name" are propagated
3351         to later shell statements in rule.
3352
3353 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3354
3355         * config/i386/nm-i386sco.h: Add protection against
3356         multiple-inclusion.  Include "i386/nm-i386v.h".
3357         (REGISTER_U_ADDR): Remove define.
3358         (i386_register_u_addr): Remove prototype.
3359
3360 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3361
3362         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3363         before treating it as a single-step event.
3364
3365 2002-10-03  Adam Fedor  <fedor@gnu.org>
3366
3367         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3368         (objc_demangle): Remove assignment in if statements, Replace
3369         free with xfree.
3370         (add_msglist): Likewise.
3371         (end_msglist): Likewise.
3372         (complare_selectors): Likewise.
3373         (selectors_info): Likewise.
3374         (compare_classes): Likewise.
3375         (classes_info): Likewise.
3376         (print_object_command): Likewise.
3377         (find_objc_msgcall_submethod): Replace PTR with void *.
3378         * objc-lang.h: Remove check for __STDC__.
3379
3380 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3381
3382         * ui-out.h (ui_out_field_fmt_int): New prototype.
3383         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3384         of field width and alignment.
3385         * stack.c (print_frame_info_base): When printing frame level, use
3386         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3387         PR gdb/192
3388
3389 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3390
3391         * MAINTAINERS: Add self to Write After Approval list.
3392
3393 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3394
3395         * infcmd.c (interrupt_target_command_wrapper): Delete.
3396         (interrupt_target_command): Make non static.
3397         (nofp_registers_info): Make static.
3398         * stack.c (return_command_wrapper): Delete.
3399         (return_command): Make non static.
3400
3401 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3402
3403         * event-top.c (gdb_setup_readline): New function. Code moved from
3404         _initialize_event_loop().
3405         (_initialize_event_loop): Call gdb_setup_readline().
3406
3407 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3408
3409         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3410         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3411         * gdbarch.h, gdbarch.c: Re-generate.
3412
3413 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3414
3415         Fix PR gdb/778
3416         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3417         before recursing.
3418         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3419         of fill_in_vptr_fieldno.
3420
3421 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3422
3423         * inferior.h (registers_info, stepi_command, nexti_command,
3424         continue_command, interrupt_target_command): Export from infcmd.c.
3425         * frame.h (args_info, selected_frame_level_changed_hook,
3426         return_command): Export from stack.c.
3427         * v850ice.c (stepi_command, nexti_command, continue_command): use
3428         prototypes from inferior.h.
3429         * tracepoint.c (registers_info, args_info, locals_info): Use
3430         prototypes from frame.h and inferior.h.
3431         * Makefile.in (mi-main.o): Add dependency on frame.h.
3432
3433 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3434
3435         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3436         value in register 3 adjusted by ppc_gp0_regnum.
3437
3438         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3439
3440 2002-10-02  Marko Mlinar <markom@opencores.org>
3441
3442         * MAINTAINERS: Add myself to the Write After Approval list.
3443
3444 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3445
3446         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3447         of the section for the N64 ABI, fixed.
3448
3449         * config/mips/tm-irix6.h: Include solib.h.
3450
3451 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3452
3453         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3454         GNU operators.
3455
3456 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3457
3458         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3459         and that "mi0" syntax has been removed.
3460
3461 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3462
3463         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3464         * ppc-sysv-tdep.c: #include "gdb_string.h".
3465         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3466         pacify GCC.
3467
3468 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3469
3470         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3471         "vrsave"'s register number.
3472
3473 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3474
3475         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3476         use frame_unwind_signed_register to obtain the PC.
3477         (mips_frame_chain): Handle a generic dummy frame.
3478         (mips_init_extra_frame_info): When a generic dummy frame, don't
3479         re-compute the frame base.
3480         (mips_pop_frame): Handle generic dummy frames.
3481         (mips_gdbarch_init): When generic dummy frames, set
3482         use_generic_dummy_frames, push_dummy_frame to
3483         generic_push_dummy_frame, pc_in_call_dummy to
3484         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3485         generic_save_dummy_frame_tos.
3486
3487 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3488
3489         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3490         against TOP when TOP was explictly set.
3491         (generic_push_dummy_frame): Set TOP to zero.
3492
3493 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3494
3495         * event-loop.c (start_event_loop): Rename variable 'result' to
3496         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3497
3498 2002-09-30  Keith Seitz  <keiths@redhat.com>
3499
3500         * gdb-events.sh (selected_thread_changed): New event.
3501         * gdb-events.c: Regenerated.
3502         * gdb-events.h: Regenerated.
3503
3504 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3505
3506         * MAINTAINERS: Add self to Write After Approval list.
3507
3508 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3509
3510         * disasm.c: New file.  
3511         * disasm.h: New file.  
3512         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3513         (compare_lines): Ditto.
3514         (dump_insns): Ditto.
3515         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3516         argument.
3517         (do_assembly_only): Ditto.
3518         (do_disassembly): Renamed to gdb_disassembly and moved to
3519         disasm.c.  Sdded uiout argument.
3520         * Makefile.in: Add new files.  Reorder SFILES list. Update
3521         dependencies.  Include libgdb.a later in the insight executable.
3522
3523 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3524
3525         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3526         bfd/elf64-alpha-fbsd.c.
3527
3528 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3529
3530         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3531         i386gnu-tdep.c.
3532
3533 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3534
3535         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3536         __FUNCTION__.
3537         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3538         function name.
3539         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3540         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3541         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3542         (S_msg_sig_post_reply): Ditto.
3543         
3544 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3545
3546         * sh-tdep.c (sh_use_struct_convention): Use definition according
3547         to ABI.
3548         (sh_push_arguments): Store in register with correct endianess.
3549         (sh_default_store_return_value): Ditto.
3550         (sh_gdbarch_init): Set sizeof long double to 8.
3551
3552 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3553
3554         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3555         Fix some whitespace problems.
3556
3557 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3558
3559         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3560         (mcore-tdep.o): Ditto.
3561         (ns32k-tdep.o): Ditto.
3562         (ns32knbsd-tdep.o): Ditto.
3563         (sh3-rom.o): Ditto.
3564         (vax-tdep.o): Ditto.
3565         * cris-tdep.c: #include "gdb_string.h"
3566         * mcore-tdep.c: Ditto.
3567         * ns32k-tdep.c: Ditto.
3568         * ns32knbsd-tdep.c: Ditto.
3569         * sh3-rom.c: Ditto.
3570         * vax-tdep.c: Ditto.
3571
3572 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3573
3574         * config/djgpp/fnchange.lst: Add entries for
3575         gdb/testsuite/gdb.c++/m-static files.
3576
3577 2002-09-27  Jim Wilson  <wilson@redhat.com>
3578
3579         * MAINTAINERS: Add myself to the Write After Approval list.
3580
3581 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3582
3583         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3584
3585
3586 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3587
3588         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3589         frame.
3590
3591 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3592
3593         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3594         (rs6000_struct_return_address): Delete variable.
3595         (rs6000_store_struct_return): Update.
3596         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3597         deprecated_extract_struct_value_address.
3598         (rs6000_frame_align): New function.
3599         (rs6000_gdbarch_init): Set frame_align.
3600
3601 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3602
3603         From Grace Sainsbury <graces@redhat.com>:
3604         * Makefile.in (gdbtk-main.o): New target.
3605         (gdb.o): New target.
3606         (main_h): Define.
3607         (main.o): Update dependencies.
3608         (gdb$(EXEEXT)): Add gdb.o.
3609         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3610         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3611         (SUBDIR_GDBTK_CLEAN): Set.
3612         (install-gdbtk): Install the insight binary.
3613         (uninstall-gdbtk): New target.
3614         (all-gdbtk, clean-gdbtk): New rule.
3615         * top.c (use_windows): Default to zero.
3616         * main.c: Include "main.h".
3617         (main): Delete.
3618         (struct captured_main_args): Delete.
3619         (gdb_main): New function.
3620         * main.h: New file.
3621         * gdb.c: New File.
3622
3623 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3624
3625         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3626         (frame_map_regnum_to_name): New function.
3627         (frame_map_name_to_regnum): New function.
3628         * frame.h (frame_map_name_to_regnum): Declare.
3629         (frame_map_regnum_to_name): Declare.
3630         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3631         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3632         * parse.c: Do not include "builtin-regs.h".
3633         (target_map_name_to_register): Delete function.
3634         (write_dollar_variable): Use frame_map_name_to_regnum.
3635         * parser-defs.h (target_map_name_to_register): Delete declaration.
3636         * expprint.c: Include "frame.h".
3637         (print_subexp): Use frame_map_regnum_to_name.
3638         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3639         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3640
3641 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3642
3643         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3644         wasn't saved, and the next innermost frame is a dummy, return the
3645         dummy frame's link register.
3646
3647 2002-09-24  Jim Blandy  <jimb@redhat.com>
3648
3649         Fix from Paul Breed:
3650         * main.c (captured_main): Add a `break' after the case for 'b'.
3651
3652 2002-09-24  Keith Seitz  <keiths@redhat.com>
3653
3654         * varobj.c (c_type_of_child): Use get_target_type instead
3655         of TYPE_TARGET_TYPE.
3656
3657 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3658
3659         * source.c (get_current_or_default_source_symtab_and_line): Remove
3660         function.
3661         (set_default_source_symtab_and_line): New function. Attempts to
3662         determine a source file to list lines from if one is not currently
3663         defined.
3664         (get_current_source_symtab_and_line): Initialize sal.pc and
3665         sal.end fields.
3666         (set_current_source_symtab_and_line): Mark argument as const.
3667         * source.h: Update declarations and comments.
3668         * linespec.c (decode_line_1): Replace call to removed routine above.
3669         * stack.c (print_frame_info_base): Ditto.
3670         * cli/cli-cmds.c (edit_command): Ditto.
3671         (list_command): Ditto.
3672
3673 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3674
3675         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3676         sal.pc and sal.end fields.
3677         (get_current_or_default_source_symtab_and_line): Ditto.
3678         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3679         so we do not cause a new source symtab to be searched for (reverting an
3680         unintentional change from the 2002-09-20 patch).
3681         * scm-lang.c (scm_unpac): Ditto.
3682
3683 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3684
3685         * complaints.c (symfile_explanations): Remove new-line from
3686         ``isolated_message''.
3687         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3688         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3689
3690 2002-09-20  Nick Clifton  <nickc@redhat.com>
3691         
3692         * NEWS: Announce that V850EA ISA is no longer supported.
3693         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3694
3695 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3696
3697         * Makefile.in (c-lang.o): Correct dependencies.
3698         (utils.o): Gather dependencies.
3699         (charset.o): Move.
3700         * c-lang.c: #include "gdb_string.h"
3701
3702 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3703
3704         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3705         * cli/cli-cmds.c (list_command): New function.  Implements the new
3706         cli edit command.
3707         (_init_cli_cmds): Add new command definition.
3708         * gdb.1: Document edit command.
3709         * doc/gdb.texinfo: Document edit command.
3710
3711 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3712
3713         * source.c: Make global variables current_source_symtab and
3714         current_source_line static.
3715         (list_command): Moved to cli/cli-cmds.c.
3716         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3717         (get_first_line_listed): New accessor function.
3718         (get_lines_to_list): New accessor function.
3719         (get_current_source_symtab_and_line): New function. Retrieves the
3720         position in the source code that we consider current.
3721         (get_current_or_default_source_symtab_and_line): New function.
3722         Like the above but attempts to determine a default position if one
3723         is not currently defined.
3724         (set_current_source_symtab_and_line): New function. Sets the source
3725         code position considered current and returns the previously set one.
3726         (clear_current_source_symtab_and_line): Reset stored information about
3727         a current source line.
3728         (_initialize_source): Remove registration for the "list" command and
3729         its alias.
3730         * source.h: Add declarations for the new functions above.
3731         * symtab.h: Remove declarations for the global variables mentioned
3732         above.
3733         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3734         obtain current source line.
3735         * linespec.c (decode_line_1): Ditto.
3736         * macroscope.c (default_macro_scope): Ditto.
3737         * scm-lang.c (scm_unpac): Ditto.
3738         * stack.c (print_frame_info_base): Ditto.
3739         * symfile.c (clear_symtab_users): Ditto.
3740         * symtab.c (decode_line_spec): Ditto.
3741         * cli/cli-cmds.c (list_command): Moved here from source.c.
3742         (ambiguous_line_spec): Moved here from source.c.
3743         (_init_cli_cmds): Add definition for "list" and its alias.
3744         * Makefile.in: Update dependencies.
3745
3746 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3747
3748         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3749         with what gcc thinks is correct.
3750
3751 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3752
3753         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3754         multiple register push instruction.
3755
3756 2002-09-19  Jim Blandy  <jimb@redhat.com>
3757
3758         Add support for distinct host and target character sets.
3759         * charset.c, charset.h: New files.
3760         * c-exp.y: #include "charset.h".
3761         (yylex): Convert character and string literals to the target
3762         character set, before returning them as the semantic value of the
3763         token.
3764         * c-lang.c: #include "charset.h".
3765         (c_emit_char): Use charset-specific methods to recognize
3766         characters with backslash escape forms, to decide which characters
3767         to print literally and which to print using numeric escape
3768         sequences, and to convert target characters to host characters
3769         before printing.
3770         * utils.c: #include "charset.h".
3771         (no_control_char_error): New function.
3772         (parse_escape): Use charset-specific methods to recognize
3773         backslash escapes, parse `control character' notation, and convert
3774         characters from the host character set to the target character set.
3775         * configure.in: Set the default host character set.
3776         Check where to find iconv, and what its argument types might be.
3777         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3778         * Makefile.in (SFILES): List charset.c.
3779         (COMMON_OBS): List charset.o.   
3780         (charset.o): New rule.
3781         (charset_h): New header dependency variable.
3782         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3783         (LIBICONV): New variable, set by configure.
3784         (CLIBS): Include $(LIBICONV) here.
3785         * aclocal.m4, config.in, configure: Regenerated.
3786
3787 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3788
3789         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3790         bison 1.35 warning.
3791
3792 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3793
3794         * gdb_mbuild.sh: New file.
3795
3796 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3797
3798         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3799
3800 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3801
3802         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3803         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3804         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3805         valops.c, value.h: Revert previous change.
3806         
3807 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3808
3809         Preliminary support for Objective-C:
3810         * defs.h (language_objc): New enum value.
3811         (puts_filtered_tabular): Declaration only, exported from utils.c.
3812         (skip_quoted): Delete, declared in completer.h.
3813         * c-exp.y: Include completer.h.
3814         * p-exp.y: Ditto.
3815         * jv-exp.y: Ditto.
3816         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3817         New operator enum values.
3818         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3819         * language.c (binop_result_type): Handle language_objc case.
3820         (integral_type, character_type, string_type, boolean_type,
3821         structured_type, binop_type_check): Ditto.
3822         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3823         (struct objc_specific): Add to general_symbol_info.
3824         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3825         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3826         * parser-defs.h (struct objc_class_str): New struct type.
3827         (start_msglist, end_msglist, add_msglist): Declaration only,
3828         exported from objc-lang.c.
3829         * value.h (value_of_local, value_nsstring, 
3830         call_function_by_hand_expecting_type): Exported from valops.c.
3831         * valops.c (find_function_addr): Export.
3832         (call_function_by_hand_expecting_type): New function.
3833         (value_of_local): New function.
3834         * symfile.c (init_filename_language_table): Add ".m" extension
3835         for Objective-C.
3836         * utils.c (puts_filtered_tabular): New function.
3837         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3838         (set/show demangle): Extend help-string to refer to ObjC.
3839         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3840         * stabsread.c (symbol_reference_defined): Objective-C symbols
3841         may contain colons: make allowances when scanning stabs strings
3842         for colons.
3843         (objc_find_colon): New function.
3844         * printcmd.c (address_info): If language == objc then print
3845         "self" instead of "this".
3846         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3847         OP_NSSTRING, and OP_SELF.
3848         (prefixify_subexp): Ditto.
3849         * source.c (print_source_lines): Mention objc in comment.
3850         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3851         method names.
3852
3853 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3854
3855         * complaints.h: Update copyright.
3856         (struct complaints): Declare.
3857         (struct complaint): Make `message' constant.
3858         (internal_complaint): Declare.
3859         (complaint): Declare.
3860         (complaint_root): Delete declaration.
3861         (symfile_complaints): Delete declaration.
3862         (struct complaints): Add opaque declaration.
3863         (clear_complaints): Add a complaints parameter.
3864         * complaints.c: Update copyright.
3865         (enum complaint_series): Define.
3866         (complaint_root): Delete.
3867         (struct complaints): Define.
3868         (complaint_sentinel, symfile_complaint_book): New variables.
3869         (symfile_explanations, symfile_complaints): New variables.
3870         New variables.
3871         (get_complaints): New function.
3872         (vcomplaint): New function.
3873         (complaint): New function.
3874         (internal_complaint): New function.
3875         (complain): Call vcomplain with symfile_complaint.
3876         (clear_complaints): Rewrite.
3877         (_initialize_complaints): Use add_setshow_command.
3878         * Makefile.in (complaints.o): Update dependencies.
3879         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3880         to call to clear_complaints.
3881         (new_symfile_objfile, reread_symbols): Ditto.
3882         (oldsyms_complaint): Delete.
3883         (empty_symtab_complaint, unknown_option_complaint): Delete.
3884         (free_named_symtabs): Use complaint instead of complain.
3885
3886 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3887
3888         Contributed by Apple Computer, Inc.  Merged with current sources
3889         by Adam Fedor <fedor@doc.com> [cagney].
3890         
3891         * objc-lang.c: First clean-up round: comments, indentation.
3892         * objc-lang.h: Ditto.
3893         * objc-lang.y: Ditto.
3894
3895 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3896
3897         * maint.c (maintenance_internal_error): Print the parameter as the
3898         error message.
3899         (maintenance_internal_warning): New function.
3900         (_initialize_maint_cmds): Add command `maint internal-warning'.
3901
3902         * defs.h (internal_warning, internal_vwarning): Declare.
3903         * utils.c (struct internal_problem): Define.
3904         (internal_vproblem): New function.
3905         (internal_warning): New function.
3906         (internal_vwarning): New function.
3907         (internal_warning_problem, internal_error_problem): New variables.
3908         (internal_verror): Just call internal_vproblem.
3909
3910 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3911
3912         * objc-lang.c: New file, support for Objective-C.
3913         Preliminary check-in, not yet integrated into gdb.
3914         * objc-lang.h: New file.
3915         * objc-exp.y:  New file.
3916
3917 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3918
3919         * infrun.c (signal_stop_update): Convert definition to ISO C.
3920         (signal_print_update): Ditto.
3921         (signal_pass_update): Ditto.
3922         * inflow.c (terminal_save_ours): Ditto.
3923
3924         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3925         comments.
3926         
3927         * config/djgpp/fnchange.lst: Handle name clashes between
3928         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3929         bfd/coff-tic80.c.
3930
3931         * i386-linux-tdep.h: Fix tipo.
3932
3933 2002-09-18  Adam Fedor  <fedor@gnu.org>
3934
3935         * MAINTAINERS: Add myself to the Write After Approval list.
3936
3937 2002-09-18  Jim Blandy  <jimb@redhat.com>
3938
3939         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3940         texthigh and textlow to reader-specific structs caused
3941         objfile_relocate to miss them.  This is fixable, but the work that
3942         the change was supposed to prepare GDB for never got done anyway.
3943
3944 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3945
3946         * MAINTAINERS: Alphabetize Write After Approval list.
3947
3948 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3949
3950         Fix PR gdb/709
3951         * values.c (value_static_field): Call read_var_value.
3952
3953 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3954
3955         * valops.c (hand_function_call): Align the initial stack pointer
3956         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3957         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3958         return value.
3959         * mips-tdep.c (mips_frame_align): New function.
3960         (mips_gdbarch_init): Set frame_align.
3961         * gdbarch.sh (FRAME_ALIGN): New method.
3962         * gdbarch.h, gdbarch.c: Re-generate.
3963
3964 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3965
3966         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3967         registers.
3968
3969 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3970
3971         * NEWS: Mention that MIPS $fp behavior changed.
3972         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3973         reference to FP_REGNUM.
3974         (mipsnbsd_cannot_store_register): Ditto.
3975         * mips-linux-nat.c: Update copyright.
3976         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3977         (mips_linux_cannot_store_register): Ditto.
3978         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3979         * config/mips/tm-mips.h: Update copyright.
3980         (FP_REGNUM): Delete macro.
3981         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3982         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3983         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3984         (mips_r3041_reg_names, mips_r3051_reg_names)
3985         (mips_r3081_reg_names): Replace "fp" with "".
3986         Fix PR gdb/480.
3987
3988 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3989
3990         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3991         generic_read_register_dummy() (PR gdb/703).
3992         (avr_push_return_address): #if 0 out unused vars.
3993         (avr_gdbarch_init): Enable use of avr_push_return_address().
3994
3995 2002-09-17  Michael Snyder  <msnyder@redhat.com>
3996
3997         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3998         RTE will take care of it.
3999
4000 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4001
4002         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4003         invalid, return SP_REGNUM.
4004
4005 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4006
4007         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4008         point registers without sign extension.
4009
4010 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4011
4012         * blockframe.c (deprecated_read_register_dummy): Rename
4013         generic_read_register_dummy.
4014         * frame.c (frame_unwind_signed_register): New function.
4015         (frame_unwind_unsigned_register): New function.
4016         * frame.h (frame_unwind_signed_register): Declare.
4017         (frame_unwind_unsigned_register): Declare.
4018         (deprecated_read_register_dummy): Rename
4019         generic_read_register_dummy.
4020
4021         * h8300-tdep.c (h8300_frame_chain): Update.
4022         (h8300_frame_saved_pc): Update.
4023         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4024         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4025         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4026         (s390_frame_chain): Update.
4027         * v850-tdep.c (v850_find_callers_reg): Update.
4028         (v850_frame_saved_pc): Update.
4029         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4030         (m32r_find_callers_reg): Update.
4031         (m32r_frame_saved_pc): Update.
4032         * sh-tdep.c (sh_find_callers_reg): Update.
4033         (sh64_get_saved_pr): Update.
4034         (sh_init_extra_frame_info): Update.
4035         (sh_init_extra_frame_info): Update.
4036         (sh64_init_extra_frame_info): Update.
4037         (sh64_init_extra_frame_info): Update.
4038         * mcore-tdep.c (mcore_find_callers_reg): Update.
4039         (mcore_frame_saved_pc): Update.
4040         (mcore_init_extra_frame_info): Update.
4041         * i386-tdep.c (i386_frame_saved_pc): Update.
4042         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4043         (ia64_init_extra_frame_info): Update.
4044         (ia64_init_extra_frame_info): Update.
4045         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4046         * cris-tdep.c (cris_init_extra_frame_info): Update.
4047         * avr-tdep.c (avr_frame_chain): Update.
4048         (avr_init_extra_frame_info): Update.
4049         (avr_frame_saved_pc): Update.
4050         * arm-tdep.c (arm_find_callers_reg): Update.
4051         (arm_init_extra_frame_info): Update.
4052         (arm_frame_saved_pc): Update.
4053
4054 2002-09-17  Tom Tromey  <tromey@redhat.com>
4055
4056         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4057         is "'".
4058
4059 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4060
4061         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4062         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4063         NEXT_PROLOGUE_INSN.
4064         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4065         NEXT_PROLOGUE_INSN.
4066
4067 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4068
4069         * osfsolib.c: Remove file, replaced by solib-osf.c.
4070         * Makefile.in: Remove compilation rules for osfsolib.c.
4071
4072 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4073
4074         * cp-valprint.c (cp_print_class_method): Correct args to
4075         check_stub_method_group.
4076
4077 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4078
4079         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4080         `set architecture'.  Unify naming convention of functions.
4081         (h8300_skip_prologue): Improve prologue analysis.
4082         (h8300_push_arguments): Rewritten to more closely match GCC's
4083         bizarre argument-passing behavior, along with the comment describing
4084         said behavior.
4085         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4086         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4087         sim, remote-e7000.c, remote-hms.c and remote.c
4088
4089 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4090
4091         * i386-tdep.c (gdb_print_insn_i386): Removed.
4092         (i386_print_insn): New function.
4093         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4094         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4095         tm_print_insn_info.
4096
4097 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4098
4099         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4100         zero.
4101
4102 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4103
4104         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4105         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4106         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4107
4108 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4109
4110         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4111
4112 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4113
4114         * gdbtypes.c (check_stub_method): Make static.
4115         (check_stub_method_group): New function.
4116         * gdbtypes.h: Update prototypes.
4117         * cp-support.c: New file.
4118         * cp-support.h: New file.
4119
4120         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4121         (update_method_name_from_physname): New function.
4122         (read_member_functions): Correct method names for operators
4123         and v3 constructors/destructors.  Separate v2 constructors and
4124         destructors.
4125         * Makefile.in (stabsread.o): Update dependencies.
4126         (SFILES): Add cp-support.c.
4127         (COMMON_OBS): Add cp-support.o.
4128         (cp_support_h, cp-support.o): Add.
4129
4130         * cp-valprint.c (cp_print_class_method): Call
4131         check_stub_method_group instead of check_stub_method.  Remove
4132         extraneous QUITs.
4133         * p-valprint.c (pascal_object_print_class_method): Likewise.
4134         * valops.c (search_struct_method): Likewise.
4135         (find_method_list, value_struct_elt_for_reference): Likewise.
4136
4137 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4138
4139         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4140         * gdbarch.h, gdbarch.c: Regenerate.
4141
4142 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4143
4144         * frame.c (find_saved_register): Delete function.
4145         * frame.h (find_saved_register): Delete declaration.
4146         Fix PR gdb/631.
4147
4148 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4149
4150         * mips-tdep.c (read_next_frame_reg): Re-hack using
4151         frame_register_unwind.
4152
4153 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4154
4155         * mips-tdep.c (mips_get_saved_register): Re-hack using
4156         frame_register_unwind.
4157
4158 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4159
4160         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4161         vector. Will be useful for Interix.  
4162         * gdbarch.h, gdbarch.c: Regenerate.
4163
4164         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4165         name of the malloc function by NAME_OF_MALLOC.
4166
4167 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4168
4169         * value.h (find_function_in_inferior): Add const keyword to
4170         one of the parameters. Allows us to invoke this function with
4171         a const char *.
4172         * valops.c (find_function_in_inferior): Likewise.
4173
4174 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4175
4176         * exec.c (xfer_memory): Fix compilation warning with old versions
4177         of GCC.
4178         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4179
4180 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4181
4182         * symtab.h: Run through gdb_indent.h.
4183         Add 2002 to Copyright year list.
4184
4185 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4186
4187         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4188         mach constants.
4189         * MAINTAINERS: Add myself to write after approval list.
4190
4191 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4192
4193         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4194
4195 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4196
4197         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4198         Interix.
4199
4200 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4201
4202         * procfs.c (do_detach): Clear current signal, not just fault.
4203         Corrects problem with breakpoint trap signal leaking to detached
4204         process on Tru64.
4205
4206 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4207
4208         * buildsym.c (finish_block): Protect against null pointer.
4209
4210 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4211
4212         * infcmd.c (default_print_registers_info): Send all output to
4213         ``file'' instead of ``gdb_stdout''.
4214
4215 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4216
4217         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4218         LONGEST, and use signed register read (addresses are sign-
4219         extended for mips).
4220
4221 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4222
4223         * event-loop.c (gdb_do_one_event): Make public.
4224         * event-loop.h (gdb_do_one_event): Declare.
4225
4226 2002-09-10  Jeff Law  <law@redhat.com>
4227
4228         * infttrace.c (child_resume): Simplify and rework to avoid
4229         TT_PROC_CONTINUE.
4230
4231 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4232
4233         * printcmd.c (print_scalar_formatted): "len" is the number of
4234         target bytes, NOT the number of target bits.
4235
4236 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4237
4238         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4239         * top.c (init_main): Set rl_terminal_name.
4240
4241 2002-09-08  Aidan Skinner <aidan@velvet.net>
4242
4243         * ada-lang.c (ada_array_bound, ada_type_match,
4244         _initialize_ada_language): Fix K&R definitions.
4245         * ada-tasks.c (get_current_task): Fix K&R definitions.
4246         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4247                         
4248 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4249
4250         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4251         Add XP.
4252
4253 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4254
4255         * i386-tdep.c (i386_register_virtual_type,
4256         i386_register_convertible, i386_register_convert_to_virtual,
4257         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4258         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4259         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4260         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4261         Don't set push_arguments twice.
4262
4263         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4264         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4265         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4266         sigtramp_end to NULL.
4267         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4268         defines.
4269         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4270
4271         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4272         whitespace.
4273
4274         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4275         * gdbarch.h, gdbarch.c: Re-generate.
4276         * blockframe.c (find_pc_sect_partial_function): Convert to use
4277         SIGTRAMP_START_P predicate.
4278
4279 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4280
4281         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4282         generic_dummy_frame method and old method.  Also distinguish
4283         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4284         (arm_extract_return_value): Use new regcache method.
4285
4286         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4287         adjustment that doesn't conform to the ABI.
4288         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4289         saved regcache, not from current regcache.
4290
4291 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4292
4293         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4294         * README: Update.
4295
4296 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4297
4298         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4299         if arm_apcs_32 is false.
4300
4301 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4302
4303         GDB 5.3 branch created.
4304
4305 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4306
4307         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4308         generic_unwind_get_saved_register.
4309
4310 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4311
4312         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4313         argument (PR gdb/653).  Update call to smash_to_method_type.
4314         (read_structure_scope): Update call to dwarf2_add_member_fn.
4315
4316 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4317
4318         * x86-64-linux-tdep.c: Include gdb_string.h
4319         * x86-64-linux-nat.c: Ditto.
4320
4321 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4322
4323         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4324         when YYDEBUG is set to 1.  
4325         * c-exp.y: Likewise.
4326         * f-exp.y: Likewise.
4327         * jv-exp.y: Likewise.
4328         * m2-exp.y: Likewise.
4329         * p-exp.y: Likewise.
4330
4331 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4332
4333         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4334         dependency list.
4335         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4336         solib_svr4_fetch_link_map_offsets to
4337         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4338         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4339         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4340         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4341         solib-svr4.o, and solib-legacy.o.
4342         * config/i386/tm-nbsd.h: Include solib.h.
4343
4344 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4345
4346         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4347         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4348         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4349         comment noting that this needs its own target configuration.
4350         * config/i386/nbsd.mt: New file.
4351         * config/i386/nbsdaout.mt: Remove.
4352         * config/i386/nbsdelf.mt: Ditto.
4353         * config/i386/tm-nbsdaout.h: Ditto. 
4354
4355 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4356
4357         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4358         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4359         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4360         tdep->sigtramp_end.
4361         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4362         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4363         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4364
4365 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4366
4367         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4368         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4369         * i386-tdep.h (i386bsd_init_abi): New prototype.
4370         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4371         function declaration.
4372         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4373         for NetBSD-a.out or NetBSD-ELF.
4374         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4375         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4376         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4377         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4378         and nbsd-tdep.h.
4379         (i386nbsd_pc_in_sigtramp): New function.
4380         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4381         i386nbsd_pc_in_sigtramp.
4382         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4383         and i386nbsdelf_init_abi OS ABI handlers.
4384         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4385         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4386
4387 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4388
4389         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4390         registers if the target really has them.
4391
4392 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4393
4394         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4395         than nbsd-tdep.h.
4396
4397 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4398
4399         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4400         list.
4401         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4402         (alphanbsd_skip_sigtramp_frame): New functions. 
4403         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4404         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4405         to alphanbsd_sigcontext_addr. 
4406
4407 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4408
4409         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4410         list.
4411         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4412         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4413         nbsd_pc_in_sigtramp. 
4414         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4415         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4416         * nbsd-tdep.c: Include gdb_string.h.
4417         (nbsd_pc_in_sigtramp): New function. 
4418         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4419         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4420         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4421         ppcnbsd_pc_in_sigtramp. 
4422         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4423         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4424         shnbsd_pc_in_sigtramp. 
4425         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4426         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4427         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4428
4429 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4430
4431         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4432         watchpoints to NULL.
4433         (insert_breakpoints): set val field of watchpoints if NULL.
4434
4435
4436 2002-08-29  Jim Blandy  <jimb@redhat.com>
4437
4438         * symtab.c (lookup_symbol_aux): In the cases where we find a
4439         minimal symbol of an appropriate name and use its address to
4440         select a symtab to read and search, use `name' (as passed to us)
4441         as the demangled name when searching the symtab's global and
4442         static blocks, not the minsym's name.
4443
4444 2002-08-29  Keith Seitz  <keiths@redhat.com>
4445
4446         * stack.c (print_frame_info_base): Always set current_source_symtab
4447         and current_source_line.
4448
4449 2002-08-29  Donn Terry  <donnte@microsoft.com>
4450
4451         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4452
4453 2002-08-28  Keith Seitz  <keiths@redhat.com>
4454
4455         * stack.c (select_frame): Add FIXME concerning selected-frame
4456         events.
4457         (select_frame_command): Send selected-frame-level-changed
4458         event notification, but only if the level actually changed.
4459         (up_silently_base): Add selected-frame-level-changed event
4460         notification.
4461         (down_silently_base): Likewise.
4462
4463 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4464
4465         * Makefile.in: Update dependencies for all gdb/*.c files.
4466
4467 2002-08-27  Tom Tromey  <tromey@redhat.com>
4468
4469         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4470         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4471         Update dependencies.
4472         * i387-tdep.c: Include gdb_string.h.
4473         * osabi.c: Likewise.
4474         * i386-linux-nat.c: Likewise.
4475         * lin-lwp.c: Likewise.
4476         * ax-gdb.c: Likewise.
4477         * signals/signals.c: Likewise.
4478         * jv-valprint.c: Likewise.
4479         * p-lang.c: Likewise.
4480         * c-valprint.c: Likewise.
4481         * cp-abi.c: Likewise.
4482
4483 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4484
4485         * cli/cli-script.h (copy_command_lines): Export.
4486         * breakpoint.c: Include cli/cli-script.h.
4487         * Makefile.in (breakpoint.o): Update dependencies.
4488
4489 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4490
4491         * breakpoint.c (insert_breakpoints): Protect all references
4492         to 'process_warning'.  Shorten long lines.
4493
4494 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4495
4496         * cli/cli-script.c (copy_command_lines): New function.
4497         * defs.h (copy_command_lines): Export.
4498         * testsuite/gdb.base/commands.exp: New tests for commands
4499         attached to a temporary breakpoint, and for commands that
4500         delete the breakpoint they are attached to.
4501         
4502 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4503
4504         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4505         pointer to the breakpoint commands struct, make a new copy
4506         of the struct and point to that.
4507         (bpstat_clear): Free the commands struct.
4508         (bpstat_clear_actions): Free the commands struct.
4509         (bpstat_do_actions): Free the command actions.  Also execute
4510         the local cleanups, instead of deleting them.
4511         (delete_breakpoint): Leave the commands field of the bpstat
4512         chain alone -- it will be freed later.
4513
4514 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4515
4516         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4517         deleted in 2002-08-20 commit.  This function is still used by
4518         ppc-linux-nat.c.
4519
4520 2002-08-26  Keith Seitz  <keiths@redhat.com>
4521
4522         * gdb-events.sh: Add selected-frame-level-changed event.
4523         * gdb-events.c: Regenerated.
4524         * gdb-events.h: Regenerated.
4525         
4526 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4527
4528         Fix PR gdb/393:
4529         * inflow.c (terminal_save_ours): New function to save terminal
4530         settings.
4531         * inferior.h (terminal_save_ours): Declare.
4532         * target.c (debug_to_terminal_save_ours): New function.
4533         (cleanup_target): Defaults to_terminal_save_ours.
4534         (update_current_target): Inherit to_terminal_save_ours.
4535         (setup_target_debug): Set to_terminal_save_ours.
4536         * target.h (target_terminal_save_ours): New to save terminal settings.
4537         (target_ops): New member to_terminal_save_ours.
4538         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4539         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4540         * inftarg.c (init_child_ops): Likewise.
4541         * m3-nat.c (init_m3_ops): Likewise.
4542         * procfs.c (init_procfs_ops): Likewise.
4543         * wince.c (init_child_ops): Likewise.
4544         * win32-nat.c (init_child_ops): Likewise.
4545         * sol-thread.c (init_sol_thread_ops): Likewise.
4546
4547 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4548
4549         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4550         use regcache_* functions.
4551         (i386_gdbarch_init): Set store_return_value instead of
4552         deprecated_store_return_value.
4553
4554         * regcache.c (regcache_raw_write_signed,
4555         regcache_raw_write_unsigned): New functions.
4556         * regcache.h (regcache_raw_write_signed,
4557         regcache_raw_write_unsigned): New prototypes.
4558
4559 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4560
4561         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4562         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4563         source file dependencies.  Cleanup corresponding generator rules.
4564
4565 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4566
4567         * regcache.h (register_offset_hack): Declare.
4568         (regcache_cooked_read_using_offset_hack): Declare.
4569         (regcache_cooked_write_using_offset_hack): Declare.
4570
4571         * regcache.c (register_offset_hack): New function.
4572         (regcache_cooked_read_using_offset_hack): New function.
4573         (regcache_cooked_write_using_offset_hack): New function.
4574         (regcache_dump): Check that the registers, according to their
4575         offset, are packed hard against each other.
4576         (cooked_xfer_using_offset_hack): New function.
4577
4578 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4579
4580         * regcache.c (struct regcache_descr): Add field register_type.
4581         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4582         in as a parameter
4583         (init_regcache_descr): Initialize register_type.  Pass the descr
4584         to init_legacy_regcache_descr.  Use register_type instead of
4585         REGISTER_VIRTUAL_TYPE.
4586         (register_type): New function.
4587         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4588         * regcache.h (register_type): Declare.
4589
4590 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4591
4592         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4593         instead of deprecated_store_return_value.  Fix fallout from
4594         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4595
4596 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4597
4598         * regcache.c (max_register_size): New function.
4599         (init_legacy_regcache_descr): Ensure that max_register_size is
4600         large enough for REGISTER_VIRTUAL_SIZE.
4601         * regcache.h (max_register_size): Declare.
4602
4603 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4604
4605         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4606         store_return_value.
4607         (e500_extract_return_value): Change type of valbuf pointer to
4608         void.
4609
4610 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4611
4612         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4613         workaround.
4614
4615         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4616         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4617         long long) to prevent compiler warning on 64-bit systems.
4618
4619 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4620
4621         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4622         (DEPRECATED_STORE_RETURN_VALUE): New method.
4623         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4624         * gdbarch.h, gdbarch.c: Re-generate.
4625
4626         * values.c (set_return_value): Pass current_regcache to
4627         STORE_RETURN_VALUE.
4628         * arch-utils.h (legacy_store_return_value): Declare.
4629         * arch-utils.c (legacy_store_return_value): New function.
4630         (legacy_extract_return_value): Update parameters.
4631
4632         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4633         STORE_RETURN_VALUE.
4634         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4635         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4636         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4637         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4638         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4639         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4640         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4641         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4642         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4643         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4644
4645         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4646         * i386-tdep.c (i386_extract_return_value): Update.
4647         * arch-utils.c (legacy_extract_return_value): Update.
4648         * frv-tdep.c (frv_gdbarch_init): Update.
4649         * cris-tdep.c (cris_gdbarch_init): Update.
4650         * d10v-tdep.c (d10v_gdbarch_init): Update.
4651         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4652         * m68k-tdep.c (m68k_gdbarch_init): Update.
4653         * mcore-tdep.c (mcore_gdbarch_init): Update.
4654         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4655         * s390-tdep.c (s390_gdbarch_init): Update.
4656         * sparc-tdep.c (sparc_gdbarch_init): Update.
4657         * sh-tdep.c (sh_gdbarch_init): Update.
4658         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4659         * v850-tdep.c (v850_gdbarch_init): Update.
4660         * avr-tdep.c (avr_gdbarch_init): Update.
4661         * ia64-tdep.c (ia64_gdbarch_init): Update.
4662         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4663         * vax-tdep.c (vax_gdbarch_init): Update.
4664         * alpha-tdep.c (alpha_gdbarch_init): Update.
4665         * arm-tdep.c (arm_gdbarch_init): Update.
4666         * mips-tdep.c (mips_gdbarch_init): Update.
4667         * i386-tdep.c (i386_gdbarch_init): Update.
4668
4669 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4670
4671         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4672         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4673
4674 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4675
4676         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4677         problems.
4678
4679 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4680
4681         * infrun.c (handle_inferior_event): Move a comment outside of a
4682         function call, in order to avoid indent reformatting this part
4683         of the code in an unreadable way.
4684
4685 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4686
4687         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4688         when breakpoints fail. Move general breakpoint error messages to
4689         insert_breakpoints.  
4690         * breakpoint.c (insert_breakpoints): Change warnings when
4691         breakpoints are nto inserted to specify the type. Remove call to
4692         memory_error when hardware breakpoints can't be inserted. Remove
4693         multiple calls to warning so all messages are sent to the user at
4694         once.
4695         (delete_breakpoints): Make insert error messsages more explicit.
4696
4697 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4698
4699         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4700         gdbserver/ChangeLog.
4701
4702 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4703
4704         * i386-tdep.c: Include "objfiles.h".
4705         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4706         skip_trampoline_code.
4707         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4708         (CPLUS_MARKER): Define to '.'.
4709
4710         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4711         member.
4712         (linux_corefile_thread_callback): Increase args->num_notes.
4713         (linux_make_note_section): Initialize thread_args.num_notes, and
4714         use it to determine whether notes for any threads were created.
4715
4716 2002-08-23  Donn Terry  <donnte@microsoft.com>
4717
4718         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4719         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4720         and PCUNKILL.
4721         (write_with_trace): Conditionalize out the switch branch handling
4722         PCSHOLD if the corresponding macro is not defined. Likewise for
4723         PRSABORT and PRSTOP.
4724         This change will be needed by the Interix port.
4725
4726 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4727
4728         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4729         write_register wherever possible instead of manipulating the
4730         register bytes directly.
4731         Assign VALUE_CONTENTS to a variable and use that.
4732         The GPR numbers are now dependent on the architecture.
4733         
4734 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4735
4736         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4737         ev_offset fields.
4738         (skip_prologue): Add support for BookE/e500 instructions.
4739         (e500_extract_return_value): New function.
4740         (frame_get_saved_regs): Add support for saving ev registers and
4741         pseudo gpr's.
4742         (e500_store_return_value): New function.
4743         (rs6000_gdbarch_init): Move up default intializations of
4744         deprecated_extract_return_value and store_return_value.  Overwrite
4745         init of store_return_value with e500 specific version.
4746         Set extract_return_value for e500.
4747         
4748 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4749
4750         * blockframe.c (generic_call_dummy_register_unwind): Use
4751         regcache_cooked_read to catch cases in which the variable is
4752         stored in a pseudo register.
4753
4754 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4755
4756         * NEWS: Mention that the i960 has been made obsolete.
4757         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4758         i960-tdep.c
4759         (remote-nrom.o): Obsolete target.
4760         (remote-nindy.o, i960-tdep.o): Ditto.
4761         * remote-nrom.c: Make file obsolete.
4762         * remote-nindy.c, remote-vx960.c: Ditto.
4763         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4764         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4765         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4766         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4767         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4768         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4769         i960-*-vxworks* obsolete.
4770         * MAINTAINERS: Note that the i960 is obsolete.
4771
4772 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4773
4774         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4775         detach to allow reinitialization.
4776
4777 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4778
4779         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4780         attempt).
4781
4782 2002-08-22  Jim Blandy  <jimb@redhat.com>
4783
4784         * coffread.c (coff_symfile_read): Don't try to read the line
4785         number table from disk if the image file doesn't have a symbol
4786         table; we'll never actually look at the info anyway, and Windows
4787         ships DLL's with bogus file offsets for the line number data.
4788
4789 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4790
4791         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4792         an e500 executable.
4793
4794 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4795
4796         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4797         (MSYMBOL_SIZE): Replace macro with function.
4798         (DEFAULT_MIPS_TYPE): Delete unused macro.
4799         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4800         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4801
4802 2002-08-21  Jim Blandy  <jimb@redhat.com>
4803
4804         * valops.c (value_cast): Simplify and correct logic for doing a
4805         static cast from a pointer to a base class to a pointer to a
4806         derived class.
4807
4808 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4809
4810         * infcmd.c (default_print_registers_info): Replace
4811         do_registers_info.
4812         (registers_info): Use gdbarch_print_registers_info instead of
4813         DO_REGISTERS_INFO.
4814         * inferior.h (default_print_registers_info): Replace
4815         do_registers_info.
4816         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4817         (DO_REGISTERS_INFO): Change to a predicate function.
4818         * gdbarch.h, gdbarch.c: Regenerate.
4819         
4820 2002-08-21  Keith Seitz  <keiths@redhat.com>
4821
4822         * gdb-events.sh: Add target-changed event.
4823         * gdb-events.c: Regenerated.
4824         * gdb-events.c: Regenerated.
4825         * valops.c (value_assign): Add target-changed event notification
4826         to inlval_register, lval_memory, and lval_reg_frame_relative.
4827
4828 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4829
4830         * NEWS: Add an entry regarding the improvement of the next/step
4831         operation on Alpha Tru64 multi-processor machines.
4832
4833 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4834
4835         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4836         directores.
4837         * Makefile.in: Update all _h macro definitions.
4838         * Makefile.in (install-gdbtk): Move to install section.
4839         (rdi-share/libangsd.a): Move to end of file.
4840
4841 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4842
4843         * frame.c (frame_register_unwind): When a register, set addrp to
4844         the register's byte.
4845
4846 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4847
4848         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4849         used locally, so move them from the target machine header to here.
4850         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4851         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4852         Make static.
4853         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4854
4855 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4856
4857         * NEWS: Mention that the Apollo line was made obsolete.
4858         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4859         m68*-hp-hpux* obsolete.
4860         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4861         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4862         * buildsym.c (make_blockvector): Make static.
4863         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4864         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4865         (ALLDEPFILES): Remove dstread.c.
4866         (dstread.o): Obsolete make rule.
4867         * dstread.c: Makefile obsolete.
4868         * dst.h: Ditto.
4869         * config/m68k/hp300hpux.mt: Ditto.
4870         * config/m68k/hp300hpux.mh: Ditto.
4871         * config/m68k/hp300bsd.mt: Ditto.
4872         * config/m68k/hp300bsd.mh: Ditto.
4873         * config/m68k/apollo68b.mt: Ditto.
4874         * config/m68k/apollo68v.mh: Ditto.
4875         * config/m68k/apollo68b.mh: Ditto.
4876
4877 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4878
4879         * mips-tdep.c (mips_in_return_stub): Make static.
4880         (mips_gdbarch_init): Set in_solib_return_trampoline.
4881         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4882
4883 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4884
4885         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4886         * gdbarch.c, gdbarch.h: Regenerate.
4887         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4888         Add.
4889         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4890
4891 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4892
4893         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4894         (mips_gdbarch_init): Set skip_trampoline_code, 
4895         in_solib_call_trampoline.
4896         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4897         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4898
4899 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4900
4901         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4902
4903         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4904         vector type for ev registers.
4905         (e500_pseudo_register_read): New function.
4906         (e500_pseudo_register_write): New function.
4907         (e500_dwarf2_reg_to_regnum): New function.
4908         (PPC_UISA_NOFP_SPRS): New macro.
4909         (PPC_EV_REGS): New macro.
4910         (PPC_GPRS_PSEUDO_REGS): New macro.
4911         (registers_e500): New register set for e500.
4912         (variants): Add e500 variant.
4913         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4914         before setting architectural dependent variations.  Initialize ev
4915         registers numbers.  Add case for e500 architecture.  Set the
4916         number of pseudo registers.
4917
4918 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4919
4920         * rs6000-tdep.c: Clean up comments.
4921
4922 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4923
4924         * h8300-tdep.c: Re-indent file.
4925
4926 2002-08-20  Jim Blandy  <jimb@redhat.com>
4927
4928         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4929         default for this.
4930
4931 2002-08-20  Keith Seitz  <keiths@redhat.com>
4932
4933         * breakpoints.c (watch_command_1): Use internal breakpoint
4934         when setting a watchpoint_scope breakpoint.
4935
4936 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4937
4938         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4939         (build_builtin_type_vec64i): Ditto.
4940         (build_builtin_type_vec128): Ditto.
4941         (build_builtin_type_vec128i): Ditto.
4942
4943 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4944
4945         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4946         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4947         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4948         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4949         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4950         CALL_DUMMY_ADDRESS): Delete.
4951         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4952         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4953         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4954         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4955         push_return_address.
4956         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4957         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4958         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4959         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4960         mips_n32n64_push_arguments, mips_push_return_address,
4961         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4962         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4963
4964 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4965
4966         * mips-tdep.c (mips_frame_num_args): New function.
4967         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4968         frame_saved_pc, frame_args_address, frame_locals_address, 
4969         frame_num_args, and frame_args_skip.
4970         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4971         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4972         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4973         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4974
4975 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4976
4977         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4978         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4979         * mips-tdep.c (mips_store_struct_return): New function.
4980         (mips_extract_struct_value_address): New function.
4981         (mips_gdbarch_init): Set store_struct_return and
4982         extract_struct_value_address.
4983
4984 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4985
4986         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4987         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4988         (read_file_scope): Check that line_header is nonzero before
4989         decoding macro information.
4990
4991 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4992
4993         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4994         flag the general-purpose registers as floating-point on targets
4995         that don't support the floating-point registers.
4996
4997 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4998
4999         * rs6000-tdep.c (altivec_register_p): Delete.
5000         (rs6000_do_altivec_registers): Delete.
5001         (rs6000_altivec_registers_info): Delete.
5002         (rs6000_do_registers_info): Delete.
5003         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5004         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5005
5006 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5007
5008         * infcmd.c (do_registers_info): Print vector registers in hex
5009         format only.
5010         (print_vector_info): Check that printing registers
5011         makes sense.
5012         (print_float_info): Ditto.
5013
5014 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5015
5016         * mips-tdep.c (mips_gdbarch_init): Update.
5017         (mips_o32_extract_return_value): Rewrite.
5018         (mips_o32_store_return_value): Rewrite.
5019         (mips_o32_xfer_return_value): New function.
5020         (mips_xfer_register): Tweak debug print message.  Allow for
5021         buf_offset when dumping the value transfered.
5022
5023 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5024
5025         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5026         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5027         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5028         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5029         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5030
5031 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5032
5033         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5034
5035 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5036
5037         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5038         register.
5039         (P): New macro to define a register as a pseudo register.
5040         (R, R4, R8, R16, FR32, R64, R0): Updated.
5041         (struct variant): Add new fields for number of pseudo registers
5042         and number of total registers.
5043         (tot_num_registers): New macro replacing....
5044         (num_registers): ...deleted macro.
5045         (num_registers): New function.
5046         (num_pseudo_registers): New function.
5047         (variants): Update all variants to intialize new fields correctly.
5048         Postpone initialization of number of pseudo regs and real regs.
5049         (init_variants): New function.
5050         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5051         registers offsets.
5052
5053 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5054
5055         * valops.c (search_struct_field): Change error message to treat
5056         return value of 0 from value_static_field as meaning that field is
5057         optimized out.
5058         (value_struct_elt_for_reference): Ditto.
5059         * values.c (value_static_field): Treat an unresolved location the
5060         same as a nonexistent symbol.  Fix PR gdb/635.
5061         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5062         enclosed.  Fix PR gdb/574.
5063         * MAINTAINERS: Add self to Write After Approval list.
5064
5065 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5066
5067         * mips-tdep.c (mips_xfer_register): New function.
5068         (mips_n32n64_extract_return_value): Rewrite.
5069         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5070         instead of deprecated_extract_return_value.
5071
5072 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5073
5074         * rs6000-tdep.c (TDEP): Delete macro.
5075         (branch_dest): Replace use of TDEP macro with its body.
5076         (rs6000_pop_frame): Ditto.
5077         (rs6000_push_arguments): Ditto.
5078         (rs6000_skip_trampoline_code): Ditto.
5079         (rs6000_frame_saved_pc): Ditto.
5080         (rs6000_frame_chain): Ditto.
5081         (rs6000_register_name): Ditto.
5082         (rs6000_register_byte): Ditto.
5083         (rs6000_register_raw_size): Ditto.
5084         (rs6000_register_virtual_type): Ditto.
5085         (rs6000_register_convertible): Ditto.
5086         (rs6000_convert_from_func_ptr_addr): Ditto.
5087
5088 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5089
5090         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5091         conditionally.
5092         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5093         MIPS_LINUX_JB_ELEMENT_SIZE.
5094         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5095         for MAX_REGISTER_RAW_SIZE arrays.
5096         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5097         MIPS_LINUX_JB_ELEMENT_SIZE.
5098
5099 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5100
5101         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5102
5103 2002-08-19  Aidan Skinner <aidan@velvet.net>
5104
5105         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5106         ada-valprint.c ada-tasks.c.
5107         (YYFILES): Add ada-exp.y.
5108         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5109         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5110         (ada-exp.tab.o): New target.
5111                 
5112 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5113
5114         * regcache.c (regcache_xfer_part): New function.
5115         (regcache_raw_read_part): New function.
5116         (regcache_raw_write_part): New function.
5117         (regcache_cooked_read_part): New function.
5118         (regcache_cooked_write_part): New function.
5119         * regcache.h (regcache_raw_read_part): Declare.
5120         (regcache_raw_write_part): Declare.
5121         (regcache_cooked_read_part): Declare.
5122         (regcache_cooked_write_part): Declare.
5123
5124 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5125
5126         * remote.c (remote_open_1): Add async_p.
5127         (remote_async_open_1): Delete.
5128         (open_remote_target): Delete.
5129         (remote_open, extended_remote_open): Update calls to remote_open_1.
5130         (remote_async_open, extended_remote_async_open): Call
5131         remote_open_1 instead of remote_async_open_1.
5132
5133 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5134
5135         * blockframe.c: Fix a few coding standard violations.
5136
5137 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5138
5139         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5140         here from ...
5141         * config/i386/tm-i386sco5.h: ... here.  File removed.
5142         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5143
5144         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5145         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5146         (TM_FILE): Set to tm-i386.h.
5147         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5148         * config/i386/tm-i386v.h: Remove file.
5149         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5150         instead of "i386/tm-i386v.h".
5151         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5152         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5153         "i386/tm-i386v.h".
5154         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5155         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5156         "i386/tm-i386.h".
5157
5158 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5159
5160         * config/i386/nm-i386v.h: Add protection against
5161         multiple-inclusion.
5162         (i386_register_u_addr): Remove prototype.
5163         (register_u_addr): New prototype.
5164         (REGISTER_U_ADDR): Redefine accordingly.
5165         * i386v-nat.c: Improve several comments.
5166         (i386_register_u_addr): Change signature and rename to
5167         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5168         ubase variable.
5169
5170 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5171
5172         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5173         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5174         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5175         deprecated_extract_return_value.
5176         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5177         rename mips_o32o64_push_arguments.
5178         (mips_gdbarch_init): Update.
5179         (mips_extract_return_value): Delete.
5180         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5181         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5182         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5183         (mips_n32n64_extract_return_value): Clone
5184         mips_extract_return_value.
5185         (mips_store_return_value): Delete.
5186         (mips_o32_store_return_value): Clone mips_store_return_value.
5187         (mips_o64_store_return_value): Clone mips_store_return_value.
5188         (mips_eabi_store_return_value): Clone mips_store_return_value.
5189         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5190
5191 2002-08-18  Aidan Skinner <aidan@velvet.net>
5192
5193         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5194         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5195                 
5196 2002-08-18  Aidan Skinner <aidan@velvet.net>
5197
5198         * ada-lang.c: Run through gdb_indent.sh.
5199         * ada-lang.h: Run through gdb_indent.sh.
5200         * ada-tasks.c: Run through gdb_indent.sh.
5201         * ada-typeprint.c: Run through gdb_indent.sh.
5202         * ada-valprint.c: Run through gdb_indent.sh.
5203
5204 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5205
5206         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5207         ABI.
5208
5209 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5210
5211         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5212
5213         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5214         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5215
5216         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5217         write_register_gen instead of write_register_bytes.
5218
5219         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5220         i[3456]-*-osf1mk* configurations have been made obsolete.
5221         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5222         i[3456]86-*-osf1mk* hosts obsolete.
5223         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5224         targets obsolete.
5225         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5226         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5227         config/i386/i386m3.mt, config/i386/nm-m3.h,
5228         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5229         config/i386/i386mk.mh, config/i386/i386mk.mt,
5230         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5231         obsolete.
5232         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5233         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5234         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5235
5236 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5237
5238         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5239         (hppa_value_returned_from_stack): Declare.
5240         (hppa_extract_return_value): Declare.
5241         * config/pa/hppa.mt: New file.
5242         * configure.tgt: Recognize hppa*-*-*.
5243         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5244
5245 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5246
5247         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5248         comment.
5249
5250 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5251
5252         * top.c (gdb_rl_operate_and_get_next): Make sure
5253         operate-and-get-next functions correctly even when the history
5254         list is completely filled.
5255
5256 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5257
5258         * MAINTAINERS (Target Instruction Set Architectures): Rename
5259         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5260         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5261         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5262         already listed under Host/Native.
5263
5264         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5265         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5266         mips*-*-*.
5267
5268 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5269
5270         * config/ia64/ia64.mt: New file.
5271         * config/alpha/alpha.mt: New file.
5272         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5273         ia64-linux-gnu.  Mention that ia64-elf is broken.
5274         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5275
5276 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5277
5278         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5279         generic_func_frame_valid instead of func_frame_valid.
5280
5281 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5282
5283         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5284         procfs appears to be broken when debugging on multi-processor
5285         machines. So enable software single stepping in order to avoid
5286         using the procfs interface to do next/step operations, using
5287         internal breakpoints instead.
5288
5289         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5290         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5291         make this pc address equal to the value it would have if the
5292         system stepping capability was used. Also set a new flag used
5293         to ensure that we don't readjust the PC one more time later.
5294
5295         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5296         address by DECR_PC_AFTER_BREAK when software single step is
5297         in use for this architecture, as this has already been taken
5298         care of in handle_inferior_event().
5299
5300 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5301
5302         * infrun.c (handle_inferior_event): Minor reformatting, to make
5303         a rather long condition expression easier to read.
5304
5305 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5306
5307         * Makefile.in (gdbtk.o): Move to end of file.
5308         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5309         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5310         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5311         (gdbtk-wrapper.o, gdbres.o): Ditto.
5312
5313 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5314
5315         * Makefile.in (copying.o): Separate out compile rule.
5316         (hpux-thread.o, procfs.o, signals.o): Ditto.
5317         (v850ice.o, z8k-tdep.o): Ditto.
5318         (tui-file.o): Move to TUI section.
5319         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5320         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5321
5322 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5323
5324         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5325         skip_trampoline_code, for better namespace-proofing.   
5326
5327         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5328
5329 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5330
5331         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5332
5333 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5334
5335         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5336         signal, check whether we hit a breakpoint before checking for a
5337         single step breakpoint. Otherwise, GDB fails to notice that a
5338         breakpoint has been hit when stepping onto a breakpoint.
5339
5340 2002-08-16  Keith Seitz  <keiths@redhat.com>
5341
5342         * gdb-events.sh (clear_gdb_event_hooks): New function.
5343         * gdb-events.c: Regenerate.
5344         * gdb-events.h: Regenerate.
5345
5346 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5347
5348         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5349         not_a_sw_breakpoint.
5350         * breakpoint.h (bpstat_stop_status): Add parameter names.
5351
5352 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5353
5354         * remote.c (remote_insert_hw_breakpoint)
5355         (remote_remove_hw_breakpoint): Fix calculation of length field
5356         for Z-packet.
5357
5358 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5359
5360         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5361         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5362         (supply_fpregset): Ditto.
5363         
5364         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5365         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5366         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5367         (TARGET_READ_SP): Delete.
5368         (DO_REGISTERS_INFO): Delete.
5369         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5370         Delete.
5371         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5372         from macros to functions.
5373
5374         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5375         (mips_register_convertible, mips_register_convert_to_virtual,
5376         mips_register_convert_to_raw): Make static.
5377         (mips_read_sp): New function.
5378         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5379         (mips_do_registers_info): Make static.
5380         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5381         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5382         (mips_register_convert_from_type, mips_register_convert_to_type):
5383         New functions.
5384         (mips_gdbarch_init): Set up function_start_offset, 
5385         register_virtual_size, pc_in_sigtramp.
5386
5387 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5388
5389         * infcmd.c (vector_info): New function.
5390         (_initialize_infcmd): Add command "info vector".
5391         (print_vector_info): New function.
5392
5393         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5394         * gdbarch.h, gdbarch.c: Regenerate.
5395
5396 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5397
5398         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5399         ``print_all''.  Only print vector registers when ``print_all''.
5400
5401 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5402
5403         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5404         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5405
5406         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5407         Add `args' parameter.
5408         * gdbarch.h, gdbarch.c: Regenerate.
5409         
5410         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5411         
5412         * infcmd.c (float_info): Call print_float_info.
5413         (print_float_info): New function.  By default, print the
5414         floating-point registers.
5415
5416         * arch-utils.h (default_print_float_info): Delete declaration.
5417         * arch-utils.c (default_print_float_info): Delete function.
5418         
5419 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5420
5421         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5422         out define.
5423
5424         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5425         FRAME.
5426
5427         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5428         * configure.host: Make i[3456]86-*-aix host obsolete.
5429         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5430         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5431         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5432         config/i386/xm-i386aix.h: Make files obsolete.
5433         * i386aix-nat.c: Make file obsolete.
5434         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5435         (i386aix-nat.o): Make target obsolete.
5436
5437         * config/i386/nm-gnu.h: Removed.
5438         * config/i386/nm-i386gnu.h: New file.
5439         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5440         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5441         Moved here from ...
5442         * config/i386/tm-i386gnu.h: ... here.  Removed.
5443         * config/i386/xm-i386gnu.h: Removed.
5444         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5445         (NAT_FILE): Set to nm-i386gnu.h.
5446         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5447         * i386-tdep.c: New file.
5448         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5449         (i386gnu-tdep.o): Specify dependencies.
5450
5451 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5452
5453         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5454         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5455         Adjust a few comments to reflect reality a bit closer.
5456         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5457         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5458         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5459         target_insert_watchpoint, target_remove_watchpoint):
5460         Move defines to ...
5461         * config/i386/nm-i386sco5.h: ... here.
5462         (kernel_u_size): Add prototype.  Improve a few comments and add
5463         protection against multiple inclusion.
5464         
5465         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5466         out define.
5467
5468         * uw-thread.c (SP_ARG0): Define if not already defined.
5469         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5470
5471         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5472
5473         * config/i386/tm-i386.h: Don't include "regcache.h".
5474
5475         * i387-tdep.h (i387_print_float_info): New prototype.
5476         * i387-tdep.c (print_i387_value, print_i387_ext,
5477         print_i387_status_word, print_i387_control_word): Add `struct
5478         ui_file *' argument and use it for output.
5479         (i387_print_float_info): Renamed from i387_float_info.  Add
5480         `struct gdbarch *' and `struct ui_file *' arguments and use the
5481         latter for output.
5482         * i386-tdep.c: Include "i387-tdep.h".
5483         (i386_gdbarch_init): Set print_float_info.
5484         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5485         (FLOAT_INFO): Remove define.
5486
5487 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5488
5489         * mips-tdep.c (mips_push_arguments): Rename to
5490         mips_eabi_push_arguments, and tune for EABI.
5491         (MIPS_REGS_HAVE_HOME_P): Delete.
5492         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5493         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5494         Delete references to mips_regs_have_home_p.
5495
5496 2002-08-14  Keith Seitz  <keiths@redhat.com>
5497
5498         * Makefile.in (install-gdbtk): Create insight plugin directory.
5499         Install plugins.tcl file.
5500
5501 2002-08-14  Keith Seitz  <keiths@redhat.com>
5502
5503         * configure.in: Move SUBDIRS to near top of the file so that
5504         --enable options may add things to it.
5505         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5506         * configure: Regenerate.
5507
5508 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5509
5510         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5511         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5512         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5513
5514 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5515
5516         * vax-tdep.c (vax_get_saved_register): Delete function.
5517         (vax_gdbarch_init): Update.
5518         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5519         (ns32k_gdbarch_init): Update.
5520         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5521         (alpha_gdbarch_init): Update.
5522
5523 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5524
5525         * regcache.c (init_regcache_descr): Overallocate the
5526         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5527         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5528         nr_raw_registers.
5529         (set_register_cached): Add range checking assertions.  Use
5530         current_regcache.
5531
5532 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5533
5534         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5535         numbers for MMX registers.
5536
5537 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5538
5539         * i386-tdep.c (i386_gdbarch_init): Use
5540         generic_unwind_get_saved_register.
5541
5542 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5543
5544         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5545         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5546         target vector.
5547         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5548         Delete.  Add comment regarding this now-deleted target method.
5549
5550 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5551
5552         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5553         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5554         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5555         real PC and the page number (if it's within the memory bank window).
5556         (m68hc11_pseudo_register_write): Likewise when saving.
5557         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5558         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5559         (m68hc11_register_raw_size): And use 32-bit for it.
5560         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5561         16K memory bank is used by the prog; also use the virtual pc.
5562
5563 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5564
5565         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5566         (m68hc11_gdbarch_init): Install it in gdbarch.
5567         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5568         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5569         (MSYMBOL_SIZE): New for documentation.
5570         (insn_return_kind): Enum to specify how a function returns.
5571         (frame_extra_info): Cleanup and record the return mode.
5572         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5573         register in address computation.
5574         (m68hc11_get_return_insn): New to obtain the return instruction used
5575         by the function.
5576         (m68hc11_frame_init_saved_regs): Take into account the return
5577         instruction used by the function for far and interrupt functions.
5578         (m68hc11_init_extra_frame_info): Take into account page register.
5579         (m68hc11_frame_args_address): Adjust according to the return mode.
5580         (show_regs): Print page register only when it's used.
5581
5582 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5583
5584         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5585         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5586         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5587         registers.
5588         (m68hc11_register_raw_size): Likewise.
5589
5590 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5591
5592         * i386-tdep.c (i386_register_name): Handle mmx registers.
5593         (mmx_regnum_p): New function.
5594         (i386_mmx_names): New array.
5595         (mmx_num_regs): New variable.
5596         (i386_pseudo_register_read): New function.
5597         (i386_pseudo_register_write): New function.
5598         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5599
5600         * regcache.c (regcache_raw_read_unsigned): New function.
5601         (regcache_raw_read_signed): New function.
5602         * regcache.h (regcache_raw_read_unsigned): Declare.
5603         (regcache_raw_read_signed): Declare.
5604
5605 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5606
5607         * regcache.c (regcache_raw_read_as_address): Delete function.
5608         (regcache_cooked_read_signed): New function.
5609         (regcache_cooked_read_unsigned): New function.
5610         * regcache.h (regcache_cooked_read_signed): Declare.
5611         (regcache_cooked_read_unsigned): Declare.
5612         (regcache_raw_read_as_address): Delete declaration.
5613
5614         * blockframe.c (generic_read_register_dummy): Use
5615         regcache_cooked_read_unsigned.
5616         * i386-tdep.c (i386_extract_struct_value_address): Use
5617         regcache_cooked_read_unsigned.
5618
5619 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5620
5621         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5622         double sizes according to ELF ABI flags.
5623         (gdbarch_tdep): Record elf_flags.
5624
5625 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5626
5627         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5628         (m6812_prolog): They can appear in 68HC12 function prologue.
5629         (m68hc11_frame_chain): Cleanup.
5630
5631 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5632
5633         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5634         declarations.
5635         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5636         (i386_linux_register_raw_size): Delete function.
5637         (i386_linux_init_abi): Update.
5638         * i386-tdep.c (i386_register_raw_size): Delete function.
5639         (i386_register_byte): Delete function.
5640         (i386_gdbarch_init): Update.
5641         (i386_register_size): Delete array.
5642         (i386_register_offset): Delete array.
5643
5644         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5645         (REGISTER_RAW_SIZE): Delete macro.
5646         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5647         (REGISTER_BYTE): Delete macro.
5648
5649 2002-08-11  Aidan Skinner <aidan@velvet.net>
5650
5651         * ada-lang.c (ada_lookup_partial_symbol)
5652         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5653         prototype names so that grep ^func works properly.
5654
5655         * ada-lang.c (ada_array_element_type)
5656         (ada_lookup_partial_symbol): Fix typos in parameter list.
5657
5658         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5659         Fix prototype names so that grep ^func works properly.
5660         
5661 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5662             Elena Zannoni  <ezannoni@redhat.com>
5663             Martin M. Hunt  <hunt@redhat.com>
5664
5665         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5666         (build_builtin_type_vec128i): Set the vector bit.
5667         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5668         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5669         (build_builtin_type_vec64): New function.
5670         (build_builtin_type_vec64i): New function.
5671         (build_gdbtypes): Initialize builtin_type_vec64 and
5672         builtin_type_vec64i.
5673
5674 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5675
5676         * regcache.c (regcache_dump): Compare the register offset
5677         with REGISTER_BYTE.
5678         * arch-utils.c (generic_register_byte): New function.
5679         * arch-utils.h (generic_register_byte): Declare.
5680         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5681         * gdbarch.h, gdbarch.c: Regenerate.
5682
5683 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5684
5685         * regcache.c: Include "gdbcmd.h"
5686         (_initialize_regcache): Add commands "maintenance print
5687         registers", "maintenance print raw-registers" and "maintenance
5688         print cooked-registers".
5689         (enum regcache_dump_what): Define.
5690         (dump_endian_bytes): New function.
5691         (regcache_dump): New function.
5692         (regcache_print): New function.
5693         (maintenance_print_registers): New function.
5694         (maintenance_print_raw_registers): New function.
5695         (maintenance_print_cooked_registers): New function.
5696         * Makefile.in (regcache.o): Update dependencies.
5697
5698 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5699
5700         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5701         (mips_push_arguments): Correct some comments.  Use paddr_nz
5702         for printing addresses in debug output.  Replace static
5703         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5704         (mips_n32n64_push_arguments): New function, cloned from
5705         mips_push_arguments and tuned for the n32/n64 ABI.
5706         (mips_push_register): Buffer needs dynamic allocation.
5707         (mips_print_register): Ditto.
5708         (do_gp_register_row): Ditto.
5709         (mips_store_return_value): Ditto.
5710         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5711
5712 2002-08-09  Don Howard  <dhoward@redhat.com>
5713
5714         * memattr.c (mem_info_command): Print special case of upper bound
5715         as max CORE_ADDR + 1.
5716
5717 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5718
5719         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5720         returns structs by ref if they're too big to fit in two registers.
5721
5722 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5723
5724         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5725         saved regs value.
5726         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5727         mips_find_saved_regs().
5728         (mips_pop_frame): Likewise.
5729
5730 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5731
5732         * blockframe.c (frame_saved_regs_register_unwind): Revise
5733         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5734         frames are in use.
5735
5736 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5737         
5738         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5739         T-packets; the 'a' is not taken as a register number.
5740         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5741         (remote_stopped_data_address): New functions; add to target
5742         vector.
5743         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5744         prototypes to match other implementations of this
5745         function. replace integer argument with pointer -- the length
5746         field in the Z-packet is the length of what is pointed to or 1 if
5747         pointer is null. Add to target vector.
5748         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5749         target vector.
5750
5751         From Mark Salter:
5752         * remote.c (remote_wait): Add support to extract optional
5753         watchpoint information from T-packet. Ignore unrecognized
5754         optional info in T-packet.
5755         (remote_async_wait): Ditto.
5756
5757 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5758
5759         * cli/cli-dump.c: Change fopen modes to use binary open modes
5760         as defined in include/fopen-bin.h throughout.
5761
5762 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5763
5764         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5765
5766 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5767
5768         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5769         assertion failure by returning early after a warning.
5770
5771 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5772
5773         * mips-tdep.c (mips_find_saved_regs): Make static.
5774         (mips_frame_init_saved_regs): New function.
5775         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5776         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5777         (mips_find_saved_regs): Delete declaration.
5778
5779 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5780
5781         * remote.c (remote_wait, remote_async_wait): Change
5782         thread_num from int to ULONGEST.
5783         (unpack_varlen_hex): Change result parameter from
5784         int * to ULONGEST *.
5785
5786 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5787
5788         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5789         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5790         powerpc*-*-*.
5791         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5792
5793 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5794
5795         * gcore.c (override_derive_stack_segment): Delete variable.
5796         (preempt_derive_stack_segment): Delete function.
5797         (derive_stack_segment): Delete function.
5798         (default_derive_stack_segment): Renamed to derive_stack_segment.
5799         (override_derive_heap_segment): Delete variable.
5800         (preempt_derive_heap_segment): Delete function.
5801         (derive_heap_segment): Delete function.
5802         (default_derive_heap_segment): Rename to derive_heap_segment.
5803
5804 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5805
5806         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5807         * mips-tdep.c (mips_EABI_use_struct_convention, 
5808         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5809         New functions.  (mips_use_struct_convention): Delete.
5810         (mips_gdbarch_init): set use_gdbarch_convention.
5811
5812 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5813
5814         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5815         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5816         mips_o32_reg_struct_has_addr): New functions.
5817         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5818
5819 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5820
5821         * regcache.c (pseudo_register): Delete function.
5822         (fetch_register): Delete function.
5823         (store_register): Delete function.
5824         (regcache_raw_read, legacy_read_register_gen): Use
5825         target_fetch_registers instead of fetch_register.
5826         (legacy_write_register_gen, regcache_raw_write): Use
5827         target_store_register instead of store_register.
5828         (write_register_bytes): Ditto.
5829
5830         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5831         (STORE_PSEUDO_REGISTER): Delete.
5832         * gdbarch.h, gdbarch.c: Regenerate.
5833
5834 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5835
5836         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5837         write dump file binary.
5838
5839 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5840
5841         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5842         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5843         (mips_gdbarch_init): Set N32 target to be mips64.
5844
5845 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5846
5847         * frame.c (find_saved_register): Break out of loop once saved
5848         register address is found.  Don't mention sparc in loop comment
5849         anymore.
5850
5851 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5852
5853         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5854         mips_default_saved_regsize to 8.
5855
5856 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5857
5858         * gcore.c: Do not include <sys/procfs.h>.
5859         * Makefile.in (gcore.o): Update dependencies.
5860
5861 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5862
5863         * configure.tgt: Make arc-*-* obsolete.
5864         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5865         * MAINTAINERS: Make arc-elf obsolete.
5866         * arc-tdep.c: Make file obsolete.
5867         * config/arc/arc.mt: Ditto.
5868         * config/arc/tm-arc.h: Ditto.
5869
5870 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5871
5872         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5873
5874 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5875
5876         * mcore-tdep.c (mcore_gdbarch_init): Use
5877         generic_unwind_get_saved_register instead of
5878         generic_get_saved_register.
5879         * v850-tdep.c (v850_gdbarch_init): Ditto.
5880         * frv-tdep.c (frv_gdbarch_init): Ditto.
5881         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5882         * s390-tdep.c (s390_gdbarch_init): Ditto.
5883         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5884         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5885         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5886
5887 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5888
5889         * objfiles.h: Add missing #include "symfile.h"
5890
5891         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5892
5893 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5894
5895         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5896         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5897         of FIELD_BITSIZE.
5898
5899 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5900
5901         * NEWS: Cleanup and nitpick.
5902
5903 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5904
5905         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5906
5907 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5908
5909         * Makefile.in (gdbtk-bp.o): Update dependencies.
5910         (gdbtk-register.o): Ditto.
5911         (gdbtk-varobj.o): Ditto.
5912
5913 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5914
5915         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5916         m68hc11_fetch_pseudo_register.
5917         (m68hc11_pseudo_register_write): Replace
5918         m68hc11_store_pseudo_register.
5919         (m68hc11_gdbarch_init): Update.
5920
5921 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5922
5923         * gdbarch.sh: Include "gdb_string.h".
5924         * gdbarch.c: Regenerate.
5925
5926         * regcache.c: Include "gdb_string.h".
5927         * ax-general.c: Ditto.
5928         * varobj.c: Ditto.
5929         * std-regs.c: Ditto.
5930         * fbsd-proc.c: Ditto.
5931         * thread.c: Ditto.
5932
5933         * Makefile.in (regcache.o): Update dependencies.
5934         (thread.o, gdbarch.o): Ditto.
5935         (ax-general.o, gdbarch.o): Ditto.
5936         (varobj.o, std-regs.o): Ditto.
5937         (fbsd-proc.o): Specify dependencies.
5938
5939 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5940
5941         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5942         regnum.
5943         (regcache_cooked_write): Ditto.
5944
5945 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5946
5947         * regcache.c (regcache_cooked_read): New function.
5948         (regcache_cooked_write): New function.
5949         (read_register_gen): Rewrite using regcache_cooked_read.
5950         (write_register_gen): Rewrite using regcache_cooked_write.
5951
5952         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5953         Declare.
5954
5955 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5956
5957         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5958         Replace the architecture methods register_read and register_write.
5959         * gdbarch.h, gdbarch.c: Regenerate.
5960         * regcache.c (init_regcache_descr): Update.
5961         (read_register_gen): Update.
5962         (write_register_gen): Update.
5963         (supply_register): Update comment.
5964
5965         * sh-tdep.c (sh_gdbarch_init): Update.
5966         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5967         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5968         pointer.  Update code.
5969         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5970         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5971         void pointer.  Update code.
5972         (sh64_register_write): Delete.
5973         (sh4_register_read): Delete.
5974         (sh64_register_read): Delete.
5975         (sh4_register_write): Delete.
5976         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5977         void pointer, `to' parameter a void pointer.
5978         (sh_sh64_register_convert_to_raw): Ditto.
5979
5980 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5981
5982         * mips-tdep.c (mips_register_virtual_type): Use architecture
5983         invariant return values.
5984
5985 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5986
5987         * linux-proc.c: Include "gdb_string.h".
5988         * Makefile.in (linux-proc.o): Update dependency list.
5989
5990 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5991
5992         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5993         comment.
5994
5995 2002-08-01  Grace Sainsbury  <graces@redhat.com>
5996
5997         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5998         to_insert_watchpoint, to_remove_watchpoint,
5999         to_stopped_by_watchpoint, to_stopped_data_address,
6000         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6001         target vecctor. Define their corresponding macros so they call
6002         them.
6003         
6004         * target.c: Add default and debug versions of for
6005         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6006         to_insert_watchpoint, to_remove_watchpoint,
6007         to_stopped_by_watchpoint, to_stopped_data_address,
6008         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6009
6010 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6011
6012         * mips-tdep.c (mips_register_virtual_type): New function.
6013         (mips_gdbarch_init): Register mips_register_virtual_type()
6014         with gdbarch machinery.
6015         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6016         this file instead of tm-bigmips.h.
6017         (MIPS_REGSIZE): Delete this macro.
6018         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6019         multiarch version in mips-tdep.c will be found.
6020
6021 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6022
6023         * NEWS: Menion that CHILL has been made obsolete.
6024
6025         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6026         * stabsread.c (read_range_type): Ditto.
6027         * gdbtypes.h: Ditto.
6028         * language.c (binop_type_check): Ditto.
6029         (binop_result_type): Ditto.
6030         (integral_type): Ditto.
6031         (character_type): Ditto.
6032         (string_type): Ditto.
6033         (boolean_type): Ditto.
6034         (structured_type): Ditto.
6035         (lang_bool_type): Ditto.
6036         (binop_type_check): Ditto.
6037         * language.h (_LANG_chill): Ditto.
6038         * dwarfread.c (set_cu_language): Ditto.
6039         * dwarfread.c (CHILL_PRODUCER): Ditto.
6040         * dwarfread.c (handle_producer): Ditto.
6041         * expression.h (enum exp_opcode): Ditto.
6042         * eval.c: Ditto for comments.
6043         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6044         * expprint.c (print_subexp): Ditto.
6045         (print_subexp): Ditto.
6046         * valops.c (value_cast): Ditto.
6047         (search_struct_field): Ditto.
6048         * value.h (COERCE_VARYING_ARRAY): Ditto.
6049         * symfile.c (init_filename_language_table): Ditto.
6050         (add_psymbol_with_dem_name_to_list): Ditto.
6051         * valarith.c (value_binop): Ditto.
6052         (value_neg): Ditto.
6053         * valops.c (value_slice): Ditto.
6054         * symtab.h (union language_specific): Ditto.
6055         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6056         (SYMBOL_DEMANGLED_NAME): Ditto.
6057         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6058         * defs.h (enum language): Ditto.
6059         * symtab.c (got_symtab): Ditto.
6060         * utils.c (fprintf_symbol_filtered): Ditto.
6061
6062         * ch-typeprint.c: Make file obsolete.
6063         * ch-valprint.c: Make file obsolete.
6064         * ch-lang.h: Make file obsolete.
6065         * ch-exp.c: Make file obsolete.
6066         * ch-lang.c: Make file obsolete.
6067
6068         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6069         CHILL_LIB.
6070         (TARGET_FLAGS_TO_PASS): Ditto.
6071         (CHILLFLAGS): Obsolete.
6072         (CHILL): Obsolete.
6073         (CHILL_FOR_TARGET): Obsolete.
6074         (CHILL_LIB): Obsolete.
6075         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6076         ch-valprint.c.
6077         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6078         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6079         ch-lang.o.
6080         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6081         targets.
6082
6083 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6084
6085         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6086         This does not change anything at the moment, but will be helpful
6087         later when full Ada support is integrated.
6088
6089 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6090
6091         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6092         help message.
6093
6094 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6095
6096         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6097         and save it in a local variable.  Use variable in later test.
6098
6099 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6100
6101         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6102         test.  (Thanks to Daniel Jacobowitz.)
6103         
6104 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6105
6106         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6107         (mips_abi_strings): Add "n64".
6108         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6109
6110 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6111
6112         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6113         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6114
6115 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6116
6117         * utils.c (host_pointer_to_address, address_to_host_pointer):
6118         Use gdb_assert() instead of explicit call to internal_error().
6119
6120 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6121
6122         * Makefile.in (rs6000-nat.o): Update dependencies.
6123
6124         From Nicholas Duffek:
6125         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6126         (aix-thread.o): New rule.
6127         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6128         * config/powerpc/aix432.mh: New file.
6129
6130 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6131
6132         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6133         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6134         (fetch_core_registers, ppc_linux_supply_gregset)
6135         (ppc_linux_supply_fpregset): New functions.
6136         (ppc_linux_regset_core_fns): New.
6137         (_initialize_ppc_linux_tdep): Call add_core_fns.
6138         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6139         and ppc_linux_supply_gregset.
6140         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6141         (supply_fpregset): Call ppc_linux_supply_fpregset.
6142         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6143         corelow.o.
6144         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6145
6146 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6147
6148         * symtab.c (lookup_symbol): Demangle before lowercasing.
6149
6150 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6151
6152         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6153         declaration.
6154         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6155         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6156         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6157         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6158         "gdb_string.h".
6159         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6160         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6161         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6162         (avr-tdep.o, mon960-rom.o): Ditto.
6163         (aout_stabs_gnu_h): Define.
6164         (symtab_h): Remove $(gdb_obstack_h).
6165
6166 2002-07-30  Jim Blandy  <jimb@redhat.com>
6167
6168         Patch from David Carlton <carlton@math.stanford.edu>:
6169         * gdbinit.in: Move the `dir' commands that add GDB's own source
6170         directory to the search path to the end, so that the `gdb' source
6171         directory will be searched first.
6172
6173 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6174
6175         * gdb_obstack.h: New file.
6176         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6177         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6178         * objfiles.h: Include "gdb_obstack.h".
6179         * Makefile.in (gdb_obstack_h): Define.
6180         (symtab_h): Add $(gdb_obstack_h).
6181         (objfiles_h): Add $(gdb_obstack_h).
6182         
6183         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6184         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6185         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6186         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6187         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6188         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6189         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6190         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6191
6192         * Makefile.in (bcache.o): Update dependencies.
6193         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6194         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6195         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6196         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6197         (stabsread.o, symfile.o, symmisc.o): Ditto.
6198         (symtab.o, typeprint.o, macroexp.o): Ditto.
6199         (macrotab.o, mdebugread.o): Ditto.
6200         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6201         (coff_ecoff_h, aout_aout64_h): Define.
6202         (aout_stabs_gnu_h, libaout_h): Define.
6203
6204 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6205
6206         * regcache.c (struct regcache_descr): Rename nr_registers to
6207         nr_cooked_registers.  Revise comments describing the structure
6208         member fields.
6209         (init_regcache_descr): Update.
6210         (init_legacy_regcache_descr): Update.
6211         (read_register_gen, write_register_gen): When a cooked register in
6212         the raw register range, directly access the value from the raw
6213         register cache.
6214
6215 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6216
6217         * z8k-tdep.c: Do not include "obstack.h".
6218         * h8300-tdep.c, h8500-tdep.c: Ditto.
6219         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6220         * valprint.c, v850-tdep.c: Ditto.
6221         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6222         * mn10200-tdep.c: Ditto.
6223
6224         * Makefile.in (z8k-tdep.o): Update dependencies.
6225         (m68hc11-tdep.o, valprint.o): Ditto.
6226         (v850-tdep.o, d10v-tdep.o): Ditto.
6227         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6228         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6229         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6230         (sh_opc_h, gdb_sim_sh_h): Define.
6231         (elf_sh_h, elf_bfd_h): Define.
6232         (opcode_m68hc11_h): Define.
6233         (OPCODES_SRC, OPCODES_DIR): define.
6234         (OPCODES): Use $(OPCODES_DIR).
6235         (gdb_sim_d10v_h): Rename sim_d10v_h.
6236         (gdb_sim_arm_h): Rename sim_arm_h.
6237
6238 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6239
6240         * utils.c (host_pointer_to_address, address_to_host_pointer):
6241         Change internal_error() message to indicate function responsible
6242         for the error.
6243
6244 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6245
6246         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6247         calls to local_hex_string_custom().
6248
6249 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6250
6251         * irix5-nat.c: Move IRIX shared library support from here...
6252         * solib-irix.c: ...to here.  Revised substantially to work with
6253         generic solib framework.
6254
6255         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6256         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6257         * mips-irix-tdep.c: New file.
6258
6259         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6260         (mips-irix-tdep.o, solib-irix.o): New rules.
6261         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6262         solib-irix.o.
6263         * config/mips/irix6.mt (TDEPFILES): Likewise.
6264         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6265
6266 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6267
6268         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6269         disabled (via ``#if 0'') includes.
6270
6271 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6272
6273         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6274         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6275         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6276         Add support for the fpscr register.
6277         * rs6000-nat.c (regmap, fetch_inferior_registers)
6278         (store_inferior_registers, fetch_core_registers): Likewise.
6279
6280 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6281
6282         * rs6000-nat.c (language.h): Include.
6283         (special_regs): Delete this array.
6284         (regmap): New function.
6285         (fetch_register, store_register):  Use regmap() to map gdb
6286         register numbers to ptrace register numbers.  Also, use
6287         outputs from regmap() to make decisions regarding type of
6288         ptrace() call to make.  In particular, don't compare against
6289         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6290         (fetch_inferior_registers, store_inferior_registers): Where
6291         possible, obtain register numbers from tdep struct.  Don't
6292         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6293         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6294         (LAST_UISA_SP_REGNUM): Delete.
6295         
6296 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6297
6298         * rs6000-nat.c (ppc-tdep.h): Include.
6299         (fetch_registers, store_register, fetch_core_registers): Don't
6300         access registers[] directly.  Instead, use supply_register() or
6301         regcache_collect() as appropriate.
6302         (find_toc_address): Format hex address with local_hex_string().
6303
6304 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6305
6306         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6307         bfd/elf32-frv.c.
6308
6309 2002-07-24  Tom Tromey  <tromey@redhat.com>
6310
6311         * jv-exp.y: Marked all strings with _().
6312         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6313         internal_error.
6314         (MethodInvocation, CastExpression, parse_number, yyerror,
6315         java_type_from_name, push_expression_name, yylex): Typo fixes.
6316
6317 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6318
6319         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6320         (tee_file_flush, tee_file_write, tee_file_fputs)
6321         (tee_file_isatty): New.
6322         * ui-file.h (tee_file_new): Add prototype.
6323
6324 2002-07-24  Aidan Skinner <aidan@velvet.net>
6325
6326         * ada-lang.c: Change k&r style function definitions to prototyped
6327         form.
6328         * ada-typeprint.c: Change k&r style function definitions to prototyped
6329         form.
6330         * ada-valprint.c: Change k&r style function definitions to prototyped
6331         form.
6332         
6333 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6334
6335         * README: Remove reference to remote-bug.
6336         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6337         remote-bug.c.
6338         (m88k-nat.o): Delete rule.
6339         (m88k-tdep.o): Delete rule.
6340         (remote-bug.o): Delete rule.
6341         * MAINTAINERS: Mark as obsolete.
6342         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6343         * m88k-tdep.c: Make file obsolete.
6344         * config/m88k/m88k.mh: Ditto.
6345         * config/m88k/delta88v4.mh: Ditto.
6346         * config/m88k/delta88v4.mt: Ditto.
6347         * config/m88k/delta88.mt: Ditto.
6348         * config/m88k/delta88.mh: Ditto.
6349         * remote-bug.c: Ditto.
6350         * config/m88k/tm-delta88.h: Ditto.
6351         * config/m88k/nm-delta88v4.h: Ditto.
6352         * config/m88k/xm-delta88.h: Ditto.
6353         * config/m88k/xm-dgux.h: Ditto.
6354         * config/m88k/tm-m88k.h: Ditto.
6355         * config/m88k/nm-m88k.h: Ditto.
6356         * config/m88k/tm-delta88v4.h: Ditto.
6357         * m88k-nat.c: Ditto.
6358         * cxux-nat.c: Ditto.
6359         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6360         and m88*-*-* obsolete.
6361         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6362         m88*-*-* obsolete.
6363
6364 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6365
6366         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6367         constant.  Same for local pointer variables.
6368         (extract_signed_integer): Ditto.
6369         * defs.h (extract_unsigned_integer): Update.
6370         (extract_signed_integer): Update.
6371
6372 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6373
6374         * regcache.c (regcache_raw_write): Change buf parameter to a
6375         constant void pointer.
6376         (regcache_raw_read): Change buf parameter to a void pointer.
6377         (legacy_write_register_gen): Change myaddr parameter a constant
6378         void pointer.
6379         (supply_register): Change val parameter to a const void pointer.
6380         * regcache.h (regcache_raw_write): Update declaration.
6381         (regcache_raw_read): Update declaration.
6382         (supply_register): Update declaration.
6383
6384 2002-07-24  Tom Tromey  <tromey@redhat.com>
6385
6386         * defs.h (gdb_readline_wrapper): Declare.
6387         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6388         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6389         * top.c (gdb_readline_wrapper): New function.
6390         (command_line_input): Use it.
6391
6392 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6393
6394         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6395         regcache_read and regcache_write.
6396         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6397         * regcache.c: Update.
6398         * sh-tdep.c (sh64_push_arguments): Update comment.
6399         (sh_pseudo_register_read): Update.
6400         (sh_pseudo_register_write): Update.
6401         (sh4_register_read): Update.
6402         (sh4_register_write): Update.
6403         (sh64_pseudo_register_read): Update.
6404         (sh64_pseudo_register_write): Update.
6405         (sh64_register_read): Update.
6406         (sh64_register_write): Update.
6407         * i386-tdep.c (i386_extract_return_value): Update.
6408         (i386_extract_struct_value_address): Update.
6409         (i386_extract_return_value): Update.
6410         * blockframe.c (generic_read_register_dummy): Update.
6411         (generic_call_dummy_register_unwind): Update
6412         * infrun.c (write_inferior_status_register): Update.
6413
6414 2002-07-23  Jim Blandy  <jimb@redhat.com>
6415
6416         * parser-defs.h (expression_context_pc): Make this extern.
6417         (Thanks to Michael Snyder.)
6418
6419 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6420
6421         GDB 5.2.1 released from 5.2 branch.
6422         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6423         * README: Update to mention 5.2.1.
6424
6425 2002-07-23  Mark Salter  <msalter@redhat.com>
6426
6427         * remote.c (remote_read_bytes): Fix check for error.
6428
6429 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6430
6431         * aix-thread.c (language.h): Include.
6432         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6433         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6434         Print newlines at end of debug messages.
6435         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6436         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6437
6438 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6439
6440         * aix-thread.c (ppc-tdep.h): Include.
6441         (special_register_p): New function.
6442         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6443         (store_regs_user_thread): Use register number information from
6444         gdbarch_tdep struct instead of hardcoded offsets relative to
6445         FIRST_UISA_SP_REGNUM.
6446         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6447         special_register_p() instead of using FPLAST_REGNUM and
6448         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6449         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6450         will be MQ's register number.
6451
6452 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6453
6454         * aix-thread.c (ops): Rename to aix_thread_ops.
6455         (base_ops): Rename to base_target.
6456         (ops_attach): Rename to aix_thread_attach.
6457         (ops_detach): Rename to aix_thread_detach.
6458         (ops_resume): Rename to aix_thread_detach.
6459         (ops_wait):   Rename to aix_thread_wait.
6460         (ops_kill):   Rename to aix_thread_kill.
6461         (init_ops):   Rename to init_aix_thread_ops.
6462         (ops_fetch_register): Rename to aix_thread_fetch_register.
6463         (ops_store_register): Rename to aix_thread_store_register.
6464         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6465         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6466         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6467         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6468         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6469         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6470         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6471         (store_regs_lib):  Rename to store_regs_user_thread.
6472         (store_regs_kern): Rename to store_regs_kernel_thread.
6473
6474 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6475
6476         * aix-thread.c (ops_prepare_to_store): Eliminate.
6477         (init_ops): Don't initialize ops.prepare_to_store.
6478         (store_regs_kern): Pre-fetch register buffers from child, 
6479         because some registers may not be in the cache.  Copy
6480         regs from register cache only if they are cached.
6481         (store_regs_lib): Copy regs from register cache only
6482         if they are cached.
6483         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6484         fill_gprs64): Ditto.
6485
6486 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6487
6488         * aix-thread.c (gdb_assert.h): Include.
6489         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6490         register sizes (from register cache) match size of buffer holding
6491         register data.
6492         (fill_sprs32): Change parameter types to match those in the ptrace()
6493         buffer.
6494         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6495         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6496
6497 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6498
6499         * aix-thread.c (supply_sprs64): Cosmetic change.
6500         (supply_sprs32): Cosmetic change.
6501         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6502         (fill_sprs64): Use regcache_collect instead of read_register.
6503         (store_regs_lib): Use regcache_collect instead of 
6504         read_register.  Use fill_sprs32 instead of fill_sprs64,
6505         if debugging a 32-bit architecture.
6506         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6507         out of the register cache, instead of passing a pointer into
6508         the register cache directly to ptrace.  Use regcache_collect
6509         insteaad of read_register.
6510         (ops_prepare_to_store): Use target_read_registers instead
6511         of read_register_bytes.
6512
6513 2002-07-20  Aidan Skinner <aidan@velvet.net>
6514
6515         * MAINTAINERS: Add self under write after approval. 
6516                 
6517 2002-07-20  Aidan Skinner <aidan@velvet.net>
6518
6519         * ada-tasks.c: Change k&r style function definitions to prototyped
6520         form.
6521                 
6522 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6523
6524         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6525         * x86-64-tdep.c: Include "objfiles.h".
6526         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6527         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6528
6529 2002-07-17  Michal Ludvig  <michal@suse.cz>
6530
6531         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6532         (update_context): Initialise cfa variable.
6533
6534 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6535
6536         * aix-thread.c: Shorten some long lines.  
6537         Bring comments into line with code spec.
6538
6539 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6540
6541         * infrun.c: Re-indent using gdb_indent.sh.
6542
6543 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6544
6545         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6546         Leave the indentation temporarily untouched, to minimize the diffs.
6547
6548 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6549
6550         * stabsread.c: Make os9k sections of the code obsolete,
6551         for real this time.
6552         * stabsread.h: Make os9k sections of the code obsolete.
6553
6554 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6555
6556         * linux-low.c (regsets_store_inferior_registers): Add free()
6557         at the end of a loop to prevent memory leak.
6558         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6559         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6560         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6561         line a comment.
6562         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6563
6564 2002-07-17  Jim Blandy  <jimb@redhat.com>
6565
6566         * macrocmd.c (info_macro_command): Remove newline from error
6567         message.
6568
6569 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6570
6571         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6572         (sh_gdbarch_init): Use it for sh-dsp.
6573
6574 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6575
6576         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6577         64-bit DWARF2 format.
6578
6579 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6580
6581         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6582         <sys/proc.h> when not available.
6583
6584 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6585
6586         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6587         * stabsread.c: Make os9k sections of the code obsolete.
6588         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6589         * config/i386/i386os9k.mt: Make file obsolete.
6590         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6591         (COMMON_OBS): Remove os9kread.o
6592         (SFILES): Remove os9kread.c.
6593         (os9kread.o, remote-os9k.o): Make target obsolete.
6594         * remote-os9k.c: Make file obsolete.
6595         * os9kread.c: Make file obsolete.
6596         * Makefile.in
6597
6598 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6599
6600         * NEWS: Mention that the FR30 has been made obsolete.
6601         * fr30-tdep.c: Make file obsolete.
6602         * config/fr30/tm-fr30.h: Ditto.
6603         * config/fr30/fr30.mt: Ditto.
6604         * configure.tgt: Make fr30-*-elf obsolete.
6605         * MAINTAINERS: Make fr30-elf obsolete.
6606
6607 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6608
6609         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6610         found is not inside a section.
6611
6612 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6613
6614         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6615         strerror().
6616         (pdc_realloc): Use xrealloc() instead of realloc().
6617
6618 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6619
6620         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6621         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6622         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6623         macros.
6624
6625 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6626
6627         * aix-thread.c (ptrace_check): Eliminate goto.
6628         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6629         problem.
6630
6631 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6632
6633         * aix-thread.c (gdbcmd.h): Include.
6634         (DEBUG, DBG, DBG2, dbg): Eliminate.
6635         (debug_aix_thread): New static global.
6636         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6637         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6638         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6639         invocations to DBG and DBG2 macros to test against
6640         ``debug_aix_thread'' and call fprintf_unfiltered().
6641         (_initialize_aix_thread): Add new command "set debug aix-thread".
6642
6643 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6644
6645         From Gerhard Tonn <TON@de.ibm.com>:
6646         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6647         instead of supply_register.
6648
6649 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6650
6651         * dwarf2cfi.c: Include "gdb_assert.h".
6652         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6653         non-NULL.
6654         (update_context): Do not use __func__.  Add missing ``break''.
6655         (update_context): Do not use __func__.
6656
6657 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6658
6659         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6660         and its setting.  Set gdbarch instruction printing functions
6661         directly.  For non-rs6000 case use new function
6662         gdb_print_insn_powerpc.
6663         (gdb_print_insn_powerpc): New function.
6664
6665 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6666
6667         * NEWS: Mention that the d30v has been marked obsolete.
6668         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6669         * configure.tgt: Mark d30v-*-* as obsolete.
6670         * d30v-tdep.c: Mark file as obsolete.
6671         * config/d30v/d30v.mt: Ditto.
6672         * config/d30v/tm-d30v.h: Ditto.
6673
6674 2002-07-13  Aidan Skinner <aidan@velvet.net>
6675
6676         * ada-tasks.c (add_task_entry): replace calls to
6677         malloc() with xmalloc
6678         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6679         
6680         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6681         ada_finish_decode_line_1, all_sals_for_line
6682         ada_breakpoint_rewrite): replace calls to free() with xfree()
6683                 
6684 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6685
6686         From Nicholas Duffek (with minor changes by Martin Hunt, 
6687         Louis Hamilton, and Kevin Buettner):
6688         * aix-thread.c: New file.
6689
6690 2002-07-12  Petr Sorfa <petrs@caldera.com>
6691
6692         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6693         complaint for invalid attribute class or form.
6694         (read_func_scope): DW_AT_frame_base
6695         better handling of DW_AT_block*.
6696         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6697         better handling of DW_AT_block*.
6698         (read_common_block): DW_AT_location
6699         better handling of DW_AT_block*.
6700         (read_partial_die): DW_AT_location better handling
6701         of DW_AT_block*.
6702         (new_symbol): DW_AT_external better handling of
6703         DW_AT_block*. Proper initialization of variable
6704         "addr".
6705         (attr_form_is_block): New function that returns true
6706         if the attribute's form is of DW_FORM_block*.
6707
6708 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6709
6710         * valops.c (find_method_list): Remove comment about
6711         removed STATIC_MEMFUNCP argument.
6712         (value_find_oload_method_list): Likewise.
6713
6714 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6715
6716         From Nicholas Duffek:
6717         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6718         target_new_objfile_hook.
6719
6720 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6721
6722         From Nicholas Duffek:
6723         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6724         csect.
6725
6726 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6727
6728         * MAINTAINERS: Mention --enable-sim-build-warnings.
6729         (m68hc11-elf): Disable sim build warnings.
6730         (m32r-elf): Mark as broken obsolete candidate.
6731         (x86_64-linux-gnu): Mark as buildable with -Werror.
6732         (arm-elf): Change -w to ``,'' which enables warnings but not
6733         -Werror.
6734
6735 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6736
6737         * bcache.h: Update copyright.
6738         (struct bstring, struct bcache): Move definition to "bcache.c".
6739         Replaced by opaque declaration.
6740         (bcache_xfree): Replace free_bcache.
6741         (bcache_xmalloc, bcache_memory_used): Declare.
6742         
6743         * bcache.c: Update copyright.
6744         (struct bstring, struct bcache): Moved to here from "bcache.h".
6745         Update comments.
6746         (bcache_xmalloc, bcache_memory_used): New functions.
6747         (bcache_xfree): Replace function free_bcache.
6748         
6749         * Makefile.in (objfiles.o): Add $(bcache_h).
6750         (objfiles_h): Remove $(bcache_h).
6751         (symfile.o): Add $(bcache_h).
6752
6753         * symmisc.c: Update copyright.
6754         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6755         (print_objfile_statistics): Use bcache_memory_used.
6756
6757         * symfile.c: Include "bcache.h".
6758         (reread_symbols): Use bcache_xfree.
6759         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6760         (add_psymbol_to_list): Pass psymbol_cache by value.
6761         (add_psymbol_with_dem_name_to_list): Ditto.
6762
6763         * objfiles.h: Update copyright.
6764         (struct bcache): Declare opaque.  Do not include "bcache.h".
6765         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6766         bcache'' pointers.
6767         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6768
6769         * objfiles.c: Include "bcache.h".  Update copyright.
6770         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6771         macro_cache.
6772         (free_objfile): Use bcache_xfree.
6773
6774 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6775
6776         * monitor.c (monitor_fetch_register): Make name a constant.
6777         (monitor_store_register): Same.
6778
6779 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6780
6781         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6782         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6783         (finish_block) For non-function blocks, hash the symbol table.  For
6784         function blocks, mark the symbol table as unhashed.
6785         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6786         (msymbol_hash_iw): Likewise.
6787         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6788         value.
6789         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6790         (lookup_minimal_symbol): Likewise for both.
6791         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6792         hashtable.
6793         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6794         (ALL_BLOCK_SYMBOLS): Update.
6795         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6796         (struct symbol): Add `hash_next' pointer.
6797         * symtab.c (lookup_block_symbol): Search using the hash table when
6798         possible.
6799         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6800         (search_symbols, find_addr_symbol): Likewise.
6801
6802         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6803         (read_dst_symtab): Likewise.
6804         * jv-lang.c (get_java_class_symtab): Likewise.
6805         * mdebugread.c: Include "gdb_assert.h".
6806         (shrink_block): Assert that the block being modified is not hashed.
6807         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6808         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6809         symbols.
6810         (dump_symtab): Recognize hashed blocks.
6811         * printcmd.c (print_frame_args):  Assert that function blocks do not
6812         have hashed symbol tables.
6813         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6814         (fill_in_ada_prototype, debug_print_block): Likewise.
6815         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6816
6817 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6818
6819         * stack.c (print_frame): Use result of frame_address_in_block()
6820         instead of fi->pc when evaluating symbols.
6821         (backtrace_command_1): Ditto.
6822
6823 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6824
6825         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6826         Make static.
6827
6828         * arm-tdep.c (arm_register_name): Make return type constant.
6829
6830 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6831
6832         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6833         prototype.
6834         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6835         * s390-tdep.c (s390_fp_regnum): Ditto.
6836         (s390_read_fp): Ditto.
6837         (s390_pop_frame): Ditto.
6838         (_initialize_s390_tdep): Ditto.
6839         * remote.c (get_remote_state): Ditto.
6840         * procfs.c (mappingflags): Ditto.
6841         * memattr.c (_initialize_mem): Ditto.
6842         * mcore-tdep.c (mcore_pop_frame): Ditto.
6843         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6844         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6845         * language.c (set_case_str): Ditto.
6846         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6847         * frv-tdep.c (new_variant): Ditto.
6848         (frv_stopped_data_address): Ditto.
6849         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6850         (context_alloc): Ditto.
6851         (frame_state_alloc): Ditto.
6852         (unwind_tmp_obstack_init): Ditto.
6853         (unwind_tmp_obstack_free): Ditto.
6854         (cfi_read_fp): Ditto.
6855         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6856         (cris_pop_frame): Ditto.
6857         * c-lang.c (scanning_macro_expansion): Ditto.
6858         (finished_macro_expansion): Ditto.
6859         (c_preprocess_and_parse): Ditto.
6860         * gdbarch.sh: Ditto.
6861         * gdbarch.h, gdbarch.c: Regenerate.
6862         * config/mn10200/tm-mn10200.h: Adjust indentation.
6863         * target.c: Adjust indentation.
6864         * symtab.h: Adjust indentation.
6865         * stabsread.h: Adjust indentation.
6866         * remote-es.c: Adjust indentation.
6867         * os9kread.c: Adjust indentation.
6868
6869 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6870         
6871         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6872         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6873
6874 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6875         
6876         * NEWS: Mention m68k, mcore multi-arching.  
6877         * MAINTAINERS: Change status of m68k, mcore to reflect
6878         multi-arching.
6879
6880 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6881
6882         * valops.c (find_overload_match): Free oload_syms.
6883
6884 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6885
6886         Define HAVE_SYS_PROC_H if sys/proc.h exists
6887         * configure.in: Add check for sys/proc.h
6888         * config.in: Regenerate.
6889         * configure: Regenerate.
6890
6891 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6892
6893         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6894         #if !GDB_MULTI_ARCH. 
6895
6896 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6897
6898         * config.in, configure: Regenerate.
6899
6900 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6901
6902         * dwarf2cfi.c: Include "gcore.h".
6903         (execute_stack_op): Fix implementation of the
6904         DW_OP_deref and DW_OP_deref_size operators by letting do their
6905         lookup in the target.
6906
6907 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6908
6909         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6910         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6911         tdep->sc_sp_offset.
6912
6913 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6914
6915         Fix PR gdb/595, gdb/602
6916         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6917         Don't call value_cast, just read the vtable pointer; update comments
6918         to match.
6919
6920 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6921
6922         * config/mcore/tm-mcore.h: Remove file.
6923         * config/mcore/mcore.mt: Remove definition of TM_FILE
6924         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6925
6926 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6927
6928         * i386bsd-tdep.c: Include "gdb_string.h".
6929
6930 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6931
6932         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6933         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6934         mcore-tdep.
6935         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6936         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6937         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6938         (RETVAL_REGNUM): Move macros from tm-mcore.h
6939         (mcore_reg_struct_has_addr): New function.
6940         (mcore_gdbarch_init): Added initializations for the macros removed
6941         from tm-mcore.h.
6942
6943 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6944
6945         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6946         traditonal string branding within the ELF header.
6947
6948 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6949
6950         * symtab.c (remove_params): New function.
6951         (make_symbol_overload_list): Use it instead of cplus_demangle.
6952         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6953
6954 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6955
6956         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6957
6958         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6959         New variables.
6960         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6961         and tdep->sigtramp_end.
6962         * i386obsd-nat.c: New file.
6963         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6964
6965         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6966         Don't call get_current_frame().
6967
6968 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6969
6970         * i386-nat.c (child_post_startup_inferior): New function
6971         calling i386_cleanup_dregs if
6972         I386_USE_GENERIC_WATCHPOINTS is defined.
6973         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6974         conditional to acknowledge that i386-nat.c has its
6975         own child_post_startup_inferior function.
6976
6977 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6978
6979         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6980         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6981         instead of MAX_REGISTER_RAW_SIZE.
6982         (i386_extract_return_value, i386_extract_struct_value_address):
6983         Convert to use regcache.
6984         (i386_gdbarch_init): Set max_register_raw_size and
6985         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6986         Set extract_return_value and extract_struct_value_address instead
6987         of their deprecated variants.
6988
6989         Convert i386 target to generic dummy frames.
6990         * i386-tdep.c: Include "symfile.h".
6991         (i386_frameless_signal_p): Consider a function to be frameless if
6992         the pc points at the first instruction of the function.
6993         (i386_frame_chain): Handle (generic) call dummies.
6994         (i386_frame_saved_pc): Likewise.
6995         (i386_frame_init_saved_regs): Remove code dealing with call
6996         dummies on the stack.
6997         (i386_push_dummy_frame): Removed.
6998         (i386_call_dummy_words): Removed.
6999         (i386_fix_call_dummy): Removed.
7000         (i386_push_return_address): New function.
7001         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7002         parameter, and don't call get_current_frame.
7003         (i386_pop_frame): New function.
7004         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7005         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7006         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7007         call_dummy_length to 0, set call_dummy_words to NULL, set
7008         sizeof_call_dummy_words to 0, set fix_call_dummy to
7009         generic_fix_call_dummy, set pc_in_call_dummy to
7010         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7011         generic_push_dummy_frame, set push_return_address to
7012         i386_push_return_address and set frame_chain_valid to
7013         generic_file_frame_chain_valid.
7014
7015 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7016
7017         * gdbarch.sh (struct regcache): Add opaque declaration.
7018         (EXTRACT_RETURN_VALUE): New architecture method.
7019         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7020         * gdbarch.h, gdbarch.c: Regenerate.
7021         * arch-utils.c (legacy_extract_return_value): New function.
7022         * arch-utils.h (legacy_extract_return_value): Declare.
7023         * values.c (value_being_returned): Re-enable code handling
7024         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7025         deprecated_grub_regcache_for_registers call to block handling
7026         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7027         (EXTRACT_RETURN_VALUE): Do not define.
7028
7029 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7030
7031         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7032         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7033         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7034         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7035         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7036         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7037         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7038         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7039         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7040         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7041         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7042         argument so the function fits the prototype in the architecture
7043         vector.
7044         (mcore_pop_frame): Remove argument so the function fits the
7045         prototype. Use get_current_frame instead of the argument.
7046         (mcore_push_arguments): Change type of struct_return so the
7047         function can be used in the architecture vector.
7048         (mcore_store_struct_return): Add.
7049         (mcore_frame_init_saved_regs): Add.
7050         (mcore_gdbarch_init): Add function calls to replace the macros
7051         removed from tm-mcore.h
7052
7053 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7054
7055         * infcmd.c (print_return_value): Remove compatibility code calling
7056         deprecated_grub_regcache_for_registers.
7057         
7058         * values.c: Include "regcache.h".
7059         (value_being_returned): Update.  Use
7060         deprecated_grub_regcache_for_registers to extract the register
7061         buffer address.  
7062         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7063         ``struct regcache''.
7064         * Makefile.in (values.o): Add dependency on $(regcache_h).
7065
7066         * inferior.h (run_stack_dummy): Change type of second parameter to
7067         a ``struct regcache''.
7068         * valops.c (hand_function_call): Change type of retbuf to ``struct
7069         regcache''.  Allocate using regcache_xmalloc, clean using
7070         make_cleanup_regcache_xfree.
7071         * infcmd.c (run_stack_dummy): Update.  Use
7072         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7073
7074         * regcache.c (do_regcache_xfree): New function.
7075         (make_cleanup_regcache_xfree): New function.
7076         * regcache.h (make_cleanup_regcache_xfree): Declare.
7077
7078 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7079
7080         * event-top.c (command_line_handler): Don't read past
7081         beginning of buffer.
7082
7083 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7084         
7085         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7086         struct frame_id. 
7087         (varobj_create): Store frame_id for root.
7088         (varobj_gen_name): Use xasprintf.
7089         (varobj_update): Save and restore frame using get_frame_id() and
7090         frame_find_by_id().
7091         (create_child): Use xasprintf.
7092         (new_root_variable): Initialize frame_id.
7093         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7094         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7095         to prevent memory leak.
7096
7097 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7098
7099         * valops.c (hand_function_call): Move declaration of retbuf to
7100         start of function, allocate using malloc, add a cleanup but before
7101         the inf_status cleanup, cleanup the buffer.  Rename local variable
7102         old_chain to inf_status_cleanup.
7103
7104 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7105
7106         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7107
7108         * cli/cli-decode.c (cmd_func_p): New function.
7109         (cmd_func): New function.
7110
7111         * command.h: Add cmd_func() and cmd_func_p().   
7112         
7113 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7114
7115         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7116         (REGISTER_SIZE): Remove.
7117         (MAX_REGISTER_RAW_SIZE): Remove.
7118         (REGISTER_VIRTUAL_TYPE): Remove.
7119         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7120         (REGISTER_NAME): Remove.
7121         (USE_GENERIC_DUMMY_FRAMES): Remove.
7122         (CALL_DUMMY): Remove.
7123         (CALL_DUMMY_START_OFFSET): Remove.
7124         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7125         (CALL_DUMMY_LOCATION): Remove.
7126         (FIX_CALL_DUMMY): Remove.
7127         (CALL_DUMMY_ADDRESS): Remove.
7128         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7129         (SAVE_DUMMY_FRAME_TOS): Remove.
7130         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7131         (mcore_register_virtual_type): New function.
7132         (mcore_register_byte): New function.
7133         (mcore_register_size): New function.
7134         (mcore_register_name): New function.
7135         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7136         macros removed from tm-mcore.h.
7137         (mcore_dump_tdep): Add.
7138         (_initialize_mcore_tdep): Add gdbarch_register call.
7139
7140 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7141
7142         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7143         frameless_look_for_prologue, such that we actually call this
7144         function.
7145
7146 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7147
7148         * frame.h (frame_address_in_block): New function.
7149
7150         * blockframe.c (frame_address_in_block): New function extracted
7151         from get_frame_block().
7152         (get_frame_block): Use frame_address_in_block().
7153         (block_innermost_frame): Use frame_address_in_block() to match
7154         the frame pc address against the block boundaries rather than
7155         the frame pc directly. This prevents a failure when a frame pc
7156         is actually a return-address pointing immediately after the end
7157         of the given block. 
7158
7159 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7160
7161         * MAINTAINERS: Add self under write after approval. 
7162
7163 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7164
7165         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7166         used in architecture vector. The default is
7167         m68k_local_breakpoint_from_pc.
7168         (m68k_local_breakpoint_from_pc): Add.
7169         (enum): Add register numbers from tm-m68k.h.
7170         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7171         vector.  
7172         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7173         GDB_MULTI_ARCH_PARTIAL.
7174         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7175         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7176         m68k-tdep.c.
7177         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7178         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7179         to enum in m68k-tdep.c
7180
7181 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7182
7183         * solib-osf.c (open_map): Compute the list of shared libraries
7184         loaded by the inferior, rather than the list of libraries loaded
7185         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7186         the wrong shared libraries...
7187
7188 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7189
7190         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7191         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7192         macros.
7193         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7194         Remove functions.
7195         (FRAMELESS_SIGNAL): Remove function.
7196         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7197         i386_linux_saved_pc_after_call): Removed.
7198         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7199         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7200         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7201
7202         * i386-tdep.c (i386_frameless_signal_p): New function.
7203         (i386_frame_chain): Deal with frameless signals.
7204         (i386_sigtramp_saved_sp): New function.
7205         (i386_frame_saved_pc): Deal with frameless signals.
7206         (i386_saved_pc_after_call): Make sure the correct value is
7207         returned just after entry into a sigtramp.
7208         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7209         i386fbsd4_sc_sp_offset): New variables.
7210         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7211         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7212         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7213         similiar to what we already did for sc_pc_offset.
7214         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7215         tdep->sc_sp_offset.
7216
7217         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7218
7219 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7220
7221         * config/i386/tm-x86-64linux.h: New.
7222         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7223         definitions.
7224         * config/i386/nm-x86-64.h: Rename to ...
7225         * config/i386/nm-x86-64linux.h: ... this one.
7226         * config/i386/x86-64linux.mh: Reflect the above change.
7227         
7228 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7229
7230         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7231         with sigcontext_addr.  Add sc_sp_offset.
7232         (i386bsd_sigtramp_saved_pc): Remove prototype.
7233         (i386bsd_sicontext_addr): Add prototype.
7234         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7235         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7236         (i386_svr4_sigtramp_saved_pc): Removed.
7237         (i386_svr4_sigcontext_addr): New function.
7238         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7239         Initialize tdep->sigcontext_addr instead.  Initialize
7240         tdep->sc_pc_offset and tdep->sc_sp_offset.
7241         (i386_gdbarch_init): Likewise.
7242         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7243         any more.
7244         (i386bsd_sigtramp_saved_pc): Remove function.
7245         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7246         Initialize tdep->sigcontext_addr instead.  Initialize
7247         tdep->sc_pc_offset.
7248         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7249         of tdep->sigtramp_saved_pc.
7250         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7251         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7252         instead.
7253
7254         * i386-tdep.c (i386_frameless_function_invocation,
7255         i386_frame_num_args, i386_frame_init_saved_regs,
7256         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7257         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7258         i386_extract_return_value, i386_store_return_value,
7259         i386_extract_struct_value_address, i386_register_virtual_type,
7260         i386_register_convertible, i386_register_convert_to_virtual,
7261         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7262         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7263         static.
7264
7265 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7266
7267         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7268
7269         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7270         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7271         this macro.  Include "value.h".
7272
7273 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7274
7275         * ada-exp.tab.c: remove as it's a generated file
7276         * ada-lex.c: remove as it's a generated file
7277                 
7278 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7279
7280         * config/i386/tm-i386.h (struct frame_info, struct
7281         frame_saved_regs, struct value, struct type): Remove forward
7282         declarations.
7283
7284         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7285         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7286         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7287         (FILL_FPXREGSET): Define.
7288
7289         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7290
7291         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7292         i[3456]86-*-netbsd* case.
7293         * config/i386/tm-obsd.h: Removed.
7294         * config/i386/obsd.mt: Removed.
7295         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7296         core-aout.o.
7297         (MH_CFLAGS): Add -DYYDEBUG=0.
7298
7299         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7300         i386nbsd_sc_pc_offset on OpenBSD too.
7301
7302         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7303         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7304         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7305         define.
7306         * i386bsd-tdep.c: Include "arch-utils.h".
7307         (i386bsd_aout_in_solib_call_trampoline): New function.
7308         (i386bsd_init_abi): Set in_solib_call_trampoline to
7309         i386bsd_aout_in_solib_call_trampoline.
7310         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7311         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7312
7313 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7314
7315         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7316         (struct obstack, struct bcache): Add opaque declarations.
7317         * Makefile.in (macrotab_h): Update
7318
7319 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7320
7321         * blockframe.c (generic_find_dummy_frame): Change return type to
7322         ``struct regcache''.
7323         (struct dummy_frame): Replace field ``registers'' with regcache, a
7324         struct regcache object.
7325         (generic_find_dummy_frame): Update.
7326         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7327         regcache_xmalloc and regcache_cpy.
7328         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7329         regcache_xfree.
7330         (deprecated_generic_find_dummy_frame): Update.
7331         (generic_read_register_dummy): Update.  Use
7332         regcache_read_as_address.
7333         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7334         (generic_get_saved_register): Update.  Use regcache_read.
7335
7336 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7337
7338         * Makefile.in (objfiles_h): Add $(bcache_h).
7339         * objfiles.h: Include "bcache.h".
7340
7341         * Makefile.in (symtab_h): Remove $(bcache_h).
7342         * symtab.h: Do not include "bcache.h".
7343
7344 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7345
7346         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7347         generic_func_frame_chain_valid.
7348
7349 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7350
7351         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7352         * config/i386/tm-fbsd.h: Likewise.
7353
7354 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7355
7356         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7357         generic_unwind_get_saved_register.
7358
7359 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7360
7361         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7362         * regcache.c (supply_register): Add missing argument to
7363         register_buffer call.
7364
7365 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7366
7367         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7368         Solaris /bin/grep does not not like it.  From Peter Schauer.
7369
7370 2002-06-26  Tom Tromey  <tromey@redhat.com>
7371
7372         * command.h (add_setshow_cmd): Declare.
7373         (add_setshow_cmd_full): Declare.
7374         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7375         returns void.  Use add_setshow_cmd_full.
7376         (add_setshow_cmd_full): New function.
7377         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7378         (add_setshow_boolean_cmd): Likewise.
7379
7380 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7381
7382         * config/vax/tm-vax.h: Protect from multiple inclusion.
7383         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7384         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7385         * config/vax/tm-vaxbsd.h: ...here.  New file.
7386         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7387
7388 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7389
7390         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7391         (BELIEVE_PCC_PROMOTION): Remove.
7392         (AP_REGNUM): Move to...
7393         * config/vax/nm-vax.h: ...here.
7394         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7395         (vax_breakpoint_from_pc): New function.
7396         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7397         and gdbarch_believe_pcc_promotion.
7398
7399 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7400
7401         * Makefile.in (vax_tdep_h): Define.  
7402         (vax-tdep.o): Use $(vax_tdep_h).
7403         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7404         (vax_dump_tdep): New function. 
7405         (_initialize_vax_tdep): Register vax_dump_tdep.
7406         * vax-tdep.h: Include osabi.h.     
7407         (struct gdbarch_tdep): New. 
7408
7409 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7410
7411         * frame.h (deprecated_generic_find_dummy_frame): Rename
7412         generic_find_dummy_frame.
7413         * blockframe.c (generic_find_dummy_frame): Make static.
7414         (deprecated_generic_find_dummy_frame): New function.
7415         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7416         generic_find_dummy_frame with deprecated_find_dummy_frame.
7417         (sh64_nofp_frame_init_saved_regs): Ditto.
7418         (sh_fp_frame_init_saved_regs): Ditto.
7419         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7420         (s390_frame_chain): Ditto.
7421         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7422
7423 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7424
7425         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7426         gdbarch vector are at the top.
7427         (NUM_REGS): Remove.
7428         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7429         (FRAME_ARGS_ADDRESS): Remove.
7430         (FRAME_LOCALS_ADDRESS): Remove.
7431         (FRAME_NUM_ARGS): Remove.
7432         (FRAME_ARGS_SKIP): Remove.  
7433         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7434         (m68k_gdbarch_init): Add gdbarch initializations for macros
7435         undefined in tm-m68k.h
7436
7437 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7438
7439         * monitor.h: Add the function regname to monitor_ops
7440         structure. This way NUM_REGS does not have to be a constant.
7441         * monitor.c (monitor_fetch_register): Added support for regname
7442         function. The function is called if the array regnames is NULL.
7443         (monitor_store_register): Same.
7444         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7445         regnames array.
7446         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7447         cpu32bug_cmds.regname to point to new function.
7448         * abug-rom.c (abug_regname): Same as above.
7449         (init_abug_cmds): Same.
7450         * dbug-rom.c (dbug_regname): Same as above.
7451         (init_dbug_cmds): Same.
7452         * remote-est.c (est_regname): Same. 
7453         (init_est_cmds): Same.
7454         * rom68k-rom.c (rom68k_regname): Same. 
7455         (init_rom68k_cmds): Same.
7456
7457 2002-06-25  Tom Tromey  <tromey@redhat.com>
7458
7459         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7460
7461 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7462
7463         * infrun.c (stop_registers): Change variable's type to ``struct
7464         regcache'''.
7465         (xmalloc_inferior_status): Delete function.
7466         (free_inferior_status): Delete function.
7467         (normal_stop): Use regcache_cpy.
7468         (struct inferior_status): Change type of fields ``stop_registers''
7469         and ``registers'' to ``struct regcache''.
7470         (write_inferior_status_register): Use regcache_write.
7471         (save_inferior_status): Instead of calling
7472         xmalloc_inferior_status, allocate the inf_status buffer directly.
7473         Use regcache_dup_no_passthrough and regcache_dup to save the
7474         buffers.
7475         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7476         Replace the stop_registers regcache instead of overriding it.  Use
7477         regcache_xfree.  Instead of calling free_inferior_status, xfree
7478         the buffer directly.
7479         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7480         free_inferior_status, xfree the buffer directly.
7481         (build_infrun): Use regcache_xmalloc.
7482         (_initialize_infrun): Delete redundant call to build_infrun.
7483
7484         * Makefile.in (infcmd.o): Add $(regcache_h).
7485
7486         * infcmd.c: Include "regcache.h".
7487         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7488         obtain the address of `stop_registers' register buffer.
7489         (print_return_value): Ditto.
7490
7491         * inferior.h (struct regcache): Add opaque declaration.
7492         (stop_registers): Change variable's declared type to ``struct
7493         regcache''.
7494
7495 2002-06-24  Tom Tromey  <tromey@redhat.com>
7496
7497         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7498         * target.c (initialize_targets): Fixed typo in
7499         trust-readonly-sections `show' documentation.
7500
7501         * main.c: Marked all strings with _().
7502
7503 2002-06-24  Don Howard  <dhoward@redhat.com>
7504
7505         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7506         that means max CORE_ADDR+1.
7507         (lookup_mem_region): Ditto.
7508         (mem_info_command): Ditto.
7509
7510 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7511
7512         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7513         (REGISTER_BYTES_OK): Remove.
7514         (REGISTER_BYTES): Remove.
7515         (STORE_STRUCT_RETURN): Remove.
7516         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7517         (STORE_RETURN_VALUE): Remove.
7518         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7519         (FRAME_CHAIN): Remove.
7520         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7521         (FRAME_SAVED_PC): Remove.  
7522         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7523         (m68k_store_struct_return): Add.
7524         (m68k_deprecated_extract_return_value): Add.
7525         (m68k_deprecated_extract_struct_value_address): Add.
7526         (m68k_store_return_value): Add.
7527         (m68k_frame_chain): Add.
7528         (m68k_frameless_function_invocation): Add.
7529         (m68k_frame_saved_pc): Add.
7530         (m68k_gdbarch_init): added set_gdbarch calls for new 
7531         functions and deleted macros.
7532
7533 2002-06-23  Tom Tromey  <tromey@redhat.com>
7534
7535         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7536         (ALLDEPFILES): Likewise.
7537         (udiheaders): Removed.
7538         (udip2soc.o): Likewise.
7539         (udi2go32.o): Likewise.
7540         (udr.o): Likewise.
7541         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7542
7543 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7544
7545         * infrun.c (_initialize_infrun): Delete unnecessary call to
7546         build_infrun.
7547
7548         * regcache.h: Update comments describing the regcache_cpy family
7549         of functions.
7550         (regcache_save, regcache_restore): Delete declaration.
7551         (regcache_save_no_passthrough): Delete declaration.
7552         (regcache_restore_no_passthrough): Delete declaration.
7553         * regcache.c (regcache_save): Delete function.
7554         (regcache_save_no_passthrough): Delete function.
7555         (regcache_restore): Delete function.
7556         (regcache_restore_no_passthrough): Delete function.
7557
7558 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7559
7560         * config/m68k/tm-m68k.h: Fix typo.
7561         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7562         (m68k_frame_init_saved_regs): Declare.
7563
7564 2002-06-21  Jim Blandy  <jimb@redhat.com>
7565
7566         Remove some vestiges of Harris 88k support.
7567         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7568         register numbering quirk.
7569         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7570         odd symbols occurring in Harris 88k ELF targets.
7571
7572 2002-06-21  Tom Tromey  <tromey@redhat.com>
7573
7574         * gdb_locale.h: New file.
7575         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7576         (defs_h): Added gdb_locale.h.
7577         * configure, config.in: Rebuilt.
7578         * configure.in (PACKAGE): Define.
7579         * defs.h: Include gdb_locale.h.
7580         * main.c (captured_main): Call setlocale, bindtextdomain,
7581         textdomain.
7582
7583 2002-06-21  Dave Brolley  <brolley@redhat.com>
7584
7585         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7586         * config/frv/frv.mt: New file.
7587         * config/frv/tm-frv.h: New file.
7588         * configure.tgt: Support frv-*-*.
7589         * Makefile.in (frv-tdep.o): New target.
7590         * frv-tdep.c: New file.
7591         * NEWS: Mention frv.
7592
7593 2002-06-21  Dave Brolley  <brolley@redhat.com>
7594
7595         * MAINTAINERS: Add self to "Write After Approval" list.
7596
7597 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7598
7599         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7600         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7601         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7602         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7603         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7604
7605         * m68k-tdep.c: Include arch-utils.h
7606         (m68k_register_raw_size): Add.
7607         (m68k_register_virtual_size): Add.
7608         (m68k_register_virtual_type): Add.
7609         (m68k_register_name): Add.
7610         (m68k_stack_align): Add.
7611         (m68k_register_byte): Add.
7612         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7613         tm-m68k.h.
7614
7615 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7616
7617         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7618         m68k_find_saved_regs.
7619         (m68k_pop_frame): Removed saved_regs structure, and replaced
7620         references to it with frame->saved_regs.
7621         (m68k_gdbarch_init): Added function calls to initialize the
7622         gdbarch structure.
7623         (m68k_fix_call_dummy): Add. 
7624         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7625         (CALL_DUMMY): Remove.
7626         (CALL_DUMMY_LENGTH): Remove.
7627         (CALL_DUMMY_START_OFFSET): Remove.
7628         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7629         (FIX_CALL_DUMMY): Remove.
7630         (PUSH_DUMMY_FRAME): Remove.
7631         (POP_FRAME): Remove.
7632
7633 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7634
7635         * parse.c (parse_fprintf): New function used to avoid calls to
7636         fprintf in bison parser generated debug code.
7637         * parser-defs.h: Declaration of new parse_fprintf function.
7638         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7639         Set YYDEBUG to 1 by default.
7640         Set YYFPRINTF as parse_fprintf.
7641
7642 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7643
7644         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7645         encoding anymore.
7646         (pointer_encoding, enum ptr_encoding): New.
7647         (execute_cfa_program): Take care about pointer encoding.        
7648         (dwarf2_build_frame_info): Only call parse_frame_info for 
7649         .debug_frame and .eh_frame.
7650         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7651         fixed augmentation handling, added relative addressing, 
7652         ignore duplicate FDEs. Added comments.
7653         * dwarf2cfi.c: Reindented.
7654         
7655 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7656
7657         * event-top.c (command_handler): Don't use space_at_cmd_start
7658         unless there is sbrk() on the host. Assign time and space data
7659         to union fields of the appropriate length.
7660
7661 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7662
7663         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7664         x86_64_register_name. Return type changed to 'const char *'.
7665         (x86_64_register_name2nr): Rename to x86_64_register_number.
7666         (x86_64_gdbarch_init): Update to reflect the change.
7667         * x86-64-tdep.h: Ditto.
7668         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7669         (supply_fpregset): Ditto.
7670
7671 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7672
7673         * regcache.h: Update copyright.
7674         (struct regcache, struct gdbarch): Add opaque declarations.
7675         (current_regcache): Declare global variable.
7676         (regcache_read, regcache_write): Add gdbarch parameter.
7677         (regcache_save, regcache_save_no_passthrough)
7678         (regcache_restore, regcache_restore_no_passthrough)
7679         (regcache_dup, regcache_dup_no_passthrough)
7680         (regcache_cpy, regcache_cpy_no_passthrough)
7681         (deprecated_grub_regcache_for_registers)
7682         (deprecated_grub_regcache_for_register_valid)
7683         (regcache_valid_p): Add function declarations.
7684         
7685         * regcache.c: Update copyright.
7686         (regcache_descr_handle): New global variable.
7687         (struct regcache_descr): Define.
7688         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7689         (regcache_descr, xfree_regcache_descr): New functions.
7690         (struct regcache): Define.
7691         (regcache_xmalloc, regcache_xfree): New functions.
7692         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7693         (regcache_dup, regcache_dup_no_passthrough): New functions.
7694         (regcache_valid_p, regcache_read_as_address): New functions.
7695         (deprecated_grub_regcache_for_registers): New function.
7696         (deprecated_grub_regcache_for_register_valid): New function.
7697         (current_regcache): New global variable.
7698         (register_buffer): Add regcache parameter.  Update calls.
7699         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7700         (read_register_gen, write_register_gen): Update register_buffer
7701         call.  Test for legacy_p instead of gdbarch_register_read_p or
7702         gdbarch_register_write_p.
7703         (regcache_collect): Update register_buffer call.
7704         (build_regcache): Rewrite.  Use deprecated grub functions.
7705         (regcache_save, regcache_save_no_passthrough): New functions.
7706         (regcache_restore, regcache_restore_no_passthrough): New
7707         functions.
7708         (_initialize_regcache): Create the regcache_data_handle. Swap
7709         current_regcache global variable.
7710         
7711         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7712         parameter to regcache_read and regcache_write calls.
7713         (sh4_register_read): Ditto.
7714         (sh64_pseudo_register_read): Ditto.
7715         (sh64_register_read): Ditto.
7716         (sh_pseudo_register_write): Ditto.
7717         (sh4_register_write): Ditto.
7718         (sh64_pseudo_register_write): Ditto.
7719         (sh64_register_write): Ditto.
7720
7721         * defs.h (XCALLOC): Define.
7722
7723 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7724
7725         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7726         * m68k-tdep.c (m68k_gdbarch_init): Added.
7727         (m68k_dump_tdep): Added.
7728
7729 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7730
7731         * ada-lang.c (fill_in_ada_prototype): Update comment.
7732
7733 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7734
7735         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7736         MIPS_ABI_LAST.
7737         (mips_abi_string, mips_abi_strings): New.
7738         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7739         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7740         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7741         O32 if no ABI is found.
7742         (mips_dump_tdep): Use mips_abi_strings.
7743         (mips_abi_update): New function.
7744         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7745         ``set mips abi'' and ``show mips abi''.  Check the size of
7746         mips_abi_strings.
7747
7748 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7749
7750         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7751         constant.
7752
7753 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7754
7755         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7756         current frame using only the first stack size adjustment. All
7757         subsequent size adjustments are not considered to be part of
7758         the "static" part of the current frame.
7759         Compute the address of the saved registers relative to the
7760         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7761         in use in this frame.
7762
7763 2002-06-18  Don Howard  <dhoward@redhat.com>
7764  
7765         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7766         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7767         suggesting this solution.
7768
7769 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7770
7771         * config/romp/xm-rtbsd.h: Delete file.
7772         * config/romp/rtbsd.mh: Delete file.
7773
7774 2002-06-18  Keith Seitz  <keiths@redhat.com>
7775
7776         * breakpoint.c (condition_command): Post breakpoint_modify
7777         when a condition is added to an existing breakpoint.
7778         (commands_command): Likewise for commands.
7779         (set_ignore_count): Likewise for ignore counts.
7780         If no tty, do not simply return, still need to send event
7781         notification.
7782         (ignore_command): Only print a newline if the command came
7783         from a tty.
7784         Don't call breakpoints_changed, since this is now properly
7785         handled by set_ignore_count.
7786
7787 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7788
7789         * MAINTAINERS: Note that cris-elf target can be compiled with
7790         -Werror.
7791         * cris-tdep.c (cris_register_name): Make return type constant.
7792         (cris_breakpoint_from_pc): Ditto.
7793
7794 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7795
7796         * frame.h (struct frame_info): Change type of context to 
7797         'struct context'.
7798
7799 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7800
7801         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7802         pointer.
7803         * gdbarch.h, gdbarch.c: Regenerate.
7804         * config/mips/tm-mips.h (mips_register_name): Update.
7805         * i386-tdep.h (i386_register_name): Update.
7806         * mips-tdep.c (mips_register_name): Update
7807         * alpha-tdep.c (alpha_register_name): Update.
7808         * arch-utils.c (legacy_register_name): Update.
7809         * arch-utils.h (legacy_register_name): Update.
7810         * avr-tdep.c (avr_register_name): Update.
7811         * ia64-tdep.c (ia64_register_name): Update.
7812         * i386-tdep.c (i386_register_name): Update.
7813         * sparc-tdep.c (sparc32_register_name): Update.
7814         (sparc64_register_name): Update.
7815         (sparclite_register_name): Update.
7816         (sparclet_register_name): Update.
7817         * sh-tdep.c (sh_generic_register_name): Update.
7818         (sh_sh_register_name): Update.
7819         (sh_sh3_register_name): Update.
7820         (sh_sh3e_register_name): Update.
7821         (sh_sh_dsp_register_name): Update.
7822         (sh_sh3_dsp_register_name): Update.
7823         (sh_sh4_register_name): Update.
7824         (sh_sh64_register_name): Update.
7825         * s390-tdep.c (s390_register_name): Update.
7826         * rs6000-tdep.c (rs6000_register_name): Update.
7827         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7828         (ns32k_register_name_32382): Update.
7829         * d10v-tdep.c (d10v_ts2_register_name): Update.
7830         (d10v_ts3_register_name): Update.
7831         * xstormy16-tdep.c (xstormy16_register_name): Update.
7832         * vax-tdep.c (vax_register_name): Update.
7833         * v850-tdep.c (v850_register_name): Update.
7834         * m68hc11-tdep.c (m68hc11_register_name): Update.
7835         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7836         (am33_register_name): Update.
7837
7838 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7839
7840         * m68k-tdep.c: Reindented.
7841
7842 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7843
7844         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7845         list of predefined types.
7846
7847 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7848
7849         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7850         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7851         REGISTER_CONVERT_TO_RAW): Remove defines.
7852         (i386_register_virtual_type, i386_register_convertible,
7853         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7854         Remove prototypes.
7855         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7856         macros mentioned above.
7857
7858         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7859         (i386lynx_saved_pc_after_call): Remove prototype.
7860         * i386ly-tdep.c: Include "i386-tdep.h".
7861         (i386lynx_saved_pc_after_call): Make static.  Use
7862         read_memory_nobpt instead of read_memory.  Use
7863         read_memory_unsigned_integer instead of read_memory_integer.
7864         (i386lynx_init_abi): New function.
7865         (i386lynx_coff_osabi_sniffer): New function.
7866         (_initialize_i386bsd_tdep): New function.
7867
7868         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7869         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7870         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7871         (i386_fix_call_dummy): Remove prototype.
7872         * i386-tdep.c (i386_call_dummy_words): New variable.
7873         (i386_gdbarch_init): Adjust for removal of the
7874         macros mentioned above.
7875
7876 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7877
7878         * command.h (add_setshow_auto_boolean_cmd): Replace
7879         add_set_auto_boolean_cmd.
7880         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7881         add_set_auto_boolean_cmd.
7882         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7883         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7884         mask-address'' command.
7885         (show_mask_address): Add cmd parameter.
7886         * remote.c (add_packet_config_cmd): Update.  Change type of
7887         set_func and show_func to cmd_sfunc_ftype.
7888         (_initialize_remote): Update `set remote Z-packet'
7889         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7890         (show_remote_protocol_e_packet_cmd): Ditto.
7891         (show_remote_protocol_E_packet_cmd): Ditto.
7892         (show_remote_protocol_P_packet_cmd): Ditto.
7893         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7894         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7895         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7896         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7897         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7898         (show_remote_protocol_Z_packet_cmd): Ditto.
7899         (show_remote_protocol_binary_download_cmd): Ditto.
7900         (show_remote_cmd): Pass NULL to all of above.
7901
7902 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7903
7904         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7905         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7906         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7907         POP_FRAME): Remove defines.
7908         (i386_push_arguments, i386_store_struct_return,
7909         i386_extract_return_value, i386_store_return_value,
7910         i386_extract_struct_value_address, i386_push_dummy_frame,
7911         i386_pop_frame): Renove prototypes.
7912         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7913         macros mentioned above.
7914
7915 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7916
7917         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7918         add_set_boolean_cmd.
7919         (add_setshow_cmd): New function.
7920         * command.h (add_setshow_boolean_cmd): Replace
7921         add_set_boolean_cmd.
7922         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7923         and ``set rdiromatzero''.
7924         * maint.c (_initialize_maint_cmds): Update commented out code.
7925         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7926         * target.c (initialize_targets): Update `set
7927         trust-readonly-sections'.
7928         * remote.c (_initialize_remote): Update `set remotebreak'.
7929
7930 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7931
7932         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7933         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7934         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7935         fit into multi-arch framework.
7936         (i386_breakpoint_from_pc): New function.
7937         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7938         above.
7939
7940         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7941         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7942         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7943         (i386_frameless_function_invocation, i386_frame_num_args,
7944         i386_frame_init_saved_regs): Remove prototypes.
7945         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7946         macros mentioned above.
7947
7948 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7949
7950         * cli/cli-decode.c (set_cmd_cfunc): Update.
7951         (set_cmd_sfunc): Update.
7952         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7953         (set_cmd_sfunc, set_cmd_cfunc): Update.
7954         * cli/cli-decode.h: Update.
7955
7956 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7957
7958         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7959         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7960
7961 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7962
7963         * defs.h (auto_boolean): Declare enum.
7964         * command.h (cmd_auto_boolean): Delete enum.
7965         * mips-tdep.c (mask_address_var): Update.
7966         (mips_mask_address_p): Update.
7967         (show_mask_address): Update.
7968         * remote.c (struct packet_config): Update.
7969         (update_packet_config): Update.
7970         (show_packet_config_cmd): Update.
7971         (packet_ok): Update.
7972         (add_packet_config_cmd): Update.
7973         (_initialize_remote): 
7974         * command.h: Update.
7975         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7976         (do_setshow_command): Update.
7977         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7978         * cli/cli-decode.h: Update.
7979
7980 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7981
7982         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7983         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7984         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7985         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7986         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7987         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7988
7989         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7990         list of DJGPP COFF targets.
7991
7992         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7993         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7994         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7995         (FP0_REGNUM): Remove define.
7996         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7997         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7998         (i386_register_virtual_size): Remove protoype.
7999         * i386-tdep.c (i386_register_virtual_size): Removed.
8000         (i386_extract_return_value, i386_store_return_value): Use
8001         FP0_REGNUM instead of NUM_FREGS to determine whether the
8002         floating-point registers are available.
8003         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8004         Adjust for removal of macros mentioned above.
8005
8006 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8007
8008         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8009         comments.
8010         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8011         Remove prototypes.
8012         (supply_gregset, fill_gregset): Remove use of register keyword and
8013         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8014         NUM_REGS and NUM_FREGS.
8015         (FPREGSET_FSAVE_OFFSET): Remove.
8016         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8017         NUM_FREGS to determine whether the floating-point registers are
8018         available.
8019
8020         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8021         gnu_store_registers): Replace usage of NUM_GREGS with
8022         I386_NUM_GREGS.
8023
8024         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8025         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8026         usage of NUM_GREGS with I386_NUM_GREGS.
8027
8028         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8029
8030         * i386bsd-nat.c: Include "i386-tdep.h".
8031         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8032         I386_NUM_GREGS.
8033
8034         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8035         and associated comment.  They no longer make any sense, since we
8036         don't use this file anymore on Linux.
8037
8038         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8039         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8040         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8041         elements in these arrays.
8042         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8043         MAX_NUM_REGS.
8044
8045 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8046
8047         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8048         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8049
8050 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8051
8052         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8053         EXTRACT_RETURN_VALUE.
8054         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8055         EXTRACT_STRUCT_VALUE_ADDRESS.
8056         * gdbarch.h, gdbarch.c: Regenerate.
8057         
8058         * values.c (value_being_returned): Handle
8059         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8060         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8061
8062         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8063         * arm-tdep.c (arm_gdbarch_init): Update.
8064         * avr-tdep.c (avr_gdbarch_init): Update.
8065         * cris-tdep.c (cris_gdbarch_init): Update.
8066         * d10v-tdep.c (d10v_gdbarch_init): Update.
8067         * ia64-tdep.c (ia64_gdbarch_init): Update.
8068         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8069         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8070         * s390-tdep.c (s390_gdbarch_init): Update.
8071         * sh-tdep.c (sh_gdbarch_init): Update.
8072         * s390-tdep.c (s390_gdbarch_init): Update.
8073         * sparc-tdep.c (sparc_gdbarch_init): Update.
8074         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8075         * v850-tdep.c (v850_gdbarch_init): Update.
8076         * vax-tdep.c (vax_gdbarch_init): Update.
8077         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8078         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8079
8080         * config/arc/tm-arc.h: Update.
8081         * config/d30v/tm-d30v.h: Update.
8082         * config/fr30/tm-fr30.h: Update.
8083         * config/h8300/tm-h8300.h: Update.
8084         * config/h8500/tm-h8500.h: Update.
8085         * config/i386/tm-i386.h: Update.
8086         * config/i386/tm-ptx.h: Update.
8087         * config/i386/tm-symmetry.h: Update.
8088         * config/i960/tm-i960.h: Update.
8089         * config/m32r/tm-m32r.h: Update.
8090         * config/m68k/tm-delta68.h: Update.
8091         * config/m68k/tm-linux.h: Update.
8092         * config/m68k/tm-m68k.h: Update.
8093         * config/m88k/tm-m88k.h: Update.
8094         * config/mcore/tm-mcore.h: Update.
8095         * config/mips/tm-mips.h: Update.
8096         * config/mn10200/tm-mn10200.h: Update.
8097         * config/pa/tm-hppa.h: Update.
8098         * config/pa/tm-hppa64.h: Update.
8099         * config/sparc/tm-sp64.h: Update.
8100         * config/sparc/tm-sparc.h: Update.
8101         * config/sparc/tm-sparclet.h: Update.
8102         * config/z8k/tm-z8k.h: Update.
8103
8104 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8105
8106         * Makefile.in (i386_linux_tdep_h): Define.
8107         (i386_tdep_h, i387_tdep_h): Define.
8108         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8109         $(i386_tdep_h) and $(i387_tdep_h).
8110         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8111
8112 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8113
8114         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8115         Already covered by the default.
8116
8117         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8118         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8119         (i386_gdbarch_init): Initialize long_double_format and long_double
8120         bit.
8121
8122         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8123         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8124         Move these to ...
8125         * config/i386/i386sol2.mh: ... here.
8126         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8127         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8128         (SIGCONTEXT_PC_OFFSET): Remove define.
8129         (IN_SIGTRAMP): Remove define.
8130         * i386-sol2-tdep.c: New file.
8131         
8132         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8133         * config/i386/tm-i386nw.h: Removed.
8134
8135         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8136         USE_STRUCT_CONVENTION): Remove defines.
8137         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8138         (get_longjmp_target): Remove prototype.
8139         (IN_SIGTRAMP): Remove define.
8140         (i386bsd_in_sigtramp): Remove prototype.
8141         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8142         function.  Update comment accordingly
8143         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8144         (FRAME_SAVED_PC): Remove define.
8145         (i386bsd_frame_saved_pc): Remove prototype.
8146         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8147         GET_LONGJMP_TARGET): Remove defines.
8148         (get_longjmp_target): Remove prototype.
8149         (IN_SIGTRAMP): Remove define.
8150         (i386bsd_in_sigtramp): Remove prototype.
8151         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8152         function.  Update comment accordingly
8153         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8154         (FRAME_SAVED_PC): Remove define.
8155         (i386bsd_frame_saved_pc): Remove prototype.
8156         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8157         Remove prototype.
8158         (USE_STRUCT_CONVENTION): Remove prototype.
8159         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8160         declaration.
8161         (_initialize_i386bsd_nat): Revise logic to determine some
8162         constants at compile time when compiling a native GDB.  Warn if
8163         things don't match up with what we expect.
8164         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8165         Remove variables.
8166         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8167         to use date stored in `struct gdbarch_tdep'.
8168         (i386bsd_sigcontext_offset): Remove varaible.
8169         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8170         stored in `struct gdbarch_tdep'.
8171         (i386bsd_frame_saved_pc): Make static.
8172         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8173         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8174         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8175         i386fbsd4_sc_pc_offset): New variables.
8176         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8177         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8178         functions.
8179         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8180         functions.
8181         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8182         Modify the value of i386fbsd_sigtramp_start and
8183         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8184         i386fbsd_sigtramp_end.
8185         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8186         function.
8187
8188         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8189         define to i386-linux-tdep.h.
8190         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8191         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8192         defines.
8193         (i386_linux_register_name, i386_linux_register_byte,
8194         i386_linux_register_raw_size): Remove prototypes.
8195         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8196         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8197         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8198         TARGET_WRITE_PC): Remove defines.
8199         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8200         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8201         i386_linux_write_pc): Remove prototypes.
8202         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8203         (get_longjmp_target): Remove prototype.
8204         * i386-linux-tdep.h: New file.
8205         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8206         * i386-linux-tdep.c: Include "i386-tdep.h" and
8207         "i386-linux-tdep.h".
8208         (i386_linux_register_name, i386_linux_register_byte,
8209         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8210         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8211         Make static.
8212         (i386_linux_init_abi): New function.
8213         (_initialize_i386_linux_tdep): New function.
8214
8215         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8216         (i386_saved_pc_after_call): Remove prototype.
8217         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8218         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8219         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8220         (i386_register_name, i386_stab_reg_to_regnum,
8221         i386_dwarf_reg_to_regnum): Remove prototypes.
8222         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8223         SIZEOF_SSE_REGS): Remove defines.
8224         (REGISTER_BYTES): Remove define.
8225         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8226         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8227         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8228         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8229         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8230         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8231         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8232         (get_longjmp_target): Remove prototype.
8233         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8234         (sigtramp_saved_pc): Remove define.
8235         (i386v4_sigtramp_saved_pc): Remove prototype.
8236         * config/i386/tm-go32.h (FRAME_CHAIN,
8237         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8238         (i386go32_frame_saved_pc): Remove prototype.
8239         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8240         (get_longjmp_target): Remove prototype.
8241         * i386-tdep.h: Include "osabi.h".
8242         (enum i386_abi): Removed.
8243         (enum struct_return): New enum.
8244         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8245         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8246         sc_pc_offset members.
8247         (i386_gdbarch_register_os_abi): Remove prototype.
8248         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8249         I386_SSE_NUM_REGS): New defines.
8250         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8251         I386_SSE_SIZEOF_REGS): New defines.
8252         (i386_register_name, i386_register_byte, i386_register_raw_size):
8253         New prototypes.
8254         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8255         (i386bsd_sigtramp_saved_pc): New prototype.
8256         * i386-tdep.c: Don't include "elf-bfd.h".
8257         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8258         i386_frame_chain, i386_saved_pc_after_call): Make static.
8259         (i386_frame_saved_pc): Rewrite to call architecture dependent
8260         function to deal with signal handlers.  Make static.
8261         (i386go32_frame_saved_pc): Removed.
8262         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8263         Removed.
8264         (i386_get_longjmp_target): New function.
8265         (default_struct_convention, pcc_struct_convention,
8266         reg_struct_convention, valid_conventions, struct_convention): New
8267         variables.
8268         (i386_use_struct_convention): New function.
8269         (i386v4_sigtramp_saved_pc): Renamed to
8270         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8271         (i386_pc_in_sigtramp): New function.
8272         (i386_abi_names): Removed.
8273         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8274         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8275         Removed.
8276         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8277         i386_gdbarch_register_os_abi): Removed.
8278         (struct i386_abi_handler): Removed.
8279         (i386_abi_handler_list): Removed.
8280         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8281         functions.
8282         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8283         i386_nw_init_abi): New functions.
8284         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8285         Use set_gdbarch_xxx() calls instead of relying on macros for a
8286         number of calls.
8287         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8288         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8289         Register the various architecture variants defined in this file.
8290
8291 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8292
8293         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8294         (struct main_type): Remove arg_types member.  Update comments for
8295         struct field.
8296         (TYPE_ARG_TYPES): Remove.
8297         (TYPE_FN_FIELD_ARGS): Update.
8298         (smash_to_method_type): Update prototype.
8299
8300         * c-typeprint.c (cp_type_print_method_args): Take method type
8301         instead of argument list.  Use new argument layout.  Simplify.
8302         (c_type_print_args): Use new argument layout.  Simplify.
8303         (c_type_print_base): Update call to cp_type_print_method_args.
8304         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8305         argument; use die->type instead.  Update call to
8306         smash_to_method_type.
8307         (read_structure_scope): Update call to dwarf2_add_member_fn.
8308         * gdbtypes.c (allocate_stub_method): Update comment.
8309         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8310         Use new argument layout.
8311         (check_stub_method): Use new argument layout.  Don't count
8312         void as an argument.
8313         (print_arg_types): Update comments.  Use new argument layout.
8314         (recursive_dump_type): Don't print arg_types member.
8315         * hpread.c (hpread_read_struct_type): Use new argument layout.
8316         (fixup_class_method_type): Likewise.
8317         (hpread_type_lookup): Likewise.
8318         * stabsread.c (read_type): Update calls to read_args and
8319         smash_to_method_type.
8320         (read_args): Use new argument layout.  Simplify.
8321         * valops.c (typecmp): Use new argument layout.  Update parameters
8322         and comments.  Simplify.
8323         (hand_function_call): Use new argument layout.
8324         (search_struct_method): Update call to typecmp.
8325         (find_overload_match): Use new argument layout.
8326
8327 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8328
8329         * NEWS: Mention multithreaded debug support for gdbserver.
8330
8331 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8332
8333         * MAINTAINERS: Mention NEWS.
8334
8335 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8336
8337         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8338         (struct mips_objfile_private, compare_pdr_entries): New.
8339         (non_heuristic_proc_desc): Read the ".pdr" section if it
8340         is present.
8341
8342 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8343
8344         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8345         (arm_debug): New static variable.
8346         (_initialize_arm_tdep): Add ``set debug arm'' command.
8347
8348 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8349
8350         * Makefile.in (sim_arm_h): Define.
8351         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8352         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8353         (arm_register_sim_regno): New function, map an internal REGNUM
8354         onto a simulator register number.
8355         (arm_gdbarch_init): Set register_sim_regno.
8356
8357 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8358
8359         * MAINTAINERS: Add self.
8360
8361 2002-06-11  Jim Blandy  <jimb@redhat.com>
8362
8363         * source.c (source_info): Mention whether the symtab has
8364         information about preprocessor macros.
8365
8366         Call the command `info macro', not `show macro'.
8367         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8368         Fix error message.
8369         (_initialize_macrocmd): Register `info_macro_command' in
8370         `infolist', not `showlist'.
8371
8372 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8373
8374         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8375         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8376         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8377         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8378         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8379         unconditionally.
8380         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8381         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8382         (_initialize_mips_tdep): Remove dead code.
8383         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8384         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8385         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8386         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8387         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8388         MIPS_LAST_FP_ARG_REGNUM): Remove.
8389
8390 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8391
8392         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8393         (unwind_tmp_obstack_free, parse_frame_info)
8394         (update_context, cfi_read_fp, cfi_write_fp)
8395         (cfi_frame_chain, cfi_init_extra_frame_info)
8396         (cfi_virtual_frame_pointer): Use the above function.
8397         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8398
8399 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8400
8401         * v850-tdep.c (v850_type_is_scalar): New function.
8402         (v850_use_struct_convention): Match current gcc implementation
8403         as close as possible.
8404         (v850_push_arguments): Fix stack_offset handling.  Don't write
8405         struct_addr into register.  This is done by v850_store_struct_return.
8406         (v850_extract_return_value): Care for structs.
8407         (v850_store_return_value): Ditto.
8408         (v850_store_struct_return): Actually write address.
8409
8410 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8411
8412         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8413         without debug information too.
8414
8415 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8416
8417         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8418         Make multi-arch pure.
8419         * gdbarch.h, gdbarch.c: Re-generate.
8420         * arm-tdep.c (arm_print_float_info): Update.
8421         * arch-utils.h (default_print_float_info): Update.
8422         * arch-utils.c (default_print_float_info): Update.
8423         * infcmd.c (float_info): Update call.
8424
8425 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8426
8427         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8428         the front of the initialize list.
8429
8430 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8431
8432         * infrun.c (struct inferior_status): Replace fields
8433         selected_frame_address and selected_level with field
8434         selected_frame_id.
8435         (save_inferior_status): Update.  Use get_frame_id.
8436         (struct restore_selected_frame_args): Delete.
8437         (restore_selected_frame): Update.  Use frame_find_by_id.
8438         (restore_inferior_status): Update.
8439
8440         * breakpoint.h (struct breakpoint): Change type of
8441         watchpoint_frame to frame_id.
8442         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8443         call to get_current_frame.
8444         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8445         get_current_frame.
8446         (watchpoint_check): Use frame_find_by_id.
8447
8448         * frame.h (record_selected_frame): Delete declaration.
8449         * stack.c (record_selected_frame): Delete function.
8450         
8451         * frame.h (struct frame_id): Define.
8452         (get_frame_id): Declare.
8453         (frame_find_by_id): Declare.
8454         * frame.c (frame_find_by_id): New function.
8455         (get_frame_id): New function.
8456
8457 2002-06-10  Andrey Volkov <avolkov@transas.com>
8458
8459         * ser-e7kpc.c: Fix duplicated define and call of 
8460         _initialize_ser_e7000pc
8461             
8462 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8463
8464         * signals/signals.c (target_signal_from_host): Fix #ifdef
8465         SIGRTMIN case.
8466         (do_target_signal_to_host): Likewise.
8467
8468 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8469
8470         * mips-tdep.c (mips_find_abi_section): New function.
8471         (mips_gdbarch_init): Call it.
8472
8473 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8474
8475         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8476         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8477         after Andrew's 2002-06-08 gdbarch change.
8478
8479 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8480
8481         * i386-linux-nat.c (suppy_gregset): Don't supply
8482         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8483         register cache.
8484         (fill_gregset): Don't fetch it under the same circumstances.
8485
8486 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8487
8488         * Makefile.in (callback_h): Define.
8489         (remote_sim_h): Update path to remote-sim.h.
8490         (remote-rdp.o): Add $(callback_h).
8491         (remote-sim.o): Use $(callback_h).
8492         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8493         * remote-rdp.c: Include "gdb/callback.h".
8494
8495 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8496
8497         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8498         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8499
8500 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8501
8502         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8503         * rdi-share/serpardr.c: Ditto.
8504         * rdi-share/unixcomm.c: Ditto.
8505         * rdi-share/serdrv.c: Ditto.
8506         * rdi-share/hostchan.h: Ditto.
8507         * rdi-share/hostchan.c: Ditto.
8508         * rdi-share/host.h: Ditto.
8509         * rdi-share/devsw.c: Ditto.
8510
8511         * objfiles.h: Change type of obj_private to void pointer.
8512         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8513         strcmp instead of STREQ, use LONGEST, do not use PTR
8514         * somsolib.c: Ditto.
8515
8516         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8517         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8518         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8519
8520 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8521
8522         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8523         (default_get_saved_register): Delete function.
8524         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8525         generic_unwind_get_saved_register.
8526         * gdbarch.h, gdbarch.c: Re-generate.
8527         
8528 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8529
8530         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8531         generic_func_frame_chain_valid.
8532         * gdbarch.h, gdbarch.c: Re-generate.
8533         * blockframe.c (generic_func_frame_chain_valid): Only check
8534         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8535         passing FP to PC_IN_CALL_DUMMY.
8536         Fix PR gdb/360.
8537
8538 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8539
8540         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8541         (register_gdbarch_data): Initialize init_p.
8542         (gdbarch_data): Initialize data pointer using the init function.
8543         (init_gdbarch_data): Delete function.
8544         (gdbarch_update_p): Update.
8545         (initialize_non_multiarch): Update.
8546         (struct gdbarch): Add field initialized_p.
8547         * gdbarch.h, gdbarch.c: Re-generate.
8548
8549 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8550
8551         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8552         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8553         better do the things actually here.
8554         * x86-64-tdep.c (x86_64_register_name2nr): New.
8555         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8556         (x86_64_gdbarch_init): Respect the above change.
8557         * x86-64-tdep.h (x86_64_register_name2nr)
8558         (x86_64_register_nr2name): Add prototypes.
8559         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8560
8561 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8562
8563         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8564         Delete extra braces and re-indent.
8565         (d10v_store_return_value): Char return values
8566         must be shifted over by one byte in R0.
8567         (d10v_extract_return_value): Delete extra braces, re-indent.
8568
8569 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8570
8571         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8572         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8573         (d10v_integer_to_address): Rewrite.
8574         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8575         the d10v specific functions which take care of converting to the
8576         correct space.
8577
8578 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8579
8580         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8581         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8582
8583 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8584
8585         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8586         includes.
8587         * config/tm-linux.h: Ditto.
8588         * config/alpha/tm-alphalinux.h: Ditto.
8589         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8590         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8591         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8592         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8593         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8594         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8595         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8596         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8597         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8598         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8599         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8600         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8601         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8602         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8603         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8604         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8605         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8606         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8607         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8608         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8609         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8610         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8611         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8612         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8613         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8614         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8615         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8616         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8617         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8618         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8619         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8620         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8621         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8622         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8623         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8624         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8625         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8626
8627 2002-05-04  Aidan Skinner <aidan@velvet.net>
8628
8629         * ada-exp.tab.c: New file
8630         * ada-exp.y: New file
8631         * ada-lang.c: New file
8632         * ada-lang.h: New file
8633         * ada-lex.c: New file
8634         * ada-lex.l: New file
8635         * ada-tasks.c: New file
8636         * ada-typeprint.c: New file
8637         * ada-valprint.c: New file
8638         
8639 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8640
8641         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8642         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8643
8644 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8645
8646         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8647         insetead of ppc-linux-tdep.o.
8648         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8649         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8650
8651 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8652
8653         2002-05-07 Christian Groessler <chris@groessler.org>
8654         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8655         bit register contents for little endian hosts.
8656
8657 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8658
8659         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8660         any maintainer.
8661
8662 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8663
8664         * gdbarch.h: Regenerate.
8665
8666 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8667
8668         * MAINTAINERS: Add everyone to write-after-approval list.
8669
8670 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8671
8672         * stack.c (frame_info): Use frame_register_unwind instead of
8673         saved_regs.  Mention when the SP is on the stack or in a register.
8674
8675         * frame.h (frame_register_unwind_ftype): Define.  Document.
8676         (struct frame_info): Add field register_unwind and
8677         register_unwind_cache.
8678         (frame_register_unwind): Declare.
8679         (generic_unwind_get_saved_register): Declare.
8680
8681         * frame.c (frame_register_unwind): New function.
8682         (generic_unwind_get_saved_register): New function.
8683
8684         * blockframe.c (generic_call_dummy_register_unwind): New function.
8685         (frame_saved_regs_register_unwind): New function.
8686         (set_unwind_by_pc): New function.
8687         (create_new_frame): New function.
8688         (get_prev_frame): New function.
8689
8690 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8691
8692         * a29k-share/: Delete directory.
8693         * remote-vx29k.c: Delete file.
8694
8695 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8696
8697         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8698         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8699
8700 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8701
8702         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8703         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8704         (sparc64nbsd-nat.o)
8705         (sparcnbsd-nat.o)
8706         (sparcnbsd-tdep.o): New dependency lists.
8707         * NEWS: Note new UltraSPARC NetBSD native configuration.
8708         * configure.host (sparc64-*-netbsd*): New host.
8709         * configure.tgt (sparc-*-netbsdelf*)
8710         (sparc-*-netbsd*): Set gdb_target to nbsd.
8711         (sparc64-*-netbsd*): New target.
8712         * sparc64nbsd-nat.c: New file.
8713         * sparcnbsd-nat.c: New file.
8714         * sparcnbsd-tdep.c: New file.
8715         * sparcnbsd-tdep.h: New file.
8716         * config/sparc/nbsd.mt: New file.
8717         * config/sparc/nbsd64.mh: New file.
8718         * config/sparc/nbsd64.mt: New file.
8719         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8720         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8721         (HOST_IPC): Remove.
8722         * config/sparc/nbsdaout.mt: Remove.
8723         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8724         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8725         (HOST_IPC): Remove.
8726         * config/sparc/nbsdelf.mt: Remove.
8727         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8728         sparc-nat.c compatiblity defines.
8729         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8730         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8731         * config/sparc/tm-nbsd64.h: New file.
8732         * config/sparc/tm-nbsdaout.h: Remove.
8733         * config/sparc/xm-nbsd.h: Remove.
8734
8735 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8736
8737         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8738         * sparc-tdep.c: Include osabi.h.
8739         (gdbarch_tdep): Add osabi member.
8740         (_initialize_sparc_tdep): Use gdbarch_register.
8741         (sparc_gdbarch_init): Use generic OS ABI framework.
8742         (sparc_dump_tdep): New function.
8743
8744 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8745
8746         * corefile.c (do_captured_read_memory_integer): Return non-zero
8747         result.
8748         (safe_read_memory_integer): Copy result of memory read when
8749         status is non-zero.  Also, add comments.
8750
8751 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8752
8753         * Makefile.in (ppc_tdep_h): Define.
8754         (ppc-linux-nat.o)
8755         (ppc-linux-tdep.o)
8756         (rs6000-tdep.o): Use $(ppc_tdep_h).
8757         (ppc-sysv-tdep.o)
8758         (ppcnbsd-nat.o)
8759         (ppcnbsd-tdep.o): New dependency lists.
8760         * ppc-tdep.h: Use generic OS ABI framework.
8761         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8762         (ppc_linux_init_abi): New functions.
8763         (ppc_sysv_abi_broken_use_struct_convention)
8764         (ppc_sysv_abi_use_struct_convention)
8765         (ppc_sysv_abi_push_arguments): Move to...
8766         * ppc-sysv-tdep.c: ...here.
8767         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8768         * rs6000-tdep.c (process_note_abi_tag_sections)
8769         (get_elfosabi): Remove.
8770         (rs6000_gdbarch_init): Use generic OS ABI framework.
8771         (rs6000_dump_tdep): New function.
8772         (_initialize_rs6000_tdep): Use gdbarch_register.
8773         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8774         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8775         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8776         of ppc-linux-tdep.o.
8777         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8778         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8779         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8780         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8781         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8782         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8783
8784 2002-05-29  Jim Blandy  <jimb@redhat.com>
8785
8786         * macroscope.c (default_macro_scope): Put `void' in empty argument
8787         list.
8788
8789 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8790
8791         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8792         * arch-utils.c: Include "sim-regno.h".
8793         * gdbarch.sh: Don't include "sim-regno.h".
8794         * gdbarch.h, gdbarch.c: Regenerate.
8795         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8796         here.
8797         * arch-utils.h (legacy_register_sim_regno): To here.
8798         * remote-sim.c (legacy_register_sim_regno): Move function from
8799         here.
8800         * arch-utils.c (legacy_register_sim_regno): To here.
8801
8802 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8803
8804         * sim-regno.h: New file.
8805         * Makefile.in (sim_regno_h): Define.
8806         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8807         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8808         (legacy_register_sim_regno): New function.
8809         (one2one_register_sim_regno): New function.
8810         (gdbsim_fetch_register): Rewrite.
8811         (gdbsim_store_register): Only store a register when
8812         REGISTER_SIM_REGNO is valid.
8813         * d10v-tdep.c: Include "sim-regno.h".
8814         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8815         (d10v_ts3_register_sim_regno): Ditto.
8816         * gdbarch.sh: Include "sim-regno.h".
8817         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8818         * gdbarch.h, gdbarch.c: Regenerate.
8819         * arch-utils.h (default_register_sim_regno): Delete declaration.
8820         * arch-utils.c (default_register_sim_regno): Delete function.
8821
8822 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8823
8824         * ppcnbsd-nat.c: Rewrite.
8825         * ppcnbsd-tdep.c: New file.
8826         * ppcnbsd-tdep.h: New file.
8827         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8828         solib.o, and solib-svr4.o.
8829         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8830         nbsd-tdep.o, and corelow.o.
8831
8832 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8833
8834         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8835         `tr' and `sed'.  Mention that `broken' targets are not expected to
8836         build.
8837
8838 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8839
8840         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8841         Let PC point right after the prologue before looking up symbols.
8842         
8843 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8844
8845         * i386-tdep.c (i386_register_virtual_type): Return 
8846         builtin_type_vec128i for SSE registers.
8847
8848         * gdbtypes.h (builtin_type_vec128i): Declare.
8849
8850         * gdbtypes.c (build_builtin_type_vec128i): New function.
8851         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8852         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8853         (build_gdbtypes): Initialize new builtin vector types.
8854         (_initialize_gdbtypes): Register new vector types with gdbarch.
8855
8856 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8857
8858         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8859         since it has been multi-arch'd.
8860         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8861         Move Alpha and VAX multi-arch news entries to same section
8862         as other multi-arch news.
8863
8864 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8865
8866         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8867         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8868         static.  Rename some register numbers to put them in ns32k-tdep
8869         private namespace.
8870         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8871         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8872         functions.
8873         (_initialize_ns32k_tdep): Use gdbarch_register.
8874         * ns32k-tdep.h: New file.
8875         * ns32knbsd-tdep.c: New file.
8876         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8877         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8878         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8879         REGISTER_BYTES, REGISTER_BYTE): Remove.
8880         * config/ns32k/tm-ns32k.h: New file.
8881         * config/ns32k/tm-umax.h: Remove.
8882
8883 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8884
8885         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8886         ns32k_store_struct_return, ns32k_extract_return_value,
8887         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8888         functions.
8889         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8890         ns32k_saved_pc_after_call.
8891         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8892         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8893         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8894         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8895         ns32k_extract_struct_value_address.
8896
8897 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8898
8899         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8900         ns32k_fix_call_dummy): New.
8901         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8902         ns32k_call_dummy_words.
8903         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8904         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8905         CALL_DUMMY_NARGS): Remove.
8906         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8907
8908 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8909
8910         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8911         ns32k_frame_saved_pc, ns32k_frame_args_address,
8912         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8913         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8914         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8915         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8916         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8917         (BREAKPOINT): Remove..
8918         (FRAME_CHAIN): Define as ns32k_frame_chain.
8919         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8920         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8921         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8922         (FRAME_FIND_SAVED_REGS): Remove.
8923         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8924         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8925         (POP_FRAME): Define as ns32k_pop_frame.
8926
8927 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8928
8929         * ns32k-tdep.c (ns32k_register_byte_32082,
8930         ns32k_register_byte_32382, ns32k_register_raw_size,
8931         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8932         functions.
8933         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8934         ns32k_register_byte_32382.
8935         * config/ns32k/tm-umax.h: Update copyright years.
8936         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8937         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8938         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8939         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8940         (ns32k_get_enter_addr): Fix prototype.
8941
8942 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8943
8944         * ns32k-tdep.c: Update copyright years.
8945         (ns32k_register_name_32082): New function.
8946         (ns32k_register_name_32382): Ditto.
8947         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8948         (REGISTER_NAME): Define as ns32k_register_name_32382.
8949         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8950         (REGISTER_NAME): Define as ns32k_register_name_32082.
8951
8952 2002-05-24  Jim Blandy  <jimb@redhat.com>
8953
8954         * dwarf2read.c (free_line_header): Use xfree, not free.
8955
8956 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8957
8958         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8959         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8960
8961 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8962
8963         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8964
8965 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8966
8967         From Ross Alexander at NEC Europe:
8968         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8969
8970 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8971
8972         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8973         for input, rather than parse_and_eval_address.  
8974
8975 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8976
8977         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8978         * Makefile.in (sim_d10v_h): Update definition.
8979
8980 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8981
8982         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8983         change `2002-05-22 Michael Snyder' below.
8984         (d10v_push_arguments): Ditto.
8985         (d10v_extract_return_value): Ditto.
8986
8987 2002-05-23  Jim Blandy  <jimb@redhat.com>
8988
8989         * macrotab.c (check_for_redefinition): Don't complain if the new
8990         definition is the same as the previous one.  Take more arguments
8991         to allow the comparison.
8992         (macro_define_object, macro_define_function): Pass more arguments
8993         to check_for_redefinition.
8994
8995 2002-05-22  Michael Snyder  <msnyder@redhat.com>
8996
8997         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8998         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8999         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9000         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9001         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9002         Add a temp variable to save a call (and a memory read).
9003         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9004         if possible (so that PC_IN_CALL_DUMMY will work).
9005
9006 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9007
9008         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9009
9010 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9011
9012         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9013         fde->cie_ptr.
9014         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9015         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9016         so that frames of shared libraries are mapped correctly.
9017         (execute_stack_op): Change type of 'result' from ULONGEST to
9018         CORE_ADDR.
9019         
9020 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9021
9022         * config/alpha/tm-nbsd.h: Include solib.h.
9023
9024 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9025
9026         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9027         assumptions about the host's byte order.
9028
9029 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9030
9031         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9032         to dependency list.
9033         * alphanbsd-tdep.c: Include solib-svr4.h.
9034         * shnbsd-tdep.c: Ditto.
9035
9036 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9037
9038         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9039         nbsd-tdep.h to dependency list.
9040         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9041         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9042         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9043         nbsdaout.mh and nbsdelf.mh consistently.
9044         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9045         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9046         nbsdaout.mt and nbsdelf.mh consistently.
9047         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9048         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9049         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9050         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9051         a.out shared library stuff from here...
9052         * config/nm-nbsdaout.h: ...to here.
9053         * config/tm-nbsd.h: Remove.
9054         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9055         * config/arm/nbsd.mh: Remove.
9056         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9057         nbsd-tdep.o.
9058         * config/arm/nbsdaout.mh: New file. 
9059         * config/arm/nbsdelf.mh: New file.
9060         * config/arm/nm-nbsdaout.h: New file.
9061         * config/i386/nbsd.mh: Remove.
9062         * config/i386/nbsd.mt: Remove.
9063         * config/i386/nbsdaout.mh: New file.
9064         * config/i386/nbsdaout.mt: New file.
9065         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9066         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9067         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9068         i386_register_u_addr): Remove.
9069         * config/i386/nm-nbsdaout.h: New file.
9070         * config/i386/nm-nbsdelf.h: Remove.
9071         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9072         (USE_STRUCT_CONVENTION): Remove.
9073         * config/i386/tm-nbsdaout.h: New file.
9074         * config/i386/tm-nbsdelf.h: Remove.
9075         * config/m68k/nbsd.mh: Remove.
9076         * config/m68k/nbsd.mt: Remove.
9077         * config/m68k/nbsdaout.mh: New file.
9078         * config/m68k/nbsdaout.mt: New file. 
9079         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9080         * config/m68k/nm-nbsdaout.h: New file.
9081         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9082         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9083         * config/ns32k/nbsd.mh: Remove.
9084         * config/ns32k/nbsd.mt: Remove. 
9085         * config/ns32k/nbsdaout.mh: New file.
9086         * config/ns32k/nbsdaout.mt: New file.
9087         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9088         * config/ns32k/nm-nbsdaout.h: New file.
9089         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9090         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9091         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9092         (SVR4_SHARED_LIBS): Remove.
9093         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9094         * config/sparc/nbsd.mh: Remove.
9095         * config/sparc/nbsd.mt: Remove.
9096         * config/sparc/nbsdaout.mh: New file.
9097         * config/sparc/nbsdaout.mt: New file.
9098         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9099         * config/sparc/nbsdelf.mt: New file.
9100         * config/sparc/nm-nbsdaout.h: New file.   
9101         * config/sparc/nm-nbsdelf.h: Remove.
9102         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9103         * config/sparc/tm-nbsdaout.h: New file.
9104
9105 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9106
9107         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9108         mipsnbsd-tdep.c
9109         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9110
9111 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9112
9113         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9114         shnbsd-nat.c.
9115         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9116
9117 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9118
9119         * NEWS: Note new MIPS NetBSD native configuration. 
9120         * configure.host (mips*-*-netbsd*): New host. 
9121         * configure.tgt (mips*-*-netbsd*): New target. 
9122         * mipsnbsd-nat.c: New file.
9123         * mipsnbsd-tdep.c: New file.
9124         * mipsnbsd-tdep.h: New file.
9125         * config/mips/nbsd.mh: New file.
9126         * config/mips/nbsd.mt: New file.
9127         * config/mips/nm-nbsd.h: New file.
9128         * config/mips/tm-nbsd.h: New file.
9129
9130 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9131
9132         * Makefile.in (SFILES): Add osabi.c.
9133         (COMMON_OBS): Add osabi.o.
9134         (osabi.o): New dependency list.
9135         * osabi.c: New file.
9136         * osabi.h: New file.
9137         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9138
9139         * Makefile.in (alpha_tdep_h): Define and use instead of
9140         alpha-tdep.h.
9141         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9142         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9143         Remove.
9144         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9145         * alpha-tdep.h: Include osabi.h.
9146         (alpha_abi): Remove.
9147         (gdbarch_tdep): Use generic OS ABI framework.
9148         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9149         gdbarch_register_osabi.
9150         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9151         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9152         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9153
9154         * Makefile.in (sh_tdep_h): Add osabi.h.
9155         * sh-tdep.h (sh_osabi): Remove.
9156         (gdbarch_tdep): Use generic OS ABI framework.
9157         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9158         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9159         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9160         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9161
9162         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9163         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9164         gdbarch_register_osabi.
9165         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9166         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9167         (get_elfosabi): Rename to...
9168         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9169         ABI framework support routines.
9170         (arm_gdbarch_init): Use generic OS ABI framework.
9171         (arm_dump_tdep): Likewise.
9172         (_initialize_arm_tdep): Likewise.
9173         * arm-tdep.h: Include osabi.h.
9174         (arm_abi): Remove.
9175         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9176         osabi member.
9177         (arm_gdbarch_register_os_abi): Remove prototype.
9178         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9179         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9180
9181         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9182         * mips-tdep.c: Include osabi.h.
9183         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9184         OS ABI framework.
9185
9186 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9187
9188         * h8300-tdep.c: Fix formatting.
9189
9190 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9191
9192         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9193         printing vector registers.
9194
9195 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9196
9197         From Fernando Nasser:
9198         * remote.c (remote_async_open_1): Re-throw the exception when the
9199         connection fails.
9200         (remote_cisco_open): Ditto.
9201         (remote_open_1): Ditto.
9202
9203 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9204
9205         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9206         (remote_start_remote): Add uiout parameter.  Pass through to
9207         remote_start_remote_dummy.
9208         (remote_open_1): Use catch_exception instead of catch_errors.
9209         (remote_async_open_1): Ditto.
9210         (remote_cisco_open): Ditto.
9211
9212 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9213
9214         * remote.c (remote_start_remote): Replace PTR with void pointer.
9215         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9216         static.
9217
9218 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9219
9220         * gdb_indent.sh: Allow the script to be run in the sim directory.
9221
9222 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9223
9224         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9225         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9226
9227         * corelow.c (core_open): Only call set_gdbarch_from_file if
9228         exec_bfd is NULL.
9229
9230 2002-05-17  Andrey Volkov <avolkov@transas.com>
9231
9232         * h8300-tdep.c: Add support of EXR register
9233         * config/h8300/tm-h8300.h: Ditto. 
9234         
9235 2002-05-17  Andrey Volkov <avolkov@transas.com>
9236
9237         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9238         
9239 2002-05-17  Andrey Volkov <avolkov@transas.com>
9240
9241         * h8300-tdep.c: Change literal regnums to REGNO.
9242         
9243 2002-05-17  Jim Blandy  <jimb@redhat.com>
9244
9245         * NEWS: Note addition of macro support.
9246
9247         Expand preprocessor macros in C expressions.
9248         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9249         (scan_macro_expansion, scanning_macro_expansion,
9250         finished_macro_expansion): New function declarations.
9251         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9252         variable declarations.
9253         * parser-defs.h (expression_context_pc): New declaration.
9254         * parse.c (expression_context_pc): New variable.
9255         (parse_exp_1): Set expression_context_pc, as well as
9256         expression_context_block.
9257         * c-exp.y (yylex): If we're not already reading the result of a
9258         macro expansion, try to macro-expand the next token.  When we're
9259         done scanning a macro expansion, switch back to the mainline text.
9260         Commas and `if's in a macro's expansion don't terminate the input.
9261         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9262         (macro_original_text, macro_expanded_text,
9263         expression_macro_lookup_func, expression_macro_lookup_baton): New
9264         variables.
9265         (scan_macro_expansion, scanning_macro_expansion,
9266         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9267         c_preprocess_and_parse): New functions.
9268         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9269         c_preprocess_and_parse, instead of c_parse.
9270         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9271         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9272
9273 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9274
9275         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9276         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9277         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9278
9279 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9280
9281         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9282
9283 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9284
9285         * Makefile.in (sh_tdep_h): Define and use.
9286         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9287         register enum): Move to...
9288         * * sh-tdep.h: ...here.
9289         * sh-tdep.c: Include sh-tdep.h.
9290         * sh3-rom.c: Likewise.
9291         * shnbsd-tdep.c: Likewise.
9292
9293 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9294
9295         * arm-tdep.c: Spelling fix in comment.
9296
9297 2002-05-16  Jim Blandy  <jimb@redhat.com>
9298
9299         Add commands for manually expanding macros and showing their
9300         definitions.
9301         * macrocmd.c, macroscope.c, macroscope.h: New files.
9302         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9303         (macroscope_h): New variable.
9304         (HFILES_NO_SRCDIR): Add macroscope.h.
9305         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9306         (macroscope.o, macrocmd.o): New rules.
9307
9308         Teach the Dwarf 2 reader to read macro information.
9309         * dwarf2read.c: #include "macrotab.h".
9310         (dwarf_macinfo_buffer): New variable.
9311         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9312         dwarf_macinfo_size.
9313         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9314         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9315         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9316         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9317         dwarf2_macro_spaces_in_definition): New complaints.
9318         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9319         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9320         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9321         the partial symbol table.
9322         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9323         from what's recorded in the partial symbol table.
9324         (read_file_scope): If the compilation unit has a
9325         `DW_AT_macro_info' attribute, read its macro information.
9326         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9327
9328 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9329
9330         Fix PR gdb/546
9331         * ser-tcp.c: Don't include <netinet/udp.h>.
9332
9333 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9334
9335         * MAINTAINERS: Update my email address.
9336
9337 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9338
9339         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9340         include file of the same name.
9341
9342 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9343
9344         * configure.tgt: Mark v850 as multi-arched.
9345         * config/v850/tm-v850.h: Remove file.
9346         * config/v850/v850.mt: Eliminate TM_FILE.
9347
9348 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9349
9350         * v850-tdep.c: Full multi-arch.
9351         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9352         Define GDB_MULTI_ARCH to 2.
9353
9354 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9355
9356         * p-exp.y (current_type): New static variable.
9357         Carries the type of the expression at the position that is parsed.
9358         (push_current_type, pop_current_type): Two new functions. Used
9359         to store/restore current_type in expression on specific tokens.
9360         (search_field): New static variable. Set to one after parsing a point
9361         as at that point only a FIELDNAME token should be searched.
9362         (FIELDNAME): New token. After a point only a token belonging to 
9363         current_type type definition is allowed.
9364         (all over token rules): reset and change current_type according
9365         to rules.
9366         (exp '[' rule): insert implicit array index field if
9367         exp is a pascal string type.
9368
9369 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9370
9371         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9372         frame info.  Use frame_info's saved_regs instead of matching member
9373         in extra_frame_info throughout.
9374         (v850_frame_init_saved_regs): New function.
9375         (v850_init_extra_frame_info): Move most functionality into
9376         v850_frame_init_saved_regs().
9377         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9378         (v850_frame_find_saved_regs): Remove declaration.
9379         (FRAME_FIND_SAVED_REGS): Remove definition.
9380         (v850_frame_init_saved_regs): Add declaration.
9381         (FRAME_INIT_SAVED_REGS): Add definition.
9382
9383 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9384
9385         * v850-tdep.c: Begin multi-arch'ing v850.
9386         (v850_target_architecture_hook): Remove function.
9387         (v850_gdbarch_init): New function.  Add code previously in
9388         v850_target_architecture_hook().
9389         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9390         Call register_gdbarch_init() instead.
9391
9392 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9393
9394         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9395         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9396         (fixup_class_method_type): Likewise.
9397
9398 2002-05-15  Jim Blandy  <jimb@redhat.com>
9399
9400         Add macro structures to GDB's symbol tables.  Nobody puts anything
9401         in them yet.
9402         * symtab.h (struct symtab): New member: `macro_table'.
9403         * buildsym.h (pending_macros): New global variable.
9404         * buildsym.c: #include "macrotab.h".
9405         (buildsym_init): Initialize `pending_macros'.
9406         (end_symtab): If we found macro information while reading a CU's
9407         debugging info, do build a symtab structure for it.  Make the
9408         symtab point to the macro information, and clear the
9409         `pending_macros' pointer which held it while we were reading the
9410         debug info.
9411         (really_free_pendings): Free any pending macro table.
9412         * objfiles.h (struct objfile): New member: `macro_cache'.
9413         * objfiles.c (allocate_objfile): Set allocate and free functions
9414         for the macro cache's objstack.
9415         (free_objfile): Empty the macro cache's obstack.
9416         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9417         set new allocate and free functions for it.
9418         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9419         free functions for the macro cache's objstack.  (Why is this
9420         function building its own objfile?)
9421         * symmisc.c (print_objfile_statistics): Print statistics on the
9422         macro bcache.
9423         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9424
9425 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9426
9427         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9428         (REGISTER_U_ADDR): Delete definition.
9429         (arm_register_u_addr): Delete declaration.
9430
9431 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9432
9433         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9434         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9435
9436 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9437
9438         * regcache.c (register_valid): Revise comments refering to "Not
9439         available" and "unavailable".
9440         * frame.c (frame_register_read): Ditto.
9441         * findvar.c (value_of_register): Ditto.
9442
9443 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9444
9445         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9446         (remote-sim.o): Update dependencies.
9447         (d10v-tdep.o): Specify dependencies.
9448         (sim_d10v_h): Define.
9449
9450 2002-05-14  Jim Blandy  <jimb@redhat.com>
9451
9452         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9453         * macrotab.c (macro_lookup_inclusion, find_definition,
9454         new_macro_table): Same.
9455         
9456         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9457         not `! strcmp ()'.  This is a dubious improvement.
9458         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9459
9460         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9461         although it's not necessary, to avoid a warning.
9462
9463 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9464
9465         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9466         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9467         TYPE_INSTANCE_FLAGS.
9468         (struct main_type): New.
9469         (struct type): Move most members to struct main_type.  Change
9470         cv_type and as_type to new type_chain member.  Add instance_flags.
9471         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9472         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9473         (finish_cv_type): Remove prototype.
9474         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9475         Set TYPE_CHAIN.
9476         (alloc_type_instance): New function.
9477         (smash_type): New function.
9478         (make_pointer_type, make_reference_type, make_function_type)
9479         (smash_to_member_type, smash_to_method_type): Call smash_type.
9480         (make_qualified_type): New function.
9481         (make_type_with_address_space): Call make_qualified_type.
9482         (make_cv_type): Likewise.
9483         (finish_cv_type): Remove unnecessary function.
9484         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9485         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9486         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9487         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9488         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9489         * hpread.c (hpread_read_struct_type): Likewise.
9490         * stabsread.c (read_struct_type): Likewise.
9491
9492 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9493
9494         * configure.tgt: Add a catch all sh* target, for cases like
9495         sh[2,3,4]-elf and sh-hms.
9496
9497 2002-05-14  Keith Seitz  <keiths@redhat.com>
9498
9499         * event-loop.c (create_file_handler): Don't do anything but
9500         update data when we are given a fd which we are already
9501         monitoring.
9502
9503 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9504
9505         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9506         (update_context): Use __func__ in warnings.
9507         
9508 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9509
9510         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9511         and tcp_close to net_open and net_close.
9512         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9513         using UDP if requested.  Don't try to disable Nagle on UDP
9514         sockets.
9515         * remote.c (remote_serial_open): New function.  Warn about UDP.
9516         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9517
9518 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9519
9520         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9521
9522 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9523
9524         * configure.tgt: Remove sh-hms target.
9525         * MAINTAINERS: Don't list sh-hms as a separate target.
9526
9527 2002-05-13  Jim Blandy  <jimb@redhat.com>
9528
9529         Add first preprocessor macro-expansion files.
9530         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9531         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9532         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9533         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9534         (COMMON_OBS): Add macrotab.o, macroexp.o.
9535         (macroexp.o, macrotab.o): New rules.
9536
9537 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9538
9539         * config/m88k/tm-m88k.h: Update copyright.
9540         (m88k_target_write_pc): Declare
9541         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9542         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9543         (SHIFT_INST_REGS): Update definition.
9544         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9545         using old definition of TARGET_WRITE_PC.
9546         * regcache.c (generic_target_write_pc): Delete code handling
9547         NNPC_REGNUM.
9548         * gdbarch.sh (NNPC_REGNUM): Delete.
9549         * gdbarch.h, gdbarch.c: Regenerate.
9550
9551 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9552
9553         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9554         builtin reg number.
9555
9556 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9557
9558         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9559         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9560         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9561         access macros.
9562         * c-typeprint.c (cp_type_print_method_args): Likewise.
9563         (c_type_print_args): Likewise.
9564         * d10v-tdep.c (d10v_push_arguments): Likewise.
9565         (d10v_extract_return_value): Likewise.
9566         * expprint.c (print_subexp): Likewise.
9567         * gdbtypes.c (lookup_primitive_typename): Likewise.
9568         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9569         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9570         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9571         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9572         (TYPE_VECTOR): Likewise.
9573         * hpread.c (hpread_read_struct_type)
9574         (fix_static_member_physnames, fixup_class_method_type)
9575         (hpread_type_lookup): Likewise.
9576         * mdebugread.c (parse_symbol, parse_type): Likewise.
9577         * p-lang.c (is_pascal_string_type): Likewise.
9578         * valops.c (hand_function_call): Likewise.
9579         * x86-64-tdep.c (classify_argument): Likewise.
9580
9581         * hpread.c (hpread_read_function_type)
9582         (hpread_read_doc_function_type): Call replace_type.
9583         * dstread.c (create_new_type): Delete.
9584         (decode_dst_structure, process_dst_function): Call alloc_type.
9585         Use type access macros.
9586
9587 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9588
9589         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9590         the're not supported by the current architecture.
9591         (i387_fill_fxsave): Likewise.
9592
9593 2002-05-12  Fred Fish  <fnf@redhat.com>
9594
9595         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9596         sect_index_xxx members to index the first slot in section_offsets
9597         if all of the section_offsets are zero.
9598
9599 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9600
9601         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9602         checked in with last change.
9603
9604 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9605
9606         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9607         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9608         config.sub.
9609
9610 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9611
9612         * Makefile.in: Update dependencies.
9613
9614 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9615
9616         * language.c (local_hex_string_custom): Simplify.  Do not depend
9617         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9618
9619         * memattr.c (mem_info_command): Replace calls to
9620         longest_local_hex_string and longest_local_hex_string_custom.
9621         * buildsym.c (make_blockvector): Ditto.
9622         * solib.c (info_sharedlibrary_command): Ditto.
9623         * tracepoint.c (tracepoints_info): Ditto.
9624         * symtab.c (print_msymbol_info): Ditto.
9625
9626         * language.c (local_hex_string): Delete.
9627         (local_hex_string_custom): Delete.
9628         (longest_local_hex_string): Rename to local_hex_string.
9629         (longest_local_hex_string_custom): Rename to
9630         local_hex_string_custom.
9631         * language.h (local_hex_string): Change parameter type to LONGEST.
9632         (local_hex_string_custom): Ditto.
9633         (longest_local_hex_string): Delete declaration.
9634         (longest_local_hex_string_custom): Ditto.
9635
9636         * solib.c: Update copyright.
9637         * memattr.c: Update copyright.
9638         
9639 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9640
9641         * arch-utils.h (legacy_register_to_value): Declare.
9642         (legacy_value_to_register): Declare.
9643         (legacy_convert_register_p): Declare.
9644         * arch-utils.c (legacy_register_to_value): New function.
9645         (legacy_value_to_register): New function.
9646         (legacy_convert_register_p): New function.
9647
9648         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9649         (VALUE_TO_REGISTER): Define.
9650         (CONVERT_REGISTER_P): Define.
9651         * gdbarch.h, gdbarch.c: Regenerate.
9652
9653         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9654         VALUE_TO_REGISTER.
9655         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9656         CONVERT_REGISTER_P.
9657
9658 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9659             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9660
9661         * Makefile.in: Update dependencies for valops.c.
9662         * valops.c: Include "gdb_assert.h".
9663         (typecmp): Skip THIS parameter to methods.
9664         (find_method_list): Remove static_memfuncp argument,
9665         update callers.  Check for stub methods.
9666         (find_value_oload_method_list): Don't set *static_memfuncp.
9667         (find_overload_match): Don't check for stub methods.  Assert
9668         that methods are not stubbed.  Handle static methods.
9669         (value_find_oload_method_list): Remove static_memfuncp argument.
9670         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9671         to the argument list for static stub methods.
9672         * value.h (value_find_oload_method_list): Update prototype.
9673
9674 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9675
9676         * arch-utils.h (generic_register_size): Declare.
9677         (generic_register_raw_size, generic_register_virtual_size): Delete
9678         declarations.
9679         * arch-utils.c (generic_register_raw_size): Delete.
9680         (generic_register_size): New function.
9681         (generic_register_virtual_size): Delete.
9682
9683         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9684         default generic_register_size.
9685         * gdbarch.h, gdbarch.c: Re-generate.
9686         
9687         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9688         register_virtual_size.
9689         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9690         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9691
9692 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9693
9694         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9695         * gdbarch.h, gdbarch.c: Regenerate.
9696         * gnu-v3-abi.c: Update copyright.
9697         (vtable_address_point_offset): Update.
9698         (gnuv3_rtti_type): Update.
9699         (gnuv3_baseclass_offset): Update.
9700         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9701         (init_fetch_link_map_offsets): Update.
9702         * remote.c (get_remote_state): Update.
9703         
9704 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9705
9706         * TODO: Remove value_headof/value_from_vtable_info comment.
9707         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9708         * values.c (value_headof, value_from_vtable_info): Delete.
9709         * value.h (value_from_vtable_info): Delete prototype.
9710
9711 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9712
9713         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9714         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9715         $(gdb_regex_h).
9716         (gdb_assert_h): Define.
9717         (gdb_wait_h): Define.
9718         (gdb_regex_h): Define.
9719
9720 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9721
9722         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9723         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9724
9725 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9726
9727         * nbsd-tdep.c: Fix comment.
9728
9729 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9730
9731         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9732         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9733         (nbsd-tdep.o): New dependency list.
9734         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9735         nbsd-tdep.h.
9736         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9737         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9738         * nbsd-tdep.c: New file.
9739         * nbsd-tdep.h: New file.
9740         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9741         nbsd-tdep.h.
9742         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9743         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9744         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9745         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9746
9747 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9748
9749         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9750         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9751         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9752         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9753         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9754         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9755
9756 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9757
9758         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9759         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9760         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9761         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9762         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9763         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9764         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9765
9766 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9767
9768         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9769         fetch_elfcore_registers to...
9770         * i386nbsd-tdep.c: ...here.
9771         (i386nbsd_use_struct_convention): Rename to...
9772         (i386nbsd_aout_use_struct_convention): ...this.
9773         (i386nbsd_supply_reg): New function.
9774         (i386nbsd_fill_reg): New function.
9775         (fetch_core_registers): Use i386nbsd_supply_reg.
9776         (fetch_elfcore_registers): Likewise.
9777         (_initialize_i386nbsd_tdep): New function.
9778         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9779         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9780         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9781         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9782         (i386nbsd_aout_use_struct_convention): ...this.
9783
9784 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9785
9786         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9787         (store_inferior_registers): Use shnbsd_fill_reg.
9788         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9789         sh_nbsd_supply_register): Collapse into...
9790         (shnbsd_supply_reg): ...this.
9791         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9792         (shnbsd_fill_reg): ...this.
9793         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9794         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9795         (fetch_core_registers): Use shnbsd_supply_reg.
9796         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9797         (sh_nbsd_core_fns): Rename to...
9798         (shnbsd_core_fns): ...this.
9799         (sh_nbsd_elfcore_fns): Rename to...
9800         (shnbsd_elfcore_fns): ...this.
9801         (sh_nbsd_init_abi): Rename to...
9802         (shnbsd_init_abi): ...this.
9803         (_initialize_sh_nbsd_tdep): Rename to...
9804         (_initialize_shnbsd_tdep): ...this.
9805         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9806         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9807         sh_nbsd_fill_register): Remove prototypes.
9808         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9809
9810 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9811
9812         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9813         (i387-nat.o): Delete dependency list.
9814         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9815         (x86-64-linux-nat.o): Likewise.
9816         * i387-nat.c: Delete file, moving contents to...
9817         * i387-tdep.c: ...here.
9818         * i387-nat.h: Rename...
9819         * i387-tdep.h: ...to this.
9820         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9821         * i386-linux-nat.c: Likewise.
9822         * i386bsd-nat.c: Likewise.
9823         * i386gnu-nat.c: Likewise.
9824         * i386nbsd-nat.c: Likewise.
9825         * i386v4-nat.c: Likewise.
9826         * x86-64-linux-nat.c: Likewise.
9827         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9828         * config/i386/go32.mh (NATDEPFILES): Likewise.
9829         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9830         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9831         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9832         * config/i386/linux.mh (NATDEPFILES): Likewise.
9833         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9834         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9835         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9836         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9837
9838 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9839
9840         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9841         (alphanbsd-nat.o): Remove dependency list.
9842         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9843         * alphanbsd-nat.c: Delete.  Contents moved to...
9844         * alphanbsd-tdep.c: ...here.
9845         (_initialize_alphanbsd_tdep): Register core functions.
9846         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9847
9848 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9849
9850         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9851         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9852         (alphanbsd-nat.o): Likewise.
9853         (alphabsd-tdep.o): New dependency list.
9854         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9855         (fill_gregset): Use alphabsd_fill_reg.
9856         (supply_fpregset): Use alphabsd_supply_fpreg.
9857         (fill_fpregset): Use alphabsd_fill_fpreg.
9858         (fetch_inferior_registers): Use struct reg and struct fpreg
9859         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9860         and alphabsd_supply_fpreg.
9861         (store_inferior_registers): Use struct reg and struct fpreg
9862         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9863         and alphabsd_fill_fpreg.
9864         * alphabsd-tdep.c: New file.
9865         * alphabsd-tdep.h: New file.
9866         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9867         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9868         alphabsd_supply_fpreg.
9869         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9870         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9871
9872 2002-05-11  Eric Christopher  <echristo@redhat.com>
9873
9874         * mips-tdep.c (mips_double_register_type): Fix thinko.
9875         (mips_single_register_type): Ditto.
9876         * MAINTAINERS: Add self.
9877
9878 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9879
9880         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9881         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9882         right thing on architectures with different endianness and/or
9883         integer sizes.
9884
9885 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9886
9887         From Christian Limpach <chris@Pin.LU>
9888         * configure.in: Change sed expression which comments out
9889         NATDEPFILES to also comment out continuation lines.
9890         * configure: Regenerate.
9891
9892 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9893
9894         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9895         big patch.
9896
9897 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9898
9899         * sh-tdep.c: Include correct file.
9900
9901 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9902
9903         New support for sh64-elf (sh5) target.
9904
9905         * configure.tgt: For sh64-elf target, default to sh-elf.
9906
9907         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9908         (struct gdbarch_tdep): Add new fields for new registers and ABI
9909         info.
9910
9911         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9912         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9913         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9914         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9915         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9916         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9917         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9918         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9919         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9920         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9921         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9922         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9923         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9924         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9925         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9926         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9927         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9928         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9929         sign_extend, sh64_nofp_frame_init_saved_regs,
9930         sh64_init_extra_frame_info, sh64_get_saved_register,
9931         sh64_extract_struct_value_address, sh64_pop_frame,
9932         sh64_push_arguments, sh64_extract_return_value,
9933         sh64_store_return_value, sh64_show_media_regs,
9934         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9935         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9936         sh_sh64_register_virtual_type,
9937         sh_sh64_register_convert_to_virtual,
9938         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9939         sh64_register_read, sh64_pseudo_register_write,
9940         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9941         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9942         sh64_do_pseudo_register, sh_compact_do_registers_info,
9943         sh64_do_registers_info, sh_gdbarch_init): New functions.
9944
9945 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9946
9947         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9948
9949 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9950
9951         * linespec.c (decode_line_1): Check for a double quote after
9952         a filename correctly.
9953
9954 2002-05-10  Jim Blandy  <jimb@redhat.com>
9955
9956         Properly track the size of the current objfile's .debug_line section.
9957         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9958         (DWARF_LINE_SIZE): New macro.
9959         (dwarf2_build_psymtabs_hard): Record the line section's size in
9960         the partial symbol table.
9961         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9962         symbol table.
9963
9964 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9965
9966         * ia64-tdep.c: Handle breakpoints on L instruction type
9967         in MLX instruction bundle by moving the breakpoint to
9968         the third slot (X instruction type) as L holds only data.
9969
9970 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9971
9972         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9973         (process_one_symbol): Complain about discarding local symbols
9974         due to a misplaced N_LBRAC entry.
9975
9976 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9977
9978         From Daniel Berlin <dan@cgsoftware.com>
9979         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9980         decrease the depth we are at, in the case of templates.
9981
9982 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9983
9984         * mips-tdep.c (mips_float_register_type): New function.
9985         (mips_double_register_type): New function.
9986         (mips_print_register): Use them.
9987         (do_fp_register_row): Likewise.
9988
9989 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9990
9991         * signals/signals.c (signals): Remove conditional compilation around
9992         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9993         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9994
9995 2002-05-09  Michael Snyder  <msnyder@redhat.com>
9996
9997         * remote-rdp.c (remote_rdp_can_run): Remove.
9998
9999 2002-05-09  Tom Tromey  <tromey@redhat.com>
10000
10001         * jv-valprint.c (java_val_print): Handle `char' as a special case
10002         of TYPE_CODE_INT.
10003
10004 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10005
10006         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10007         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10008         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10009         str r(0123),[sp,#nn].
10010         (arm_skip_prologue): Ditto.  Also make disassembly
10011         order-independent by placing it in a loop.
10012
10013 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10014
10015         * stabsread.c (read_type): Add recognition for new attribute:
10016         "@V;" means that an array type is actually a vector.
10017         This is analogous to the vector flag that's been added to dwarf2.
10018
10019 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10020
10021         * i386-tdep.h (i386_abi): New enum.
10022         (struct gdbarch_tdep): Replace os_ident member with abi.
10023         (i386_gdbarch_register_os_abi): New prototype.
10024         * i386-tdep.c (i386_abi_names): New array.
10025         (process_note_abi_tag_sections): Removed.
10026         (process_note_sections): New function.
10027         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10028         (struct i386_abi_handler): New struct.
10029         (i386_abi_handler_list): New variable.
10030         (i386_gdbarch_register_os_abi): New function.
10031         (i386_gdbarch_init): Adapt for the changes given above.
10032
10033 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10034
10035         * gregset.h: Say "GNU/Linux".
10036
10037 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10038
10039         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10040         (build_gdbtypes): Build builtin_type_v2_float.
10041         (_initialize_gdbtypes): Register new builtin type.
10042
10043 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10044
10045         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10046         (clear_gdbarch_swap): New function.
10047         (initialize_non_multiarch): Call.
10048         (gdbarch_update_p): Before calling init(), swap out and clear the
10049         existing architecture.
10050         * gdbarch.c: Regenerate.
10051
10052 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10053
10054         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10055         alphanbsd-tdep.c.
10056
10057 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10058
10059         * sh-nbsd-nat.c: Rename to...
10060         * shnbsd-nat.c: ...this.
10061         * sh-nbsd-tdep.c: Rename to...
10062         * shnbsd-tdep.c: ...this.
10063         * sh-nbsd-tdep.h: Rename to...
10064         * shnbsd-tdep.h: ...this.
10065         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10066         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10067
10068 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10069
10070         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10071         concatenation for command help messages.
10072
10073 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10074
10075         * NEWS: Note new sh*-*-netbsdelf* configuration.
10076         * configure.host: Set gdb_host_cpu to sh for all sh*.
10077         (sh*-*-netbsdelf*): New host.
10078         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10079         (sh*-*-netbsdelf*): New target.
10080         * sh-nbsd-nat.c: New file.
10081         * sh-nbsd-tdep.c: New file.
10082         * sh-nbsd-tdep.h: New file.
10083         * config/sh/nbsd.mh: New file.
10084         * config/sh/nbsd.mt: New file.
10085         * config/sh/nm-nbsd.h: New file.
10086         * config/sh/tm-nbsd.h: New file.
10087
10088 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10089
10090         * sh-tdep.c (sh_osabi_names): Declare.
10091         (process_note_abi_tag_sections): New function.
10092         (get_elfosabi): Ditto.
10093         (sh_gdbarch_register_os_abi): Ditto.
10094         (sh_dump_tdep): Ditto.
10095         _initialize_sh_tdep): Use gdbarch_register to register
10096         sh_gdbarch_init and sh_dump_tdep.
10097         * config/sh/tm-sh.h (sh_osabi): Declare.
10098         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10099
10100 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10101
10102         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10103         (thumb_scan_prologue): Ditto.
10104         (arm_find_callers_reg): Ditto.
10105         (arm_frame_chain): Ditto.
10106         (arm_init_extra_frame_info): Ditto.
10107         (arm_frame_saved_pc): Ditto.
10108         (arm_pop_frame): Ditto.
10109         (arm_push_return_address): New function.
10110         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10111         call_dummy_location, call_dummy_breakpoint_offset_p,
10112         call_dummy_breakpoint_offset, call_dummy_p,
10113         call_dummy_stack_adjust_p, call_dummy_words,
10114         sizeof_call_dummy_words, call_dummy_start_offset,
10115         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10116         call_dummy_address, push_return_address and push_dummy_frame for
10117         generic dummy frames.
10118
10119 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10120
10121         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10122         size computation for alloca.
10123         (sh_fp_frame_init_saved_regs): Likewise.
10124
10125 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10126
10127         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10128         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10129         * arm-tdep.c (arm_store_return_value): Use them.
10130         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10131         * remote-rdp.c (remote_rdp_fetch_register): Use
10132         ARM_MAX_REGISTER_RAW_SIZE.
10133         (remote_rdp_store_register): Likewise.
10134
10135 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10136
10137         * dwarf2cfi.c: Code cleanup, removed unused variables,
10138         added default labels to switch {} statements.
10139         * x86-64-tdep.c: Ditto.
10140         * x86-64-linux-nat.c: Ditto.
10141
10142 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10143
10144         * solib.h: Protect against multiple inclusion.
10145
10146 2002-05-06  Jim Blandy  <jimb@redhat.com>
10147
10148         Add first preprocessor macro-expansion files.
10149         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10150         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10151         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10152         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10153         (COMMON_OBS): Add macrotab.o, macroexp.o.
10154         (macroexp.o, macrotab.o): New rules.
10155
10156         Separate the job of reading the line number info statement program
10157         header (...expialidocious) out into its own function.
10158         * dwarf2read.c (struct line_head, struct filenames, struct
10159         directories): Replace with...
10160         (struct line_header): New structure, containing the full
10161         contents of the statement program header, including the
10162         include directory and file name tables.
10163         (read_file_scope): If we have line number info, instead of just
10164         calling dwarf_decode_lines to do all the work, call
10165         dwarf_decode_line_header first to get a `struct line_header'
10166         containing the data in the statement program header, and then
10167         pass that to dwarf_decode_lines, which will pick up where that
10168         left off.  Be sure to clean up the `struct line_header' object.
10169         (dwarf_decode_line_header, free_line_header, add_include_dir,
10170         add_file_name): New functions.
10171         (dwarf_decode_lines): Move all the code to read the statement
10172         program header into dwarf_decode_line_header.  Take the line
10173         header it built as the first argument, instead of the offset to
10174         the compilation unit's line number info.  Use the new `struct
10175         line_header' type instead of the old structures.  No need to do
10176         cleanups here now, since we don't allocate anything.
10177         (dwarf2_statement_list_fits_in_line_number_section,
10178         dwarf2_line_header_too_long): New complaints.
10179
10180 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10181
10182         * gdbtypes.c (init_vector_type): New function.
10183         (build_builtin_type_vec128): Simplify the representation of SIMD
10184         registers.
10185         (build_gdbtypes): Initialize new builtin vector types.
10186         (_initialize_gdbtypes): Register new vector types with gdbarch.
10187         (builtin_type_v4_float, builtin_type_v4_int32,
10188         builtin_type_v8_int16, builtin_type_v16_int8,
10189         builtin_type_v2_int32, builtin_type_v4_int16,
10190         builtin_type_v8_int8): New (renamed) SIMD types.
10191
10192 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10193
10194         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10195         (i387_fill_fxsave): Likewise.
10196
10197 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10198
10199         * alpha-tdep.c (alpha_extract_return_value): Don't use
10200         non-constant array size in prototype.
10201
10202 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10203
10204         From Brian Taylor <briant at model dot com>:
10205         * ui-out.c (ui_out_field_core_addr): Use the function
10206         longest_local_hex_string_custom'to format addresses > 32 bits
10207         wide.
10208
10209         * ui-out.c (ui_out_field_core_addr): Update comment.
10210
10211 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10212
10213         * stack.c (select_and_print_frame): Make static.  Delete the
10214         parameter `level'.
10215         (func_command): Update call.
10216         (select_frame_command): Delete code computing the frame level.
10217         * frame.h (select_and_print_frame): Delete declaration.
10218
10219 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10220
10221         * sparc-tdep.c (sparc_get_saved_register): Comment why
10222         get_prev_frame call is safe.
10223
10224 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10225
10226         * frame.h (select_frame): Delete level parameter.
10227         * stack.c (select_frame): Update.  Use frame_relative_level to
10228         obtain the frame's level.
10229         (select_and_print_frame): Update call.
10230         (select_frame_command): Ditto.
10231         (up_silently_base): Ditto.
10232         (down_silently_base): Ditto.
10233         * ocd.c (ocd_start_remote): Ditto.
10234         * remote-rdp.c (remote_rdp_open): Ditto.
10235         * remote-mips.c (mips_initialize): Ditto.
10236         (common_open): Ditto.
10237         * remote-e7000.c (e7000_start_remote): Ditto.
10238         * m3-nat.c (select_thread): Ditto.
10239         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10240         (child_get_current_exception_event): Ditto.
10241         * varobj.c (varobj_create): Ditto.
10242         (varobj_update): Ditto.
10243         (c_value_of_root): Ditto.
10244         * tracepoint.c (finish_tfind_command): Ditto.
10245         * corelow.c (core_open): Ditto.
10246         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10247         * thread.c (info_threads_command): Ditto.
10248         (switch_to_thread): Ditto.
10249         * infrun.c (normal_stop): Ditto.
10250         (restore_selected_frame): Ditto.
10251         (restore_inferior_status): Ditto.
10252         * breakpoint.c (insert_breakpoints): Ditto.
10253         (watchpoint_check): Ditto.
10254         (bpstat_stop_status): Ditto.
10255         (do_enable_breakpoint): Ditto.
10256         * blockframe.c (flush_cached_frames): Ditto.
10257         (reinit_frame_cache): Ditto.
10258
10259 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10260
10261         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10262         maintainer.
10263
10264 2002-05-04  Jim Blandy  <jimb@redhat.com>
10265
10266         * gdbtypes.c (replace_type): Doc fix.
10267
10268 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10269
10270         * valprint.c (strcat_longest): Delete commented out function.
10271         Update copyright.
10272
10273 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10274
10275         * MAINTAINERS: Mark a29k as deleted.
10276         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10277         Move new configurations to the top.
10278         * configure.tgt: Remove a29k.
10279         * config/a29k/tm-vx29k.h: Delete.
10280         * config/a29k/vx29k.mt: Delete.
10281         * config/a29k/tm-a29k.h: Delete.
10282         * config/a29k/a29k-udi.mt: Delete.
10283         * config/a29k/a29k.mt: Delete.
10284         * a29k-tdep.c: Delete.
10285         * remote-udi.c: Delete.
10286         * remote-mm.c: Delete.
10287         * remote-eb.c: Delete.
10288         * remote-adapt.c: Delete.
10289         * Makefile.in: Remove obsolete code.
10290         * config/s390/s390x.mt: Ditto.
10291         * config/s390/s390.mt: Ditto.
10292         * config/sparc/sparclynx.mh: Ditto.
10293         * config/sparc/linux.mh: Ditto.
10294         * config/pa/hppaosf.mh: Ditto.
10295         * config/pa/hppabsd.mh: Ditto.
10296         * config/ns32k/nbsd.mt: Ditto.
10297         * config/mips/vr5000.mt: Ditto.
10298         * config/m68k/sun3os4.mh: Ditto.
10299         * config/m68k/nbsd.mt: Ditto.
10300         * config/m68k/m68klynx.mh: Ditto.
10301         * config/m32r/m32r.mt: Ditto.
10302         * config/i386/x86-64linux.mt: Ditto.
10303         * config/i386/nbsdelf.mt: Ditto.
10304         * config/i386/nbsd.mt: Ditto.
10305         * config/i386/i386lynx.mh: Ditto.
10306
10307 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10308
10309         * target.c (debug_print_register): New function.  Handle oversize
10310         registers.
10311         (debug_to_fetch_registers): Call.
10312         (debug_to_store_registers): Call.
10313
10314 2002-05-03  Jim Blandy  <jimb@redhat.com>
10315
10316         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10317         (read_type): Doc fix.
10318         * gdbtypes.c (replace_type): Doc fix.
10319
10320         * stabsread.c (multiply_defined_struct): New complaint.
10321         (read_struct_type): If the type we were passed isn't empty, or
10322         incomplete, don't read the new struct type into it; complain,
10323         and return the original type unchanged.  Take a new `type_code'
10324         argument, which is the type code for the new type.
10325         (read_type): Rather than storing the type's type code here, pass
10326         it as an argument to read_struct_type, and let that take care of
10327         storing it.  That way, we don't overwrite the original type code,
10328         so read_struct_type can use it to decide whether we're overwriting
10329         something we shouldn't.
10330         (complain_about_struct_wipeout): New function.
10331
10332 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10333
10334         * gdbarch.sh: Assert that gdbarch is non-NULL.
10335         * gdbarch.c: Regenerate.
10336
10337 2002-05-03  Jason Merrill  <jason@redhat.com>
10338
10339         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10340         and return NULL.
10341
10342 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10343
10344         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10345         (x86_64_dwarf2gdb_regno_map_length),
10346         (x86_64_dwarf2_reg_to_regnum): Added.
10347         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10348         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10349         (_initialize_x86_64_tdep): Synced with the change above.
10350         (x86_64_skip_prologue): Reformulated message.
10351
10352 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10353
10354         * f-exp.y: Also use new prev_lexptr variable
10355         to improve error reporting. Based on Michael Snyder
10356         2002-04-24 dated patch to c-exp.y.
10357         * jv-exp.y: Likewise.
10358         * m2-exp.y: Likewise.
10359
10360 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10361
10362         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10363         we are dealing with vectors.
10364
10365 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10366
10367         * config/m68k/tm-nbsd.h: Obvious fix,
10368         correct machine name.
10369
10370 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10371
10372         * p-typeprint.c (pascal_type_print_base): Add support
10373         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10374
10375 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10376
10377         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10378         for fondamental pascal 'char' type.
10379
10380 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10381
10382         * p-lang.h (is_pascal_string_type): Declaration changed,
10383         new sixth argument of type char ** added.
10384         * p-lang.c (is_pascal_string_type): Implementation
10385         changed. Args length_pos, length_size, string_pos, char_size
10386         can now be NULL. New argument arrayname set to the field
10387         name of the char array. Return value set to char array
10388         field index plus one.
10389         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10390         is_pascal_string_type function.
10391
10392 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10393
10394         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10395         <cagney@redhat.com> change.
10396         * gdbarch.c: Regenerate.
10397
10398 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10399
10400         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10401         before probing for a new one.  Detect errorenous gdbarch_init
10402         functions.
10403         * gdbarch.c: Regenerate.
10404
10405 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10406
10407         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10408         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10409         * config/v850/tm-v850.h: Ditto.  Update copyright.
10410
10411 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10412
10413         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10414         current_gdbarch.
10415
10416 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10417
10418         * arm-tdep.c: Whitespace clean-ups.
10419         (arm_skip_prologue): Fix thinko; two lines
10420         should have been removed as part of 4/24 change.
10421
10422 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10423
10424         * rs6000-tdep.c: Added comment describing how fpscr register
10425         numbers were chosen.
10426
10427 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10428
10429         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10430
10431 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10432
10433         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10434         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10435         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10436
10437 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10438
10439         From Louis Hamilton <hamilton@redhat.com>:
10440         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10441         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10442         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10443         not bfd-private xcoff data, to determine wordsize.
10444         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10445
10446 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10447
10448         GDB 5.2 released from 5.2 branch.
10449
10450 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10451
10452         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10453         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10454         (x86_64_register_info_table): Added comments with register numbers.
10455
10456 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10457
10458         * rs6000-tdep.c (rs6000_extract_return_value,
10459         rs6000_store_return_value): Handle returning vectors.
10460         (rs6000_gdbarch_init): Use
10461         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10462         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10463         New function.
10464         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10465         vectors.
10466         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10467         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10468
10469 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10470
10471         * hpread.c (hpread_psymtab_to_symtab_1,
10472         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10473         with fprintf_unfiltered (gdb_stderr,...).
10474
10475 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10476
10477         * remote-array.c (printf_monitor, write_monitor,
10478         array_insert_breakpoint, array_remove_breakpoint ):
10479         Replace fprintf (stderr,...
10480         with fprintf_unfiltered (gdb_stderr,....
10481         * remote-es.c: Likewise.
10482         * remote-os9k.c: Likewise.
10483         * remote-st.c: Likewise.
10484
10485 2002-04-28  Andreas Schwab  <schwab@suse.de>
10486
10487         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10488         linux-proc.o and gcore.o.
10489
10490 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10491
10492         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10493         code without frame pointers.
10494
10495 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10496
10497         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10498         ON_STACK is needed.
10499
10500 2002-04-26  Ben Elliston  <bje@redhat.com>
10501
10502         * target.c (do_xfer_memory): Correct reference to the new option
10503         "trust-readonly-sections".
10504
10505 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10506
10507         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10508         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10509         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10510         vectors.
10511         (read_array_type): Record the fact that this array type is really a
10512         vector (i.e. are passed in by value).
10513
10514 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10515
10516         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10517         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10518         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10519         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10520         * alpha-linux-tdep.c: Include frame.h.
10521         (alpha_linux_sigcontext_addr): New function.
10522         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10523         alpha_linux_sigcontext_addr.
10524         * alpha-osf1-tdep.c: Include gdbcore.h.
10525         (alpha_osf1_sigcontext_addr): New function.
10526         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10527         alpha_osf1_sigcontext_addr.
10528         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10529         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10530
10531 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10532
10533         * stack.c (selected_frame_level):
10534         (select_frame): Do not set selected_frame_level.
10535         * frame.h (selected_frame_level): Delete declaration.
10536
10537 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10538
10539         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10540         convert_from_func_ptr-addr when AIX / PowerOpen.
10541
10542 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10543
10544         * valops.c (hand_function_call): Call
10545         generic_save_call_dummy_addr.
10546         * frame.h (generic_save_call_dummy_addr): Declare.
10547         * blockframe.c (struct dummy_frame): Add fields call_lo and
10548         call_hi.
10549         (generic_find_dummy_frame): Check for PC in range call_lo to
10550         call_hi instead of entry_point_address.
10551         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10552         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10553         (generic_save_call_dummy_addr): New function.
10554
10555 2002-04-24  David S. Miller  <davem@redhat.com>
10556
10557         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10558         sparc_skip_prologue.
10559         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10560         information to find prologue when possible.
10561         (sparc_prologue_frameless_p): Call examine_prologue directly.
10562         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10563         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10564         second argument.
10565         (SKIP_PROLOGUE): Likewise.
10566
10567 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10568
10569         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10570         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10571         indicate that the condition it was testing is always true.
10572         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10573         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10574         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10575
10576 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10577
10578         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10579         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10580         tdep->jb_pc and tdep->jb_elt_size.
10581         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10582         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10583         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10584         * alpha-nat.c (get_longjmp_target): Remove.
10585         (JB_ELEMENT_SIZE): Ditto.
10586         (JB_PC): Ditto.
10587         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10588         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10589         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10590         to alpha_get_longjmp_target.
10591         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10592         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10593         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10594
10595 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10596
10597         * README: Update to GDB 5.2.
10598
10599 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10600
10601         * gdbarch.sh (LC_ALL): Set to `c'.
10602
10603 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10604
10605         * avr-tdep.c: Ran through gdb_indent.sh.
10606
10607 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10608
10609         * MAINTAINERS: Add myself as AVR maintainer.
10610         * NEWS: Note new target avr.
10611
10612 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10613
10614         * Makefile.in: Add support for AVR target.
10615         * configure.tgt: Add support for AVR target.
10616         * avr-tdep.c: New file
10617         * config/avr/avr.mt: New file.
10618
10619 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10620
10621         * MAINTAINERS: Add myself to write-after-approval.
10622
10623 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10624
10625         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10626         with fprintf_unfiltered (gdb_stderr,....
10627
10628 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10629
10630         Fix PR gdb/508.
10631         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10632
10633 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10634
10635         * p-exp.y: Also use new prev_lexptr variable
10636         to improve error reporting. Based on Michael Snyder
10637         2002-04-24 dated patch to c-exp.y.
10638
10639 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10640
10641         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10642         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10643         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10644         to 0.
10645         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10646         and struct value.
10647         (FUNCTION_START_OFFSET): Remove.
10648         (BREAKPOINT): Ditto.
10649
10650 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10651
10652         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10653         * NEWS: Ditto.
10654
10655 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10656
10657         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10658         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10659         alpha_linux_pc_in_sigtramp.
10660         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10661         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10662         alpha_osf1_pc_in_sigtramp.
10663         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10664         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10665         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10666         alphafbsd_pc_in_sigtramp.
10667         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10668         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10669         alphanbsd_pc_in_sigtramp.
10670         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10671         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10672
10673 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10674
10675         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10676
10677 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10678
10679         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10680         alphanbsd-tdep.c.
10681         (alphanbsd-nat.o): New dependency list.
10682         (alphanbsd-tdep.o): Ditto.
10683         * NEWS: Note new native NetBSD/alpha configuration.
10684         * alphanbsd-nat.c: New file.
10685         * alphanbsd-tdep.c: Ditto.
10686         * configure.host (alpha*-*-netbsd*): New host.
10687         * configure.tgt (alpha*-*-netbsd*): New target.
10688         * config/alpha/nbsd.mh: New file.
10689         * config/alpha/nbsd.mt: Ditto.
10690         * config/alpha/nm-nbsd.h: Ditto.
10691         * config/alpha/tm-nbsd.h: Ditto.
10692
10693 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10694
10695         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10696         (alpha-osf1-tdep.o): New dependency list.
10697         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10698         and skip_sigtramp_frame members.
10699         * alpha-linux-tdep.c: Include gdbcore.h.
10700         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10701         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10702         * alpha-osf1-tdep.c: New file.
10703         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10704         alpha-osf1-dep.c.
10705         (alpha_frame_past_sigtramp_frame): New function.
10706         (alpha_dynamic_sigtramp_offset): Ditto.
10707         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10708         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10709         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10710         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10711         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10712         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10713         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10714         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10715         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10716         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10717         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10718         to find_solib_trampoline_target.
10719         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10720         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10721         (SKIP_TRAMPOLINE_CODE): Remove.
10722         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10723         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10724         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10725         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10726         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10727         (PROC_SIGTRAMP_MAGIC): Ditto.
10728         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10729         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10730         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10731         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10732         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10733
10734 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10735
10736         * NEWS: Note that Alpha targets are now multi-arch.
10737
10738 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10739
10740         * parser-defs.h (prev_lexptr): New external variable.
10741         * parse.c (parse_exp_1): Set prev_lexptr to null before
10742         calling the language-specific parser.
10743         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10744         (yyerror): Use prev_lexptr in error reporting.
10745
10746 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10747
10748         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10749         * gregset.h: If FILL_FPXREGSET is defined, provide
10750         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10751         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10752         is defined, call fill_fpxregset.
10753
10754 2002-04-24  Roland McGrath  <roland@frob.com>
10755
10756         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10757         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10758         (supply_gregset, supply_fpregset): New functions.
10759
10760         * gnu-nat.c (gnu_find_memory_regions): New function.
10761         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10762         (gnu_xfer_memory): Add a cast.
10763
10764 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10765
10766         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10767         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10768         of argument regs ("str r(0123), [r11, #-nn"]).
10769         (arm_skip_prologue): Better handling for frameless functions.
10770         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10771         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10772
10773 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10774
10775         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10776         NUM_PSEUDO_REGS can be used.
10777
10778 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10779
10780         * arch-utils.h: Update copyright.
10781
10782         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10783         * gdbarch.h, gdbarch.c: Re-generate.
10784
10785         * inferior.h (IN_SIGTRAMP): Delete definition.
10786         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10787         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10788
10789         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10790         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10791         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10792         (find_proc_framesize): Ditto.
10793         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10794         (alpha_init_extra_frame_info): Ditto.
10795         * infrun.c (handle_inferior_event): Ditto.
10796         (handle_inferior_event): Ditto.
10797         (check_sigtramp2): Ditto.
10798         * blockframe.c (create_new_frame): Ditto.
10799         (get_prev_frame): Ditto.
10800         * ppc-linux-tdep.c: Update comments.
10801         * i386-linux-tdep.c: Update comments.
10802         * breakpoint.c (bpstat_what): Update comment.
10803
10804 2002-04-24  David S. Miller  <davem@redhat.com>
10805
10806         * i960-tdep.c (register_in_window_p): New function.
10807         (i960_find_saved_register): Use it instead of
10808         REGISTER_IN_WINDOW_P.
10809         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10810
10811         * symtab.h (find_stab_function_addr): Kill extern.
10812         * minsyms.c (find_stab_function_addr): Remove from here...
10813         * dbxread.c: ... to here, and mark it static.
10814
10815 2002-04-20  David S. Miller  <davem@redhat.com>
10816
10817         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10818         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10819
10820 2002-04-21  David S. Miller  <davem@redhat.com>
10821
10822         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10823         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10824         (vx_write_register): Likewise.
10825
10826 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10827
10828         * source.c (is_regular_file): New function.
10829         (openp): Check wether file to open is a regular file
10830         to avoid opening directories.
10831
10832 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10833
10834         * findvar.c (extract_signed_integer): Cast printf argument
10835         to suppress format warning.
10836         (extract_unsigned_integer): Likewise.
10837         * infcmd.c (registers_info): Likewise.
10838         * top.c (get_prompt_1): Likewise.
10839         * valops.c (value_assign): Likewise.
10840         * valprint.c (print_decimal): Likewise.
10841
10842 2002-04-22  H.J. Lu  (hjl@gnu.org)
10843
10844         * c-exp.y (typebase): Support
10845
10846         [long|long long|short] [signed|unsigned] [int|]
10847
10848         and
10849
10850         signed [long|long long|short] int
10851
10852 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10853
10854         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10855         and vax-tdep.h.
10856         * vax-tdep.h: New file.
10857         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10858         Make several routines static.
10859         (vax_get_saved_register): New function.
10860         (vax_gdbarch_init): New function.
10861         (_initialize_vax_tdep): Register vax_gdbarch_init.
10862         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10863         Remove macros now under the control of gdbarch.
10864
10865 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10866
10867         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10868         Some whitespace and coding standards tweaks.
10869
10870 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10871
10872         * vax-tdep.c: Include regcache.h.
10873         (vax_call_dummy_words): New.
10874         (sizeof_vax_call_dummy_words): New.
10875         (vax_fix_call_dummy): New function.
10876         (vax_saved_pc_after_call): Ditto.
10877         * config/vax/tm-vax.h: Don't include regcache.h.
10878         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10879         (CALL_DUMMY): Remove.
10880         (CALL_DUMMY_WORDS): Define.
10881         (SIZEOF_CALL_DUMMY_WORDS): Define.
10882         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10883
10884 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10885
10886         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10887
10888 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10889
10890         * vax-tdep.c (vax_frame_chain): New function.
10891         (vax_push_dummy_frame): Ditto.
10892         (vax_pop_frame): Ditto.
10893         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10894         (FRAMELESS_FUNCTION_INVOCATION): Use
10895         generic_frameless_function_invocation_not.
10896         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10897         (POP_FRAME): Use vax_pop_frame.
10898
10899 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10900
10901         * vax-tdep.c (vax_store_struct_return): New function.
10902         (vax_extract_return_value): Ditto.
10903         (vax_store_return_value): Ditto.
10904         (vax_extract_struct_value_address): Ditto.
10905         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10906         vax_store_struct_return.
10907         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10908         (STORE_RETURN_VALUE): Use vax_store_return_value.
10909         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10910
10911 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10912
10913         * vax-tdep.c (vax_frame_saved_pc): New function.
10914         (vax_frame_args_address_correct): Ditto.
10915         (vax_frame_args_address): Ditto.
10916         (vax_frame_locals_address): Ditto.
10917         (vax_frame_num_args): Move code to be in proximity to
10918         other frame-related functions.
10919         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10920         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10921         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10922         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10923         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10924
10925 2002-04-22  H.J. Lu  (hjl@gnu.org)
10926
10927         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10928         includedir.
10929
10930 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10931
10932         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10933         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10934         (FRAME_INIT_SAVED_REGS): New macro.
10935
10936 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10937
10938         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10939
10940 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10941
10942         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10943         where needed.
10944         (fetch_osf_core_registers): Likewise.
10945         (supply_gregset): Likewise.
10946
10947 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10948
10949         * symfile.h (get_section_index): Define.
10950         * symfile.c (get_section_index): New function.
10951         * mdebugread.c (SC_IS_SBSS): New macro.
10952         (SC_IS_BSS): Return true for the scBss storage class only, as
10953         the scSBss storage class refers to the .sbss section.
10954         (parse_partial_symbols): Discard the symbols which associated
10955         section does not exist.
10956         Make sure to use the .sbss section index for symbols which
10957         storage class is scBss, rather than using the .bss section index.
10958
10959 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10960
10961         * vax-tdep.c: Update copyright years.
10962         (vax_register_name): New function.
10963         (vax_register_byte): Ditto.
10964         (vax_register_raw_size): Ditto.
10965         (vax_register_virtual_size): Ditto.
10966         (vax_register_virtual_type): Ditto.
10967         * config/vax/tm-vax.h: Update copyright years.
10968         (REGISTER_NAMES): Remove.
10969         (REGISTER_NAME): Define.
10970         (REGISTER_BYTE): Use vax_register_byte.
10971         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10972         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10973         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10974
10975 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10976
10977         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10978         declaration
10979         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10980
10981 2002-04-21  David S. Miller  <davem@redhat.com>
10982
10983         * arch-utils.c (generic_prologue_frameless_p): Kill
10984         SKIP_PROLOGUE_FRAMELESS_P code.
10985         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10986         references.
10987         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10988         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10989         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10990         references.
10991         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10992         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10993         (sparc_gdbarch_init): Pass it to
10994         set_gdbarch_prologue_frameless_p.
10995
10996 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
10997
10998         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10999         (alphabsd-nat.o): New dependency list.
11000
11001 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11002
11003         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11004         alphafbsd-tdep.c.
11005         (alpha-linux-tdep.o): New dependency list.
11006         (alphafbsd-tdep.o): Likewise.
11007
11008 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11009
11010         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11011         to here...
11012         * alpha-tdep.c: ...from here.
11013         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11014
11015 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11016
11017         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11018         prototype from here...
11019         * alpha-tdep.h: ...to here.
11020
11021 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11022
11023         * frame.h (selected_frame_level): Document as deprecated.
11024         (frame_relative_level): Declare.
11025         * stack.c (frame_relative_level): New function.
11026         (selected_frame_level): Document as deprecated.
11027         (select_frame): Do not set the selected_frame_level.
11028
11029         * stack.c (frame_info, record_selected_frame): Update.
11030         (frame_command, current_frame_command): Update.
11031         (up_silently_base, up_command, down_silently_base): Update.
11032         (down_command): Update.
11033         * inflow.c (kill_command): Update.
11034         * tracepoint.c (finish_tfind_command): Update.
11035         * corelow.c (core_open): Update.
11036         * thread.c (info_threads_command): Update.
11037         (do_captured_thread_select): Update.
11038         * infcmd.c (finish_command): Update.
11039         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11040
11041 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11042
11043         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11044
11045 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11046
11047         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11048         type const.
11049
11050 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11051
11052         * alphafbsd-tdep.c: Update copyright years.  Include
11053         alpha-tdep.h.
11054         (alphafbsd_use_struct_convention): Make static.
11055         (alphafbsd_init_abi): New function.
11056         (_initialize_alphafbsd_tdep): New function.
11057         * config/alpha/tm-fbsd.h: Update copyright years.
11058         (USE_STRUCT_CONVENTION): Remove.
11059
11060 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11061
11062         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11063         an Alpha ABI variant.
11064         (alpha_abi_handler_list): Declare.
11065         (alpha_gdbarch_register_os_abi): New function.
11066         (alpha_gdbarch_init): Give registered ABI variant handlers a
11067         chance to tweak the gdbarch once we have set up defaults.
11068         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11069
11070 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11071
11072         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11073         to standard_coerce_float_to_double.
11074         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11075
11076 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11077
11078         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11079         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11080         from gdbarch_tdep rather than a constant.
11081         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11082         the default text address for all Alpha Unix ABIs.
11083         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11084         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11085
11086 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11087
11088         * alpha-tdep.h: New file.  Includes several Alpha target constants
11089         taken from...
11090         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11091         let gdbarch deal with.
11092         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11093         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11094         to dependency list.
11095         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11096         Alpha target register names.
11097         * alphabsd-nat.c: Likewise.
11098         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11099         Alpha target register names.  Make serveral routines static.
11100         (alpha_get_saved_register): New function.
11101         (alpha_abi_names): New.
11102         (process_note_abi_tag_sections): New function.
11103         (get_elfosabi): New function.
11104         (alpha_gdbarch_init): New function.
11105         (alpha_dump_tdep): New function.
11106         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11107
11108 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11109
11110         * frame.c (find_saved_register): Delete #ifdef
11111         HAVE_REGISTER_WINDOWS code.
11112         * config/sparc/tm-sparc.h: Update comments.
11113         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11114
11115 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11116
11117         * i960-tdep.c (i960_find_saved_register): New function.
11118         (i960_get_saved_register): New function.
11119         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11120         (i960_get_saved_register): Declare.
11121         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11122
11123 2002-04-20  David S. Miller  <davem@redhat.com>
11124
11125         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11126
11127 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11128
11129         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11130         instead of NUM_PSEUDO_REGS.
11131
11132 2002-04-20  David S. Miller  <davem@redhat.com>
11133
11134         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11135         GDB_MULTI_ARCH_PARTIAL
11136         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11137         define, let tm-sp64.h do it.
11138
11139 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11140
11141         * frame.c (find_saved_register): Avoid a NULL pointer
11142         dereference and actually walk the frame list.
11143
11144 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11145
11146         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11147         sorted in most most-recent-used order.  Document.
11148         * gdbarch.h, gdbarch.c: Regenerate.
11149
11150 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11151
11152         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11153         instead of ->prev.
11154         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11155         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11156         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11157         instead of ->prev.
11158
11159 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11160
11161         Fix PR gdb/471.
11162         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11163         (build_builtin_type_vec128): Ditto.
11164         (append_composite_type_field): Fix calculation of type length in
11165         union case.
11166
11167 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11168
11169         * config/djgpp/README: Update.
11170
11171         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11172         compiler warnings.
11173
11174 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11175
11176         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11177         (alpha_setup_arbitrary_frame): ...to this.
11178         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11179         for alpha_setup_arbitrary_frame.
11180
11181 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11182
11183         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11184         * gdbarch.h, gdbarch.c: Regenerate.
11185
11186         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11187         * target.h (memory_breakpoint_from_pc): Update declaration.
11188         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11189
11190         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11191         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11192         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11193         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11194         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11195         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11196         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11197         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11198         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11199         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11200         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11201         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11202
11203         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11204         const pointer.
11205         * monitor.c (monitor_insert_breakpoint): Ditto.
11206         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11207
11208         * config/mcore/tm-mcore.h: Update copyright.
11209         * mem-break.c: Ditto.
11210         * xstormy16-tdep.c: Ditto.
11211
11212 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11213
11214         * p-exp.y: Add precedence rule for '^' token.
11215         This removes the shift/reduce conflicts.
11216         Remove the comment concerning these shift/reduce conflicts.
11217
11218 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11219
11220         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11221         (registers_powerpc_nofp): New register set for processors
11222         without floating point unit.
11223
11224 2002-04-18  David S. Miller  <davem@redhat.com>
11225
11226         * MAINTAINERS: Add myself to write-after-approval.
11227
11228 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11229
11230         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11231
11232 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11233
11234         * rs6000-tdep.c (frame_initial_stack_address): Use
11235         frame_register_read to read the alloca_reg.
11236
11237 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11238
11239         * frame.c (find_saved_register): Find saved registers in the next
11240         not prev frame.
11241         Fix PR gdb/365.
11242
11243 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11244
11245         * gdbarch.sh (LANG): Set to ``c''.
11246
11247 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11248
11249         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11250
11251 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11252
11253         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11254         Update copyright.
11255
11256         * hpread.c (hpread_get_lntt): Add declaration.
11257         Also fix PR gdb/391.
11258
11259 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11260
11261         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11262         * aclocal.m4, configure: Re-generate.
11263         Fix PR gdb/391.
11264
11265 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11266
11267         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11268         instead of tm_print_insn.
11269
11270 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11271
11272         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11273
11274 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11275
11276         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11277         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11278         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11279
11280 2002-04-12  Don Howard  <dhoward@redhat.com>
11281
11282         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11283         max_user_call_depth.
11284         (init_cmd_lists): Initialize the new value;
11285         * cli/cli-script.c (execute_user_command): Limit the call depth of
11286         user defined commands.  This avoids a core-dump when user commands
11287         are infinitly recursive.
11288
11289 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11290
11291         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11292         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11293         from tdep struct instead of DEFAULT_LR_SAVE.
11294         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11295         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11296         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11297
11298 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11299
11300         * Remote.c: Spelling fix.
11301         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11302         If no symbol found for "sbrk", try "_sbrk".
11303         (make_output_phdrs): Use bfd_section_name.
11304         (gcore_copy_callback): Use bfd_section_name.
11305         * eval.c: Indentation fix-ups.
11306         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11307         in case it gets applied to an address that is already
11308         in the instruction space.
11309         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11310         * symfile.c: Fix indentation, long lines.
11311         * source.c: White space fix-up.
11312
11313 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11314
11315         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11316         * frame.c (frame_register_read): New function.  Return non-zero on
11317         success.
11318         (read_relative_register_raw_bytes_for_frame): Delete.
11319         (read_relative_register_raw_bytes): Delete.
11320         * frame.h (frame_register_read): Declare.
11321         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11322         * sh-tdep.c: Ditto.
11323         * infcmd.c (do_registers_info): Ditto.
11324         * hppa-tdep.c: Ditto.
11325         * rs6000-tdep.c: Ditto.
11326         * h8500-tdep.c: Ditto.
11327         * mips-tdep.c: Ditto.
11328         * h8300-tdep.c: Ditto.
11329         * z8k-tdep.c: Ditto.
11330
11331 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11332
11333         From Jimi X <jimix@watson.ibm.com>:
11334         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11335         64-bit SysV ABI.
11336
11337 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11338
11339         From Jimi X <jimix@watson.ibm.com>:
11340         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11341         bfd info.
11342
11343 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11344
11345         From Jimi X <jimix@watson.ibm.com>:
11346         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11347         register sets for these processor variants.
11348
11349 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11350
11351         * regformats/reg-ppc.dat: Support FPSCR.
11352
11353 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11354
11355         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11356         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11357         Add fpscr as an invalid/unfetchable register.
11358         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11359         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11360         (fill_fpregset): Add support for register fpscr.
11361         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11362         (fill_gregset): Account for the fact that register ``mq'' might
11363         not exist.
11364         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11365         (registers_power): Add fpscr to register set at slot 71.
11366         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11367         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11368
11369 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11370
11371         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11372         * configure: Regenerate.
11373         * config.in: Regenerate.
11374         * acconfig.h: Add define for _SYSCALL32.
11375         * core-sol2.c: Remove #define _SYSCALL32.
11376         * solib-legacy.c: Remove #define _SYSCALL32.
11377
11378 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11379
11380         * stack.c (select_frame): Cleanup internal error message, do not
11381         use %p.
11382
11383 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11384
11385         * stack.c (select_frame): Check that selected_frame and the
11386         specified level are as expected.
11387         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11388         Update copyright.
11389         * frame.h (struct frame_info): Add field `level'.  Update
11390         copyright.
11391         Work-in-progress PR gdb/464.
11392
11393 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11394
11395         * maint.c (maint_print_section_info): Rename print_section_info.
11396         (print_bfd_section_info, print_objfile_section_info): Update.
11397         * inferior.h (struct gdbarch): Add opaque declaration.
11398         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11399         * gdbarch.h: Regenerate.
11400
11401 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11402
11403         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11404         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11405         (kernel_u_size): Added.
11406         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11407         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11408
11409 2002-04-04  Jim Ingham  <jingham@apple.com>
11410
11411        * valarith.c (find_size_for_pointer_math): New function, either returns
11412        the size for a pointer's target, returns 1 for void *, or errors for
11413        incomplete types.
11414        (value_add, value_sub): use find_size_for_pointer_math.
11415
11416 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11417
11418         * linux-low.c (linux_look_up_symbols): New hook.
11419         (linux_target_ops): Add linux_look_up_symbols.
11420         * remote-utils.c (decode_address): New function.
11421         (look_up_one_symbol): New function.
11422         * server.c (handle_query): Call target look_up_symbols hook.
11423         * server.h (look_up_one_symbol): Add prototype.
11424         * target.h (struct target_ops): Add look_up_symbols hook.
11425
11426 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11427
11428         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11429         override FP_REGNUM with frame->fp.  Update copyright.
11430         * parse.c (num_std_regs, std_regs): Delete.
11431         (target_map_name_to_register): Do not search std_regs.  Update
11432         function description.
11433         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11434         declarations.  Update copyright.
11435         Fix PR gdb/251.
11436
11437 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11438
11439         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11440         after the last symbol in a block.
11441
11442 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11443
11444         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11445         is non zero as a found symbol.
11446
11447 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11448
11449         * findvar.c: Include "builtin-regs.h".
11450         (value_of_register): Call value_of_builtin_reg when applicable.
11451         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11452         (target_map_name_to_register): Call
11453         builtin_reg_map_name_to_regnum.
11454         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11455         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11456         (builtin_regs_h): Define.
11457         (builtin-regs.o): New target.
11458         (findvar.o): Add $(builtin_regs_h).
11459         * builtin-regs.c, builtin-regs.h: New files.
11460         * std-regs.c: New file.
11461         Partial fix for PR gdb/251.
11462
11463 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11464
11465         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11466         it's no longer required.
11467
11468 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11469
11470         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11471
11472 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11473
11474         From Jimi X <jimix@watson.ibm.com>:
11475         * rs6000-tdep.c (rs6000_software_single_step): Use
11476         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11477         and size.  Use target_insert_breakpoint() and
11478         target_remove_breakpoint() to insert and remove breakpoints
11479         instead of explicit memory reads and writes.
11480
11481 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11482
11483         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11484         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11485         ELF_OBJECT_FORMAT ifdef.
11486
11487 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11488
11489         From Jimi X <jimix@watson.ibm.com>:
11490         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11491
11492 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11493
11494         From Jimi X <jimix@watson.ibm.com>:
11495         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11496         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11497
11498 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11499
11500         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11501         s/asprintf/xasprintf/.
11502         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11503
11504 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11505
11506         I believe Jeff Law denies responsability for this one:
11507         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11508         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11509         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11510         Work-around for PR gdb/366.
11511
11512 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11513
11514         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11515         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11516         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11517
11518 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11519
11520         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11521         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11522         information.
11523
11524 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11525
11526         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11527         maintainer.
11528
11529 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11530
11531         * README (Reporting Bugs in GDB): Document the bug web page as the
11532         prefered way of submitting bugs.
11533         Fix PR gdb/402.
11534
11535 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11536
11537         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11538         -1.  Update comment.
11539         * gdbarch.h, gdbarch.c: Re-generate.
11540
11541 2002-04-07  Andreas Schwab  <schwab@suse.de>
11542
11543         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11544         buffer to regcache_collect.
11545
11546 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11547
11548         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11549         * gdbarch.c, gdbarch.h: Re-generate.
11550
11551 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11552
11553         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11554         declaration.  Fix -Werror.
11555
11556 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11557
11558         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11559         * gdbarch.c: Regenerate.
11560
11561 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11562
11563         * breakpoint.c (clear_command): Rewrite middle section to
11564         combine two loops with identical control conditions.
11565         Add a cleanup to eliminate a memory leak.
11566         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11567
11568 2002-04-05  H.J. Lu  (hjl@gnu.org)
11569
11570         * solib-svr4.c (bkpt_names): Add "__start".
11571
11572 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11573
11574         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11575         as test for 64 bit target.
11576
11577 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11578
11579         * h8500-tdep.c (h8500_write_fp): Delete function.
11580         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11581         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11582         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11583         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11584         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11585         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11586         (s390_write_fp):
11587         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11588         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11589         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11590         (d10v_write_fp): Delete function.
11591         * inferior.h (write_fp, generic_target_write_fp): Delete
11592         declarations.
11593         * regcache.c (generic_target_write_fp): Delete function.
11594         (write_fp): Delete function.
11595         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11596         * gdbarch.h, gdbarch.c: Regenerate.
11597         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11598         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11599         (sparc64_write_fp): Delete declaration.
11600         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11601         (h8500_write_fp): Delete declaration.
11602
11603 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11604
11605         * sparc-tdep.c (sparc64_write_fp): Delete.
11606         (sparc_push_dummy_frame): Replace write_fp call with code to store
11607         the FP directly.
11608         (sparc_gdbarch_init): Do not initialize write_fp.
11609
11610 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11611
11612         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11613         clause.
11614
11615 2002-03-29  Jim Blandy  <jimb@redhat.com>
11616
11617         * stack.c (get_selected_block): Add new argument `addr_in_block',
11618         used to return the exact code address we used to select the block,
11619         not just the block.
11620         * blockframe.c (get_frame_block, get_current_block): Same.
11621         * frame.h (get_frame_block, get_current_block,
11622         get_selected_block): Update declarations.
11623         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11624         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11625
11626 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11627
11628         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11629         warning message.
11630
11631 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11632
11633         * utils.c (xfullpath): New function.
11634         * defs.h (xfullpath): Add declaration.
11635         * source.c (openp): Use xfullpath in place of gdb_realpath to
11636         avoid resolving the basename part of filenames when the
11637         associated file is a symbolic link. This fixes a potential
11638         inconsistency between the filenames known to GDB and the
11639         filenames it prints in the annotations.
11640         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11641         to be able to match a filename with either the real filename, or
11642         the name of any symbolic link to this file.
11643         (lookup_partial_symtab): Ditto.
11644
11645 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11646
11647         * breakpoint.c: Add support for hardware breakpoints in overlays.
11648         (overlay_events_enabled): New state variable.
11649         (insert_breakpoints): Use overlay_events_enabled to decide
11650         whether to attempt to set a breakpoint at the overlay load addr.
11651         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11652         (remove_breakpoint): Use overlay_events_enabled to decide
11653         whether breakpoints need to be removed from overlay load addr.
11654         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11655         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11656         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11657         disable_overlay_breakpoints): Update overlay_events_enabled.
11658
11659 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11660
11661         * dwarf2read.c (struct function_range): New.
11662         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11663         (check_cu_functions): New.
11664         (read_file_scope): Initialize global function lists.
11665         Call dwarf_decode_line after processing children.
11666         (read_func_scope): Add to global function list.
11667         (dwarf_decode_lines): Call check_cu_functions everywhere
11668         record_line is called.  Call record_line with a linenumber
11669         of 0 to mark sequence ends.
11670
11671 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11672
11673         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11674         change sync with glibc.
11675
11676 2002-04-03  Jim Blandy  <jimb@redhat.com>
11677
11678         * configure.in: Call AC_C_INLINE.
11679         * configure: Regenerated.
11680
11681 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11682
11683         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11684         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11685
11686 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11687
11688         * NEWS: Mention gcore support on FreeBSD/i386.
11689
11690         * fbsd-proc.c: New file.
11691         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11692         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11693
11694         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11695         while statement.
11696
11697 2002-03-29  Jim Blandy  <jimb@redhat.com>
11698
11699         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11700         unescaped newlines in string literals, but newer ones don't.  So
11701         escape them.
11702
11703 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11704             Andrew Cagney <cagney@redhat.com>
11705
11706         * cli/cli-dump.c: New file.  Dump memory to file,
11707         restore file to memory.
11708         * cli/cli-dump.h: New file.
11709         * Makefile.in: Add rules, dependencies for cli-dump.o.
11710         * NEWS: Mention new commands.
11711
11712 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11713
11714         * symfile.c (symbol_file_add): Move test for null symbols to later.
11715
11716 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11717
11718         From veksler at il.ibm.com:
11719         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11720         the xstrduped original path.
11721         Fix PR gdb/417.
11722
11723 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11724
11725         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11726         * infcmd.c (_initialize_infcmd): Ditto.
11727         * language.c (_initialize_language): Ditto.
11728         * symfile.c (_initialize_symfile): Ditto.
11729         * top.c (_init_main): Ditto.
11730         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11731
11732 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11733
11734         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11735         vector registers handling.
11736         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11737         fields of frame data.
11738         (frame_get_saved_regs): Fill in information for AltiVec registers.
11739
11740 2002-03-27  Jim Blandy  <jimb@redhat.com>
11741
11742         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11743         a function; leave this macro here to invoke that function.
11744         (symbol_init_mangled_name): Declaration for that function.
11745         * symtab.c (symbol_init_mangled_name): New function.
11746
11747 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11748
11749         * valarith.c: Replace strerror with safe_strerror.
11750         * tracepoint.c: Ditto.
11751         * lin-lwp.c: Ditto.
11752         * go32-nat.c: Ditto.
11753         * inflow.c: Ditto.
11754         * gnu-nat.c: Ditto.
11755
11756 2002-03-27  Andreas Schwab  <schwab@suse.de>
11757
11758         * event-top.c (command_line_handler): Remove useless if.
11759
11760 2002-03-27  Andreas Jaeger  <aj@suse.de>
11761
11762         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11763         comment.
11764
11765 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11766
11767         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11768         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11769         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11770         (x86_64_linux_dr_get_status, supply_gregset),
11771         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11772         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11773         (x86_64_register_info_table): Add.
11774         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11775         (x86_64_register_raw_size, x86_64_register_virtual_type),
11776         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11777         general x86_64_register_info_table.
11778         (i386_gdbarch_init): gdbarch_register_bytes is now set
11779         dynamicaly during initialization.
11780         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11781         * gdbserver/linux-x86-64-low.c: Ditto.
11782
11783 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11784
11785         * gdbserver/server.c (main): Call target_signal_to_host_p
11786         and target_signal_to_host on signals received from the remote.
11787         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11788         target_signal_from_host on signals sent to the remote.
11789         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11790         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11791
11792 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11793
11794         * signals/signals.c: Include "server.h" in gdbserver build.
11795         (target_signal_from_name): Don't use STREQ.
11796         (_initialize_signals): Likewise.  Don't include function in
11797         gdbserver build.
11798
11799 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11800
11801         * signals.c: Moved to...
11802         * signals/signals.c: Here.
11803         * Makefile (signals.o): Update.
11804
11805 2002-03-26  Jeff Law (law@redhat.com)
11806
11807         * somread.c (som_symtab_read): Remove some commented out code and
11808         updated related comments.  Do not set the minimal symbol table to
11809         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11810         in a dynamic executable.
11811         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11812         where we are unable to find the minimal symbol for the given
11813         PC value.
11814
11815 2002-03-25  Jeff Law (law@redhat.com)
11816
11817         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11818
11819 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11820
11821         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11822
11823 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11824
11825         * command.h: Update copyright.
11826         (struct cmd_list_element): Replace definition with opaque
11827         declaration.
11828         (enum cmd_types): Document that it will eventually be moved to
11829         cli/cli-decode.h
11830         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11831         (MALLOCED_REPLACEMENT): Delete macro.
11832         * Makefile.in (cli_decode_h): Add $(command_h).
11833         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11834         * top.c: Include "cli/cli-decode.h".
11835         * completer.c: Include "cli/cli-decode.h".
11836         * maint.c: Include "cli/cli-decode.h".
11837         * cli/cli-decode.h: Include "command.h".
11838         (enum command_class): Delete.
11839         (enum cmd_types): Comment out.
11840         (enum cmd_auto_boolean): Delete.
11841         (enum var_types): Delete.
11842
11843 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11844
11845         * cli/cli-decode.c: Include "gdb_assert.h".
11846         (add_set_or_show_cmd): New static function.
11847         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11848         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11849         all fields, such as func, from the set command.
11850
11851 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11852
11853         * MAINTAINERS (sh-elf): Change warning flag to -w.
11854
11855 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11856
11857         * defs.h (error): Add printf format attribute.
11858         * thread-db.c (thread_from_lwp): Fix error format string.
11859         * stack.c (parse_frame_specification): Ditto.
11860         * cli/cli-decode.c (undef_cmd_error): Ditto.
11861         * scm-lang.c (scm_lookup_name): Ditto.
11862         * tracepoint.c (trace_error): Ditto.
11863         * remote-utils.c (usage): Ditto.
11864         * remote.c (compare_sections_command): Ditto.
11865         Fix PR gdb/328.
11866
11867 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11868
11869         * gdbtypes.c (append_composite_type_field): New function.
11870         (init_composite_type): New function.
11871         * gdbtypes.h (append_composite_type_field): Declare.
11872         (init_composite_type): Ditto.
11873
11874 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11875
11876         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11877         function.
11878         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11879         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11880         structure returning convention for SYSV ABI case, but not
11881         for GNU/Linux, FreeBSD, or NetBSD.
11882
11883 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11884
11885         * symtab.h (lookup_block_symbol): Add mangled_name argument
11886         to prototype.
11887
11888         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11889         with new mangled_name argument.
11890         * linespec.c (decode_line_1): Likewise.
11891         * valops (value_of_this): Likewise.
11892         * symtab.c (lookup_transparent_type): Likewise.
11893         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11894         (lookup_symbol): If we are given a mangled name, pass it down
11895         to lookup_symbol_aux.
11896         (lookup_block_symbol): If we are given a mangled name to check
11897         against, only return symbols which match it.
11898
11899 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11900
11901         * win32-nat.c (child_create_inferior): Check for proper shell to use
11902         here, in case the user changes it on the fly.
11903         (_initialize_inftarg): Remove shell path considerations.
11904
11905 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11906
11907         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11908         for gdbarch_max_register_raw_size and max_register_virtual_size.
11909         Adjust copyright year.
11910
11911 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11912
11913          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11914          in a function to cover the entire beginning of the function
11915          as well if it does not already.
11916
11917 2002-03-21  Tom Rix  <trix@redhat.com>
11918
11919         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11920         (rs6000_ptrace64): Renamed from ptrace64.
11921
11922 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11923
11924         * gdbserver/remote-utils.c (remote_open): Don't call
11925         getprotobyname, we're all using TCP here so just use
11926         IPPROTO_TCP.
11927         * gdbserver/gdbreplay.c (remote_open): Ditto.
11928
11929 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11930
11931         * regcache.c (_initialize_regcache): No need to call
11932         build_regcache() at this time; it gets called whenever
11933         the gdbarch changes.
11934
11935 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11936
11937         * sparc-nat.c:  Include sys/param.h where possible.
11938
11939 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11940
11941         Fix PR gdb/422.
11942         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11943         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11944         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11945         complex types.
11946         * stabsread.c (rs6000_builtin_type): Likewise.
11947         (read_sun_floating_type): Likewise.
11948
11949 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11950
11951         * stabsread.c (read_member_functions): Remove skip code for duplicate
11952         constructor/destructor methods.  Use standard parsing for these
11953         methods and just do not chain them to the list of methods after
11954         parsing.
11955
11956 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11957
11958         * coffread.c: Remove redundant static declarations.  Replace
11959         occurrences of `PTR' with `void *'.
11960         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11961         * top.h (quit_cover): Likewise.
11962         * defs.h (catch_errors): Likewise.
11963
11964 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11965
11966         * defs.h (XMALLOC): Define.
11967         * gdb-events.sh (XMALLOC): Delete macro.
11968         * gdb-events.c, gdb-events.h: Regenerate.
11969         * gdbarch.sh (XMALLOC): Delete macro.
11970         * gdbarch.c: Regenerate.
11971         * serial.c (XMALLOC): Delete macro.
11972         * ui-file.c (XMALLOC): Ditto.
11973         * ser-unix.h (XMALLOC): Ditto.
11974         * sh-tdep.c (XMALLOC): Ditto.
11975         * ui-out.c (XMALLOC): Ditto.
11976         * utils.c (XMALLOC): Ditto.
11977         * i386-tdep.c (XMALLOC): Ditto.
11978         * gdb-events.c (XMALLOC): Ditto.
11979         * d10v-tdep.c (XMALLOC): Ditto.
11980         * cli-out.c (XMALLOC): Ditto.
11981
11982         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11983         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11984         * ui-file.c, ui-out.c: Ditto.
11985
11986 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11987
11988         * command.h (struct cmd_list_element): Add field context.
11989         (set_cmd_context, get_cmd_context): Declare.
11990         * cli/cli-decode.h: Ditto.
11991         * cli/cli-decode.c (get_cmd_context): New function.
11992         (set_cmd_context): New function.
11993         (add_cmd): Initialize context.
11994         Part of fixing PR gdb/145 and PR gdb/146.
11995
11996 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
11997
11998         * cli/cli-decode.c (cmd_type): New function.
11999         * command.h (cmd_type): Declare.
12000         * infrun.c (set_schedlock_func): Call function cmd_type.
12001         * kod.c (kod_set_os): Call cmd_type.
12002         * cris-tdep.c (cris_version_update): Use function cmd_type.
12003         (cris_mode_update, cris_abi_update): Ditto.
12004
12005         * command.h: (execute_cmd_post_hook): Declare.
12006         (execute_cmd_pre_hook): Declare.
12007         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12008         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12009         functions. Execute pre/post hook while ensuring that afterwords
12010         hook_in is cleared.
12011         * top.c (execute_command): Use execute_cmd_post_hook, and
12012         execute_cmd_pre_hook to execute pre/post commands.
12013         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12014         hook_stop_stub.
12015         (hook_stop_stub): Call execute_cmd_pre_hook.
12016
12017 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12018
12019         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12020         set'' and this leads to a core dump.  Move xstrdup of
12021         operating_system to after check that it is not NULL.
12022
12023 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12024
12025         * kod.c (kod_set_os): Remove unnecessary check that
12026         ``command->type'' is set_cmd.
12027
12028         * valprint.c (set_input_radix): Use input_radix.
12029         (set_output_radix): Use output_radix.
12030         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12031         isn't reverted.
12032
12033 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12034
12035         * value.h (struct value): Delete field ``substring_addr''.  Change
12036         aligner fields to force_doublest_align, force_longest_align,
12037         force_core_addr_align and force_pointer_aligh.
12038
12039         * value.h (struct value): Fix typo in above change.
12040
12041 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12042
12043         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12044         to fix internal_error from ``maintenance print architecture''.
12045
12046 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12047
12048         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12049         for gcc versions after gcc-2.8.1.
12050
12051 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12052
12053         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12054         for method resolution.  Restore adjustment of ``this'' pointer after
12055         calling value_struct_elt, which was accidentally removed during the
12056         HP merge.
12057
12058 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12059
12060         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12061         value_of_register.
12062         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12063         get_saved_register.
12064         * value.h (value_of_register): Update.
12065
12066 2002-03-14  Richard Henderson  <rth@redhat.com>
12067
12068         * configure.in: Detect declaration for canonicalize_file_name.
12069         * utils.c (canonicalize_file_name): Declare, if needed.
12070         (gdb_realpath): Prefer realpath if available and usable.
12071         * config.in, configure: Rebuild.
12072
12073 2002-03-14  Richard Henderson  <rth@redhat.com>
12074
12075         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12076         a constant array bound.
12077
12078         * MAINTAINERS: Add myself to write-after-approval.
12079
12080 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12081
12082         * symfile.c (syms_from_objfile): Return immediately if no syms.
12083         (symbol_file_add): Return immediately if no syms.
12084         (find_sym_fns): Return immediately if no syms.
12085
12086 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12087
12088         * gdbserver/remote-util.c (remote_open): Print remote-side's
12089         IP address when remote debugging over the network.
12090
12091 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12092
12093         * config/sparc/fbsd.mh: Fix copyright.
12094         * config/sparc/fbsd.mt: Likewise.
12095
12096 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12097
12098         * MAINTAINERS: Fix typo in name of gdb warnings option.
12099         (x86-64): Fix formating so that this can be parsed by awk.
12100
12101 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12102
12103         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12104         * defs.h: Include "gdb/signals.h".
12105         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12106
12107 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12108
12109         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12110         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12111         from x86-64-tdep.h
12112
12113 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12114             Don Howard <dhoward@redhat.com>
12115
12116         * mips-tdep.c (ST0_FR): Define.
12117         (mips2_fp_compat): New function, temporarily disabled.
12118         (mips_read_fp_register_single): New function.
12119         (mips_read_fp_register_double): New function.
12120         (mips_print_register): Use them.
12121         (do_fp_register_row): Likewise.
12122
12123 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12124
12125         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12126         approval''.
12127
12128 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12129
12130         * stabsread.c (read_member_functions): Fix is_stub test for
12131         static member functions, improve comment.
12132
12133 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12134
12135         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12136         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12137         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12138         commands that set boolean values.
12139         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12140         (arm_rdi_resume): Always initialize PC.
12141         (arm_rdi_open): Don't use rslt as a boolean.
12142         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12143         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12144         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12145         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12146
12147 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12148
12149         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12150         * configure: Rebuilt.
12151
12152 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12153
12154         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12155         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12156
12157 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12158
12159         * cli/cli-decode.c (set_cmd_completer): New function.
12160         * command.h (set_cmd_completer): Declare.
12161         * cli/cli-decode.h (set_cmd_completer): Ditto.
12162
12163         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12164         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12165         * win32-nat.c (_initialize_inftarg): Ditto.
12166         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12167         * proc-api.c (_initialize_proc_api): Ditto.
12168         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12169         * source.c (_initialize_source): Ditto.
12170         * exec.c (_initialize_exec): Ditto.
12171         * solib.c (_initialize_solib): Ditto.
12172         * top.c (init_main): Ditto.
12173         * tracepoint.c (_initialize_tracepoint): Ditto.
12174         * symfile.c (_initialize_symfile): Ditto.
12175         * printcmd.c (_initialize_printcmd): Ditto.
12176         * infcmd.c (_initialize_infcmd): Ditto.
12177         * corefile.c (_initialize_core): Ditto.
12178
12179 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12180
12181         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12182
12183 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12184
12185         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12186
12187 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12188
12189         * NEWS: Update headings, 5.2 has branched.
12190
12191 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12192
12193         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12194         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12195         (register_addr, REGISTER_RAW_SIZE): Likewise.
12196         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12197         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12198
12199 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12200
12201         * MAINTAINERS (x86-64): Add myself.
12202         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12203         changed value_ptr -> struct value *
12204
12205 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12206
12207         * configure.host (sparc64-*-freebsd): Add.
12208         * configure.tgt: Likewise.
12209         * config/sparc/fbsd.mh: New file.
12210         * config/sparc/fbsd.mt: Likewise.
12211         * config/sparc/nm-fbsd.h: Likewise.
12212         * config/sparc/tm-fbsd.h: Likewise.
12213
12214 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12215
12216         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12217         regformats/reg-s390x.dat.
12218
12219 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12220
12221         * utils.c: Add FIXME explaining true/false problem.
12222
12223 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12224
12225         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12226
12227 2002-02-28  Michael Chastain  <mec@shout.net>
12228
12229         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12230
12231 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12232
12233         * gdbserver/linux-s390-low.c: New file.
12234         * regformats/reg-s390.dat: New file.
12235         * regformats/reg-s390x.dat: New file.
12236         * gdbserver/configure.srv: Add S/390.
12237         * gdbserver/Makefile.in: Add S/390.
12238         * configure.tgt: Enable gdbserver for S/390.
12239
12240 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12241
12242         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12243         first line of the doc string for "info dos", except at the end of
12244         the sentence, since the short help stops at the first period.
12245
12246 2002-02-28  Jason Merrill  <jason@redhat.com>
12247
12248         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12249
12250 2002-02-27  Fred Fish  <fnf@redhat.com>
12251
12252         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12253         comment (dumy -> dummy).
12254
12255 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12256
12257         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12258
12259 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12260
12261       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12262
12263 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12264
12265         * gdbserver/acconfig.h: New file.
12266         * gdbserver/i387-fp.c: New file.
12267         * gdbserver/i387-fp.h: New file.
12268         * gdbserver/linux-x86-64.c: New file.
12269         * regformats/reg-x86-64.dat: New file.
12270         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12271         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12272         * gdbserver/configure.in: Add support for regsets.
12273         * gdbserver/config.in: Regenerate.
12274         * gdbserver/configure: Regenerate.
12275         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12276         * gdbserver/linux-low.h: New file.
12277         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12278         for regsets.
12279         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12280         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12281         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12282         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12283         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12284         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12285         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12286         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12287         * gdbserver/regcache.c (supply_register): New function.
12288         (supply_register_by_name): New function.
12289         (collect_register): New function.
12290         (collect_register_by_name): New function.
12291
12292 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12293
12294         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12295         (config.status): Add configure.srv dependency.
12296         (server_h): Add config.h dependency.
12297
12298 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12299
12300         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12301         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12302         * gdbserver/configure.srv: Change i386-*-linux* to use
12303         reg-i386-linux.o.
12304
12305 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12306
12307         * x86-64-tdep.c: Re-indent.  Update copyright date.
12308
12309 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12310
12311         From Michal Ludvig <mludvig@suse.cz>:
12312         * x86-64-tdep.c (value.h): Delete.
12313         (gdb_assert.h): Include.
12314         (x86_64_register_convert_to_virtual,
12315         x86_64_register_convert_to_raw ): Add check which lets only
12316         floating-point values to be converted.
12317         (value_push): Delete.
12318         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12319         (i386_gdbarch_init): Number of register_bytes fixed.
12320
12321 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12322
12323         * MAINTAINERS: Add x86-64 target.
12324
12325 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12326
12327         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12328         * osfsolib.c (solib_map_sections): Ditto.
12329         * irix5-nat.c (solib_map_sections): Ditto.
12330         * corelow.c (gdb_check_format): Ditto.
12331         * symfile.c (symfile_bfd_open): Ditto.
12332         * solib.c (solib_map_sections): Ditto.
12333         Fix PR gdb/354.
12334
12335 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12336
12337         * remote.c (_initialize_remote): By default, disable ``e'' and
12338         ``E'' step out-of-range packets.
12339
12340 2002-02-26  Andreas Schwab  <schwab@suse.de>
12341
12342         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12343         m68k_linux_frame_saved_pc.
12344         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12345         in_sigtramp.
12346         (SIGCONTEXT_PC_OFFSET): Remove.
12347         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12348         m68k_linux_sigtramp_saved_pc): New functions.
12349         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12350         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12351         (UCONTEXT_PC_OFFSET): Define.
12352         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12353         non-RT and RT signal trampolines.
12354
12355 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12356
12357         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12358         (TARGET_NBPG, STACK_END_ADDR): Delete
12359         (VARIABLES_INSIDE_BLOCK): Delete.
12360
12361 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12362
12363         * utils.c (perror_with_name): Make string parameter constant.
12364         (print_sys_errmsg): Ditto.
12365         (query): Ditto.
12366         * defs.h (perror_with_name): Update.
12367         (print_sys_errmsg): Update.
12368         (query): Update.
12369
12370 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12371
12372         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12373         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12374
12375 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12376
12377         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12378         if it already matches the current architecture from the exec file.
12379         Include arch-utils.h for gdbarch_info_init prototype.
12380         * Makefile.in (rs6000-nat.o): Update dependencies.
12381
12382 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12383
12384         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12385          list of exported variables.
12386
12387 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12388
12389         * gdbserver/configure.srv: New file.
12390         * gdbserver/configure.in: Use configure.srv instead
12391         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12392         from it.
12393         * gdbserver/configure: Regenerated.
12394         * gdbserver/terminal.h: New file.
12395         * gdbserver/Makefile.in: Update for configure changes.  Remove
12396         more unneeded include paths.
12397
12398 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12399
12400         From wiz at danbala:
12401         * config/sparc/tm-sp64.h: Fix grammar and typos.
12402         Fix PR gdb/287.
12403
12404 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12405
12406         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12407         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12408         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12409         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12410         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12411         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12412         * s390-tdep.c: Ditto.
12413         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12414         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12415         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12416         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12417         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12418         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12419         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12420         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12421         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12422         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12423         Fix PR gdb/378.
12424
12425 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12426
12427         * lin-thread.c: Delete file.
12428         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12429         to gdb_proc_service.h.
12430         * configure: Re-generate.
12431
12432         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12433         * serial.c (serial_open): Delete check for "ocd".
12434         Fix PR gdb/349.
12435
12436         * Makefile.in (linux-thread.o): Delete target.
12437         * linux-thread.c: Delete file.
12438
12439         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12440         renamed SH files to be consistent.
12441
12442         * symtab.c (sort_search_symbols): Use xfree.
12443
12444 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12445
12446         * arm-linux-tdep.c (arm_linux_init_abi): Register
12447         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12448         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12449         definition with undef, since we don't want the sysvr4 definition.
12450         (SKIP_TRAMPOLINE_CODE): Likewise.
12451
12452 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12453
12454         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12455
12456         * configure.in: (AC_CHECK_FUNCS) Added test for
12457         canonicalize_file_name Regenerated.
12458         * config.in, configure: Regenerated.
12459         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12460         defined use canonicalize_file_name.
12461
12462 2002-02-23  Michael Chastain  <mec@shout.net>
12463
12464         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12465
12466 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12467
12468         * README: Remove references to cygnus.com.
12469         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12470         dot com'' form.  Remove references to cygnus.com and sourceware.
12471
12472 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12473
12474         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12475         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12476         1003.1-2001 no longer allows "head -1".
12477         * gdb/Makefile.in (version.c): Likewise.
12478         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12479         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12480         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12481
12482 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12483
12484         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12485         * command.h (cmd_cfunc_eq): Declare.
12486         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12487
12488         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12489         ``struct cmd_list_element *''.
12490         * cli/cli-cmds.c (is_complete_command): Update.  Use
12491         cmd_cfunc_eq.
12492         * top.c (execute_command): Pass the command to
12493         is_complete_command.
12494         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12495
12496 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12497
12498         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12499         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12500         architecture defines.
12501         * s390-tdep.c (s390_gdbarch_init): Likewise.
12502
12503 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12504
12505         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12506         (arm_linux_push_arguments): Likewise.
12507         (arm_linux_init_abi): Register them.  Also register linux-specific
12508         call_dummy_words.
12509         (find_minsym_and_objfile): Use strcmp, not STREQ.
12510         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12511         (arm_linux_call_dummy_words): Delete declaration.
12512         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12513         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12514         declarations.
12515         (LOWEST_PC): Delete.
12516
12517 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12518
12519         * maint.c (print_section_info): Do not prepend `0x' to filepos
12520         output, it will be handled by local_hex_string_custom.
12521
12522 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12523
12524         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12525         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12526         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12527
12528 2002-02-22  Jim Blandy  <jimb@redhat.com>
12529
12530         Indicate that the bcache functions don't change the strings
12531         they're passed.
12532         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12533         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12534
12535 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12536
12537         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12538
12539 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12540
12541         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12542         find the complete path to a loaded DLL.
12543
12544 2002-02-21  Fred Fish  <fnf@redhat.com>
12545
12546         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12547         that marks the end of the range of a function, enter a line number
12548         entry that has a line number of zero and a PC offset that matches
12549         the end of the function.  This starts a range of PC's for which no
12550         line number information is known.
12551         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12552         PC's for which no line number info is found (line number is zero)
12553         then we didn't find any valid line information.
12554         * symtab.h: Document use of zero line number entry.
12555
12556 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12557
12558         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12559         (have_ptrace_getvrregs): Define for run time checks.
12560         (gdb_vrregset_t): New type for Altivec register handling.
12561         (fetch_register, store_register): Fetch/store altivec register
12562         when needed.
12563         (fetch_altivec_register, store_altivec_register): New functions.
12564         (supply_vrregset, fill_vrregset): New functions.
12565         (fetch_altivec_registers, store_altivec_registers): New functions.
12566         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12567         registers as well.
12568
12569 2002-02-21  Jiri Smid  <smid@suse.cz>
12570
12571         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12572
12573 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12574
12575         * Makefile.in (armnbsd-nat.o): Update dependencies.
12576         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12577         supply the integer register set.
12578         (supply_fparegset): New function.  Similar for FPA registers.
12579         (fetch_regs, fetch_fp_regs): Use them.
12580         (fetch_core_registers): Likewise.
12581         (fetch_elfcore_registers): New function.
12582         (arm_netbsd_elfcore_fns): New core-file type specification.
12583         (_initialize_arm_netbsd_nat): Register it.
12584
12585 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12586
12587         * armnbsd-nat.c: Include gdbcore.h.
12588         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12589         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12590         'void' to declaration, to shut up ARI.
12591         (fetch_core_registers): Make static.  Rewrite using supply_register.
12592         (arm_netbsd_core_fns): New core-file type specification.
12593         (_initialize_arm_netbsd_nat): New function.
12594
12595 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12596
12597         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12598         value.
12599
12600 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12601
12602         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12603         fails.
12604
12605 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12606
12607         * jv-exp.y (parse_number): Change type of implicit longs
12608         to builtin_type_uint64.
12609
12610 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12611
12612         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12613         to be an integer instead of a `union wait'.
12614
12615 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12616
12617         * mips-linux-nat.c: Call the operating system GNU/Linux.
12618         * mips-linux-tdep.c: Likewise.
12619         * mips-tdep.c: Likewise.
12620
12621 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12622
12623         Fix PR gdb/265.
12624         * jv-exp.y (parse_number): Handle 64-bit integers.
12625
12626 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12627
12628         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12629         AC_STDC_HEADERS to AC_HEADER_STDC.
12630         * gdbserver/configure: Regenerated.
12631
12632 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12633
12634         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12635         is defined.
12636         * sparc-tdep.c (get_longjmp_target): Likewise.
12637
12638 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12639
12640         * News: Add news about ARM and Multi-arch.  Mention the new target
12641         arm*-*-netbsd*.
12642
12643 2002-02-19  Jim Blandy  <jimb@redhat.com>
12644
12645         * stabsread.c (error_type_complaint): Improve error message.
12646
12647 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12648
12649         * gdbserver/README: Update documentation.
12650         * gdbserver/configure.in: Update configury to match documentation.
12651         * gdbserver/Makefile.in: Likewise.
12652         * gdbserver/configure: Regenerated.
12653         * gdbserver/aclocal.m4: New file, generated by aclocal.
12654         * gdbserver/config.in: New file, generated by autoheader.
12655
12656 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12657
12658         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12659         armnbsd-nat.c.
12660
12661 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12662
12663         * arm-tdep.h (enum arm_float_model): New enum.
12664         (struct gdbarch_tdep): Add fp_model.
12665         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12666         up floating-point conversions until we know the floating-point model
12667         in use by the inferior.  Don't complain about being unable to
12668         determine the ABI of the inferior when we don't have one.
12669         (arm_extract_return_value): Support different floating-point models.
12670         (arm_store_return_value): Likewise.
12671         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12672         ARM_FLOAT_SOFT.
12673         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12674
12675 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12676
12677         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12678         of ``current_gdbarch''.
12679
12680 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12681
12682         * armnbsd-nat.c : ANSIfy all function declarations.
12683         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12684         (fetch_inferior_registers): Re-implement in terms of above.
12685         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12686         (store_inferior_registers): Re-implement in terms of above.
12687
12688 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12689
12690         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12691         kernel.
12692         * arm-linux-tdep.c: Likewise.
12693         * config/arm/tm-linux.h: Likewise.
12694
12695 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12696
12697         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12698         * config/arm/nbsd.mt (TM_FILE): Delete.
12699         * config/arm/tm-nbsd.h: Delete.
12700
12701 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12702
12703         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12704         Initialize CALL_DUMMY_LENGTH.
12705
12706 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12707
12708         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12709         function.
12710         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12711         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12712         defines one thing and that is incorrect for this port.
12713         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12714
12715 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12716
12717         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12718
12719 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12720
12721         * win32-nat.c (display_selector): New function. Displays information
12722         about the information returned by GetThreadSelectorEntry API function.
12723         (display_selectors): New function. Displays the infomation of
12724         the selector given as argument, or of CS, DS ans FS selectors
12725         if no argument is given.
12726         ( _initialize_inftarg): Add "w32" as info prefix command.
12727         Add "info w32 selector" as command calling display_selectors.
12728
12729 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12730
12731         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12732         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12733         if not defined.
12734
12735 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12736
12737         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12738
12739 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12740
12741         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12742         (arm_fix_call_dummy): Call it.
12743         (arm_call_dummy_breakpoint_offset): Delete.
12744         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12745         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12746
12747 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12748
12749         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12750         Default to func_frame_chain_valid.
12751         * gdbarch.h, gdbarch.c: Re-generate.
12752         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12753
12754 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12755
12756         * ppc-linux-nat.c: Update copyright.
12757         (fetch_register, store_register): Add tid parameter, don't compute
12758         tid here.
12759         (fetch_ppc_registers, store_ppc_registers): Add tid
12760         parameter. Pass it along to callees.
12761         (fetch_inferior_registers, store_inferior_registers): Compute tid
12762         here, and pass it to calleed functions.
12763         (fill_gregset, supply_fpregset): Clean up formatting.
12764
12765 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12766
12767         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12768         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12769
12770 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12771
12772         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12773         * gdbarch.c gdbarch.h: Regenerate.
12774         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12775         function.
12776         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12777         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12778         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12779
12780         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12781         * arm-tdep.c (arm_get_longjmp_target): New function.
12782         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12783         this to a positive value register arm_get_longjmp_target as the
12784         longjmp handler.
12785         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12786         (arm_linux_init_abi): Set up longjmp description in tdep.
12787         * armnbsd-nat.c (get_longjmp_target): Delete.
12788         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12789         description in tdep.
12790         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12791         (get_longjmp_target): Delete declaration.
12792         (GET_LONGJMP_TARGET): Delete.
12793         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12794         (GET_LONGJMP_TARGET): Delete.
12795
12796 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12797
12798         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12799         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12800         of ``current_gdbarch''.
12801
12802 2002-02-17  Tom Tromey  <tromey@redhat.com>
12803
12804         * cli/cli-cmds.c (compare_strings): New function.
12805         (complete_command): Only print each unique item once.
12806         * completer.h (complete_line): Declare.
12807         * completer.c (complete_line): New function.
12808         (line_completion_function): Use it.
12809
12810 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12811
12812         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12813         * gdbarch.h, gdbarch.c: Re-generate.
12814
12815 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12816
12817         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12818
12819 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12820
12821         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12822         * valops.c (value_arg_coerce): Don't take the address of a reference
12823         to convert an argument to a reference.
12824
12825 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12826
12827         * win32-nat.c (get_image_name): New function.
12828         (handle_load_dll): Use get_image_name function.
12829         (get_child_debug_event): Avoid registering debug events until possibly
12830         execed process is started.
12831         (child_create_inferior): Allow invocation via shell so that command
12832         line redirection, etc.  works ok.
12833         (_initialize_inftarg): Add new command: "set shell" to control whether
12834         a shell is used to start a process.
12835
12836 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12837
12838         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12839         instead of find_register_by_number.
12840         (cannot_store_register): Likewise.
12841
12842 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12843
12844         * dwarf2read.c: Replace fprintf (stderr, ...) by
12845         fprintf_unfiltered (gdb_stderr, ...).
12846
12847 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12848
12849         * gdbserver/gdbserver.1: Document --attach.
12850
12851 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12852
12853         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12854         descriptions.
12855         * arm-tdep.c (arm_default_arm_le_breakpoint)
12856         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12857         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12858         traditional breakpoint defines.
12859         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12860         (arm_gdbarch_init): Initialize new breakpoint variables.
12861         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12862         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12863         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12864         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12865         code out to ...
12866         (arm_netbsd_init_abi_common): ... here; new function.
12867         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12868         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12869         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12870         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12871
12872 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12873
12874         * arm-tdep.h (enum arm_abi): New enum.
12875         (struct gdbarch_tdep): New structure.
12876         (LOWEST_PC): Provide a default.
12877         (arm_gdbarch_register_os_abi): Declare new function.
12878         * arm-tdep.c (arm_abi_names): New array.
12879         (process_note_abi_tag_sections): New function.
12880         (get_elfosabi): New function.
12881         (arm_gdbarch_register_os_abi): New function.
12882         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12883         support for that ABI has been built in, then call the appropriate
12884         configuration routine.  Use gdbarch_num_regs() to get the number
12885         of registers.
12886         (arm_dump_tdep): New function.
12887         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12888         place-holder functions.
12889         (_initialize_arm_tdep): Register them.
12890         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12891
12892         * armnbsd-tdep.c: New file.
12893         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12894         * config/arm/nbsd.mt (TDEPFILES): Add it.
12895         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12896
12897         * armnbsd-nat.c: Include regcache.h.
12898         * Makefile.in (armnbsd-nat.o): Update dependency list.
12899
12900         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12901
12902 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12903
12904         * gdbserver/Makefile.in: Fix typos in target rules.
12905
12906 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12907
12908         Fix part of PR gdb/267.
12909         * linespec.c (find_methods): Handle constructors specially for now.
12910
12911 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12912
12913         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12914         handling.
12915         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12916         standard_coerce_float_to_double().
12917
12918 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12919
12920         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12921         GDBINIT_FILENAME.
12922
12923 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12924
12925         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12926         find_variant_by_name, because it confuses the multiarch
12927         framework. Return NULL if there isn't an architecture with the
12928         user supplied name, instead of forcing a different one without
12929         recording the change with the multiarch machinery.
12930         (find_variant_by_name): Delete.
12931
12932 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12933
12934         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12935         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12936
12937 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12938
12939         * stack.c (print_frame_info_base): When calling
12940         print_frame_info_listing_hook, set current_source_symtab.
12941
12942 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12943
12944         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12945         and remove unused $(INCLUDE_DIR).
12946         Add regcache.c to OBS.
12947         Add generated register protocol files to clean target.
12948         Update dependencies for new objects, obsolete old target code.
12949
12950         * gdbserver/linux-low.c: Remove all platform-specific code to
12951         new files.  Remove various dead code.  Update to use regcache
12952         functionality.
12953         * gdbserver/remote-utils.c (fromhex): Add return statement
12954         to quiet warning.
12955         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12956         constant.
12957         (input_interrupt): Add integer parameter to match prototype
12958         of a signal handler.
12959         (outreg): Use register_data ().
12960         (prepare_resume_reply): Use gdbserver_expedite_regs.
12961         * gdbserver/server.c (main): Dynamically allocate own_buf because
12962         PBUFSIZ is no longer constant.  Use registers_to_string () and
12963         registers_from_string ().
12964         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12965         for error (), fatal (), and warning ().  Update definition of
12966         PBUFSIZ to use regcache functionality.  Add include guard.
12967         * gdbserver/utils.c (fatal): Add missing ``const''.
12968         (warning): New function.
12969
12970         * regformats/regdat.sh: Include "regcache.h" in generated files.
12971         Provide init_registers () function.
12972         * regformats/regdef.h: Add prototype for set_register_cache ().
12973         Add include guard.
12974
12975         * gdbserver/linux-arm-low.c: New file.
12976         * gdbserver/linux-i386-low.c: New file.
12977         * gdbserver/linux-ia64-low.c: New file.
12978         * gdbserver/linux-m68k-low.c: New file.
12979         * gdbserver/linux-mips-low.c: New file.
12980         * gdbserver/linux-ppc-low.c: New file.
12981         * gdbserver/linux-sh-low.c: New file.
12982
12983         * gdbserver/regcache.c: New file.
12984         * gdbserver/regcache.h: New file.
12985
12986         * gdbserver/low-linux.c: Removed obsolete file.
12987
12988 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12989
12990         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12991         * config/i386/linux.mt: Likewise.
12992         * config/ia64/linux.mt: Likewise.
12993         * config/m68k/linux.mh: Likewise.
12994         * config/powerpc/linux.mh: Likewise.
12995         * config/mips/linux.mt: Likewise.
12996
12997         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12998
12999         * config/i386/i386lynx.mh: Mark gdbserver variables
13000         as (currently) obsolete for this target.
13001         * config/i386/nbsd.mt: Likewise.
13002         * config/i386/nbsdelf.mt: Likewise.
13003         * config/m32r/m32r.mt: Likewise.
13004         * config/m68k/m68klynx.mh: Likewise.
13005         * config/m68k/nbsd.mt: Likewise.
13006         * config/m68k/sun3os4.mh: Likewise.
13007         * config/mips/vr5000.mt: Likewise.
13008         * config/ns32k/nbsd.mt: Likewise.
13009         * config/pa/hppabsd.mh: Likewise.
13010         * config/pa/hppaosf.mh: Likewise.
13011         * config/powerpc/nbsd.mt: Likewise.
13012         * config/rs6000/rs6000lynx.mh: Likewise.
13013         * config/s390/s390.mt: Likewise.
13014         * config/s390/s390x.mt: Likewise.
13015         * config/sparc/sparclynx.mh: Likewise.
13016         * config/sparc/sun4os4.mh: Likewise.
13017         * config/i386/x86-64linux.mt: Likewise.
13018         * config/sparc/linux.mh: Likewise.
13019
13020 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13021
13022         * configure.tgt: Configure gdbserver only for known working
13023         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13024         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13025         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13026         * configure: Regenerated.
13027
13028 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13029
13030         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13031
13032         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13033         (default_gcore_mach): Just return 0, work around a problem in bfd.
13034         (default_gcore_target): OK to return NULL if exec_bfd is null.
13035         (make_mem_sec): Use a cast, avoid a warning.
13036
13037         * procfs.c (find_memory_regions_callback): Use a cast instead of
13038         calling host_pointer_to_address (which complains if
13039         sizeof (host pointer) != sizeof (target pointer)).
13040         (procfs_make_note_section): Avoid overflow in psargs string.
13041
13042         * procfs.c (procfs_make_note_section): Make the default
13043         implementation return an error.
13044
13045 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13046
13047         * procfs.c (procfs_make_note_section): Provide a default definition
13048         (for alpha-dec-osf4.0f). Fix typos.
13049
13050 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13051
13052         * linux-proc.c: Add include of regcache.h.
13053         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13054
13055 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13056
13057         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13058         * memattr.c (create_mem_region): Disallow useless empty region.
13059         Regions are half-open intervals, so allow [A..B) [B..C) as
13060         non-overlapping.
13061
13062 2002-02-13  Michael Chastain <mec@shout.net>
13063
13064         * defs.h: Kill CONST_PTR.
13065         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13066         * c-lang.c (c_builtin_types): Likewise.
13067         * ch-lang.c (ch_builtin_types): Likewise.
13068         * f-lang.c (f_builtin_types): Likewise.
13069         * language.c (unknown_builtin_types): Likewise.
13070         * m2-lang.c (m2_builtin_types): Likewise.
13071         * p-lang.c (pascal_builtin_types): Likewise.
13072         * scm-lang.c (c_builtin_types): Likewise.
13073
13074 2002-02-13  Keith Seitz  <keiths@redhat.com>
13075
13076         * arm-tdep.h (arm_get_next_pc): Add declaration.
13077
13078 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13079
13080         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13081         with other related struct-returning functions.
13082         (arm_extract_struct_value_address): New function.
13083         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13084         initialize float_format, double_format and long_double_format as
13085         appropriate to the endianness of the target.
13086         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13087         (arm_use_struct_convention): Delete declaration.
13088         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13089
13090 2002-02-13  Keith Seitz  <keiths@redhat.com>
13091
13092         * defs.h (core_addr_to_string_nz): New function.
13093
13094 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13095
13096         Apply missing bits of 2002-01-15 patch.
13097         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13098         (fill_fpregset): Use i387_fill_fsave.
13099
13100 2002-02-12  Keith Seitz  <keiths@redhat.com>
13101
13102         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13103         (core_addr_to_string_nz): New function.
13104
13105 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13106
13107         * arm-linux-nat.c: Really include arm-tdep.h.
13108         * config/arm/tm-linux.h (struct type, struct value): Declare.
13109
13110 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13111
13112         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13113         (gcore section): Ifdef for Solaris and Unixware only.
13114         (procfs_do_thread_registers): Unixware needs one lwpstatus
13115         per thread (not one prstatus or pstatus).
13116         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13117         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13118         once before iterating over threads.
13119
13120 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13121
13122         * arm-tdep.h: New file.
13123         * arm-tdep.c: Include arm-tdep.h.
13124         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13125         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13126         (arm_print_float_info, arm_register_type, convert_to_extended)
13127         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13128         (arm_extract_return_value, arm_register_name): Make static.
13129         (arm_software_single_step): Similarly.  Fix types in declaration.
13130         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13131         (arm_store_return_value, arm_store_struct_return): New functions.
13132         (arm_gdbarch_init): Register the above functions.  Also register
13133         call_dummy_start_offset, sizeof_call_dummy_words,
13134         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13135         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13136         max_register_virtual_size, register_size.  Set up
13137         prologue_cache.saved_regs here, rather than ...
13138         (_initialize_arm_tdep): ... here.
13139         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13140         declarations.
13141         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13142         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13143         (arm_print_float_info, arm_register_type, convert_to_extended)
13144         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13145         (arm_extract_return_value, arm_register_name): Delete declarations.
13146         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13147         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13148         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13149         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13150         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13151         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13152         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13153         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13154         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13155         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13156         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13157         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13158         interface.
13159         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13160         * remote-rdi.c remote-rdp.c: Likewise.
13161         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13162         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13163         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13164         definition.
13165
13166         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13167         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13168         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13169         from non-ARM_ prefixed definitions.
13170         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13171         all uses of above.
13172         * remote-rdi.c remote-rdp.c: Likewise.
13173         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13174
13175 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13176
13177         * arm-tdep.c (arm_frameless_function_invocation)
13178         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13179         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13180         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13181         (arm_pop_frame, arm_get_next_pc): Make static.
13182         (arm_gdbarch_init): Register above in gdbarch structure.
13183         (arm_read_fp): Renamed from arm_target_read_fp.
13184         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13185         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13186         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13187         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13188         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13189         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13190         (arm_pc_is_thumb_dummy): Delete declarations.
13191         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13192         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13193         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13194         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13195
13196 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13197
13198         * symtab.c (compare_search_syms): New function.
13199         (sort_search_symbols): New function.
13200         (search_symbols): Sort symbols after searching rather than
13201         before.
13202
13203 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13204
13205         * NEWS: Linux -> GNU/Linux.
13206
13207 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13208
13209         * gdbarch.sh: For for level one methods, disallow a definition
13210         when partially multi-arched.  Add comments explaining rationale.
13211         * gdbarch.h: Re-generate.
13212
13213 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13214
13215         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13216         multi-arch partial.
13217
13218 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13219
13220         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13221         field.  Use diff -u.
13222         * gdbarch.c: Re-generate.
13223
13224 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13225
13226         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13227         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13228         partial.
13229
13230 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13231
13232         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13233         multi-arch partial.
13234         (PUSH_ARGUMENTS): Switch to using predefault.
13235         * gdbarch.c: Regenerate.
13236
13237 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13238
13239         * valops.c (PUSH_ARGUMENTS): Delete definition.
13240         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13241         partial.  Default to default_push_arguments.
13242         * gdbarch.h, gdbarch.c: Regenerate.
13243
13244 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13245
13246         * defs.h (throw_exception): Rename return_to_top_level.  Update
13247         comments.
13248         * utils.c (error_stream, internal_verror, quit): Ditto.
13249         * top.c (throw_exception, catcher): Ditto.
13250         * sparclet-rom.c (sparclet_load): Ditto.
13251         * remote.c (interrupt_query, minitelnet): Ditto.
13252         * remote-sds.c (interrupt_query): Ditto.
13253         * remote-mips.c (mips_error, mips_kill): Ditto.
13254         * ocd.c (interrupt_query): Ditto.
13255         * monitor.c (monitor_interrupt_query): Ditto.
13256         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13257         * target.h: Update comment.
13258
13259         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13260
13261 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13262
13263         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13264         default_double_format.
13265         * gdbarch.h, gdbarch.c: Re-generate.
13266         * findvar.c (floatformat_unknown): Delete variable definition.
13267         * doublest.h (floatformat_unknown): Delete variable declaration.
13268
13269 2002-02-09  Jim Blandy  <jimb@redhat.com>
13270
13271         * stabsread.c (read_type): Add code to parse Sun's syntax for
13272         prototyped function types.
13273
13274 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13275
13276         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13277         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13278
13279 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13280
13281         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13282         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13283         now _initialize_xcoffsolib gets called again and overrides the
13284         commands from solib.c in a native configuration.
13285
13286 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13287
13288         * doublest.c (store_typed_floating): Don't try to return a value.
13289         Fixes PR gdb/290.
13290
13291 2002-02-08  Jim Blandy  <jimb@redhat.com>
13292
13293         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13294         is prototyped and has no arguments, print its argument list as
13295         `(void)'.
13296
13297 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13298
13299         * MAINTAINERS (write-after-approval): Add myself.
13300         (paper-trail): I've escaped!
13301
13302 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13303
13304         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13305         changes.
13306         (_initialize_check_for_gdb_ini): Ditto.
13307
13308 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13309
13310         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13311         xaprintf -> xasprintf.
13312
13313 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13314
13315         * win32-nat.c: Remove use of printf and sprintf functions.
13316
13317 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13318
13319         * arm-tdep.c (arm_frame_chain_valid): Make static.
13320         (arm_push_arguments): Likewise.
13321         (arm_gdbarch_init): New function.
13322         (_initialize_arm_tdep): Call it.
13323         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13324         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13325         (FRAME_CHAIN_VALID): Delete.
13326         (arm_frame_chain_valid): Delete declaration.
13327         (PUSH_ARGUMENTS): Delete.
13328         (arm_push_arguments): Delete declaration.
13329         (CALL_DUMMY_P): Delete.
13330
13331 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13332             Corinna Vinschen  <vinschen@redhat.com>
13333
13334         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13335         on builtin float types.
13336
13337 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13338
13339         * utils.c: Include <curses.h> before "bfd.h".
13340         * tui/tui-hooks.c: Likewise.
13341         * tui/tui.c: Likewise.
13342         * tui/tuiCommand.c: Likewise.
13343         * tui/tuiData.c: Likewise.
13344         * tui/tuiDataWin.c: Likewise.
13345         * tui/tuiDisassem.c: Likewise.
13346         * tui/tuiGeneralWin.c: Likewise.
13347         * tui/tuiIO.c: Likewise.
13348         * tui/tuiLayout.c: Likewise.
13349         * tui/tuiRegs.c: Likewise.
13350         * tui/tuiSource.c: Likewise.
13351         * tui/tuiSourceWin.c: Likewise.
13352         * tui/tuiStack.c: Likewise.
13353         * tui/tuiWin.c: Likewise.
13354
13355 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13356
13357         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13358         to include space for pseudoregs as well. Update loops accordingly.
13359         (sh_fp_frame_init_saved_regs): Ditto.
13360         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13361
13362 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13363
13364         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13365         Add Richard Earnshaw to Arm maintainers.
13366
13367 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13368
13369         * defs.h (warning_begin): Delete declaration.
13370
13371         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13372         Delete macro.
13373
13374 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13375
13376         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13377         Logic bug, remove misplaced else.
13378
13379 2002-02-07  Klee Dienes  <klee@apple.com>
13380
13381         * fork-inferior.c (fork_inferior): Add '!' to the list of
13382         characters that need to be quoted when building a string for the
13383         shell.  Quote '!' specifically with a backslash, since CSH chokes
13384         when trying to evaluate "str!str".
13385
13386 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13387
13388         * rdi-share/host.h: Only provide a typedef for bool if it is not
13389         defined.
13390
13391 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13392
13393         * breakpoint.h (enum bptype): Add new overlay event bp type.
13394         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13395
13396         * breakpoint.c (create_internal_breakpoint): New function.
13397         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13398         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13399         (create_thread_event_breakpoint): Ditto.
13400         (create_solib_event_breakpoint): Ditto.
13401         (create_overlay_event_breakpoint): New function.
13402         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13403         (update_breakpoints_after_exec): Delete and re-initialize
13404         overlay event breakpoints after an exec.  Add FIXME comment
13405         about longjmp breakpoint.
13406         (print_it_typical): Ignore overlay event breakpoints.
13407         (print_one_breakpoint): Ditto.
13408         (mention): Ditto.
13409         (bpstat_what): Do not stop for overlay event breakpoints.
13410         (delete_breakpoint): Don't delete overlay event breakpoints.
13411         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13412         (breakpoint_re_set): Re-create overlay event breakpoint.
13413
13414         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13415         (overlay_manual_command): Disable overlay breakpoints.
13416         (overlay_off_command): Disable overlay breakpoints.
13417
13418 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13419
13420         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13421         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13422         to here from config/tm-arm.h.
13423         (coff_sym_is_thumb): Make static.
13424         (arm_elf_make_msymbol_special): New function.
13425         (arm_coff_make_msymbol_special): New function.
13426         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13427         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13428         (coff_sym_is_thumb): Delete declaration.
13429         (arm_elf_make_msymbol_special): Declare.
13430         (arm_coff_make_msymbol_special): Declare.
13431         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13432         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13433
13434 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13435
13436         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13437
13438 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13439
13440         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13441         * gdbarch.c gdbarch.h: Regenerate.
13442         * arch-utils.c (default_print_float_info): New function.
13443         * arch-utils.h (default_print_float_info): Prototype it.
13444         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13445         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13446         (PRINT_FLOAT_INFO): Document it.
13447
13448         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13449         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13450         (PRINT_FLOAT_INFO): Define.
13451
13452 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13453
13454         * win32-nat.c (_initialize_check_for_gdb_ini):
13455         Add typecast to sprintf argument to suppress a warning.
13456
13457 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13458
13459         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13460         to allow easier handling of pass state.
13461         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13462         that gives exception name and address.
13463         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13464         and set last_sig value to ourstatus->value.sig. Some missing
13465         exceptions added.
13466         (child_continue): Correctly report continue_status.
13467         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13468         TARGET_SIGNAL_0 (new default value).
13469         (child_resume): consider sig argument passed to decide if
13470         the exception should be passed to debuggee or not.
13471
13472 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13473
13474         * regcache.c (fetch_register): Call target_fetch_register
13475         only if we don't call FETCH_PSEUDO_REGISTER.
13476         (store_register): Call target_store_register only if we
13477         don't call STORE_PSEUDO_REGISTER.
13478
13479 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13480
13481         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13482         ELF_MAKE_MSYMBOL_SPECIAL.
13483         * gdbarch.c, gdbarch.h: Regenerate.
13484         * arch-utils.c (default_make_msymbol_special): New function.
13485         * arch-utils.h (default_make_msymbol_special): Export.
13486         * elfread.c (elf_symtab_read): Compile use of
13487         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13488         multiarched.
13489         * coffread.c (coff_symtab_read): Ditto, for
13490         COFF_MAKE_MSYMBOL_SPECIAL.
13491
13492 2002-02-05  Jim Blandy  <jimb@redhat.com>
13493
13494         * solib-svr4.c (svr4_truncate_ptr): New function.
13495         (svr4_relocate_section_addresses): Do the address arithmetic with
13496         the appropriate truncation for target addresses, even when
13497         CORE_ADDR is larger than a target address.
13498
13499 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13500
13501         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13502         to (int *).
13503
13504 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13505
13506         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13507         code.
13508
13509 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13510
13511         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13512
13513 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13514
13515         * gdbserver/linux-low.c: Remove unused include files.
13516
13517 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13518
13519         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13520         (read_inferior_memory): Use it.
13521         (write_inferior_memory): Likewise.
13522
13523 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13524
13525         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13526         grubbing through sys_errlist.
13527
13528 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13529
13530         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13531
13532 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13533         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13534
13535 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13536
13537         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13538         (do_sfunc, set_cmd_sfunc): New functions.
13539
13540         * command.h (struct cmd_list_element): Add field func.
13541         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13542         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13543         * cli/cli-decode.h: Ditto.
13544
13545         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13546         (help_all, help_cmd_list): Ditto.
13547         (find_cmd, complete_on_cmdlist): Ditto.
13548         * top.c (execute_command): Ditto.
13549
13550         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13551         function.sfunc.
13552
13553         * infcmd.c (notice_args_read): Fix function signature.
13554
13555         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13556         * cli/cli-decode.c (add_set_cmd): Ditto.
13557         * utils.c (initialize_utils): Ditto.
13558         * maint.c (_initialize_maint_cmds): Ditto.
13559         * infrun.c (_initialize_infrun): Ditto.
13560         * demangle.c (_initialize_demangler): Ditto.
13561         * remote.c (add_packet_config_cmd): Ditto.
13562         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13563         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13564         * proc-api.c (_initialize_proc_api): Ditto.
13565         * kod.c (_initialize_kod): Ditto.
13566         * valprint.c (_initialize_valprint): Ditto.
13567         * top.c (init_main): Ditto.
13568         * infcmd.c (_initialize_infcmd): Ditto.
13569         * corefile.c (_initialize_core): Ditto.
13570         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13571         * arch-utils.c (initialize_current_architecture): Ditto.
13572         (_initialize_gdbarch_utils): Ditto.
13573         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13574
13575         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13576         * wince.c (_initialize_inftarg): Ditto.
13577         * symfile.c (_initialize_symfile): Ditto.
13578         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13579         * language.c (_initialize_language): Ditto.
13580         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13581
13582 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13583
13584         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13585
13586 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13587
13588         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13589         Add rules for building the register data files.
13590
13591 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13592
13593         * regformats/regdat.sh: Add braces to the definition of
13594         expedite_regs_${arch}.
13595
13596 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13597
13598         * regformats/regdef.h (struct reg): Add comment describing the
13599         requirements for offset and size fields.
13600
13601 2002-02-04  Andreas Schwab  <schwab@suse.de>
13602
13603         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13604         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13605
13606 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13607
13608         * gdbarch.sh (copyright): Update years in generated header.
13609         (SMASH_TEXT_ADDRESS): Add rule.
13610         * gdbarch.h, gdbarch.c: Re-generate.
13611         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13612         * dbxread.c: Likewise.
13613         * dwarfread.c: Likewise.
13614         * elfread.c: Likewise.
13615         * somread.c: Likewise.
13616
13617         * arm-tdep.c (arm_smash_text_address): New function.
13618         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13619
13620 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13621
13622         Add support for hardware watchpoints on win32 native.
13623         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13624         CONTEXT_DEBUG_REGISTERS.
13625         (dr variable): New variable. Static array containing a local copy
13626         of debug registers.
13627         (debug_registers_changed): New variable.  Reflects when debug registers
13628         are changed and need to be written to inferior.
13629         (debug_registers_used): New variable. Reflects when any debug register
13630         was set, used when new threads are created.
13631         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13632         i386-nat code.
13633         (thread_rec): Set dr array if id is the thread of current_event .
13634         (child_continue, child_resume): Change the debug registers for all
13635         threads if debug_registers_changed.
13636         (child_add_thread): Change the debug registers if debug_registers_used.
13637         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13638         Link nm.h to new nm-cygwin.h file.
13639         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13640         of hardware registers.
13641
13642 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13643
13644         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13645         Restore behavour broken by 2002-01-20 Andrew Cagney
13646         <ac131313@redhat.com> IEEE_FLOAT removal.
13647
13648 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13649
13650         * c-valprint.c (c_val_print): Pass a proper valaddr to
13651         cp_print_class_method.
13652         * valops.c (search_struct_method): If there is only one method
13653         and args is NULL, return that method.
13654
13655 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13656
13657         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13658         accessing tag_name directly.
13659
13660 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13661
13662         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13663         of accessing tag_name directly.
13664
13665 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13666
13667         PR gdb/280
13668         * gdbtypes.c (replace_type): New function.
13669         * gdbtypes.h (replace_type): Add prototype.
13670         * stabsread.c (read_type): Use replace_type.
13671
13672 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13673
13674         * Makefile.in (memattr.o): Add missing dependencies rule.
13675
13676 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13677
13678         * breakpoint.c (break_at_finish_command): Really export.
13679         (break_at_finish_at_depth_command): Ditto.
13680         (tbreak_at_finish_command): Ditto.
13681         * hppa-tdep.c: Include completer.h.
13682         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13683         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13684
13685 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13686
13687         * utils.c (do_write): New function.
13688         (error_stream): Rewrite combining the code from error_begin and
13689         verror.
13690         (verror): Rewrite using error_stream.
13691         (error_begin): Delete function.
13692
13693 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13694
13695         * utils.c (error_begin): Make static.
13696         * defs.h (error_begin): Delete declaration.
13697
13698         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13699         (decode_line_1): Use cplusplus_error instead of error_begin,
13700         cplusplus_hint and return_to_top_level.
13701         * coffread.c (coff_symfile_read): Use error instead of error_begin
13702         and return_to_top_level.
13703         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13704
13705 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13706
13707         * language.h (type_error, range_error): Make string parameter
13708         constant.
13709         * language.c (warning_pre_print): Delete extern declaration.
13710         * dwarfread.c (warning_pre_print): Ditto.
13711         * language.c (type_error, range_error): Rewrite to use verror and
13712         vwarning instead of warning_begin.
13713
13714 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13715
13716         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13717         (set_ignore_count): Move misplaced comment back where it belongs.
13718
13719 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13720
13721         * command.h (NO_FUNCTION): Delete macro.
13722         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13723         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13724         * tracepoint.c (_initialize_tracepoint): Ditto.
13725         * cli/cli-decode.c (add_set_cmd): Ditto.
13726         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13727
13728 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13729
13730         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13731         Update ``this'' pointer when calling virtual functions.
13732
13733 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13734
13735         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13736         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13737
13738 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13739
13740         * regformats/reg-arm.dat: New file.
13741         * regformats/reg-i386.dat: New file.
13742         * regformats/reg-ia64.dat: New file.
13743         * regformats/reg-m68k.dat: New file.
13744         * regformats/reg-mips.dat: New file.
13745         * regformats/reg-ppc.dat: New file.
13746         * regformats/reg-sh.dat: New file.
13747         * regformats/regdef.h: New file.
13748         * regformats/regdat.sh: New file.
13749
13750 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13751
13752         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13753         (arm_frame_args_address, arm_frame_locals_address): New functions.
13754         (arm_frame_num_args): New function.
13755         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13756         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13757         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13758
13759 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13760
13761         * breakpoint.c (break_at_finish_command): Export.
13762         (break_at_finish_at_depth_command): Export.
13763         (tbreak_at_finish_command): Export.
13764         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13765         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13766         "txbreak" commands, which are HPPA specific.
13767
13768         * printcmd.c (disassemble_command): Remove an ancient
13769         artifact of an old merge.
13770
13771         * symfile.h (enum overlay_debugging_state):
13772         Define enum constant values for overlay mode.
13773         * symfile.c (overlay_debugging): Use enums instead of literals.
13774         (overlay_is_mapped, overlay_auto_command,
13775         overlay_manual_command): Ditto.
13776
13777         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13778         breakpoint_here_p, breakpoint_inserted_here_p,
13779         breakpoint_thread_match, bpstat_stop_status,
13780         describe_other_breakpoints, check_duplicates, clear_command):
13781         Coding standard fixes.
13782
13783         * target.c (target_xfer_memory): Add spaces, coding standard.
13784         (do_xfer_memory): Add missing line to trust-readonly
13785         code: check bfd SEC_READONLY flag for section.
13786
13787 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13788
13789         * PROBLEMS: Fix typo, 5.1->5.1.1.
13790
13791 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13792
13793         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13794         data symbols, since we search based on textlow and texthigh.
13795         (find_pc_sect_symtab): Likewise.
13796
13797 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13798
13799         * defs.h (vwarning): Declare.
13800         * utils.c (vwarning): New function.
13801         (warning): Call vwarning.
13802         (warning_begin): Delete function.
13803
13804         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13805         the warning message.
13806         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13807         warning_begin.
13808
13809 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13810
13811         * NEWS: Mention "set trust-readonly-sections" command.
13812         Mention generate-core-file command.
13813
13814 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13815
13816         * target.c: New command, "set trust-readonly-sections on".
13817         (do_xfer_memory): Honor the suggestion to trust readonly sections
13818         by reading them from the object file instead of from the target.
13819         (initialize_targets): Register command "set trust-readonly-sections".
13820
13821 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13822
13823         * parse.c (target_map_name_to_register): Simplify, search regs and
13824         pseudo-regs using a single loop.
13825
13826 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13827
13828         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13829
13830 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13831
13832         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13833         * config/i386/i386v42mp.mh: Add i387-nat.o .
13834         * i386v4-nat.c: Include i387-nat.h.
13835         (supply_fpregset): Use i387_supply_fsave.
13836         (fill_fpregset): Use i387_fill_fsave.
13837
13838 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13839
13840         * arm-tdep.c (arm_call_dummy_words): Define.
13841         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13842         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13843         (CALL_DUMMY_WORDS): Define.
13844         (arm_call_dummy_words): Declare.
13845         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13846         (arm_linux_call_dummy_words): Declare.
13847
13848 2002-01-30  Andreas Schwab  <schwab@suse.de>
13849
13850         * m68klinux-nat.c: Fix last change to use regcache_collect
13851         instead of referencing registers[] directly.
13852
13853 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13854
13855         * parse.c (target_map_name_to_register): Delete code wrapped in
13856         #ifdef REGISTER_NAME_ALIAS_HOOK.
13857
13858 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13859
13860         * regcache.c (legacy_read_register_gen): Need to be able to
13861         read pseudo-register as well as real register.
13862         (legacy_write_register_gen): Ditto.
13863
13864 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13865
13866         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13867         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13868         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13869         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13870         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13871         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13872         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13873         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13874         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13875         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13876         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13877         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13878         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13879         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13880         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13881         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13882         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13883         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13884         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13885         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13886
13887 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13888
13889         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13890         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13891         (initialize_current_architecture): Update target_byte_order using
13892         information from BFD.
13893         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13894         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13895
13896 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13897
13898         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13899         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13900
13901         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13902         #ifdef INVALID_FLOAT.
13903         * infcmd.c (do_registers_info): Ditto.
13904         * values.c (unpack_double): Ditto.  Add comment.
13905
13906         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13907         already commented out.
13908
13909 2002-01-26  Andreas Schwab  <schwab@suse.de>
13910
13911         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13912         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13913         registers and add support for PTRACE_GETREGS.
13914
13915 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13916
13917         GDB 5.1.1 released from 5.1 branch.
13918         * NEWS: Add 5.1.1 news.
13919         * README: Sync with 5.1 branch.
13920
13921 2002-01-23  Fred Fish  <fnf@redhat.com>
13922
13923         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13924         stabstring on initial malloc.  Reallocing will copy it for us,
13925         if necessary.
13926
13927 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13928
13929         * Makefile.in (hpread_h): Delete.
13930         (HFILES_NO_SRCDIR): Remove hpread.h.
13931         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13932         (hpread.o): Update dependencies.
13933         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13934
13935         * hp-psymtab-read.c: Remove file.
13936         * hp-symtab-read.c: Remove file.
13937         * hpread.h: Remove file.
13938
13939         * hpread.c: Merge all contents of hp-psymtab-read.c,
13940         hp-symtab-read.c and hpread.h into this file, as it was prior to
13941         January 1999.
13942
13943         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13944         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13945         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13946         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13947
13948 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13949
13950         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13951         fill_gregset): Call gdbarch_tdep() just once, assign result to
13952         variable and use that, instead of calling the function several
13953         times.
13954
13955 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13956
13957         * configure.host: Accept sparcv9 as alias for sparc64.
13958         * configure.tgt: Likewise.
13959
13960 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13961
13962         * solib-aix5.c (build_so_list_from_mapfile)
13963         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13964         arguments is not reversed.
13965         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13966         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13967
13968 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13969
13970         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13971         modified version of obsolete sh_fetch_pseudo_register.
13972         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13973         (sh4_register_read): New function.
13974         (sh_pseudo_register_write): New function. Renamed and modified
13975         version of obsolete sh_store_pseudo_register.
13976         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13977         (sh4_register_write): New function.
13978         (sh_gdbarch_init): Remove setting of gdbarch function
13979         fetch_pseudo_register and store_pseudo_register. Remove setting of
13980         register_convert_to_raw, register_convert_to_virtual,
13981         register_convertible.
13982         (sh_sh4_register_convertible): Delete. No longer needed. All is
13983         taken care by architecture specific functions
13984         register_read/register_write.
13985         (sh_sh4_register_convert_to_virtual): Make static.
13986         (sh_sh4_register_convert_to_raw): Ditto.
13987
13988 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13989
13990         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13991         (floatformat_is_nan, floatformat_mantissa): Ditto.
13992
13993         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13994         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13995         builtin_type_ieee_double_little,
13996         builtin_type_ieee_double_littlebyte_bigword,
13997         builtin_type_m68881_ext, builtin_type_i960_ext,
13998         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13999         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14000         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14001         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14002
14003 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14004
14005         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14006         parameter.  Set frameless flag if it exists and depended of
14007         whether the scanned function is frameless or not.
14008         (xstormy16_skip_prologue): If function is frameless, return
14009         result of xstormy16_scan_prologue().
14010         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14011         call.
14012
14013 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14014
14015         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14016         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14017         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14018         sh_sh4_register_byte, sh_sh4_register_raw_size,
14019         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14020         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14021         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14022         sh_store_pseudo_register, sh_do_pseudo_register): Call
14023         gdbarch_tdep() just once, assign result to variable and use that,
14024         instead of calling the function several times.
14025
14026 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14027
14028         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14029         macros instead of LAST_FPU_CTRL_REGNUM.
14030         (store_register): Likewise.
14031
14032 2002-01-21  Jim Blandy  <jimb@redhat.com>
14033
14034         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14035         is up-to-date before running the program, not just when a program
14036         exits.
14037
14038 2002-01-21  Fred Fish  <fnf@redhat.com>
14039
14040         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14041         when we have found all instructions we are looking for.
14042
14043 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14044
14045         * arm-tdep.c (arm_register_name): New function.
14046         (arm_registers_names): Make static.
14047         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14048         (arm_register_name): Declare.
14049         (REGISTER_NAME): Use it.
14050
14051 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14052             Kevin Buettner  <kevinb@redhat.com>
14053
14054         Convert arm targets to new FRAME interface.
14055         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14056         (arm_frame_find_save_regs): Delete.
14057         (arm_frame_init_saved_regs): New.
14058         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14059         Allocate extra_info as required.  Convert all uses of fsr.regs
14060         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14061         to use extra_info.
14062         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14063         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14064         (check_prologue_cache, save_prologue_cache): Likewise.
14065         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14066         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14067         (FRAME_FIND_SAVED_REGS): Delete.
14068         (arm_frame_find_saved_regs): Delete prototype.
14069         (arm_frame_init_saved_regs): New prototype.
14070         (FRAME_INIT_SAVED_REGS): Define.
14071
14072 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14073
14074         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14075
14076 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14077
14078         From Jeff Law <law@redhat.com>:
14079         * infttrace.c: Include <sys/pstat.h>.
14080         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14081         exec file if the ttrace equivalent fails.
14082
14083 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14084
14085         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14086         (closeLogFile): Ditto.
14087
14088 2002-01-20  Michael Chastain  <mec@shout.net>
14089
14090         * top.c (print_gdb_version): Bump copyright year to 2002.
14091
14092 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14093
14094         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14095         Zannoni and Eli Zaretskii.
14096
14097 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14098
14099         * buildsym.c: Update copyright years.
14100         * c-typeprint.c: Likewise.
14101         * dwarf2read.c: Likewise.
14102         * f-typeprint.c: Likewise.
14103         * gdbtypes.c: Likewise.
14104         * gdbtypes.h: Likewise.
14105         * hp-symtab-read.c: Likewise.
14106         * hpread.c: Likewise.
14107         * mdebugread.c: Likewise.
14108         * p-typeprint.c: Likewise.
14109
14110 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14111
14112         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14113         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14114         byte-order selectable.
14115         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14116         * arch-utils.c: Ditto.
14117         (set_endian): Ditto.
14118         (set_endian_from_file): Ditto.
14119         * gdbserver/low-sim.c (create_inferior): Ditto.
14120         * gdbarch.sh: Ditto.
14121         * gdbarch.h: Re-generate.
14122         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14123         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14124         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14125         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14126         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14127         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14128         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14129         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14130         macro definition.
14131         * config/mips/tm-wince.h: Remove #undef of macro
14132         TARGET_BYTE_ORDER_SELECTABLE.
14133         * config/sh/tm-wince.h: Ditto.
14134
14135 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14136
14137         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14138         member function fields.  Add accessor macro
14139         TYPE_FN_FIELD_ARTIFICIAL.
14140         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14141         * c-typeprint.c (c_type_print_base): Skip artificial member
14142         functions.
14143
14144 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14145
14146         * f-typeprint.c: Delete unused function f_type_print_args.
14147         * p-typeprint.c: Delete unused function pascal_type_print_args.
14148
14149 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14150
14151         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14152         comment.  Add ``artificial'' to ``union field_location''.
14153
14154         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14155
14156         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14157         * mdebugread.c (parse_symbol): Likewise.
14158         * stabsread.c (define_symbol): Likewise.
14159         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14160         initializing TYPE_FIELD_BITPOS to n (obsolete).
14161         (hpread_doc_function_type): Likewise.
14162         * hpread.c (hpread_function_type): Likewise.
14163
14164 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14165
14166         * configure.in (host_makefile_frag): Only require a host makefile
14167         fragment when a native build.
14168         * configure: Re-generate.
14169
14170 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14171
14172         * doublest.h (floatformat_from_type): Declare.
14173         * doublest.c (floatformat_from_type): New function.
14174         (convert_typed_floating): Use.
14175
14176         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14177         call to function floatformat_from_type.
14178
14179         * gdbarch.sh (IEEE_FLOAT): Delete.
14180         * gdbarch.h, gdbarch.c: Re-generate.
14181         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14182         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14183         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14184         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14185         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14186         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14187         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14188         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14189         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14190         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14191         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14192         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14193
14194         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14195         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14196         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14197         * sh-tdep.c (sh_gdbarch_init): Ditto.
14198         * mips-tdep.c (mips_gdbarch_init): Ditto.
14199         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14200         * cris-tdep.c (cris_gdbarch_init): Ditto.
14201
14202 2002-01-20  Jiri Smid  <smid@suse.cz>
14203
14204         * configure.host, configure.tgt: Support x86-64.
14205         * NEWS: Note new target x86-64.
14206
14207         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14208         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14209         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14210         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14211         x86-64-linux-nat.o): Fix dependencies.
14212
14213 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14214
14215         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14216         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14217         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14218         * config/sparc/xm-sun4os4.h: Delete file.
14219         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14220
14221 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14222
14223         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14224         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14225         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14226         * config/i386/i386lynx.mh (XM_FILE): Delete.
14227         * config/rs6000/xm-rs6000ly.h: Delete file.
14228         * config/sparc/xm-sparclynx.h: Delete file.
14229         * config/m68k/xm-m68klynx.h: Delete file.
14230         * config/i386/xm-i386lynx.h: Delete file.
14231         * config/xm-lynx.h: Delete file.
14232         * config/djgpp/fnchange.lst: Update.
14233
14234 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14235
14236         * alpha-tdep.c (alpha_register_byte): New function.
14237         (alpha_register_raw_size): Ditto.
14238         (alpha_register_virtual_size): Ditto.
14239         (alpha_skip_prologue_internal): Renamed from
14240         alpha_skip_prologue.
14241         (alpha_skip_prologue): New version that calls
14242         alpha_skip_prologue_internal.
14243         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14244         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14245         second argument from alpha_skip_prologue.
14246         (REGISTER_BYTE): Use alpha_register_byte.
14247         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14248         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14249         (FRAMELESS_FUNCTION_INVOCATION): Use
14250         generic_frameless_function_invocation_not.
14251         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14252         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14253
14254 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14255
14256         * config/mips/xm-news-mips.h: Delete file.
14257         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14258
14259         * config/m88k/xm-m88k.h: Delete file.
14260         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14261         * config/m88k/xm-delta88v4.h: Ditto.
14262         * config/m88k/xm-delta88.h: Ditto.
14263
14264         * config/alpha/xm-fbsd.h: Delete file.
14265         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14266
14267         * config/sparc/xm-sparc.h: Delete file.
14268         * Makefile.in (xm-sun4os4.h): Delete dependency.
14269         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14270         * config/sparc/xm-sun4os4.h: Ditto.
14271         * config/sparc/xm-linux.h: Ditto.
14272
14273         * config/i386/xm-windows.h: Delete file.
14274
14275 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14276
14277         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14278         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14279
14280 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14281
14282         * alpha-tdep.c (alpha_call_dummy_words): New.
14283         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14284         (CALL_DUMMY_P): Define.
14285         (CALL_DUMMY_WORDS): Define.
14286         (SIZEOF_CALL_DUMMY_WORDS): Define.
14287
14288 2002-01-19  Per Bothner  <per@bothner.com>
14289
14290         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14291         isn't NULL, which can happen with some gcj-3.x-produced code.
14292
14293 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14294
14295         * alpha-tdep.c (alpha_register_virtual_type): New function.
14296         (alpha_init_frame_pc_first): Ditto.
14297         (alpha_fix_call_dummy): Ditto.
14298         (alpha_store_struct_return): Ditto.
14299         (alpha_extract_struct_value_address): Ditto.
14300         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14301         alpha_register_virtual_type.
14302         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14303         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14304         alpha_extract_struct_value_address.
14305         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14306         (INIT_FRAME_PC): Use init_frame_pc_noop.
14307         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14308
14309 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14310
14311         * i386gnu-nat.c: Include "i386-tdep.h".
14312         (fetch_fpregs): Simplify code dealing with uninitialized floating
14313         point states such that it doesn't require FP7_REGNUM.
14314
14315 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14316
14317         * alpha-tdep.c (frame_extra_info): New.
14318         (alpha_find_saved_regs): Make static.  Use
14319         frame->extra_info.
14320         (alpha_frame_init_saved_regs): New function.
14321         (alpha_frame_saved_pc): Use frame->extra_info.
14322         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14323         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14324         (init_extra_frame_info): Rename to...
14325         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14326         (alpha_print_extra_frame_info): New function.
14327         (alpha_frame_locals_address): Ditto.
14328         (alpha_frame_args_address): Ditto.
14329         (alpha_pop_frame): Use frame->extra_info.
14330         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14331         alpha_frame_args_address.
14332         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14333         (alpha_find_saved_regs): Remove prototype.
14334         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14335         (EXTRA_FRAME_INFO): Remove.
14336         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14337         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14338
14339 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14340
14341         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14342         (alpha_cannot_fetch_register): Ditto.
14343         (alpha_cannot_store_register): Ditto.
14344         (alpha_register_convertible): Ditto.
14345         (alpha_use_struct_convention): Ditto.
14346         * config/alpha/tm-alpha.h: Update copyright years.
14347         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14348         (INNER_THAN): Use core_addr_lessthan.
14349         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14350         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14351         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14352         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14353         (FRAME_CHAIN): Remove unnecessary cast.
14354
14355 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14356
14357         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14358         obsolete.
14359
14360 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14361
14362         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14363         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14364         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14365         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14366         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14367         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14368         * x86-64-linux-nat.c: Ditto.
14369
14370 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14371
14372         * alpha-tdep.c (alpha_register_name): New function.
14373         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14374         (REGISTER_NAME): Define.
14375
14376 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14377
14378         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14379
14380 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14381
14382         * alpha-tdep.c: Update copyright years.
14383         (alpha_next_pc): New function.
14384         (alpha_software_single_step): Ditto.
14385         * config/alpha/tm-alpha.h: Add prototype for
14386         alpha_software_single_step.
14387
14388 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14389
14390         * alphabsd-nat.c: Update copyright years.
14391         (fill_gregset): Use regcache_collect.
14392         (fill_fpregset): Likewise.
14393         (fetch_inferior_registers): Only fetch integer registers
14394         if requested to do so.
14395         (store_inferior_registers): Only store integer registers
14396         if requested to do so.
14397
14398 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14399
14400         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14401         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14402         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14403         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14404         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14405         * config/arm/linux.mh (XDEPFILES): Delete.
14406         * config/arm/nbsd.mh (XDEPFILES): Delete.
14407         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14408         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14409         * config/i386/i386m3.mh (XDEPFILES): Delete.
14410         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14411         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14412         * config/i386/fbsd.mh (XDEPFILES): Delete.
14413         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14414         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14415         * config/i386/i386v4.mh (XDEPFILES): Delete.
14416         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14417         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14418         * config/i386/i386aix.mh (XDEPFILES): Delete.
14419         * config/i386/go32.mh (XDEPFILES): Delete.
14420         * config/i386/cygwin.mh (XDEPFILES): Delete.
14421         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14422         * config/i386/i386mach.mh (XDEPFILES): Delete.
14423         * config/i386/i386v32.mh (XDEPFILES): Delete.
14424         * config/i386/linux.mh (XDEPFILES): Delete.
14425         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14426         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14427         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14428         * config/i386/i386sco.mh (XDEPFILES): Delete.
14429         * config/i386/i386v.mh (XDEPFILES): Delete.
14430         * config/i386/nbsd.mh (XDEPFILES): Delete.
14431         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14432         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14433         * config/i386/symmetry.mh (XDEPFILES): Delete.
14434         * config/i386/obsd.mh (XDEPFILES): Delete.
14435         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14436         * config/ia64/linux.mh (XDEPFILES): Delete.
14437         * config/ia64/aix.mh (XDEPFILES): Delete.
14438         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14439         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14440         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14441         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14442         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14443         * config/m68k/linux.mh (XDEPFILES): Delete.
14444         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14445         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14446         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14447         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14448         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14449         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14450         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14451         * config/m88k/delta88.mh (XDEPFILES): Delete.
14452         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14453         * config/m88k/m88k.mh (XDEPFILES): Delete.
14454         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14455         * config/mips/linux.mh (XDEPFILES): Delete.
14456         * config/mips/irix6.mh (XDEPFILES): Delete.
14457         * config/mips/irix5.mh (XDEPFILES): Delete.
14458         * config/mips/irix4.mh (XDEPFILES): Delete.
14459         * config/mips/irix3.mh (XDEPFILES): Delete.
14460         * config/mips/decstation.mh (XDEPFILES): Delete.
14461         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14462         (NATDEPFILES): Move core-aout.o to here.
14463         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14464         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14465         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14466         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14467         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14468         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14469         * config/pa/hpux11.mh (XDEPFILES): Delete.
14470         * config/powerpc/aix.mh (XDEPFILES): Delete.
14471         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14472         * config/powerpc/linux.mh (XDEPFILES): Delete.
14473         * config/romp/rtbsd.mh: Rename XDEPFILES.
14474         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14475         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14476         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14477         * config/s390/s390.mh (XDEPFILES): Delete.
14478         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14479         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14480         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14481         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14482         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14483         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14484         * config/sparc/linux.mh (XDEPFILES): Delete.
14485         * config/vax/vaxult.mh (XDEPFILES): Delete.
14486         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14487         * Makefile.in (DEPFILES): Remove XDEPFILES.
14488
14489 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14490
14491         * utils.c (internal_verror): Fix comments, default is yes not no.
14492         Update queries to match.  Default to quit and dump core.
14493
14494 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14495
14496         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14497         copyright.
14498         * defs.h, event-top.c, gdbcmd.h: Ditto.
14499         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14500         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14501         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14502         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14503         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14504         * mi/mi-main.c:Ditto.
14505
14506         * stack.c, symfile.c: Update copyright.
14507
14508 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14509
14510         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14511         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14512         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14513         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14514
14515 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14516
14517         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14518         * gdbserver/low-lynx.c (myattach): Likewise.
14519         * gdbserver/low-nbsd.c (myattach): Likewise.
14520         * gdbserver/low-sim.c (myattach): Likewise.
14521         * gdbserver/low-sparc.c (myattach): Likewise.
14522         * gdbserver/low-sun3.c (myattach): Likewise.
14523
14524         * gdbserver/low-linux.c (myattach): New function.
14525
14526         * gdbserver/server.c (attach_inferior): New function.
14527         (main): Handle "--attach".
14528
14529 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14530
14531         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14532         maintainer.
14533
14534 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14535
14536         * c-typeprint.c (is_type_conversion_operator): Add additional
14537         check for non-conversion operators.
14538
14539 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14540
14541         * linux-proc.c: Add "info proc" command, a la procfs.c.
14542         (read_mapping): New function, abstract and re-use code.
14543         (linux_find_memory_regions): Use new func read_mapping.
14544         (linux_info_proc_cmd): New function, implement "info proc".
14545         (_initialize_linux_proc): Add new command "info proc".
14546
14547 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14548
14549         * symfile.c (generic_load): Use bfd_map_over_sections method
14550         instead of manipulating bfd structure members directly.
14551         (add_section_size_callback): New function, bfd sections callback
14552         used by generic_load.
14553         (load_sections_callback): New function, bfd sections callback
14554         used by generic_load.
14555
14556 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14557
14558         [Based on work by Jim Blandy]
14559         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14560         (builtin_type_vec128): Export.
14561         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14562         types.
14563         (builtin_type_vec128): New builtin type for 128 bit vector
14564         registers.
14565         (build_gdbtypes): Initialize builtin_type_v16qi and
14566         builtin_type_v8hi. Create the vec128 register builtin type
14567         structure.
14568         (build_builtin_type_vec128): New function.
14569         (_initialize_gdbtypes): Register builtin_type_v16qi and
14570         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14571         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14572         AltiVec register to new builtin type.
14573
14574 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14575
14576         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14577         to make_cv_type.
14578
14579 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14580
14581         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14582         CLEAN_UP_REGISTER_VALUE.
14583         * regcache.c (supply_register): Update only call.
14584
14585 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14586
14587         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14588         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14589         a29k-*-vxworks* targets as obsolete.
14590
14591 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14592
14593         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14594         until we can resolve portability issues.
14595         * gregset.h: Remove references to fpxregs.
14596         * gcore.c (gcore_command): Initialize note_sec to NULL.
14597
14598 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14599
14600         * signals.c (target_signal_to_name): Rewrite.  Only use
14601         signals[].name when in bounds and non-NULL.
14602
14603 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14604
14605         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14606         * signals.c (target_signal_to_name): Verify that SIG is within the
14607         bounds of the signals array.
14608
14609 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14610
14611         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14612
14613 2002-01-13  Keith Seitz  <keiths@redhat.com>
14614
14615         * stack.c (print_frame_info_base): Print the frame's pc
14616         only if when print_frame_info_listing_hook is not defined.
14617
14618 2002-01-13  Keith Seitz  <keiths@redhat.com>
14619
14620         * varobj.c (varobj_set_value): Make sure that there were no
14621         errors evaluating the object before attempting to set its
14622         value.
14623         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14624         so this offset adjustment is no longer necessary.
14625         (create_child): Don't set the error flag if the child is
14626         a CPLUS_FAKE_CHILD.
14627         (value_of_child): If value_fetch_lazy fails, return NULL
14628         so that callers will be notified that an error occurred.
14629         (c_value_of_variable): Delay check of variable's validity
14630         until later. We actually want all structs and unions to have
14631         the value "{...}".
14632         Do not return "???" for variables which could not be evaluated.
14633         This error condition must be returned to the caller so that it
14634         can get the error condition from gdb.
14635         (cplus_name_of_child): Adjust index for vptr before figuring
14636         out the name of the child.
14637         (cplus_value_of_child): If a child's (real) parent is not valid,
14638         don't even bother trying to give a value for it. Just return
14639         an error. Change all instances in this function.
14640         (cplus_type_of_child): If our parent is one of the "fake"
14641         parents, we need to get at the type of the real parent, and
14642         derive the child's true type using this information.
14643
14644 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14645
14646         From 2002-01-09 John Marshall <johnm@falch.net>:
14647         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14648         sources.redhat.com, and tweak some related URLs which had
14649         suffered from linkrot.
14650
14651 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14652
14653         From Jeff law:
14654         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14655         structures passed in registers.
14656
14657 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14658
14659         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14660         white space which prevented compilation.  Reported by DSK
14661         <dsk@student.unsw.edu.au>.
14662
14663 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14664
14665         * symfile.c (build_section_addr_info_from_section_tab):
14666         Use bfd access method instead of manipulating bfd directly.
14667         (syms_from_objfile): Ditto.
14668         (simple_overlay_update_1): Ditto.
14669         (simple_overlay_update): Ditto.
14670         (generic_load): Ditto.
14671         (overlay_unmapped_address): FIXME comment, bfd access methods.
14672         (sections_overlap): FIXME comment, bfd access methods.
14673         (pc_in_mapped_range): FIXME comment, bfd access methods.
14674         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14675         (section_is_mapped): FIXME comment, bfd access methods.
14676         (section_is_overlay): FIXME comment, bfd access methods.
14677
14678         * symfile.c (generic_load): Whitespace and long line cleanups.
14679         Remove duplicate variable, change several local variables to
14680         more appropriate data types.
14681         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14682
14683 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14684
14685         From Peter Schauer:
14686         * language.c (longest_local_hex_string_custom): Use phex_nz to
14687         convert NUM to a hex string.
14688
14689 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14690
14691         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14692         the function.
14693         Update Copyright year.
14694
14695 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14696
14697         * language.c (longest_raw_hex_string): Delete unused function.
14698
14699 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14700
14701         * MAINTAINERS (write-after-approval): Add myself.
14702         * dwarf2read.c (read_tag_string_type): Handling of
14703         DW_AT_byte_size.
14704         (read_tag_string_type): FORTRAN fix to prevent propagation of
14705         first string size.
14706         (set_cu_language): Handling of DW_LANG_Fortran95
14707
14708 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14709
14710         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14711         GETPID(inferior_ptid).
14712         (store_inferior_registers): Likewise.
14713
14714 2002-01-10  Jason Merrill  <jason@redhat.com>
14715
14716         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14717         Fix DW_OP_minus.
14718
14719 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14720
14721         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14722         and bfd/elf32-sh-nbsd.c.
14723
14724 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14725
14726         * NEWS: Mention --pid and corefile/proc-id behavior change.
14727
14728         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14729         * gcore.c: Include cli/cli-decode.h instead of command.h.
14730
14731         * main.c (captured_main): Add new command line option "--pid".
14732         If the second command line argument (following the symbol-file)
14733         begins with a digit, try to attach to it before trying to open
14734         it as a corefile.
14735         (print_gdb_help): Document the "--pid" argument.
14736
14737 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14738
14739         * completer.c (command_completer): New function.
14740
14741         * completer.h <command_completer>: Add prototype.
14742
14743         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14744         completer for the "help" command.
14745
14746 2002-01-09  Jason Merrill  <jason@redhat.com>
14747
14748         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14749
14750 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14751
14752         * i386-linux-nat.c (fill_fpxregset): Make global.
14753         (store_fpxregset): Ditto.
14754
14755         * gregset.h (gdb_fpxregset_t): Define.
14756         (supply_fpxregset): Prototype.
14757         (fill_fpxregset): Prototype.
14758
14759         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14760
14761 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14762
14763         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14764         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14765         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14766
14767 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14768
14769         * MAINTAINERS: Update target maintainer rules so that any
14770         Maintainer can approve a tested patch for a maintenance-only
14771         target.
14772
14773 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14774
14775         * MAINTAINERS (write-after-approval): Add myself.
14776
14777         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14778         IN_SIGTRAMP.
14779
14780 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14781
14782         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14783         real name of the executable, rather than the /proc name.
14784
14785 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14786
14787         Implement a "generate-core-file" command in gdb, save target state.
14788         * gcore.c: New file.  Implement new command 'generate-core-file'.
14789         Save a corefile image of the current state of the inferior.
14790         * linux-proc.c: Add linux-specific code for saving corefiles.
14791         * target.h (struct target_ops): Add new target vectors for saving
14792         corefiles; to_find_memory_regions and to_make_corefile_notes.
14793         (target_find_memory_regions): New macro.
14794         (target_make_corefile_notes): New macro.
14795         * target.c (update_current_target): Inherit new target methods.
14796         (dummy_find_memory_regions): New place-holder method.
14797         (dummy_make_corefile_notes): New place-holder method.
14798         (init_dummy_target): Initialize new dummy target vectors.
14799         * exec.c (exec_set_find_memory_regions): New function.
14800         Allow the exec_ops vector for memory regions to be taken over.
14801         (exec_make_note_section): New function, target vector method.
14802         * defs.h (exec_set_find_memory_regions): Export prototype.
14803         * procfs.c (proc_find_memory_regions): New function, corefile method.
14804         (procfs_make_note_section): New function, corefile method.
14805         (init_procfs_ops): Set new target vector pointers.
14806         (find_memory_regions_callback): New function.
14807         (procfs_do_thread_registers): New function.
14808         (procfs_corefile_thread_callback): New function.
14809         * sol-thread.c (sol_find_memory_regions): New function.
14810         (sol_make_note_section): New function.
14811         (init_sol_thread_ops): Initialize new target vectors.
14812         * inftarg.c (inftarg_set_find_memory_regions): New function.
14813         Allow to_find_memory_regions vector to be taken over.
14814         (inftarg_set_make_corefile_notes): New function.
14815         Allow to_make_corefile_notes vector to be taken over.
14816         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14817         interface layer if not target_has_execution (may be a corefile).
14818         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14819         * config/sparc/sun4sol2.mh: Ditto.
14820         * config/alpha/alpha-linux.mh: Ditto.
14821         * config/arm/linux.mh: Ditto.
14822         * config/i386/x86-64linux.mh: Ditto.
14823         * config/ia64/linux.mh: Ditto.
14824         * config/m68k/linux.mh: Ditto.
14825         * config/mips/linux.mh: Ditto.
14826         * config/powerpc/linux.mh: Ditto.
14827         * config/sparc/linux.mh: Ditto.
14828
14829 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14830
14831         * arm-linux-nat.c: Remove references to regcache.c internal data
14832         (registers[] and register_valid[]).
14833
14834 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14835
14836         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14837         so that attaching to a pid will automatically read the process's
14838         symbol file and shlibs.
14839         * Makefile.in: Add rule for linux-proc.o.
14840         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14841         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14842         * config/arm/linux.mh: Ditto.
14843         * config/i386/linux.mh: Ditto.
14844         * config/i386/x86-64linux.mh: Ditto.
14845         * config/ia64/linux.mh: Ditto.
14846         * config/m68k/linux.mh: Ditto.
14847         * config/mips/linux.mh: Ditto.
14848         * config/powerpc/linux.mh: Ditto.
14849         * config/sparc/linux.mh: Ditto.
14850
14851 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14852
14853         * win32-nat.c: Add i386-tdep.h dependency.
14854
14855 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14856
14857         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14858         instead of bfd_get_arch_size.  Don't bail out just because
14859         there's no exec_bfd.
14860
14861         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14862         * p-valprint.c (pascal_object_print_value): Ditto.
14863         * somread.c (som_symtab_read): Ditto.
14864         * symfile.c (simple_free_overlay_region_table): Ditto.
14865         * valops.c (value_assign): Ditto.
14866
14867         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14868         use tilde_expand and strerror for opening save-tracepoints file.
14869
14870         * thread-db.c (thread_db_new_objfile): Indendation fix.
14871
14872         * infptrace.c (GDB_MAX_ALLOCA): New define.
14873         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14874         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14875         can be overridden with whatever value is appropriate to the host).
14876         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14877         alloca to allocate potentially large buffer.
14878         * rs6000-nat.c (child_xfer_memory): Ditto.
14879         * symm-nat.c (child_xfer_memory): Ditto.
14880         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14881
14882 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14883
14884         From Nick Clifton  <nickc@redhat.com>
14885         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14886
14887 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14888
14889         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14890         Don't use exec_bfd if it's NULL.
14891
14892 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14893
14894         * valops.c (value_arg_coerce): Fix formatting.
14895
14896 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14897
14898         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14899         * gnu-nat.c: Ditto.
14900
14901 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14902
14903         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14904         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14905         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14906         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14907         z8k-coff have not been multi-arched.  Update z8k-coff build
14908         status.
14909
14910 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14911
14912         * MAINTAINERS: Mark a29k target as obsolete.
14913         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14914         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14915         comments.
14916         * NEWS: Note that a29k targets are obsolete.
14917         * a29k-tdep.c: Mark as obsolete.
14918         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14919         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14920         a29k-*-vxworks* targets as obsolete.
14921         * remote-adapt.c: Obsolete.
14922         * remote-eb.c: Obsolete.
14923         * remote-mm.c: Obsolete.
14924         * remote-udi.c: Obsolete.
14925         * config/a29k/a29k-udi.mt: Obsolete.
14926         * config/a29k/a29k.mt: Obsolete.
14927         * config/a29k/tm-a29k.h: Obsolete.
14928         * config/a29k/tm-vx29k.h: Obsolete.
14929         * config/a29k/vx29k.mt: Obsolete.
14930
14931 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14932
14933         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14934         with BFD_ENDIAN_BIG.
14935
14936 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14937
14938         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14939         * configure, config.in: Re-generate.
14940         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14941         * defs.h: Do not include <endian.h>.
14942
14943 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14944
14945         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14946         * config.in: Regenerate.
14947         * configure.in: Update copyright years.
14948         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14949         * configure: Regenerate.
14950         * i386bsd-nat.c: Update copyright years.
14951         (fill_gregset): Use regcache_collect.
14952         (fetch_inferior_registers): Only fetch integer registers
14953         if requested to do so.  Add support for XMM registers
14954         using PT_GETXMMREGS.
14955         (store_inferior_registers): Only store integer registers
14956         if requested to do so.  Add support for XMM registers
14957         using PT_SETXMMREGS.
14958         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14959         (store_inferior_registers): Remove.
14960         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14961         (fetch_elfcore_registers): New function.
14962         (i386nbsd_elfcore_fns): New.
14963         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14964         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14965         i386bsd-nat.o.
14966         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14967         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14968         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14969         * config/i386/tm-nbsd.h: Update copyright years.
14970         (HAVE_SSE_REGS): Define.
14971         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14972         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14973         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14974         (SIGCONTEXT_PC_OFFSET): Remove.
14975         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14976
14977 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14978
14979         * configure.tgt: Remove powerpc-*-macos* target.
14980         * config/m68k/xm-mpw.h: Delete file.
14981         * config/xm-mpw.h: Delete file.
14982         * ser-mac.c: Delete file.
14983         * mpw-make.sed: Delete file.
14984         * mpw-config.in: Delete file.
14985         * mac-xdep.c: Delete file.
14986         * mac-gdb.r: Delete file.
14987         * mac-defs.h: Delete file.
14988         * mac-nat.c: Delete file.
14989         * config/powerpc/macos.mh: Delete file.
14990         * config/powerpc/macos.mt: Delete file.
14991         * config/powerpc/nm-macos.h: Delete file.
14992         * config/powerpc/tm-macos.h: Delete file.
14993         * source.c (openp, open_source_file): Remove obsolete code.
14994         * top.c (gdb_readline): Ditto.
14995         * utils.c (query): Ditto.
14996         * event-top.c (display_gdb_prompt): Ditto.
14997         * Makefile.in (ser-mac.o): Delete obsolete target.
14998         * NEWS: Update.
14999
15000 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15001
15002         * defs.h (BIG_ENDIAN): Delete macro definition.
15003         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15004         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15005         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15006         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15007         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15008         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15009         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15010         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15011         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15012         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15013         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15014         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15015         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15016         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15017         * gdbarch.c: Re-generate.
15018
15019 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15020
15021         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15022         for core files.
15023
15024 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15025
15026         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15027
15028 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15029
15030         * value.h (value_ptr): Delete typedef.
15031
15032 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15033
15034         * i386nbsd-nat.c: Update copyright years.
15035         Include i386-tdep.h.
15036
15037 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15038
15039         * stabsread.c: Update copyright years.
15040
15041         From Debashis Mahata <debashis.mahata@wipro.com>:
15042         (read_struct_fields): Deal with Sun C compiler erroneous stab
15043         output for structs and unions.
15044         Fix PR gdb/269.
15045
15046 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15047
15048         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15049         prototype.
15050
15051 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15052
15053         * cp-abi.c: Fix whitespace.
15054         (baseclass_offset): New wrapper function.
15055         * cp-abi.h (baseclass_offset): Add prototype.
15056         (struct cp_abi_ops): Add baseclass_offset pointer.
15057
15058         * valops.c (vb_match): Move to...
15059         * gnu-v2-abi.c (vb_match): here.
15060         * valops.c (baseclass_offset): Move to...
15061         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15062
15063         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15064
15065         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15066         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15067         * hpacc-abi.c (init_hpacc_ops): Likewise.
15068
15069 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15070
15071         * valops.c (find_overload_match): Accept obj as a
15072         reference parameter.  Update it before returning.
15073         * value.h (find_overload_match): Update prototype.
15074         * eval.c (evaluate_subexp_standard): Pass object to
15075         find_overload_match by reference.
15076
15077 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15078
15079         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15080         register attribute from value declarations.
15081         * valops.c: Ditto.
15082         * value.h: Ditto.
15083         * scm-lang.c (scm_lookup_name): Ditto.
15084
15085 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15086
15087         Abstract the functionality of iterating over mapped memory
15088         regions into a general purpose iterator function.
15089         * procfs.c (iterate_over_mappings): New function, general purpose
15090         iterator for memory sections.
15091         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15092         (solib_mappings_callback): New function, callback for above.
15093         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15094         (info_mappings_callback): New function, callback for above.
15095
15096         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15097
15098 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15099
15100         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15101         * i386-tdep.c: Include "elf-bfd.h".
15102         (process_note_abi_tag_sections): New function.
15103         (i386_gdbarch_init): Add code to recognize various OS/ABI
15104         combinations.
15105
15106         * maint.c (_initialize_maint_cmds): Add missing \ in
15107         string-literal.
15108
15109 For older changes see ChangeLog-2001
15110 \f
15111 Local Variables:
15112 mode: change-log
15113 left-margin: 8
15114 fill-column: 74
15115 version-control: never
15116 End: