2003-01-02 Andrew Cagney <ac131313@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
2
3         * MAINTAINERS: Mention gdb_mbuild.sh.
4         * gdb_mbuild.sh: Rewrite.
5
6 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
7
8         * configure.in: Fix typo in last change.
9         * config.in, configure: Regenerated.
10
11 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
12
13         * valarith.c (value_binop): Delete obsolete code and comments.
14         * configure.host: Ditto.
15         * buildsym.h (make_blockvector): Ditto.
16         * buildsym.c (make_blockvector): Ditto.
17         * defs.h (enum language): Ditto.
18         (chill_demangle): Ditto.
19         * elfread.c (elf_symtab_read): Ditto.
20         * dwarfread.c (CHILL_PRODUCER): Ditto.
21         (set_cu_language): Ditto.
22         (handle_producer): Ditto.
23         * expprint.c (print_subexp): Ditto.
24         * gdbtypes.c (chill_varying_type): Ditto.
25         * gdbtypes.h (builtin_type_chill_bool): Ditto.
26         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
27         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
28         (chill_varying_type): Ditto.
29         * language.h (_LANG_chill): Ditto.
30         * language.c (binop_result_type, integral_type): Ditto.
31         (character_type, string_type, structured_type): Ditto.
32         (lang_bool_type, binop_type_check): Ditto.
33         * stabsread.h (os9k_stabs): Ditto.
34         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
35         (define_symbol, read_type, read_struct_fields): Ditto.
36         (read_array_type, read_enum_type, read_huge_number): Ditto.
37         (read_range_type, start_stabs): Ditto.
38         * symfile.c (init_filename_language_table): Ditto.
39         (add_psymbol_with_dem_name_to_list): Ditto.
40         * symtab.c (symbol_init_language_specific): Ditto.
41         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
42         * symtab.h (struct general_symbol_info): Ditto.
43         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
44         * typeprint.c (typedef_print): Ditto.
45         * utils.c (fprintf_symbol_filtered): Ditto.
46         * valops.c (value_cast, search_struct_field, value_slice): Delete
47         obsolete code.
48         (varying_to_slice): Delete function.
49         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
50         (varying_to_slice): Delete declaration.
51         * MAINTAINERS: Update.
52
53 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
54
55         * configure.in: Reorganize "Checks for library functions section"
56         a bit.  Remove check for `btowc' and `isascii' functions.
57         * configure: Regenerated.
58
59         * acconfig.h (_MSE_INT_H): Remove.
60         * configure.in: Create "Checks for header files" section, and move
61         appropriate tests there.  Don't check for objlist.h, wchar.h,
62         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
63         misdetection fix.  Also add "Checks for types", "Checks for
64         compiler characteristics" and "Checks for library functions"
65         sections.
66         * config.in, configure: Regenerated.
67
68         * configure.in: Create "Checks for programs" section, and move
69         appropriate tests there.
70
71 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
72
73         * configure.in: Create "Checks for libraries" section, and move
74         appropriate tests there.  Cleanup check for wctype in libw.  Use
75         AC_SEARCH_LIBS to see whether we need libsocket.
76         * configure: Regenerated.
77
78 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
79
80         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
81         * config.in, configure: Regenerated.
82
83 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
84
85         * gdb_dirent.h: Cleanup and update code to match the example in
86         the Autoconf manual.
87         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
88         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
89         * configure: Regenerated.
90
91 2002-12-30  Adam Fedor  <fedor@gnu.org>
92
93         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
94         (yylex): Initialize c to avoid uninitialized warning.
95
96 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
97
98         * doc/fdl.texi: Revert the last change.
99
100 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
101
102         * tracepoint.c (ISATTY): Removed.
103
104 2002-12-26  J. Brobecker  <brobecker@gnat.com>
105
106         Continuing work to convert the hppa targets to multiarch partil.
107
108         * hppa-tdep.c: Add some missing forward declarations.
109         (frameless_function_invocation): Prefix the function name
110         by "hppa_" to avoid polluting the namespace.  Update all calls
111         to use the new function name.
112         (saved_pc_after_call): Ditto.
113         (init_extra_frame_info): Ditto.
114         (frame_chain): Ditto.
115         (push_dummy_frame): Ditto.
116         (target_read_pc): Ditto.
117         (target_write_pc): Ditto.
118         (in_solib_call_trampoline): Ditto.
119         (in_solib_return_trampoline): Ditto.
120         (skip_trampoline_code): Ditto.
121         (hppa_read_fp): New function, renamed from target_read_fp.
122         (hppa_target_read_fp): New function, using hppa_read_fp.
123         This function conforms to the function profile for the
124         READ_FP gdbarch method.
125         (hppa_extract_struct_value_address): New function, extracted
126         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
127         macro.
128         (hppa_frame_num_args): New function.
129         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
130
131         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
132         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
133         for the switch to multiarch partial.
134         Update some of the macros definitions to match some changes
135         described above in the name of the function they are calling.
136         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
137         not be straightforward to convert. Do now wrap it inside
138         "#if !... #endif" to remember that this macro has still not
139         been taken care of.
140         (FIX_CALL_DUMMY): Likewise.
141
142 2002-12-26  J. Brobecker  <brobecker@gnat.com>
143
144         Continuing work to convert the hppa targets to multiarch partial.
145
146         * hppa-tdep.c (hppa_register_raw_size): New function replacing
147         the body of macro REGISTER_RAW_SIZE.
148         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
149         config/pa/tm-hppah.h. These functions will be used to initialize
150         the gdbarch structure.
151         (hppa_hpux_pc_in_sigtramp): New function.
152         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
153         (hppa_hpux_frame_base_before_sigtramp): New function.
154         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
155         Add gdbcore.h #include.
156         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
157         of this gdbarch-eligible macro to a call to the new associated
158         function.
159         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
160         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
161         into a call to the new associated function.
162         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
163         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
164         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
165
166 2002-12-24  David Carlton  <carlton@math.stanford.edu>
167
168         * config/sparc/tm-sparc.h: Delete duplicate definition of
169         DEPRECATED_PC_IN_CALL_DUMMY.
170
171 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
172
173         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
174         $(gdb_assert_h).
175         * configure.tgt: Recognize mips64*-*-linux*.
176         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
177         (supply_32_bit_reg): New function.
178         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
179         (fill_gregset): Use regcache_collect() instead of
180         deprecated_registers[].
181         (register_addr): Change name to mips_linux_register_addr().
182         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
183         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
184         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
185         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
186         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
187         (MIPS64_LINUX_JB_PC): New defines.
188         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
189         (mips64_elf_fpregset_t): New typedefs.
190         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
191         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
192         (mips64_linux_register_addr, set_mips_linux_register_addr)
193         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
194         (init_register_addr_data)
195         New functions.
196         (fetch_core_registers): Add support for core file formats with 64-bit
197         registers.
198         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
199         (register_addr_data): New static global variable.
200         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
201         gdbarch_register_osabi() for each MIPS machine.
202         * config/mips/linux64.mt: New file.
203         * config/mips/tm-linux64.h: New file.
204
205 2002-12-23  Adam Fedor  <fedor@gnu.org>
206
207         * maint.c (maintenance_demangle): Add switch to demangle
208         ObjC language symbols as well.
209
210 2002-12-23  Adam Fedor  <fedor@gnu.org>
211
212         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
213         last argument from complaint function call.
214
215 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
216
217         * exec.c (print_section_info): Add FIXME comments regarding format
218         string choices.
219
220 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
221
222         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
223         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
224
225 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
226
227         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
228
229 2002-12-23  David Carlton  <carlton@math.stanford.edu>
230
231         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
232         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
233         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
234         information associated to a minsym, not lookup_symbol.
235
236 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
237
238         * x86-64-tdep.h (x86_64_init_abi): New prototype.
239         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
240         (x86_64_init_abi): Make non-static.  Set number of pseudo
241         registers to 0.
242         (x86_64_gdbarch_init): Remove function.
243         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
244         Remove code dealing with dissambly.
245         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
246         (_initialize_x86_64_linux_tdep): New function.
247         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
248         i386-tdep.o.
249
250 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
251
252         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
253         (struct gdb_osabi_handler): Remove member `arch'.  Add member
254         `arch_info'.
255         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
256         construct a `struct bfd_arch_info' and store it in the `struct
257         gdb_osabi_handler' that is created.
258         (gdbarch_init_osabi): Check for compatibility based on machine
259         type and architecture.
260         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
261         comment.
262         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
263         second argument in call to gdbarch_register_osabi.
264         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
265         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
266         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
267         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
268         * arm-tdep.c (_initialize_arm_tdep): Likewise.
269         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
270         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
271         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
272         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
273         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
274         * i386-tdep.c (_initialize_i386_tdep): Likewise.
275         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
276         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
277         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
278         _initialize_i386bsd_tdep and updated likewise.
279         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
280         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
281         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
282         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
283         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
284         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
285         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
286         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
287         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
288         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
289
290 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
291
292         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
293         DT_MIPS_RLD_MAP case for 64-bit targets.
294
295 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
296
297         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
298         ``temp_saved_regs'', not the pointer or other storage contiguous
299         to this pointer.
300
301 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
302
303         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
304         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
305         (mips_linux_get_longjmp_target): Delete declarations.
306         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
307         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
308         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
309         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
310         (mips_linux_get_longjmp_target)
311         (mips_linux_svr4_fetch_link_map_offsets): Make static.
312         (mips_linux_init_abi): New function.
313         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
314
315 2002-12-19  Keith Seitz  <keiths@redhat.com>
316
317         patch committed by Elena Zannoni  <ezannoni@redhat.com>
318         * thread.c (do_captured_list_thread_ids): Call prune_threads and
319         target_find_new_threads. Fix for PR mi/669.
320
321 2002-12-19  David Carlton  <carlton@math.stanford.edu>
322
323         * linespec.c (decode_line_1): Move code into decode_all_digits.
324         (decode_all_digits): New function.
325
326 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
327
328         * exec.c (print_section_info): Select a format string to use with
329         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
330
331 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
332
333         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
334         deprecated_update_current_frame_pc_hack.
335         (deprecated_update_frame_base_hack): New function.
336         * frame.h (deprecated_update_frame_pc_hack): Replace
337         (deprecated_update_frame_base_hack): Declare.
338         * infrun.c (normal_stop): Update.
339
340 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
341
342         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
343         frame_extra_info_zalloc.
344         (rs6000_frame_args_address): Use get_frame_extra_info.
345         (frame_get_saved_regs): Use get_frame_saved_regs.
346         (frame_initial_stack_address): Use get_frame_saved_regs and
347         get_frame_extra_info.
348         (frame_initial_stack_address): Use get_frame_extra_info.
349
350 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
351
352         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
353         array size.
354         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
355         checks for r3900_regnames[].
356
357 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
358
359         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
360         All uses changed
361         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
362
363 2002-12-17  David Carlton  <carlton@math.stanford.edu>
364
365         * symtab.c (lookup_partial_symbol): Don't search past the end of
366         the partial symbols.
367
368 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
369
370         * stack.c (frame_info): Use get_frame_saved_regs.
371         * breakpoint.c (until_break_command): Use get_frame_pc.
372
373 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
374
375         * buildsym.c (block_end_complaint, anon_block_end_complaint)
376         (innerblock_complaint, innerblock_anon_complaint)
377         (blockvector_complaint): Delete deprecated complaint structs.
378         (finish_block, make_blockvector, end_symtab): Replace calls
379         to complain() with calls to complaint().
380         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
381         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
382         (unexpected_type_complaint, bad_sclass_complaint)
383         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
384         Delete deprecated complaint structs.
385         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
386         Replace calls to complain() with calls to complaint().
387         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
388         (unknown_symtype_complaint, unknown_symchar_complaint)
389         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
390         (lbrac_mismatch_complaint, repeated_header_complaint)
391         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
392         Delete deprecated complaint structs.
393         (unknown_symtype_complaint, lbrac_mismatch_complaint)
394         (repeated_header_complaint)
395         (function_outside_compiliation_unit_complaint): New functions.
396         (add_old_header_file, find_corresponding_bincl_psymtab)
397         (set_namestring, find_stab_function_addr, read_dbx_symtab)
398         (process_one_symbol): Replace calls to complain() with, possibly
399         indirect, calls to complaint().
400         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
401         (unknown_attribute_form, unknown_attribute_length)
402         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
403         (const_ignored, botched_modified_type, op_deref2, op_deref4)
404         (basereg_not_handled, dup_user_type_allocation)
405         (dup_user_type_definition, missing_tag, bad_array_element_type)
406         (subscript_data_items, unhandled_array_subscript_format)
407         (unknown_array_subscript_format, not_row_major)
408         (missing_at_name): Delete deprecated complaint structs.
409         (bad_die_ref_complaint, unknown_attribute_form_complaint)
410         (dup_user_type_definition_complaint)
411         (bad_array_element_type_complaint): New functions.
412         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
413         (decode_subscript_data_item, dwarf_read_array_type)
414         (read_tag_string_type, read_subroutine_type, read_func_scope)
415         (locval, scan_partial_symbols, decode_modified_type)
416         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
417         (attribute_size): Replace calls to complain() with, possibly
418         indirect, calls to complaint().
419         * elfread.c (section_info_complaint, section_info_dup_complaint)
420         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
421         Delete deprecated complaint structs.
422         (elf_symtab_read, elfstab_offset_sections): Replace calls to
423         complain() with calls to complaint().
424         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
425         struct.
426         (stub_noname_complaint): New function.
427         (check_typedef, add_mangled_type): Replace calls to complain()
428         with calls to complaint().
429         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
430         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
431         (hpread_unhandled_type_complaint, hpread_struct_complaint)
432         (hpread_array_complaint, hpread_type_lookup_complaint)
433         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
434         (hpread_unhandled_common_complaint)
435         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
436         struct definitions and declarations.
437         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
438         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
439         Replace calls to complain() with, possibly indirect, calls to
440         complaint().
441         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
442         Likewise.
443         * mdebugread.c (bad_file_number_complaint, index_complaint)
444         (aux_index_complaint, block_index_complaint)
445         (unknown_ext_complaint, unknown_sym_complaint)
446         (unknown_st_complaint, block_overflow_complaint)
447         (basic_type_complaint, unknown_type_qual_complaint)
448         (array_index_type_complaint, bad_tag_guess_complaint)
449         (block_member_complaint, stEnd_complaint)
450         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
451         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
452         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
453         (bad_continued_complaint, bad_rfd_entry_complaint)
454         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
455         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
456         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
457         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
458         complaint structs.
459         (index_complaint, unknown_ext_complaint, basic_type_complaint)
460         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
461         (unexpected_type_code_complaint)
462         (function_outside_compilation_unit_complaint): New functions.
463         (parse_symbol, parse_type, upgrade_type, parse_procedure)
464         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
465         Replace calls to complain() with, possibly indirect calls to
466         complaint().
467         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
468         Delete deprecated complaint structs.
469         (lookup__objc_class, lookup_child_selector): Replace complain()
470         with complaint().
471         * remote-vx.c (cant_contact_target): Delete deprecated complaint
472         struct.
473         (vx_lookup_symbol): Replace complain() with complaint().
474         * stabsread.c (invalid_cpp_abbrev_complaint)
475         (invalid_cpp_type_complaint, member_fn_complaint)
476         (const_vol_complaint, error_type_complaint)
477         (invalid_member_complaint, range_type_base_complaint)
478         (reg_value_complaint, vtbl_notfound_complaint)
479         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
480         (unresolved_sym_chain_complaint, stabs_general_complaint)
481         (lrs_general_complaint, multiply_defined_struct): Delete
482         deprecated complaint structs.
483         (invalid_cpp_abbrev_complaint, ref_value_complaint)
484         (stabs_general_complaint, lrs_general_complaint)
485         (msg_unknown_complaint): New functions.
486         (dbx_lookup_type, read_cfront_baseclasses)
487         (read_cfront_member_functions, resolve_symbol_reference)
488         (define_symbol, resolve_live_range, add_live_range, read_type)
489         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
490         (read_one_struct_field, read_baseclasses, read_tilde_fields)
491         (read_cfront_static_fields, attach_fields_to_type)
492         (complain_about_struct_wipeout, read_range_type)
493         (common_block_start, common_block_end, cleanup_undefined_types)
494         (scan_file_globals): Replace complain() with complaint().
495         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
496         Delete deprecated complaint struct declarations.
497         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
498         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
499         (bf_not_found_complaint, ef_complaint, eb_complaint)
500         (function_outside_compilation_unit_complaint): New functions.
501         (record_include_begin, record_include_end, enter_line_range)
502         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
503         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
504         complain() with complaint().
505
506 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
507
508         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
509         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
510         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
511         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
512         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
513         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
514         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
515         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
516         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
517         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
518         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
519         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
520         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
521         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
522         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
523         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
524         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
525         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
526         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
527         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
528         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
529         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
530         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
531         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
532         * config/m88k/xm-dgux.h: Delete.
533         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
534         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
535         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
536         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
537         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
538         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
539         * ch-valprint.c: Delete.
540         
541 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
542
543         * infrun.c (handle_inferior_event): Rearrange code to resume if
544         no catchpoint triggers for an event.
545
546 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
547
548         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
549         and TARGET_WAITKIND_VFORKED cases.
550
551 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
552
553         * infrun.c (handle_inferior_event): Assume that catchpoints
554         are not affected by DECR_PC_AFTER_BREAK.
555
556 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
557
558         * target.c (update_current_target): Don't inherit DONT_USE.
559         * target.h (struct target_ops): Remove DONT_USE.
560         (target_next): Remove macro.
561
562 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
563
564         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
565
566 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
567
568         * arm-tdep.c (convert_from_extended): New argument to hold the
569         type of floating point result we want to convert to.  Make input 
570         argument const.  Fix all callers.
571         (convert_to_extended): Similarly.
572         (arm_extract_return_value): Now takes a regcache argument.  Change
573         code to use regcache accessor functions.  Correctly extract 
574         smaller-than-word results on big-endian machines.
575         (arm_store_return_value): Now takes a regcache argument.  Change
576         code to use regcache accessor functions.  Correctly zero/sign extend
577         smaller than word results before storing into r0.
578         (arm_gdbarch_init): Register new-style extract_return_value and
579         store_return_value functions.
580
581 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
582
583         * thread-db.c (thread_from_lwp): Uniquify error msg.
584         (lwp_from_thread): Ditto.
585         (check_event): Ditto.
586         (find_new_threads_callback): Ditto.
587         (thread_db_pid_to_str): Ditto.
588
589 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
590
591         * frame.h (get_frame_saved_regs): Declare.
592         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
593         pointer.
594         * frame.c (get_frame_saved_regs): New function.
595         (frame_saved_regs_zalloc): Return the allocated saved_regs.
596
597 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
598
599         * frame.c (deprecated_update_current_frame_pc_hack): New
600         function.
601         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
602         * infrun.c (normal_stop): Use said function instead of directly
603         modifying the frame's PC.
604         
605 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
606
607         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
608
609 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
610
611         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
612         config/mips/tm-irix6.h (NUM_REGS): Delete.
613         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
614         (temp_saved_regs): Declare as a pointer rather than an array.
615         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
616         that ``temp_saved_regs'' has storage allocated to it and that
617         it's the correct size.
618
619 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
620
621         * defs.h (init_last_source_visited): New prototype.
622         (add_path): Ditto.
623         * source.c (add_path): New function that adds to a specified path.
624         (mod_path): Change to call add_path.
625         (init_last_source_visited): New function to allow interfaces to
626         initialize static variable: last_source_visited.  Part of fix
627         for PR gdb/741.
628         * Makefile.in: Add support for mi/mi-cmd-env.c.
629
630 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
631
632         * frame.h (frame_id_unwind): Declare.
633         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
634         id_unwind_cache.
635         (frame_id_unwind_ftype): Declare.
636         * frame.c (frame_id_unwind): New function.
637         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
638         (create_new_frame, get_prev_frame): Pass id_unwind to
639         set_unwind_by_pc.
640         (frame_saved_regs_id_unwind): New function.
641         (frame_saved_regs_id_unwind): New function.
642         * dummy-frame.c (dummy_frame_id_unwind): New function.
643         (struct dummy_frame): Add field id.
644         (generic_push_dummy_frame): Initialize `id'.
645         * dummy-frame.h (dummy_frame_id_unwind): Declare.
646
647 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
648
649         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
650         pass that to set_momentary_breakpoint.  Move comments to where they
651         belong.
652         * frame.h (set_current_frame): Delete declaration.
653         * frame.c (set_current_frame): Delete function.
654
655 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
656
657         * frame.c (frame_extra_info_zalloc): New function.
658         * frame.h (frame_extra_info_zalloc): Declare.
659
660 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
661
662         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
663         in the previous prototype change to set_momentary_breakpoint.
664
665 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
666
667         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
668         and saw_child_exec.
669         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
670         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
671         (stop_stepping): Remove outdated check for child vfork events.
672
673 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
674
675         * GDB 5.3 released from gdb_5_3-branch.
676
677 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
678
679         * corelow.c (init_core_ops): Delete references to to_require_attach
680         and to_require_detach.
681         * exec.c (init_exec_ops): Likewise.
682         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
683         hppa_require_detach directly.
684         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
685         * inftarg.c (child_detach): Remove.
686         (child_detach_from_process): Rename to child_detach, remove
687         after_fork argument.
688         (child_attach): Remove.
689         (child_attach_to_process): Rename to child_attach, remove after_fork
690         argument.
691         (init_child_ops): Delete references to to_require_attach
692         and to_require_detach.
693         * infttrace.c (hppa_require_attach): Update comment.
694         * target.c (cleanup_target, update_current_target)
695         (init_dummy_target, setup_target_debug): Delete references to
696         to_require_attach and to_require_detach.
697         (find_default_require_detach, find_default_require_attach)
698         (debug_to_require_attach, debug_to_require_detach): Remove
699         functions.
700         * target.h (struct target_ops): Remove to_require_attach
701         and to_require_detach.
702         (target_require_attach, target_require_detach): Delete macros.
703         (find_default_require_detach, find_default_require_attach): Delete
704         prototypes.
705         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
706
707 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
708
709         * frame.c (get_frame_extra_info): New function.
710         * frame.h (get_frame_extra_info): Declare.
711
712 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
713
714         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
715         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
716         with `struct frame_id'.
717         (set_longjmp_resume_breakpoint): Ditto.
718         * infrun.c (handle_inferior_event): Update.
719         * breakpoint.c (watch_command_1, until_break_command): Update.
720         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
721         (handle_inferior_event, step_over_function): Update.
722         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
723         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
724         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
725         * infcmd.c (finish_command, run_stack_dummy): Update.
726
727 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
728
729         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
730         (dwarf2_non_const_array_bound_ignored)
731         (dwarf2_missing_line_number_section)
732         (dwarf2_statement_list_fits_in_line_number_section)
733         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
734         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
735         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
736         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
737         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
738         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
739         (dwarf2_missing_member_fn_type_complaint)
740         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
741         (dwarf2_const_value_length_mismatch)
742         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
743         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
744         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
745         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
746         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
747         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
748         complaints using deprecated struct..
749         (dwarf2_non_const_array_bound_ignored_complaint)
750         (dwarf2_complex_location_expr_complaint)
751         (dwarf2_unsupported_at_frame_base_complaint)
752         (dwarf2_const_value_length_mismatch_complaint)
753         (dwarf2_macros_too_long_complaint)
754         (dwarf2_macro_malformed_definition_complaint)
755         (dwarf2_invalid_attrib_class_complaint): New functions.
756         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
757         (read_structure_scope, read_array_type, read_common_block)
758         (read_tag_pointer_type, read_base_type, read_partial_die)
759         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
760         (new_symbol, dwarf2_const_value, read_type_die)
761         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
762         (parse_macro_definition, dwarf_decode_macros): Replace calls to
763         complain() with, possibly indirect, calls to complaint().
764
765 2002-12-11  Andrew Cagney  <cagney@redhat.com>
766
767         * frame.c (deprecated_get_frame_saved_regs): Rename
768         get_frame_saved_regs.
769         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
770         * sparc-tdep.c: Update.
771         * hppa-tdep.c: Update.
772         * h8500-tdep.c: Update.
773
774 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
775
776         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
777         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
778         ``char *'' for return and parameter types.
779         * gdbarch.h, gdbarch.c: Regenerate.
780         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
781         return type from ``char *'' to ``const char *''.
782         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
783         const.
784
785 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
786
787         * i386-tdep.c: Include "dummy-frame.h".
788         (i386_frame_chain, i386_frame_saved_pc): Replace
789         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
790         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
791
792 2002-12-10  Andrew Cagney  <cagney@redhat.com>
793
794         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
795         Change to a function with predicate.
796         * gdbarch.h, gdbarch.c: Re-generate.
797         * frame.c (get_prev_frame): Update.  Test
798         DEPRECATED_INIT_FRAME_PC_P.
799         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
800         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
801         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
802         * alpha-tdep.c (alpha_gdbarch_init): Update.
803         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
804         * mips-tdep.c (mips_gdbarch_init): Update.
805         * i386-interix-tdep.c (i386_interix_init_abi): Update.
806         * arm-tdep.c: Update comments.
807         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
808         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
809         * frv-tdep.c (frv_gdbarch_init): Ditto.
810         * x86-64-tdep.c (x86_64_init_abi): Ditto.
811         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
812         * s390-tdep.c (s390_gdbarch_init): Ditto.
813         * v850-tdep.c (v850_gdbarch_init): Ditto.
814         * vax-tdep.c (vax_gdbarch_init): Ditto.
815         * sh-tdep.c (sh_gdbarch_init): Ditto.
816         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
817         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
818         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
819         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
820         * i386-tdep.c (i386_gdbarch_init): Ditto.
821         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
822         * cris-tdep.c (cris_gdbarch_init): Ditto.
823         * avr-tdep.c (avr_gdbarch_init): Ditto.
824         * arm-tdep.c (arm_gdbarch_init): Ditto.
825         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
826         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
827
828 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
829
830         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
831         CHILD_FOLLOW_FORK.
832         * hppah-nat.c (saved_vfork_pid): Add.
833         (child_post_follow_vfork): Remove.
834         (child_follow_fork): New function.
835         (child_wait): Call detach_breakpoints after receiving the child vfork.
836         Call child_resume directly instead of going through resume ().
837         Make sure we have the exec before reporting the vfork.
838         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
839         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
840         (follow_fork): New function.  Call target_follow_fork.
841         (follow_inferior_reset_breakpoints): New function broken out from
842         old follow_inferior_fork.
843         (resume): Remove hack to follow exec after vfork.
844         * inftarg.c (child_post_follow_vfork): Remove.
845         (child_follow_fork): New function.
846         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
847         * target.c (cleanup_target): Replace to_post_follow_vfork with
848         to_follow_fork.
849         (update_current_target): Likewise.
850         (setup_target_debug): Likewise.
851         (debug_to_post_follow_vfork): Remove.
852         (debug_to_follow_fork): New function.
853         * target.h (struct target_ops): Replace to_post_folow_vfork with
854         to_follow_fork.
855         (child_post_follow_vfork): Remove prototype.
856         (child_follow_fork): Add prototype.
857         (target_post_follow_vfork): Remove macro.
858         (target_follow_fork): Add macro.
859
860 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
861
862         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
863         (child_post_follow_vfork): Cancel pending exec event if we follow
864         the parent.
865         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
866         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
867         event at the following wait call if necessary.
868         * infrun.c (follow_vfork): Don't follow_exec here.
869         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
870         case about HP/UX 10.20.  Remove code pushed down to
871         hppah-nat.c:child_wait.
872         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
873         vfork_in_flight is set.
874
875 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
876
877         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
878         for the parent's fork event.
879         * infrun.c (handle_inferior_event): Only expect one fork event.
880         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
881         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
882
883 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
884
885         * PROBLEMS: Delete reference to PR gdb/725.
886         
887         * MAINTAINERS (gdb.c++): Add David Carlton.
888
889 2002-12-09  David Carlton  <carlton@math.stanford.edu>
890
891         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
892         * cli/cli-cmds.c: Ditto.
893
894 2002-12-09  Andrew Cagney  <cagney@redhat.com>
895
896         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
897         function address in <>.
898         * gdbarch.c: Re-generate.
899
900 2002-12-09  David Carlton  <carlton@math.stanford.edu>
901
902         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
903
904 2002-12-09  David Carlton  <carlton@math.stanford.edu>
905
906         * linespec.c (symtab_from_filename): New function.
907         (decode_line_1): Move code into symtab_from_filename.
908
909 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
910
911         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
912
913 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
914
915         * f-valprint.c (info_common_command): Use get_frame_pc.
916         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
917         * ax-gdb.c (agent_command): Ditto.
918         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
919         (rs6000_pop_frame): Ditto.
920         (rs6000_frameless_function_invocation): Ditto.
921         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
922         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
923         * macroscope.c (default_macro_scope): Ditto.
924         * stack.c (print_frame_info_base): Ditto.
925         (print_frame, frame_info, print_frame_label_vars): Ditto.
926         (return_command, func_command, get_frame_language): Ditto.
927         * infcmd.c (finish_command): Ditto.
928         * dummy-frame.c (cached_find_dummy_frame): Ditto.
929         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
930         (break_at_finish_at_depth_command_1): Ditto.
931         (break_at_finish_command_1): Ditto.
932         (until_break_command, get_catch_sals): Ditto.
933         * blockframe.c (func_frame_chain_valid): Ditto.
934         (frameless_look_for_prologue): Ditto.
935         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
936
937 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
938
939         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
940         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
941
942 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
943
944         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
945         to pure functions.
946         * gdbarch.h, gdbarch.c: Re-generate.
947         * frame.c (get_prev_frame): Explictly assign prev's pc with value
948         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
949
950         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
951         declaration to a function returning a CORE_ADDR.
952         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
953         * arch-utils.c (init_frame_pc_noop): Return the PC value.
954         (init_frame_pc_default): Ditto.
955         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
956         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
957         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
958         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
959         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
960         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
961
962         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
963         to init_frame_pc_noop.
964         (i386_interix_init_frame_pc): Delete function.
965         * z8k-tdep.c (init_frame_pc): Delete function.
966         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
967         (INIT_FRAME_PC_FIRST): Ditto.
968         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
969         (INIT_FRAME_PC_FIRST): Ditto.
970         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
971         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
972         init_frame_pc_noop.
973         (INIT_FRAME_PC_FIRST): Convert to an expression.
974         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
975
976 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
977
978         * blockframe.c: Use get_frame_base instead of directly accessing
979         the `struct frame_info' member frame.
980         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
981         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
982
983 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
984
985         * Makefile.in (readline_h): Define.
986         (completer.o): Depend on readline_h.
987         (corelow.o): Ditto.
988         (event-top.o): Ditto.
989         (exec.o): Ditto.
990         (solib.o): Ditto.
991         (source.o): Ditto. 
992         (symfile.o): Ditto. 
993         (symmisc.o): Ditto. 
994         (top.o): Ditto.
995         (tracepoint.o): Ditto. 
996         (utils.o): Ditto.
997         (cli-dump.o): Ditto.
998         (tui-hooks.o): Ditto. 
999         (tuiWin.o): Ditto. 
1000
1001 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1002
1003         More cleanup from import of readline 4.3.
1004         * completer.h (complete_line, readline_line_completion_function):
1005         Update prototypes.
1006         (line_completion_function): Removed, not used outside of completer.c.
1007         * completer.c (readline_line_completion_function,
1008         complete_function, line_completion_function): Use const for first
1009         parameter.
1010         (line_completion_function): Make static.
1011         (filename_completer): filename_completion_function is now called
1012         rl_filename_completion_function
1013         * corelow.c: Include <readline/readline.h>.
1014         * exec.c: Ditto.
1015         * solib.c: Ditto.
1016         * source.c: Ditto.
1017         * symfile.c: Ditto.
1018         * symmisc.c: Ditto.
1019         * top.c (init_main): No need to coerce
1020         readline_line_completion_function anymore.
1021         * cli/cli-dump.c: Include <readline/readline.h>.
1022
1023 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1024
1025         * stack.c (frame_info): Use get_prev_frame.
1026         * blockframe.c (frame_address_in_block): Ditto.
1027         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1028         (rs6000_frameless_function_invocation): Ditto.
1029         (rs6000_frame_saved_pc): Ditto.
1030         (rs6000_frame_chain): Ditto.
1031         * arch-utils.c (init_frame_pc_default): Ditto.
1032
1033 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1034
1035         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1036         Delete redundant definition.
1037
1038 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1039
1040         Import of readline 4.3:
1041         * cli/cli-cmds.c: Include readline/tilde.h.
1042         * cli/cli-setshow.c: Ditto.
1043         * defs.h: Don't declare tilde_expand anymore, since readline
1044         exports it.
1045
1046 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1047
1048         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1049         -Werror on this file.
1050
1051 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1052
1053         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1054         the format name.
1055         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1056         * gdbarch.c: Regenerate.
1057         
1058 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1059
1060         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1061         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1062         provide a default value.
1063         * gdbarch.h, gdbarch.c: Regenerate.
1064         * frame.c (get_prev_frame): Update.  Check
1065         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1066         * s390-tdep.c (s390_gdbarch_init): Update.
1067         * mips-tdep.c (mips_gdbarch_init): Update.
1068         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1069         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1070         * alpha-tdep.c (alpha_gdbarch_init): Update.
1071         
1072 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1073
1074         * ia64-linux-nat.c: Include gdb_string.h.
1075         * alpha-nat.c: Ditto.
1076         * ppc-linux-nat.c: Ditto.
1077         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1078         Update dependencies.
1079
1080 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1081
1082         * gdbthread.h: Include "frame.h".
1083         (struct thread_info): Replace step_frame_address with
1084         step_frame_id.
1085         * inferior.h: Include "frame.h".
1086         (step_frame_id): Replace external variable step_frame_address.
1087         * gdbthread.h (save_infrun_state): Replace step_frame_address
1088         parameter with step_frame_id parameter.
1089         (load_infrun_state): Ditto.
1090         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1091         * infcmd.c (step_frame_id, step_1, step_once): Update.
1092         * thread.c (load_infrun_state, save_infrun_state): Update.
1093         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1094         (handle_inferior_event, step_over_function): Update.
1095         (normal_stop, context_switch, restore_inferior_status): Update.
1096         (struct inferior_status): Replace step_frame_address with
1097         step_frame_id.
1098
1099 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1100
1101         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1102         DW_TAG_member as well as a declaration as being a C++ static data
1103         member.
1104         (read_structure_scope): Combine tests for DW_TAG_member and
1105         DW_TAG_variable.
1106
1107 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1108
1109         * linespec.c (decode_compound): New function.
1110         (decode_line_1): Move code into decode_compound.
1111
1112 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1113
1114         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1115         argument.
1116         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1117         the static block.  See PR gdb/804.
1118
1119 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1120
1121         * symtab.c (lookup_symbol_aux_block): New function.
1122         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1123
1124 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1125
1126         * gdbarch.sh: Dump the predicate function and macro values.
1127         (read): Print error on standard error.
1128         * gdbarch.c: Regenerate.
1129         
1130 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1131
1132         * Makefile.in (mips_tdep_h): Define.
1133         (mips-tdep.o): Add mips_tdep_h to dependency list.
1134         * mips-tdep.h: New file.
1135         * mips-tdep.c (mips-tdep.h): Include.
1136         (enum mips_abi): Move to mips-tdep.h.
1137         (mips_abi): New function.
1138
1139 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1140
1141         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1142
1143 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1144
1145         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1146         function.
1147         (lookup_symbol_aux_minsyms): New function.
1148
1149 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1150
1151         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1152
1153 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1154
1155         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1156         which is an obsolete macro name.
1157
1158 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1159
1160         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1161         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1162
1163 2002-12-03  H.J. Lu  (hjl@gnu.org)
1164
1165         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1166         (create_breakpoints): Make sure the addr_string field is not
1167         NULL.
1168
1169 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1170
1171         * sparc-nat.c (fetch_inferior_registers)
1172         (store_inferior_registers): Add comment on problem of LWP vs
1173         threads.
1174         
1175         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1176         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1177         (lin_lwp_store_registers): Remove.
1178         (init_lin_lwp_ops): Use fetch_inferior_registers
1179         and store_inferior_registers directly.
1180         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1181         (store_inferior_registers): Likewise.
1182         Fix PR gdb/725.
1183
1184 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1185
1186         * frame.h (get_frame_id): Convert to a function.
1187         (null_frame_id, frame_id_p): Declare.
1188         (frame_id_eq, frame_id_inner): Declare.
1189         (frame_id_build): New function.
1190         * frame.c (get_frame_id): Update.  Use null_frame_id.
1191         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1192         frame_id_inner.
1193         (null_frame_id, frame_id_p): Define.
1194         (frame_id_eq, frame_id_inner): Define.
1195         (frame_id_build): New function.
1196         * varobj.c (varobj_create): Update.
1197         (varobj_update): Update.
1198         * valops.c (value_assign): Update.
1199         (new_root_variable): Update.
1200         * infrun.c (save_inferior_status): Update.
1201         * breakpoint.c (watch_command_1): Update.
1202
1203 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1204
1205         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1206         (SNAP2): Likewise.
1207
1208 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1209
1210         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1211         patch.
1212
1213         * PROBLEMS: Mention PR gdb/725.
1214
1215 2002-12-03  Andreas Schwab  <schwab@suse.de>
1216
1217         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1218
1219 2002-12-02  Adam Fedor  <fedor@gnu.org>
1220             Klee Dienes  <kdienes@apple.com>
1221
1222         * objc-lang.c (objc_printstr): Add width arg to match
1223         printstr prototype.
1224         (compare_selectors): Add 'const' to arg types.
1225         (compare_classes): Likewise.
1226         (find_imps): Cast msym pointer to avoid compiler warning.
1227         (print_object_command): Validate the address before
1228         passing it to the print routine.
1229         (find_objc_msgcall_submethod): Change function argument to
1230         return an int.
1231         * objc-lang.h: Add 'extern' to all function declarations.
1232         (value_nsstring): Add declaration.
1233
1234 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1235
1236         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1237         Fixes a build failure on HP/UX.
1238
1239         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1240         failure on HP/UX. 
1241         (hpread_has_name): Advance declaration to avoid a compilation warning.
1242         (pst_syms_count): Add missing variable type. By change, the compiler
1243         was defaulting to int, which seems a good choice. Fixes a compilation
1244         warning.
1245         (pst_syms_size): Likewise.
1246  
1247 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1248
1249         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1250         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1251         later to set the proper gdbarch methods depending on the osabi.
1252         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1253
1254 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1255
1256         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1257         * osabi.c (gdb_osabi_name): Add strings images for the two new
1258         enum values.
1259         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1260
1261 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1262
1263         * MAINTAINERS (Java): Global maintainers are responible for Java.
1264         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1265         part Java maintainers.
1266
1267 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1268
1269         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1270         Fixes a compilation failure on AiX.
1271
1272 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1273
1274         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1275         why aix-thread.o is not listed.
1276
1277 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1278
1279         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1280         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1281         * gdbarch.h, gdbarch.c: Re-generate.
1282         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1283         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1284         * config/pa/tm-hppa.h, frame.h: Update.
1285         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1286         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1287         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1288         * cris-tdep.c, alpha-tdep.c: Update.
1289         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1290         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1291         (get_prev_frame): Ditto.
1292
1293 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1294
1295         * exec.c (xfer_memory): Replace boolean with int.
1296         * p-exp.y: Use 0 instead of false.
1297         * corelow.c (gdb_check_format): Change return type to int from
1298         boolean.
1299         * utils.c: Don't include <curses.h> or <term.h> first.
1300
1301 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1302
1303         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1304         (m68hc11_register_byte): Remove.
1305         (m68hc11_gdbarch_init): Don't set the above.
1306
1307 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1308
1309         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1310         by calling get_selected_frame.
1311         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1312         set_current_frame, create_new_frame, select_frame and
1313         get_current_frame.
1314         * remote-e7000.c (e7000_start_remote): Ditto.
1315         * remote-mips.c (common_open): Ditto
1316         * remote-rdp.c (remote_rdp_open): Ditto.
1317
1318 2002-11-29  Andreas Schwab  <schwab@suse.de>
1319
1320         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1321         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1322         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1323         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1324         read_memory_unsigned_integer instead of read_memory_integer when
1325         dealing with addresses and instruction opcodes.
1326         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1327         (m68k_linux_frame_saved_pc): Likewise.
1328
1329 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1330
1331         * stack.c (selected_frame, select_frame): Move from here ...
1332         * frame.c (selected_frame, select_frame): ... to here.  Include
1333         "language.h".
1334         * Makefile.in (frame.o): Update dependencies.
1335         * frame.c (get_selected_frame): New function.
1336         * frame.h (get_selected_frame): Declare.
1337         (deprecated_selected_frame): Rename selected_frame.
1338         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1339         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1340         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1341         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1342         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1343         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1344         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1345         * z8k-tdep.c, cli/cli-cmds.c: Update.
1346         
1347 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1348
1349         * frame.h (get_selected_block): Add comments.
1350
1351 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1352
1353         * frame.c (pc_notcurrent): New function.
1354         (find_frame_sal): New function.
1355         * frame.h (find_frame_sal): Declare.
1356         (struct symtab_and_line): Add opaque declaration.
1357         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1358         find_pc_line.
1359         (frame_info): Ditto.
1360         * ada-lang.c (find_printable_frame): Ditto.
1361
1362 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1363
1364         * configure.in: Check that the pthdebug library is recent enough
1365         before enabling thread support on native AiX.
1366         * configure: Regenerate.
1367
1368         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1369         from the list of object files as it is now appended by configure
1370         if thread support is enabled.
1371         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1372         if thread support is enabled.
1373
1374 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1375
1376         * stack.c (get_selected_block): In-line get_current_block.
1377         * frame.h (get_current_block): Delete declaration.
1378         * blockframe.c (get_current_block): Delete function.
1379
1380 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1381
1382         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1383         USE_GENERIC_DUMMY_FRAMES.
1384         * gdbarch.h, gdbarch.c: Regenerate.
1385         * valops.c, frame.c: Update.
1386         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1387         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1388         * config/pa/tm-hppa.h, blockframe.c: Update.
1389         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1390         * m68k-tdep.c, alpha-tdep.c: Ditto.
1391
1392         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1393         * mips-tdep.c: Ditto.
1394
1395 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1396
1397         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1398         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1399         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1400         * gdbarch.c, gdbarch.h: Re-generate.
1401         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1402         (CALL_DUMMY_LOCATION): Delete macro definition.
1403         (PC_IN_CALL_DUMMY): Delete macro definitions.
1404         
1405         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1406         default is already generic_pc_in_call_dummy.
1407         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1408         * v850-tdep.c (v850_gdbarch_init): Ditto.
1409         * sh-tdep.c (sh_gdbarch_init): Ditto.
1410         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1411         * mips-tdep.c (mips_gdbarch_init): Ditto.
1412         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1413         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1414         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1415         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1416         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1417         * avr-tdep.c (avr_gdbarch_init): Ditto.
1418         
1419         * arm-tdep.c (arm_gdbarch_init): Do not set
1420         use_generic_dummy_frames, default is already 1.
1421         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1422         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1423         * v850-tdep.c (v850_gdbarch_init): Ditto.
1424         * sh-tdep.c (sh_gdbarch_init): Ditto.
1425         * s390-tdep.c (s390_gdbarch_init): Ditto.
1426         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1427         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1428         * mips-tdep.c (mips_gdbarch_init): Ditto.
1429         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1430         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1431         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1432         * i386-tdep.c (i386_gdbarch_init): Ditto.
1433         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1434         * frv-tdep.c (frv_gdbarch_init): Ditto.
1435         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1436         * cris-tdep.c (cris_gdbarch_init): Ditto.
1437         * avr-tdep.c (avr_gdbarch_init): Ditto.
1438
1439         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1440         call_dummy_location, default is already AT_ENTRY_POINT.
1441         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1442         * v850-tdep.c (v850_gdbarch_init): Ditto.
1443         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1444         * sh-tdep.c (sh_gdbarch_init): Ditto.
1445         * s390-tdep.c (s390_gdbarch_init): Ditto.
1446         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1447         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1448         * mips-tdep.c (mips_gdbarch_init): Ditto.
1449         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1450         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1451         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1452         * i386-tdep.c (i386_gdbarch_init): Ditto.
1453         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1454         * frv-tdep.c (frv_gdbarch_init): Ditto.
1455         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1456         * cris-tdep.c (cris_gdbarch_init): Ditto.
1457         * avr-tdep.c (avr_gdbarch_init): Ditto.
1458         * arm-tdep.c (arm_gdbarch_init): Ditto.
1459         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1460
1461 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1462
1463         * frame.h: Update comments on set_current_frame, create_new_frame,
1464         flush_cached_frames, reinit_frame_cache, select_frame and
1465         selected_frame.
1466         
1467 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1468
1469         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1470         deprecated pc_in_call_dummy function.
1471         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1472         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1473         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1474         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1475         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1476
1477 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1478
1479         * Makefile.in: Remove Tix dependencies.
1480         * acinclude.m4: Ditto.
1481         * aclocal.m4: Ditto.
1482         * configure.in: Ditto.
1483         * configure: Regenerated.
1484         
1485 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1486
1487         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1488         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1489         * gdbarch.c: Re-generate.
1490         
1491 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1492
1493         * config/h8500/tm-h8500.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/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1497         pc_in_call_dummy_at_entry_point.
1498         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1499         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1500         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1501         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1502         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1503         pc_in_call_dummy_on_stack.
1504         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1505         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1506         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1507         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1508         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1509         
1510 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1511
1512         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1513         pc_in_call_dummy_before_text_end
1514         (deprecated_pc_in_call_dummy_after_text_end): Rename
1515         pc_in_call_dummy_after_text_end.
1516         (deprecated_pc_in_call_dummy_on_stack): Rename
1517         pc_in_call_dummy_on_stack.
1518         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1519         pc_in_call_dummy_at_entry_point.
1520         * m68k-tdep.c (m68k_gdbarch_init): Update.
1521         * s390-tdep.c (s390_gdbarch_init): Update.
1522         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1523         * vax-tdep.c (vax_gdbarch_init): Update.
1524         * sparc-tdep.c (sparc_gdbarch_init): Update.
1525         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1526         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1527         * i386-tdep.c (i386_gdbarch_init): Update.
1528         * frv-tdep.c (frv_gdbarch_init): Update.
1529         * cris-tdep.c (cris_gdbarch_init): Update.
1530         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1531         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1532         (deprecated_pc_in_call_dummy_after_text_end)
1533         (deprecated_pc_in_call_dummy_on_stack)
1534         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1535         * alpha-tdep.c (alpha_gdbarch_init): Update.
1536
1537 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1538
1539         * acconfig.h (HAVE_PREAD64): Add.
1540         * configure.in: Check for pread64.
1541         * config.in: Regenerated.
1542         * configure: Regenerated.
1543         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1544         * linux-proc.c (linux_proc_xfer_memory): New function.
1545         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1546
1547 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1548
1549         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1550         pdi's with no name.
1551
1552 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1553
1554         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1555         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1556
1557 2002-11-25  Jim Blandy  <jimb@redhat.com>
1558
1559         * symfile.c (init_objfile_sect_indices): New function.
1560         (default_symfile_offsets): Move the section-index-initializing
1561         stuff into init_objfile_sect_indices, and call that.
1562
1563         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1564         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1565
1566         * symfile.c (syms_from_objfile): Adjust indentation.
1567
1568         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1569         || info_verbose isn't true.
1570
1571 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1572
1573         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1574         default to get_frame_base.
1575         * gdbarch.h, gdbarch.c: Regenerate.
1576         * arch-utils.c (default_frame_address): Delete function.
1577         * arch-utils.h (default_frame_address): Delete declaration
1578
1579 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1580
1581         * varobj.c (find_frame_addr_in_frame_chain):
1582         Use get_frame_base instead of FRAME_FP,
1583         obvious fix.
1584
1585 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1586
1587         * frame.h (FRAME_FP): Delete macro.
1588         (get_frame_base): New function declaration.
1589         * frame.c (get_frame_base): New function.
1590         (get_frame_id): Use ->frame.
1591         (frame_find_by_id): Rewrite to use get_frame_id.
1592         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1593         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1594         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1595         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1596         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1597         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1598         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1599
1600 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1601
1602         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1603
1604 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1605
1606         * frame.c (set_unwind_by_pc): Revert change below, use
1607         PC_IN_CALL_DUMMY.
1608         (get_prev_frame): Ditto.
1609
1610 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1611
1612         * dummy-frame.c (pc_in_dummy_frame): New function.
1613         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1614         (find_dummy_frame): Update comment.
1615         (generic_pop_current_frame): Use get_frame_type.
1616         * dummy-frame.h (pc_in_dummy_frame): Declare.
1617         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1618         (create_new_frame): Use pc_in_dummy_frame.
1619         (get_prev_frame): Use pc_in_dummy_frame.
1620         (frame_saved_regs_register_unwind): Use get_prev_frame.
1621         (deprecated_generic_get_saved_register): Use get_prev_frame.
1622
1623 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1624
1625         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1626         from here ...
1627         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1628         (varobj_create): Note that frame ID should be used.
1629         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1630
1631 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1632
1633         * breakpoint.c: Include "gdb_assert.h".
1634         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1635         not being used.
1636         * Makefile.in (breakpoint.o): Update dependencies.
1637         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1638         deprecated_frame_in_dummy.
1639         * stack.c (print_frame_info_base): Ditto.
1640         (frame_info): Ditto.
1641         (print_frame_info_base): Ditto.  Delete dead code.
1642         
1643 2002-11-23  Andreas Schwab  <schwab@suse.de>
1644
1645         * Makefile.in (m68k_tdep_h): Define.
1646         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1647         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1648         * m68k-tdep.c: Move register number enum ...
1649         * m68k-tdep.h: ... to this new file and rename the constants from
1650         E_* to M68K_*.  All uses changed.
1651         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1652         * abug-rom.c: Include "m68k-tdep.h".  Use
1653         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1654         * cpu32bug-rom.c: Likewise.
1655         * dbug-rom.c: Likewise.
1656         * m68k-tdep.c: Likewise.
1657         * m68klinux-nat.c: Likewise.
1658         * remote-est.c: Likewise.
1659         * rom68k-rom.c: Likewise.
1660         * config/m68k/tm-linux.h: Likewise.
1661
1662 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1663
1664         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1665         dummy frame initialization code.
1666         * mips-tdep.c (mips_gdbarch_init): Ditto.
1667
1668 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1669
1670         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1671         attach will hang.
1672
1673 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1674
1675         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1676         to default_frame_address.
1677         * gdbarch.h, gdbarch.c: Re-generate.
1678
1679         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1680         or frame_locals_address to default_frame_address.
1681         * m68k-tdep.c (m68k_gdbarch_init): Update.
1682         * i386-tdep.c (i386_gdbarch_init): Update.
1683         * frv-tdep.c (frv_gdbarch_init): Update.
1684         * sh-tdep.c (sh_gdbarch_init): Update.
1685         * v850-tdep.c (v850_gdbarch_init): Update.
1686         * sparc-tdep.c (sparc_gdbarch_init): Update.
1687         * mips-tdep.c (mips_gdbarch_init): Update.
1688         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1689         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1690         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1691
1692         * cris-tdep.c (cris_frame_args_address): Delete function.
1693         (cris_frame_locals_address): Delete function.
1694         (cris_gdbarch_init): Do not set frame_args_address or
1695         frame_locals_address.
1696
1697 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1698
1699         * thread-db.c (thread_db_load): Tell the user what's going on
1700         if dlopen fails on libthread_db.
1701
1702 2002-11-23  Andreas Schwab  <schwab@suse.de>
1703
1704         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1705         invariant return values.
1706
1707 2002-11-22  Andreas Schwab  <schwab@suse.de>
1708
1709         * valops.c (value_slice): Move declaration of `offset' to avoid
1710         warning.
1711
1712 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1713
1714         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1715         (struct so_stuff): Add end_addr field.
1716         (register_loaded_dll): Calculate and store end address of loaded dll.
1717         (solib_address): New function.
1718         (child_solib_loaded_library_pathname): Pass carefully constructed
1719         section info to safe_symbol_file_add rather than ignoring it.
1720         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1721         DLL is loaded.
1722         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1723         (child_create_inferior): Fix a compiler warning.
1724         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1725         (solib_address): Declare new function.
1726
1727 2002-11-22  Andreas Schwab  <schwab@suse.de>
1728
1729         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1730         and FPS registers.
1731
1732 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1733
1734         * maint.c (_initialize_maint_cmds): Fix typo.  From
1735         Francesco Potorti` <pot@gnu.org>.
1736
1737 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1738
1739         * mips-tdep.c (mips_dump_tdep): Delete references to
1740         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1741         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1742         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1743         * printcmd.c (build_address_symbolic): Delete calls to
1744         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1745         (address_info): Ditto.
1746         Fix PR gdb/773.
1747         
1748 2002-11-19  Klee Dienes  <kdienes@apple.com>
1749             Adam Fedor  <fedor@gnu.org>
1750
1751         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1752         the ability to explicitly specify the quote characters and word
1753         break characters; if NULL is specified for either, use the old
1754         behavior of using the characters used by the completer.
1755         (skip_chars): New function.  Convenience wrapper around
1756         skip_quoted_chars to provide the original skip_chars behavior.
1757         * completer.h (skip_quoted_chars): Add prototype.
1758
1759 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1760
1761         Problems reported by Paul Eggert.
1762         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1763
1764 2002-11-19  Andreas Schwab  <schwab@suse.de>
1765
1766         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1767         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1768         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1769         (m68k_linux_frame_saved_pc): Move to ...
1770         * m68klinux-tdep.c: ... here.  New file.
1771         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1772         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1773
1774 2002-11-19  Adam Fedor  <fedor@gnu.org>
1775
1776         * objc-exp.y: Revert to old skip_quoted usage.
1777
1778 2002-11-19  Adam Fedor  <fedor@gnu.org>
1779
1780         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1781         (objc_lang_h): Define.
1782         (YYFILES): Add objc-exp.tab.c.
1783         (local-maintainer-clean): Remove objc-exp.tab.c.
1784         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1785         
1786 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1787
1788         * p-exp.y (typecast rule): Add automatic dereference of
1789         pascal classes if needed.
1790         (THIS): Set current_type.
1791         Automatically dereference pascal classes. 
1792         (typebase rule): Add ^typebase recognition.
1793
1794 2002-11-18  Adam Fedor  <fedor@gnu.org>
1795
1796         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1797         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1798         (op_name): Handle OP_OBJC_SELF.
1799         * Makefile.in (expprint.o): Add additional depends.
1800
1801 2002-11-18  Adam Fedor  <fedor@gnu.org>
1802
1803         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1804         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1805         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1806         * objc-exp.y: Likewise. 
1807
1808 2002-11-18  Adam Fedor  <fedor@gnu.org>
1809
1810         * gdb/parser-defs.h: (struct objc_class_str): New structure
1811         for parsing ObjC classes.
1812
1813 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1814
1815         * stack.c (frame_relative_level): Copy function from here ...
1816         * frame.c (frame_relative_level): ...to here.
1817
1818 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1819
1820         * frame.h (enum frame_type): Define.
1821         (get_frame_type): Declare.
1822         (struct frame_info): Add field `type'.  Delete field
1823         signal_handler_caller.
1824         (deprecated_set_frame_signal_handler_caller): Declare.
1825         * frame.c (get_frame_type): New function.
1826         (deprecated_set_frame_type): New function.
1827         (create_new_frame): Set the frame's type.
1828         (get_prev_frame): Similar.
1829         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1830         * s390-tdep.c: Ditto.
1831         * m68klinux-nat.c: Ditto.
1832         * ns32k-tdep.c: Ditto.
1833         * x86-64-linux-tdep.c: Ditto.
1834         * vax-tdep.c: Ditto.
1835         * rs6000-tdep.c: Ditto.
1836         * ppc-linux-tdep.c: Ditto.
1837         * i386-interix-tdep.c: Ditto.
1838         * mips-tdep.c: Ditto.
1839         * m68k-tdep.c: Ditto.
1840         * hppa-tdep.c: Ditto.
1841         * ia64-tdep.c: Ditto.
1842         * cris-tdep.c: Ditto.
1843         * arm-tdep.c: Ditto.
1844         * alpha-tdep.c: Ditto.
1845         * i386-tdep.c: Ditto.
1846         * stack.c: Ditto.
1847         * ada-lang.c: Ditto.
1848         * blockframe.c: Update.
1849         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1850         deprecated_set_frame_type instead of signal_handler_caller.
1851         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1852         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1853         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1854
1855 2002-11-18   Klee Dienes  <kdienes@apple.com>
1856
1857         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1858
1859 2002-11-18  Klee Dienes  <kdienes@apple.com>
1860
1861         * buildsym.c (pop_context): Add comment.
1862         
1863 2002-11-18  Klee Dienes  <kdienes@apple.com>
1864
1865         * buildsym.h (pop_context): Convert to function, defined in
1866         buildsym.c.
1867         * buildsym.c: Include gdb_assert.h.
1868         (pop_context): Implement as C function.  Add check for stack
1869         underflow.
1870         * dbxread.c (process_one_symbol): Complain and stop processing
1871         that symbol if we are already at the top of the context stack for
1872         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1873         when processing N_RBRAC.
1874
1875 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1876
1877         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1878         define.
1879         (struct target_waitstatus): Add opaque definition.
1880         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1881         * exec.c (init_exec_ops): Likewise.
1882         * fork-child.c (clone_and_follow_inferior): Remove.
1883         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1884         * inferior.h (clone_and_follow_inferior): Remove prototype.
1885         * infrun.c (follow_fork_mode_both): Remove.
1886         (follow_fork_mode_kind_names): Remove commented out "both".
1887         (follow_inferior_fork): Remove follow_fork_mode_both support.
1888         * inftarg.c (child_clone_and_follow_inferior): Remove.
1889         (child_post_follow_inferior_by_clone): Remove.
1890         (init_child_ops): Don't set to_clone_and_follow_inferior
1891         or to_post_follow_inferior_by_clone.
1892         * target.c (default_clone_and_follow_inferior): Remove.
1893         (cleanup_target): Don't set to_clone_and_follow_inferior
1894         or to_post_follow_inferior_by_clone.
1895         (find_default_clone_and_follow_inferior): Remove.
1896         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1897         (debug_to_clone_and_follow_inferior): Remove.
1898         (debug_to_post_follow_inferior_by_clone): Remove.
1899         (setup_target_debug): Don't set to_clone_and_follow_inferior
1900         or to_post_follow_inferior_by_clone.
1901         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1902         and to_post_follow_inferior_by_clone.
1903         (child_clone_and_follow_inferior): Remove prototype.
1904         (child_post_follow_inferior_by_clone): Remove prototype.
1905         (target_clone_and_follow_inferior): Remove macro.
1906         (target_post_follow_inferior_by_clone): Remove macro.
1907         (find_default_clone_and_follow_inferior): Remove prototype.
1908
1909 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1910
1911         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1912         inferior_has_vforked, and inferior_has_execd instead of
1913         target_has_forked, target_has_vforked, and target_has_execd.
1914         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1915         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1916         (CHILD_WAIT): Define.
1917         (child_wait): Add prototype.
1918         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1919         Add prototype.
1920         (hpux_has_vforked): Likewise, from child_has_vforked.
1921         (hpux_has_execd): Likewise, from child_has_execd.
1922         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1923         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1924         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1925         and hpux_has_syscall_event instead of the target hooks.
1926         * infrun.c (inferior_has_forked, inferior_has_vforked)
1927         (inferior_has_execd): New functions.
1928         * inftarg.c (not_same_real_pid): Remove.
1929         (child_wait): Remove references to not_same_real_pid,
1930         target_has_forked, target_has_vforked, target_has_execd,
1931         and target_has_syscall_event.
1932         (child_has_forked, child_has_vforked, child_has_execd)
1933         (child_has_syscall_event): Remove.
1934         (init_child_ops): Remove references to child_has_forked,
1935         child_has_vforked, child_has_execd, and child_has_syscall_event.
1936         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1937         (hpux_has_vforked): Likewise, from child_has_vforked.
1938         (hpux_has_execd): Likewise, from child_has_execd.
1939         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1940         * target.c (cleanup_target): Remove references to
1941         to_has_forked, to_has_vforked, to_has_execd, and
1942         to_has_syscall_event.
1943         (update_current_target): Likewise.
1944         (setup_target_debug): Likewise.
1945         (debug_to_has_forked): Remove.
1946         (debug_to_has_vforked): Remove.
1947         (debug_to_has_execd): Remove.
1948         (debug_to_has_syscall_event): Remove.
1949         * target.h (struct target_ops): Remove to_has_forked.
1950         to_has_vforked, to_has_execd, and to_has_syscall_event.
1951         (child_has_forked, child_has_vforked, child_has_execd)
1952         (child_has_syscall_event): Remove prototypes.
1953         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1954         prototypes.
1955         (target_has_forked, target_has_vforked, target_has_execd)
1956         (target_has_syscall_event): Remove macros.
1957
1958 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1959
1960         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1961         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1962         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1963         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1964         * target.c (cleanup_target): Remove reference to
1965         to_can_follow_vfork_prior_to_exec.
1966         (update_current_target): Likewise.
1967         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1968         (setup_target_debug): Remove reference to
1969         to_can_follow_vfork_prior_to_exec.
1970         * target.h (struct target_ops): Remove
1971         to_can_follow_vfork_prior_to_exec.
1972         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1973         (target_can_follow_vfork_prior_to_exec): Remove definition.
1974         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1975         define.
1976         * infrun.c (follow_vfork_when_exec): Remove.
1977         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1978         (follow_exec): Likewise.
1979         (handle_inferior_event): Likewise.
1980         (keep_going): Likewise.
1981
1982 2002-11-15  Andrew Cagney  <cagney@redhat.com>
1983
1984         * frame.c (generic_unwind_get_saved_register): Make static.
1985         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1986         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1987         defaults to generic_unwind_get_saved_register.
1988         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1989         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1990         * frv-tdep.c (frv_gdbarch_init): Ditto.
1991         * i386-tdep.c (i386_gdbarch_init): Ditto.
1992         * s390-tdep.c (s390_gdbarch_init): Ditto.
1993         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1994         * v850-tdep.c (v850_gdbarch_init): Ditto.
1995         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1996         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1997         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1998
1999 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2000
2001         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2002         i386-tdep.c.
2003
2004 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2005
2006         * frame.h (sigtramp_saved_pc): Delete declaration.
2007         * blockframe.c (sigtramp_saved_pc): Delete function.
2008         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2009         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2010         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2011         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2012
2013 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2014
2015         * frame.c (frame_pc_unwind): New function.
2016         (frame_saved_regs_pc_unwind): New function.
2017         (frame_register_unwind): Pass unwind_cache instead of
2018         register_unwind_cache.
2019         (set_unwind_by_pc): Add unwind_pc parameter, set.
2020         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2021         (get_prev_frame): Ditto.
2022         * frame.h (frame_pc_unwind_ftype): Declare.
2023         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2024         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2025         (frame_pc_unwind): Declare.
2026         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2027         (struct dummy_frame): Add comment mentioning that values are for
2028         previous frame.
2029         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2030         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2031         (generic_file_frame_chain_valid): Ditto.
2032         * stack.c (frame_info): Ditto.
2033
2034 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2035
2036         * linespec.c (locate_first_half): New function.
2037         (decode_line_1): Move code into locate_first_half.
2038
2039 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2040
2041         * complaints.h: Add comment explaining how to eliminate a
2042         deprecated_complain call.
2043         * complaints.h: Fix spelling errors.
2044
2045 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2046
2047         * printcmd.c: Remove #include "disasm.h".
2048
2049 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2050
2051         * frame.h: Move the most relevant interface functions to the start
2052         of the file.
2053
2054 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2055
2056         * regcache.h (deprecated_registers): Rename registers.
2057         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2058         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2059         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2060         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2061         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2062         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2063         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2064         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2065         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2066         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2067         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2068         * v850ice.c: Update.
2069
2070 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2071
2072         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2073         NULL buffer.
2074
2075 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2076
2077         * regcache.h (deprecated_read_register_bytes): Rename
2078         read_register_bytes.
2079         (deprecated_write_register_bytes): Rename write_register_bytes.
2080         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2081         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2082         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2083         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2084         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2085         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2086         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2087         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2088         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2089         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2090         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2091         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2092         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2093         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2094
2095 2002-11-13  Jim Blandy  <jimb@redhat.com>
2096
2097         * findvar.c (read_var_value): Doc fix.
2098
2099 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2100
2101         * regcache.c (struct regcache): Replace passthough_p with
2102         readonly_p.
2103         (regcache_xmalloc): Initialize readonly_p.
2104         (build_regcache): Initialize readonly_p.
2105         (regcache_save): New function.
2106         (regcache_restore): New function.
2107         (regcache_cpy): Re-implement using regcache_save and
2108         regcache_restore.
2109         (regcache_raw_read): Update.
2110         (regcache_cooked_read): When a read-only cache, checked for cached
2111         pseudo register values.
2112         (regcache_raw_write): Assert that the cache is not read-only.
2113         Remove code handling a non-passthrough cache.
2114         * regcache.h (regcache_save): Declare.
2115         (regcache_restore): Declare.
2116
2117 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2118
2119         * regcache.c (struct regcache_descr): Add fields
2120         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2121         (init_legacy_regcache_descr): Compute the size of a cooked
2122         register cache and then assign that to sizeof_raw_registers.  Set
2123         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2124         (init_legacy_regcache_descr): Ditto.
2125
2126 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2127
2128         * regcache.c (register_buffer): Move to near start of file, update
2129         description.
2130         (regcache_raw_read): Use.
2131         (regcache_raw_write): Use.
2132         (struct regcache): Rename raw_registers to registers and
2133         raw_register_valid_p to register_valid_p.
2134         (regcache_xmalloc): Update.
2135         (regcache_xfree): Update.
2136         (register_buffer): Update.
2137         (regcache_cpy): Update.
2138         (regcache_cpy_no_passthrough): Update.
2139         (regcache_valid_p): Update.
2140         (deprecated_grub_regcache_for_registers): Update.
2141         (deprecated_grub_regcache_for_register_valid): Update.
2142         (set_register_cached): Update.
2143         (regcache_raw_write): Update.
2144
2145 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2146
2147         * p-exp.y (name_not_typename): Use copy_name to
2148         set current_type variable for fields of THIS.
2149
2150 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2151
2152         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2153         * monitor.c (init_base_monitor_ops): Likewise.
2154         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2155         * remote-array.c (init_array_ops): Likewise.
2156         * remote-e7000.c (init_e7000_ops): Likewise.
2157         * remote-es.c (init_es1800_ops): Likewise.
2158         (init_es1800_child_ops): Likewise.
2159         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2160         * remote-sim.c (init_gdbsim_ops): Likewise.
2161         * remote-st.c (init_st2000_ops): Likewise.
2162         * sol-thread.c (init_sol_core_ops): Likewise.
2163         (init_sol_thread_ops): Likewise.
2164         * v850ice.c (init_850ice_ops): Likewise.
2165         * win32-nat.c (init_child_ops): Likewise.
2166         * wince.c (init_child_ops): Likewise.
2167
2168 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2169
2170         * utils.c (gdb_realpath): Make rp a constant pointer.
2171
2172 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2173
2174         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2175         a constant buffer; cannonicalize_file_name(); realpath() with a
2176         pathconf() defined buffer, xstrdup().
2177
2178 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2179
2180         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2181         to hang2.C; hang3.c to hang3.C.
2182
2183 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2184
2185         * findvar.c (read_var_value): Reenable TLS code.
2186
2187 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2188             Jim Blandy  <jimb@redhat.com>
2189         
2190         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2191         * target.c (update_current_target): Add
2192         to_get_thread_local_address.
2193         * target.h (to_get_thread_local_address): Export.
2194         (target_get_thread_local_address): Define.
2195         (target_get_thread_local_address_p): Define.
2196         * thread-db.c: Include solib-svr4.h.
2197         (td_thr_tls_get_addr_p): Define.
2198         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2199         (thread_db_get_thread_local_address): New function.
2200         (init_thread_db_ops): Initialize to_get_thread_local_address.
2201         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2202         * configure: Regenerate.
2203         * config.in: Regenerate.
2204
2205 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2206
2207         * linespec.c (set_flags): New function.
2208         (decode_line_1): Move code into set_flags.
2209
2210 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2211
2212         * linespec.c (decode_line_1): Move chunks of code to separate
2213         functions.
2214         (initialize_defaults): New function.
2215         (decode_indirect): New function.
2216
2217 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2218
2219         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2220         instead of void_code_ptr.
2221         (sigtramp_saved_pc): Ditto.
2222
2223         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2224         i386_fp_regnum_p.
2225
2226 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2227
2228         * gdbtypes.h (struct main_type): Move artificial flag out of
2229         loc.  New member of ``struct field'' named static_kind.  Reduce
2230         overloaded meaning of bitsize.
2231         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2232         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2233         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2234
2235         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2236         new fields.
2237         (template_to_fixed_record_type, template_to_static_fixed_type)
2238         (to_record_with_fixed_variant_part): Likewise.
2239         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2240         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2241         * dwarfread.c (struct_type, enum_type): Likewise.
2242         * hpread.c (hpread_read_enum_type)
2243         (hpread_read_function_type, hpread_read_doc_function_type)
2244         (hpread_read_struct_type): Likewise.
2245         * mdebugread.c (parse_symbol): Likewise.
2246
2247 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2248
2249         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2250         * stack.c (print_frame_info_base): Update.
2251         (print_frame_info_base, frame_info): Update.
2252         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2253         (sparc_frame_saved_pc): Update.
2254         * ada-lang.c (find_printable_frame): Update.
2255         * breakpoint.c (deprecated_frame_in_dummy): Update.
2256         
2257 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2258
2259         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2260         defined.
2261         (regmap): Extend to cover all registers.
2262         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2263         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2264         definitions.
2265         (fetch_register, sore_register): Simplify.
2266         (old_fetch_inferior_registers, old_store_inferior_registers):
2267         Remove functions.
2268         (cannot_fetch_register, cannot_store_register): Change
2269         implementation to use regmap array to decide which registers
2270         cannot be fetched/stored.  This removes $orig_eax from the
2271         registers that cannot be fetched/stored.
2272         (fetch_inferior_registers): Call fetch_register directly instead
2273         of calling old_fetch_inferior_registers.
2274         (store_inferior_registers): Call store_register directly instead
2275         of calling old_store_inferior_registers.
2276         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2277         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2278         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2279
2280 2002-11-09  Klee Dienes  <kdienes@apple.com>
2281
2282         * i387-tdep.c (i387_supply_register): When called with NULL as a
2283         buffer, mark the register as not provided (to mirror the behavior
2284         of supply_register).
2285         (i387_supply_fxsave): Ditto.
2286         (i387_supply_fsave): Ditto (inherits the behavior from
2287         i387_supply_register).
2288
2289 2002-11-09  Klee Dienes  <kdienes@apple.com>
2290
2291         * blockframe.c (sigtramp_saved_pc): Use
2292         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2293         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2294         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2295         
2296 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2297
2298         * frame.c (get_prev_frame): Test prev_p to identify a previously
2299         unwound frame.  Initialize prev_p.
2300         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2301         comment.
2302
2303 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2304
2305         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2306         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2307         more comments.  Zap dead code.
2308
2309 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2310
2311         * infcmd.c (print_vector_info, print_float_info): Move code that
2312         checks whether the target has any registers and whether there is a
2313         selected frame up, such that it is also used if a target provides
2314         multi-arch definitions of these functions.
2315
2316 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2317
2318         * Makefile.in (DESTDIR): Define.
2319         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2320         prefix.
2321
2322         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2323         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2324
2325 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2326
2327         * i386-linux-tdep.c: Include "reggroups.h".
2328         (i386_linux_register_reggroup_p): New function.
2329         (i386_linux_init_abi): Set register_reggroup_p to
2330         i386_linux_register_reggroup_p.
2331         * i386-tdep.h (i386_register_reggroup_p): Declare.
2332         * i386-tdep.c: Include "reggroups.h".
2333         (i386_init_reggroups): New function.
2334         (i386_add_reggroups): New function.
2335         (i386_register_reggroup_p): New function.
2336         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2337         (_initialize_i386_tdep): Call i386_init_reggroups.
2338         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2339         specific reggroups.
2340
2341 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2342
2343         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2344         request that's available in *BSD.
2345
2346         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2347
2348         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2349         FDOFF_REGNUM.
2350
2351 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2352
2353         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2354         * dummy-frame.c (find_dummy_frame): Rename
2355         generic_find_dummy_frame, make static.  Return the dummy frame
2356         instead of the regcache.
2357         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2358         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2359         (dummy_frame_register_unwind): Rename
2360         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2361         * dummy-frame.h (dummy_frame_register_unwind): Rename
2362         generic_call_dummy_register_unwind.
2363
2364 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2365
2366         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2367         except the inclusion of "i386/tm-i386.h", to...
2368         * config/i386/nm-i386v42mp.h: ...here.
2369         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2370
2371 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2372
2373         * Makefile.in (frame.o): Update dependencies.
2374         * blockframe.c (current_frame, frame_obstack_alloc)
2375         (frame_saved_regs_zalloc, get_current_frame)
2376         (set_current_frame, create_new_frame)
2377         (set_unwind_by_pc, get_next_frame)
2378         (flush_cached_frames, reinit_frame_cache)
2379         (frame_saved_regs_register_unwind)
2380         (deprecated_generic_get_saved_register)
2381         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2382         (_initialize_blockframe): Move frame code from here...
2383         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2384         "annotate.h" and "dummy-frame.h".
2385         (_initialize_frame): New function.
2386
2387 2002-11-08  Jim Blandy  <jimb@redhat.com>
2388
2389         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2390         when we finish a function a context.
2391         * buildsym.h (outermost_context_p): New macro.
2392         (Bug analyzed by David Edelsohn.)
2393
2394 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2395
2396         * blockframe.c: Include "dummy-frame.h".
2397         (struct dummy_frame, dummy_frame_stack)
2398         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2399         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2400         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2401         (generic_save_call_dummy_addr, generic_pop_current_frame)
2402         (generic_pop_dummy_frame, generic_fix_call_dummy)
2403         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2404         dummy frame code from here...
2405         * dummy-frame.c: ...to here.  New file.
2406         * dummy-frame.h: New file.
2407         (generic_call_dummy_register_unwind): Declare.
2408         (generic_find_dummy_frame): Declare.
2409         * Makefile.in (SFILES): Add dummy-frame.c.
2410         (dummy-frame.o): Specify dependencies.
2411         (dummy_frame_h): Define.
2412         (COMMON_OBS): Add dummy-frame.o.
2413         (blockframe.o): Update dependencies.
2414
2415 2002-11-08  Jim Blandy  <jimb@redhat.com>
2416
2417         * dwarf2read.c (read_func_scope): Restore local_symbols and
2418         param_symbols after we finish the function context.  (Based on a
2419         patch from David Edelsohn.)
2420
2421 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2422
2423         * linespec.c (symbol_found): New function.
2424         (minsym_found): New function.
2425         (decode_line_1): Separate out some code into separate functions.
2426
2427 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2428
2429         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2430         the benefit of the interix target.
2431         * i386-tdep.h (i386_frameless_signal_p): Declare.
2432
2433 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2434
2435         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2436         declaration that snuck in from change below.
2437
2438 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2439
2440         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2441         all callers.
2442         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2443         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2444         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2445         (i386_mxcsr_regnum_p): new function.  Use instead of
2446         MXCSR_REGNUM_P.
2447         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2448         (i386_sse_regnum_p): Declare.
2449         (i386_mxcsr_regnum_p): Declare.
2450         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2451         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2452         (IS_FP_REGNUM): Update definition.
2453         (IS_FPU_CTRL_REGNUM): Update definition..
2454         (IS_SSE_REGNUM): Update definition..
2455         * i386v-nat.c (register_u_addr): Update.
2456         * go32-nat.c (fetch_register): Update.
2457         (store_register): Update.
2458
2459 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2460
2461         Preparation work to convert the hppa targets to multiarch partial.
2462
2463         * hppa-tdep.c: Add new functions replacing macro bodies from
2464         config/pa/tm-hppa.h. These function will be used to initialize
2465         the gdbarch structure. Import some comments from tm-hppa.h,
2466         and place them where appropriate, to avoid loosing them when
2467         we cleanup this file.
2468         (hppa_reg_struct_has_addr): New function.
2469         (hppa_inner_than): New function.
2470         (hppa_stack_align): New function.
2471         (hppa_pc_requires_run_before_use): New function.
2472         (hppa_instruction_nullified): New function.
2473         (hppa_register_byte): New function.
2474         (hppa_register_virtual_type): New function.
2475         (hppa_store_struct_return): New function.
2476         (hppa_cannot_store_register): New function.
2477         (hppa_frame_args_address): New function.
2478         (hppa_frame_locals_address): New function.
2479         (hppa_smash_text_address): New function.
2480         (hppa_coerce_float_to_double): New function. Requires the inclusion
2481         of "language.h".
2482
2483         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2484
2485         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2486         gdbarch-eligible macro to a call to the new associated function
2487         created in hppa-tdep.c.
2488         (INNER_THAN): Likewise.
2489         (STACK_ALIGN): Likewise.
2490         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2491         (INSTRUCTION_NULLIFIED): Likewise.
2492         (REGISTER_BYTE): Likewise.
2493         (REGISTER_VIRTUAL_TYPE): Likewise.
2494         (STORE_STRUCT_RETURN): Likewise.
2495         (CANNOT_STORE_REGISTER): Likewise.
2496         (FRAME_ARGS_ADDRESS): Likewise.
2497         (FRAME_LOCALS_ADDRESS): Likewise.
2498         (SMASH_TEXT_ADDRESS): Likewise.
2499         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2500         (ABOUT_TO_RETURN): Delete, as no longer used.
2501
2502 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2503
2504         * printcmd.c (disassemble_command): Remove obsolete function.
2505         (_initialize_printcmd): Do not create disassemble command here.
2506         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2507         disassemble command.
2508         (init_cli_cmds): Create disassemble command here instead.
2509
2510 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2511
2512         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2513
2514 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2515
2516         * regcache.h (regcache_cooked_read_using_offset_hack)
2517         (regcache_cooked_write_using_offset_hack): Delete declarations.
2518         (register_changed): Delete declaration.
2519         * regcache.c (regcache_cooked_read_using_offset_hack)
2520         (regcache_cooked_write_using_offset_hack): Delete functions.
2521         (cooked_xfer_using_offset_hack): Delete function.
2522         (register_changed): Delete function.
2523
2524 2002-11-07  Jim Blandy  <jimb@redhat.com>
2525
2526         * macroscope.c: #include "complaints.h".
2527         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2528         but not in the macro table.
2529         * Makefile.in (macroscope.o): Record dependency.
2530
2531 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2532
2533         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2534
2535 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2536
2537         * regcache.c (deprecated_registers_fetched): Update.
2538         * regcache.h (deprecated_registers_fetched): Rename
2539         registers_fetched.
2540         * remote-vxsparc.c (vx_read_register): Update.
2541         * remote-vxmips.c (vx_read_register): Update.
2542         * remote-vx68.c (vx_read_register): Update.
2543         * irix5-nat.c (fetch_core_registers): Update.
2544         * mipsm3-nat.c (fetch_inferior_registers): Update.
2545         * sun3-nat.c (fetch_inferior_registers): Update.
2546         * symm-nat.c (fetch_inferior_registers): Update.
2547         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2548         (fetch_core_registers): Update.
2549         (fetch_kcore_registers): Update.
2550         * mips-nat.c (fetch_inferior_registers): Update.
2551         * corelow.c (get_core_registers): Update.
2552         * a68v-nat.c (fetch_inferior_registers): Update.
2553
2554 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2555
2556         Put in place the framework necessary for multiarching the hppa targets.
2557         * hppa-tdep.c (hppa_gdbarch_init): New function.
2558         (hppa_dump_tdep): New function.
2559         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2560         tdep structure dumper.
2561         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2562         until the multi-arching conversion has partially been completed.
2563
2564 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2565
2566         * valops.c (value_assign): Merge lval_register case into
2567         lval_reg_frame_relative.  Use frame_register and
2568         regcache_cooked_write instead of get_saved_register and
2569         write_register_bytes.  After flushing the register cache, try to
2570         re-select the selected frame.
2571
2572 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2573
2574         * regcache.h (deprecated_register_valid): Rename register_valid.
2575         * regcache.c: Update.
2576         * ia64-aix-nat.c: Update.
2577         * i386gnu-nat.c: Update.
2578         * alpha-nat.c: Update.
2579         * sparc-nat.c: Update.
2580         * lynx-nat.c: Update.
2581         * remote-mips.c: Update.
2582
2583 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2584
2585         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2586         to end of file, to be more consistent with the pratice followed
2587         by other targets.
2588
2589 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2590
2591         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2592         (print_float_info): Print registers in float_reggroup.
2593         (print_vector_info): Print registers in vector_reggroup.
2594         (default_print_registers_info): When all, print registers in
2595         all_reggroup.  Otherwize, print registers in general_reggroup.
2596         (registers_info): Rewrite.  Add support for register groups.
2597         Eliminate a goto.
2598
2599 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2600
2601         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2602         ages.
2603         (symtab_symbol_info): Remove eons old ifdeffed out code.
2604         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2605         command.
2606
2607 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2608
2609         * c-exp.y: Add missing semi-colons.
2610         * f-exp.y: Add missing semi-colons.
2611         * m2-exp.y: Add missing semi-colons.
2612         * p-exp.y: Add missing semi-colons.
2613         Add empty action to start rule to avoid a type clash error when
2614         building with bison >= 1.50.
2615
2616 2002-11-06  Jim Blandy  <jimb@redhat.com>
2617
2618         * macrotab.h (struct macro_source_file): Doc fix.
2619
2620 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2621
2622         * varobj.c (child_exists, cplus_number_of_children): Change
2623         STREQ macro references to strcmp.
2624         (cplus_name_of_child): Change code to handle the fact that
2625         fields are not necessarily contiguous with regards to their 
2626         access control. This is a fix for PR gdb/792.
2627
2628 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2629
2630         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2631         * gdbarch.h, gdbarch.c: Regnerate.
2632         * frame.h (frame_register): Declare.
2633         * frame.c (frame_register): New function.
2634         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2635         GET_SAVED_REGISTER, otherwize call
2636         generic_unwind_get_saved_register.
2637         (frame_register_read): Use frame_register instead of
2638         get_saved_register.
2639
2640 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2641         
2642         From Jim Ingham  <jingham@apple.com>:
2643         * event-top.c (gdb_disable_readline): New function.
2644         (_initialize_event_loop): Move comment.
2645
2646 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2647
2648         * event-loop.c (start_event_loop): Add comment.
2649         Update copyright.
2650
2651 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2652
2653         * infcmd.c (default_print_registers_info): Do not call
2654         PRINT_REGISTER_HOOK.
2655
2656 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2657
2658         * sparc-tdep.c (sparc_print_register_hook): Make static.
2659         (sparc_print_registers_info): New function.
2660         (sparc_do_registers_info): New function.
2661         (sparclet_print_registers_info): New function.
2662         (sparclet_do_registers_info): New function.
2663         (do_sparc_print_registers_info): New function.
2664         (sparc_print_registers): New static function, clone of infcmd.c's
2665         default_print_registers_info.
2666         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2667         (sparclet_do_registers_info): Declare.
2668         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2669         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2670         Re-define.
2671         (sparc_do_registers_info): Declare.
2672         (PRINT_REGISTER_HOOK): Delete macro.
2673         (sparc_print_register_hook): Delete declaration.
2674
2675 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2676
2677         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2678         functions.
2679         (lookup_symbol_aux_local): New function.
2680         (lookup_symbol_aux_symtabs): New function.
2681         (lookup_symbol_aux_psymtabs): New function.
2682
2683 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2684
2685         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2686         previous values of 'objfile' and 'block'.
2687
2688 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2689
2690         * values.c (value_change_enclosing_type): Set 
2691         enclosing_type field correctly also for the case where 
2692         more memory needs to be allocated.
2693
2694 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2695
2696         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2697         of puts_filtered.
2698
2699         * i387-tdep.c (i387_print_float_info): Replace calls to
2700         register_read and deprecated_read_register_gen with calls to
2701         frame_register_read, and make the necessary adjustments to the
2702         surrounding code.
2703
2704 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2705
2706         * gdbarch.sh (register_reggroup_p): Allow default value.
2707         * gdbarch.h, gdbarch.c: Regenerate.
2708
2709 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2710
2711         * regcache.h: Add coment indicating replacements for deprecated
2712         functions.
2713
2714 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2715
2716         * reggroups.h, reggroups.c: New files.
2717         * regcache.c: Include "reggroups.h".
2718         (enum regcache_dump_what): Add `regcache_dump_groups'.
2719         (regcache_dump): Contract size of the "Type" column.  When
2720         specified, dump the register's groups.
2721         (maintenance_print_register_groups): New function.
2722         (_initialize_regcache): Add command `maint print register-groups'.
2723         * Makefile.in (COMMON_OBS): Add reggroups.o
2724         (SFILES): Add reggroups.c.
2725         (reggroups_h): Define.
2726         (regcache.o, gdbarch.o): Update dependencies.
2727         (reggroups.o): Specify dependencies.
2728         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2729         Add opaque declaration for `struct reggroup' in generated .h file.
2730         Include "reggroups.h" in generated .c file.
2731         gdbarch.h, gdbarch.c: Re-generate.
2732
2733 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2734
2735         * regcache.h (deprecated_read_register_gen): Rename
2736         read_register_gen.
2737         (deprecated_write_register_gen): Rename write_register_gen.
2738         * i387-tdep.c: Update.
2739         * x86-64-linux-nat.c: Update
2740         * wince.c: Update.
2741         * thread-db.c: Update.
2742         * win32-nat.c: Update.
2743         * mips-tdep.c: Update.
2744         * d10v-tdep.c: Update.
2745         * cris-tdep.c: Update.
2746         * remote-sim.c: Update.
2747         * remote-rdi.c: Update.
2748         * remote-rdp.c: Update.
2749         * frame.c: Update.
2750         * target.c: Update.
2751         * blockframe.c: Update.
2752         * x86-64-tdep.c: Update.
2753         * xstormy16-tdep.c: Update.
2754         * sh-tdep.c: Update.
2755         * s390-tdep.c: Update.
2756         * rs6000-tdep.c: Update.
2757         * sparc-tdep.c: Update.
2758         * i386-tdep.c: Update.
2759         * dwarf2cfi.c: Update.
2760         * regcache.c: Update.
2761
2762 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2763
2764         New interix-specific files:
2765         * config/i386/nm-interix.h: New file.
2766         * config/i386/interix.mh: New file.
2767         * config/i386/interix.mt: New file.
2768         * i386-interix-nat.c: New file.
2769         * i386-interix-tdep.c: New file.
2770
2771 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2772
2773         * frame.h (deprecated_generic_get_saved_register): Rename
2774         generic_get_saved_register.
2775         * blockframe.c (deprecated_generic_get_saved_register): Update.
2776         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2777         (xstormy16_frame_saved_register): Update.
2778         * sh-tdep.c (sh_gdbarch_init): Update.
2779         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2780         * ia64-tdep.c (ia64_get_saved_register): Update.
2781         * cris-tdep.c (cris_gdbarch_init): Update.
2782         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2783         * arm-tdep.c (arm_gdbarch_init): Update.
2784
2785 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2786
2787         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2788
2789 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2790
2791         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2792         trampolines in sigaction.
2793
2794 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2795
2796         * h8300-tdep.c: Include "gdb_assert.h".
2797         (h8300_print_register): Add gdbarch, file and frame parameters.
2798         Use frame_read_unsigned_register to read the register's value.
2799         Use fprintf_filtered to display output.
2800         (h8300_print_registers_info): Replace h8300_do_registers_info.
2801         (h8300_gdbarch_init): Set print_registers_info.
2802
2803 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2804
2805         * frame.c (frame_read_unsigned_register): New function.
2806         (frame_read_signed_register): New function.
2807         * frame.h (frame_read_unsigned_register): Declare.
2808         (frame_read_signed_register): Declare.
2809
2810 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2811
2812         * h8500-tdep.c (h8500_print_registers_info): New static function,
2813         clone of infcmd.c's default_print_registers_info.
2814         (h8500_do_registers_info): New funtion.
2815         (h8500_print_register_hook): Rename print_register_hook, make
2816         static.
2817
2818         * config/h8500/tm-h8500.h: Update copyright.
2819         (DEPRECATED_DO_REGISTERS_INFO): Define.
2820         (h8500_do_registers_info: Declare.
2821         (PRINT_REGISTER_HOOK): Delete macro.
2822         (print_register_hook): Delete function.
2823
2824 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2825
2826         * z8k-tdep.c (z8k_print_register_hook): Make static.
2827         (z8k_print_registers_info): New static function, clone of
2828         infcmd.c's default_print_registers_info.
2829         (z8k_do_registers_info): New function.  Wrap
2830         z8k_print_registers_info.
2831         * config/z8k/tm-z8k.h: Update copyright.
2832         (PRINT_REGISTER_HOOK): Delete macro.
2833         (z8k_print_register_hook): Delete declaration.
2834         (DEPRECATED_DO_REGISTERS_INFO): Define.
2835         (z8k_do_registers_info): Declare.
2836
2837 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2838
2839         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2840         as this is already provided by value.h, and was actually causing
2841         a compilation error because of a conflict in parameter type
2842         declaration due to a missing const keyword.
2843         (low_text_segment_addres): Fix a compilation warning.
2844
2845 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2846
2847         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2848         registers without a name.
2849         (mips_linux_cannot_store_register): Don't store registers without
2850         a name.
2851
2852 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2853
2854         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2855         out.)
2856         * symtab.h: Delete prototype for find_addr_symbol.
2857
2858 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2859
2860         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2861         DO_REGISTERS_INFO.
2862         gdbarch.h, gdbarch.c: Re-generate.
2863         * infcmd.c (default_print_registers_info): Update reference.
2864         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2865         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2866         * sh-tdep.c (sh_gdbarch_init): Ditto.
2867         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2868         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2869
2870 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2871
2872         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2873         cfi_init_extra_frame_info.
2874         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2875         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2876
2877         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2878         target where necessary.  Add more comments and remove the ones
2879         that don't provide any useful information.
2880
2881         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2882         deprecated_read_register_dummy with
2883         frame_unwind_unsigned_register.
2884
2885         * i386-tdep.c (i386_extract_struct_value_address): Use
2886         regcache_raw_read_unsigned instead of
2887         regcache_cooked_read_unsigned since we know that the register
2888         we're reading isn't a pseudo register.  Rename variable 'val' into
2889         the more descriptive 'addr'.
2890
2891         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2892         (x86_64_push_return_address): Add comment.
2893         (x86_64_pop_frame): Make static.
2894         (examine_argument): Clarify comment.
2895         (x86_64_skip_prologue): Make prolog_expact variable static.
2896
2897         * dwarf2cfi.c: Fix some formatting problems.
2898         (context_cpy, read_encoded_pointer): Clarify comments.
2899
2900         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2901         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2902         i386 target back into x86_64_gdbarch_init.  Add some comments and
2903         remove meaningless ones.
2904
2905 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2906
2907         * complaints.h (struct deprecated_complaint): Rename `struct
2908         complaint'.
2909         * complaints.c (complain): Update.
2910         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2911         incorrect comment indicating that "symfile.h" was being included
2912         for the `struct complaint' definition.
2913         * remote-vx.c: Update.
2914         * objc-lang.c: Update.
2915         * xcoffread.c: Update.
2916         * hpread.c: Update.
2917         * mdebugread.c: Update.
2918         * stabsread.c: Update.
2919         * dwarf2read.c: Update.
2920         * dwarfread.c: Update.
2921         * elfread.c: Update.
2922         * coffread.c: Update.
2923         * stabsread.h: Update.
2924         * dbxread.c: Update.
2925         * buildsym.c: Update.
2926         * gdbtypes.c: Update.
2927         * macrotab.c: Update.
2928
2929 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2930
2931         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2932         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2933         (x86_64_init_abi): ...new function.
2934
2935         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2936         * i386v-nat.c: Include "i386-tdep.h".
2937
2938 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2939
2940         * gdbtypes.c (address_space_name_to_int): Update.
2941         (address_space_int_to_name): Update.
2942         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2943         multi-arch predicate.
2944         (address_class_name_to_type_flags): Ditto.
2945         * gdbarch.h, gdbarch.c: Re-generate.
2946         
2947         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2948
2949 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2950
2951         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2952
2953 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2954
2955         * symtab.h (INIT_SAL): Delete macro.
2956         (init_sal): Export.
2957         * symtab.c (init_sal): New function.
2958
2959         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2960         to init_sal function call.
2961         (find_sal_from_funcs_and_line): Ditto.
2962         (all_sals_for_line): Ditto. 
2963         * breakpoint.c (create_internal_breakpoint): Ditto. 
2964         (create_fork_vfork_event_catchpoint): Ditto. 
2965         (create_exec_event_catchpoint): Ditto. 
2966         (parse_breakpoint_sals): Ditto. 
2967         (watch_command_1): Ditto. 
2968         (handle_gnu_4_16_catch_command): Ditto.
2969         (clear_command): Ditto. 
2970         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2971         * infcmd.c (run_stack_dummy): Ditto. 
2972         * infrun.c (process_event_stop_test): Ditto.
2973         (check_sigtramp2): Ditto.
2974         (step_over_function): Ditto. 
2975         * linespec.c (decode_line_2): Ditto. 
2976         (decode_line_1): Ditto. 
2977         * source.c (line_info): Ditto. 
2978         * symtab.c (find_pc_sect_line): Ditto.
2979
2980 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
2981
2982         * dwarf2cfi.c (struct context)
2983         (struct context_reg): Moved to dwarf2cfi.h
2984         (context_alloc, frame_state_alloc, context_cpy):
2985         Made extern instead of static, removed prototypes.
2986         * dwarf2cfi.h (struct context)
2987         (struct context_reg): New, moved from dwarf2cfi.c
2988         (context_alloc, frame_state_alloc, context_cpy):
2989         New prototypes.
2990         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2991         Changed from static to extern.
2992         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2993         (LINUX_SIGCONTEXT_FP_OFFSET)
2994         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2995         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2996         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2997         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2998         set_gdbarch_*() calls now use x86-64 specific functions 
2999         instead of DWARF2 CFI ones.
3000         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3001         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3002         (x86_64_init_extra_frame_info): New prototypes.
3003         
3004 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3005
3006         * linespec.c: #include "parser-defs.h".
3007         Delete prototype for find_template_name_end.
3008         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3009
3010 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3011
3012         * NEWS: add recent mi fixes.
3013         * varobj.c (struct varobj): Add new "updated" flag.
3014         (new_variable): Default "updated" flag to 0.
3015         (varobj_set_value): Set "updated" flag to 1 if value
3016         changes.
3017         (varobj_update): Check varobj "updated" flag before
3018         comparing old and refreshed values.  Fix for
3019         PR gdb/702.
3020
3021 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3022
3023         * parse.c (parse_exp_1): Use BLOCK_START.
3024         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3025         SYMBOL_BLOCK_VALUE.
3026         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3027
3028 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3029
3030         * symtab.c: Delete cplusplus_hint.
3031         Delete prototype for find_template_name_end.
3032
3033 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3034
3035         * symtab.h: Update comment.
3036
3037 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3038
3039         * printcmd.c (address_info): Restore quotes in output.
3040         * valops.c (value_of_local): Restore quotes in error message.
3041
3042 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3043
3044         * symtab.c (symbol_demangled_name): New function.
3045         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3046         turning most of it into a function.
3047         (symbol_demangled_name): Export.
3048
3049 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3050
3051         * valops.c (value_of_local): Restore quotes in error message.
3052
3053 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3054
3055         * symtab.c (symbol_init_language_specific): New function.
3056         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3057         turning most of it into a function.
3058         (symbol_init_language_specific): Export.
3059
3060 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3061
3062         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3063         (dwarf_attr_name): Ditto.
3064         (dwarf_type_encoding_name): Ditto.
3065         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3066         (process_die): Handle DW_TAG_namespace,
3067         DW_TAG_imported_declaration, DW_TAG_imported_module.
3068         (read_namespace): New function.
3069
3070 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3071
3072         * configure.in: Define NEW_PROC_API on Interix too.
3073         * configure: Regenerate.
3074
3075 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3076
3077         * configure: Regenerate using the proper version of autoconf.
3078
3079 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3080
3081         * findvar.c (read_var_value): Temporarily disable TLS code, until
3082         complete TLS support is added.
3083
3084 2002-10-21  Jim Blandy  <jimb@redhat.com>
3085             Elena Zannoni  <ezannoni@redhat.com>
3086
3087         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3088         for thread local storage locations.
3089         (struct symbol): Add objfile field.
3090         (SYMBOL_OBJFILE): Define.
3091         * dwarf2read.c (is_thread_local): New static variable.
3092         (new_symbol): If variable is in thread local fill in address class
3093         and objfile appropriately.
3094         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3095         stack operation.
3096         * printcmd.c (address_info): Print the information for thread
3097         local storage variable.
3098         * findvar.c (read_var_value): In case of thread local variable,
3099         defer to the target vector code to compute address.
3100
3101 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3102
3103         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3104         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3105
3106 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3107
3108         * symtab.h (address_class):  Rename
3109         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3110         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3111         * printcmd.c (address_info): Ditto.
3112         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3113
3114 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3115
3116         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3117         DBREG_DRX macro to acces debug registers.
3118
3119         * Makefile.in (i386obsd-tdep.o): New target.
3120
3121         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3122         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3123
3124         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3125         * config/i386/obsd.mt: New file.
3126         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3127         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3128         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3129         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3130         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3131         * i386obsd-tdep.c: New file.
3132
3133 2002-10-19  Adam Fedor  <fedor@gnu.org>
3134
3135         * objc-exp.y (name_not_typename): Fix invalid comment.  
3136
3137 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3138
3139         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3140         to allocate partial syms and macro byte caches.
3141
3142 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3143
3144         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3145
3146 2002-10-18  Adam Fedor  <fedor@gnu.org>
3147
3148         * stabsread.c (find_name_end): New function.
3149         (define_symbol): Use it.
3150
3151 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3152
3153         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3154         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3155         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3156         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3157
3158 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3159
3160         * symfile.h: Add opaque declaration for struct obstack.
3161         Declare obsavestring to take a const char *.
3162         * symfile.c (obsavestring): Make first argument a const char *.
3163
3164 2002-10-16  Adam Fedor  <fedor@gnu.org>
3165
3166         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3167         names when matching breakpoints in current file.
3168
3169 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3170
3171         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3172         (read_tag_pointer_type): Add address class support.
3173         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3174         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3175         New methods.
3176         * gdbarch.h, gdbarch.c: Regenerate.
3177         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3178         (make_type_with_address_space, recursive_type_dump): Add address
3179         class support.
3180         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3181         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3182         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3183
3184 2002-10-16  Klee Dienes  <kdienes@apple.com>
3185
3186         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3187         to get the last character of a char[] buffer, not
3188         name[sizeof(vptr_name)-1].
3189
3190 2002-10-14  Adam Fedor  <fedor@gnu.org>
3191
3192         * symtab.h: New objc_specific struct.
3193         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3194         (SYMBOL_DEMANGLED_NAME): Likewise.
3195
3196 2002-10-14  Adam Fedor  <fedor@gnu.org>
3197
3198         * symfile.c (init_filename_language_table): Add ObjC file extension.
3199
3200 2002-10-14  Adam Fedor  <fedor@gnu.org>
3201
3202         * utils.c (puts_filtered_tabular): New function.
3203         (fprintf_symbol_filtered): Get ObjC demangled name.
3204         * defs.h (puts_filtered_tabular): Declared.
3205
3206 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3207
3208         * c-lang.h (c_type_print_varspec_prefix): Delete.
3209         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3210         ``need_post_space'' parameter.  Adjust all callers.
3211
3212 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3213  
3214         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3215         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3216         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3217         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3218
3219 2002-10-13  Adam Fedor  <fedor@gnu.org>
3220
3221         * source.c (print_source_lines): Update comments.
3222
3223 2002-10-13  Adam Fedor  <fedor@gnu.org>
3224
3225         * valops.c (value_of_local): New function.
3226         (value_of_this): Use it.
3227         * value.h (value_of_local): Declared.
3228
3229 2002-10-13  Adam Fedor  <fedor@gnu.org>
3230
3231         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3232         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3233
3234 2002-10-12  Adam Fedor  <fedor@gnu.org>
3235
3236         * language.c (binop_result_type): Add language_objc to case.
3237         (integral_type): Likewise.
3238         (character_type): Likewise.
3239         (string_type): Likewise.
3240         (boolean_type): Likewise.
3241         (structured_type): Likewise.
3242         (binop_type_check): Likewise.
3243
3244 2002-10-11  Adam Fedor  <fedor@gnu.org>
3245
3246         * printcmd.c (address_info): Print 'self' for ObjC.
3247
3248 2002-10-11  Adam Fedor  <fedor@gnu.org>
3249
3250         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3251         OP_SELF.
3252
3253 2002-10-11  Adam Fedor  <fedor@gnu.org>
3254
3255         * language.h (CAST_IS_CONVERSION): Add language_objc.
3256
3257 2002-10-11  Adam Fedor  <fedor@gnu.org>
3258
3259         * defs.h (enum language): Add language_objc.
3260
3261 2002-10-11  Klee Dienes  <kdienes@apple.com>
3262
3263         * corefile.c (read_memory_typed_address): New function.
3264         * gdbcore.h (read_memory_typed_address): Add prototype.
3265         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3266         to read a value destined for a CORE_ADDR, not read_memory_integer.
3267         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3268         (f77_get_dynamic_lowerbound): Ditto.
3269
3270 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3271
3272         * utils.c (string_to_core_addr): After turning string into
3273         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3274         which will do necessary sign-extension, etc.
3275
3276 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3277
3278         * c-exp.y (THIS): Delete token and grammar rule.
3279         (yylex): Don't return THIS.
3280         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3281         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3282         * demangle.c (cplus_markers): Update comment.  Put '$'
3283         first.  Remove CPLUS_MARKER.
3284         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3285         * jv-exp.y (THIS): Delete token and grammar rule.
3286         (yylex): Don't return THIS.
3287         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3288         * objc-exp.y (THIS): Delete token and grammar rule.
3289         (yylex): Don't return THIS.
3290         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3291         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3292         (read_member_functions): Likewise for opname.
3293         (read_tilde_fields): Use is_cplus_marker.
3294
3295         * defs.h (CPLUS_MARKER): Don't define.
3296         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3297         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3298         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3299         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3300         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3301
3302         * config/i386/tm-i386v4.h: Delete file.
3303         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3304         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3305         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3306         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3307         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3308         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3309         * config/i386/i386v4.mt (TM_FILE): Likewise.
3310         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3311
3312 2002-10-10  Marko Mlinar  <markom@opencores.org>
3313
3314         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3315         accidentially not commited 2002-10-09
3316         * gdbarch.h, gdbarch.c: Re-generate.
3317
3318 2002-10-09  Marko Mlinar  <markom@opencores.org>
3319
3320         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3321         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3322         * gdbarch.h, gdbarch.c: Re-generate.
3323
3324 2002-10-08  Petr Sorfa <petrs@caldera.com>
3325
3326         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3327
3328         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3329         so we can work on more than one compilation unit at a time.  This
3330         helps prepare GDB to handle inter-CU die references.
3331         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3332         the code to be defined before struct comp_unit_head.
3333         (comp_unit_head): Added new members - offset, cu_head,
3334         begin_die, next and dwarf2_abbrevs.
3335         (dwarf2_abbrevs): Removed single static var; now member of
3336         struct comp_unit_head.
3337         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3338         members.
3339         (psymtab_to_symtab_1): Changed to work with the new
3340         struct comp_unit_head.
3341         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3342         constructs the dwarf2_abbrevs[] inside the cu_header.
3343         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3344         dwarf2_abbrev table to clean up.
3345         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3346         handling of dwarf2_abbrevs inside the cu_header.
3347         (read_partial_die): Now supports the call to the new
3348         dwarf2_lookup_abbrev.
3349         (read_full_die): Now supports the call to the new
3350         dwarf2_lookup_abbrev.
3351
3352 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3353
3354         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3355         insure that shell variables, such as "transformed_name" are propagated
3356         to later shell statements in rule.
3357
3358 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3359
3360         * config/i386/nm-i386sco.h: Add protection against
3361         multiple-inclusion.  Include "i386/nm-i386v.h".
3362         (REGISTER_U_ADDR): Remove define.
3363         (i386_register_u_addr): Remove prototype.
3364
3365 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3366
3367         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3368         before treating it as a single-step event.
3369
3370 2002-10-03  Adam Fedor  <fedor@gnu.org>
3371
3372         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3373         (objc_demangle): Remove assignment in if statements, Replace
3374         free with xfree.
3375         (add_msglist): Likewise.
3376         (end_msglist): Likewise.
3377         (complare_selectors): Likewise.
3378         (selectors_info): Likewise.
3379         (compare_classes): Likewise.
3380         (classes_info): Likewise.
3381         (print_object_command): Likewise.
3382         (find_objc_msgcall_submethod): Replace PTR with void *.
3383         * objc-lang.h: Remove check for __STDC__.
3384
3385 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3386
3387         * ui-out.h (ui_out_field_fmt_int): New prototype.
3388         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3389         of field width and alignment.
3390         * stack.c (print_frame_info_base): When printing frame level, use
3391         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3392         PR gdb/192
3393
3394 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3395
3396         * MAINTAINERS: Add self to Write After Approval list.
3397
3398 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3399
3400         * infcmd.c (interrupt_target_command_wrapper): Delete.
3401         (interrupt_target_command): Make non static.
3402         (nofp_registers_info): Make static.
3403         * stack.c (return_command_wrapper): Delete.
3404         (return_command): Make non static.
3405
3406 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3407
3408         * event-top.c (gdb_setup_readline): New function. Code moved from
3409         _initialize_event_loop().
3410         (_initialize_event_loop): Call gdb_setup_readline().
3411
3412 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3413
3414         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3415         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3416         * gdbarch.h, gdbarch.c: Re-generate.
3417
3418 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3419
3420         Fix PR gdb/778
3421         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3422         before recursing.
3423         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3424         of fill_in_vptr_fieldno.
3425
3426 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3427
3428         * inferior.h (registers_info, stepi_command, nexti_command,
3429         continue_command, interrupt_target_command): Export from infcmd.c.
3430         * frame.h (args_info, selected_frame_level_changed_hook,
3431         return_command): Export from stack.c.
3432         * v850ice.c (stepi_command, nexti_command, continue_command): use
3433         prototypes from inferior.h.
3434         * tracepoint.c (registers_info, args_info, locals_info): Use
3435         prototypes from frame.h and inferior.h.
3436         * Makefile.in (mi-main.o): Add dependency on frame.h.
3437
3438 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3439
3440         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3441         value in register 3 adjusted by ppc_gp0_regnum.
3442
3443         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3444
3445 2002-10-02  Marko Mlinar <markom@opencores.org>
3446
3447         * MAINTAINERS: Add myself to the Write After Approval list.
3448
3449 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3450
3451         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3452         of the section for the N64 ABI, fixed.
3453
3454         * config/mips/tm-irix6.h: Include solib.h.
3455
3456 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3457
3458         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3459         GNU operators.
3460
3461 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3462
3463         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3464         and that "mi0" syntax has been removed.
3465
3466 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3467
3468         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3469         * ppc-sysv-tdep.c: #include "gdb_string.h".
3470         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3471         pacify GCC.
3472
3473 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3474
3475         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3476         "vrsave"'s register number.
3477
3478 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3479
3480         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3481         use frame_unwind_signed_register to obtain the PC.
3482         (mips_frame_chain): Handle a generic dummy frame.
3483         (mips_init_extra_frame_info): When a generic dummy frame, don't
3484         re-compute the frame base.
3485         (mips_pop_frame): Handle generic dummy frames.
3486         (mips_gdbarch_init): When generic dummy frames, set
3487         use_generic_dummy_frames, push_dummy_frame to
3488         generic_push_dummy_frame, pc_in_call_dummy to
3489         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3490         generic_save_dummy_frame_tos.
3491
3492 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3493
3494         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3495         against TOP when TOP was explictly set.
3496         (generic_push_dummy_frame): Set TOP to zero.
3497
3498 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3499
3500         * event-loop.c (start_event_loop): Rename variable 'result' to
3501         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3502
3503 2002-09-30  Keith Seitz  <keiths@redhat.com>
3504
3505         * gdb-events.sh (selected_thread_changed): New event.
3506         * gdb-events.c: Regenerated.
3507         * gdb-events.h: Regenerated.
3508
3509 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3510
3511         * MAINTAINERS: Add self to Write After Approval list.
3512
3513 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3514
3515         * disasm.c: New file.  
3516         * disasm.h: New file.  
3517         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3518         (compare_lines): Ditto.
3519         (dump_insns): Ditto.
3520         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3521         argument.
3522         (do_assembly_only): Ditto.
3523         (do_disassembly): Renamed to gdb_disassembly and moved to
3524         disasm.c.  Sdded uiout argument.
3525         * Makefile.in: Add new files.  Reorder SFILES list. Update
3526         dependencies.  Include libgdb.a later in the insight executable.
3527
3528 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3529
3530         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3531         bfd/elf64-alpha-fbsd.c.
3532
3533 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3534
3535         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3536         i386gnu-tdep.c.
3537
3538 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3539
3540         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3541         __FUNCTION__.
3542         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3543         function name.
3544         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3545         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3546         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3547         (S_msg_sig_post_reply): Ditto.
3548         
3549 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3550
3551         * sh-tdep.c (sh_use_struct_convention): Use definition according
3552         to ABI.
3553         (sh_push_arguments): Store in register with correct endianess.
3554         (sh_default_store_return_value): Ditto.
3555         (sh_gdbarch_init): Set sizeof long double to 8.
3556
3557 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3558
3559         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3560         Fix some whitespace problems.
3561
3562 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3563
3564         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3565         (mcore-tdep.o): Ditto.
3566         (ns32k-tdep.o): Ditto.
3567         (ns32knbsd-tdep.o): Ditto.
3568         (sh3-rom.o): Ditto.
3569         (vax-tdep.o): Ditto.
3570         * cris-tdep.c: #include "gdb_string.h"
3571         * mcore-tdep.c: Ditto.
3572         * ns32k-tdep.c: Ditto.
3573         * ns32knbsd-tdep.c: Ditto.
3574         * sh3-rom.c: Ditto.
3575         * vax-tdep.c: Ditto.
3576
3577 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3578
3579         * config/djgpp/fnchange.lst: Add entries for
3580         gdb/testsuite/gdb.c++/m-static files.
3581
3582 2002-09-27  Jim Wilson  <wilson@redhat.com>
3583
3584         * MAINTAINERS: Add myself to the Write After Approval list.
3585
3586 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3587
3588         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3589
3590
3591 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3592
3593         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3594         frame.
3595
3596 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3597
3598         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3599         (rs6000_struct_return_address): Delete variable.
3600         (rs6000_store_struct_return): Update.
3601         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3602         deprecated_extract_struct_value_address.
3603         (rs6000_frame_align): New function.
3604         (rs6000_gdbarch_init): Set frame_align.
3605
3606 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3607
3608         From Grace Sainsbury <graces@redhat.com>:
3609         * Makefile.in (gdbtk-main.o): New target.
3610         (gdb.o): New target.
3611         (main_h): Define.
3612         (main.o): Update dependencies.
3613         (gdb$(EXEEXT)): Add gdb.o.
3614         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3615         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3616         (SUBDIR_GDBTK_CLEAN): Set.
3617         (install-gdbtk): Install the insight binary.
3618         (uninstall-gdbtk): New target.
3619         (all-gdbtk, clean-gdbtk): New rule.
3620         * top.c (use_windows): Default to zero.
3621         * main.c: Include "main.h".
3622         (main): Delete.
3623         (struct captured_main_args): Delete.
3624         (gdb_main): New function.
3625         * main.h: New file.
3626         * gdb.c: New File.
3627
3628 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3629
3630         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3631         (frame_map_regnum_to_name): New function.
3632         (frame_map_name_to_regnum): New function.
3633         * frame.h (frame_map_name_to_regnum): Declare.
3634         (frame_map_regnum_to_name): Declare.
3635         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3636         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3637         * parse.c: Do not include "builtin-regs.h".
3638         (target_map_name_to_register): Delete function.
3639         (write_dollar_variable): Use frame_map_name_to_regnum.
3640         * parser-defs.h (target_map_name_to_register): Delete declaration.
3641         * expprint.c: Include "frame.h".
3642         (print_subexp): Use frame_map_regnum_to_name.
3643         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3644         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3645
3646 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3647
3648         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3649         wasn't saved, and the next innermost frame is a dummy, return the
3650         dummy frame's link register.
3651
3652 2002-09-24  Jim Blandy  <jimb@redhat.com>
3653
3654         Fix from Paul Breed:
3655         * main.c (captured_main): Add a `break' after the case for 'b'.
3656
3657 2002-09-24  Keith Seitz  <keiths@redhat.com>
3658
3659         * varobj.c (c_type_of_child): Use get_target_type instead
3660         of TYPE_TARGET_TYPE.
3661
3662 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3663
3664         * source.c (get_current_or_default_source_symtab_and_line): Remove
3665         function.
3666         (set_default_source_symtab_and_line): New function. Attempts to
3667         determine a source file to list lines from if one is not currently
3668         defined.
3669         (get_current_source_symtab_and_line): Initialize sal.pc and
3670         sal.end fields.
3671         (set_current_source_symtab_and_line): Mark argument as const.
3672         * source.h: Update declarations and comments.
3673         * linespec.c (decode_line_1): Replace call to removed routine above.
3674         * stack.c (print_frame_info_base): Ditto.
3675         * cli/cli-cmds.c (edit_command): Ditto.
3676         (list_command): Ditto.
3677
3678 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3679
3680         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3681         sal.pc and sal.end fields.
3682         (get_current_or_default_source_symtab_and_line): Ditto.
3683         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3684         so we do not cause a new source symtab to be searched for (reverting an
3685         unintentional change from the 2002-09-20 patch).
3686         * scm-lang.c (scm_unpac): Ditto.
3687
3688 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3689
3690         * complaints.c (symfile_explanations): Remove new-line from
3691         ``isolated_message''.
3692         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3693         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3694
3695 2002-09-20  Nick Clifton  <nickc@redhat.com>
3696         
3697         * NEWS: Announce that V850EA ISA is no longer supported.
3698         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3699
3700 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3701
3702         * Makefile.in (c-lang.o): Correct dependencies.
3703         (utils.o): Gather dependencies.
3704         (charset.o): Move.
3705         * c-lang.c: #include "gdb_string.h"
3706
3707 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3708
3709         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3710         * cli/cli-cmds.c (list_command): New function.  Implements the new
3711         cli edit command.
3712         (_init_cli_cmds): Add new command definition.
3713         * gdb.1: Document edit command.
3714         * doc/gdb.texinfo: Document edit command.
3715
3716 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3717
3718         * source.c: Make global variables current_source_symtab and
3719         current_source_line static.
3720         (list_command): Moved to cli/cli-cmds.c.
3721         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3722         (get_first_line_listed): New accessor function.
3723         (get_lines_to_list): New accessor function.
3724         (get_current_source_symtab_and_line): New function. Retrieves the
3725         position in the source code that we consider current.
3726         (get_current_or_default_source_symtab_and_line): New function.
3727         Like the above but attempts to determine a default position if one
3728         is not currently defined.
3729         (set_current_source_symtab_and_line): New function. Sets the source
3730         code position considered current and returns the previously set one.
3731         (clear_current_source_symtab_and_line): Reset stored information about
3732         a current source line.
3733         (_initialize_source): Remove registration for the "list" command and
3734         its alias.
3735         * source.h: Add declarations for the new functions above.
3736         * symtab.h: Remove declarations for the global variables mentioned
3737         above.
3738         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3739         obtain current source line.
3740         * linespec.c (decode_line_1): Ditto.
3741         * macroscope.c (default_macro_scope): Ditto.
3742         * scm-lang.c (scm_unpac): Ditto.
3743         * stack.c (print_frame_info_base): Ditto.
3744         * symfile.c (clear_symtab_users): Ditto.
3745         * symtab.c (decode_line_spec): Ditto.
3746         * cli/cli-cmds.c (list_command): Moved here from source.c.
3747         (ambiguous_line_spec): Moved here from source.c.
3748         (_init_cli_cmds): Add definition for "list" and its alias.
3749         * Makefile.in: Update dependencies.
3750
3751 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3752
3753         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3754         with what gcc thinks is correct.
3755
3756 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3757
3758         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3759         multiple register push instruction.
3760
3761 2002-09-19  Jim Blandy  <jimb@redhat.com>
3762
3763         Add support for distinct host and target character sets.
3764         * charset.c, charset.h: New files.
3765         * c-exp.y: #include "charset.h".
3766         (yylex): Convert character and string literals to the target
3767         character set, before returning them as the semantic value of the
3768         token.
3769         * c-lang.c: #include "charset.h".
3770         (c_emit_char): Use charset-specific methods to recognize
3771         characters with backslash escape forms, to decide which characters
3772         to print literally and which to print using numeric escape
3773         sequences, and to convert target characters to host characters
3774         before printing.
3775         * utils.c: #include "charset.h".
3776         (no_control_char_error): New function.
3777         (parse_escape): Use charset-specific methods to recognize
3778         backslash escapes, parse `control character' notation, and convert
3779         characters from the host character set to the target character set.
3780         * configure.in: Set the default host character set.
3781         Check where to find iconv, and what its argument types might be.
3782         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3783         * Makefile.in (SFILES): List charset.c.
3784         (COMMON_OBS): List charset.o.   
3785         (charset.o): New rule.
3786         (charset_h): New header dependency variable.
3787         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3788         (LIBICONV): New variable, set by configure.
3789         (CLIBS): Include $(LIBICONV) here.
3790         * aclocal.m4, config.in, configure: Regenerated.
3791
3792 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3793
3794         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3795         bison 1.35 warning.
3796
3797 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3798
3799         * gdb_mbuild.sh: New file.
3800
3801 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3802
3803         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3804
3805 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3806
3807         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3808         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3809         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3810         valops.c, value.h: Revert previous change.
3811         
3812 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3813
3814         Preliminary support for Objective-C:
3815         * defs.h (language_objc): New enum value.
3816         (puts_filtered_tabular): Declaration only, exported from utils.c.
3817         (skip_quoted): Delete, declared in completer.h.
3818         * c-exp.y: Include completer.h.
3819         * p-exp.y: Ditto.
3820         * jv-exp.y: Ditto.
3821         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3822         New operator enum values.
3823         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3824         * language.c (binop_result_type): Handle language_objc case.
3825         (integral_type, character_type, string_type, boolean_type,
3826         structured_type, binop_type_check): Ditto.
3827         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3828         (struct objc_specific): Add to general_symbol_info.
3829         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3830         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3831         * parser-defs.h (struct objc_class_str): New struct type.
3832         (start_msglist, end_msglist, add_msglist): Declaration only,
3833         exported from objc-lang.c.
3834         * value.h (value_of_local, value_nsstring, 
3835         call_function_by_hand_expecting_type): Exported from valops.c.
3836         * valops.c (find_function_addr): Export.
3837         (call_function_by_hand_expecting_type): New function.
3838         (value_of_local): New function.
3839         * symfile.c (init_filename_language_table): Add ".m" extension
3840         for Objective-C.
3841         * utils.c (puts_filtered_tabular): New function.
3842         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3843         (set/show demangle): Extend help-string to refer to ObjC.
3844         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3845         * stabsread.c (symbol_reference_defined): Objective-C symbols
3846         may contain colons: make allowances when scanning stabs strings
3847         for colons.
3848         (objc_find_colon): New function.
3849         * printcmd.c (address_info): If language == objc then print
3850         "self" instead of "this".
3851         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3852         OP_NSSTRING, and OP_SELF.
3853         (prefixify_subexp): Ditto.
3854         * source.c (print_source_lines): Mention objc in comment.
3855         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3856         method names.
3857
3858 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3859
3860         * complaints.h: Update copyright.
3861         (struct complaints): Declare.
3862         (struct complaint): Make `message' constant.
3863         (internal_complaint): Declare.
3864         (complaint): Declare.
3865         (complaint_root): Delete declaration.
3866         (symfile_complaints): Delete declaration.
3867         (struct complaints): Add opaque declaration.
3868         (clear_complaints): Add a complaints parameter.
3869         * complaints.c: Update copyright.
3870         (enum complaint_series): Define.
3871         (complaint_root): Delete.
3872         (struct complaints): Define.
3873         (complaint_sentinel, symfile_complaint_book): New variables.
3874         (symfile_explanations, symfile_complaints): New variables.
3875         New variables.
3876         (get_complaints): New function.
3877         (vcomplaint): New function.
3878         (complaint): New function.
3879         (internal_complaint): New function.
3880         (complain): Call vcomplain with symfile_complaint.
3881         (clear_complaints): Rewrite.
3882         (_initialize_complaints): Use add_setshow_command.
3883         * Makefile.in (complaints.o): Update dependencies.
3884         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3885         to call to clear_complaints.
3886         (new_symfile_objfile, reread_symbols): Ditto.
3887         (oldsyms_complaint): Delete.
3888         (empty_symtab_complaint, unknown_option_complaint): Delete.
3889         (free_named_symtabs): Use complaint instead of complain.
3890
3891 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3892
3893         Contributed by Apple Computer, Inc.  Merged with current sources
3894         by Adam Fedor <fedor@doc.com> [cagney].
3895         
3896         * objc-lang.c: First clean-up round: comments, indentation.
3897         * objc-lang.h: Ditto.
3898         * objc-lang.y: Ditto.
3899
3900 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3901
3902         * maint.c (maintenance_internal_error): Print the parameter as the
3903         error message.
3904         (maintenance_internal_warning): New function.
3905         (_initialize_maint_cmds): Add command `maint internal-warning'.
3906
3907         * defs.h (internal_warning, internal_vwarning): Declare.
3908         * utils.c (struct internal_problem): Define.
3909         (internal_vproblem): New function.
3910         (internal_warning): New function.
3911         (internal_vwarning): New function.
3912         (internal_warning_problem, internal_error_problem): New variables.
3913         (internal_verror): Just call internal_vproblem.
3914
3915 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3916
3917         * objc-lang.c: New file, support for Objective-C.
3918         Preliminary check-in, not yet integrated into gdb.
3919         * objc-lang.h: New file.
3920         * objc-exp.y:  New file.
3921
3922 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3923
3924         * infrun.c (signal_stop_update): Convert definition to ISO C.
3925         (signal_print_update): Ditto.
3926         (signal_pass_update): Ditto.
3927         * inflow.c (terminal_save_ours): Ditto.
3928
3929         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3930         comments.
3931         
3932         * config/djgpp/fnchange.lst: Handle name clashes between
3933         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3934         bfd/coff-tic80.c.
3935
3936         * i386-linux-tdep.h: Fix tipo.
3937
3938 2002-09-18  Adam Fedor  <fedor@gnu.org>
3939
3940         * MAINTAINERS: Add myself to the Write After Approval list.
3941
3942 2002-09-18  Jim Blandy  <jimb@redhat.com>
3943
3944         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3945         texthigh and textlow to reader-specific structs caused
3946         objfile_relocate to miss them.  This is fixable, but the work that
3947         the change was supposed to prepare GDB for never got done anyway.
3948
3949 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3950
3951         * MAINTAINERS: Alphabetize Write After Approval list.
3952
3953 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3954
3955         Fix PR gdb/709
3956         * values.c (value_static_field): Call read_var_value.
3957
3958 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3959
3960         * valops.c (hand_function_call): Align the initial stack pointer
3961         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3962         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3963         return value.
3964         * mips-tdep.c (mips_frame_align): New function.
3965         (mips_gdbarch_init): Set frame_align.
3966         * gdbarch.sh (FRAME_ALIGN): New method.
3967         * gdbarch.h, gdbarch.c: Re-generate.
3968
3969 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
3970
3971         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3972         registers.
3973
3974 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
3975
3976         * NEWS: Mention that MIPS $fp behavior changed.
3977         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3978         reference to FP_REGNUM.
3979         (mipsnbsd_cannot_store_register): Ditto.
3980         * mips-linux-nat.c: Update copyright.
3981         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3982         (mips_linux_cannot_store_register): Ditto.
3983         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3984         * config/mips/tm-mips.h: Update copyright.
3985         (FP_REGNUM): Delete macro.
3986         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3987         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3988         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3989         (mips_r3041_reg_names, mips_r3051_reg_names)
3990         (mips_r3081_reg_names): Replace "fp" with "".
3991         Fix PR gdb/480.
3992
3993 2002-09-17  Theodore A. Roth  <troth@verinet.com>
3994
3995         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3996         generic_read_register_dummy() (PR gdb/703).
3997         (avr_push_return_address): #if 0 out unused vars.
3998         (avr_gdbarch_init): Enable use of avr_push_return_address().
3999
4000 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4001
4002         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4003         RTE will take care of it.
4004
4005 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4006
4007         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4008         invalid, return SP_REGNUM.
4009
4010 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4011
4012         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4013         point registers without sign extension.
4014
4015 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4016
4017         * blockframe.c (deprecated_read_register_dummy): Rename
4018         generic_read_register_dummy.
4019         * frame.c (frame_unwind_signed_register): New function.
4020         (frame_unwind_unsigned_register): New function.
4021         * frame.h (frame_unwind_signed_register): Declare.
4022         (frame_unwind_unsigned_register): Declare.
4023         (deprecated_read_register_dummy): Rename
4024         generic_read_register_dummy.
4025
4026         * h8300-tdep.c (h8300_frame_chain): Update.
4027         (h8300_frame_saved_pc): Update.
4028         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4029         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4030         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4031         (s390_frame_chain): Update.
4032         * v850-tdep.c (v850_find_callers_reg): Update.
4033         (v850_frame_saved_pc): Update.
4034         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4035         (m32r_find_callers_reg): Update.
4036         (m32r_frame_saved_pc): Update.
4037         * sh-tdep.c (sh_find_callers_reg): Update.
4038         (sh64_get_saved_pr): Update.
4039         (sh_init_extra_frame_info): Update.
4040         (sh_init_extra_frame_info): Update.
4041         (sh64_init_extra_frame_info): Update.
4042         (sh64_init_extra_frame_info): Update.
4043         * mcore-tdep.c (mcore_find_callers_reg): Update.
4044         (mcore_frame_saved_pc): Update.
4045         (mcore_init_extra_frame_info): Update.
4046         * i386-tdep.c (i386_frame_saved_pc): Update.
4047         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4048         (ia64_init_extra_frame_info): Update.
4049         (ia64_init_extra_frame_info): Update.
4050         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4051         * cris-tdep.c (cris_init_extra_frame_info): Update.
4052         * avr-tdep.c (avr_frame_chain): Update.
4053         (avr_init_extra_frame_info): Update.
4054         (avr_frame_saved_pc): Update.
4055         * arm-tdep.c (arm_find_callers_reg): Update.
4056         (arm_init_extra_frame_info): Update.
4057         (arm_frame_saved_pc): Update.
4058
4059 2002-09-17  Tom Tromey  <tromey@redhat.com>
4060
4061         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4062         is "'".
4063
4064 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4065
4066         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4067         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4068         NEXT_PROLOGUE_INSN.
4069         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4070         NEXT_PROLOGUE_INSN.
4071
4072 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4073
4074         * osfsolib.c: Remove file, replaced by solib-osf.c.
4075         * Makefile.in: Remove compilation rules for osfsolib.c.
4076
4077 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4078
4079         * cp-valprint.c (cp_print_class_method): Correct args to
4080         check_stub_method_group.
4081
4082 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4083
4084         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4085         `set architecture'.  Unify naming convention of functions.
4086         (h8300_skip_prologue): Improve prologue analysis.
4087         (h8300_push_arguments): Rewritten to more closely match GCC's
4088         bizarre argument-passing behavior, along with the comment describing
4089         said behavior.
4090         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4091         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4092         sim, remote-e7000.c, remote-hms.c and remote.c
4093
4094 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4095
4096         * i386-tdep.c (gdb_print_insn_i386): Removed.
4097         (i386_print_insn): New function.
4098         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4099         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4100         tm_print_insn_info.
4101
4102 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4103
4104         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4105         zero.
4106
4107 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4108
4109         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4110         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4111         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4112
4113 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4114
4115         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4116
4117 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4118
4119         * gdbtypes.c (check_stub_method): Make static.
4120         (check_stub_method_group): New function.
4121         * gdbtypes.h: Update prototypes.
4122         * cp-support.c: New file.
4123         * cp-support.h: New file.
4124
4125         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4126         (update_method_name_from_physname): New function.
4127         (read_member_functions): Correct method names for operators
4128         and v3 constructors/destructors.  Separate v2 constructors and
4129         destructors.
4130         * Makefile.in (stabsread.o): Update dependencies.
4131         (SFILES): Add cp-support.c.
4132         (COMMON_OBS): Add cp-support.o.
4133         (cp_support_h, cp-support.o): Add.
4134
4135         * cp-valprint.c (cp_print_class_method): Call
4136         check_stub_method_group instead of check_stub_method.  Remove
4137         extraneous QUITs.
4138         * p-valprint.c (pascal_object_print_class_method): Likewise.
4139         * valops.c (search_struct_method): Likewise.
4140         (find_method_list, value_struct_elt_for_reference): Likewise.
4141
4142 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4143
4144         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4145         * gdbarch.h, gdbarch.c: Regenerate.
4146
4147 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4148
4149         * frame.c (find_saved_register): Delete function.
4150         * frame.h (find_saved_register): Delete declaration.
4151         Fix PR gdb/631.
4152
4153 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4154
4155         * mips-tdep.c (read_next_frame_reg): Re-hack using
4156         frame_register_unwind.
4157
4158 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4159
4160         * mips-tdep.c (mips_get_saved_register): Re-hack using
4161         frame_register_unwind.
4162
4163 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4164
4165         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4166         vector. Will be useful for Interix.  
4167         * gdbarch.h, gdbarch.c: Regenerate.
4168
4169         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4170         name of the malloc function by NAME_OF_MALLOC.
4171
4172 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4173
4174         * value.h (find_function_in_inferior): Add const keyword to
4175         one of the parameters. Allows us to invoke this function with
4176         a const char *.
4177         * valops.c (find_function_in_inferior): Likewise.
4178
4179 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4180
4181         * exec.c (xfer_memory): Fix compilation warning with old versions
4182         of GCC.
4183         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4184
4185 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4186
4187         * symtab.h: Run through gdb_indent.h.
4188         Add 2002 to Copyright year list.
4189
4190 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4191
4192         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4193         mach constants.
4194         * MAINTAINERS: Add myself to write after approval list.
4195
4196 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4197
4198         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4199
4200 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4201
4202         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4203         Interix.
4204
4205 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4206
4207         * procfs.c (do_detach): Clear current signal, not just fault.
4208         Corrects problem with breakpoint trap signal leaking to detached
4209         process on Tru64.
4210
4211 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4212
4213         * buildsym.c (finish_block): Protect against null pointer.
4214
4215 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4216
4217         * infcmd.c (default_print_registers_info): Send all output to
4218         ``file'' instead of ``gdb_stdout''.
4219
4220 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4221
4222         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4223         LONGEST, and use signed register read (addresses are sign-
4224         extended for mips).
4225
4226 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4227
4228         * event-loop.c (gdb_do_one_event): Make public.
4229         * event-loop.h (gdb_do_one_event): Declare.
4230
4231 2002-09-10  Jeff Law  <law@redhat.com>
4232
4233         * infttrace.c (child_resume): Simplify and rework to avoid
4234         TT_PROC_CONTINUE.
4235
4236 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4237
4238         * printcmd.c (print_scalar_formatted): "len" is the number of
4239         target bytes, NOT the number of target bits.
4240
4241 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4242
4243         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4244         * top.c (init_main): Set rl_terminal_name.
4245
4246 2002-09-08  Aidan Skinner <aidan@velvet.net>
4247
4248         * ada-lang.c (ada_array_bound, ada_type_match,
4249         _initialize_ada_language): Fix K&R definitions.
4250         * ada-tasks.c (get_current_task): Fix K&R definitions.
4251         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4252                         
4253 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4254
4255         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4256         Add XP.
4257
4258 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4259
4260         * i386-tdep.c (i386_register_virtual_type,
4261         i386_register_convertible, i386_register_convert_to_virtual,
4262         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4263         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4264         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4265         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4266         Don't set push_arguments twice.
4267
4268         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4269         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4270         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4271         sigtramp_end to NULL.
4272         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4273         defines.
4274         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4275
4276         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4277         whitespace.
4278
4279         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4280         * gdbarch.h, gdbarch.c: Re-generate.
4281         * blockframe.c (find_pc_sect_partial_function): Convert to use
4282         SIGTRAMP_START_P predicate.
4283
4284 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4285
4286         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4287         generic_dummy_frame method and old method.  Also distinguish
4288         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4289         (arm_extract_return_value): Use new regcache method.
4290
4291         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4292         adjustment that doesn't conform to the ABI.
4293         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4294         saved regcache, not from current regcache.
4295
4296 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4297
4298         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4299         * README: Update.
4300
4301 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4302
4303         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4304         if arm_apcs_32 is false.
4305
4306 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4307
4308         GDB 5.3 branch created.
4309
4310 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4311
4312         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4313         generic_unwind_get_saved_register.
4314
4315 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4316
4317         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4318         argument (PR gdb/653).  Update call to smash_to_method_type.
4319         (read_structure_scope): Update call to dwarf2_add_member_fn.
4320
4321 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4322
4323         * x86-64-linux-tdep.c: Include gdb_string.h
4324         * x86-64-linux-nat.c: Ditto.
4325
4326 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4327
4328         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4329         when YYDEBUG is set to 1.  
4330         * c-exp.y: Likewise.
4331         * f-exp.y: Likewise.
4332         * jv-exp.y: Likewise.
4333         * m2-exp.y: Likewise.
4334         * p-exp.y: Likewise.
4335
4336 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4337
4338         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4339         dependency list.
4340         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4341         solib_svr4_fetch_link_map_offsets to
4342         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4343         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4344         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4345         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4346         solib-svr4.o, and solib-legacy.o.
4347         * config/i386/tm-nbsd.h: Include solib.h.
4348
4349 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4350
4351         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4352         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4353         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4354         comment noting that this needs its own target configuration.
4355         * config/i386/nbsd.mt: New file.
4356         * config/i386/nbsdaout.mt: Remove.
4357         * config/i386/nbsdelf.mt: Ditto.
4358         * config/i386/tm-nbsdaout.h: Ditto. 
4359
4360 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4361
4362         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4363         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4364         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4365         tdep->sigtramp_end.
4366         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4367         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4368         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4369
4370 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4371
4372         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4373         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4374         * i386-tdep.h (i386bsd_init_abi): New prototype.
4375         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4376         function declaration.
4377         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4378         for NetBSD-a.out or NetBSD-ELF.
4379         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4380         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4381         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4382         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4383         and nbsd-tdep.h.
4384         (i386nbsd_pc_in_sigtramp): New function.
4385         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4386         i386nbsd_pc_in_sigtramp.
4387         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4388         and i386nbsdelf_init_abi OS ABI handlers.
4389         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4390         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4391
4392 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4393
4394         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4395         registers if the target really has them.
4396
4397 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4398
4399         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4400         than nbsd-tdep.h.
4401
4402 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4403
4404         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4405         list.
4406         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4407         (alphanbsd_skip_sigtramp_frame): New functions. 
4408         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4409         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4410         to alphanbsd_sigcontext_addr. 
4411
4412 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4413
4414         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4415         list.
4416         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4417         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4418         nbsd_pc_in_sigtramp. 
4419         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4420         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4421         * nbsd-tdep.c: Include gdb_string.h.
4422         (nbsd_pc_in_sigtramp): New function. 
4423         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4424         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4425         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4426         ppcnbsd_pc_in_sigtramp. 
4427         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4428         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4429         shnbsd_pc_in_sigtramp. 
4430         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4431         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4432         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4433
4434 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4435
4436         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4437         watchpoints to NULL.
4438         (insert_breakpoints): set val field of watchpoints if NULL.
4439
4440
4441 2002-08-29  Jim Blandy  <jimb@redhat.com>
4442
4443         * symtab.c (lookup_symbol_aux): In the cases where we find a
4444         minimal symbol of an appropriate name and use its address to
4445         select a symtab to read and search, use `name' (as passed to us)
4446         as the demangled name when searching the symtab's global and
4447         static blocks, not the minsym's name.
4448
4449 2002-08-29  Keith Seitz  <keiths@redhat.com>
4450
4451         * stack.c (print_frame_info_base): Always set current_source_symtab
4452         and current_source_line.
4453
4454 2002-08-29  Donn Terry  <donnte@microsoft.com>
4455
4456         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4457
4458 2002-08-28  Keith Seitz  <keiths@redhat.com>
4459
4460         * stack.c (select_frame): Add FIXME concerning selected-frame
4461         events.
4462         (select_frame_command): Send selected-frame-level-changed
4463         event notification, but only if the level actually changed.
4464         (up_silently_base): Add selected-frame-level-changed event
4465         notification.
4466         (down_silently_base): Likewise.
4467
4468 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4469
4470         * Makefile.in: Update dependencies for all gdb/*.c files.
4471
4472 2002-08-27  Tom Tromey  <tromey@redhat.com>
4473
4474         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4475         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4476         Update dependencies.
4477         * i387-tdep.c: Include gdb_string.h.
4478         * osabi.c: Likewise.
4479         * i386-linux-nat.c: Likewise.
4480         * lin-lwp.c: Likewise.
4481         * ax-gdb.c: Likewise.
4482         * signals/signals.c: Likewise.
4483         * jv-valprint.c: Likewise.
4484         * p-lang.c: Likewise.
4485         * c-valprint.c: Likewise.
4486         * cp-abi.c: Likewise.
4487
4488 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4489
4490         * cli/cli-script.h (copy_command_lines): Export.
4491         * breakpoint.c: Include cli/cli-script.h.
4492         * Makefile.in (breakpoint.o): Update dependencies.
4493
4494 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4495
4496         * breakpoint.c (insert_breakpoints): Protect all references
4497         to 'process_warning'.  Shorten long lines.
4498
4499 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4500
4501         * cli/cli-script.c (copy_command_lines): New function.
4502         * defs.h (copy_command_lines): Export.
4503         * testsuite/gdb.base/commands.exp: New tests for commands
4504         attached to a temporary breakpoint, and for commands that
4505         delete the breakpoint they are attached to.
4506         
4507 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4508
4509         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4510         pointer to the breakpoint commands struct, make a new copy
4511         of the struct and point to that.
4512         (bpstat_clear): Free the commands struct.
4513         (bpstat_clear_actions): Free the commands struct.
4514         (bpstat_do_actions): Free the command actions.  Also execute
4515         the local cleanups, instead of deleting them.
4516         (delete_breakpoint): Leave the commands field of the bpstat
4517         chain alone -- it will be freed later.
4518
4519 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4520
4521         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4522         deleted in 2002-08-20 commit.  This function is still used by
4523         ppc-linux-nat.c.
4524
4525 2002-08-26  Keith Seitz  <keiths@redhat.com>
4526
4527         * gdb-events.sh: Add selected-frame-level-changed event.
4528         * gdb-events.c: Regenerated.
4529         * gdb-events.h: Regenerated.
4530         
4531 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4532
4533         Fix PR gdb/393:
4534         * inflow.c (terminal_save_ours): New function to save terminal
4535         settings.
4536         * inferior.h (terminal_save_ours): Declare.
4537         * target.c (debug_to_terminal_save_ours): New function.
4538         (cleanup_target): Defaults to_terminal_save_ours.
4539         (update_current_target): Inherit to_terminal_save_ours.
4540         (setup_target_debug): Set to_terminal_save_ours.
4541         * target.h (target_terminal_save_ours): New to save terminal settings.
4542         (target_ops): New member to_terminal_save_ours.
4543         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4544         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4545         * inftarg.c (init_child_ops): Likewise.
4546         * m3-nat.c (init_m3_ops): Likewise.
4547         * procfs.c (init_procfs_ops): Likewise.
4548         * wince.c (init_child_ops): Likewise.
4549         * win32-nat.c (init_child_ops): Likewise.
4550         * sol-thread.c (init_sol_thread_ops): Likewise.
4551
4552 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4553
4554         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4555         use regcache_* functions.
4556         (i386_gdbarch_init): Set store_return_value instead of
4557         deprecated_store_return_value.
4558
4559         * regcache.c (regcache_raw_write_signed,
4560         regcache_raw_write_unsigned): New functions.
4561         * regcache.h (regcache_raw_write_signed,
4562         regcache_raw_write_unsigned): New prototypes.
4563
4564 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4565
4566         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4567         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4568         source file dependencies.  Cleanup corresponding generator rules.
4569
4570 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4571
4572         * regcache.h (register_offset_hack): Declare.
4573         (regcache_cooked_read_using_offset_hack): Declare.
4574         (regcache_cooked_write_using_offset_hack): Declare.
4575
4576         * regcache.c (register_offset_hack): New function.
4577         (regcache_cooked_read_using_offset_hack): New function.
4578         (regcache_cooked_write_using_offset_hack): New function.
4579         (regcache_dump): Check that the registers, according to their
4580         offset, are packed hard against each other.
4581         (cooked_xfer_using_offset_hack): New function.
4582
4583 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4584
4585         * regcache.c (struct regcache_descr): Add field register_type.
4586         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4587         in as a parameter
4588         (init_regcache_descr): Initialize register_type.  Pass the descr
4589         to init_legacy_regcache_descr.  Use register_type instead of
4590         REGISTER_VIRTUAL_TYPE.
4591         (register_type): New function.
4592         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4593         * regcache.h (register_type): Declare.
4594
4595 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4596
4597         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4598         instead of deprecated_store_return_value.  Fix fallout from
4599         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4600
4601 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4602
4603         * regcache.c (max_register_size): New function.
4604         (init_legacy_regcache_descr): Ensure that max_register_size is
4605         large enough for REGISTER_VIRTUAL_SIZE.
4606         * regcache.h (max_register_size): Declare.
4607
4608 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4609
4610         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4611         store_return_value.
4612         (e500_extract_return_value): Change type of valbuf pointer to
4613         void.
4614
4615 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4616
4617         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4618         workaround.
4619
4620         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4621         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4622         long long) to prevent compiler warning on 64-bit systems.
4623
4624 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4625
4626         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4627         (DEPRECATED_STORE_RETURN_VALUE): New method.
4628         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4629         * gdbarch.h, gdbarch.c: Re-generate.
4630
4631         * values.c (set_return_value): Pass current_regcache to
4632         STORE_RETURN_VALUE.
4633         * arch-utils.h (legacy_store_return_value): Declare.
4634         * arch-utils.c (legacy_store_return_value): New function.
4635         (legacy_extract_return_value): Update parameters.
4636
4637         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4638         STORE_RETURN_VALUE.
4639         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4640         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4641         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4642         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4643         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4644         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4645         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4646         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4647         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4648         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4649
4650         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4651         * i386-tdep.c (i386_extract_return_value): Update.
4652         * arch-utils.c (legacy_extract_return_value): Update.
4653         * frv-tdep.c (frv_gdbarch_init): Update.
4654         * cris-tdep.c (cris_gdbarch_init): Update.
4655         * d10v-tdep.c (d10v_gdbarch_init): Update.
4656         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4657         * m68k-tdep.c (m68k_gdbarch_init): Update.
4658         * mcore-tdep.c (mcore_gdbarch_init): Update.
4659         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4660         * s390-tdep.c (s390_gdbarch_init): Update.
4661         * sparc-tdep.c (sparc_gdbarch_init): Update.
4662         * sh-tdep.c (sh_gdbarch_init): Update.
4663         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4664         * v850-tdep.c (v850_gdbarch_init): Update.
4665         * avr-tdep.c (avr_gdbarch_init): Update.
4666         * ia64-tdep.c (ia64_gdbarch_init): Update.
4667         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4668         * vax-tdep.c (vax_gdbarch_init): Update.
4669         * alpha-tdep.c (alpha_gdbarch_init): Update.
4670         * arm-tdep.c (arm_gdbarch_init): Update.
4671         * mips-tdep.c (mips_gdbarch_init): Update.
4672         * i386-tdep.c (i386_gdbarch_init): Update.
4673
4674 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4675
4676         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4677         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4678
4679 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4680
4681         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4682         problems.
4683
4684 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4685
4686         * infrun.c (handle_inferior_event): Move a comment outside of a
4687         function call, in order to avoid indent reformatting this part
4688         of the code in an unreadable way.
4689
4690 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4691
4692         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4693         when breakpoints fail. Move general breakpoint error messages to
4694         insert_breakpoints.  
4695         * breakpoint.c (insert_breakpoints): Change warnings when
4696         breakpoints are nto inserted to specify the type. Remove call to
4697         memory_error when hardware breakpoints can't be inserted. Remove
4698         multiple calls to warning so all messages are sent to the user at
4699         once.
4700         (delete_breakpoints): Make insert error messsages more explicit.
4701
4702 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4703
4704         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4705         gdbserver/ChangeLog.
4706
4707 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4708
4709         * i386-tdep.c: Include "objfiles.h".
4710         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4711         skip_trampoline_code.
4712         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4713         (CPLUS_MARKER): Define to '.'.
4714
4715         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4716         member.
4717         (linux_corefile_thread_callback): Increase args->num_notes.
4718         (linux_make_note_section): Initialize thread_args.num_notes, and
4719         use it to determine whether notes for any threads were created.
4720
4721 2002-08-23  Donn Terry  <donnte@microsoft.com>
4722
4723         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4724         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4725         and PCUNKILL.
4726         (write_with_trace): Conditionalize out the switch branch handling
4727         PCSHOLD if the corresponding macro is not defined. Likewise for
4728         PRSABORT and PRSTOP.
4729         This change will be needed by the Interix port.
4730
4731 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4732
4733         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4734         write_register wherever possible instead of manipulating the
4735         register bytes directly.
4736         Assign VALUE_CONTENTS to a variable and use that.
4737         The GPR numbers are now dependent on the architecture.
4738         
4739 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4740
4741         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4742         ev_offset fields.
4743         (skip_prologue): Add support for BookE/e500 instructions.
4744         (e500_extract_return_value): New function.
4745         (frame_get_saved_regs): Add support for saving ev registers and
4746         pseudo gpr's.
4747         (e500_store_return_value): New function.
4748         (rs6000_gdbarch_init): Move up default intializations of
4749         deprecated_extract_return_value and store_return_value.  Overwrite
4750         init of store_return_value with e500 specific version.
4751         Set extract_return_value for e500.
4752         
4753 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4754
4755         * blockframe.c (generic_call_dummy_register_unwind): Use
4756         regcache_cooked_read to catch cases in which the variable is
4757         stored in a pseudo register.
4758
4759 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4760
4761         * NEWS: Mention that the i960 has been made obsolete.
4762         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4763         i960-tdep.c
4764         (remote-nrom.o): Obsolete target.
4765         (remote-nindy.o, i960-tdep.o): Ditto.
4766         * remote-nrom.c: Make file obsolete.
4767         * remote-nindy.c, remote-vx960.c: Ditto.
4768         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4769         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4770         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4771         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4772         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4773         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4774         i960-*-vxworks* obsolete.
4775         * MAINTAINERS: Note that the i960 is obsolete.
4776
4777 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4778
4779         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4780         detach to allow reinitialization.
4781
4782 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4783
4784         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4785         attempt).
4786
4787 2002-08-22  Jim Blandy  <jimb@redhat.com>
4788
4789         * coffread.c (coff_symfile_read): Don't try to read the line
4790         number table from disk if the image file doesn't have a symbol
4791         table; we'll never actually look at the info anyway, and Windows
4792         ships DLL's with bogus file offsets for the line number data.
4793
4794 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4795
4796         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4797         an e500 executable.
4798
4799 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4800
4801         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4802         (MSYMBOL_SIZE): Replace macro with function.
4803         (DEFAULT_MIPS_TYPE): Delete unused macro.
4804         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4805         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4806
4807 2002-08-21  Jim Blandy  <jimb@redhat.com>
4808
4809         * valops.c (value_cast): Simplify and correct logic for doing a
4810         static cast from a pointer to a base class to a pointer to a
4811         derived class.
4812
4813 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4814
4815         * infcmd.c (default_print_registers_info): Replace
4816         do_registers_info.
4817         (registers_info): Use gdbarch_print_registers_info instead of
4818         DO_REGISTERS_INFO.
4819         * inferior.h (default_print_registers_info): Replace
4820         do_registers_info.
4821         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4822         (DO_REGISTERS_INFO): Change to a predicate function.
4823         * gdbarch.h, gdbarch.c: Regenerate.
4824         
4825 2002-08-21  Keith Seitz  <keiths@redhat.com>
4826
4827         * gdb-events.sh: Add target-changed event.
4828         * gdb-events.c: Regenerated.
4829         * gdb-events.c: Regenerated.
4830         * valops.c (value_assign): Add target-changed event notification
4831         to inlval_register, lval_memory, and lval_reg_frame_relative.
4832
4833 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4834
4835         * NEWS: Add an entry regarding the improvement of the next/step
4836         operation on Alpha Tru64 multi-processor machines.
4837
4838 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4839
4840         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4841         directores.
4842         * Makefile.in: Update all _h macro definitions.
4843         * Makefile.in (install-gdbtk): Move to install section.
4844         (rdi-share/libangsd.a): Move to end of file.
4845
4846 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4847
4848         * frame.c (frame_register_unwind): When a register, set addrp to
4849         the register's byte.
4850
4851 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4852
4853         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4854         used locally, so move them from the target machine header to here.
4855         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4856         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4857         Make static.
4858         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4859
4860 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4861
4862         * NEWS: Mention that the Apollo line was made obsolete.
4863         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4864         m68*-hp-hpux* obsolete.
4865         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4866         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4867         * buildsym.c (make_blockvector): Make static.
4868         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4869         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4870         (ALLDEPFILES): Remove dstread.c.
4871         (dstread.o): Obsolete make rule.
4872         * dstread.c: Makefile obsolete.
4873         * dst.h: Ditto.
4874         * config/m68k/hp300hpux.mt: Ditto.
4875         * config/m68k/hp300hpux.mh: Ditto.
4876         * config/m68k/hp300bsd.mt: Ditto.
4877         * config/m68k/hp300bsd.mh: Ditto.
4878         * config/m68k/apollo68b.mt: Ditto.
4879         * config/m68k/apollo68v.mh: Ditto.
4880         * config/m68k/apollo68b.mh: Ditto.
4881
4882 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4883
4884         * mips-tdep.c (mips_in_return_stub): Make static.
4885         (mips_gdbarch_init): Set in_solib_return_trampoline.
4886         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4887
4888 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4889
4890         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4891         * gdbarch.c, gdbarch.h: Regenerate.
4892         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4893         Add.
4894         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4895
4896 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4897
4898         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4899         (mips_gdbarch_init): Set skip_trampoline_code, 
4900         in_solib_call_trampoline.
4901         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4902         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4903
4904 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4905
4906         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4907
4908         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4909         vector type for ev registers.
4910         (e500_pseudo_register_read): New function.
4911         (e500_pseudo_register_write): New function.
4912         (e500_dwarf2_reg_to_regnum): New function.
4913         (PPC_UISA_NOFP_SPRS): New macro.
4914         (PPC_EV_REGS): New macro.
4915         (PPC_GPRS_PSEUDO_REGS): New macro.
4916         (registers_e500): New register set for e500.
4917         (variants): Add e500 variant.
4918         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4919         before setting architectural dependent variations.  Initialize ev
4920         registers numbers.  Add case for e500 architecture.  Set the
4921         number of pseudo registers.
4922
4923 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4924
4925         * rs6000-tdep.c: Clean up comments.
4926
4927 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4928
4929         * h8300-tdep.c: Re-indent file.
4930
4931 2002-08-20  Jim Blandy  <jimb@redhat.com>
4932
4933         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4934         default for this.
4935
4936 2002-08-20  Keith Seitz  <keiths@redhat.com>
4937
4938         * breakpoints.c (watch_command_1): Use internal breakpoint
4939         when setting a watchpoint_scope breakpoint.
4940
4941 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4942
4943         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4944         (build_builtin_type_vec64i): Ditto.
4945         (build_builtin_type_vec128): Ditto.
4946         (build_builtin_type_vec128i): Ditto.
4947
4948 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4949
4950         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4951         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4952         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4953         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4954         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4955         CALL_DUMMY_ADDRESS): Delete.
4956         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4957         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4958         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4959         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4960         push_return_address.
4961         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4962         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4963         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4964         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4965         mips_n32n64_push_arguments, mips_push_return_address,
4966         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4967         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4968
4969 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4970
4971         * mips-tdep.c (mips_frame_num_args): New function.
4972         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4973         frame_saved_pc, frame_args_address, frame_locals_address, 
4974         frame_num_args, and frame_args_skip.
4975         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4976         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4977         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4978         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4979
4980 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4981
4982         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4983         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4984         * mips-tdep.c (mips_store_struct_return): New function.
4985         (mips_extract_struct_value_address): New function.
4986         (mips_gdbarch_init): Set store_struct_return and
4987         extract_struct_value_address.
4988
4989 2002-08-20  David Carlton  <carlton@math.stanford.edu>
4990
4991         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4992         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4993         (read_file_scope): Check that line_header is nonzero before
4994         decoding macro information.
4995
4996 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
4997
4998         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4999         flag the general-purpose registers as floating-point on targets
5000         that don't support the floating-point registers.
5001
5002 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5003
5004         * rs6000-tdep.c (altivec_register_p): Delete.
5005         (rs6000_do_altivec_registers): Delete.
5006         (rs6000_altivec_registers_info): Delete.
5007         (rs6000_do_registers_info): Delete.
5008         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5009         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5010
5011 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5012
5013         * infcmd.c (do_registers_info): Print vector registers in hex
5014         format only.
5015         (print_vector_info): Check that printing registers
5016         makes sense.
5017         (print_float_info): Ditto.
5018
5019 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5020
5021         * mips-tdep.c (mips_gdbarch_init): Update.
5022         (mips_o32_extract_return_value): Rewrite.
5023         (mips_o32_store_return_value): Rewrite.
5024         (mips_o32_xfer_return_value): New function.
5025         (mips_xfer_register): Tweak debug print message.  Allow for
5026         buf_offset when dumping the value transfered.
5027
5028 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5029
5030         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5031         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5032         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5033         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5034         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5035
5036 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5037
5038         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5039
5040 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5041
5042         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5043         register.
5044         (P): New macro to define a register as a pseudo register.
5045         (R, R4, R8, R16, FR32, R64, R0): Updated.
5046         (struct variant): Add new fields for number of pseudo registers
5047         and number of total registers.
5048         (tot_num_registers): New macro replacing....
5049         (num_registers): ...deleted macro.
5050         (num_registers): New function.
5051         (num_pseudo_registers): New function.
5052         (variants): Update all variants to intialize new fields correctly.
5053         Postpone initialization of number of pseudo regs and real regs.
5054         (init_variants): New function.
5055         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5056         registers offsets.
5057
5058 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5059
5060         * valops.c (search_struct_field): Change error message to treat
5061         return value of 0 from value_static_field as meaning that field is
5062         optimized out.
5063         (value_struct_elt_for_reference): Ditto.
5064         * values.c (value_static_field): Treat an unresolved location the
5065         same as a nonexistent symbol.  Fix PR gdb/635.
5066         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5067         enclosed.  Fix PR gdb/574.
5068         * MAINTAINERS: Add self to Write After Approval list.
5069
5070 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5071
5072         * mips-tdep.c (mips_xfer_register): New function.
5073         (mips_n32n64_extract_return_value): Rewrite.
5074         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5075         instead of deprecated_extract_return_value.
5076
5077 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5078
5079         * rs6000-tdep.c (TDEP): Delete macro.
5080         (branch_dest): Replace use of TDEP macro with its body.
5081         (rs6000_pop_frame): Ditto.
5082         (rs6000_push_arguments): Ditto.
5083         (rs6000_skip_trampoline_code): Ditto.
5084         (rs6000_frame_saved_pc): Ditto.
5085         (rs6000_frame_chain): Ditto.
5086         (rs6000_register_name): Ditto.
5087         (rs6000_register_byte): Ditto.
5088         (rs6000_register_raw_size): Ditto.
5089         (rs6000_register_virtual_type): Ditto.
5090         (rs6000_register_convertible): Ditto.
5091         (rs6000_convert_from_func_ptr_addr): Ditto.
5092
5093 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5094
5095         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5096         conditionally.
5097         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5098         MIPS_LINUX_JB_ELEMENT_SIZE.
5099         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5100         for MAX_REGISTER_RAW_SIZE arrays.
5101         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5102         MIPS_LINUX_JB_ELEMENT_SIZE.
5103
5104 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5105
5106         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5107
5108 2002-08-19  Aidan Skinner <aidan@velvet.net>
5109
5110         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5111         ada-valprint.c ada-tasks.c.
5112         (YYFILES): Add ada-exp.y.
5113         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5114         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5115         (ada-exp.tab.o): New target.
5116                 
5117 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5118
5119         * regcache.c (regcache_xfer_part): New function.
5120         (regcache_raw_read_part): New function.
5121         (regcache_raw_write_part): New function.
5122         (regcache_cooked_read_part): New function.
5123         (regcache_cooked_write_part): New function.
5124         * regcache.h (regcache_raw_read_part): Declare.
5125         (regcache_raw_write_part): Declare.
5126         (regcache_cooked_read_part): Declare.
5127         (regcache_cooked_write_part): Declare.
5128
5129 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5130
5131         * remote.c (remote_open_1): Add async_p.
5132         (remote_async_open_1): Delete.
5133         (open_remote_target): Delete.
5134         (remote_open, extended_remote_open): Update calls to remote_open_1.
5135         (remote_async_open, extended_remote_async_open): Call
5136         remote_open_1 instead of remote_async_open_1.
5137
5138 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5139
5140         * blockframe.c: Fix a few coding standard violations.
5141
5142 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5143
5144         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5145         here from ...
5146         * config/i386/tm-i386sco5.h: ... here.  File removed.
5147         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5148
5149         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5150         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5151         (TM_FILE): Set to tm-i386.h.
5152         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5153         * config/i386/tm-i386v.h: Remove file.
5154         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5155         instead of "i386/tm-i386v.h".
5156         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5157         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5158         "i386/tm-i386v.h".
5159         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5160         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5161         "i386/tm-i386.h".
5162
5163 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5164
5165         * config/i386/nm-i386v.h: Add protection against
5166         multiple-inclusion.
5167         (i386_register_u_addr): Remove prototype.
5168         (register_u_addr): New prototype.
5169         (REGISTER_U_ADDR): Redefine accordingly.
5170         * i386v-nat.c: Improve several comments.
5171         (i386_register_u_addr): Change signature and rename to
5172         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5173         ubase variable.
5174
5175 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5176
5177         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5178         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5179         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5180         deprecated_extract_return_value.
5181         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5182         rename mips_o32o64_push_arguments.
5183         (mips_gdbarch_init): Update.
5184         (mips_extract_return_value): Delete.
5185         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5186         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5187         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5188         (mips_n32n64_extract_return_value): Clone
5189         mips_extract_return_value.
5190         (mips_store_return_value): Delete.
5191         (mips_o32_store_return_value): Clone mips_store_return_value.
5192         (mips_o64_store_return_value): Clone mips_store_return_value.
5193         (mips_eabi_store_return_value): Clone mips_store_return_value.
5194         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5195
5196 2002-08-18  Aidan Skinner <aidan@velvet.net>
5197
5198         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5199         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5200                 
5201 2002-08-18  Aidan Skinner <aidan@velvet.net>
5202
5203         * ada-lang.c: Run through gdb_indent.sh.
5204         * ada-lang.h: Run through gdb_indent.sh.
5205         * ada-tasks.c: Run through gdb_indent.sh.
5206         * ada-typeprint.c: Run through gdb_indent.sh.
5207         * ada-valprint.c: Run through gdb_indent.sh.
5208
5209 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5210
5211         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5212         ABI.
5213
5214 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5215
5216         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5217
5218         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5219         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5220
5221         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5222         write_register_gen instead of write_register_bytes.
5223
5224         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5225         i[3456]-*-osf1mk* configurations have been made obsolete.
5226         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5227         i[3456]86-*-osf1mk* hosts obsolete.
5228         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5229         targets obsolete.
5230         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5231         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5232         config/i386/i386m3.mt, config/i386/nm-m3.h,
5233         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5234         config/i386/i386mk.mh, config/i386/i386mk.mt,
5235         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5236         obsolete.
5237         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5238         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5239         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5240
5241 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5242
5243         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5244         (hppa_value_returned_from_stack): Declare.
5245         (hppa_extract_return_value): Declare.
5246         * config/pa/hppa.mt: New file.
5247         * configure.tgt: Recognize hppa*-*-*.
5248         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5249
5250 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5251
5252         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5253         comment.
5254
5255 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5256
5257         * top.c (gdb_rl_operate_and_get_next): Make sure
5258         operate-and-get-next functions correctly even when the history
5259         list is completely filled.
5260
5261 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5262
5263         * MAINTAINERS (Target Instruction Set Architectures): Rename
5264         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5265         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5266         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5267         already listed under Host/Native.
5268
5269         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5270         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5271         mips*-*-*.
5272
5273 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5274
5275         * config/ia64/ia64.mt: New file.
5276         * config/alpha/alpha.mt: New file.
5277         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5278         ia64-linux-gnu.  Mention that ia64-elf is broken.
5279         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5280
5281 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5282
5283         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5284         generic_func_frame_valid instead of func_frame_valid.
5285
5286 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5287
5288         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5289         procfs appears to be broken when debugging on multi-processor
5290         machines. So enable software single stepping in order to avoid
5291         using the procfs interface to do next/step operations, using
5292         internal breakpoints instead.
5293
5294         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5295         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5296         make this pc address equal to the value it would have if the
5297         system stepping capability was used. Also set a new flag used
5298         to ensure that we don't readjust the PC one more time later.
5299
5300         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5301         address by DECR_PC_AFTER_BREAK when software single step is
5302         in use for this architecture, as this has already been taken
5303         care of in handle_inferior_event().
5304
5305 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5306
5307         * infrun.c (handle_inferior_event): Minor reformatting, to make
5308         a rather long condition expression easier to read.
5309
5310 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5311
5312         * Makefile.in (gdbtk.o): Move to end of file.
5313         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5314         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5315         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5316         (gdbtk-wrapper.o, gdbres.o): Ditto.
5317
5318 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5319
5320         * Makefile.in (copying.o): Separate out compile rule.
5321         (hpux-thread.o, procfs.o, signals.o): Ditto.
5322         (v850ice.o, z8k-tdep.o): Ditto.
5323         (tui-file.o): Move to TUI section.
5324         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5325         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5326
5327 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5328
5329         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5330         skip_trampoline_code, for better namespace-proofing.   
5331
5332         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5333
5334 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5335
5336         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5337
5338 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5339
5340         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5341         signal, check whether we hit a breakpoint before checking for a
5342         single step breakpoint. Otherwise, GDB fails to notice that a
5343         breakpoint has been hit when stepping onto a breakpoint.
5344
5345 2002-08-16  Keith Seitz  <keiths@redhat.com>
5346
5347         * gdb-events.sh (clear_gdb_event_hooks): New function.
5348         * gdb-events.c: Regenerate.
5349         * gdb-events.h: Regenerate.
5350
5351 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5352
5353         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5354         not_a_sw_breakpoint.
5355         * breakpoint.h (bpstat_stop_status): Add parameter names.
5356
5357 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5358
5359         * remote.c (remote_insert_hw_breakpoint)
5360         (remote_remove_hw_breakpoint): Fix calculation of length field
5361         for Z-packet.
5362
5363 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5364
5365         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5366         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5367         (supply_fpregset): Ditto.
5368         
5369         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5370         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5371         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5372         (TARGET_READ_SP): Delete.
5373         (DO_REGISTERS_INFO): Delete.
5374         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5375         Delete.
5376         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5377         from macros to functions.
5378
5379         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5380         (mips_register_convertible, mips_register_convert_to_virtual,
5381         mips_register_convert_to_raw): Make static.
5382         (mips_read_sp): New function.
5383         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5384         (mips_do_registers_info): Make static.
5385         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5386         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5387         (mips_register_convert_from_type, mips_register_convert_to_type):
5388         New functions.
5389         (mips_gdbarch_init): Set up function_start_offset, 
5390         register_virtual_size, pc_in_sigtramp.
5391
5392 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5393
5394         * infcmd.c (vector_info): New function.
5395         (_initialize_infcmd): Add command "info vector".
5396         (print_vector_info): New function.
5397
5398         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5399         * gdbarch.h, gdbarch.c: Regenerate.
5400
5401 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5402
5403         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5404         ``print_all''.  Only print vector registers when ``print_all''.
5405
5406 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5407
5408         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5409         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5410
5411         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5412         Add `args' parameter.
5413         * gdbarch.h, gdbarch.c: Regenerate.
5414         
5415         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5416         
5417         * infcmd.c (float_info): Call print_float_info.
5418         (print_float_info): New function.  By default, print the
5419         floating-point registers.
5420
5421         * arch-utils.h (default_print_float_info): Delete declaration.
5422         * arch-utils.c (default_print_float_info): Delete function.
5423         
5424 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5425
5426         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5427         out define.
5428
5429         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5430         FRAME.
5431
5432         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5433         * configure.host: Make i[3456]86-*-aix host obsolete.
5434         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5435         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5436         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5437         config/i386/xm-i386aix.h: Make files obsolete.
5438         * i386aix-nat.c: Make file obsolete.
5439         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5440         (i386aix-nat.o): Make target obsolete.
5441
5442         * config/i386/nm-gnu.h: Removed.
5443         * config/i386/nm-i386gnu.h: New file.
5444         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5445         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5446         Moved here from ...
5447         * config/i386/tm-i386gnu.h: ... here.  Removed.
5448         * config/i386/xm-i386gnu.h: Removed.
5449         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5450         (NAT_FILE): Set to nm-i386gnu.h.
5451         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5452         * i386-tdep.c: New file.
5453         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5454         (i386gnu-tdep.o): Specify dependencies.
5455
5456 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5457
5458         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5459         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5460         Adjust a few comments to reflect reality a bit closer.
5461         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5462         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5463         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5464         target_insert_watchpoint, target_remove_watchpoint):
5465         Move defines to ...
5466         * config/i386/nm-i386sco5.h: ... here.
5467         (kernel_u_size): Add prototype.  Improve a few comments and add
5468         protection against multiple inclusion.
5469         
5470         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5471         out define.
5472
5473         * uw-thread.c (SP_ARG0): Define if not already defined.
5474         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5475
5476         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5477
5478         * config/i386/tm-i386.h: Don't include "regcache.h".
5479
5480         * i387-tdep.h (i387_print_float_info): New prototype.
5481         * i387-tdep.c (print_i387_value, print_i387_ext,
5482         print_i387_status_word, print_i387_control_word): Add `struct
5483         ui_file *' argument and use it for output.
5484         (i387_print_float_info): Renamed from i387_float_info.  Add
5485         `struct gdbarch *' and `struct ui_file *' arguments and use the
5486         latter for output.
5487         * i386-tdep.c: Include "i387-tdep.h".
5488         (i386_gdbarch_init): Set print_float_info.
5489         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5490         (FLOAT_INFO): Remove define.
5491
5492 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5493
5494         * mips-tdep.c (mips_push_arguments): Rename to
5495         mips_eabi_push_arguments, and tune for EABI.
5496         (MIPS_REGS_HAVE_HOME_P): Delete.
5497         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5498         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5499         Delete references to mips_regs_have_home_p.
5500
5501 2002-08-14  Keith Seitz  <keiths@redhat.com>
5502
5503         * Makefile.in (install-gdbtk): Create insight plugin directory.
5504         Install plugins.tcl file.
5505
5506 2002-08-14  Keith Seitz  <keiths@redhat.com>
5507
5508         * configure.in: Move SUBDIRS to near top of the file so that
5509         --enable options may add things to it.
5510         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5511         * configure: Regenerate.
5512
5513 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5514
5515         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5516         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5517         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5518
5519 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5520
5521         * vax-tdep.c (vax_get_saved_register): Delete function.
5522         (vax_gdbarch_init): Update.
5523         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5524         (ns32k_gdbarch_init): Update.
5525         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5526         (alpha_gdbarch_init): Update.
5527
5528 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5529
5530         * regcache.c (init_regcache_descr): Overallocate the
5531         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5532         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5533         nr_raw_registers.
5534         (set_register_cached): Add range checking assertions.  Use
5535         current_regcache.
5536
5537 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5538
5539         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5540         numbers for MMX registers.
5541
5542 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5543
5544         * i386-tdep.c (i386_gdbarch_init): Use
5545         generic_unwind_get_saved_register.
5546
5547 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5548
5549         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5550         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5551         target vector.
5552         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5553         Delete.  Add comment regarding this now-deleted target method.
5554
5555 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5556
5557         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5558         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5559         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5560         real PC and the page number (if it's within the memory bank window).
5561         (m68hc11_pseudo_register_write): Likewise when saving.
5562         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5563         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5564         (m68hc11_register_raw_size): And use 32-bit for it.
5565         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5566         16K memory bank is used by the prog; also use the virtual pc.
5567
5568 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5569
5570         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5571         (m68hc11_gdbarch_init): Install it in gdbarch.
5572         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5573         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5574         (MSYMBOL_SIZE): New for documentation.
5575         (insn_return_kind): Enum to specify how a function returns.
5576         (frame_extra_info): Cleanup and record the return mode.
5577         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5578         register in address computation.
5579         (m68hc11_get_return_insn): New to obtain the return instruction used
5580         by the function.
5581         (m68hc11_frame_init_saved_regs): Take into account the return
5582         instruction used by the function for far and interrupt functions.
5583         (m68hc11_init_extra_frame_info): Take into account page register.
5584         (m68hc11_frame_args_address): Adjust according to the return mode.
5585         (show_regs): Print page register only when it's used.
5586
5587 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5588
5589         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5590         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5591         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5592         registers.
5593         (m68hc11_register_raw_size): Likewise.
5594
5595 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5596
5597         * i386-tdep.c (i386_register_name): Handle mmx registers.
5598         (mmx_regnum_p): New function.
5599         (i386_mmx_names): New array.
5600         (mmx_num_regs): New variable.
5601         (i386_pseudo_register_read): New function.
5602         (i386_pseudo_register_write): New function.
5603         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5604
5605         * regcache.c (regcache_raw_read_unsigned): New function.
5606         (regcache_raw_read_signed): New function.
5607         * regcache.h (regcache_raw_read_unsigned): Declare.
5608         (regcache_raw_read_signed): Declare.
5609
5610 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5611
5612         * regcache.c (regcache_raw_read_as_address): Delete function.
5613         (regcache_cooked_read_signed): New function.
5614         (regcache_cooked_read_unsigned): New function.
5615         * regcache.h (regcache_cooked_read_signed): Declare.
5616         (regcache_cooked_read_unsigned): Declare.
5617         (regcache_raw_read_as_address): Delete declaration.
5618
5619         * blockframe.c (generic_read_register_dummy): Use
5620         regcache_cooked_read_unsigned.
5621         * i386-tdep.c (i386_extract_struct_value_address): Use
5622         regcache_cooked_read_unsigned.
5623
5624 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5625
5626         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5627         double sizes according to ELF ABI flags.
5628         (gdbarch_tdep): Record elf_flags.
5629
5630 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5631
5632         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5633         (m6812_prolog): They can appear in 68HC12 function prologue.
5634         (m68hc11_frame_chain): Cleanup.
5635
5636 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5637
5638         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5639         declarations.
5640         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5641         (i386_linux_register_raw_size): Delete function.
5642         (i386_linux_init_abi): Update.
5643         * i386-tdep.c (i386_register_raw_size): Delete function.
5644         (i386_register_byte): Delete function.
5645         (i386_gdbarch_init): Update.
5646         (i386_register_size): Delete array.
5647         (i386_register_offset): Delete array.
5648
5649         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5650         (REGISTER_RAW_SIZE): Delete macro.
5651         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5652         (REGISTER_BYTE): Delete macro.
5653
5654 2002-08-11  Aidan Skinner <aidan@velvet.net>
5655
5656         * ada-lang.c (ada_lookup_partial_symbol)
5657         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5658         prototype names so that grep ^func works properly.
5659
5660         * ada-lang.c (ada_array_element_type)
5661         (ada_lookup_partial_symbol): Fix typos in parameter list.
5662
5663         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5664         Fix prototype names so that grep ^func works properly.
5665         
5666 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5667             Elena Zannoni  <ezannoni@redhat.com>
5668             Martin M. Hunt  <hunt@redhat.com>
5669
5670         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5671         (build_builtin_type_vec128i): Set the vector bit.
5672         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5673         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5674         (build_builtin_type_vec64): New function.
5675         (build_builtin_type_vec64i): New function.
5676         (build_gdbtypes): Initialize builtin_type_vec64 and
5677         builtin_type_vec64i.
5678
5679 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5680
5681         * regcache.c (regcache_dump): Compare the register offset
5682         with REGISTER_BYTE.
5683         * arch-utils.c (generic_register_byte): New function.
5684         * arch-utils.h (generic_register_byte): Declare.
5685         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5686         * gdbarch.h, gdbarch.c: Regenerate.
5687
5688 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5689
5690         * regcache.c: Include "gdbcmd.h"
5691         (_initialize_regcache): Add commands "maintenance print
5692         registers", "maintenance print raw-registers" and "maintenance
5693         print cooked-registers".
5694         (enum regcache_dump_what): Define.
5695         (dump_endian_bytes): New function.
5696         (regcache_dump): New function.
5697         (regcache_print): New function.
5698         (maintenance_print_registers): New function.
5699         (maintenance_print_raw_registers): New function.
5700         (maintenance_print_cooked_registers): New function.
5701         * Makefile.in (regcache.o): Update dependencies.
5702
5703 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5704
5705         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5706         (mips_push_arguments): Correct some comments.  Use paddr_nz
5707         for printing addresses in debug output.  Replace static
5708         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5709         (mips_n32n64_push_arguments): New function, cloned from
5710         mips_push_arguments and tuned for the n32/n64 ABI.
5711         (mips_push_register): Buffer needs dynamic allocation.
5712         (mips_print_register): Ditto.
5713         (do_gp_register_row): Ditto.
5714         (mips_store_return_value): Ditto.
5715         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5716
5717 2002-08-09  Don Howard  <dhoward@redhat.com>
5718
5719         * memattr.c (mem_info_command): Print special case of upper bound
5720         as max CORE_ADDR + 1.
5721
5722 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5723
5724         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5725         returns structs by ref if they're too big to fit in two registers.
5726
5727 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5728
5729         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5730         saved regs value.
5731         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5732         mips_find_saved_regs().
5733         (mips_pop_frame): Likewise.
5734
5735 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5736
5737         * blockframe.c (frame_saved_regs_register_unwind): Revise
5738         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5739         frames are in use.
5740
5741 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5742         
5743         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5744         T-packets; the 'a' is not taken as a register number.
5745         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5746         (remote_stopped_data_address): New functions; add to target
5747         vector.
5748         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5749         prototypes to match other implementations of this
5750         function. replace integer argument with pointer -- the length
5751         field in the Z-packet is the length of what is pointed to or 1 if
5752         pointer is null. Add to target vector.
5753         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5754         target vector.
5755
5756         From Mark Salter:
5757         * remote.c (remote_wait): Add support to extract optional
5758         watchpoint information from T-packet. Ignore unrecognized
5759         optional info in T-packet.
5760         (remote_async_wait): Ditto.
5761
5762 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5763
5764         * cli/cli-dump.c: Change fopen modes to use binary open modes
5765         as defined in include/fopen-bin.h throughout.
5766
5767 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5768
5769         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5770
5771 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5772
5773         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5774         assertion failure by returning early after a warning.
5775
5776 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5777
5778         * mips-tdep.c (mips_find_saved_regs): Make static.
5779         (mips_frame_init_saved_regs): New function.
5780         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5781         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5782         (mips_find_saved_regs): Delete declaration.
5783
5784 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5785
5786         * remote.c (remote_wait, remote_async_wait): Change
5787         thread_num from int to ULONGEST.
5788         (unpack_varlen_hex): Change result parameter from
5789         int * to ULONGEST *.
5790
5791 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5792
5793         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5794         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5795         powerpc*-*-*.
5796         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5797
5798 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5799
5800         * gcore.c (override_derive_stack_segment): Delete variable.
5801         (preempt_derive_stack_segment): Delete function.
5802         (derive_stack_segment): Delete function.
5803         (default_derive_stack_segment): Renamed to derive_stack_segment.
5804         (override_derive_heap_segment): Delete variable.
5805         (preempt_derive_heap_segment): Delete function.
5806         (derive_heap_segment): Delete function.
5807         (default_derive_heap_segment): Rename to derive_heap_segment.
5808
5809 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5810
5811         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5812         * mips-tdep.c (mips_EABI_use_struct_convention, 
5813         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5814         New functions.  (mips_use_struct_convention): Delete.
5815         (mips_gdbarch_init): set use_gdbarch_convention.
5816
5817 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5818
5819         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5820         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5821         mips_o32_reg_struct_has_addr): New functions.
5822         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5823
5824 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5825
5826         * regcache.c (pseudo_register): Delete function.
5827         (fetch_register): Delete function.
5828         (store_register): Delete function.
5829         (regcache_raw_read, legacy_read_register_gen): Use
5830         target_fetch_registers instead of fetch_register.
5831         (legacy_write_register_gen, regcache_raw_write): Use
5832         target_store_register instead of store_register.
5833         (write_register_bytes): Ditto.
5834
5835         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5836         (STORE_PSEUDO_REGISTER): Delete.
5837         * gdbarch.h, gdbarch.c: Regenerate.
5838
5839 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5840
5841         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5842         write dump file binary.
5843
5844 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5845
5846         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5847         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5848         (mips_gdbarch_init): Set N32 target to be mips64.
5849
5850 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5851
5852         * frame.c (find_saved_register): Break out of loop once saved
5853         register address is found.  Don't mention sparc in loop comment
5854         anymore.
5855
5856 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5857
5858         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5859         mips_default_saved_regsize to 8.
5860
5861 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5862
5863         * gcore.c: Do not include <sys/procfs.h>.
5864         * Makefile.in (gcore.o): Update dependencies.
5865
5866 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5867
5868         * configure.tgt: Make arc-*-* obsolete.
5869         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5870         * MAINTAINERS: Make arc-elf obsolete.
5871         * arc-tdep.c: Make file obsolete.
5872         * config/arc/arc.mt: Ditto.
5873         * config/arc/tm-arc.h: Ditto.
5874
5875 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5876
5877         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5878
5879 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5880
5881         * mcore-tdep.c (mcore_gdbarch_init): Use
5882         generic_unwind_get_saved_register instead of
5883         generic_get_saved_register.
5884         * v850-tdep.c (v850_gdbarch_init): Ditto.
5885         * frv-tdep.c (frv_gdbarch_init): Ditto.
5886         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5887         * s390-tdep.c (s390_gdbarch_init): Ditto.
5888         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5889         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5890         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5891
5892 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5893
5894         * objfiles.h: Add missing #include "symfile.h"
5895
5896         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5897
5898 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5899
5900         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5901         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5902         of FIELD_BITSIZE.
5903
5904 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5905
5906         * NEWS: Cleanup and nitpick.
5907
5908 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5909
5910         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5911
5912 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5913
5914         * Makefile.in (gdbtk-bp.o): Update dependencies.
5915         (gdbtk-register.o): Ditto.
5916         (gdbtk-varobj.o): Ditto.
5917
5918 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5919
5920         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5921         m68hc11_fetch_pseudo_register.
5922         (m68hc11_pseudo_register_write): Replace
5923         m68hc11_store_pseudo_register.
5924         (m68hc11_gdbarch_init): Update.
5925
5926 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5927
5928         * gdbarch.sh: Include "gdb_string.h".
5929         * gdbarch.c: Regenerate.
5930
5931         * regcache.c: Include "gdb_string.h".
5932         * ax-general.c: Ditto.
5933         * varobj.c: Ditto.
5934         * std-regs.c: Ditto.
5935         * fbsd-proc.c: Ditto.
5936         * thread.c: Ditto.
5937
5938         * Makefile.in (regcache.o): Update dependencies.
5939         (thread.o, gdbarch.o): Ditto.
5940         (ax-general.o, gdbarch.o): Ditto.
5941         (varobj.o, std-regs.o): Ditto.
5942         (fbsd-proc.o): Specify dependencies.
5943
5944 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5945
5946         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5947         regnum.
5948         (regcache_cooked_write): Ditto.
5949
5950 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5951
5952         * regcache.c (regcache_cooked_read): New function.
5953         (regcache_cooked_write): New function.
5954         (read_register_gen): Rewrite using regcache_cooked_read.
5955         (write_register_gen): Rewrite using regcache_cooked_write.
5956
5957         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5958         Declare.
5959
5960 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5961
5962         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5963         Replace the architecture methods register_read and register_write.
5964         * gdbarch.h, gdbarch.c: Regenerate.
5965         * regcache.c (init_regcache_descr): Update.
5966         (read_register_gen): Update.
5967         (write_register_gen): Update.
5968         (supply_register): Update comment.
5969
5970         * sh-tdep.c (sh_gdbarch_init): Update.
5971         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5972         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5973         pointer.  Update code.
5974         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5975         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5976         void pointer.  Update code.
5977         (sh64_register_write): Delete.
5978         (sh4_register_read): Delete.
5979         (sh64_register_read): Delete.
5980         (sh4_register_write): Delete.
5981         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5982         void pointer, `to' parameter a void pointer.
5983         (sh_sh64_register_convert_to_raw): Ditto.
5984
5985 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5986
5987         * mips-tdep.c (mips_register_virtual_type): Use architecture
5988         invariant return values.
5989
5990 2002-08-01  Andrew Cagney  <cagney@redhat.com>
5991
5992         * linux-proc.c: Include "gdb_string.h".
5993         * Makefile.in (linux-proc.o): Update dependency list.
5994
5995 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
5996
5997         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5998         comment.
5999
6000 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6001
6002         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6003         to_insert_watchpoint, to_remove_watchpoint,
6004         to_stopped_by_watchpoint, to_stopped_data_address,
6005         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6006         target vecctor. Define their corresponding macros so they call
6007         them.
6008         
6009         * target.c: Add default and debug versions of for
6010         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6011         to_insert_watchpoint, to_remove_watchpoint,
6012         to_stopped_by_watchpoint, to_stopped_data_address,
6013         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6014
6015 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6016
6017         * mips-tdep.c (mips_register_virtual_type): New function.
6018         (mips_gdbarch_init): Register mips_register_virtual_type()
6019         with gdbarch machinery.
6020         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6021         this file instead of tm-bigmips.h.
6022         (MIPS_REGSIZE): Delete this macro.
6023         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6024         multiarch version in mips-tdep.c will be found.
6025
6026 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6027
6028         * NEWS: Menion that CHILL has been made obsolete.
6029
6030         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6031         * stabsread.c (read_range_type): Ditto.
6032         * gdbtypes.h: Ditto.
6033         * language.c (binop_type_check): Ditto.
6034         (binop_result_type): Ditto.
6035         (integral_type): Ditto.
6036         (character_type): Ditto.
6037         (string_type): Ditto.
6038         (boolean_type): Ditto.
6039         (structured_type): Ditto.
6040         (lang_bool_type): Ditto.
6041         (binop_type_check): Ditto.
6042         * language.h (_LANG_chill): Ditto.
6043         * dwarfread.c (set_cu_language): Ditto.
6044         * dwarfread.c (CHILL_PRODUCER): Ditto.
6045         * dwarfread.c (handle_producer): Ditto.
6046         * expression.h (enum exp_opcode): Ditto.
6047         * eval.c: Ditto for comments.
6048         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6049         * expprint.c (print_subexp): Ditto.
6050         (print_subexp): Ditto.
6051         * valops.c (value_cast): Ditto.
6052         (search_struct_field): Ditto.
6053         * value.h (COERCE_VARYING_ARRAY): Ditto.
6054         * symfile.c (init_filename_language_table): Ditto.
6055         (add_psymbol_with_dem_name_to_list): Ditto.
6056         * valarith.c (value_binop): Ditto.
6057         (value_neg): Ditto.
6058         * valops.c (value_slice): Ditto.
6059         * symtab.h (union language_specific): Ditto.
6060         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6061         (SYMBOL_DEMANGLED_NAME): Ditto.
6062         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6063         * defs.h (enum language): Ditto.
6064         * symtab.c (got_symtab): Ditto.
6065         * utils.c (fprintf_symbol_filtered): Ditto.
6066
6067         * ch-typeprint.c: Make file obsolete.
6068         * ch-valprint.c: Make file obsolete.
6069         * ch-lang.h: Make file obsolete.
6070         * ch-exp.c: Make file obsolete.
6071         * ch-lang.c: Make file obsolete.
6072
6073         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6074         CHILL_LIB.
6075         (TARGET_FLAGS_TO_PASS): Ditto.
6076         (CHILLFLAGS): Obsolete.
6077         (CHILL): Obsolete.
6078         (CHILL_FOR_TARGET): Obsolete.
6079         (CHILL_LIB): Obsolete.
6080         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6081         ch-valprint.c.
6082         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6083         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6084         ch-lang.o.
6085         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6086         targets.
6087
6088 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6089
6090         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6091         This does not change anything at the moment, but will be helpful
6092         later when full Ada support is integrated.
6093
6094 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6095
6096         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6097         help message.
6098
6099 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6100
6101         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6102         and save it in a local variable.  Use variable in later test.
6103
6104 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6105
6106         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6107         test.  (Thanks to Daniel Jacobowitz.)
6108         
6109 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6110
6111         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6112         (mips_abi_strings): Add "n64".
6113         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6114
6115 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6116
6117         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6118         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6119
6120 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6121
6122         * utils.c (host_pointer_to_address, address_to_host_pointer):
6123         Use gdb_assert() instead of explicit call to internal_error().
6124
6125 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6126
6127         * Makefile.in (rs6000-nat.o): Update dependencies.
6128
6129         From Nicholas Duffek:
6130         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6131         (aix-thread.o): New rule.
6132         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6133         * config/powerpc/aix432.mh: New file.
6134
6135 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6136
6137         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6138         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6139         (fetch_core_registers, ppc_linux_supply_gregset)
6140         (ppc_linux_supply_fpregset): New functions.
6141         (ppc_linux_regset_core_fns): New.
6142         (_initialize_ppc_linux_tdep): Call add_core_fns.
6143         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6144         and ppc_linux_supply_gregset.
6145         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6146         (supply_fpregset): Call ppc_linux_supply_fpregset.
6147         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6148         corelow.o.
6149         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6150
6151 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6152
6153         * symtab.c (lookup_symbol): Demangle before lowercasing.
6154
6155 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6156
6157         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6158         declaration.
6159         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6160         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6161         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6162         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6163         "gdb_string.h".
6164         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6165         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6166         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6167         (avr-tdep.o, mon960-rom.o): Ditto.
6168         (aout_stabs_gnu_h): Define.
6169         (symtab_h): Remove $(gdb_obstack_h).
6170
6171 2002-07-30  Jim Blandy  <jimb@redhat.com>
6172
6173         Patch from David Carlton <carlton@math.stanford.edu>:
6174         * gdbinit.in: Move the `dir' commands that add GDB's own source
6175         directory to the search path to the end, so that the `gdb' source
6176         directory will be searched first.
6177
6178 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6179
6180         * gdb_obstack.h: New file.
6181         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6182         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6183         * objfiles.h: Include "gdb_obstack.h".
6184         * Makefile.in (gdb_obstack_h): Define.
6185         (symtab_h): Add $(gdb_obstack_h).
6186         (objfiles_h): Add $(gdb_obstack_h).
6187         
6188         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6189         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6190         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6191         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6192         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6193         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6194         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6195         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6196
6197         * Makefile.in (bcache.o): Update dependencies.
6198         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6199         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6200         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6201         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6202         (stabsread.o, symfile.o, symmisc.o): Ditto.
6203         (symtab.o, typeprint.o, macroexp.o): Ditto.
6204         (macrotab.o, mdebugread.o): Ditto.
6205         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6206         (coff_ecoff_h, aout_aout64_h): Define.
6207         (aout_stabs_gnu_h, libaout_h): Define.
6208
6209 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6210
6211         * regcache.c (struct regcache_descr): Rename nr_registers to
6212         nr_cooked_registers.  Revise comments describing the structure
6213         member fields.
6214         (init_regcache_descr): Update.
6215         (init_legacy_regcache_descr): Update.
6216         (read_register_gen, write_register_gen): When a cooked register in
6217         the raw register range, directly access the value from the raw
6218         register cache.
6219
6220 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6221
6222         * z8k-tdep.c: Do not include "obstack.h".
6223         * h8300-tdep.c, h8500-tdep.c: Ditto.
6224         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6225         * valprint.c, v850-tdep.c: Ditto.
6226         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6227         * mn10200-tdep.c: Ditto.
6228
6229         * Makefile.in (z8k-tdep.o): Update dependencies.
6230         (m68hc11-tdep.o, valprint.o): Ditto.
6231         (v850-tdep.o, d10v-tdep.o): Ditto.
6232         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6233         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6234         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6235         (sh_opc_h, gdb_sim_sh_h): Define.
6236         (elf_sh_h, elf_bfd_h): Define.
6237         (opcode_m68hc11_h): Define.
6238         (OPCODES_SRC, OPCODES_DIR): define.
6239         (OPCODES): Use $(OPCODES_DIR).
6240         (gdb_sim_d10v_h): Rename sim_d10v_h.
6241         (gdb_sim_arm_h): Rename sim_arm_h.
6242
6243 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6244
6245         * utils.c (host_pointer_to_address, address_to_host_pointer):
6246         Change internal_error() message to indicate function responsible
6247         for the error.
6248
6249 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6250
6251         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6252         calls to local_hex_string_custom().
6253
6254 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6255
6256         * irix5-nat.c: Move IRIX shared library support from here...
6257         * solib-irix.c: ...to here.  Revised substantially to work with
6258         generic solib framework.
6259
6260         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6261         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6262         * mips-irix-tdep.c: New file.
6263
6264         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6265         (mips-irix-tdep.o, solib-irix.o): New rules.
6266         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6267         solib-irix.o.
6268         * config/mips/irix6.mt (TDEPFILES): Likewise.
6269         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6270
6271 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6272
6273         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6274         disabled (via ``#if 0'') includes.
6275
6276 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6277
6278         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6279         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6280         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6281         Add support for the fpscr register.
6282         * rs6000-nat.c (regmap, fetch_inferior_registers)
6283         (store_inferior_registers, fetch_core_registers): Likewise.
6284
6285 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6286
6287         * rs6000-nat.c (language.h): Include.
6288         (special_regs): Delete this array.
6289         (regmap): New function.
6290         (fetch_register, store_register):  Use regmap() to map gdb
6291         register numbers to ptrace register numbers.  Also, use
6292         outputs from regmap() to make decisions regarding type of
6293         ptrace() call to make.  In particular, don't compare against
6294         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6295         (fetch_inferior_registers, store_inferior_registers): Where
6296         possible, obtain register numbers from tdep struct.  Don't
6297         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6298         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6299         (LAST_UISA_SP_REGNUM): Delete.
6300         
6301 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6302
6303         * rs6000-nat.c (ppc-tdep.h): Include.
6304         (fetch_registers, store_register, fetch_core_registers): Don't
6305         access registers[] directly.  Instead, use supply_register() or
6306         regcache_collect() as appropriate.
6307         (find_toc_address): Format hex address with local_hex_string().
6308
6309 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6310
6311         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6312         bfd/elf32-frv.c.
6313
6314 2002-07-24  Tom Tromey  <tromey@redhat.com>
6315
6316         * jv-exp.y: Marked all strings with _().
6317         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6318         internal_error.
6319         (MethodInvocation, CastExpression, parse_number, yyerror,
6320         java_type_from_name, push_expression_name, yylex): Typo fixes.
6321
6322 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6323
6324         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6325         (tee_file_flush, tee_file_write, tee_file_fputs)
6326         (tee_file_isatty): New.
6327         * ui-file.h (tee_file_new): Add prototype.
6328
6329 2002-07-24  Aidan Skinner <aidan@velvet.net>
6330
6331         * ada-lang.c: Change k&r style function definitions to prototyped
6332         form.
6333         * ada-typeprint.c: Change k&r style function definitions to prototyped
6334         form.
6335         * ada-valprint.c: Change k&r style function definitions to prototyped
6336         form.
6337         
6338 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6339
6340         * README: Remove reference to remote-bug.
6341         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6342         remote-bug.c.
6343         (m88k-nat.o): Delete rule.
6344         (m88k-tdep.o): Delete rule.
6345         (remote-bug.o): Delete rule.
6346         * MAINTAINERS: Mark as obsolete.
6347         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6348         * m88k-tdep.c: Make file obsolete.
6349         * config/m88k/m88k.mh: Ditto.
6350         * config/m88k/delta88v4.mh: Ditto.
6351         * config/m88k/delta88v4.mt: Ditto.
6352         * config/m88k/delta88.mt: Ditto.
6353         * config/m88k/delta88.mh: Ditto.
6354         * remote-bug.c: Ditto.
6355         * config/m88k/tm-delta88.h: Ditto.
6356         * config/m88k/nm-delta88v4.h: Ditto.
6357         * config/m88k/xm-delta88.h: Ditto.
6358         * config/m88k/xm-dgux.h: Ditto.
6359         * config/m88k/tm-m88k.h: Ditto.
6360         * config/m88k/nm-m88k.h: Ditto.
6361         * config/m88k/tm-delta88v4.h: Ditto.
6362         * m88k-nat.c: Ditto.
6363         * cxux-nat.c: Ditto.
6364         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6365         and m88*-*-* obsolete.
6366         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6367         m88*-*-* obsolete.
6368
6369 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6370
6371         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6372         constant.  Same for local pointer variables.
6373         (extract_signed_integer): Ditto.
6374         * defs.h (extract_unsigned_integer): Update.
6375         (extract_signed_integer): Update.
6376
6377 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6378
6379         * regcache.c (regcache_raw_write): Change buf parameter to a
6380         constant void pointer.
6381         (regcache_raw_read): Change buf parameter to a void pointer.
6382         (legacy_write_register_gen): Change myaddr parameter a constant
6383         void pointer.
6384         (supply_register): Change val parameter to a const void pointer.
6385         * regcache.h (regcache_raw_write): Update declaration.
6386         (regcache_raw_read): Update declaration.
6387         (supply_register): Update declaration.
6388
6389 2002-07-24  Tom Tromey  <tromey@redhat.com>
6390
6391         * defs.h (gdb_readline_wrapper): Declare.
6392         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6393         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6394         * top.c (gdb_readline_wrapper): New function.
6395         (command_line_input): Use it.
6396
6397 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6398
6399         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6400         regcache_read and regcache_write.
6401         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6402         * regcache.c: Update.
6403         * sh-tdep.c (sh64_push_arguments): Update comment.
6404         (sh_pseudo_register_read): Update.
6405         (sh_pseudo_register_write): Update.
6406         (sh4_register_read): Update.
6407         (sh4_register_write): Update.
6408         (sh64_pseudo_register_read): Update.
6409         (sh64_pseudo_register_write): Update.
6410         (sh64_register_read): Update.
6411         (sh64_register_write): Update.
6412         * i386-tdep.c (i386_extract_return_value): Update.
6413         (i386_extract_struct_value_address): Update.
6414         (i386_extract_return_value): Update.
6415         * blockframe.c (generic_read_register_dummy): Update.
6416         (generic_call_dummy_register_unwind): Update
6417         * infrun.c (write_inferior_status_register): Update.
6418
6419 2002-07-23  Jim Blandy  <jimb@redhat.com>
6420
6421         * parser-defs.h (expression_context_pc): Make this extern.
6422         (Thanks to Michael Snyder.)
6423
6424 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6425
6426         GDB 5.2.1 released from 5.2 branch.
6427         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6428         * README: Update to mention 5.2.1.
6429
6430 2002-07-23  Mark Salter  <msalter@redhat.com>
6431
6432         * remote.c (remote_read_bytes): Fix check for error.
6433
6434 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6435
6436         * aix-thread.c (language.h): Include.
6437         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6438         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6439         Print newlines at end of debug messages.
6440         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6441         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6442
6443 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6444
6445         * aix-thread.c (ppc-tdep.h): Include.
6446         (special_register_p): New function.
6447         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6448         (store_regs_user_thread): Use register number information from
6449         gdbarch_tdep struct instead of hardcoded offsets relative to
6450         FIRST_UISA_SP_REGNUM.
6451         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6452         special_register_p() instead of using FPLAST_REGNUM and
6453         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6454         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6455         will be MQ's register number.
6456
6457 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6458
6459         * aix-thread.c (ops): Rename to aix_thread_ops.
6460         (base_ops): Rename to base_target.
6461         (ops_attach): Rename to aix_thread_attach.
6462         (ops_detach): Rename to aix_thread_detach.
6463         (ops_resume): Rename to aix_thread_detach.
6464         (ops_wait):   Rename to aix_thread_wait.
6465         (ops_kill):   Rename to aix_thread_kill.
6466         (init_ops):   Rename to init_aix_thread_ops.
6467         (ops_fetch_register): Rename to aix_thread_fetch_register.
6468         (ops_store_register): Rename to aix_thread_store_register.
6469         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6470         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6471         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6472         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6473         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6474         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6475         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6476         (store_regs_lib):  Rename to store_regs_user_thread.
6477         (store_regs_kern): Rename to store_regs_kernel_thread.
6478
6479 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6480
6481         * aix-thread.c (ops_prepare_to_store): Eliminate.
6482         (init_ops): Don't initialize ops.prepare_to_store.
6483         (store_regs_kern): Pre-fetch register buffers from child, 
6484         because some registers may not be in the cache.  Copy
6485         regs from register cache only if they are cached.
6486         (store_regs_lib): Copy regs from register cache only
6487         if they are cached.
6488         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6489         fill_gprs64): Ditto.
6490
6491 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6492
6493         * aix-thread.c (gdb_assert.h): Include.
6494         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6495         register sizes (from register cache) match size of buffer holding
6496         register data.
6497         (fill_sprs32): Change parameter types to match those in the ptrace()
6498         buffer.
6499         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6500         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6501
6502 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6503
6504         * aix-thread.c (supply_sprs64): Cosmetic change.
6505         (supply_sprs32): Cosmetic change.
6506         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6507         (fill_sprs64): Use regcache_collect instead of read_register.
6508         (store_regs_lib): Use regcache_collect instead of 
6509         read_register.  Use fill_sprs32 instead of fill_sprs64,
6510         if debugging a 32-bit architecture.
6511         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6512         out of the register cache, instead of passing a pointer into
6513         the register cache directly to ptrace.  Use regcache_collect
6514         insteaad of read_register.
6515         (ops_prepare_to_store): Use target_read_registers instead
6516         of read_register_bytes.
6517
6518 2002-07-20  Aidan Skinner <aidan@velvet.net>
6519
6520         * MAINTAINERS: Add self under write after approval. 
6521                 
6522 2002-07-20  Aidan Skinner <aidan@velvet.net>
6523
6524         * ada-tasks.c: Change k&r style function definitions to prototyped
6525         form.
6526                 
6527 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6528
6529         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6530         * x86-64-tdep.c: Include "objfiles.h".
6531         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6532         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6533
6534 2002-07-17  Michal Ludvig  <michal@suse.cz>
6535
6536         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6537         (update_context): Initialise cfa variable.
6538
6539 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6540
6541         * aix-thread.c: Shorten some long lines.  
6542         Bring comments into line with code spec.
6543
6544 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6545
6546         * infrun.c: Re-indent using gdb_indent.sh.
6547
6548 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6549
6550         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6551         Leave the indentation temporarily untouched, to minimize the diffs.
6552
6553 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6554
6555         * stabsread.c: Make os9k sections of the code obsolete,
6556         for real this time.
6557         * stabsread.h: Make os9k sections of the code obsolete.
6558
6559 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6560
6561         * linux-low.c (regsets_store_inferior_registers): Add free()
6562         at the end of a loop to prevent memory leak.
6563         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6564         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6565         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6566         line a comment.
6567         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6568
6569 2002-07-17  Jim Blandy  <jimb@redhat.com>
6570
6571         * macrocmd.c (info_macro_command): Remove newline from error
6572         message.
6573
6574 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6575
6576         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6577         (sh_gdbarch_init): Use it for sh-dsp.
6578
6579 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6580
6581         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6582         64-bit DWARF2 format.
6583
6584 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6585
6586         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6587         <sys/proc.h> when not available.
6588
6589 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6590
6591         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6592         * stabsread.c: Make os9k sections of the code obsolete.
6593         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6594         * config/i386/i386os9k.mt: Make file obsolete.
6595         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6596         (COMMON_OBS): Remove os9kread.o
6597         (SFILES): Remove os9kread.c.
6598         (os9kread.o, remote-os9k.o): Make target obsolete.
6599         * remote-os9k.c: Make file obsolete.
6600         * os9kread.c: Make file obsolete.
6601         * Makefile.in
6602
6603 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6604
6605         * NEWS: Mention that the FR30 has been made obsolete.
6606         * fr30-tdep.c: Make file obsolete.
6607         * config/fr30/tm-fr30.h: Ditto.
6608         * config/fr30/fr30.mt: Ditto.
6609         * configure.tgt: Make fr30-*-elf obsolete.
6610         * MAINTAINERS: Make fr30-elf obsolete.
6611
6612 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6613
6614         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6615         found is not inside a section.
6616
6617 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6618
6619         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6620         strerror().
6621         (pdc_realloc): Use xrealloc() instead of realloc().
6622
6623 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6624
6625         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6626         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6627         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6628         macros.
6629
6630 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6631
6632         * aix-thread.c (ptrace_check): Eliminate goto.
6633         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6634         problem.
6635
6636 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6637
6638         * aix-thread.c (gdbcmd.h): Include.
6639         (DEBUG, DBG, DBG2, dbg): Eliminate.
6640         (debug_aix_thread): New static global.
6641         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6642         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6643         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6644         invocations to DBG and DBG2 macros to test against
6645         ``debug_aix_thread'' and call fprintf_unfiltered().
6646         (_initialize_aix_thread): Add new command "set debug aix-thread".
6647
6648 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6649
6650         From Gerhard Tonn <TON@de.ibm.com>:
6651         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6652         instead of supply_register.
6653
6654 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6655
6656         * dwarf2cfi.c: Include "gdb_assert.h".
6657         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6658         non-NULL.
6659         (update_context): Do not use __func__.  Add missing ``break''.
6660         (update_context): Do not use __func__.
6661
6662 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6663
6664         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6665         and its setting.  Set gdbarch instruction printing functions
6666         directly.  For non-rs6000 case use new function
6667         gdb_print_insn_powerpc.
6668         (gdb_print_insn_powerpc): New function.
6669
6670 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6671
6672         * NEWS: Mention that the d30v has been marked obsolete.
6673         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6674         * configure.tgt: Mark d30v-*-* as obsolete.
6675         * d30v-tdep.c: Mark file as obsolete.
6676         * config/d30v/d30v.mt: Ditto.
6677         * config/d30v/tm-d30v.h: Ditto.
6678
6679 2002-07-13  Aidan Skinner <aidan@velvet.net>
6680
6681         * ada-tasks.c (add_task_entry): replace calls to
6682         malloc() with xmalloc
6683         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6684         
6685         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6686         ada_finish_decode_line_1, all_sals_for_line
6687         ada_breakpoint_rewrite): replace calls to free() with xfree()
6688                 
6689 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6690
6691         From Nicholas Duffek (with minor changes by Martin Hunt, 
6692         Louis Hamilton, and Kevin Buettner):
6693         * aix-thread.c: New file.
6694
6695 2002-07-12  Petr Sorfa <petrs@caldera.com>
6696
6697         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6698         complaint for invalid attribute class or form.
6699         (read_func_scope): DW_AT_frame_base
6700         better handling of DW_AT_block*.
6701         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6702         better handling of DW_AT_block*.
6703         (read_common_block): DW_AT_location
6704         better handling of DW_AT_block*.
6705         (read_partial_die): DW_AT_location better handling
6706         of DW_AT_block*.
6707         (new_symbol): DW_AT_external better handling of
6708         DW_AT_block*. Proper initialization of variable
6709         "addr".
6710         (attr_form_is_block): New function that returns true
6711         if the attribute's form is of DW_FORM_block*.
6712
6713 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6714
6715         * valops.c (find_method_list): Remove comment about
6716         removed STATIC_MEMFUNCP argument.
6717         (value_find_oload_method_list): Likewise.
6718
6719 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6720
6721         From Nicholas Duffek:
6722         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6723         target_new_objfile_hook.
6724
6725 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6726
6727         From Nicholas Duffek:
6728         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6729         csect.
6730
6731 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6732
6733         * MAINTAINERS: Mention --enable-sim-build-warnings.
6734         (m68hc11-elf): Disable sim build warnings.
6735         (m32r-elf): Mark as broken obsolete candidate.
6736         (x86_64-linux-gnu): Mark as buildable with -Werror.
6737         (arm-elf): Change -w to ``,'' which enables warnings but not
6738         -Werror.
6739
6740 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6741
6742         * bcache.h: Update copyright.
6743         (struct bstring, struct bcache): Move definition to "bcache.c".
6744         Replaced by opaque declaration.
6745         (bcache_xfree): Replace free_bcache.
6746         (bcache_xmalloc, bcache_memory_used): Declare.
6747         
6748         * bcache.c: Update copyright.
6749         (struct bstring, struct bcache): Moved to here from "bcache.h".
6750         Update comments.
6751         (bcache_xmalloc, bcache_memory_used): New functions.
6752         (bcache_xfree): Replace function free_bcache.
6753         
6754         * Makefile.in (objfiles.o): Add $(bcache_h).
6755         (objfiles_h): Remove $(bcache_h).
6756         (symfile.o): Add $(bcache_h).
6757
6758         * symmisc.c: Update copyright.
6759         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6760         (print_objfile_statistics): Use bcache_memory_used.
6761
6762         * symfile.c: Include "bcache.h".
6763         (reread_symbols): Use bcache_xfree.
6764         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6765         (add_psymbol_to_list): Pass psymbol_cache by value.
6766         (add_psymbol_with_dem_name_to_list): Ditto.
6767
6768         * objfiles.h: Update copyright.
6769         (struct bcache): Declare opaque.  Do not include "bcache.h".
6770         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6771         bcache'' pointers.
6772         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6773
6774         * objfiles.c: Include "bcache.h".  Update copyright.
6775         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6776         macro_cache.
6777         (free_objfile): Use bcache_xfree.
6778
6779 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6780
6781         * monitor.c (monitor_fetch_register): Make name a constant.
6782         (monitor_store_register): Same.
6783
6784 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6785
6786         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6787         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6788         (finish_block) For non-function blocks, hash the symbol table.  For
6789         function blocks, mark the symbol table as unhashed.
6790         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6791         (msymbol_hash_iw): Likewise.
6792         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6793         value.
6794         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6795         (lookup_minimal_symbol): Likewise for both.
6796         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6797         hashtable.
6798         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6799         (ALL_BLOCK_SYMBOLS): Update.
6800         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6801         (struct symbol): Add `hash_next' pointer.
6802         * symtab.c (lookup_block_symbol): Search using the hash table when
6803         possible.
6804         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6805         (search_symbols, find_addr_symbol): Likewise.
6806
6807         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6808         (read_dst_symtab): Likewise.
6809         * jv-lang.c (get_java_class_symtab): Likewise.
6810         * mdebugread.c: Include "gdb_assert.h".
6811         (shrink_block): Assert that the block being modified is not hashed.
6812         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6813         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6814         symbols.
6815         (dump_symtab): Recognize hashed blocks.
6816         * printcmd.c (print_frame_args):  Assert that function blocks do not
6817         have hashed symbol tables.
6818         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6819         (fill_in_ada_prototype, debug_print_block): Likewise.
6820         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6821
6822 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6823
6824         * stack.c (print_frame): Use result of frame_address_in_block()
6825         instead of fi->pc when evaluating symbols.
6826         (backtrace_command_1): Ditto.
6827
6828 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6829
6830         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6831         Make static.
6832
6833         * arm-tdep.c (arm_register_name): Make return type constant.
6834
6835 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6836
6837         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6838         prototype.
6839         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6840         * s390-tdep.c (s390_fp_regnum): Ditto.
6841         (s390_read_fp): Ditto.
6842         (s390_pop_frame): Ditto.
6843         (_initialize_s390_tdep): Ditto.
6844         * remote.c (get_remote_state): Ditto.
6845         * procfs.c (mappingflags): Ditto.
6846         * memattr.c (_initialize_mem): Ditto.
6847         * mcore-tdep.c (mcore_pop_frame): Ditto.
6848         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6849         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6850         * language.c (set_case_str): Ditto.
6851         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6852         * frv-tdep.c (new_variant): Ditto.
6853         (frv_stopped_data_address): Ditto.
6854         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6855         (context_alloc): Ditto.
6856         (frame_state_alloc): Ditto.
6857         (unwind_tmp_obstack_init): Ditto.
6858         (unwind_tmp_obstack_free): Ditto.
6859         (cfi_read_fp): Ditto.
6860         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6861         (cris_pop_frame): Ditto.
6862         * c-lang.c (scanning_macro_expansion): Ditto.
6863         (finished_macro_expansion): Ditto.
6864         (c_preprocess_and_parse): Ditto.
6865         * gdbarch.sh: Ditto.
6866         * gdbarch.h, gdbarch.c: Regenerate.
6867         * config/mn10200/tm-mn10200.h: Adjust indentation.
6868         * target.c: Adjust indentation.
6869         * symtab.h: Adjust indentation.
6870         * stabsread.h: Adjust indentation.
6871         * remote-es.c: Adjust indentation.
6872         * os9kread.c: Adjust indentation.
6873
6874 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6875         
6876         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6877         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6878
6879 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6880         
6881         * NEWS: Mention m68k, mcore multi-arching.  
6882         * MAINTAINERS: Change status of m68k, mcore to reflect
6883         multi-arching.
6884
6885 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6886
6887         * valops.c (find_overload_match): Free oload_syms.
6888
6889 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6890
6891         Define HAVE_SYS_PROC_H if sys/proc.h exists
6892         * configure.in: Add check for sys/proc.h
6893         * config.in: Regenerate.
6894         * configure: Regenerate.
6895
6896 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6897
6898         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6899         #if !GDB_MULTI_ARCH. 
6900
6901 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6902
6903         * config.in, configure: Regenerate.
6904
6905 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6906
6907         * dwarf2cfi.c: Include "gcore.h".
6908         (execute_stack_op): Fix implementation of the
6909         DW_OP_deref and DW_OP_deref_size operators by letting do their
6910         lookup in the target.
6911
6912 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6913
6914         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6915         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6916         tdep->sc_sp_offset.
6917
6918 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6919
6920         Fix PR gdb/595, gdb/602
6921         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6922         Don't call value_cast, just read the vtable pointer; update comments
6923         to match.
6924
6925 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6926
6927         * config/mcore/tm-mcore.h: Remove file.
6928         * config/mcore/mcore.mt: Remove definition of TM_FILE
6929         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6930
6931 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6932
6933         * i386bsd-tdep.c: Include "gdb_string.h".
6934
6935 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6936
6937         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6938         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6939         mcore-tdep.
6940         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6941         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6942         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6943         (RETVAL_REGNUM): Move macros from tm-mcore.h
6944         (mcore_reg_struct_has_addr): New function.
6945         (mcore_gdbarch_init): Added initializations for the macros removed
6946         from tm-mcore.h.
6947
6948 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6949
6950         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6951         traditonal string branding within the ELF header.
6952
6953 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6954
6955         * symtab.c (remove_params): New function.
6956         (make_symbol_overload_list): Use it instead of cplus_demangle.
6957         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6958
6959 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6960
6961         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6962
6963         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6964         New variables.
6965         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6966         and tdep->sigtramp_end.
6967         * i386obsd-nat.c: New file.
6968         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6969
6970         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6971         Don't call get_current_frame().
6972
6973 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6974
6975         * i386-nat.c (child_post_startup_inferior): New function
6976         calling i386_cleanup_dregs if
6977         I386_USE_GENERIC_WATCHPOINTS is defined.
6978         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6979         conditional to acknowledge that i386-nat.c has its
6980         own child_post_startup_inferior function.
6981
6982 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6983
6984         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6985         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6986         instead of MAX_REGISTER_RAW_SIZE.
6987         (i386_extract_return_value, i386_extract_struct_value_address):
6988         Convert to use regcache.
6989         (i386_gdbarch_init): Set max_register_raw_size and
6990         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6991         Set extract_return_value and extract_struct_value_address instead
6992         of their deprecated variants.
6993
6994         Convert i386 target to generic dummy frames.
6995         * i386-tdep.c: Include "symfile.h".
6996         (i386_frameless_signal_p): Consider a function to be frameless if
6997         the pc points at the first instruction of the function.
6998         (i386_frame_chain): Handle (generic) call dummies.
6999         (i386_frame_saved_pc): Likewise.
7000         (i386_frame_init_saved_regs): Remove code dealing with call
7001         dummies on the stack.
7002         (i386_push_dummy_frame): Removed.
7003         (i386_call_dummy_words): Removed.
7004         (i386_fix_call_dummy): Removed.
7005         (i386_push_return_address): New function.
7006         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7007         parameter, and don't call get_current_frame.
7008         (i386_pop_frame): New function.
7009         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7010         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7011         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7012         call_dummy_length to 0, set call_dummy_words to NULL, set
7013         sizeof_call_dummy_words to 0, set fix_call_dummy to
7014         generic_fix_call_dummy, set pc_in_call_dummy to
7015         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7016         generic_push_dummy_frame, set push_return_address to
7017         i386_push_return_address and set frame_chain_valid to
7018         generic_file_frame_chain_valid.
7019
7020 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7021
7022         * gdbarch.sh (struct regcache): Add opaque declaration.
7023         (EXTRACT_RETURN_VALUE): New architecture method.
7024         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7025         * gdbarch.h, gdbarch.c: Regenerate.
7026         * arch-utils.c (legacy_extract_return_value): New function.
7027         * arch-utils.h (legacy_extract_return_value): Declare.
7028         * values.c (value_being_returned): Re-enable code handling
7029         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7030         deprecated_grub_regcache_for_registers call to block handling
7031         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7032         (EXTRACT_RETURN_VALUE): Do not define.
7033
7034 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7035
7036         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7037         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7038         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7039         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7040         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7041         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7042         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7043         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7044         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7045         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7046         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7047         argument so the function fits the prototype in the architecture
7048         vector.
7049         (mcore_pop_frame): Remove argument so the function fits the
7050         prototype. Use get_current_frame instead of the argument.
7051         (mcore_push_arguments): Change type of struct_return so the
7052         function can be used in the architecture vector.
7053         (mcore_store_struct_return): Add.
7054         (mcore_frame_init_saved_regs): Add.
7055         (mcore_gdbarch_init): Add function calls to replace the macros
7056         removed from tm-mcore.h
7057
7058 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7059
7060         * infcmd.c (print_return_value): Remove compatibility code calling
7061         deprecated_grub_regcache_for_registers.
7062         
7063         * values.c: Include "regcache.h".
7064         (value_being_returned): Update.  Use
7065         deprecated_grub_regcache_for_registers to extract the register
7066         buffer address.  
7067         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7068         ``struct regcache''.
7069         * Makefile.in (values.o): Add dependency on $(regcache_h).
7070
7071         * inferior.h (run_stack_dummy): Change type of second parameter to
7072         a ``struct regcache''.
7073         * valops.c (hand_function_call): Change type of retbuf to ``struct
7074         regcache''.  Allocate using regcache_xmalloc, clean using
7075         make_cleanup_regcache_xfree.
7076         * infcmd.c (run_stack_dummy): Update.  Use
7077         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7078
7079         * regcache.c (do_regcache_xfree): New function.
7080         (make_cleanup_regcache_xfree): New function.
7081         * regcache.h (make_cleanup_regcache_xfree): Declare.
7082
7083 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7084
7085         * event-top.c (command_line_handler): Don't read past
7086         beginning of buffer.
7087
7088 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7089         
7090         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7091         struct frame_id. 
7092         (varobj_create): Store frame_id for root.
7093         (varobj_gen_name): Use xasprintf.
7094         (varobj_update): Save and restore frame using get_frame_id() and
7095         frame_find_by_id().
7096         (create_child): Use xasprintf.
7097         (new_root_variable): Initialize frame_id.
7098         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7099         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7100         to prevent memory leak.
7101
7102 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7103
7104         * valops.c (hand_function_call): Move declaration of retbuf to
7105         start of function, allocate using malloc, add a cleanup but before
7106         the inf_status cleanup, cleanup the buffer.  Rename local variable
7107         old_chain to inf_status_cleanup.
7108
7109 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7110
7111         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7112
7113         * cli/cli-decode.c (cmd_func_p): New function.
7114         (cmd_func): New function.
7115
7116         * command.h: Add cmd_func() and cmd_func_p().   
7117         
7118 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7119
7120         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7121         (REGISTER_SIZE): Remove.
7122         (MAX_REGISTER_RAW_SIZE): Remove.
7123         (REGISTER_VIRTUAL_TYPE): Remove.
7124         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7125         (REGISTER_NAME): Remove.
7126         (USE_GENERIC_DUMMY_FRAMES): Remove.
7127         (CALL_DUMMY): Remove.
7128         (CALL_DUMMY_START_OFFSET): Remove.
7129         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7130         (CALL_DUMMY_LOCATION): Remove.
7131         (FIX_CALL_DUMMY): Remove.
7132         (CALL_DUMMY_ADDRESS): Remove.
7133         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7134         (SAVE_DUMMY_FRAME_TOS): Remove.
7135         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7136         (mcore_register_virtual_type): New function.
7137         (mcore_register_byte): New function.
7138         (mcore_register_size): New function.
7139         (mcore_register_name): New function.
7140         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7141         macros removed from tm-mcore.h.
7142         (mcore_dump_tdep): Add.
7143         (_initialize_mcore_tdep): Add gdbarch_register call.
7144
7145 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7146
7147         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7148         frameless_look_for_prologue, such that we actually call this
7149         function.
7150
7151 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7152
7153         * frame.h (frame_address_in_block): New function.
7154
7155         * blockframe.c (frame_address_in_block): New function extracted
7156         from get_frame_block().
7157         (get_frame_block): Use frame_address_in_block().
7158         (block_innermost_frame): Use frame_address_in_block() to match
7159         the frame pc address against the block boundaries rather than
7160         the frame pc directly. This prevents a failure when a frame pc
7161         is actually a return-address pointing immediately after the end
7162         of the given block. 
7163
7164 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7165
7166         * MAINTAINERS: Add self under write after approval. 
7167
7168 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7169
7170         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7171         used in architecture vector. The default is
7172         m68k_local_breakpoint_from_pc.
7173         (m68k_local_breakpoint_from_pc): Add.
7174         (enum): Add register numbers from tm-m68k.h.
7175         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7176         vector.  
7177         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7178         GDB_MULTI_ARCH_PARTIAL.
7179         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7180         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7181         m68k-tdep.c.
7182         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7183         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7184         to enum in m68k-tdep.c
7185
7186 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7187
7188         * solib-osf.c (open_map): Compute the list of shared libraries
7189         loaded by the inferior, rather than the list of libraries loaded
7190         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7191         the wrong shared libraries...
7192
7193 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7194
7195         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7196         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7197         macros.
7198         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7199         Remove functions.
7200         (FRAMELESS_SIGNAL): Remove function.
7201         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7202         i386_linux_saved_pc_after_call): Removed.
7203         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7204         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7205         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7206
7207         * i386-tdep.c (i386_frameless_signal_p): New function.
7208         (i386_frame_chain): Deal with frameless signals.
7209         (i386_sigtramp_saved_sp): New function.
7210         (i386_frame_saved_pc): Deal with frameless signals.
7211         (i386_saved_pc_after_call): Make sure the correct value is
7212         returned just after entry into a sigtramp.
7213         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7214         i386fbsd4_sc_sp_offset): New variables.
7215         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7216         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7217         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7218         similiar to what we already did for sc_pc_offset.
7219         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7220         tdep->sc_sp_offset.
7221
7222         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7223
7224 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7225
7226         * config/i386/tm-x86-64linux.h: New.
7227         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7228         definitions.
7229         * config/i386/nm-x86-64.h: Rename to ...
7230         * config/i386/nm-x86-64linux.h: ... this one.
7231         * config/i386/x86-64linux.mh: Reflect the above change.
7232         
7233 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7234
7235         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7236         with sigcontext_addr.  Add sc_sp_offset.
7237         (i386bsd_sigtramp_saved_pc): Remove prototype.
7238         (i386bsd_sicontext_addr): Add prototype.
7239         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7240         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7241         (i386_svr4_sigtramp_saved_pc): Removed.
7242         (i386_svr4_sigcontext_addr): New function.
7243         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7244         Initialize tdep->sigcontext_addr instead.  Initialize
7245         tdep->sc_pc_offset and tdep->sc_sp_offset.
7246         (i386_gdbarch_init): Likewise.
7247         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7248         any more.
7249         (i386bsd_sigtramp_saved_pc): Remove function.
7250         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7251         Initialize tdep->sigcontext_addr instead.  Initialize
7252         tdep->sc_pc_offset.
7253         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7254         of tdep->sigtramp_saved_pc.
7255         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7256         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7257         instead.
7258
7259         * i386-tdep.c (i386_frameless_function_invocation,
7260         i386_frame_num_args, i386_frame_init_saved_regs,
7261         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7262         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7263         i386_extract_return_value, i386_store_return_value,
7264         i386_extract_struct_value_address, i386_register_virtual_type,
7265         i386_register_convertible, i386_register_convert_to_virtual,
7266         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7267         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7268         static.
7269
7270 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7271
7272         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7273
7274         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7275         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7276         this macro.  Include "value.h".
7277
7278 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7279
7280         * ada-exp.tab.c: remove as it's a generated file
7281         * ada-lex.c: remove as it's a generated file
7282                 
7283 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7284
7285         * config/i386/tm-i386.h (struct frame_info, struct
7286         frame_saved_regs, struct value, struct type): Remove forward
7287         declarations.
7288
7289         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7290         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7291         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7292         (FILL_FPXREGSET): Define.
7293
7294         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7295
7296         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7297         i[3456]86-*-netbsd* case.
7298         * config/i386/tm-obsd.h: Removed.
7299         * config/i386/obsd.mt: Removed.
7300         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7301         core-aout.o.
7302         (MH_CFLAGS): Add -DYYDEBUG=0.
7303
7304         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7305         i386nbsd_sc_pc_offset on OpenBSD too.
7306
7307         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7308         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7309         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7310         define.
7311         * i386bsd-tdep.c: Include "arch-utils.h".
7312         (i386bsd_aout_in_solib_call_trampoline): New function.
7313         (i386bsd_init_abi): Set in_solib_call_trampoline to
7314         i386bsd_aout_in_solib_call_trampoline.
7315         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7316         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7317
7318 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7319
7320         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7321         (struct obstack, struct bcache): Add opaque declarations.
7322         * Makefile.in (macrotab_h): Update
7323
7324 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7325
7326         * blockframe.c (generic_find_dummy_frame): Change return type to
7327         ``struct regcache''.
7328         (struct dummy_frame): Replace field ``registers'' with regcache, a
7329         struct regcache object.
7330         (generic_find_dummy_frame): Update.
7331         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7332         regcache_xmalloc and regcache_cpy.
7333         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7334         regcache_xfree.
7335         (deprecated_generic_find_dummy_frame): Update.
7336         (generic_read_register_dummy): Update.  Use
7337         regcache_read_as_address.
7338         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7339         (generic_get_saved_register): Update.  Use regcache_read.
7340
7341 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7342
7343         * Makefile.in (objfiles_h): Add $(bcache_h).
7344         * objfiles.h: Include "bcache.h".
7345
7346         * Makefile.in (symtab_h): Remove $(bcache_h).
7347         * symtab.h: Do not include "bcache.h".
7348
7349 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7350
7351         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7352         generic_func_frame_chain_valid.
7353
7354 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7355
7356         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7357         * config/i386/tm-fbsd.h: Likewise.
7358
7359 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7360
7361         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7362         generic_unwind_get_saved_register.
7363
7364 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7365
7366         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7367         * regcache.c (supply_register): Add missing argument to
7368         register_buffer call.
7369
7370 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7371
7372         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7373         Solaris /bin/grep does not not like it.  From Peter Schauer.
7374
7375 2002-06-26  Tom Tromey  <tromey@redhat.com>
7376
7377         * command.h (add_setshow_cmd): Declare.
7378         (add_setshow_cmd_full): Declare.
7379         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7380         returns void.  Use add_setshow_cmd_full.
7381         (add_setshow_cmd_full): New function.
7382         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7383         (add_setshow_boolean_cmd): Likewise.
7384
7385 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7386
7387         * config/vax/tm-vax.h: Protect from multiple inclusion.
7388         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7389         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7390         * config/vax/tm-vaxbsd.h: ...here.  New file.
7391         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7392
7393 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7394
7395         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7396         (BELIEVE_PCC_PROMOTION): Remove.
7397         (AP_REGNUM): Move to...
7398         * config/vax/nm-vax.h: ...here.
7399         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7400         (vax_breakpoint_from_pc): New function.
7401         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7402         and gdbarch_believe_pcc_promotion.
7403
7404 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7405
7406         * Makefile.in (vax_tdep_h): Define.  
7407         (vax-tdep.o): Use $(vax_tdep_h).
7408         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7409         (vax_dump_tdep): New function. 
7410         (_initialize_vax_tdep): Register vax_dump_tdep.
7411         * vax-tdep.h: Include osabi.h.     
7412         (struct gdbarch_tdep): New. 
7413
7414 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7415
7416         * frame.h (deprecated_generic_find_dummy_frame): Rename
7417         generic_find_dummy_frame.
7418         * blockframe.c (generic_find_dummy_frame): Make static.
7419         (deprecated_generic_find_dummy_frame): New function.
7420         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7421         generic_find_dummy_frame with deprecated_find_dummy_frame.
7422         (sh64_nofp_frame_init_saved_regs): Ditto.
7423         (sh_fp_frame_init_saved_regs): Ditto.
7424         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7425         (s390_frame_chain): Ditto.
7426         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7427
7428 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7429
7430         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7431         gdbarch vector are at the top.
7432         (NUM_REGS): Remove.
7433         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7434         (FRAME_ARGS_ADDRESS): Remove.
7435         (FRAME_LOCALS_ADDRESS): Remove.
7436         (FRAME_NUM_ARGS): Remove.
7437         (FRAME_ARGS_SKIP): Remove.  
7438         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7439         (m68k_gdbarch_init): Add gdbarch initializations for macros
7440         undefined in tm-m68k.h
7441
7442 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7443
7444         * monitor.h: Add the function regname to monitor_ops
7445         structure. This way NUM_REGS does not have to be a constant.
7446         * monitor.c (monitor_fetch_register): Added support for regname
7447         function. The function is called if the array regnames is NULL.
7448         (monitor_store_register): Same.
7449         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7450         regnames array.
7451         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7452         cpu32bug_cmds.regname to point to new function.
7453         * abug-rom.c (abug_regname): Same as above.
7454         (init_abug_cmds): Same.
7455         * dbug-rom.c (dbug_regname): Same as above.
7456         (init_dbug_cmds): Same.
7457         * remote-est.c (est_regname): Same. 
7458         (init_est_cmds): Same.
7459         * rom68k-rom.c (rom68k_regname): Same. 
7460         (init_rom68k_cmds): Same.
7461
7462 2002-06-25  Tom Tromey  <tromey@redhat.com>
7463
7464         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7465
7466 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7467
7468         * infrun.c (stop_registers): Change variable's type to ``struct
7469         regcache'''.
7470         (xmalloc_inferior_status): Delete function.
7471         (free_inferior_status): Delete function.
7472         (normal_stop): Use regcache_cpy.
7473         (struct inferior_status): Change type of fields ``stop_registers''
7474         and ``registers'' to ``struct regcache''.
7475         (write_inferior_status_register): Use regcache_write.
7476         (save_inferior_status): Instead of calling
7477         xmalloc_inferior_status, allocate the inf_status buffer directly.
7478         Use regcache_dup_no_passthrough and regcache_dup to save the
7479         buffers.
7480         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7481         Replace the stop_registers regcache instead of overriding it.  Use
7482         regcache_xfree.  Instead of calling free_inferior_status, xfree
7483         the buffer directly.
7484         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7485         free_inferior_status, xfree the buffer directly.
7486         (build_infrun): Use regcache_xmalloc.
7487         (_initialize_infrun): Delete redundant call to build_infrun.
7488
7489         * Makefile.in (infcmd.o): Add $(regcache_h).
7490
7491         * infcmd.c: Include "regcache.h".
7492         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7493         obtain the address of `stop_registers' register buffer.
7494         (print_return_value): Ditto.
7495
7496         * inferior.h (struct regcache): Add opaque declaration.
7497         (stop_registers): Change variable's declared type to ``struct
7498         regcache''.
7499
7500 2002-06-24  Tom Tromey  <tromey@redhat.com>
7501
7502         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7503         * target.c (initialize_targets): Fixed typo in
7504         trust-readonly-sections `show' documentation.
7505
7506         * main.c: Marked all strings with _().
7507
7508 2002-06-24  Don Howard  <dhoward@redhat.com>
7509
7510         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7511         that means max CORE_ADDR+1.
7512         (lookup_mem_region): Ditto.
7513         (mem_info_command): Ditto.
7514
7515 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7516
7517         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7518         (REGISTER_BYTES_OK): Remove.
7519         (REGISTER_BYTES): Remove.
7520         (STORE_STRUCT_RETURN): Remove.
7521         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7522         (STORE_RETURN_VALUE): Remove.
7523         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7524         (FRAME_CHAIN): Remove.
7525         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7526         (FRAME_SAVED_PC): Remove.  
7527         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7528         (m68k_store_struct_return): Add.
7529         (m68k_deprecated_extract_return_value): Add.
7530         (m68k_deprecated_extract_struct_value_address): Add.
7531         (m68k_store_return_value): Add.
7532         (m68k_frame_chain): Add.
7533         (m68k_frameless_function_invocation): Add.
7534         (m68k_frame_saved_pc): Add.
7535         (m68k_gdbarch_init): added set_gdbarch calls for new 
7536         functions and deleted macros.
7537
7538 2002-06-23  Tom Tromey  <tromey@redhat.com>
7539
7540         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7541         (ALLDEPFILES): Likewise.
7542         (udiheaders): Removed.
7543         (udip2soc.o): Likewise.
7544         (udi2go32.o): Likewise.
7545         (udr.o): Likewise.
7546         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7547
7548 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7549
7550         * infrun.c (_initialize_infrun): Delete unnecessary call to
7551         build_infrun.
7552
7553         * regcache.h: Update comments describing the regcache_cpy family
7554         of functions.
7555         (regcache_save, regcache_restore): Delete declaration.
7556         (regcache_save_no_passthrough): Delete declaration.
7557         (regcache_restore_no_passthrough): Delete declaration.
7558         * regcache.c (regcache_save): Delete function.
7559         (regcache_save_no_passthrough): Delete function.
7560         (regcache_restore): Delete function.
7561         (regcache_restore_no_passthrough): Delete function.
7562
7563 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7564
7565         * config/m68k/tm-m68k.h: Fix typo.
7566         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7567         (m68k_frame_init_saved_regs): Declare.
7568
7569 2002-06-21  Jim Blandy  <jimb@redhat.com>
7570
7571         Remove some vestiges of Harris 88k support.
7572         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7573         register numbering quirk.
7574         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7575         odd symbols occurring in Harris 88k ELF targets.
7576
7577 2002-06-21  Tom Tromey  <tromey@redhat.com>
7578
7579         * gdb_locale.h: New file.
7580         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7581         (defs_h): Added gdb_locale.h.
7582         * configure, config.in: Rebuilt.
7583         * configure.in (PACKAGE): Define.
7584         * defs.h: Include gdb_locale.h.
7585         * main.c (captured_main): Call setlocale, bindtextdomain,
7586         textdomain.
7587
7588 2002-06-21  Dave Brolley  <brolley@redhat.com>
7589
7590         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7591         * config/frv/frv.mt: New file.
7592         * config/frv/tm-frv.h: New file.
7593         * configure.tgt: Support frv-*-*.
7594         * Makefile.in (frv-tdep.o): New target.
7595         * frv-tdep.c: New file.
7596         * NEWS: Mention frv.
7597
7598 2002-06-21  Dave Brolley  <brolley@redhat.com>
7599
7600         * MAINTAINERS: Add self to "Write After Approval" list.
7601
7602 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7603
7604         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7605         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7606         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7607         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7608         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7609
7610         * m68k-tdep.c: Include arch-utils.h
7611         (m68k_register_raw_size): Add.
7612         (m68k_register_virtual_size): Add.
7613         (m68k_register_virtual_type): Add.
7614         (m68k_register_name): Add.
7615         (m68k_stack_align): Add.
7616         (m68k_register_byte): Add.
7617         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7618         tm-m68k.h.
7619
7620 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7621
7622         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7623         m68k_find_saved_regs.
7624         (m68k_pop_frame): Removed saved_regs structure, and replaced
7625         references to it with frame->saved_regs.
7626         (m68k_gdbarch_init): Added function calls to initialize the
7627         gdbarch structure.
7628         (m68k_fix_call_dummy): Add. 
7629         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7630         (CALL_DUMMY): Remove.
7631         (CALL_DUMMY_LENGTH): Remove.
7632         (CALL_DUMMY_START_OFFSET): Remove.
7633         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7634         (FIX_CALL_DUMMY): Remove.
7635         (PUSH_DUMMY_FRAME): Remove.
7636         (POP_FRAME): Remove.
7637
7638 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7639
7640         * parse.c (parse_fprintf): New function used to avoid calls to
7641         fprintf in bison parser generated debug code.
7642         * parser-defs.h: Declaration of new parse_fprintf function.
7643         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7644         Set YYDEBUG to 1 by default.
7645         Set YYFPRINTF as parse_fprintf.
7646
7647 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7648
7649         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7650         encoding anymore.
7651         (pointer_encoding, enum ptr_encoding): New.
7652         (execute_cfa_program): Take care about pointer encoding.        
7653         (dwarf2_build_frame_info): Only call parse_frame_info for 
7654         .debug_frame and .eh_frame.
7655         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7656         fixed augmentation handling, added relative addressing, 
7657         ignore duplicate FDEs. Added comments.
7658         * dwarf2cfi.c: Reindented.
7659         
7660 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7661
7662         * event-top.c (command_handler): Don't use space_at_cmd_start
7663         unless there is sbrk() on the host. Assign time and space data
7664         to union fields of the appropriate length.
7665
7666 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7667
7668         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7669         x86_64_register_name. Return type changed to 'const char *'.
7670         (x86_64_register_name2nr): Rename to x86_64_register_number.
7671         (x86_64_gdbarch_init): Update to reflect the change.
7672         * x86-64-tdep.h: Ditto.
7673         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7674         (supply_fpregset): Ditto.
7675
7676 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7677
7678         * regcache.h: Update copyright.
7679         (struct regcache, struct gdbarch): Add opaque declarations.
7680         (current_regcache): Declare global variable.
7681         (regcache_read, regcache_write): Add gdbarch parameter.
7682         (regcache_save, regcache_save_no_passthrough)
7683         (regcache_restore, regcache_restore_no_passthrough)
7684         (regcache_dup, regcache_dup_no_passthrough)
7685         (regcache_cpy, regcache_cpy_no_passthrough)
7686         (deprecated_grub_regcache_for_registers)
7687         (deprecated_grub_regcache_for_register_valid)
7688         (regcache_valid_p): Add function declarations.
7689         
7690         * regcache.c: Update copyright.
7691         (regcache_descr_handle): New global variable.
7692         (struct regcache_descr): Define.
7693         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7694         (regcache_descr, xfree_regcache_descr): New functions.
7695         (struct regcache): Define.
7696         (regcache_xmalloc, regcache_xfree): New functions.
7697         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7698         (regcache_dup, regcache_dup_no_passthrough): New functions.
7699         (regcache_valid_p, regcache_read_as_address): New functions.
7700         (deprecated_grub_regcache_for_registers): New function.
7701         (deprecated_grub_regcache_for_register_valid): New function.
7702         (current_regcache): New global variable.
7703         (register_buffer): Add regcache parameter.  Update calls.
7704         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7705         (read_register_gen, write_register_gen): Update register_buffer
7706         call.  Test for legacy_p instead of gdbarch_register_read_p or
7707         gdbarch_register_write_p.
7708         (regcache_collect): Update register_buffer call.
7709         (build_regcache): Rewrite.  Use deprecated grub functions.
7710         (regcache_save, regcache_save_no_passthrough): New functions.
7711         (regcache_restore, regcache_restore_no_passthrough): New
7712         functions.
7713         (_initialize_regcache): Create the regcache_data_handle. Swap
7714         current_regcache global variable.
7715         
7716         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7717         parameter to regcache_read and regcache_write calls.
7718         (sh4_register_read): Ditto.
7719         (sh64_pseudo_register_read): Ditto.
7720         (sh64_register_read): Ditto.
7721         (sh_pseudo_register_write): Ditto.
7722         (sh4_register_write): Ditto.
7723         (sh64_pseudo_register_write): Ditto.
7724         (sh64_register_write): Ditto.
7725
7726         * defs.h (XCALLOC): Define.
7727
7728 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7729
7730         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7731         * m68k-tdep.c (m68k_gdbarch_init): Added.
7732         (m68k_dump_tdep): Added.
7733
7734 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7735
7736         * ada-lang.c (fill_in_ada_prototype): Update comment.
7737
7738 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7739
7740         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7741         MIPS_ABI_LAST.
7742         (mips_abi_string, mips_abi_strings): New.
7743         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7744         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7745         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7746         O32 if no ABI is found.
7747         (mips_dump_tdep): Use mips_abi_strings.
7748         (mips_abi_update): New function.
7749         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7750         ``set mips abi'' and ``show mips abi''.  Check the size of
7751         mips_abi_strings.
7752
7753 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7754
7755         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7756         constant.
7757
7758 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7759
7760         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7761         current frame using only the first stack size adjustment. All
7762         subsequent size adjustments are not considered to be part of
7763         the "static" part of the current frame.
7764         Compute the address of the saved registers relative to the
7765         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7766         in use in this frame.
7767
7768 2002-06-18  Don Howard  <dhoward@redhat.com>
7769  
7770         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7771         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7772         suggesting this solution.
7773
7774 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7775
7776         * config/romp/xm-rtbsd.h: Delete file.
7777         * config/romp/rtbsd.mh: Delete file.
7778
7779 2002-06-18  Keith Seitz  <keiths@redhat.com>
7780
7781         * breakpoint.c (condition_command): Post breakpoint_modify
7782         when a condition is added to an existing breakpoint.
7783         (commands_command): Likewise for commands.
7784         (set_ignore_count): Likewise for ignore counts.
7785         If no tty, do not simply return, still need to send event
7786         notification.
7787         (ignore_command): Only print a newline if the command came
7788         from a tty.
7789         Don't call breakpoints_changed, since this is now properly
7790         handled by set_ignore_count.
7791
7792 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7793
7794         * MAINTAINERS: Note that cris-elf target can be compiled with
7795         -Werror.
7796         * cris-tdep.c (cris_register_name): Make return type constant.
7797         (cris_breakpoint_from_pc): Ditto.
7798
7799 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7800
7801         * frame.h (struct frame_info): Change type of context to 
7802         'struct context'.
7803
7804 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7805
7806         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7807         pointer.
7808         * gdbarch.h, gdbarch.c: Regenerate.
7809         * config/mips/tm-mips.h (mips_register_name): Update.
7810         * i386-tdep.h (i386_register_name): Update.
7811         * mips-tdep.c (mips_register_name): Update
7812         * alpha-tdep.c (alpha_register_name): Update.
7813         * arch-utils.c (legacy_register_name): Update.
7814         * arch-utils.h (legacy_register_name): Update.
7815         * avr-tdep.c (avr_register_name): Update.
7816         * ia64-tdep.c (ia64_register_name): Update.
7817         * i386-tdep.c (i386_register_name): Update.
7818         * sparc-tdep.c (sparc32_register_name): Update.
7819         (sparc64_register_name): Update.
7820         (sparclite_register_name): Update.
7821         (sparclet_register_name): Update.
7822         * sh-tdep.c (sh_generic_register_name): Update.
7823         (sh_sh_register_name): Update.
7824         (sh_sh3_register_name): Update.
7825         (sh_sh3e_register_name): Update.
7826         (sh_sh_dsp_register_name): Update.
7827         (sh_sh3_dsp_register_name): Update.
7828         (sh_sh4_register_name): Update.
7829         (sh_sh64_register_name): Update.
7830         * s390-tdep.c (s390_register_name): Update.
7831         * rs6000-tdep.c (rs6000_register_name): Update.
7832         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7833         (ns32k_register_name_32382): Update.
7834         * d10v-tdep.c (d10v_ts2_register_name): Update.
7835         (d10v_ts3_register_name): Update.
7836         * xstormy16-tdep.c (xstormy16_register_name): Update.
7837         * vax-tdep.c (vax_register_name): Update.
7838         * v850-tdep.c (v850_register_name): Update.
7839         * m68hc11-tdep.c (m68hc11_register_name): Update.
7840         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7841         (am33_register_name): Update.
7842
7843 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7844
7845         * m68k-tdep.c: Reindented.
7846
7847 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7848
7849         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7850         list of predefined types.
7851
7852 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7853
7854         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7855         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7856         REGISTER_CONVERT_TO_RAW): Remove defines.
7857         (i386_register_virtual_type, i386_register_convertible,
7858         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7859         Remove prototypes.
7860         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7861         macros mentioned above.
7862
7863         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7864         (i386lynx_saved_pc_after_call): Remove prototype.
7865         * i386ly-tdep.c: Include "i386-tdep.h".
7866         (i386lynx_saved_pc_after_call): Make static.  Use
7867         read_memory_nobpt instead of read_memory.  Use
7868         read_memory_unsigned_integer instead of read_memory_integer.
7869         (i386lynx_init_abi): New function.
7870         (i386lynx_coff_osabi_sniffer): New function.
7871         (_initialize_i386bsd_tdep): New function.
7872
7873         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7874         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7875         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7876         (i386_fix_call_dummy): Remove prototype.
7877         * i386-tdep.c (i386_call_dummy_words): New variable.
7878         (i386_gdbarch_init): Adjust for removal of the
7879         macros mentioned above.
7880
7881 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7882
7883         * command.h (add_setshow_auto_boolean_cmd): Replace
7884         add_set_auto_boolean_cmd.
7885         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7886         add_set_auto_boolean_cmd.
7887         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7888         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7889         mask-address'' command.
7890         (show_mask_address): Add cmd parameter.
7891         * remote.c (add_packet_config_cmd): Update.  Change type of
7892         set_func and show_func to cmd_sfunc_ftype.
7893         (_initialize_remote): Update `set remote Z-packet'
7894         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7895         (show_remote_protocol_e_packet_cmd): Ditto.
7896         (show_remote_protocol_E_packet_cmd): Ditto.
7897         (show_remote_protocol_P_packet_cmd): Ditto.
7898         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7899         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7900         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7901         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7902         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7903         (show_remote_protocol_Z_packet_cmd): Ditto.
7904         (show_remote_protocol_binary_download_cmd): Ditto.
7905         (show_remote_cmd): Pass NULL to all of above.
7906
7907 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7908
7909         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7910         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7911         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7912         POP_FRAME): Remove defines.
7913         (i386_push_arguments, i386_store_struct_return,
7914         i386_extract_return_value, i386_store_return_value,
7915         i386_extract_struct_value_address, i386_push_dummy_frame,
7916         i386_pop_frame): Renove prototypes.
7917         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7918         macros mentioned above.
7919
7920 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7921
7922         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7923         add_set_boolean_cmd.
7924         (add_setshow_cmd): New function.
7925         * command.h (add_setshow_boolean_cmd): Replace
7926         add_set_boolean_cmd.
7927         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7928         and ``set rdiromatzero''.
7929         * maint.c (_initialize_maint_cmds): Update commented out code.
7930         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7931         * target.c (initialize_targets): Update `set
7932         trust-readonly-sections'.
7933         * remote.c (_initialize_remote): Update `set remotebreak'.
7934
7935 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7936
7937         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7938         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7939         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7940         fit into multi-arch framework.
7941         (i386_breakpoint_from_pc): New function.
7942         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7943         above.
7944
7945         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7946         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7947         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7948         (i386_frameless_function_invocation, i386_frame_num_args,
7949         i386_frame_init_saved_regs): Remove prototypes.
7950         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7951         macros mentioned above.
7952
7953 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7954
7955         * cli/cli-decode.c (set_cmd_cfunc): Update.
7956         (set_cmd_sfunc): Update.
7957         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7958         (set_cmd_sfunc, set_cmd_cfunc): Update.
7959         * cli/cli-decode.h: Update.
7960
7961 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7962
7963         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7964         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7965
7966 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7967
7968         * defs.h (auto_boolean): Declare enum.
7969         * command.h (cmd_auto_boolean): Delete enum.
7970         * mips-tdep.c (mask_address_var): Update.
7971         (mips_mask_address_p): Update.
7972         (show_mask_address): Update.
7973         * remote.c (struct packet_config): Update.
7974         (update_packet_config): Update.
7975         (show_packet_config_cmd): Update.
7976         (packet_ok): Update.
7977         (add_packet_config_cmd): Update.
7978         (_initialize_remote): 
7979         * command.h: Update.
7980         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7981         (do_setshow_command): Update.
7982         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7983         * cli/cli-decode.h: Update.
7984
7985 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7986
7987         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7988         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7989         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7990         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7991         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7992         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7993
7994         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7995         list of DJGPP COFF targets.
7996
7997         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7998         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7999         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8000         (FP0_REGNUM): Remove define.
8001         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8002         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8003         (i386_register_virtual_size): Remove protoype.
8004         * i386-tdep.c (i386_register_virtual_size): Removed.
8005         (i386_extract_return_value, i386_store_return_value): Use
8006         FP0_REGNUM instead of NUM_FREGS to determine whether the
8007         floating-point registers are available.
8008         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8009         Adjust for removal of macros mentioned above.
8010
8011 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8012
8013         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8014         comments.
8015         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8016         Remove prototypes.
8017         (supply_gregset, fill_gregset): Remove use of register keyword and
8018         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8019         NUM_REGS and NUM_FREGS.
8020         (FPREGSET_FSAVE_OFFSET): Remove.
8021         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8022         NUM_FREGS to determine whether the floating-point registers are
8023         available.
8024
8025         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8026         gnu_store_registers): Replace usage of NUM_GREGS with
8027         I386_NUM_GREGS.
8028
8029         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8030         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8031         usage of NUM_GREGS with I386_NUM_GREGS.
8032
8033         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8034
8035         * i386bsd-nat.c: Include "i386-tdep.h".
8036         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8037         I386_NUM_GREGS.
8038
8039         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8040         and associated comment.  They no longer make any sense, since we
8041         don't use this file anymore on Linux.
8042
8043         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8044         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8045         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8046         elements in these arrays.
8047         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8048         MAX_NUM_REGS.
8049
8050 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8051
8052         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8053         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8054
8055 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8056
8057         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8058         EXTRACT_RETURN_VALUE.
8059         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8060         EXTRACT_STRUCT_VALUE_ADDRESS.
8061         * gdbarch.h, gdbarch.c: Regenerate.
8062         
8063         * values.c (value_being_returned): Handle
8064         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8065         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8066
8067         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8068         * arm-tdep.c (arm_gdbarch_init): Update.
8069         * avr-tdep.c (avr_gdbarch_init): Update.
8070         * cris-tdep.c (cris_gdbarch_init): Update.
8071         * d10v-tdep.c (d10v_gdbarch_init): Update.
8072         * ia64-tdep.c (ia64_gdbarch_init): Update.
8073         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8074         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8075         * s390-tdep.c (s390_gdbarch_init): Update.
8076         * sh-tdep.c (sh_gdbarch_init): Update.
8077         * s390-tdep.c (s390_gdbarch_init): Update.
8078         * sparc-tdep.c (sparc_gdbarch_init): Update.
8079         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8080         * v850-tdep.c (v850_gdbarch_init): Update.
8081         * vax-tdep.c (vax_gdbarch_init): Update.
8082         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8083         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8084
8085         * config/arc/tm-arc.h: Update.
8086         * config/d30v/tm-d30v.h: Update.
8087         * config/fr30/tm-fr30.h: Update.
8088         * config/h8300/tm-h8300.h: Update.
8089         * config/h8500/tm-h8500.h: Update.
8090         * config/i386/tm-i386.h: Update.
8091         * config/i386/tm-ptx.h: Update.
8092         * config/i386/tm-symmetry.h: Update.
8093         * config/i960/tm-i960.h: Update.
8094         * config/m32r/tm-m32r.h: Update.
8095         * config/m68k/tm-delta68.h: Update.
8096         * config/m68k/tm-linux.h: Update.
8097         * config/m68k/tm-m68k.h: Update.
8098         * config/m88k/tm-m88k.h: Update.
8099         * config/mcore/tm-mcore.h: Update.
8100         * config/mips/tm-mips.h: Update.
8101         * config/mn10200/tm-mn10200.h: Update.
8102         * config/pa/tm-hppa.h: Update.
8103         * config/pa/tm-hppa64.h: Update.
8104         * config/sparc/tm-sp64.h: Update.
8105         * config/sparc/tm-sparc.h: Update.
8106         * config/sparc/tm-sparclet.h: Update.
8107         * config/z8k/tm-z8k.h: Update.
8108
8109 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8110
8111         * Makefile.in (i386_linux_tdep_h): Define.
8112         (i386_tdep_h, i387_tdep_h): Define.
8113         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8114         $(i386_tdep_h) and $(i387_tdep_h).
8115         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8116
8117 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8118
8119         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8120         Already covered by the default.
8121
8122         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8123         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8124         (i386_gdbarch_init): Initialize long_double_format and long_double
8125         bit.
8126
8127         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8128         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8129         Move these to ...
8130         * config/i386/i386sol2.mh: ... here.
8131         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8132         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8133         (SIGCONTEXT_PC_OFFSET): Remove define.
8134         (IN_SIGTRAMP): Remove define.
8135         * i386-sol2-tdep.c: New file.
8136         
8137         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8138         * config/i386/tm-i386nw.h: Removed.
8139
8140         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8141         USE_STRUCT_CONVENTION): Remove defines.
8142         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8143         (get_longjmp_target): Remove prototype.
8144         (IN_SIGTRAMP): Remove define.
8145         (i386bsd_in_sigtramp): Remove prototype.
8146         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8147         function.  Update comment accordingly
8148         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8149         (FRAME_SAVED_PC): Remove define.
8150         (i386bsd_frame_saved_pc): Remove prototype.
8151         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8152         GET_LONGJMP_TARGET): Remove defines.
8153         (get_longjmp_target): Remove prototype.
8154         (IN_SIGTRAMP): Remove define.
8155         (i386bsd_in_sigtramp): Remove prototype.
8156         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8157         function.  Update comment accordingly
8158         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8159         (FRAME_SAVED_PC): Remove define.
8160         (i386bsd_frame_saved_pc): Remove prototype.
8161         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8162         Remove prototype.
8163         (USE_STRUCT_CONVENTION): Remove prototype.
8164         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8165         declaration.
8166         (_initialize_i386bsd_nat): Revise logic to determine some
8167         constants at compile time when compiling a native GDB.  Warn if
8168         things don't match up with what we expect.
8169         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8170         Remove variables.
8171         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8172         to use date stored in `struct gdbarch_tdep'.
8173         (i386bsd_sigcontext_offset): Remove varaible.
8174         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8175         stored in `struct gdbarch_tdep'.
8176         (i386bsd_frame_saved_pc): Make static.
8177         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8178         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8179         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8180         i386fbsd4_sc_pc_offset): New variables.
8181         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8182         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8183         functions.
8184         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8185         functions.
8186         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8187         Modify the value of i386fbsd_sigtramp_start and
8188         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8189         i386fbsd_sigtramp_end.
8190         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8191         function.
8192
8193         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8194         define to i386-linux-tdep.h.
8195         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8196         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8197         defines.
8198         (i386_linux_register_name, i386_linux_register_byte,
8199         i386_linux_register_raw_size): Remove prototypes.
8200         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8201         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8202         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8203         TARGET_WRITE_PC): Remove defines.
8204         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8205         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8206         i386_linux_write_pc): Remove prototypes.
8207         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8208         (get_longjmp_target): Remove prototype.
8209         * i386-linux-tdep.h: New file.
8210         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8211         * i386-linux-tdep.c: Include "i386-tdep.h" and
8212         "i386-linux-tdep.h".
8213         (i386_linux_register_name, i386_linux_register_byte,
8214         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8215         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8216         Make static.
8217         (i386_linux_init_abi): New function.
8218         (_initialize_i386_linux_tdep): New function.
8219
8220         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8221         (i386_saved_pc_after_call): Remove prototype.
8222         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8223         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8224         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8225         (i386_register_name, i386_stab_reg_to_regnum,
8226         i386_dwarf_reg_to_regnum): Remove prototypes.
8227         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8228         SIZEOF_SSE_REGS): Remove defines.
8229         (REGISTER_BYTES): Remove define.
8230         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8231         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8232         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8233         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8234         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8235         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8236         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8237         (get_longjmp_target): Remove prototype.
8238         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8239         (sigtramp_saved_pc): Remove define.
8240         (i386v4_sigtramp_saved_pc): Remove prototype.
8241         * config/i386/tm-go32.h (FRAME_CHAIN,
8242         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8243         (i386go32_frame_saved_pc): Remove prototype.
8244         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8245         (get_longjmp_target): Remove prototype.
8246         * i386-tdep.h: Include "osabi.h".
8247         (enum i386_abi): Removed.
8248         (enum struct_return): New enum.
8249         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8250         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8251         sc_pc_offset members.
8252         (i386_gdbarch_register_os_abi): Remove prototype.
8253         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8254         I386_SSE_NUM_REGS): New defines.
8255         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8256         I386_SSE_SIZEOF_REGS): New defines.
8257         (i386_register_name, i386_register_byte, i386_register_raw_size):
8258         New prototypes.
8259         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8260         (i386bsd_sigtramp_saved_pc): New prototype.
8261         * i386-tdep.c: Don't include "elf-bfd.h".
8262         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8263         i386_frame_chain, i386_saved_pc_after_call): Make static.
8264         (i386_frame_saved_pc): Rewrite to call architecture dependent
8265         function to deal with signal handlers.  Make static.
8266         (i386go32_frame_saved_pc): Removed.
8267         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8268         Removed.
8269         (i386_get_longjmp_target): New function.
8270         (default_struct_convention, pcc_struct_convention,
8271         reg_struct_convention, valid_conventions, struct_convention): New
8272         variables.
8273         (i386_use_struct_convention): New function.
8274         (i386v4_sigtramp_saved_pc): Renamed to
8275         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8276         (i386_pc_in_sigtramp): New function.
8277         (i386_abi_names): Removed.
8278         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8279         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8280         Removed.
8281         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8282         i386_gdbarch_register_os_abi): Removed.
8283         (struct i386_abi_handler): Removed.
8284         (i386_abi_handler_list): Removed.
8285         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8286         functions.
8287         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8288         i386_nw_init_abi): New functions.
8289         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8290         Use set_gdbarch_xxx() calls instead of relying on macros for a
8291         number of calls.
8292         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8293         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8294         Register the various architecture variants defined in this file.
8295
8296 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8297
8298         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8299         (struct main_type): Remove arg_types member.  Update comments for
8300         struct field.
8301         (TYPE_ARG_TYPES): Remove.
8302         (TYPE_FN_FIELD_ARGS): Update.
8303         (smash_to_method_type): Update prototype.
8304
8305         * c-typeprint.c (cp_type_print_method_args): Take method type
8306         instead of argument list.  Use new argument layout.  Simplify.
8307         (c_type_print_args): Use new argument layout.  Simplify.
8308         (c_type_print_base): Update call to cp_type_print_method_args.
8309         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8310         argument; use die->type instead.  Update call to
8311         smash_to_method_type.
8312         (read_structure_scope): Update call to dwarf2_add_member_fn.
8313         * gdbtypes.c (allocate_stub_method): Update comment.
8314         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8315         Use new argument layout.
8316         (check_stub_method): Use new argument layout.  Don't count
8317         void as an argument.
8318         (print_arg_types): Update comments.  Use new argument layout.
8319         (recursive_dump_type): Don't print arg_types member.
8320         * hpread.c (hpread_read_struct_type): Use new argument layout.
8321         (fixup_class_method_type): Likewise.
8322         (hpread_type_lookup): Likewise.
8323         * stabsread.c (read_type): Update calls to read_args and
8324         smash_to_method_type.
8325         (read_args): Use new argument layout.  Simplify.
8326         * valops.c (typecmp): Use new argument layout.  Update parameters
8327         and comments.  Simplify.
8328         (hand_function_call): Use new argument layout.
8329         (search_struct_method): Update call to typecmp.
8330         (find_overload_match): Use new argument layout.
8331
8332 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8333
8334         * NEWS: Mention multithreaded debug support for gdbserver.
8335
8336 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8337
8338         * MAINTAINERS: Mention NEWS.
8339
8340 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8341
8342         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8343         (struct mips_objfile_private, compare_pdr_entries): New.
8344         (non_heuristic_proc_desc): Read the ".pdr" section if it
8345         is present.
8346
8347 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8348
8349         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8350         (arm_debug): New static variable.
8351         (_initialize_arm_tdep): Add ``set debug arm'' command.
8352
8353 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8354
8355         * Makefile.in (sim_arm_h): Define.
8356         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8357         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8358         (arm_register_sim_regno): New function, map an internal REGNUM
8359         onto a simulator register number.
8360         (arm_gdbarch_init): Set register_sim_regno.
8361
8362 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8363
8364         * MAINTAINERS: Add self.
8365
8366 2002-06-11  Jim Blandy  <jimb@redhat.com>
8367
8368         * source.c (source_info): Mention whether the symtab has
8369         information about preprocessor macros.
8370
8371         Call the command `info macro', not `show macro'.
8372         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8373         Fix error message.
8374         (_initialize_macrocmd): Register `info_macro_command' in
8375         `infolist', not `showlist'.
8376
8377 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8378
8379         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8380         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8381         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8382         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8383         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8384         unconditionally.
8385         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8386         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8387         (_initialize_mips_tdep): Remove dead code.
8388         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8389         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8390         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8391         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8392         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8393         MIPS_LAST_FP_ARG_REGNUM): Remove.
8394
8395 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8396
8397         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8398         (unwind_tmp_obstack_free, parse_frame_info)
8399         (update_context, cfi_read_fp, cfi_write_fp)
8400         (cfi_frame_chain, cfi_init_extra_frame_info)
8401         (cfi_virtual_frame_pointer): Use the above function.
8402         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8403
8404 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8405
8406         * v850-tdep.c (v850_type_is_scalar): New function.
8407         (v850_use_struct_convention): Match current gcc implementation
8408         as close as possible.
8409         (v850_push_arguments): Fix stack_offset handling.  Don't write
8410         struct_addr into register.  This is done by v850_store_struct_return.
8411         (v850_extract_return_value): Care for structs.
8412         (v850_store_return_value): Ditto.
8413         (v850_store_struct_return): Actually write address.
8414
8415 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8416
8417         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8418         without debug information too.
8419
8420 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8421
8422         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8423         Make multi-arch pure.
8424         * gdbarch.h, gdbarch.c: Re-generate.
8425         * arm-tdep.c (arm_print_float_info): Update.
8426         * arch-utils.h (default_print_float_info): Update.
8427         * arch-utils.c (default_print_float_info): Update.
8428         * infcmd.c (float_info): Update call.
8429
8430 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8431
8432         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8433         the front of the initialize list.
8434
8435 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8436
8437         * infrun.c (struct inferior_status): Replace fields
8438         selected_frame_address and selected_level with field
8439         selected_frame_id.
8440         (save_inferior_status): Update.  Use get_frame_id.
8441         (struct restore_selected_frame_args): Delete.
8442         (restore_selected_frame): Update.  Use frame_find_by_id.
8443         (restore_inferior_status): Update.
8444
8445         * breakpoint.h (struct breakpoint): Change type of
8446         watchpoint_frame to frame_id.
8447         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8448         call to get_current_frame.
8449         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8450         get_current_frame.
8451         (watchpoint_check): Use frame_find_by_id.
8452
8453         * frame.h (record_selected_frame): Delete declaration.
8454         * stack.c (record_selected_frame): Delete function.
8455         
8456         * frame.h (struct frame_id): Define.
8457         (get_frame_id): Declare.
8458         (frame_find_by_id): Declare.
8459         * frame.c (frame_find_by_id): New function.
8460         (get_frame_id): New function.
8461
8462 2002-06-10  Andrey Volkov <avolkov@transas.com>
8463
8464         * ser-e7kpc.c: Fix duplicated define and call of 
8465         _initialize_ser_e7000pc
8466             
8467 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8468
8469         * signals/signals.c (target_signal_from_host): Fix #ifdef
8470         SIGRTMIN case.
8471         (do_target_signal_to_host): Likewise.
8472
8473 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8474
8475         * mips-tdep.c (mips_find_abi_section): New function.
8476         (mips_gdbarch_init): Call it.
8477
8478 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8479
8480         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8481         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8482         after Andrew's 2002-06-08 gdbarch change.
8483
8484 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8485
8486         * i386-linux-nat.c (suppy_gregset): Don't supply
8487         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8488         register cache.
8489         (fill_gregset): Don't fetch it under the same circumstances.
8490
8491 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8492
8493         * Makefile.in (callback_h): Define.
8494         (remote_sim_h): Update path to remote-sim.h.
8495         (remote-rdp.o): Add $(callback_h).
8496         (remote-sim.o): Use $(callback_h).
8497         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8498         * remote-rdp.c: Include "gdb/callback.h".
8499
8500 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8501
8502         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8503         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8504
8505 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8506
8507         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8508         * rdi-share/serpardr.c: Ditto.
8509         * rdi-share/unixcomm.c: Ditto.
8510         * rdi-share/serdrv.c: Ditto.
8511         * rdi-share/hostchan.h: Ditto.
8512         * rdi-share/hostchan.c: Ditto.
8513         * rdi-share/host.h: Ditto.
8514         * rdi-share/devsw.c: Ditto.
8515
8516         * objfiles.h: Change type of obj_private to void pointer.
8517         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8518         strcmp instead of STREQ, use LONGEST, do not use PTR
8519         * somsolib.c: Ditto.
8520
8521         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8522         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8523         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8524
8525 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8526
8527         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8528         (default_get_saved_register): Delete function.
8529         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8530         generic_unwind_get_saved_register.
8531         * gdbarch.h, gdbarch.c: Re-generate.
8532         
8533 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8534
8535         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8536         generic_func_frame_chain_valid.
8537         * gdbarch.h, gdbarch.c: Re-generate.
8538         * blockframe.c (generic_func_frame_chain_valid): Only check
8539         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8540         passing FP to PC_IN_CALL_DUMMY.
8541         Fix PR gdb/360.
8542
8543 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8544
8545         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8546         (register_gdbarch_data): Initialize init_p.
8547         (gdbarch_data): Initialize data pointer using the init function.
8548         (init_gdbarch_data): Delete function.
8549         (gdbarch_update_p): Update.
8550         (initialize_non_multiarch): Update.
8551         (struct gdbarch): Add field initialized_p.
8552         * gdbarch.h, gdbarch.c: Re-generate.
8553
8554 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8555
8556         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8557         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8558         better do the things actually here.
8559         * x86-64-tdep.c (x86_64_register_name2nr): New.
8560         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8561         (x86_64_gdbarch_init): Respect the above change.
8562         * x86-64-tdep.h (x86_64_register_name2nr)
8563         (x86_64_register_nr2name): Add prototypes.
8564         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8565
8566 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8567
8568         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8569         Delete extra braces and re-indent.
8570         (d10v_store_return_value): Char return values
8571         must be shifted over by one byte in R0.
8572         (d10v_extract_return_value): Delete extra braces, re-indent.
8573
8574 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8575
8576         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8577         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8578         (d10v_integer_to_address): Rewrite.
8579         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8580         the d10v specific functions which take care of converting to the
8581         correct space.
8582
8583 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8584
8585         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8586         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8587
8588 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8589
8590         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8591         includes.
8592         * config/tm-linux.h: Ditto.
8593         * config/alpha/tm-alphalinux.h: Ditto.
8594         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8595         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8596         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8597         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8598         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8599         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8600         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8601         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8602         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8603         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8604         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8605         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8606         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8607         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8608         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8609         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8610         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8611         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8612         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8613         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8614         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8615         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8616         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8617         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8618         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8619         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8620         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8621         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8622         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8623         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8624         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8625         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8626         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8627         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8628         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8629         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8630         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8631
8632 2002-05-04  Aidan Skinner <aidan@velvet.net>
8633
8634         * ada-exp.tab.c: New file
8635         * ada-exp.y: New file
8636         * ada-lang.c: New file
8637         * ada-lang.h: New file
8638         * ada-lex.c: New file
8639         * ada-lex.l: New file
8640         * ada-tasks.c: New file
8641         * ada-typeprint.c: New file
8642         * ada-valprint.c: New file
8643         
8644 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8645
8646         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8647         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8648
8649 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8650
8651         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8652         insetead of ppc-linux-tdep.o.
8653         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8654         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8655
8656 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8657
8658         2002-05-07 Christian Groessler <chris@groessler.org>
8659         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8660         bit register contents for little endian hosts.
8661
8662 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8663
8664         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8665         any maintainer.
8666
8667 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8668
8669         * gdbarch.h: Regenerate.
8670
8671 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8672
8673         * MAINTAINERS: Add everyone to write-after-approval list.
8674
8675 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8676
8677         * stack.c (frame_info): Use frame_register_unwind instead of
8678         saved_regs.  Mention when the SP is on the stack or in a register.
8679
8680         * frame.h (frame_register_unwind_ftype): Define.  Document.
8681         (struct frame_info): Add field register_unwind and
8682         register_unwind_cache.
8683         (frame_register_unwind): Declare.
8684         (generic_unwind_get_saved_register): Declare.
8685
8686         * frame.c (frame_register_unwind): New function.
8687         (generic_unwind_get_saved_register): New function.
8688
8689         * blockframe.c (generic_call_dummy_register_unwind): New function.
8690         (frame_saved_regs_register_unwind): New function.
8691         (set_unwind_by_pc): New function.
8692         (create_new_frame): New function.
8693         (get_prev_frame): New function.
8694
8695 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8696
8697         * a29k-share/: Delete directory.
8698         * remote-vx29k.c: Delete file.
8699
8700 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8701
8702         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8703         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8704
8705 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8706
8707         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8708         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8709         (sparc64nbsd-nat.o)
8710         (sparcnbsd-nat.o)
8711         (sparcnbsd-tdep.o): New dependency lists.
8712         * NEWS: Note new UltraSPARC NetBSD native configuration.
8713         * configure.host (sparc64-*-netbsd*): New host.
8714         * configure.tgt (sparc-*-netbsdelf*)
8715         (sparc-*-netbsd*): Set gdb_target to nbsd.
8716         (sparc64-*-netbsd*): New target.
8717         * sparc64nbsd-nat.c: New file.
8718         * sparcnbsd-nat.c: New file.
8719         * sparcnbsd-tdep.c: New file.
8720         * sparcnbsd-tdep.h: New file.
8721         * config/sparc/nbsd.mt: New file.
8722         * config/sparc/nbsd64.mh: New file.
8723         * config/sparc/nbsd64.mt: New file.
8724         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8725         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8726         (HOST_IPC): Remove.
8727         * config/sparc/nbsdaout.mt: Remove.
8728         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8729         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8730         (HOST_IPC): Remove.
8731         * config/sparc/nbsdelf.mt: Remove.
8732         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8733         sparc-nat.c compatiblity defines.
8734         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8735         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8736         * config/sparc/tm-nbsd64.h: New file.
8737         * config/sparc/tm-nbsdaout.h: Remove.
8738         * config/sparc/xm-nbsd.h: Remove.
8739
8740 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8741
8742         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8743         * sparc-tdep.c: Include osabi.h.
8744         (gdbarch_tdep): Add osabi member.
8745         (_initialize_sparc_tdep): Use gdbarch_register.
8746         (sparc_gdbarch_init): Use generic OS ABI framework.
8747         (sparc_dump_tdep): New function.
8748
8749 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8750
8751         * corefile.c (do_captured_read_memory_integer): Return non-zero
8752         result.
8753         (safe_read_memory_integer): Copy result of memory read when
8754         status is non-zero.  Also, add comments.
8755
8756 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8757
8758         * Makefile.in (ppc_tdep_h): Define.
8759         (ppc-linux-nat.o)
8760         (ppc-linux-tdep.o)
8761         (rs6000-tdep.o): Use $(ppc_tdep_h).
8762         (ppc-sysv-tdep.o)
8763         (ppcnbsd-nat.o)
8764         (ppcnbsd-tdep.o): New dependency lists.
8765         * ppc-tdep.h: Use generic OS ABI framework.
8766         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8767         (ppc_linux_init_abi): New functions.
8768         (ppc_sysv_abi_broken_use_struct_convention)
8769         (ppc_sysv_abi_use_struct_convention)
8770         (ppc_sysv_abi_push_arguments): Move to...
8771         * ppc-sysv-tdep.c: ...here.
8772         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8773         * rs6000-tdep.c (process_note_abi_tag_sections)
8774         (get_elfosabi): Remove.
8775         (rs6000_gdbarch_init): Use generic OS ABI framework.
8776         (rs6000_dump_tdep): New function.
8777         (_initialize_rs6000_tdep): Use gdbarch_register.
8778         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8779         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8780         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8781         of ppc-linux-tdep.o.
8782         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8783         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8784         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8785         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8786         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8787         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8788
8789 2002-05-29  Jim Blandy  <jimb@redhat.com>
8790
8791         * macroscope.c (default_macro_scope): Put `void' in empty argument
8792         list.
8793
8794 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8795
8796         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8797         * arch-utils.c: Include "sim-regno.h".
8798         * gdbarch.sh: Don't include "sim-regno.h".
8799         * gdbarch.h, gdbarch.c: Regenerate.
8800         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8801         here.
8802         * arch-utils.h (legacy_register_sim_regno): To here.
8803         * remote-sim.c (legacy_register_sim_regno): Move function from
8804         here.
8805         * arch-utils.c (legacy_register_sim_regno): To here.
8806
8807 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8808
8809         * sim-regno.h: New file.
8810         * Makefile.in (sim_regno_h): Define.
8811         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8812         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8813         (legacy_register_sim_regno): New function.
8814         (one2one_register_sim_regno): New function.
8815         (gdbsim_fetch_register): Rewrite.
8816         (gdbsim_store_register): Only store a register when
8817         REGISTER_SIM_REGNO is valid.
8818         * d10v-tdep.c: Include "sim-regno.h".
8819         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8820         (d10v_ts3_register_sim_regno): Ditto.
8821         * gdbarch.sh: Include "sim-regno.h".
8822         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8823         * gdbarch.h, gdbarch.c: Regenerate.
8824         * arch-utils.h (default_register_sim_regno): Delete declaration.
8825         * arch-utils.c (default_register_sim_regno): Delete function.
8826
8827 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8828
8829         * ppcnbsd-nat.c: Rewrite.
8830         * ppcnbsd-tdep.c: New file.
8831         * ppcnbsd-tdep.h: New file.
8832         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8833         solib.o, and solib-svr4.o.
8834         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8835         nbsd-tdep.o, and corelow.o.
8836
8837 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8838
8839         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8840         `tr' and `sed'.  Mention that `broken' targets are not expected to
8841         build.
8842
8843 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8844
8845         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8846         Let PC point right after the prologue before looking up symbols.
8847         
8848 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8849
8850         * i386-tdep.c (i386_register_virtual_type): Return 
8851         builtin_type_vec128i for SSE registers.
8852
8853         * gdbtypes.h (builtin_type_vec128i): Declare.
8854
8855         * gdbtypes.c (build_builtin_type_vec128i): New function.
8856         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8857         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8858         (build_gdbtypes): Initialize new builtin vector types.
8859         (_initialize_gdbtypes): Register new vector types with gdbarch.
8860
8861 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8862
8863         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8864         since it has been multi-arch'd.
8865         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8866         Move Alpha and VAX multi-arch news entries to same section
8867         as other multi-arch news.
8868
8869 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8870
8871         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8872         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8873         static.  Rename some register numbers to put them in ns32k-tdep
8874         private namespace.
8875         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8876         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8877         functions.
8878         (_initialize_ns32k_tdep): Use gdbarch_register.
8879         * ns32k-tdep.h: New file.
8880         * ns32knbsd-tdep.c: New file.
8881         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8882         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8883         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8884         REGISTER_BYTES, REGISTER_BYTE): Remove.
8885         * config/ns32k/tm-ns32k.h: New file.
8886         * config/ns32k/tm-umax.h: Remove.
8887
8888 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8889
8890         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8891         ns32k_store_struct_return, ns32k_extract_return_value,
8892         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8893         functions.
8894         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8895         ns32k_saved_pc_after_call.
8896         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8897         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8898         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8899         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8900         ns32k_extract_struct_value_address.
8901
8902 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8903
8904         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8905         ns32k_fix_call_dummy): New.
8906         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8907         ns32k_call_dummy_words.
8908         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8909         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8910         CALL_DUMMY_NARGS): Remove.
8911         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8912
8913 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8914
8915         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8916         ns32k_frame_saved_pc, ns32k_frame_args_address,
8917         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8918         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8919         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8920         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8921         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8922         (BREAKPOINT): Remove..
8923         (FRAME_CHAIN): Define as ns32k_frame_chain.
8924         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8925         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8926         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8927         (FRAME_FIND_SAVED_REGS): Remove.
8928         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8929         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8930         (POP_FRAME): Define as ns32k_pop_frame.
8931
8932 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8933
8934         * ns32k-tdep.c (ns32k_register_byte_32082,
8935         ns32k_register_byte_32382, ns32k_register_raw_size,
8936         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8937         functions.
8938         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8939         ns32k_register_byte_32382.
8940         * config/ns32k/tm-umax.h: Update copyright years.
8941         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8942         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8943         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8944         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8945         (ns32k_get_enter_addr): Fix prototype.
8946
8947 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8948
8949         * ns32k-tdep.c: Update copyright years.
8950         (ns32k_register_name_32082): New function.
8951         (ns32k_register_name_32382): Ditto.
8952         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8953         (REGISTER_NAME): Define as ns32k_register_name_32382.
8954         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8955         (REGISTER_NAME): Define as ns32k_register_name_32082.
8956
8957 2002-05-24  Jim Blandy  <jimb@redhat.com>
8958
8959         * dwarf2read.c (free_line_header): Use xfree, not free.
8960
8961 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
8962
8963         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8964         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8965
8966 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8967
8968         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8969
8970 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8971
8972         From Ross Alexander at NEC Europe:
8973         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8974
8975 2002-05-23  Michael Snyder  <msnyder@redhat.com>
8976
8977         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8978         for input, rather than parse_and_eval_address.  
8979
8980 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
8981
8982         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8983         * Makefile.in (sim_d10v_h): Update definition.
8984
8985 2002-05-24  Andrew Cagney  <cagney@redhat.com>
8986
8987         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8988         change `2002-05-22 Michael Snyder' below.
8989         (d10v_push_arguments): Ditto.
8990         (d10v_extract_return_value): Ditto.
8991
8992 2002-05-23  Jim Blandy  <jimb@redhat.com>
8993
8994         * macrotab.c (check_for_redefinition): Don't complain if the new
8995         definition is the same as the previous one.  Take more arguments
8996         to allow the comparison.
8997         (macro_define_object, macro_define_function): Pass more arguments
8998         to check_for_redefinition.
8999
9000 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9001
9002         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9003         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9004         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9005         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9006         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9007         Add a temp variable to save a call (and a memory read).
9008         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9009         if possible (so that PC_IN_CALL_DUMMY will work).
9010
9011 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9012
9013         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9014
9015 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9016
9017         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9018         fde->cie_ptr.
9019         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9020         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9021         so that frames of shared libraries are mapped correctly.
9022         (execute_stack_op): Change type of 'result' from ULONGEST to
9023         CORE_ADDR.
9024         
9025 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9026
9027         * config/alpha/tm-nbsd.h: Include solib.h.
9028
9029 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9030
9031         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9032         assumptions about the host's byte order.
9033
9034 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9035
9036         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9037         to dependency list.
9038         * alphanbsd-tdep.c: Include solib-svr4.h.
9039         * shnbsd-tdep.c: Ditto.
9040
9041 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9042
9043         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9044         nbsd-tdep.h to dependency list.
9045         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9046         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9047         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9048         nbsdaout.mh and nbsdelf.mh consistently.
9049         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9050         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9051         nbsdaout.mt and nbsdelf.mh consistently.
9052         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9053         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9054         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9055         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9056         a.out shared library stuff from here...
9057         * config/nm-nbsdaout.h: ...to here.
9058         * config/tm-nbsd.h: Remove.
9059         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9060         * config/arm/nbsd.mh: Remove.
9061         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9062         nbsd-tdep.o.
9063         * config/arm/nbsdaout.mh: New file. 
9064         * config/arm/nbsdelf.mh: New file.
9065         * config/arm/nm-nbsdaout.h: New file.
9066         * config/i386/nbsd.mh: Remove.
9067         * config/i386/nbsd.mt: Remove.
9068         * config/i386/nbsdaout.mh: New file.
9069         * config/i386/nbsdaout.mt: New file.
9070         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9071         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9072         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9073         i386_register_u_addr): Remove.
9074         * config/i386/nm-nbsdaout.h: New file.
9075         * config/i386/nm-nbsdelf.h: Remove.
9076         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9077         (USE_STRUCT_CONVENTION): Remove.
9078         * config/i386/tm-nbsdaout.h: New file.
9079         * config/i386/tm-nbsdelf.h: Remove.
9080         * config/m68k/nbsd.mh: Remove.
9081         * config/m68k/nbsd.mt: Remove.
9082         * config/m68k/nbsdaout.mh: New file.
9083         * config/m68k/nbsdaout.mt: New file. 
9084         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9085         * config/m68k/nm-nbsdaout.h: New file.
9086         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9087         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9088         * config/ns32k/nbsd.mh: Remove.
9089         * config/ns32k/nbsd.mt: Remove. 
9090         * config/ns32k/nbsdaout.mh: New file.
9091         * config/ns32k/nbsdaout.mt: New file.
9092         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9093         * config/ns32k/nm-nbsdaout.h: New file.
9094         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9095         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9096         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9097         (SVR4_SHARED_LIBS): Remove.
9098         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9099         * config/sparc/nbsd.mh: Remove.
9100         * config/sparc/nbsd.mt: Remove.
9101         * config/sparc/nbsdaout.mh: New file.
9102         * config/sparc/nbsdaout.mt: New file.
9103         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9104         * config/sparc/nbsdelf.mt: New file.
9105         * config/sparc/nm-nbsdaout.h: New file.   
9106         * config/sparc/nm-nbsdelf.h: Remove.
9107         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9108         * config/sparc/tm-nbsdaout.h: New file.
9109
9110 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9111
9112         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9113         mipsnbsd-tdep.c
9114         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9115
9116 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9117
9118         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9119         shnbsd-nat.c.
9120         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9121
9122 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9123
9124         * NEWS: Note new MIPS NetBSD native configuration. 
9125         * configure.host (mips*-*-netbsd*): New host. 
9126         * configure.tgt (mips*-*-netbsd*): New target. 
9127         * mipsnbsd-nat.c: New file.
9128         * mipsnbsd-tdep.c: New file.
9129         * mipsnbsd-tdep.h: New file.
9130         * config/mips/nbsd.mh: New file.
9131         * config/mips/nbsd.mt: New file.
9132         * config/mips/nm-nbsd.h: New file.
9133         * config/mips/tm-nbsd.h: New file.
9134
9135 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9136
9137         * Makefile.in (SFILES): Add osabi.c.
9138         (COMMON_OBS): Add osabi.o.
9139         (osabi.o): New dependency list.
9140         * osabi.c: New file.
9141         * osabi.h: New file.
9142         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9143
9144         * Makefile.in (alpha_tdep_h): Define and use instead of
9145         alpha-tdep.h.
9146         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9147         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9148         Remove.
9149         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9150         * alpha-tdep.h: Include osabi.h.
9151         (alpha_abi): Remove.
9152         (gdbarch_tdep): Use generic OS ABI framework.
9153         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9154         gdbarch_register_osabi.
9155         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9156         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9157         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9158
9159         * Makefile.in (sh_tdep_h): Add osabi.h.
9160         * sh-tdep.h (sh_osabi): Remove.
9161         (gdbarch_tdep): Use generic OS ABI framework.
9162         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9163         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9164         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9165         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9166
9167         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9168         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9169         gdbarch_register_osabi.
9170         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9171         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9172         (get_elfosabi): Rename to...
9173         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9174         ABI framework support routines.
9175         (arm_gdbarch_init): Use generic OS ABI framework.
9176         (arm_dump_tdep): Likewise.
9177         (_initialize_arm_tdep): Likewise.
9178         * arm-tdep.h: Include osabi.h.
9179         (arm_abi): Remove.
9180         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9181         osabi member.
9182         (arm_gdbarch_register_os_abi): Remove prototype.
9183         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9184         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9185
9186         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9187         * mips-tdep.c: Include osabi.h.
9188         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9189         OS ABI framework.
9190
9191 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9192
9193         * h8300-tdep.c: Fix formatting.
9194
9195 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9196
9197         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9198         printing vector registers.
9199
9200 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9201
9202         From Fernando Nasser:
9203         * remote.c (remote_async_open_1): Re-throw the exception when the
9204         connection fails.
9205         (remote_cisco_open): Ditto.
9206         (remote_open_1): Ditto.
9207
9208 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9209
9210         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9211         (remote_start_remote): Add uiout parameter.  Pass through to
9212         remote_start_remote_dummy.
9213         (remote_open_1): Use catch_exception instead of catch_errors.
9214         (remote_async_open_1): Ditto.
9215         (remote_cisco_open): Ditto.
9216
9217 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9218
9219         * remote.c (remote_start_remote): Replace PTR with void pointer.
9220         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9221         static.
9222
9223 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9224
9225         * gdb_indent.sh: Allow the script to be run in the sim directory.
9226
9227 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9228
9229         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9230         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9231
9232         * corelow.c (core_open): Only call set_gdbarch_from_file if
9233         exec_bfd is NULL.
9234
9235 2002-05-17  Andrey Volkov <avolkov@transas.com>
9236
9237         * h8300-tdep.c: Add support of EXR register
9238         * config/h8300/tm-h8300.h: Ditto. 
9239         
9240 2002-05-17  Andrey Volkov <avolkov@transas.com>
9241
9242         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9243         
9244 2002-05-17  Andrey Volkov <avolkov@transas.com>
9245
9246         * h8300-tdep.c: Change literal regnums to REGNO.
9247         
9248 2002-05-17  Jim Blandy  <jimb@redhat.com>
9249
9250         * NEWS: Note addition of macro support.
9251
9252         Expand preprocessor macros in C expressions.
9253         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9254         (scan_macro_expansion, scanning_macro_expansion,
9255         finished_macro_expansion): New function declarations.
9256         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9257         variable declarations.
9258         * parser-defs.h (expression_context_pc): New declaration.
9259         * parse.c (expression_context_pc): New variable.
9260         (parse_exp_1): Set expression_context_pc, as well as
9261         expression_context_block.
9262         * c-exp.y (yylex): If we're not already reading the result of a
9263         macro expansion, try to macro-expand the next token.  When we're
9264         done scanning a macro expansion, switch back to the mainline text.
9265         Commas and `if's in a macro's expansion don't terminate the input.
9266         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9267         (macro_original_text, macro_expanded_text,
9268         expression_macro_lookup_func, expression_macro_lookup_baton): New
9269         variables.
9270         (scan_macro_expansion, scanning_macro_expansion,
9271         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9272         c_preprocess_and_parse): New functions.
9273         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9274         c_preprocess_and_parse, instead of c_parse.
9275         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9276         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9277
9278 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9279
9280         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9281         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9282         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9283
9284 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9285
9286         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9287
9288 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9289
9290         * Makefile.in (sh_tdep_h): Define and use.
9291         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9292         register enum): Move to...
9293         * * sh-tdep.h: ...here.
9294         * sh-tdep.c: Include sh-tdep.h.
9295         * sh3-rom.c: Likewise.
9296         * shnbsd-tdep.c: Likewise.
9297
9298 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9299
9300         * arm-tdep.c: Spelling fix in comment.
9301
9302 2002-05-16  Jim Blandy  <jimb@redhat.com>
9303
9304         Add commands for manually expanding macros and showing their
9305         definitions.
9306         * macrocmd.c, macroscope.c, macroscope.h: New files.
9307         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9308         (macroscope_h): New variable.
9309         (HFILES_NO_SRCDIR): Add macroscope.h.
9310         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9311         (macroscope.o, macrocmd.o): New rules.
9312
9313         Teach the Dwarf 2 reader to read macro information.
9314         * dwarf2read.c: #include "macrotab.h".
9315         (dwarf_macinfo_buffer): New variable.
9316         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9317         dwarf_macinfo_size.
9318         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9319         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9320         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9321         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9322         dwarf2_macro_spaces_in_definition): New complaints.
9323         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9324         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9325         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9326         the partial symbol table.
9327         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9328         from what's recorded in the partial symbol table.
9329         (read_file_scope): If the compilation unit has a
9330         `DW_AT_macro_info' attribute, read its macro information.
9331         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9332
9333 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9334
9335         Fix PR gdb/546
9336         * ser-tcp.c: Don't include <netinet/udp.h>.
9337
9338 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9339
9340         * MAINTAINERS: Update my email address.
9341
9342 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9343
9344         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9345         include file of the same name.
9346
9347 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9348
9349         * configure.tgt: Mark v850 as multi-arched.
9350         * config/v850/tm-v850.h: Remove file.
9351         * config/v850/v850.mt: Eliminate TM_FILE.
9352
9353 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9354
9355         * v850-tdep.c: Full multi-arch.
9356         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9357         Define GDB_MULTI_ARCH to 2.
9358
9359 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9360
9361         * p-exp.y (current_type): New static variable.
9362         Carries the type of the expression at the position that is parsed.
9363         (push_current_type, pop_current_type): Two new functions. Used
9364         to store/restore current_type in expression on specific tokens.
9365         (search_field): New static variable. Set to one after parsing a point
9366         as at that point only a FIELDNAME token should be searched.
9367         (FIELDNAME): New token. After a point only a token belonging to 
9368         current_type type definition is allowed.
9369         (all over token rules): reset and change current_type according
9370         to rules.
9371         (exp '[' rule): insert implicit array index field if
9372         exp is a pascal string type.
9373
9374 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9375
9376         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9377         frame info.  Use frame_info's saved_regs instead of matching member
9378         in extra_frame_info throughout.
9379         (v850_frame_init_saved_regs): New function.
9380         (v850_init_extra_frame_info): Move most functionality into
9381         v850_frame_init_saved_regs().
9382         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9383         (v850_frame_find_saved_regs): Remove declaration.
9384         (FRAME_FIND_SAVED_REGS): Remove definition.
9385         (v850_frame_init_saved_regs): Add declaration.
9386         (FRAME_INIT_SAVED_REGS): Add definition.
9387
9388 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9389
9390         * v850-tdep.c: Begin multi-arch'ing v850.
9391         (v850_target_architecture_hook): Remove function.
9392         (v850_gdbarch_init): New function.  Add code previously in
9393         v850_target_architecture_hook().
9394         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9395         Call register_gdbarch_init() instead.
9396
9397 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9398
9399         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9400         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9401         (fixup_class_method_type): Likewise.
9402
9403 2002-05-15  Jim Blandy  <jimb@redhat.com>
9404
9405         Add macro structures to GDB's symbol tables.  Nobody puts anything
9406         in them yet.
9407         * symtab.h (struct symtab): New member: `macro_table'.
9408         * buildsym.h (pending_macros): New global variable.
9409         * buildsym.c: #include "macrotab.h".
9410         (buildsym_init): Initialize `pending_macros'.
9411         (end_symtab): If we found macro information while reading a CU's
9412         debugging info, do build a symtab structure for it.  Make the
9413         symtab point to the macro information, and clear the
9414         `pending_macros' pointer which held it while we were reading the
9415         debug info.
9416         (really_free_pendings): Free any pending macro table.
9417         * objfiles.h (struct objfile): New member: `macro_cache'.
9418         * objfiles.c (allocate_objfile): Set allocate and free functions
9419         for the macro cache's objstack.
9420         (free_objfile): Empty the macro cache's obstack.
9421         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9422         set new allocate and free functions for it.
9423         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9424         free functions for the macro cache's objstack.  (Why is this
9425         function building its own objfile?)
9426         * symmisc.c (print_objfile_statistics): Print statistics on the
9427         macro bcache.
9428         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9429
9430 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9431
9432         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9433         (REGISTER_U_ADDR): Delete definition.
9434         (arm_register_u_addr): Delete declaration.
9435
9436 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9437
9438         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9439         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9440
9441 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9442
9443         * regcache.c (register_valid): Revise comments refering to "Not
9444         available" and "unavailable".
9445         * frame.c (frame_register_read): Ditto.
9446         * findvar.c (value_of_register): Ditto.
9447
9448 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9449
9450         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9451         (remote-sim.o): Update dependencies.
9452         (d10v-tdep.o): Specify dependencies.
9453         (sim_d10v_h): Define.
9454
9455 2002-05-14  Jim Blandy  <jimb@redhat.com>
9456
9457         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9458         * macrotab.c (macro_lookup_inclusion, find_definition,
9459         new_macro_table): Same.
9460         
9461         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9462         not `! strcmp ()'.  This is a dubious improvement.
9463         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9464
9465         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9466         although it's not necessary, to avoid a warning.
9467
9468 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9469
9470         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9471         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9472         TYPE_INSTANCE_FLAGS.
9473         (struct main_type): New.
9474         (struct type): Move most members to struct main_type.  Change
9475         cv_type and as_type to new type_chain member.  Add instance_flags.
9476         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9477         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9478         (finish_cv_type): Remove prototype.
9479         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9480         Set TYPE_CHAIN.
9481         (alloc_type_instance): New function.
9482         (smash_type): New function.
9483         (make_pointer_type, make_reference_type, make_function_type)
9484         (smash_to_member_type, smash_to_method_type): Call smash_type.
9485         (make_qualified_type): New function.
9486         (make_type_with_address_space): Call make_qualified_type.
9487         (make_cv_type): Likewise.
9488         (finish_cv_type): Remove unnecessary function.
9489         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9490         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9491         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9492         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9493         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9494         * hpread.c (hpread_read_struct_type): Likewise.
9495         * stabsread.c (read_struct_type): Likewise.
9496
9497 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9498
9499         * configure.tgt: Add a catch all sh* target, for cases like
9500         sh[2,3,4]-elf and sh-hms.
9501
9502 2002-05-14  Keith Seitz  <keiths@redhat.com>
9503
9504         * event-loop.c (create_file_handler): Don't do anything but
9505         update data when we are given a fd which we are already
9506         monitoring.
9507
9508 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9509
9510         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9511         (update_context): Use __func__ in warnings.
9512         
9513 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9514
9515         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9516         and tcp_close to net_open and net_close.
9517         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9518         using UDP if requested.  Don't try to disable Nagle on UDP
9519         sockets.
9520         * remote.c (remote_serial_open): New function.  Warn about UDP.
9521         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9522
9523 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9524
9525         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9526
9527 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9528
9529         * configure.tgt: Remove sh-hms target.
9530         * MAINTAINERS: Don't list sh-hms as a separate target.
9531
9532 2002-05-13  Jim Blandy  <jimb@redhat.com>
9533
9534         Add first preprocessor macro-expansion files.
9535         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9536         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9537         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9538         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9539         (COMMON_OBS): Add macrotab.o, macroexp.o.
9540         (macroexp.o, macrotab.o): New rules.
9541
9542 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9543
9544         * config/m88k/tm-m88k.h: Update copyright.
9545         (m88k_target_write_pc): Declare
9546         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9547         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9548         (SHIFT_INST_REGS): Update definition.
9549         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9550         using old definition of TARGET_WRITE_PC.
9551         * regcache.c (generic_target_write_pc): Delete code handling
9552         NNPC_REGNUM.
9553         * gdbarch.sh (NNPC_REGNUM): Delete.
9554         * gdbarch.h, gdbarch.c: Regenerate.
9555
9556 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9557
9558         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9559         builtin reg number.
9560
9561 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9562
9563         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9564         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9565         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9566         access macros.
9567         * c-typeprint.c (cp_type_print_method_args): Likewise.
9568         (c_type_print_args): Likewise.
9569         * d10v-tdep.c (d10v_push_arguments): Likewise.
9570         (d10v_extract_return_value): Likewise.
9571         * expprint.c (print_subexp): Likewise.
9572         * gdbtypes.c (lookup_primitive_typename): Likewise.
9573         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9574         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9575         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9576         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9577         (TYPE_VECTOR): Likewise.
9578         * hpread.c (hpread_read_struct_type)
9579         (fix_static_member_physnames, fixup_class_method_type)
9580         (hpread_type_lookup): Likewise.
9581         * mdebugread.c (parse_symbol, parse_type): Likewise.
9582         * p-lang.c (is_pascal_string_type): Likewise.
9583         * valops.c (hand_function_call): Likewise.
9584         * x86-64-tdep.c (classify_argument): Likewise.
9585
9586         * hpread.c (hpread_read_function_type)
9587         (hpread_read_doc_function_type): Call replace_type.
9588         * dstread.c (create_new_type): Delete.
9589         (decode_dst_structure, process_dst_function): Call alloc_type.
9590         Use type access macros.
9591
9592 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9593
9594         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9595         the're not supported by the current architecture.
9596         (i387_fill_fxsave): Likewise.
9597
9598 2002-05-12  Fred Fish  <fnf@redhat.com>
9599
9600         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9601         sect_index_xxx members to index the first slot in section_offsets
9602         if all of the section_offsets are zero.
9603
9604 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9605
9606         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9607         checked in with last change.
9608
9609 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9610
9611         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9612         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9613         config.sub.
9614
9615 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9616
9617         * Makefile.in: Update dependencies.
9618
9619 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9620
9621         * language.c (local_hex_string_custom): Simplify.  Do not depend
9622         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9623
9624         * memattr.c (mem_info_command): Replace calls to
9625         longest_local_hex_string and longest_local_hex_string_custom.
9626         * buildsym.c (make_blockvector): Ditto.
9627         * solib.c (info_sharedlibrary_command): Ditto.
9628         * tracepoint.c (tracepoints_info): Ditto.
9629         * symtab.c (print_msymbol_info): Ditto.
9630
9631         * language.c (local_hex_string): Delete.
9632         (local_hex_string_custom): Delete.
9633         (longest_local_hex_string): Rename to local_hex_string.
9634         (longest_local_hex_string_custom): Rename to
9635         local_hex_string_custom.
9636         * language.h (local_hex_string): Change parameter type to LONGEST.
9637         (local_hex_string_custom): Ditto.
9638         (longest_local_hex_string): Delete declaration.
9639         (longest_local_hex_string_custom): Ditto.
9640
9641         * solib.c: Update copyright.
9642         * memattr.c: Update copyright.
9643         
9644 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9645
9646         * arch-utils.h (legacy_register_to_value): Declare.
9647         (legacy_value_to_register): Declare.
9648         (legacy_convert_register_p): Declare.
9649         * arch-utils.c (legacy_register_to_value): New function.
9650         (legacy_value_to_register): New function.
9651         (legacy_convert_register_p): New function.
9652
9653         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9654         (VALUE_TO_REGISTER): Define.
9655         (CONVERT_REGISTER_P): Define.
9656         * gdbarch.h, gdbarch.c: Regenerate.
9657
9658         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9659         VALUE_TO_REGISTER.
9660         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9661         CONVERT_REGISTER_P.
9662
9663 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9664             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9665
9666         * Makefile.in: Update dependencies for valops.c.
9667         * valops.c: Include "gdb_assert.h".
9668         (typecmp): Skip THIS parameter to methods.
9669         (find_method_list): Remove static_memfuncp argument,
9670         update callers.  Check for stub methods.
9671         (find_value_oload_method_list): Don't set *static_memfuncp.
9672         (find_overload_match): Don't check for stub methods.  Assert
9673         that methods are not stubbed.  Handle static methods.
9674         (value_find_oload_method_list): Remove static_memfuncp argument.
9675         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9676         to the argument list for static stub methods.
9677         * value.h (value_find_oload_method_list): Update prototype.
9678
9679 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9680
9681         * arch-utils.h (generic_register_size): Declare.
9682         (generic_register_raw_size, generic_register_virtual_size): Delete
9683         declarations.
9684         * arch-utils.c (generic_register_raw_size): Delete.
9685         (generic_register_size): New function.
9686         (generic_register_virtual_size): Delete.
9687
9688         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9689         default generic_register_size.
9690         * gdbarch.h, gdbarch.c: Re-generate.
9691         
9692         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9693         register_virtual_size.
9694         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9695         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9696
9697 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9698
9699         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9700         * gdbarch.h, gdbarch.c: Regenerate.
9701         * gnu-v3-abi.c: Update copyright.
9702         (vtable_address_point_offset): Update.
9703         (gnuv3_rtti_type): Update.
9704         (gnuv3_baseclass_offset): Update.
9705         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9706         (init_fetch_link_map_offsets): Update.
9707         * remote.c (get_remote_state): Update.
9708         
9709 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9710
9711         * TODO: Remove value_headof/value_from_vtable_info comment.
9712         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9713         * values.c (value_headof, value_from_vtable_info): Delete.
9714         * value.h (value_from_vtable_info): Delete prototype.
9715
9716 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9717
9718         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9719         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9720         $(gdb_regex_h).
9721         (gdb_assert_h): Define.
9722         (gdb_wait_h): Define.
9723         (gdb_regex_h): Define.
9724
9725 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9726
9727         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9728         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9729
9730 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9731
9732         * nbsd-tdep.c: Fix comment.
9733
9734 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9735
9736         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9737         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9738         (nbsd-tdep.o): New dependency list.
9739         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9740         nbsd-tdep.h.
9741         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9742         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9743         * nbsd-tdep.c: New file.
9744         * nbsd-tdep.h: New file.
9745         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9746         nbsd-tdep.h.
9747         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9748         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9749         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9750         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9751
9752 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9753
9754         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9755         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9756         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9757         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9758         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9759         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9760
9761 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9762
9763         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9764         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9765         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9766         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9767         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9768         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9769         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9770
9771 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9772
9773         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9774         fetch_elfcore_registers to...
9775         * i386nbsd-tdep.c: ...here.
9776         (i386nbsd_use_struct_convention): Rename to...
9777         (i386nbsd_aout_use_struct_convention): ...this.
9778         (i386nbsd_supply_reg): New function.
9779         (i386nbsd_fill_reg): New function.
9780         (fetch_core_registers): Use i386nbsd_supply_reg.
9781         (fetch_elfcore_registers): Likewise.
9782         (_initialize_i386nbsd_tdep): New function.
9783         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9784         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9785         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9786         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9787         (i386nbsd_aout_use_struct_convention): ...this.
9788
9789 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9790
9791         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9792         (store_inferior_registers): Use shnbsd_fill_reg.
9793         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9794         sh_nbsd_supply_register): Collapse into...
9795         (shnbsd_supply_reg): ...this.
9796         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9797         (shnbsd_fill_reg): ...this.
9798         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9799         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9800         (fetch_core_registers): Use shnbsd_supply_reg.
9801         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9802         (sh_nbsd_core_fns): Rename to...
9803         (shnbsd_core_fns): ...this.
9804         (sh_nbsd_elfcore_fns): Rename to...
9805         (shnbsd_elfcore_fns): ...this.
9806         (sh_nbsd_init_abi): Rename to...
9807         (shnbsd_init_abi): ...this.
9808         (_initialize_sh_nbsd_tdep): Rename to...
9809         (_initialize_shnbsd_tdep): ...this.
9810         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9811         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9812         sh_nbsd_fill_register): Remove prototypes.
9813         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9814
9815 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9816
9817         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9818         (i387-nat.o): Delete dependency list.
9819         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9820         (x86-64-linux-nat.o): Likewise.
9821         * i387-nat.c: Delete file, moving contents to...
9822         * i387-tdep.c: ...here.
9823         * i387-nat.h: Rename...
9824         * i387-tdep.h: ...to this.
9825         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9826         * i386-linux-nat.c: Likewise.
9827         * i386bsd-nat.c: Likewise.
9828         * i386gnu-nat.c: Likewise.
9829         * i386nbsd-nat.c: Likewise.
9830         * i386v4-nat.c: Likewise.
9831         * x86-64-linux-nat.c: Likewise.
9832         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9833         * config/i386/go32.mh (NATDEPFILES): Likewise.
9834         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9835         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9836         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9837         * config/i386/linux.mh (NATDEPFILES): Likewise.
9838         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9839         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9840         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9841         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9842
9843 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9844
9845         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9846         (alphanbsd-nat.o): Remove dependency list.
9847         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9848         * alphanbsd-nat.c: Delete.  Contents moved to...
9849         * alphanbsd-tdep.c: ...here.
9850         (_initialize_alphanbsd_tdep): Register core functions.
9851         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9852
9853 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9854
9855         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9856         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9857         (alphanbsd-nat.o): Likewise.
9858         (alphabsd-tdep.o): New dependency list.
9859         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9860         (fill_gregset): Use alphabsd_fill_reg.
9861         (supply_fpregset): Use alphabsd_supply_fpreg.
9862         (fill_fpregset): Use alphabsd_fill_fpreg.
9863         (fetch_inferior_registers): Use struct reg and struct fpreg
9864         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9865         and alphabsd_supply_fpreg.
9866         (store_inferior_registers): Use struct reg and struct fpreg
9867         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9868         and alphabsd_fill_fpreg.
9869         * alphabsd-tdep.c: New file.
9870         * alphabsd-tdep.h: New file.
9871         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9872         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9873         alphabsd_supply_fpreg.
9874         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9875         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9876
9877 2002-05-11  Eric Christopher  <echristo@redhat.com>
9878
9879         * mips-tdep.c (mips_double_register_type): Fix thinko.
9880         (mips_single_register_type): Ditto.
9881         * MAINTAINERS: Add self.
9882
9883 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9884
9885         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9886         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9887         right thing on architectures with different endianness and/or
9888         integer sizes.
9889
9890 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9891
9892         From Christian Limpach <chris@Pin.LU>
9893         * configure.in: Change sed expression which comments out
9894         NATDEPFILES to also comment out continuation lines.
9895         * configure: Regenerate.
9896
9897 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9898
9899         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9900         big patch.
9901
9902 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9903
9904         * sh-tdep.c: Include correct file.
9905
9906 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9907
9908         New support for sh64-elf (sh5) target.
9909
9910         * configure.tgt: For sh64-elf target, default to sh-elf.
9911
9912         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9913         (struct gdbarch_tdep): Add new fields for new registers and ABI
9914         info.
9915
9916         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9917         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9918         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9919         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9920         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9921         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9922         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9923         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9924         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9925         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9926         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9927         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9928         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9929         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9930         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9931         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9932         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9933         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9934         sign_extend, sh64_nofp_frame_init_saved_regs,
9935         sh64_init_extra_frame_info, sh64_get_saved_register,
9936         sh64_extract_struct_value_address, sh64_pop_frame,
9937         sh64_push_arguments, sh64_extract_return_value,
9938         sh64_store_return_value, sh64_show_media_regs,
9939         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9940         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9941         sh_sh64_register_virtual_type,
9942         sh_sh64_register_convert_to_virtual,
9943         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9944         sh64_register_read, sh64_pseudo_register_write,
9945         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9946         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9947         sh64_do_pseudo_register, sh_compact_do_registers_info,
9948         sh64_do_registers_info, sh_gdbarch_init): New functions.
9949
9950 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9951
9952         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9953
9954 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9955
9956         * linespec.c (decode_line_1): Check for a double quote after
9957         a filename correctly.
9958
9959 2002-05-10  Jim Blandy  <jimb@redhat.com>
9960
9961         Properly track the size of the current objfile's .debug_line section.
9962         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9963         (DWARF_LINE_SIZE): New macro.
9964         (dwarf2_build_psymtabs_hard): Record the line section's size in
9965         the partial symbol table.
9966         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9967         symbol table.
9968
9969 2002-05-10  Petr Sorfa  <petrs@caldera.com>
9970
9971         * ia64-tdep.c: Handle breakpoints on L instruction type
9972         in MLX instruction bundle by moving the breakpoint to
9973         the third slot (X instruction type) as L holds only data.
9974
9975 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
9976
9977         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9978         (process_one_symbol): Complain about discarding local symbols
9979         due to a misplaced N_LBRAC entry.
9980
9981 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
9982
9983         From Daniel Berlin <dan@cgsoftware.com>
9984         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9985         decrease the depth we are at, in the case of templates.
9986
9987 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9988
9989         * mips-tdep.c (mips_float_register_type): New function.
9990         (mips_double_register_type): New function.
9991         (mips_print_register): Use them.
9992         (do_fp_register_row): Likewise.
9993
9994 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
9995
9996         * signals/signals.c (signals): Remove conditional compilation around
9997         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9998         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9999
10000 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10001
10002         * remote-rdp.c (remote_rdp_can_run): Remove.
10003
10004 2002-05-09  Tom Tromey  <tromey@redhat.com>
10005
10006         * jv-valprint.c (java_val_print): Handle `char' as a special case
10007         of TYPE_CODE_INT.
10008
10009 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10010
10011         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10012         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10013         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10014         str r(0123),[sp,#nn].
10015         (arm_skip_prologue): Ditto.  Also make disassembly
10016         order-independent by placing it in a loop.
10017
10018 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10019
10020         * stabsread.c (read_type): Add recognition for new attribute:
10021         "@V;" means that an array type is actually a vector.
10022         This is analogous to the vector flag that's been added to dwarf2.
10023
10024 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10025
10026         * i386-tdep.h (i386_abi): New enum.
10027         (struct gdbarch_tdep): Replace os_ident member with abi.
10028         (i386_gdbarch_register_os_abi): New prototype.
10029         * i386-tdep.c (i386_abi_names): New array.
10030         (process_note_abi_tag_sections): Removed.
10031         (process_note_sections): New function.
10032         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10033         (struct i386_abi_handler): New struct.
10034         (i386_abi_handler_list): New variable.
10035         (i386_gdbarch_register_os_abi): New function.
10036         (i386_gdbarch_init): Adapt for the changes given above.
10037
10038 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10039
10040         * gregset.h: Say "GNU/Linux".
10041
10042 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10043
10044         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10045         (build_gdbtypes): Build builtin_type_v2_float.
10046         (_initialize_gdbtypes): Register new builtin type.
10047
10048 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10049
10050         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10051         (clear_gdbarch_swap): New function.
10052         (initialize_non_multiarch): Call.
10053         (gdbarch_update_p): Before calling init(), swap out and clear the
10054         existing architecture.
10055         * gdbarch.c: Regenerate.
10056
10057 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10058
10059         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10060         alphanbsd-tdep.c.
10061
10062 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10063
10064         * sh-nbsd-nat.c: Rename to...
10065         * shnbsd-nat.c: ...this.
10066         * sh-nbsd-tdep.c: Rename to...
10067         * shnbsd-tdep.c: ...this.
10068         * sh-nbsd-tdep.h: Rename to...
10069         * shnbsd-tdep.h: ...this.
10070         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10071         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10072
10073 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10074
10075         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10076         concatenation for command help messages.
10077
10078 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10079
10080         * NEWS: Note new sh*-*-netbsdelf* configuration.
10081         * configure.host: Set gdb_host_cpu to sh for all sh*.
10082         (sh*-*-netbsdelf*): New host.
10083         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10084         (sh*-*-netbsdelf*): New target.
10085         * sh-nbsd-nat.c: New file.
10086         * sh-nbsd-tdep.c: New file.
10087         * sh-nbsd-tdep.h: New file.
10088         * config/sh/nbsd.mh: New file.
10089         * config/sh/nbsd.mt: New file.
10090         * config/sh/nm-nbsd.h: New file.
10091         * config/sh/tm-nbsd.h: New file.
10092
10093 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10094
10095         * sh-tdep.c (sh_osabi_names): Declare.
10096         (process_note_abi_tag_sections): New function.
10097         (get_elfosabi): Ditto.
10098         (sh_gdbarch_register_os_abi): Ditto.
10099         (sh_dump_tdep): Ditto.
10100         _initialize_sh_tdep): Use gdbarch_register to register
10101         sh_gdbarch_init and sh_dump_tdep.
10102         * config/sh/tm-sh.h (sh_osabi): Declare.
10103         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10104
10105 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10106
10107         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10108         (thumb_scan_prologue): Ditto.
10109         (arm_find_callers_reg): Ditto.
10110         (arm_frame_chain): Ditto.
10111         (arm_init_extra_frame_info): Ditto.
10112         (arm_frame_saved_pc): Ditto.
10113         (arm_pop_frame): Ditto.
10114         (arm_push_return_address): New function.
10115         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10116         call_dummy_location, call_dummy_breakpoint_offset_p,
10117         call_dummy_breakpoint_offset, call_dummy_p,
10118         call_dummy_stack_adjust_p, call_dummy_words,
10119         sizeof_call_dummy_words, call_dummy_start_offset,
10120         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10121         call_dummy_address, push_return_address and push_dummy_frame for
10122         generic dummy frames.
10123
10124 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10125
10126         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10127         size computation for alloca.
10128         (sh_fp_frame_init_saved_regs): Likewise.
10129
10130 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10131
10132         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10133         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10134         * arm-tdep.c (arm_store_return_value): Use them.
10135         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10136         * remote-rdp.c (remote_rdp_fetch_register): Use
10137         ARM_MAX_REGISTER_RAW_SIZE.
10138         (remote_rdp_store_register): Likewise.
10139
10140 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10141
10142         * dwarf2cfi.c: Code cleanup, removed unused variables,
10143         added default labels to switch {} statements.
10144         * x86-64-tdep.c: Ditto.
10145         * x86-64-linux-nat.c: Ditto.
10146
10147 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10148
10149         * solib.h: Protect against multiple inclusion.
10150
10151 2002-05-06  Jim Blandy  <jimb@redhat.com>
10152
10153         Add first preprocessor macro-expansion files.
10154         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10155         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10156         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10157         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10158         (COMMON_OBS): Add macrotab.o, macroexp.o.
10159         (macroexp.o, macrotab.o): New rules.
10160
10161         Separate the job of reading the line number info statement program
10162         header (...expialidocious) out into its own function.
10163         * dwarf2read.c (struct line_head, struct filenames, struct
10164         directories): Replace with...
10165         (struct line_header): New structure, containing the full
10166         contents of the statement program header, including the
10167         include directory and file name tables.
10168         (read_file_scope): If we have line number info, instead of just
10169         calling dwarf_decode_lines to do all the work, call
10170         dwarf_decode_line_header first to get a `struct line_header'
10171         containing the data in the statement program header, and then
10172         pass that to dwarf_decode_lines, which will pick up where that
10173         left off.  Be sure to clean up the `struct line_header' object.
10174         (dwarf_decode_line_header, free_line_header, add_include_dir,
10175         add_file_name): New functions.
10176         (dwarf_decode_lines): Move all the code to read the statement
10177         program header into dwarf_decode_line_header.  Take the line
10178         header it built as the first argument, instead of the offset to
10179         the compilation unit's line number info.  Use the new `struct
10180         line_header' type instead of the old structures.  No need to do
10181         cleanups here now, since we don't allocate anything.
10182         (dwarf2_statement_list_fits_in_line_number_section,
10183         dwarf2_line_header_too_long): New complaints.
10184
10185 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10186
10187         * gdbtypes.c (init_vector_type): New function.
10188         (build_builtin_type_vec128): Simplify the representation of SIMD
10189         registers.
10190         (build_gdbtypes): Initialize new builtin vector types.
10191         (_initialize_gdbtypes): Register new vector types with gdbarch.
10192         (builtin_type_v4_float, builtin_type_v4_int32,
10193         builtin_type_v8_int16, builtin_type_v16_int8,
10194         builtin_type_v2_int32, builtin_type_v4_int16,
10195         builtin_type_v8_int8): New (renamed) SIMD types.
10196
10197 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10198
10199         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10200         (i387_fill_fxsave): Likewise.
10201
10202 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10203
10204         * alpha-tdep.c (alpha_extract_return_value): Don't use
10205         non-constant array size in prototype.
10206
10207 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10208
10209         From Brian Taylor <briant at model dot com>:
10210         * ui-out.c (ui_out_field_core_addr): Use the function
10211         longest_local_hex_string_custom'to format addresses > 32 bits
10212         wide.
10213
10214         * ui-out.c (ui_out_field_core_addr): Update comment.
10215
10216 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10217
10218         * stack.c (select_and_print_frame): Make static.  Delete the
10219         parameter `level'.
10220         (func_command): Update call.
10221         (select_frame_command): Delete code computing the frame level.
10222         * frame.h (select_and_print_frame): Delete declaration.
10223
10224 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10225
10226         * sparc-tdep.c (sparc_get_saved_register): Comment why
10227         get_prev_frame call is safe.
10228
10229 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10230
10231         * frame.h (select_frame): Delete level parameter.
10232         * stack.c (select_frame): Update.  Use frame_relative_level to
10233         obtain the frame's level.
10234         (select_and_print_frame): Update call.
10235         (select_frame_command): Ditto.
10236         (up_silently_base): Ditto.
10237         (down_silently_base): Ditto.
10238         * ocd.c (ocd_start_remote): Ditto.
10239         * remote-rdp.c (remote_rdp_open): Ditto.
10240         * remote-mips.c (mips_initialize): Ditto.
10241         (common_open): Ditto.
10242         * remote-e7000.c (e7000_start_remote): Ditto.
10243         * m3-nat.c (select_thread): Ditto.
10244         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10245         (child_get_current_exception_event): Ditto.
10246         * varobj.c (varobj_create): Ditto.
10247         (varobj_update): Ditto.
10248         (c_value_of_root): Ditto.
10249         * tracepoint.c (finish_tfind_command): Ditto.
10250         * corelow.c (core_open): Ditto.
10251         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10252         * thread.c (info_threads_command): Ditto.
10253         (switch_to_thread): Ditto.
10254         * infrun.c (normal_stop): Ditto.
10255         (restore_selected_frame): Ditto.
10256         (restore_inferior_status): Ditto.
10257         * breakpoint.c (insert_breakpoints): Ditto.
10258         (watchpoint_check): Ditto.
10259         (bpstat_stop_status): Ditto.
10260         (do_enable_breakpoint): Ditto.
10261         * blockframe.c (flush_cached_frames): Ditto.
10262         (reinit_frame_cache): Ditto.
10263
10264 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10265
10266         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10267         maintainer.
10268
10269 2002-05-04  Jim Blandy  <jimb@redhat.com>
10270
10271         * gdbtypes.c (replace_type): Doc fix.
10272
10273 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10274
10275         * valprint.c (strcat_longest): Delete commented out function.
10276         Update copyright.
10277
10278 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10279
10280         * MAINTAINERS: Mark a29k as deleted.
10281         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10282         Move new configurations to the top.
10283         * configure.tgt: Remove a29k.
10284         * config/a29k/tm-vx29k.h: Delete.
10285         * config/a29k/vx29k.mt: Delete.
10286         * config/a29k/tm-a29k.h: Delete.
10287         * config/a29k/a29k-udi.mt: Delete.
10288         * config/a29k/a29k.mt: Delete.
10289         * a29k-tdep.c: Delete.
10290         * remote-udi.c: Delete.
10291         * remote-mm.c: Delete.
10292         * remote-eb.c: Delete.
10293         * remote-adapt.c: Delete.
10294         * Makefile.in: Remove obsolete code.
10295         * config/s390/s390x.mt: Ditto.
10296         * config/s390/s390.mt: Ditto.
10297         * config/sparc/sparclynx.mh: Ditto.
10298         * config/sparc/linux.mh: Ditto.
10299         * config/pa/hppaosf.mh: Ditto.
10300         * config/pa/hppabsd.mh: Ditto.
10301         * config/ns32k/nbsd.mt: Ditto.
10302         * config/mips/vr5000.mt: Ditto.
10303         * config/m68k/sun3os4.mh: Ditto.
10304         * config/m68k/nbsd.mt: Ditto.
10305         * config/m68k/m68klynx.mh: Ditto.
10306         * config/m32r/m32r.mt: Ditto.
10307         * config/i386/x86-64linux.mt: Ditto.
10308         * config/i386/nbsdelf.mt: Ditto.
10309         * config/i386/nbsd.mt: Ditto.
10310         * config/i386/i386lynx.mh: Ditto.
10311
10312 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10313
10314         * target.c (debug_print_register): New function.  Handle oversize
10315         registers.
10316         (debug_to_fetch_registers): Call.
10317         (debug_to_store_registers): Call.
10318
10319 2002-05-03  Jim Blandy  <jimb@redhat.com>
10320
10321         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10322         (read_type): Doc fix.
10323         * gdbtypes.c (replace_type): Doc fix.
10324
10325         * stabsread.c (multiply_defined_struct): New complaint.
10326         (read_struct_type): If the type we were passed isn't empty, or
10327         incomplete, don't read the new struct type into it; complain,
10328         and return the original type unchanged.  Take a new `type_code'
10329         argument, which is the type code for the new type.
10330         (read_type): Rather than storing the type's type code here, pass
10331         it as an argument to read_struct_type, and let that take care of
10332         storing it.  That way, we don't overwrite the original type code,
10333         so read_struct_type can use it to decide whether we're overwriting
10334         something we shouldn't.
10335         (complain_about_struct_wipeout): New function.
10336
10337 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10338
10339         * gdbarch.sh: Assert that gdbarch is non-NULL.
10340         * gdbarch.c: Regenerate.
10341
10342 2002-05-03  Jason Merrill  <jason@redhat.com>
10343
10344         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10345         and return NULL.
10346
10347 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10348
10349         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10350         (x86_64_dwarf2gdb_regno_map_length),
10351         (x86_64_dwarf2_reg_to_regnum): Added.
10352         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10353         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10354         (_initialize_x86_64_tdep): Synced with the change above.
10355         (x86_64_skip_prologue): Reformulated message.
10356
10357 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10358
10359         * f-exp.y: Also use new prev_lexptr variable
10360         to improve error reporting. Based on Michael Snyder
10361         2002-04-24 dated patch to c-exp.y.
10362         * jv-exp.y: Likewise.
10363         * m2-exp.y: Likewise.
10364
10365 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10366
10367         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10368         we are dealing with vectors.
10369
10370 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10371
10372         * config/m68k/tm-nbsd.h: Obvious fix,
10373         correct machine name.
10374
10375 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10376
10377         * p-typeprint.c (pascal_type_print_base): Add support
10378         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10379
10380 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10381
10382         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10383         for fondamental pascal 'char' type.
10384
10385 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10386
10387         * p-lang.h (is_pascal_string_type): Declaration changed,
10388         new sixth argument of type char ** added.
10389         * p-lang.c (is_pascal_string_type): Implementation
10390         changed. Args length_pos, length_size, string_pos, char_size
10391         can now be NULL. New argument arrayname set to the field
10392         name of the char array. Return value set to char array
10393         field index plus one.
10394         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10395         is_pascal_string_type function.
10396
10397 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10398
10399         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10400         <cagney@redhat.com> change.
10401         * gdbarch.c: Regenerate.
10402
10403 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10404
10405         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10406         before probing for a new one.  Detect errorenous gdbarch_init
10407         functions.
10408         * gdbarch.c: Regenerate.
10409
10410 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10411
10412         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10413         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10414         * config/v850/tm-v850.h: Ditto.  Update copyright.
10415
10416 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10417
10418         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10419         current_gdbarch.
10420
10421 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10422
10423         * arm-tdep.c: Whitespace clean-ups.
10424         (arm_skip_prologue): Fix thinko; two lines
10425         should have been removed as part of 4/24 change.
10426
10427 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10428
10429         * rs6000-tdep.c: Added comment describing how fpscr register
10430         numbers were chosen.
10431
10432 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10433
10434         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10435
10436 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10437
10438         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10439         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10440         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10441
10442 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10443
10444         From Louis Hamilton <hamilton@redhat.com>:
10445         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10446         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10447         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10448         not bfd-private xcoff data, to determine wordsize.
10449         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10450
10451 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10452
10453         GDB 5.2 released from 5.2 branch.
10454
10455 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10456
10457         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10458         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10459         (x86_64_register_info_table): Added comments with register numbers.
10460
10461 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10462
10463         * rs6000-tdep.c (rs6000_extract_return_value,
10464         rs6000_store_return_value): Handle returning vectors.
10465         (rs6000_gdbarch_init): Use
10466         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10467         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10468         New function.
10469         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10470         vectors.
10471         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10472         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10473
10474 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10475
10476         * hpread.c (hpread_psymtab_to_symtab_1,
10477         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10478         with fprintf_unfiltered (gdb_stderr,...).
10479
10480 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10481
10482         * remote-array.c (printf_monitor, write_monitor,
10483         array_insert_breakpoint, array_remove_breakpoint ):
10484         Replace fprintf (stderr,...
10485         with fprintf_unfiltered (gdb_stderr,....
10486         * remote-es.c: Likewise.
10487         * remote-os9k.c: Likewise.
10488         * remote-st.c: Likewise.
10489
10490 2002-04-28  Andreas Schwab  <schwab@suse.de>
10491
10492         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10493         linux-proc.o and gcore.o.
10494
10495 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10496
10497         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10498         code without frame pointers.
10499
10500 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10501
10502         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10503         ON_STACK is needed.
10504
10505 2002-04-26  Ben Elliston  <bje@redhat.com>
10506
10507         * target.c (do_xfer_memory): Correct reference to the new option
10508         "trust-readonly-sections".
10509
10510 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10511
10512         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10513         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10514         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10515         vectors.
10516         (read_array_type): Record the fact that this array type is really a
10517         vector (i.e. are passed in by value).
10518
10519 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10520
10521         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10522         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10523         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10524         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10525         * alpha-linux-tdep.c: Include frame.h.
10526         (alpha_linux_sigcontext_addr): New function.
10527         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10528         alpha_linux_sigcontext_addr.
10529         * alpha-osf1-tdep.c: Include gdbcore.h.
10530         (alpha_osf1_sigcontext_addr): New function.
10531         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10532         alpha_osf1_sigcontext_addr.
10533         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10534         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10535
10536 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10537
10538         * stack.c (selected_frame_level):
10539         (select_frame): Do not set selected_frame_level.
10540         * frame.h (selected_frame_level): Delete declaration.
10541
10542 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10543
10544         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10545         convert_from_func_ptr-addr when AIX / PowerOpen.
10546
10547 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10548
10549         * valops.c (hand_function_call): Call
10550         generic_save_call_dummy_addr.
10551         * frame.h (generic_save_call_dummy_addr): Declare.
10552         * blockframe.c (struct dummy_frame): Add fields call_lo and
10553         call_hi.
10554         (generic_find_dummy_frame): Check for PC in range call_lo to
10555         call_hi instead of entry_point_address.
10556         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10557         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10558         (generic_save_call_dummy_addr): New function.
10559
10560 2002-04-24  David S. Miller  <davem@redhat.com>
10561
10562         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10563         sparc_skip_prologue.
10564         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10565         information to find prologue when possible.
10566         (sparc_prologue_frameless_p): Call examine_prologue directly.
10567         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10568         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10569         second argument.
10570         (SKIP_PROLOGUE): Likewise.
10571
10572 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10573
10574         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10575         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10576         indicate that the condition it was testing is always true.
10577         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10578         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10579         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10580
10581 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10582
10583         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10584         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10585         tdep->jb_pc and tdep->jb_elt_size.
10586         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10587         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10588         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10589         * alpha-nat.c (get_longjmp_target): Remove.
10590         (JB_ELEMENT_SIZE): Ditto.
10591         (JB_PC): Ditto.
10592         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10593         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10594         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10595         to alpha_get_longjmp_target.
10596         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10597         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10598         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10599
10600 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10601
10602         * README: Update to GDB 5.2.
10603
10604 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10605
10606         * gdbarch.sh (LC_ALL): Set to `c'.
10607
10608 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10609
10610         * avr-tdep.c: Ran through gdb_indent.sh.
10611
10612 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10613
10614         * MAINTAINERS: Add myself as AVR maintainer.
10615         * NEWS: Note new target avr.
10616
10617 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10618
10619         * Makefile.in: Add support for AVR target.
10620         * configure.tgt: Add support for AVR target.
10621         * avr-tdep.c: New file
10622         * config/avr/avr.mt: New file.
10623
10624 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10625
10626         * MAINTAINERS: Add myself to write-after-approval.
10627
10628 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10629
10630         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10631         with fprintf_unfiltered (gdb_stderr,....
10632
10633 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10634
10635         Fix PR gdb/508.
10636         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10637
10638 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10639
10640         * p-exp.y: Also use new prev_lexptr variable
10641         to improve error reporting. Based on Michael Snyder
10642         2002-04-24 dated patch to c-exp.y.
10643
10644 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10645
10646         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10647         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10648         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10649         to 0.
10650         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10651         and struct value.
10652         (FUNCTION_START_OFFSET): Remove.
10653         (BREAKPOINT): Ditto.
10654
10655 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10656
10657         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10658         * NEWS: Ditto.
10659
10660 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10661
10662         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10663         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10664         alpha_linux_pc_in_sigtramp.
10665         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10666         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10667         alpha_osf1_pc_in_sigtramp.
10668         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10669         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10670         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10671         alphafbsd_pc_in_sigtramp.
10672         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10673         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10674         alphanbsd_pc_in_sigtramp.
10675         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10676         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10677
10678 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10679
10680         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10681
10682 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10683
10684         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10685         alphanbsd-tdep.c.
10686         (alphanbsd-nat.o): New dependency list.
10687         (alphanbsd-tdep.o): Ditto.
10688         * NEWS: Note new native NetBSD/alpha configuration.
10689         * alphanbsd-nat.c: New file.
10690         * alphanbsd-tdep.c: Ditto.
10691         * configure.host (alpha*-*-netbsd*): New host.
10692         * configure.tgt (alpha*-*-netbsd*): New target.
10693         * config/alpha/nbsd.mh: New file.
10694         * config/alpha/nbsd.mt: Ditto.
10695         * config/alpha/nm-nbsd.h: Ditto.
10696         * config/alpha/tm-nbsd.h: Ditto.
10697
10698 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10699
10700         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10701         (alpha-osf1-tdep.o): New dependency list.
10702         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10703         and skip_sigtramp_frame members.
10704         * alpha-linux-tdep.c: Include gdbcore.h.
10705         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10706         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10707         * alpha-osf1-tdep.c: New file.
10708         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10709         alpha-osf1-dep.c.
10710         (alpha_frame_past_sigtramp_frame): New function.
10711         (alpha_dynamic_sigtramp_offset): Ditto.
10712         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10713         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10714         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10715         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10716         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10717         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10718         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10719         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10720         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10721         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10722         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10723         to find_solib_trampoline_target.
10724         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10725         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10726         (SKIP_TRAMPOLINE_CODE): Remove.
10727         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10728         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10729         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10730         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10731         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10732         (PROC_SIGTRAMP_MAGIC): Ditto.
10733         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10734         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10735         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10736         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10737         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10738
10739 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10740
10741         * NEWS: Note that Alpha targets are now multi-arch.
10742
10743 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10744
10745         * parser-defs.h (prev_lexptr): New external variable.
10746         * parse.c (parse_exp_1): Set prev_lexptr to null before
10747         calling the language-specific parser.
10748         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10749         (yyerror): Use prev_lexptr in error reporting.
10750
10751 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10752
10753         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10754         * gregset.h: If FILL_FPXREGSET is defined, provide
10755         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10756         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10757         is defined, call fill_fpxregset.
10758
10759 2002-04-24  Roland McGrath  <roland@frob.com>
10760
10761         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10762         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10763         (supply_gregset, supply_fpregset): New functions.
10764
10765         * gnu-nat.c (gnu_find_memory_regions): New function.
10766         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10767         (gnu_xfer_memory): Add a cast.
10768
10769 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10770
10771         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10772         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10773         of argument regs ("str r(0123), [r11, #-nn"]).
10774         (arm_skip_prologue): Better handling for frameless functions.
10775         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10776         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10777
10778 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10779
10780         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10781         NUM_PSEUDO_REGS can be used.
10782
10783 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10784
10785         * arch-utils.h: Update copyright.
10786
10787         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10788         * gdbarch.h, gdbarch.c: Re-generate.
10789
10790         * inferior.h (IN_SIGTRAMP): Delete definition.
10791         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10792         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10793
10794         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10795         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10796         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10797         (find_proc_framesize): Ditto.
10798         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10799         (alpha_init_extra_frame_info): Ditto.
10800         * infrun.c (handle_inferior_event): Ditto.
10801         (handle_inferior_event): Ditto.
10802         (check_sigtramp2): Ditto.
10803         * blockframe.c (create_new_frame): Ditto.
10804         (get_prev_frame): Ditto.
10805         * ppc-linux-tdep.c: Update comments.
10806         * i386-linux-tdep.c: Update comments.
10807         * breakpoint.c (bpstat_what): Update comment.
10808
10809 2002-04-24  David S. Miller  <davem@redhat.com>
10810
10811         * i960-tdep.c (register_in_window_p): New function.
10812         (i960_find_saved_register): Use it instead of
10813         REGISTER_IN_WINDOW_P.
10814         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10815
10816         * symtab.h (find_stab_function_addr): Kill extern.
10817         * minsyms.c (find_stab_function_addr): Remove from here...
10818         * dbxread.c: ... to here, and mark it static.
10819
10820 2002-04-20  David S. Miller  <davem@redhat.com>
10821
10822         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10823         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10824
10825 2002-04-21  David S. Miller  <davem@redhat.com>
10826
10827         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10828         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10829         (vx_write_register): Likewise.
10830
10831 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10832
10833         * source.c (is_regular_file): New function.
10834         (openp): Check wether file to open is a regular file
10835         to avoid opening directories.
10836
10837 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10838
10839         * findvar.c (extract_signed_integer): Cast printf argument
10840         to suppress format warning.
10841         (extract_unsigned_integer): Likewise.
10842         * infcmd.c (registers_info): Likewise.
10843         * top.c (get_prompt_1): Likewise.
10844         * valops.c (value_assign): Likewise.
10845         * valprint.c (print_decimal): Likewise.
10846
10847 2002-04-22  H.J. Lu  (hjl@gnu.org)
10848
10849         * c-exp.y (typebase): Support
10850
10851         [long|long long|short] [signed|unsigned] [int|]
10852
10853         and
10854
10855         signed [long|long long|short] int
10856
10857 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10858
10859         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10860         and vax-tdep.h.
10861         * vax-tdep.h: New file.
10862         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10863         Make several routines static.
10864         (vax_get_saved_register): New function.
10865         (vax_gdbarch_init): New function.
10866         (_initialize_vax_tdep): Register vax_gdbarch_init.
10867         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10868         Remove macros now under the control of gdbarch.
10869
10870 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10871
10872         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10873         Some whitespace and coding standards tweaks.
10874
10875 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10876
10877         * vax-tdep.c: Include regcache.h.
10878         (vax_call_dummy_words): New.
10879         (sizeof_vax_call_dummy_words): New.
10880         (vax_fix_call_dummy): New function.
10881         (vax_saved_pc_after_call): Ditto.
10882         * config/vax/tm-vax.h: Don't include regcache.h.
10883         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10884         (CALL_DUMMY): Remove.
10885         (CALL_DUMMY_WORDS): Define.
10886         (SIZEOF_CALL_DUMMY_WORDS): Define.
10887         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10888
10889 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10890
10891         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10892
10893 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10894
10895         * vax-tdep.c (vax_frame_chain): New function.
10896         (vax_push_dummy_frame): Ditto.
10897         (vax_pop_frame): Ditto.
10898         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10899         (FRAMELESS_FUNCTION_INVOCATION): Use
10900         generic_frameless_function_invocation_not.
10901         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10902         (POP_FRAME): Use vax_pop_frame.
10903
10904 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10905
10906         * vax-tdep.c (vax_store_struct_return): New function.
10907         (vax_extract_return_value): Ditto.
10908         (vax_store_return_value): Ditto.
10909         (vax_extract_struct_value_address): Ditto.
10910         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10911         vax_store_struct_return.
10912         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10913         (STORE_RETURN_VALUE): Use vax_store_return_value.
10914         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10915
10916 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10917
10918         * vax-tdep.c (vax_frame_saved_pc): New function.
10919         (vax_frame_args_address_correct): Ditto.
10920         (vax_frame_args_address): Ditto.
10921         (vax_frame_locals_address): Ditto.
10922         (vax_frame_num_args): Move code to be in proximity to
10923         other frame-related functions.
10924         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10925         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10926         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10927         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10928         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10929
10930 2002-04-22  H.J. Lu  (hjl@gnu.org)
10931
10932         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10933         includedir.
10934
10935 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10936
10937         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10938         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10939         (FRAME_INIT_SAVED_REGS): New macro.
10940
10941 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10942
10943         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10944
10945 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10946
10947         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10948         where needed.
10949         (fetch_osf_core_registers): Likewise.
10950         (supply_gregset): Likewise.
10951
10952 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10953
10954         * symfile.h (get_section_index): Define.
10955         * symfile.c (get_section_index): New function.
10956         * mdebugread.c (SC_IS_SBSS): New macro.
10957         (SC_IS_BSS): Return true for the scBss storage class only, as
10958         the scSBss storage class refers to the .sbss section.
10959         (parse_partial_symbols): Discard the symbols which associated
10960         section does not exist.
10961         Make sure to use the .sbss section index for symbols which
10962         storage class is scBss, rather than using the .bss section index.
10963
10964 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10965
10966         * vax-tdep.c: Update copyright years.
10967         (vax_register_name): New function.
10968         (vax_register_byte): Ditto.
10969         (vax_register_raw_size): Ditto.
10970         (vax_register_virtual_size): Ditto.
10971         (vax_register_virtual_type): Ditto.
10972         * config/vax/tm-vax.h: Update copyright years.
10973         (REGISTER_NAMES): Remove.
10974         (REGISTER_NAME): Define.
10975         (REGISTER_BYTE): Use vax_register_byte.
10976         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10977         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10978         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10979
10980 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
10981
10982         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10983         declaration
10984         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10985
10986 2002-04-21  David S. Miller  <davem@redhat.com>
10987
10988         * arch-utils.c (generic_prologue_frameless_p): Kill
10989         SKIP_PROLOGUE_FRAMELESS_P code.
10990         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10991         references.
10992         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10993         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10994         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10995         references.
10996         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10997         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10998         (sparc_gdbarch_init): Pass it to
10999         set_gdbarch_prologue_frameless_p.
11000
11001 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11002
11003         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11004         (alphabsd-nat.o): New dependency list.
11005
11006 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11007
11008         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11009         alphafbsd-tdep.c.
11010         (alpha-linux-tdep.o): New dependency list.
11011         (alphafbsd-tdep.o): Likewise.
11012
11013 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11014
11015         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11016         to here...
11017         * alpha-tdep.c: ...from here.
11018         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11019
11020 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11021
11022         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11023         prototype from here...
11024         * alpha-tdep.h: ...to here.
11025
11026 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11027
11028         * frame.h (selected_frame_level): Document as deprecated.
11029         (frame_relative_level): Declare.
11030         * stack.c (frame_relative_level): New function.
11031         (selected_frame_level): Document as deprecated.
11032         (select_frame): Do not set the selected_frame_level.
11033
11034         * stack.c (frame_info, record_selected_frame): Update.
11035         (frame_command, current_frame_command): Update.
11036         (up_silently_base, up_command, down_silently_base): Update.
11037         (down_command): Update.
11038         * inflow.c (kill_command): Update.
11039         * tracepoint.c (finish_tfind_command): Update.
11040         * corelow.c (core_open): Update.
11041         * thread.c (info_threads_command): Update.
11042         (do_captured_thread_select): Update.
11043         * infcmd.c (finish_command): Update.
11044         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11045
11046 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11047
11048         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11049
11050 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11051
11052         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11053         type const.
11054
11055 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11056
11057         * alphafbsd-tdep.c: Update copyright years.  Include
11058         alpha-tdep.h.
11059         (alphafbsd_use_struct_convention): Make static.
11060         (alphafbsd_init_abi): New function.
11061         (_initialize_alphafbsd_tdep): New function.
11062         * config/alpha/tm-fbsd.h: Update copyright years.
11063         (USE_STRUCT_CONVENTION): Remove.
11064
11065 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11066
11067         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11068         an Alpha ABI variant.
11069         (alpha_abi_handler_list): Declare.
11070         (alpha_gdbarch_register_os_abi): New function.
11071         (alpha_gdbarch_init): Give registered ABI variant handlers a
11072         chance to tweak the gdbarch once we have set up defaults.
11073         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11074
11075 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11076
11077         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11078         to standard_coerce_float_to_double.
11079         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11080
11081 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11082
11083         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11084         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11085         from gdbarch_tdep rather than a constant.
11086         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11087         the default text address for all Alpha Unix ABIs.
11088         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11089         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11090
11091 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11092
11093         * alpha-tdep.h: New file.  Includes several Alpha target constants
11094         taken from...
11095         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11096         let gdbarch deal with.
11097         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11098         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11099         to dependency list.
11100         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11101         Alpha target register names.
11102         * alphabsd-nat.c: Likewise.
11103         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11104         Alpha target register names.  Make serveral routines static.
11105         (alpha_get_saved_register): New function.
11106         (alpha_abi_names): New.
11107         (process_note_abi_tag_sections): New function.
11108         (get_elfosabi): New function.
11109         (alpha_gdbarch_init): New function.
11110         (alpha_dump_tdep): New function.
11111         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11112
11113 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11114
11115         * frame.c (find_saved_register): Delete #ifdef
11116         HAVE_REGISTER_WINDOWS code.
11117         * config/sparc/tm-sparc.h: Update comments.
11118         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11119
11120 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11121
11122         * i960-tdep.c (i960_find_saved_register): New function.
11123         (i960_get_saved_register): New function.
11124         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11125         (i960_get_saved_register): Declare.
11126         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11127
11128 2002-04-20  David S. Miller  <davem@redhat.com>
11129
11130         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11131
11132 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11133
11134         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11135         instead of NUM_PSEUDO_REGS.
11136
11137 2002-04-20  David S. Miller  <davem@redhat.com>
11138
11139         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11140         GDB_MULTI_ARCH_PARTIAL
11141         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11142         define, let tm-sp64.h do it.
11143
11144 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11145
11146         * frame.c (find_saved_register): Avoid a NULL pointer
11147         dereference and actually walk the frame list.
11148
11149 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11150
11151         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11152         sorted in most most-recent-used order.  Document.
11153         * gdbarch.h, gdbarch.c: Regenerate.
11154
11155 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11156
11157         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11158         instead of ->prev.
11159         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11160         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11161         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11162         instead of ->prev.
11163
11164 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11165
11166         Fix PR gdb/471.
11167         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11168         (build_builtin_type_vec128): Ditto.
11169         (append_composite_type_field): Fix calculation of type length in
11170         union case.
11171
11172 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11173
11174         * config/djgpp/README: Update.
11175
11176         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11177         compiler warnings.
11178
11179 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11180
11181         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11182         (alpha_setup_arbitrary_frame): ...to this.
11183         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11184         for alpha_setup_arbitrary_frame.
11185
11186 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11187
11188         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11189         * gdbarch.h, gdbarch.c: Regenerate.
11190
11191         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11192         * target.h (memory_breakpoint_from_pc): Update declaration.
11193         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11194
11195         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11196         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11197         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11198         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11199         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11200         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11201         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11202         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11203         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11204         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11205         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11206         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11207
11208         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11209         const pointer.
11210         * monitor.c (monitor_insert_breakpoint): Ditto.
11211         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11212
11213         * config/mcore/tm-mcore.h: Update copyright.
11214         * mem-break.c: Ditto.
11215         * xstormy16-tdep.c: Ditto.
11216
11217 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11218
11219         * p-exp.y: Add precedence rule for '^' token.
11220         This removes the shift/reduce conflicts.
11221         Remove the comment concerning these shift/reduce conflicts.
11222
11223 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11224
11225         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11226         (registers_powerpc_nofp): New register set for processors
11227         without floating point unit.
11228
11229 2002-04-18  David S. Miller  <davem@redhat.com>
11230
11231         * MAINTAINERS: Add myself to write-after-approval.
11232
11233 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11234
11235         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11236
11237 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11238
11239         * rs6000-tdep.c (frame_initial_stack_address): Use
11240         frame_register_read to read the alloca_reg.
11241
11242 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11243
11244         * frame.c (find_saved_register): Find saved registers in the next
11245         not prev frame.
11246         Fix PR gdb/365.
11247
11248 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11249
11250         * gdbarch.sh (LANG): Set to ``c''.
11251
11252 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11253
11254         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11255
11256 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11257
11258         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11259         Update copyright.
11260
11261         * hpread.c (hpread_get_lntt): Add declaration.
11262         Also fix PR gdb/391.
11263
11264 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11265
11266         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11267         * aclocal.m4, configure: Re-generate.
11268         Fix PR gdb/391.
11269
11270 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11271
11272         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11273         instead of tm_print_insn.
11274
11275 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11276
11277         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11278
11279 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11280
11281         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11282         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11283         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11284
11285 2002-04-12  Don Howard  <dhoward@redhat.com>
11286
11287         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11288         max_user_call_depth.
11289         (init_cmd_lists): Initialize the new value;
11290         * cli/cli-script.c (execute_user_command): Limit the call depth of
11291         user defined commands.  This avoids a core-dump when user commands
11292         are infinitly recursive.
11293
11294 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11295
11296         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11297         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11298         from tdep struct instead of DEFAULT_LR_SAVE.
11299         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11300         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11301         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11302
11303 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11304
11305         * Remote.c: Spelling fix.
11306         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11307         If no symbol found for "sbrk", try "_sbrk".
11308         (make_output_phdrs): Use bfd_section_name.
11309         (gcore_copy_callback): Use bfd_section_name.
11310         * eval.c: Indentation fix-ups.
11311         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11312         in case it gets applied to an address that is already
11313         in the instruction space.
11314         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11315         * symfile.c: Fix indentation, long lines.
11316         * source.c: White space fix-up.
11317
11318 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11319
11320         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11321         * frame.c (frame_register_read): New function.  Return non-zero on
11322         success.
11323         (read_relative_register_raw_bytes_for_frame): Delete.
11324         (read_relative_register_raw_bytes): Delete.
11325         * frame.h (frame_register_read): Declare.
11326         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11327         * sh-tdep.c: Ditto.
11328         * infcmd.c (do_registers_info): Ditto.
11329         * hppa-tdep.c: Ditto.
11330         * rs6000-tdep.c: Ditto.
11331         * h8500-tdep.c: Ditto.
11332         * mips-tdep.c: Ditto.
11333         * h8300-tdep.c: Ditto.
11334         * z8k-tdep.c: Ditto.
11335
11336 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11337
11338         From Jimi X <jimix@watson.ibm.com>:
11339         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11340         64-bit SysV ABI.
11341
11342 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11343
11344         From Jimi X <jimix@watson.ibm.com>:
11345         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11346         bfd info.
11347
11348 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11349
11350         From Jimi X <jimix@watson.ibm.com>:
11351         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11352         register sets for these processor variants.
11353
11354 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11355
11356         * regformats/reg-ppc.dat: Support FPSCR.
11357
11358 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11359
11360         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11361         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11362         Add fpscr as an invalid/unfetchable register.
11363         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11364         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11365         (fill_fpregset): Add support for register fpscr.
11366         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11367         (fill_gregset): Account for the fact that register ``mq'' might
11368         not exist.
11369         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11370         (registers_power): Add fpscr to register set at slot 71.
11371         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11372         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11373
11374 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11375
11376         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11377         * configure: Regenerate.
11378         * config.in: Regenerate.
11379         * acconfig.h: Add define for _SYSCALL32.
11380         * core-sol2.c: Remove #define _SYSCALL32.
11381         * solib-legacy.c: Remove #define _SYSCALL32.
11382
11383 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11384
11385         * stack.c (select_frame): Cleanup internal error message, do not
11386         use %p.
11387
11388 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11389
11390         * stack.c (select_frame): Check that selected_frame and the
11391         specified level are as expected.
11392         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11393         Update copyright.
11394         * frame.h (struct frame_info): Add field `level'.  Update
11395         copyright.
11396         Work-in-progress PR gdb/464.
11397
11398 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11399
11400         * maint.c (maint_print_section_info): Rename print_section_info.
11401         (print_bfd_section_info, print_objfile_section_info): Update.
11402         * inferior.h (struct gdbarch): Add opaque declaration.
11403         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11404         * gdbarch.h: Regenerate.
11405
11406 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11407
11408         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11409         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11410         (kernel_u_size): Added.
11411         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11412         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11413
11414 2002-04-04  Jim Ingham  <jingham@apple.com>
11415
11416        * valarith.c (find_size_for_pointer_math): New function, either returns
11417        the size for a pointer's target, returns 1 for void *, or errors for
11418        incomplete types.
11419        (value_add, value_sub): use find_size_for_pointer_math.
11420
11421 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11422
11423         * linux-low.c (linux_look_up_symbols): New hook.
11424         (linux_target_ops): Add linux_look_up_symbols.
11425         * remote-utils.c (decode_address): New function.
11426         (look_up_one_symbol): New function.
11427         * server.c (handle_query): Call target look_up_symbols hook.
11428         * server.h (look_up_one_symbol): Add prototype.
11429         * target.h (struct target_ops): Add look_up_symbols hook.
11430
11431 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11432
11433         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11434         override FP_REGNUM with frame->fp.  Update copyright.
11435         * parse.c (num_std_regs, std_regs): Delete.
11436         (target_map_name_to_register): Do not search std_regs.  Update
11437         function description.
11438         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11439         declarations.  Update copyright.
11440         Fix PR gdb/251.
11441
11442 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11443
11444         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11445         after the last symbol in a block.
11446
11447 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11448
11449         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11450         is non zero as a found symbol.
11451
11452 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11453
11454         * findvar.c: Include "builtin-regs.h".
11455         (value_of_register): Call value_of_builtin_reg when applicable.
11456         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11457         (target_map_name_to_register): Call
11458         builtin_reg_map_name_to_regnum.
11459         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11460         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11461         (builtin_regs_h): Define.
11462         (builtin-regs.o): New target.
11463         (findvar.o): Add $(builtin_regs_h).
11464         * builtin-regs.c, builtin-regs.h: New files.
11465         * std-regs.c: New file.
11466         Partial fix for PR gdb/251.
11467
11468 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11469
11470         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11471         it's no longer required.
11472
11473 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11474
11475         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11476
11477 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11478
11479         From Jimi X <jimix@watson.ibm.com>:
11480         * rs6000-tdep.c (rs6000_software_single_step): Use
11481         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11482         and size.  Use target_insert_breakpoint() and
11483         target_remove_breakpoint() to insert and remove breakpoints
11484         instead of explicit memory reads and writes.
11485
11486 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11487
11488         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11489         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11490         ELF_OBJECT_FORMAT ifdef.
11491
11492 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11493
11494         From Jimi X <jimix@watson.ibm.com>:
11495         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11496
11497 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11498
11499         From Jimi X <jimix@watson.ibm.com>:
11500         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11501         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11502
11503 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11504
11505         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11506         s/asprintf/xasprintf/.
11507         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11508
11509 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11510
11511         I believe Jeff Law denies responsability for this one:
11512         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11513         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11514         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11515         Work-around for PR gdb/366.
11516
11517 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11518
11519         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11520         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11521         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11522
11523 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11524
11525         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11526         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11527         information.
11528
11529 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11530
11531         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11532         maintainer.
11533
11534 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11535
11536         * README (Reporting Bugs in GDB): Document the bug web page as the
11537         prefered way of submitting bugs.
11538         Fix PR gdb/402.
11539
11540 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11541
11542         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11543         -1.  Update comment.
11544         * gdbarch.h, gdbarch.c: Re-generate.
11545
11546 2002-04-07  Andreas Schwab  <schwab@suse.de>
11547
11548         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11549         buffer to regcache_collect.
11550
11551 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11552
11553         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11554         * gdbarch.c, gdbarch.h: Re-generate.
11555
11556 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11557
11558         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11559         declaration.  Fix -Werror.
11560
11561 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11562
11563         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11564         * gdbarch.c: Regenerate.
11565
11566 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11567
11568         * breakpoint.c (clear_command): Rewrite middle section to
11569         combine two loops with identical control conditions.
11570         Add a cleanup to eliminate a memory leak.
11571         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11572
11573 2002-04-05  H.J. Lu  (hjl@gnu.org)
11574
11575         * solib-svr4.c (bkpt_names): Add "__start".
11576
11577 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11578
11579         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11580         as test for 64 bit target.
11581
11582 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11583
11584         * h8500-tdep.c (h8500_write_fp): Delete function.
11585         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11586         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11587         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11588         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11589         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11590         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11591         (s390_write_fp):
11592         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11593         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11594         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11595         (d10v_write_fp): Delete function.
11596         * inferior.h (write_fp, generic_target_write_fp): Delete
11597         declarations.
11598         * regcache.c (generic_target_write_fp): Delete function.
11599         (write_fp): Delete function.
11600         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11601         * gdbarch.h, gdbarch.c: Regenerate.
11602         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11603         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11604         (sparc64_write_fp): Delete declaration.
11605         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11606         (h8500_write_fp): Delete declaration.
11607
11608 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11609
11610         * sparc-tdep.c (sparc64_write_fp): Delete.
11611         (sparc_push_dummy_frame): Replace write_fp call with code to store
11612         the FP directly.
11613         (sparc_gdbarch_init): Do not initialize write_fp.
11614
11615 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11616
11617         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11618         clause.
11619
11620 2002-03-29  Jim Blandy  <jimb@redhat.com>
11621
11622         * stack.c (get_selected_block): Add new argument `addr_in_block',
11623         used to return the exact code address we used to select the block,
11624         not just the block.
11625         * blockframe.c (get_frame_block, get_current_block): Same.
11626         * frame.h (get_frame_block, get_current_block,
11627         get_selected_block): Update declarations.
11628         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11629         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11630
11631 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11632
11633         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11634         warning message.
11635
11636 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11637
11638         * utils.c (xfullpath): New function.
11639         * defs.h (xfullpath): Add declaration.
11640         * source.c (openp): Use xfullpath in place of gdb_realpath to
11641         avoid resolving the basename part of filenames when the
11642         associated file is a symbolic link. This fixes a potential
11643         inconsistency between the filenames known to GDB and the
11644         filenames it prints in the annotations.
11645         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11646         to be able to match a filename with either the real filename, or
11647         the name of any symbolic link to this file.
11648         (lookup_partial_symtab): Ditto.
11649
11650 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11651
11652         * breakpoint.c: Add support for hardware breakpoints in overlays.
11653         (overlay_events_enabled): New state variable.
11654         (insert_breakpoints): Use overlay_events_enabled to decide
11655         whether to attempt to set a breakpoint at the overlay load addr.
11656         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11657         (remove_breakpoint): Use overlay_events_enabled to decide
11658         whether breakpoints need to be removed from overlay load addr.
11659         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11660         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11661         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11662         disable_overlay_breakpoints): Update overlay_events_enabled.
11663
11664 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11665
11666         * dwarf2read.c (struct function_range): New.
11667         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11668         (check_cu_functions): New.
11669         (read_file_scope): Initialize global function lists.
11670         Call dwarf_decode_line after processing children.
11671         (read_func_scope): Add to global function list.
11672         (dwarf_decode_lines): Call check_cu_functions everywhere
11673         record_line is called.  Call record_line with a linenumber
11674         of 0 to mark sequence ends.
11675
11676 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11677
11678         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11679         change sync with glibc.
11680
11681 2002-04-03  Jim Blandy  <jimb@redhat.com>
11682
11683         * configure.in: Call AC_C_INLINE.
11684         * configure: Regenerated.
11685
11686 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11687
11688         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11689         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11690
11691 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11692
11693         * NEWS: Mention gcore support on FreeBSD/i386.
11694
11695         * fbsd-proc.c: New file.
11696         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11697         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11698
11699         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11700         while statement.
11701
11702 2002-03-29  Jim Blandy  <jimb@redhat.com>
11703
11704         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11705         unescaped newlines in string literals, but newer ones don't.  So
11706         escape them.
11707
11708 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11709             Andrew Cagney <cagney@redhat.com>
11710
11711         * cli/cli-dump.c: New file.  Dump memory to file,
11712         restore file to memory.
11713         * cli/cli-dump.h: New file.
11714         * Makefile.in: Add rules, dependencies for cli-dump.o.
11715         * NEWS: Mention new commands.
11716
11717 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11718
11719         * symfile.c (symbol_file_add): Move test for null symbols to later.
11720
11721 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11722
11723         From veksler at il.ibm.com:
11724         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11725         the xstrduped original path.
11726         Fix PR gdb/417.
11727
11728 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11729
11730         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11731         * infcmd.c (_initialize_infcmd): Ditto.
11732         * language.c (_initialize_language): Ditto.
11733         * symfile.c (_initialize_symfile): Ditto.
11734         * top.c (_init_main): Ditto.
11735         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11736
11737 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11738
11739         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11740         vector registers handling.
11741         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11742         fields of frame data.
11743         (frame_get_saved_regs): Fill in information for AltiVec registers.
11744
11745 2002-03-27  Jim Blandy  <jimb@redhat.com>
11746
11747         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11748         a function; leave this macro here to invoke that function.
11749         (symbol_init_mangled_name): Declaration for that function.
11750         * symtab.c (symbol_init_mangled_name): New function.
11751
11752 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11753
11754         * valarith.c: Replace strerror with safe_strerror.
11755         * tracepoint.c: Ditto.
11756         * lin-lwp.c: Ditto.
11757         * go32-nat.c: Ditto.
11758         * inflow.c: Ditto.
11759         * gnu-nat.c: Ditto.
11760
11761 2002-03-27  Andreas Schwab  <schwab@suse.de>
11762
11763         * event-top.c (command_line_handler): Remove useless if.
11764
11765 2002-03-27  Andreas Jaeger  <aj@suse.de>
11766
11767         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11768         comment.
11769
11770 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11771
11772         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11773         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11774         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11775         (x86_64_linux_dr_get_status, supply_gregset),
11776         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11777         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11778         (x86_64_register_info_table): Add.
11779         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11780         (x86_64_register_raw_size, x86_64_register_virtual_type),
11781         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11782         general x86_64_register_info_table.
11783         (i386_gdbarch_init): gdbarch_register_bytes is now set
11784         dynamicaly during initialization.
11785         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11786         * gdbserver/linux-x86-64-low.c: Ditto.
11787
11788 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11789
11790         * gdbserver/server.c (main): Call target_signal_to_host_p
11791         and target_signal_to_host on signals received from the remote.
11792         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11793         target_signal_from_host on signals sent to the remote.
11794         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11795         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11796
11797 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11798
11799         * signals/signals.c: Include "server.h" in gdbserver build.
11800         (target_signal_from_name): Don't use STREQ.
11801         (_initialize_signals): Likewise.  Don't include function in
11802         gdbserver build.
11803
11804 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11805
11806         * signals.c: Moved to...
11807         * signals/signals.c: Here.
11808         * Makefile (signals.o): Update.
11809
11810 2002-03-26  Jeff Law (law@redhat.com)
11811
11812         * somread.c (som_symtab_read): Remove some commented out code and
11813         updated related comments.  Do not set the minimal symbol table to
11814         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11815         in a dynamic executable.
11816         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11817         where we are unable to find the minimal symbol for the given
11818         PC value.
11819
11820 2002-03-25  Jeff Law (law@redhat.com)
11821
11822         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11823
11824 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11825
11826         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11827
11828 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11829
11830         * command.h: Update copyright.
11831         (struct cmd_list_element): Replace definition with opaque
11832         declaration.
11833         (enum cmd_types): Document that it will eventually be moved to
11834         cli/cli-decode.h
11835         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11836         (MALLOCED_REPLACEMENT): Delete macro.
11837         * Makefile.in (cli_decode_h): Add $(command_h).
11838         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11839         * top.c: Include "cli/cli-decode.h".
11840         * completer.c: Include "cli/cli-decode.h".
11841         * maint.c: Include "cli/cli-decode.h".
11842         * cli/cli-decode.h: Include "command.h".
11843         (enum command_class): Delete.
11844         (enum cmd_types): Comment out.
11845         (enum cmd_auto_boolean): Delete.
11846         (enum var_types): Delete.
11847
11848 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11849
11850         * cli/cli-decode.c: Include "gdb_assert.h".
11851         (add_set_or_show_cmd): New static function.
11852         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11853         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11854         all fields, such as func, from the set command.
11855
11856 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11857
11858         * MAINTAINERS (sh-elf): Change warning flag to -w.
11859
11860 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11861
11862         * defs.h (error): Add printf format attribute.
11863         * thread-db.c (thread_from_lwp): Fix error format string.
11864         * stack.c (parse_frame_specification): Ditto.
11865         * cli/cli-decode.c (undef_cmd_error): Ditto.
11866         * scm-lang.c (scm_lookup_name): Ditto.
11867         * tracepoint.c (trace_error): Ditto.
11868         * remote-utils.c (usage): Ditto.
11869         * remote.c (compare_sections_command): Ditto.
11870         Fix PR gdb/328.
11871
11872 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11873
11874         * gdbtypes.c (append_composite_type_field): New function.
11875         (init_composite_type): New function.
11876         * gdbtypes.h (append_composite_type_field): Declare.
11877         (init_composite_type): Ditto.
11878
11879 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11880
11881         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11882         function.
11883         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11884         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11885         structure returning convention for SYSV ABI case, but not
11886         for GNU/Linux, FreeBSD, or NetBSD.
11887
11888 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11889
11890         * symtab.h (lookup_block_symbol): Add mangled_name argument
11891         to prototype.
11892
11893         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11894         with new mangled_name argument.
11895         * linespec.c (decode_line_1): Likewise.
11896         * valops (value_of_this): Likewise.
11897         * symtab.c (lookup_transparent_type): Likewise.
11898         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11899         (lookup_symbol): If we are given a mangled name, pass it down
11900         to lookup_symbol_aux.
11901         (lookup_block_symbol): If we are given a mangled name to check
11902         against, only return symbols which match it.
11903
11904 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11905
11906         * win32-nat.c (child_create_inferior): Check for proper shell to use
11907         here, in case the user changes it on the fly.
11908         (_initialize_inftarg): Remove shell path considerations.
11909
11910 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11911
11912         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11913         for gdbarch_max_register_raw_size and max_register_virtual_size.
11914         Adjust copyright year.
11915
11916 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11917
11918          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11919          in a function to cover the entire beginning of the function
11920          as well if it does not already.
11921
11922 2002-03-21  Tom Rix  <trix@redhat.com>
11923
11924         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11925         (rs6000_ptrace64): Renamed from ptrace64.
11926
11927 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11928
11929         * gdbserver/remote-utils.c (remote_open): Don't call
11930         getprotobyname, we're all using TCP here so just use
11931         IPPROTO_TCP.
11932         * gdbserver/gdbreplay.c (remote_open): Ditto.
11933
11934 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11935
11936         * regcache.c (_initialize_regcache): No need to call
11937         build_regcache() at this time; it gets called whenever
11938         the gdbarch changes.
11939
11940 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11941
11942         * sparc-nat.c:  Include sys/param.h where possible.
11943
11944 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11945
11946         Fix PR gdb/422.
11947         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11948         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11949         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11950         complex types.
11951         * stabsread.c (rs6000_builtin_type): Likewise.
11952         (read_sun_floating_type): Likewise.
11953
11954 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11955
11956         * stabsread.c (read_member_functions): Remove skip code for duplicate
11957         constructor/destructor methods.  Use standard parsing for these
11958         methods and just do not chain them to the list of methods after
11959         parsing.
11960
11961 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
11962
11963         * coffread.c: Remove redundant static declarations.  Replace
11964         occurrences of `PTR' with `void *'.
11965         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11966         * top.h (quit_cover): Likewise.
11967         * defs.h (catch_errors): Likewise.
11968
11969 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11970
11971         * defs.h (XMALLOC): Define.
11972         * gdb-events.sh (XMALLOC): Delete macro.
11973         * gdb-events.c, gdb-events.h: Regenerate.
11974         * gdbarch.sh (XMALLOC): Delete macro.
11975         * gdbarch.c: Regenerate.
11976         * serial.c (XMALLOC): Delete macro.
11977         * ui-file.c (XMALLOC): Ditto.
11978         * ser-unix.h (XMALLOC): Ditto.
11979         * sh-tdep.c (XMALLOC): Ditto.
11980         * ui-out.c (XMALLOC): Ditto.
11981         * utils.c (XMALLOC): Ditto.
11982         * i386-tdep.c (XMALLOC): Ditto.
11983         * gdb-events.c (XMALLOC): Ditto.
11984         * d10v-tdep.c (XMALLOC): Ditto.
11985         * cli-out.c (XMALLOC): Ditto.
11986
11987         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11988         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11989         * ui-file.c, ui-out.c: Ditto.
11990
11991 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
11992
11993         * command.h (struct cmd_list_element): Add field context.
11994         (set_cmd_context, get_cmd_context): Declare.
11995         * cli/cli-decode.h: Ditto.
11996         * cli/cli-decode.c (get_cmd_context): New function.
11997         (set_cmd_context): New function.
11998         (add_cmd): Initialize context.
11999         Part of fixing PR gdb/145 and PR gdb/146.
12000
12001 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12002
12003         * cli/cli-decode.c (cmd_type): New function.
12004         * command.h (cmd_type): Declare.
12005         * infrun.c (set_schedlock_func): Call function cmd_type.
12006         * kod.c (kod_set_os): Call cmd_type.
12007         * cris-tdep.c (cris_version_update): Use function cmd_type.
12008         (cris_mode_update, cris_abi_update): Ditto.
12009
12010         * command.h: (execute_cmd_post_hook): Declare.
12011         (execute_cmd_pre_hook): Declare.
12012         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12013         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12014         functions. Execute pre/post hook while ensuring that afterwords
12015         hook_in is cleared.
12016         * top.c (execute_command): Use execute_cmd_post_hook, and
12017         execute_cmd_pre_hook to execute pre/post commands.
12018         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12019         hook_stop_stub.
12020         (hook_stop_stub): Call execute_cmd_pre_hook.
12021
12022 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12023
12024         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12025         set'' and this leads to a core dump.  Move xstrdup of
12026         operating_system to after check that it is not NULL.
12027
12028 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12029
12030         * kod.c (kod_set_os): Remove unnecessary check that
12031         ``command->type'' is set_cmd.
12032
12033         * valprint.c (set_input_radix): Use input_radix.
12034         (set_output_radix): Use output_radix.
12035         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12036         isn't reverted.
12037
12038 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12039
12040         * value.h (struct value): Delete field ``substring_addr''.  Change
12041         aligner fields to force_doublest_align, force_longest_align,
12042         force_core_addr_align and force_pointer_aligh.
12043
12044         * value.h (struct value): Fix typo in above change.
12045
12046 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12047
12048         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12049         to fix internal_error from ``maintenance print architecture''.
12050
12051 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12052
12053         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12054         for gcc versions after gcc-2.8.1.
12055
12056 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12057
12058         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12059         for method resolution.  Restore adjustment of ``this'' pointer after
12060         calling value_struct_elt, which was accidentally removed during the
12061         HP merge.
12062
12063 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12064
12065         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12066         value_of_register.
12067         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12068         get_saved_register.
12069         * value.h (value_of_register): Update.
12070
12071 2002-03-14  Richard Henderson  <rth@redhat.com>
12072
12073         * configure.in: Detect declaration for canonicalize_file_name.
12074         * utils.c (canonicalize_file_name): Declare, if needed.
12075         (gdb_realpath): Prefer realpath if available and usable.
12076         * config.in, configure: Rebuild.
12077
12078 2002-03-14  Richard Henderson  <rth@redhat.com>
12079
12080         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12081         a constant array bound.
12082
12083         * MAINTAINERS: Add myself to write-after-approval.
12084
12085 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12086
12087         * symfile.c (syms_from_objfile): Return immediately if no syms.
12088         (symbol_file_add): Return immediately if no syms.
12089         (find_sym_fns): Return immediately if no syms.
12090
12091 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12092
12093         * gdbserver/remote-util.c (remote_open): Print remote-side's
12094         IP address when remote debugging over the network.
12095
12096 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12097
12098         * config/sparc/fbsd.mh: Fix copyright.
12099         * config/sparc/fbsd.mt: Likewise.
12100
12101 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12102
12103         * MAINTAINERS: Fix typo in name of gdb warnings option.
12104         (x86-64): Fix formating so that this can be parsed by awk.
12105
12106 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12107
12108         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12109         * defs.h: Include "gdb/signals.h".
12110         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12111
12112 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12113
12114         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12115         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12116         from x86-64-tdep.h
12117
12118 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12119             Don Howard <dhoward@redhat.com>
12120
12121         * mips-tdep.c (ST0_FR): Define.
12122         (mips2_fp_compat): New function, temporarily disabled.
12123         (mips_read_fp_register_single): New function.
12124         (mips_read_fp_register_double): New function.
12125         (mips_print_register): Use them.
12126         (do_fp_register_row): Likewise.
12127
12128 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12129
12130         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12131         approval''.
12132
12133 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12134
12135         * stabsread.c (read_member_functions): Fix is_stub test for
12136         static member functions, improve comment.
12137
12138 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12139
12140         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12141         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12142         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12143         commands that set boolean values.
12144         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12145         (arm_rdi_resume): Always initialize PC.
12146         (arm_rdi_open): Don't use rslt as a boolean.
12147         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12148         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12149         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12150         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12151
12152 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12153
12154         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12155         * configure: Rebuilt.
12156
12157 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12158
12159         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12160         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12161
12162 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12163
12164         * cli/cli-decode.c (set_cmd_completer): New function.
12165         * command.h (set_cmd_completer): Declare.
12166         * cli/cli-decode.h (set_cmd_completer): Ditto.
12167
12168         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12169         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12170         * win32-nat.c (_initialize_inftarg): Ditto.
12171         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12172         * proc-api.c (_initialize_proc_api): Ditto.
12173         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12174         * source.c (_initialize_source): Ditto.
12175         * exec.c (_initialize_exec): Ditto.
12176         * solib.c (_initialize_solib): Ditto.
12177         * top.c (init_main): Ditto.
12178         * tracepoint.c (_initialize_tracepoint): Ditto.
12179         * symfile.c (_initialize_symfile): Ditto.
12180         * printcmd.c (_initialize_printcmd): Ditto.
12181         * infcmd.c (_initialize_infcmd): Ditto.
12182         * corefile.c (_initialize_core): Ditto.
12183
12184 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12185
12186         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12187
12188 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12189
12190         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12191
12192 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12193
12194         * NEWS: Update headings, 5.2 has branched.
12195
12196 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12197
12198         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12199         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12200         (register_addr, REGISTER_RAW_SIZE): Likewise.
12201         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12202         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12203
12204 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12205
12206         * MAINTAINERS (x86-64): Add myself.
12207         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12208         changed value_ptr -> struct value *
12209
12210 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12211
12212         * configure.host (sparc64-*-freebsd): Add.
12213         * configure.tgt: Likewise.
12214         * config/sparc/fbsd.mh: New file.
12215         * config/sparc/fbsd.mt: Likewise.
12216         * config/sparc/nm-fbsd.h: Likewise.
12217         * config/sparc/tm-fbsd.h: Likewise.
12218
12219 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12220
12221         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12222         regformats/reg-s390x.dat.
12223
12224 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12225
12226         * utils.c: Add FIXME explaining true/false problem.
12227
12228 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12229
12230         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12231
12232 2002-02-28  Michael Chastain  <mec@shout.net>
12233
12234         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12235
12236 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12237
12238         * gdbserver/linux-s390-low.c: New file.
12239         * regformats/reg-s390.dat: New file.
12240         * regformats/reg-s390x.dat: New file.
12241         * gdbserver/configure.srv: Add S/390.
12242         * gdbserver/Makefile.in: Add S/390.
12243         * configure.tgt: Enable gdbserver for S/390.
12244
12245 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12246
12247         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12248         first line of the doc string for "info dos", except at the end of
12249         the sentence, since the short help stops at the first period.
12250
12251 2002-02-28  Jason Merrill  <jason@redhat.com>
12252
12253         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12254
12255 2002-02-27  Fred Fish  <fnf@redhat.com>
12256
12257         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12258         comment (dumy -> dummy).
12259
12260 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12261
12262         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12263
12264 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12265
12266       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12267
12268 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12269
12270         * gdbserver/acconfig.h: New file.
12271         * gdbserver/i387-fp.c: New file.
12272         * gdbserver/i387-fp.h: New file.
12273         * gdbserver/linux-x86-64.c: New file.
12274         * regformats/reg-x86-64.dat: New file.
12275         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12276         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12277         * gdbserver/configure.in: Add support for regsets.
12278         * gdbserver/config.in: Regenerate.
12279         * gdbserver/configure: Regenerate.
12280         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12281         * gdbserver/linux-low.h: New file.
12282         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12283         for regsets.
12284         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12285         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12286         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12287         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12288         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12289         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12290         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12291         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12292         * gdbserver/regcache.c (supply_register): New function.
12293         (supply_register_by_name): New function.
12294         (collect_register): New function.
12295         (collect_register_by_name): New function.
12296
12297 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12298
12299         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12300         (config.status): Add configure.srv dependency.
12301         (server_h): Add config.h dependency.
12302
12303 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12304
12305         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12306         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12307         * gdbserver/configure.srv: Change i386-*-linux* to use
12308         reg-i386-linux.o.
12309
12310 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12311
12312         * x86-64-tdep.c: Re-indent.  Update copyright date.
12313
12314 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12315
12316         From Michal Ludvig <mludvig@suse.cz>:
12317         * x86-64-tdep.c (value.h): Delete.
12318         (gdb_assert.h): Include.
12319         (x86_64_register_convert_to_virtual,
12320         x86_64_register_convert_to_raw ): Add check which lets only
12321         floating-point values to be converted.
12322         (value_push): Delete.
12323         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12324         (i386_gdbarch_init): Number of register_bytes fixed.
12325
12326 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12327
12328         * MAINTAINERS: Add x86-64 target.
12329
12330 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12331
12332         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12333         * osfsolib.c (solib_map_sections): Ditto.
12334         * irix5-nat.c (solib_map_sections): Ditto.
12335         * corelow.c (gdb_check_format): Ditto.
12336         * symfile.c (symfile_bfd_open): Ditto.
12337         * solib.c (solib_map_sections): Ditto.
12338         Fix PR gdb/354.
12339
12340 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12341
12342         * remote.c (_initialize_remote): By default, disable ``e'' and
12343         ``E'' step out-of-range packets.
12344
12345 2002-02-26  Andreas Schwab  <schwab@suse.de>
12346
12347         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12348         m68k_linux_frame_saved_pc.
12349         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12350         in_sigtramp.
12351         (SIGCONTEXT_PC_OFFSET): Remove.
12352         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12353         m68k_linux_sigtramp_saved_pc): New functions.
12354         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12355         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12356         (UCONTEXT_PC_OFFSET): Define.
12357         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12358         non-RT and RT signal trampolines.
12359
12360 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12361
12362         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12363         (TARGET_NBPG, STACK_END_ADDR): Delete
12364         (VARIABLES_INSIDE_BLOCK): Delete.
12365
12366 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12367
12368         * utils.c (perror_with_name): Make string parameter constant.
12369         (print_sys_errmsg): Ditto.
12370         (query): Ditto.
12371         * defs.h (perror_with_name): Update.
12372         (print_sys_errmsg): Update.
12373         (query): Update.
12374
12375 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12376
12377         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12378         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12379
12380 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12381
12382         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12383         if it already matches the current architecture from the exec file.
12384         Include arch-utils.h for gdbarch_info_init prototype.
12385         * Makefile.in (rs6000-nat.o): Update dependencies.
12386
12387 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12388
12389         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12390          list of exported variables.
12391
12392 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12393
12394         * gdbserver/configure.srv: New file.
12395         * gdbserver/configure.in: Use configure.srv instead
12396         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12397         from it.
12398         * gdbserver/configure: Regenerated.
12399         * gdbserver/terminal.h: New file.
12400         * gdbserver/Makefile.in: Update for configure changes.  Remove
12401         more unneeded include paths.
12402
12403 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12404
12405         From wiz at danbala:
12406         * config/sparc/tm-sp64.h: Fix grammar and typos.
12407         Fix PR gdb/287.
12408
12409 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12410
12411         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12412         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12413         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12414         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12415         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12416         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12417         * s390-tdep.c: Ditto.
12418         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12419         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12420         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12421         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12422         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12423         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12424         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12425         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12426         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12427         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12428         Fix PR gdb/378.
12429
12430 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12431
12432         * lin-thread.c: Delete file.
12433         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12434         to gdb_proc_service.h.
12435         * configure: Re-generate.
12436
12437         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12438         * serial.c (serial_open): Delete check for "ocd".
12439         Fix PR gdb/349.
12440
12441         * Makefile.in (linux-thread.o): Delete target.
12442         * linux-thread.c: Delete file.
12443
12444         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12445         renamed SH files to be consistent.
12446
12447         * symtab.c (sort_search_symbols): Use xfree.
12448
12449 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12450
12451         * arm-linux-tdep.c (arm_linux_init_abi): Register
12452         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12453         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12454         definition with undef, since we don't want the sysvr4 definition.
12455         (SKIP_TRAMPOLINE_CODE): Likewise.
12456
12457 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12458
12459         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12460
12461         * configure.in: (AC_CHECK_FUNCS) Added test for
12462         canonicalize_file_name Regenerated.
12463         * config.in, configure: Regenerated.
12464         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12465         defined use canonicalize_file_name.
12466
12467 2002-02-23  Michael Chastain  <mec@shout.net>
12468
12469         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12470
12471 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12472
12473         * README: Remove references to cygnus.com.
12474         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12475         dot com'' form.  Remove references to cygnus.com and sourceware.
12476
12477 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12478
12479         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12480         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12481         1003.1-2001 no longer allows "head -1".
12482         * gdb/Makefile.in (version.c): Likewise.
12483         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12484         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12485         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12486
12487 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12488
12489         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12490         * command.h (cmd_cfunc_eq): Declare.
12491         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12492
12493         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12494         ``struct cmd_list_element *''.
12495         * cli/cli-cmds.c (is_complete_command): Update.  Use
12496         cmd_cfunc_eq.
12497         * top.c (execute_command): Pass the command to
12498         is_complete_command.
12499         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12500
12501 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12502
12503         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12504         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12505         architecture defines.
12506         * s390-tdep.c (s390_gdbarch_init): Likewise.
12507
12508 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12509
12510         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12511         (arm_linux_push_arguments): Likewise.
12512         (arm_linux_init_abi): Register them.  Also register linux-specific
12513         call_dummy_words.
12514         (find_minsym_and_objfile): Use strcmp, not STREQ.
12515         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12516         (arm_linux_call_dummy_words): Delete declaration.
12517         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12518         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12519         declarations.
12520         (LOWEST_PC): Delete.
12521
12522 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12523
12524         * maint.c (print_section_info): Do not prepend `0x' to filepos
12525         output, it will be handled by local_hex_string_custom.
12526
12527 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12528
12529         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12530         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12531         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12532
12533 2002-02-22  Jim Blandy  <jimb@redhat.com>
12534
12535         Indicate that the bcache functions don't change the strings
12536         they're passed.
12537         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12538         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12539
12540 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12541
12542         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12543
12544 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12545
12546         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12547         find the complete path to a loaded DLL.
12548
12549 2002-02-21  Fred Fish  <fnf@redhat.com>
12550
12551         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12552         that marks the end of the range of a function, enter a line number
12553         entry that has a line number of zero and a PC offset that matches
12554         the end of the function.  This starts a range of PC's for which no
12555         line number information is known.
12556         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12557         PC's for which no line number info is found (line number is zero)
12558         then we didn't find any valid line information.
12559         * symtab.h: Document use of zero line number entry.
12560
12561 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12562
12563         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12564         (have_ptrace_getvrregs): Define for run time checks.
12565         (gdb_vrregset_t): New type for Altivec register handling.
12566         (fetch_register, store_register): Fetch/store altivec register
12567         when needed.
12568         (fetch_altivec_register, store_altivec_register): New functions.
12569         (supply_vrregset, fill_vrregset): New functions.
12570         (fetch_altivec_registers, store_altivec_registers): New functions.
12571         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12572         registers as well.
12573
12574 2002-02-21  Jiri Smid  <smid@suse.cz>
12575
12576         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12577
12578 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12579
12580         * Makefile.in (armnbsd-nat.o): Update dependencies.
12581         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12582         supply the integer register set.
12583         (supply_fparegset): New function.  Similar for FPA registers.
12584         (fetch_regs, fetch_fp_regs): Use them.
12585         (fetch_core_registers): Likewise.
12586         (fetch_elfcore_registers): New function.
12587         (arm_netbsd_elfcore_fns): New core-file type specification.
12588         (_initialize_arm_netbsd_nat): Register it.
12589
12590 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12591
12592         * armnbsd-nat.c: Include gdbcore.h.
12593         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12594         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12595         'void' to declaration, to shut up ARI.
12596         (fetch_core_registers): Make static.  Rewrite using supply_register.
12597         (arm_netbsd_core_fns): New core-file type specification.
12598         (_initialize_arm_netbsd_nat): New function.
12599
12600 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12601
12602         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12603         value.
12604
12605 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12606
12607         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12608         fails.
12609
12610 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12611
12612         * jv-exp.y (parse_number): Change type of implicit longs
12613         to builtin_type_uint64.
12614
12615 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12616
12617         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12618         to be an integer instead of a `union wait'.
12619
12620 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12621
12622         * mips-linux-nat.c: Call the operating system GNU/Linux.
12623         * mips-linux-tdep.c: Likewise.
12624         * mips-tdep.c: Likewise.
12625
12626 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12627
12628         Fix PR gdb/265.
12629         * jv-exp.y (parse_number): Handle 64-bit integers.
12630
12631 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12632
12633         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12634         AC_STDC_HEADERS to AC_HEADER_STDC.
12635         * gdbserver/configure: Regenerated.
12636
12637 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12638
12639         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12640         is defined.
12641         * sparc-tdep.c (get_longjmp_target): Likewise.
12642
12643 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12644
12645         * News: Add news about ARM and Multi-arch.  Mention the new target
12646         arm*-*-netbsd*.
12647
12648 2002-02-19  Jim Blandy  <jimb@redhat.com>
12649
12650         * stabsread.c (error_type_complaint): Improve error message.
12651
12652 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12653
12654         * gdbserver/README: Update documentation.
12655         * gdbserver/configure.in: Update configury to match documentation.
12656         * gdbserver/Makefile.in: Likewise.
12657         * gdbserver/configure: Regenerated.
12658         * gdbserver/aclocal.m4: New file, generated by aclocal.
12659         * gdbserver/config.in: New file, generated by autoheader.
12660
12661 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12662
12663         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12664         armnbsd-nat.c.
12665
12666 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12667
12668         * arm-tdep.h (enum arm_float_model): New enum.
12669         (struct gdbarch_tdep): Add fp_model.
12670         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12671         up floating-point conversions until we know the floating-point model
12672         in use by the inferior.  Don't complain about being unable to
12673         determine the ABI of the inferior when we don't have one.
12674         (arm_extract_return_value): Support different floating-point models.
12675         (arm_store_return_value): Likewise.
12676         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12677         ARM_FLOAT_SOFT.
12678         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12679
12680 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12681
12682         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12683         of ``current_gdbarch''.
12684
12685 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12686
12687         * armnbsd-nat.c : ANSIfy all function declarations.
12688         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12689         (fetch_inferior_registers): Re-implement in terms of above.
12690         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12691         (store_inferior_registers): Re-implement in terms of above.
12692
12693 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12694
12695         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12696         kernel.
12697         * arm-linux-tdep.c: Likewise.
12698         * config/arm/tm-linux.h: Likewise.
12699
12700 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12701
12702         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12703         * config/arm/nbsd.mt (TM_FILE): Delete.
12704         * config/arm/tm-nbsd.h: Delete.
12705
12706 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12707
12708         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12709         Initialize CALL_DUMMY_LENGTH.
12710
12711 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12712
12713         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12714         function.
12715         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12716         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12717         defines one thing and that is incorrect for this port.
12718         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12719
12720 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12721
12722         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12723
12724 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12725
12726         * win32-nat.c (display_selector): New function. Displays information
12727         about the information returned by GetThreadSelectorEntry API function.
12728         (display_selectors): New function. Displays the infomation of
12729         the selector given as argument, or of CS, DS ans FS selectors
12730         if no argument is given.
12731         ( _initialize_inftarg): Add "w32" as info prefix command.
12732         Add "info w32 selector" as command calling display_selectors.
12733
12734 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12735
12736         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12737         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12738         if not defined.
12739
12740 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12741
12742         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12743
12744 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12745
12746         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12747         (arm_fix_call_dummy): Call it.
12748         (arm_call_dummy_breakpoint_offset): Delete.
12749         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12750         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12751
12752 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12753
12754         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12755         Default to func_frame_chain_valid.
12756         * gdbarch.h, gdbarch.c: Re-generate.
12757         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12758
12759 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12760
12761         * ppc-linux-nat.c: Update copyright.
12762         (fetch_register, store_register): Add tid parameter, don't compute
12763         tid here.
12764         (fetch_ppc_registers, store_ppc_registers): Add tid
12765         parameter. Pass it along to callees.
12766         (fetch_inferior_registers, store_inferior_registers): Compute tid
12767         here, and pass it to calleed functions.
12768         (fill_gregset, supply_fpregset): Clean up formatting.
12769
12770 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12771
12772         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12773         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12774
12775 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12776
12777         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12778         * gdbarch.c gdbarch.h: Regenerate.
12779         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12780         function.
12781         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12782         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12783         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12784
12785         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12786         * arm-tdep.c (arm_get_longjmp_target): New function.
12787         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12788         this to a positive value register arm_get_longjmp_target as the
12789         longjmp handler.
12790         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12791         (arm_linux_init_abi): Set up longjmp description in tdep.
12792         * armnbsd-nat.c (get_longjmp_target): Delete.
12793         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12794         description in tdep.
12795         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12796         (get_longjmp_target): Delete declaration.
12797         (GET_LONGJMP_TARGET): Delete.
12798         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12799         (GET_LONGJMP_TARGET): Delete.
12800
12801 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12802
12803         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12804         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12805         of ``current_gdbarch''.
12806
12807 2002-02-17  Tom Tromey  <tromey@redhat.com>
12808
12809         * cli/cli-cmds.c (compare_strings): New function.
12810         (complete_command): Only print each unique item once.
12811         * completer.h (complete_line): Declare.
12812         * completer.c (complete_line): New function.
12813         (line_completion_function): Use it.
12814
12815 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12816
12817         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12818         * gdbarch.h, gdbarch.c: Re-generate.
12819
12820 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12821
12822         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12823
12824 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12825
12826         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12827         * valops.c (value_arg_coerce): Don't take the address of a reference
12828         to convert an argument to a reference.
12829
12830 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12831
12832         * win32-nat.c (get_image_name): New function.
12833         (handle_load_dll): Use get_image_name function.
12834         (get_child_debug_event): Avoid registering debug events until possibly
12835         execed process is started.
12836         (child_create_inferior): Allow invocation via shell so that command
12837         line redirection, etc.  works ok.
12838         (_initialize_inftarg): Add new command: "set shell" to control whether
12839         a shell is used to start a process.
12840
12841 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12842
12843         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12844         instead of find_register_by_number.
12845         (cannot_store_register): Likewise.
12846
12847 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12848
12849         * dwarf2read.c: Replace fprintf (stderr, ...) by
12850         fprintf_unfiltered (gdb_stderr, ...).
12851
12852 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12853
12854         * gdbserver/gdbserver.1: Document --attach.
12855
12856 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12857
12858         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12859         descriptions.
12860         * arm-tdep.c (arm_default_arm_le_breakpoint)
12861         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12862         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12863         traditional breakpoint defines.
12864         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12865         (arm_gdbarch_init): Initialize new breakpoint variables.
12866         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12867         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12868         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12869         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12870         code out to ...
12871         (arm_netbsd_init_abi_common): ... here; new function.
12872         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12873         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12874         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12875         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12876
12877 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12878
12879         * arm-tdep.h (enum arm_abi): New enum.
12880         (struct gdbarch_tdep): New structure.
12881         (LOWEST_PC): Provide a default.
12882         (arm_gdbarch_register_os_abi): Declare new function.
12883         * arm-tdep.c (arm_abi_names): New array.
12884         (process_note_abi_tag_sections): New function.
12885         (get_elfosabi): New function.
12886         (arm_gdbarch_register_os_abi): New function.
12887         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12888         support for that ABI has been built in, then call the appropriate
12889         configuration routine.  Use gdbarch_num_regs() to get the number
12890         of registers.
12891         (arm_dump_tdep): New function.
12892         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12893         place-holder functions.
12894         (_initialize_arm_tdep): Register them.
12895         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12896
12897         * armnbsd-tdep.c: New file.
12898         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12899         * config/arm/nbsd.mt (TDEPFILES): Add it.
12900         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12901
12902         * armnbsd-nat.c: Include regcache.h.
12903         * Makefile.in (armnbsd-nat.o): Update dependency list.
12904
12905         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12906
12907 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12908
12909         * gdbserver/Makefile.in: Fix typos in target rules.
12910
12911 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12912
12913         Fix part of PR gdb/267.
12914         * linespec.c (find_methods): Handle constructors specially for now.
12915
12916 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12917
12918         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12919         handling.
12920         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12921         standard_coerce_float_to_double().
12922
12923 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12924
12925         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12926         GDBINIT_FILENAME.
12927
12928 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12929
12930         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12931         find_variant_by_name, because it confuses the multiarch
12932         framework. Return NULL if there isn't an architecture with the
12933         user supplied name, instead of forcing a different one without
12934         recording the change with the multiarch machinery.
12935         (find_variant_by_name): Delete.
12936
12937 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12938
12939         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12940         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12941
12942 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12943
12944         * stack.c (print_frame_info_base): When calling
12945         print_frame_info_listing_hook, set current_source_symtab.
12946
12947 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12948
12949         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12950         and remove unused $(INCLUDE_DIR).
12951         Add regcache.c to OBS.
12952         Add generated register protocol files to clean target.
12953         Update dependencies for new objects, obsolete old target code.
12954
12955         * gdbserver/linux-low.c: Remove all platform-specific code to
12956         new files.  Remove various dead code.  Update to use regcache
12957         functionality.
12958         * gdbserver/remote-utils.c (fromhex): Add return statement
12959         to quiet warning.
12960         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12961         constant.
12962         (input_interrupt): Add integer parameter to match prototype
12963         of a signal handler.
12964         (outreg): Use register_data ().
12965         (prepare_resume_reply): Use gdbserver_expedite_regs.
12966         * gdbserver/server.c (main): Dynamically allocate own_buf because
12967         PBUFSIZ is no longer constant.  Use registers_to_string () and
12968         registers_from_string ().
12969         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12970         for error (), fatal (), and warning ().  Update definition of
12971         PBUFSIZ to use regcache functionality.  Add include guard.
12972         * gdbserver/utils.c (fatal): Add missing ``const''.
12973         (warning): New function.
12974
12975         * regformats/regdat.sh: Include "regcache.h" in generated files.
12976         Provide init_registers () function.
12977         * regformats/regdef.h: Add prototype for set_register_cache ().
12978         Add include guard.
12979
12980         * gdbserver/linux-arm-low.c: New file.
12981         * gdbserver/linux-i386-low.c: New file.
12982         * gdbserver/linux-ia64-low.c: New file.
12983         * gdbserver/linux-m68k-low.c: New file.
12984         * gdbserver/linux-mips-low.c: New file.
12985         * gdbserver/linux-ppc-low.c: New file.
12986         * gdbserver/linux-sh-low.c: New file.
12987
12988         * gdbserver/regcache.c: New file.
12989         * gdbserver/regcache.h: New file.
12990
12991         * gdbserver/low-linux.c: Removed obsolete file.
12992
12993 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12994
12995         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12996         * config/i386/linux.mt: Likewise.
12997         * config/ia64/linux.mt: Likewise.
12998         * config/m68k/linux.mh: Likewise.
12999         * config/powerpc/linux.mh: Likewise.
13000         * config/mips/linux.mt: Likewise.
13001
13002         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13003
13004         * config/i386/i386lynx.mh: Mark gdbserver variables
13005         as (currently) obsolete for this target.
13006         * config/i386/nbsd.mt: Likewise.
13007         * config/i386/nbsdelf.mt: Likewise.
13008         * config/m32r/m32r.mt: Likewise.
13009         * config/m68k/m68klynx.mh: Likewise.
13010         * config/m68k/nbsd.mt: Likewise.
13011         * config/m68k/sun3os4.mh: Likewise.
13012         * config/mips/vr5000.mt: Likewise.
13013         * config/ns32k/nbsd.mt: Likewise.
13014         * config/pa/hppabsd.mh: Likewise.
13015         * config/pa/hppaosf.mh: Likewise.
13016         * config/powerpc/nbsd.mt: Likewise.
13017         * config/rs6000/rs6000lynx.mh: Likewise.
13018         * config/s390/s390.mt: Likewise.
13019         * config/s390/s390x.mt: Likewise.
13020         * config/sparc/sparclynx.mh: Likewise.
13021         * config/sparc/sun4os4.mh: Likewise.
13022         * config/i386/x86-64linux.mt: Likewise.
13023         * config/sparc/linux.mh: Likewise.
13024
13025 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13026
13027         * configure.tgt: Configure gdbserver only for known working
13028         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13029         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13030         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13031         * configure: Regenerated.
13032
13033 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13034
13035         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13036
13037         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13038         (default_gcore_mach): Just return 0, work around a problem in bfd.
13039         (default_gcore_target): OK to return NULL if exec_bfd is null.
13040         (make_mem_sec): Use a cast, avoid a warning.
13041
13042         * procfs.c (find_memory_regions_callback): Use a cast instead of
13043         calling host_pointer_to_address (which complains if
13044         sizeof (host pointer) != sizeof (target pointer)).
13045         (procfs_make_note_section): Avoid overflow in psargs string.
13046
13047         * procfs.c (procfs_make_note_section): Make the default
13048         implementation return an error.
13049
13050 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13051
13052         * procfs.c (procfs_make_note_section): Provide a default definition
13053         (for alpha-dec-osf4.0f). Fix typos.
13054
13055 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13056
13057         * linux-proc.c: Add include of regcache.h.
13058         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13059
13060 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13061
13062         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13063         * memattr.c (create_mem_region): Disallow useless empty region.
13064         Regions are half-open intervals, so allow [A..B) [B..C) as
13065         non-overlapping.
13066
13067 2002-02-13  Michael Chastain <mec@shout.net>
13068
13069         * defs.h: Kill CONST_PTR.
13070         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13071         * c-lang.c (c_builtin_types): Likewise.
13072         * ch-lang.c (ch_builtin_types): Likewise.
13073         * f-lang.c (f_builtin_types): Likewise.
13074         * language.c (unknown_builtin_types): Likewise.
13075         * m2-lang.c (m2_builtin_types): Likewise.
13076         * p-lang.c (pascal_builtin_types): Likewise.
13077         * scm-lang.c (c_builtin_types): Likewise.
13078
13079 2002-02-13  Keith Seitz  <keiths@redhat.com>
13080
13081         * arm-tdep.h (arm_get_next_pc): Add declaration.
13082
13083 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13084
13085         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13086         with other related struct-returning functions.
13087         (arm_extract_struct_value_address): New function.
13088         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13089         initialize float_format, double_format and long_double_format as
13090         appropriate to the endianness of the target.
13091         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13092         (arm_use_struct_convention): Delete declaration.
13093         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13094
13095 2002-02-13  Keith Seitz  <keiths@redhat.com>
13096
13097         * defs.h (core_addr_to_string_nz): New function.
13098
13099 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13100
13101         Apply missing bits of 2002-01-15 patch.
13102         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13103         (fill_fpregset): Use i387_fill_fsave.
13104
13105 2002-02-12  Keith Seitz  <keiths@redhat.com>
13106
13107         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13108         (core_addr_to_string_nz): New function.
13109
13110 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13111
13112         * arm-linux-nat.c: Really include arm-tdep.h.
13113         * config/arm/tm-linux.h (struct type, struct value): Declare.
13114
13115 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13116
13117         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13118         (gcore section): Ifdef for Solaris and Unixware only.
13119         (procfs_do_thread_registers): Unixware needs one lwpstatus
13120         per thread (not one prstatus or pstatus).
13121         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13122         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13123         once before iterating over threads.
13124
13125 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13126
13127         * arm-tdep.h: New file.
13128         * arm-tdep.c: Include arm-tdep.h.
13129         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13130         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13131         (arm_print_float_info, arm_register_type, convert_to_extended)
13132         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13133         (arm_extract_return_value, arm_register_name): Make static.
13134         (arm_software_single_step): Similarly.  Fix types in declaration.
13135         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13136         (arm_store_return_value, arm_store_struct_return): New functions.
13137         (arm_gdbarch_init): Register the above functions.  Also register
13138         call_dummy_start_offset, sizeof_call_dummy_words,
13139         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13140         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13141         max_register_virtual_size, register_size.  Set up
13142         prologue_cache.saved_regs here, rather than ...
13143         (_initialize_arm_tdep): ... here.
13144         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13145         declarations.
13146         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13147         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13148         (arm_print_float_info, arm_register_type, convert_to_extended)
13149         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13150         (arm_extract_return_value, arm_register_name): Delete declarations.
13151         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13152         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13153         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13154         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13155         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13156         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13157         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13158         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13159         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13160         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13161         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13162         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13163         interface.
13164         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13165         * remote-rdi.c remote-rdp.c: Likewise.
13166         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13167         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13168         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13169         definition.
13170
13171         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13172         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13173         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13174         from non-ARM_ prefixed definitions.
13175         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13176         all uses of above.
13177         * remote-rdi.c remote-rdp.c: Likewise.
13178         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13179
13180 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13181
13182         * arm-tdep.c (arm_frameless_function_invocation)
13183         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13184         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13185         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13186         (arm_pop_frame, arm_get_next_pc): Make static.
13187         (arm_gdbarch_init): Register above in gdbarch structure.
13188         (arm_read_fp): Renamed from arm_target_read_fp.
13189         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13190         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13191         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13192         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13193         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13194         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13195         (arm_pc_is_thumb_dummy): Delete declarations.
13196         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13197         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13198         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13199         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13200
13201 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13202
13203         * symtab.c (compare_search_syms): New function.
13204         (sort_search_symbols): New function.
13205         (search_symbols): Sort symbols after searching rather than
13206         before.
13207
13208 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13209
13210         * NEWS: Linux -> GNU/Linux.
13211
13212 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13213
13214         * gdbarch.sh: For for level one methods, disallow a definition
13215         when partially multi-arched.  Add comments explaining rationale.
13216         * gdbarch.h: Re-generate.
13217
13218 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13219
13220         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13221         multi-arch partial.
13222
13223 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13224
13225         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13226         field.  Use diff -u.
13227         * gdbarch.c: Re-generate.
13228
13229 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13230
13231         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13232         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13233         partial.
13234
13235 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13236
13237         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13238         multi-arch partial.
13239         (PUSH_ARGUMENTS): Switch to using predefault.
13240         * gdbarch.c: Regenerate.
13241
13242 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13243
13244         * valops.c (PUSH_ARGUMENTS): Delete definition.
13245         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13246         partial.  Default to default_push_arguments.
13247         * gdbarch.h, gdbarch.c: Regenerate.
13248
13249 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13250
13251         * defs.h (throw_exception): Rename return_to_top_level.  Update
13252         comments.
13253         * utils.c (error_stream, internal_verror, quit): Ditto.
13254         * top.c (throw_exception, catcher): Ditto.
13255         * sparclet-rom.c (sparclet_load): Ditto.
13256         * remote.c (interrupt_query, minitelnet): Ditto.
13257         * remote-sds.c (interrupt_query): Ditto.
13258         * remote-mips.c (mips_error, mips_kill): Ditto.
13259         * ocd.c (interrupt_query): Ditto.
13260         * monitor.c (monitor_interrupt_query): Ditto.
13261         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13262         * target.h: Update comment.
13263
13264         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13265
13266 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13267
13268         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13269         default_double_format.
13270         * gdbarch.h, gdbarch.c: Re-generate.
13271         * findvar.c (floatformat_unknown): Delete variable definition.
13272         * doublest.h (floatformat_unknown): Delete variable declaration.
13273
13274 2002-02-09  Jim Blandy  <jimb@redhat.com>
13275
13276         * stabsread.c (read_type): Add code to parse Sun's syntax for
13277         prototyped function types.
13278
13279 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13280
13281         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13282         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13283
13284 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13285
13286         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13287         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13288         now _initialize_xcoffsolib gets called again and overrides the
13289         commands from solib.c in a native configuration.
13290
13291 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13292
13293         * doublest.c (store_typed_floating): Don't try to return a value.
13294         Fixes PR gdb/290.
13295
13296 2002-02-08  Jim Blandy  <jimb@redhat.com>
13297
13298         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13299         is prototyped and has no arguments, print its argument list as
13300         `(void)'.
13301
13302 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13303
13304         * MAINTAINERS (write-after-approval): Add myself.
13305         (paper-trail): I've escaped!
13306
13307 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13308
13309         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13310         changes.
13311         (_initialize_check_for_gdb_ini): Ditto.
13312
13313 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13314
13315         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13316         xaprintf -> xasprintf.
13317
13318 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13319
13320         * win32-nat.c: Remove use of printf and sprintf functions.
13321
13322 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13323
13324         * arm-tdep.c (arm_frame_chain_valid): Make static.
13325         (arm_push_arguments): Likewise.
13326         (arm_gdbarch_init): New function.
13327         (_initialize_arm_tdep): Call it.
13328         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13329         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13330         (FRAME_CHAIN_VALID): Delete.
13331         (arm_frame_chain_valid): Delete declaration.
13332         (PUSH_ARGUMENTS): Delete.
13333         (arm_push_arguments): Delete declaration.
13334         (CALL_DUMMY_P): Delete.
13335
13336 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13337             Corinna Vinschen  <vinschen@redhat.com>
13338
13339         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13340         on builtin float types.
13341
13342 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13343
13344         * utils.c: Include <curses.h> before "bfd.h".
13345         * tui/tui-hooks.c: Likewise.
13346         * tui/tui.c: Likewise.
13347         * tui/tuiCommand.c: Likewise.
13348         * tui/tuiData.c: Likewise.
13349         * tui/tuiDataWin.c: Likewise.
13350         * tui/tuiDisassem.c: Likewise.
13351         * tui/tuiGeneralWin.c: Likewise.
13352         * tui/tuiIO.c: Likewise.
13353         * tui/tuiLayout.c: Likewise.
13354         * tui/tuiRegs.c: Likewise.
13355         * tui/tuiSource.c: Likewise.
13356         * tui/tuiSourceWin.c: Likewise.
13357         * tui/tuiStack.c: Likewise.
13358         * tui/tuiWin.c: Likewise.
13359
13360 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13361
13362         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13363         to include space for pseudoregs as well. Update loops accordingly.
13364         (sh_fp_frame_init_saved_regs): Ditto.
13365         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13366
13367 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13368
13369         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13370         Add Richard Earnshaw to Arm maintainers.
13371
13372 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13373
13374         * defs.h (warning_begin): Delete declaration.
13375
13376         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13377         Delete macro.
13378
13379 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13380
13381         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13382         Logic bug, remove misplaced else.
13383
13384 2002-02-07  Klee Dienes  <klee@apple.com>
13385
13386         * fork-inferior.c (fork_inferior): Add '!' to the list of
13387         characters that need to be quoted when building a string for the
13388         shell.  Quote '!' specifically with a backslash, since CSH chokes
13389         when trying to evaluate "str!str".
13390
13391 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13392
13393         * rdi-share/host.h: Only provide a typedef for bool if it is not
13394         defined.
13395
13396 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13397
13398         * breakpoint.h (enum bptype): Add new overlay event bp type.
13399         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13400
13401         * breakpoint.c (create_internal_breakpoint): New function.
13402         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13403         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13404         (create_thread_event_breakpoint): Ditto.
13405         (create_solib_event_breakpoint): Ditto.
13406         (create_overlay_event_breakpoint): New function.
13407         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13408         (update_breakpoints_after_exec): Delete and re-initialize
13409         overlay event breakpoints after an exec.  Add FIXME comment
13410         about longjmp breakpoint.
13411         (print_it_typical): Ignore overlay event breakpoints.
13412         (print_one_breakpoint): Ditto.
13413         (mention): Ditto.
13414         (bpstat_what): Do not stop for overlay event breakpoints.
13415         (delete_breakpoint): Don't delete overlay event breakpoints.
13416         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13417         (breakpoint_re_set): Re-create overlay event breakpoint.
13418
13419         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13420         (overlay_manual_command): Disable overlay breakpoints.
13421         (overlay_off_command): Disable overlay breakpoints.
13422
13423 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13424
13425         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13426         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13427         to here from config/tm-arm.h.
13428         (coff_sym_is_thumb): Make static.
13429         (arm_elf_make_msymbol_special): New function.
13430         (arm_coff_make_msymbol_special): New function.
13431         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13432         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13433         (coff_sym_is_thumb): Delete declaration.
13434         (arm_elf_make_msymbol_special): Declare.
13435         (arm_coff_make_msymbol_special): Declare.
13436         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13437         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13438
13439 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13440
13441         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13442
13443 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13444
13445         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13446         * gdbarch.c gdbarch.h: Regenerate.
13447         * arch-utils.c (default_print_float_info): New function.
13448         * arch-utils.h (default_print_float_info): Prototype it.
13449         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13450         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13451         (PRINT_FLOAT_INFO): Document it.
13452
13453         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13454         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13455         (PRINT_FLOAT_INFO): Define.
13456
13457 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13458
13459         * win32-nat.c (_initialize_check_for_gdb_ini):
13460         Add typecast to sprintf argument to suppress a warning.
13461
13462 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13463
13464         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13465         to allow easier handling of pass state.
13466         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13467         that gives exception name and address.
13468         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13469         and set last_sig value to ourstatus->value.sig. Some missing
13470         exceptions added.
13471         (child_continue): Correctly report continue_status.
13472         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13473         TARGET_SIGNAL_0 (new default value).
13474         (child_resume): consider sig argument passed to decide if
13475         the exception should be passed to debuggee or not.
13476
13477 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13478
13479         * regcache.c (fetch_register): Call target_fetch_register
13480         only if we don't call FETCH_PSEUDO_REGISTER.
13481         (store_register): Call target_store_register only if we
13482         don't call STORE_PSEUDO_REGISTER.
13483
13484 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13485
13486         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13487         ELF_MAKE_MSYMBOL_SPECIAL.
13488         * gdbarch.c, gdbarch.h: Regenerate.
13489         * arch-utils.c (default_make_msymbol_special): New function.
13490         * arch-utils.h (default_make_msymbol_special): Export.
13491         * elfread.c (elf_symtab_read): Compile use of
13492         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13493         multiarched.
13494         * coffread.c (coff_symtab_read): Ditto, for
13495         COFF_MAKE_MSYMBOL_SPECIAL.
13496
13497 2002-02-05  Jim Blandy  <jimb@redhat.com>
13498
13499         * solib-svr4.c (svr4_truncate_ptr): New function.
13500         (svr4_relocate_section_addresses): Do the address arithmetic with
13501         the appropriate truncation for target addresses, even when
13502         CORE_ADDR is larger than a target address.
13503
13504 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13505
13506         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13507         to (int *).
13508
13509 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13510
13511         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13512         code.
13513
13514 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13515
13516         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13517
13518 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13519
13520         * gdbserver/linux-low.c: Remove unused include files.
13521
13522 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13523
13524         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13525         (read_inferior_memory): Use it.
13526         (write_inferior_memory): Likewise.
13527
13528 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13529
13530         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13531         grubbing through sys_errlist.
13532
13533 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13534
13535         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13536
13537 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13538         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13539
13540 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13541
13542         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13543         (do_sfunc, set_cmd_sfunc): New functions.
13544
13545         * command.h (struct cmd_list_element): Add field func.
13546         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13547         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13548         * cli/cli-decode.h: Ditto.
13549
13550         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13551         (help_all, help_cmd_list): Ditto.
13552         (find_cmd, complete_on_cmdlist): Ditto.
13553         * top.c (execute_command): Ditto.
13554
13555         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13556         function.sfunc.
13557
13558         * infcmd.c (notice_args_read): Fix function signature.
13559
13560         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13561         * cli/cli-decode.c (add_set_cmd): Ditto.
13562         * utils.c (initialize_utils): Ditto.
13563         * maint.c (_initialize_maint_cmds): Ditto.
13564         * infrun.c (_initialize_infrun): Ditto.
13565         * demangle.c (_initialize_demangler): Ditto.
13566         * remote.c (add_packet_config_cmd): Ditto.
13567         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13568         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13569         * proc-api.c (_initialize_proc_api): Ditto.
13570         * kod.c (_initialize_kod): Ditto.
13571         * valprint.c (_initialize_valprint): Ditto.
13572         * top.c (init_main): Ditto.
13573         * infcmd.c (_initialize_infcmd): Ditto.
13574         * corefile.c (_initialize_core): Ditto.
13575         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13576         * arch-utils.c (initialize_current_architecture): Ditto.
13577         (_initialize_gdbarch_utils): Ditto.
13578         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13579
13580         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13581         * wince.c (_initialize_inftarg): Ditto.
13582         * symfile.c (_initialize_symfile): Ditto.
13583         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13584         * language.c (_initialize_language): Ditto.
13585         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13586
13587 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13588
13589         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13590
13591 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13592
13593         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13594         Add rules for building the register data files.
13595
13596 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13597
13598         * regformats/regdat.sh: Add braces to the definition of
13599         expedite_regs_${arch}.
13600
13601 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13602
13603         * regformats/regdef.h (struct reg): Add comment describing the
13604         requirements for offset and size fields.
13605
13606 2002-02-04  Andreas Schwab  <schwab@suse.de>
13607
13608         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13609         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13610
13611 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13612
13613         * gdbarch.sh (copyright): Update years in generated header.
13614         (SMASH_TEXT_ADDRESS): Add rule.
13615         * gdbarch.h, gdbarch.c: Re-generate.
13616         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13617         * dbxread.c: Likewise.
13618         * dwarfread.c: Likewise.
13619         * elfread.c: Likewise.
13620         * somread.c: Likewise.
13621
13622         * arm-tdep.c (arm_smash_text_address): New function.
13623         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13624
13625 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13626
13627         Add support for hardware watchpoints on win32 native.
13628         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13629         CONTEXT_DEBUG_REGISTERS.
13630         (dr variable): New variable. Static array containing a local copy
13631         of debug registers.
13632         (debug_registers_changed): New variable.  Reflects when debug registers
13633         are changed and need to be written to inferior.
13634         (debug_registers_used): New variable. Reflects when any debug register
13635         was set, used when new threads are created.
13636         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13637         i386-nat code.
13638         (thread_rec): Set dr array if id is the thread of current_event .
13639         (child_continue, child_resume): Change the debug registers for all
13640         threads if debug_registers_changed.
13641         (child_add_thread): Change the debug registers if debug_registers_used.
13642         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13643         Link nm.h to new nm-cygwin.h file.
13644         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13645         of hardware registers.
13646
13647 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13648
13649         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13650         Restore behavour broken by 2002-01-20 Andrew Cagney
13651         <ac131313@redhat.com> IEEE_FLOAT removal.
13652
13653 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13654
13655         * c-valprint.c (c_val_print): Pass a proper valaddr to
13656         cp_print_class_method.
13657         * valops.c (search_struct_method): If there is only one method
13658         and args is NULL, return that method.
13659
13660 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13661
13662         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13663         accessing tag_name directly.
13664
13665 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13666
13667         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13668         of accessing tag_name directly.
13669
13670 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13671
13672         PR gdb/280
13673         * gdbtypes.c (replace_type): New function.
13674         * gdbtypes.h (replace_type): Add prototype.
13675         * stabsread.c (read_type): Use replace_type.
13676
13677 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13678
13679         * Makefile.in (memattr.o): Add missing dependencies rule.
13680
13681 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13682
13683         * breakpoint.c (break_at_finish_command): Really export.
13684         (break_at_finish_at_depth_command): Ditto.
13685         (tbreak_at_finish_command): Ditto.
13686         * hppa-tdep.c: Include completer.h.
13687         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13688         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13689
13690 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13691
13692         * utils.c (do_write): New function.
13693         (error_stream): Rewrite combining the code from error_begin and
13694         verror.
13695         (verror): Rewrite using error_stream.
13696         (error_begin): Delete function.
13697
13698 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13699
13700         * utils.c (error_begin): Make static.
13701         * defs.h (error_begin): Delete declaration.
13702
13703         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13704         (decode_line_1): Use cplusplus_error instead of error_begin,
13705         cplusplus_hint and return_to_top_level.
13706         * coffread.c (coff_symfile_read): Use error instead of error_begin
13707         and return_to_top_level.
13708         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13709
13710 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13711
13712         * language.h (type_error, range_error): Make string parameter
13713         constant.
13714         * language.c (warning_pre_print): Delete extern declaration.
13715         * dwarfread.c (warning_pre_print): Ditto.
13716         * language.c (type_error, range_error): Rewrite to use verror and
13717         vwarning instead of warning_begin.
13718
13719 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13720
13721         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13722         (set_ignore_count): Move misplaced comment back where it belongs.
13723
13724 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13725
13726         * command.h (NO_FUNCTION): Delete macro.
13727         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13728         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13729         * tracepoint.c (_initialize_tracepoint): Ditto.
13730         * cli/cli-decode.c (add_set_cmd): Ditto.
13731         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13732
13733 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13734
13735         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13736         Update ``this'' pointer when calling virtual functions.
13737
13738 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13739
13740         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13741         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13742
13743 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13744
13745         * regformats/reg-arm.dat: New file.
13746         * regformats/reg-i386.dat: New file.
13747         * regformats/reg-ia64.dat: New file.
13748         * regformats/reg-m68k.dat: New file.
13749         * regformats/reg-mips.dat: New file.
13750         * regformats/reg-ppc.dat: New file.
13751         * regformats/reg-sh.dat: New file.
13752         * regformats/regdef.h: New file.
13753         * regformats/regdat.sh: New file.
13754
13755 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13756
13757         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13758         (arm_frame_args_address, arm_frame_locals_address): New functions.
13759         (arm_frame_num_args): New function.
13760         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13761         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13762         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13763
13764 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13765
13766         * breakpoint.c (break_at_finish_command): Export.
13767         (break_at_finish_at_depth_command): Export.
13768         (tbreak_at_finish_command): Export.
13769         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13770         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13771         "txbreak" commands, which are HPPA specific.
13772
13773         * printcmd.c (disassemble_command): Remove an ancient
13774         artifact of an old merge.
13775
13776         * symfile.h (enum overlay_debugging_state):
13777         Define enum constant values for overlay mode.
13778         * symfile.c (overlay_debugging): Use enums instead of literals.
13779         (overlay_is_mapped, overlay_auto_command,
13780         overlay_manual_command): Ditto.
13781
13782         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13783         breakpoint_here_p, breakpoint_inserted_here_p,
13784         breakpoint_thread_match, bpstat_stop_status,
13785         describe_other_breakpoints, check_duplicates, clear_command):
13786         Coding standard fixes.
13787
13788         * target.c (target_xfer_memory): Add spaces, coding standard.
13789         (do_xfer_memory): Add missing line to trust-readonly
13790         code: check bfd SEC_READONLY flag for section.
13791
13792 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13793
13794         * PROBLEMS: Fix typo, 5.1->5.1.1.
13795
13796 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13797
13798         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13799         data symbols, since we search based on textlow and texthigh.
13800         (find_pc_sect_symtab): Likewise.
13801
13802 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13803
13804         * defs.h (vwarning): Declare.
13805         * utils.c (vwarning): New function.
13806         (warning): Call vwarning.
13807         (warning_begin): Delete function.
13808
13809         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13810         the warning message.
13811         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13812         warning_begin.
13813
13814 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13815
13816         * NEWS: Mention "set trust-readonly-sections" command.
13817         Mention generate-core-file command.
13818
13819 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13820
13821         * target.c: New command, "set trust-readonly-sections on".
13822         (do_xfer_memory): Honor the suggestion to trust readonly sections
13823         by reading them from the object file instead of from the target.
13824         (initialize_targets): Register command "set trust-readonly-sections".
13825
13826 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13827
13828         * parse.c (target_map_name_to_register): Simplify, search regs and
13829         pseudo-regs using a single loop.
13830
13831 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13832
13833         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13834
13835 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13836
13837         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13838         * config/i386/i386v42mp.mh: Add i387-nat.o .
13839         * i386v4-nat.c: Include i387-nat.h.
13840         (supply_fpregset): Use i387_supply_fsave.
13841         (fill_fpregset): Use i387_fill_fsave.
13842
13843 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13844
13845         * arm-tdep.c (arm_call_dummy_words): Define.
13846         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13847         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13848         (CALL_DUMMY_WORDS): Define.
13849         (arm_call_dummy_words): Declare.
13850         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13851         (arm_linux_call_dummy_words): Declare.
13852
13853 2002-01-30  Andreas Schwab  <schwab@suse.de>
13854
13855         * m68klinux-nat.c: Fix last change to use regcache_collect
13856         instead of referencing registers[] directly.
13857
13858 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13859
13860         * parse.c (target_map_name_to_register): Delete code wrapped in
13861         #ifdef REGISTER_NAME_ALIAS_HOOK.
13862
13863 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13864
13865         * regcache.c (legacy_read_register_gen): Need to be able to
13866         read pseudo-register as well as real register.
13867         (legacy_write_register_gen): Ditto.
13868
13869 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13870
13871         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13872         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13873         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13874         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13875         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13876         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13877         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13878         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13879         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13880         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13881         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13882         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13883         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13884         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13885         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13886         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13887         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13888         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13889         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13890         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13891
13892 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13893
13894         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13895         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13896         (initialize_current_architecture): Update target_byte_order using
13897         information from BFD.
13898         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13899         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13900
13901 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13902
13903         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13904         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13905
13906         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13907         #ifdef INVALID_FLOAT.
13908         * infcmd.c (do_registers_info): Ditto.
13909         * values.c (unpack_double): Ditto.  Add comment.
13910
13911         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13912         already commented out.
13913
13914 2002-01-26  Andreas Schwab  <schwab@suse.de>
13915
13916         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13917         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13918         registers and add support for PTRACE_GETREGS.
13919
13920 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13921
13922         GDB 5.1.1 released from 5.1 branch.
13923         * NEWS: Add 5.1.1 news.
13924         * README: Sync with 5.1 branch.
13925
13926 2002-01-23  Fred Fish  <fnf@redhat.com>
13927
13928         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13929         stabstring on initial malloc.  Reallocing will copy it for us,
13930         if necessary.
13931
13932 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13933
13934         * Makefile.in (hpread_h): Delete.
13935         (HFILES_NO_SRCDIR): Remove hpread.h.
13936         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13937         (hpread.o): Update dependencies.
13938         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13939
13940         * hp-psymtab-read.c: Remove file.
13941         * hp-symtab-read.c: Remove file.
13942         * hpread.h: Remove file.
13943
13944         * hpread.c: Merge all contents of hp-psymtab-read.c,
13945         hp-symtab-read.c and hpread.h into this file, as it was prior to
13946         January 1999.
13947
13948         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13949         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13950         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13951         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13952
13953 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13954
13955         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13956         fill_gregset): Call gdbarch_tdep() just once, assign result to
13957         variable and use that, instead of calling the function several
13958         times.
13959
13960 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
13961
13962         * configure.host: Accept sparcv9 as alias for sparc64.
13963         * configure.tgt: Likewise.
13964
13965 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
13966
13967         * solib-aix5.c (build_so_list_from_mapfile)
13968         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13969         arguments is not reversed.
13970         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13971         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13972
13973 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
13974
13975         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13976         modified version of obsolete sh_fetch_pseudo_register.
13977         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13978         (sh4_register_read): New function.
13979         (sh_pseudo_register_write): New function. Renamed and modified
13980         version of obsolete sh_store_pseudo_register.
13981         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13982         (sh4_register_write): New function.
13983         (sh_gdbarch_init): Remove setting of gdbarch function
13984         fetch_pseudo_register and store_pseudo_register. Remove setting of
13985         register_convert_to_raw, register_convert_to_virtual,
13986         register_convertible.
13987         (sh_sh4_register_convertible): Delete. No longer needed. All is
13988         taken care by architecture specific functions
13989         register_read/register_write.
13990         (sh_sh4_register_convert_to_virtual): Make static.
13991         (sh_sh4_register_convert_to_raw): Ditto.
13992
13993 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
13994
13995         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13996         (floatformat_is_nan, floatformat_mantissa): Ditto.
13997
13998         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13999         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14000         builtin_type_ieee_double_little,
14001         builtin_type_ieee_double_littlebyte_bigword,
14002         builtin_type_m68881_ext, builtin_type_i960_ext,
14003         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14004         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14005         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14006         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14007
14008 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14009
14010         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14011         parameter.  Set frameless flag if it exists and depended of
14012         whether the scanned function is frameless or not.
14013         (xstormy16_skip_prologue): If function is frameless, return
14014         result of xstormy16_scan_prologue().
14015         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14016         call.
14017
14018 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14019
14020         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14021         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14022         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14023         sh_sh4_register_byte, sh_sh4_register_raw_size,
14024         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14025         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14026         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14027         sh_store_pseudo_register, sh_do_pseudo_register): Call
14028         gdbarch_tdep() just once, assign result to variable and use that,
14029         instead of calling the function several times.
14030
14031 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14032
14033         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14034         macros instead of LAST_FPU_CTRL_REGNUM.
14035         (store_register): Likewise.
14036
14037 2002-01-21  Jim Blandy  <jimb@redhat.com>
14038
14039         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14040         is up-to-date before running the program, not just when a program
14041         exits.
14042
14043 2002-01-21  Fred Fish  <fnf@redhat.com>
14044
14045         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14046         when we have found all instructions we are looking for.
14047
14048 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14049
14050         * arm-tdep.c (arm_register_name): New function.
14051         (arm_registers_names): Make static.
14052         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14053         (arm_register_name): Declare.
14054         (REGISTER_NAME): Use it.
14055
14056 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14057             Kevin Buettner  <kevinb@redhat.com>
14058
14059         Convert arm targets to new FRAME interface.
14060         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14061         (arm_frame_find_save_regs): Delete.
14062         (arm_frame_init_saved_regs): New.
14063         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14064         Allocate extra_info as required.  Convert all uses of fsr.regs
14065         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14066         to use extra_info.
14067         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14068         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14069         (check_prologue_cache, save_prologue_cache): Likewise.
14070         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14071         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14072         (FRAME_FIND_SAVED_REGS): Delete.
14073         (arm_frame_find_saved_regs): Delete prototype.
14074         (arm_frame_init_saved_regs): New prototype.
14075         (FRAME_INIT_SAVED_REGS): Define.
14076
14077 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14078
14079         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14080
14081 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14082
14083         From Jeff Law <law@redhat.com>:
14084         * infttrace.c: Include <sys/pstat.h>.
14085         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14086         exec file if the ttrace equivalent fails.
14087
14088 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14089
14090         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14091         (closeLogFile): Ditto.
14092
14093 2002-01-20  Michael Chastain  <mec@shout.net>
14094
14095         * top.c (print_gdb_version): Bump copyright year to 2002.
14096
14097 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14098
14099         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14100         Zannoni and Eli Zaretskii.
14101
14102 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14103
14104         * buildsym.c: Update copyright years.
14105         * c-typeprint.c: Likewise.
14106         * dwarf2read.c: Likewise.
14107         * f-typeprint.c: Likewise.
14108         * gdbtypes.c: Likewise.
14109         * gdbtypes.h: Likewise.
14110         * hp-symtab-read.c: Likewise.
14111         * hpread.c: Likewise.
14112         * mdebugread.c: Likewise.
14113         * p-typeprint.c: Likewise.
14114
14115 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14116
14117         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14118         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14119         byte-order selectable.
14120         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14121         * arch-utils.c: Ditto.
14122         (set_endian): Ditto.
14123         (set_endian_from_file): Ditto.
14124         * gdbserver/low-sim.c (create_inferior): Ditto.
14125         * gdbarch.sh: Ditto.
14126         * gdbarch.h: Re-generate.
14127         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14128         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14129         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14130         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14131         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14132         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14133         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14134         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14135         macro definition.
14136         * config/mips/tm-wince.h: Remove #undef of macro
14137         TARGET_BYTE_ORDER_SELECTABLE.
14138         * config/sh/tm-wince.h: Ditto.
14139
14140 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14141
14142         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14143         member function fields.  Add accessor macro
14144         TYPE_FN_FIELD_ARTIFICIAL.
14145         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14146         * c-typeprint.c (c_type_print_base): Skip artificial member
14147         functions.
14148
14149 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14150
14151         * f-typeprint.c: Delete unused function f_type_print_args.
14152         * p-typeprint.c: Delete unused function pascal_type_print_args.
14153
14154 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14155
14156         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14157         comment.  Add ``artificial'' to ``union field_location''.
14158
14159         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14160
14161         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14162         * mdebugread.c (parse_symbol): Likewise.
14163         * stabsread.c (define_symbol): Likewise.
14164         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14165         initializing TYPE_FIELD_BITPOS to n (obsolete).
14166         (hpread_doc_function_type): Likewise.
14167         * hpread.c (hpread_function_type): Likewise.
14168
14169 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14170
14171         * configure.in (host_makefile_frag): Only require a host makefile
14172         fragment when a native build.
14173         * configure: Re-generate.
14174
14175 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14176
14177         * doublest.h (floatformat_from_type): Declare.
14178         * doublest.c (floatformat_from_type): New function.
14179         (convert_typed_floating): Use.
14180
14181         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14182         call to function floatformat_from_type.
14183
14184         * gdbarch.sh (IEEE_FLOAT): Delete.
14185         * gdbarch.h, gdbarch.c: Re-generate.
14186         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14187         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14188         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14189         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14190         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14191         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14192         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14193         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14194         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14195         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14196         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14197         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14198
14199         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14200         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14201         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14202         * sh-tdep.c (sh_gdbarch_init): Ditto.
14203         * mips-tdep.c (mips_gdbarch_init): Ditto.
14204         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14205         * cris-tdep.c (cris_gdbarch_init): Ditto.
14206
14207 2002-01-20  Jiri Smid  <smid@suse.cz>
14208
14209         * configure.host, configure.tgt: Support x86-64.
14210         * NEWS: Note new target x86-64.
14211
14212         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14213         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14214         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14215         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14216         x86-64-linux-nat.o): Fix dependencies.
14217
14218 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14219
14220         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14221         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14222         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14223         * config/sparc/xm-sun4os4.h: Delete file.
14224         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14225
14226 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14227
14228         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14229         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14230         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14231         * config/i386/i386lynx.mh (XM_FILE): Delete.
14232         * config/rs6000/xm-rs6000ly.h: Delete file.
14233         * config/sparc/xm-sparclynx.h: Delete file.
14234         * config/m68k/xm-m68klynx.h: Delete file.
14235         * config/i386/xm-i386lynx.h: Delete file.
14236         * config/xm-lynx.h: Delete file.
14237         * config/djgpp/fnchange.lst: Update.
14238
14239 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14240
14241         * alpha-tdep.c (alpha_register_byte): New function.
14242         (alpha_register_raw_size): Ditto.
14243         (alpha_register_virtual_size): Ditto.
14244         (alpha_skip_prologue_internal): Renamed from
14245         alpha_skip_prologue.
14246         (alpha_skip_prologue): New version that calls
14247         alpha_skip_prologue_internal.
14248         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14249         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14250         second argument from alpha_skip_prologue.
14251         (REGISTER_BYTE): Use alpha_register_byte.
14252         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14253         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14254         (FRAMELESS_FUNCTION_INVOCATION): Use
14255         generic_frameless_function_invocation_not.
14256         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14257         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14258
14259 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14260
14261         * config/mips/xm-news-mips.h: Delete file.
14262         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14263
14264         * config/m88k/xm-m88k.h: Delete file.
14265         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14266         * config/m88k/xm-delta88v4.h: Ditto.
14267         * config/m88k/xm-delta88.h: Ditto.
14268
14269         * config/alpha/xm-fbsd.h: Delete file.
14270         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14271
14272         * config/sparc/xm-sparc.h: Delete file.
14273         * Makefile.in (xm-sun4os4.h): Delete dependency.
14274         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14275         * config/sparc/xm-sun4os4.h: Ditto.
14276         * config/sparc/xm-linux.h: Ditto.
14277
14278         * config/i386/xm-windows.h: Delete file.
14279
14280 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14281
14282         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14283         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14284
14285 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14286
14287         * alpha-tdep.c (alpha_call_dummy_words): New.
14288         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14289         (CALL_DUMMY_P): Define.
14290         (CALL_DUMMY_WORDS): Define.
14291         (SIZEOF_CALL_DUMMY_WORDS): Define.
14292
14293 2002-01-19  Per Bothner  <per@bothner.com>
14294
14295         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14296         isn't NULL, which can happen with some gcj-3.x-produced code.
14297
14298 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14299
14300         * alpha-tdep.c (alpha_register_virtual_type): New function.
14301         (alpha_init_frame_pc_first): Ditto.
14302         (alpha_fix_call_dummy): Ditto.
14303         (alpha_store_struct_return): Ditto.
14304         (alpha_extract_struct_value_address): Ditto.
14305         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14306         alpha_register_virtual_type.
14307         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14308         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14309         alpha_extract_struct_value_address.
14310         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14311         (INIT_FRAME_PC): Use init_frame_pc_noop.
14312         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14313
14314 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14315
14316         * i386gnu-nat.c: Include "i386-tdep.h".
14317         (fetch_fpregs): Simplify code dealing with uninitialized floating
14318         point states such that it doesn't require FP7_REGNUM.
14319
14320 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14321
14322         * alpha-tdep.c (frame_extra_info): New.
14323         (alpha_find_saved_regs): Make static.  Use
14324         frame->extra_info.
14325         (alpha_frame_init_saved_regs): New function.
14326         (alpha_frame_saved_pc): Use frame->extra_info.
14327         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14328         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14329         (init_extra_frame_info): Rename to...
14330         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14331         (alpha_print_extra_frame_info): New function.
14332         (alpha_frame_locals_address): Ditto.
14333         (alpha_frame_args_address): Ditto.
14334         (alpha_pop_frame): Use frame->extra_info.
14335         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14336         alpha_frame_args_address.
14337         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14338         (alpha_find_saved_regs): Remove prototype.
14339         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14340         (EXTRA_FRAME_INFO): Remove.
14341         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14342         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14343
14344 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14345
14346         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14347         (alpha_cannot_fetch_register): Ditto.
14348         (alpha_cannot_store_register): Ditto.
14349         (alpha_register_convertible): Ditto.
14350         (alpha_use_struct_convention): Ditto.
14351         * config/alpha/tm-alpha.h: Update copyright years.
14352         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14353         (INNER_THAN): Use core_addr_lessthan.
14354         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14355         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14356         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14357         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14358         (FRAME_CHAIN): Remove unnecessary cast.
14359
14360 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14361
14362         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14363         obsolete.
14364
14365 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14366
14367         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14368         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14369         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14370         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14371         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14372         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14373         * x86-64-linux-nat.c: Ditto.
14374
14375 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14376
14377         * alpha-tdep.c (alpha_register_name): New function.
14378         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14379         (REGISTER_NAME): Define.
14380
14381 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14382
14383         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14384
14385 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14386
14387         * alpha-tdep.c: Update copyright years.
14388         (alpha_next_pc): New function.
14389         (alpha_software_single_step): Ditto.
14390         * config/alpha/tm-alpha.h: Add prototype for
14391         alpha_software_single_step.
14392
14393 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14394
14395         * alphabsd-nat.c: Update copyright years.
14396         (fill_gregset): Use regcache_collect.
14397         (fill_fpregset): Likewise.
14398         (fetch_inferior_registers): Only fetch integer registers
14399         if requested to do so.
14400         (store_inferior_registers): Only store integer registers
14401         if requested to do so.
14402
14403 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14404
14405         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14406         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14407         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14408         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14409         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14410         * config/arm/linux.mh (XDEPFILES): Delete.
14411         * config/arm/nbsd.mh (XDEPFILES): Delete.
14412         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14413         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14414         * config/i386/i386m3.mh (XDEPFILES): Delete.
14415         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14416         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14417         * config/i386/fbsd.mh (XDEPFILES): Delete.
14418         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14419         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14420         * config/i386/i386v4.mh (XDEPFILES): Delete.
14421         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14422         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14423         * config/i386/i386aix.mh (XDEPFILES): Delete.
14424         * config/i386/go32.mh (XDEPFILES): Delete.
14425         * config/i386/cygwin.mh (XDEPFILES): Delete.
14426         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14427         * config/i386/i386mach.mh (XDEPFILES): Delete.
14428         * config/i386/i386v32.mh (XDEPFILES): Delete.
14429         * config/i386/linux.mh (XDEPFILES): Delete.
14430         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14431         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14432         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14433         * config/i386/i386sco.mh (XDEPFILES): Delete.
14434         * config/i386/i386v.mh (XDEPFILES): Delete.
14435         * config/i386/nbsd.mh (XDEPFILES): Delete.
14436         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14437         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14438         * config/i386/symmetry.mh (XDEPFILES): Delete.
14439         * config/i386/obsd.mh (XDEPFILES): Delete.
14440         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14441         * config/ia64/linux.mh (XDEPFILES): Delete.
14442         * config/ia64/aix.mh (XDEPFILES): Delete.
14443         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14444         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14445         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14446         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14447         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14448         * config/m68k/linux.mh (XDEPFILES): Delete.
14449         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14450         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14451         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14452         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14453         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14454         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14455         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14456         * config/m88k/delta88.mh (XDEPFILES): Delete.
14457         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14458         * config/m88k/m88k.mh (XDEPFILES): Delete.
14459         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14460         * config/mips/linux.mh (XDEPFILES): Delete.
14461         * config/mips/irix6.mh (XDEPFILES): Delete.
14462         * config/mips/irix5.mh (XDEPFILES): Delete.
14463         * config/mips/irix4.mh (XDEPFILES): Delete.
14464         * config/mips/irix3.mh (XDEPFILES): Delete.
14465         * config/mips/decstation.mh (XDEPFILES): Delete.
14466         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14467         (NATDEPFILES): Move core-aout.o to here.
14468         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14469         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14470         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14471         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14472         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14473         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14474         * config/pa/hpux11.mh (XDEPFILES): Delete.
14475         * config/powerpc/aix.mh (XDEPFILES): Delete.
14476         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14477         * config/powerpc/linux.mh (XDEPFILES): Delete.
14478         * config/romp/rtbsd.mh: Rename XDEPFILES.
14479         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14480         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14481         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14482         * config/s390/s390.mh (XDEPFILES): Delete.
14483         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14484         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14485         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14486         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14487         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14488         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14489         * config/sparc/linux.mh (XDEPFILES): Delete.
14490         * config/vax/vaxult.mh (XDEPFILES): Delete.
14491         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14492         * Makefile.in (DEPFILES): Remove XDEPFILES.
14493
14494 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14495
14496         * utils.c (internal_verror): Fix comments, default is yes not no.
14497         Update queries to match.  Default to quit and dump core.
14498
14499 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14500
14501         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14502         copyright.
14503         * defs.h, event-top.c, gdbcmd.h: Ditto.
14504         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14505         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14506         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14507         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14508         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14509         * mi/mi-main.c:Ditto.
14510
14511         * stack.c, symfile.c: Update copyright.
14512
14513 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14514
14515         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14516         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14517         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14518         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14519
14520 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14521
14522         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14523         * gdbserver/low-lynx.c (myattach): Likewise.
14524         * gdbserver/low-nbsd.c (myattach): Likewise.
14525         * gdbserver/low-sim.c (myattach): Likewise.
14526         * gdbserver/low-sparc.c (myattach): Likewise.
14527         * gdbserver/low-sun3.c (myattach): Likewise.
14528
14529         * gdbserver/low-linux.c (myattach): New function.
14530
14531         * gdbserver/server.c (attach_inferior): New function.
14532         (main): Handle "--attach".
14533
14534 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14535
14536         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14537         maintainer.
14538
14539 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14540
14541         * c-typeprint.c (is_type_conversion_operator): Add additional
14542         check for non-conversion operators.
14543
14544 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14545
14546         * linux-proc.c: Add "info proc" command, a la procfs.c.
14547         (read_mapping): New function, abstract and re-use code.
14548         (linux_find_memory_regions): Use new func read_mapping.
14549         (linux_info_proc_cmd): New function, implement "info proc".
14550         (_initialize_linux_proc): Add new command "info proc".
14551
14552 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14553
14554         * symfile.c (generic_load): Use bfd_map_over_sections method
14555         instead of manipulating bfd structure members directly.
14556         (add_section_size_callback): New function, bfd sections callback
14557         used by generic_load.
14558         (load_sections_callback): New function, bfd sections callback
14559         used by generic_load.
14560
14561 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14562
14563         [Based on work by Jim Blandy]
14564         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14565         (builtin_type_vec128): Export.
14566         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14567         types.
14568         (builtin_type_vec128): New builtin type for 128 bit vector
14569         registers.
14570         (build_gdbtypes): Initialize builtin_type_v16qi and
14571         builtin_type_v8hi. Create the vec128 register builtin type
14572         structure.
14573         (build_builtin_type_vec128): New function.
14574         (_initialize_gdbtypes): Register builtin_type_v16qi and
14575         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14576         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14577         AltiVec register to new builtin type.
14578
14579 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14580
14581         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14582         to make_cv_type.
14583
14584 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14585
14586         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14587         CLEAN_UP_REGISTER_VALUE.
14588         * regcache.c (supply_register): Update only call.
14589
14590 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14591
14592         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14593         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14594         a29k-*-vxworks* targets as obsolete.
14595
14596 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14597
14598         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14599         until we can resolve portability issues.
14600         * gregset.h: Remove references to fpxregs.
14601         * gcore.c (gcore_command): Initialize note_sec to NULL.
14602
14603 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14604
14605         * signals.c (target_signal_to_name): Rewrite.  Only use
14606         signals[].name when in bounds and non-NULL.
14607
14608 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14609
14610         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14611         * signals.c (target_signal_to_name): Verify that SIG is within the
14612         bounds of the signals array.
14613
14614 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14615
14616         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14617
14618 2002-01-13  Keith Seitz  <keiths@redhat.com>
14619
14620         * stack.c (print_frame_info_base): Print the frame's pc
14621         only if when print_frame_info_listing_hook is not defined.
14622
14623 2002-01-13  Keith Seitz  <keiths@redhat.com>
14624
14625         * varobj.c (varobj_set_value): Make sure that there were no
14626         errors evaluating the object before attempting to set its
14627         value.
14628         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14629         so this offset adjustment is no longer necessary.
14630         (create_child): Don't set the error flag if the child is
14631         a CPLUS_FAKE_CHILD.
14632         (value_of_child): If value_fetch_lazy fails, return NULL
14633         so that callers will be notified that an error occurred.
14634         (c_value_of_variable): Delay check of variable's validity
14635         until later. We actually want all structs and unions to have
14636         the value "{...}".
14637         Do not return "???" for variables which could not be evaluated.
14638         This error condition must be returned to the caller so that it
14639         can get the error condition from gdb.
14640         (cplus_name_of_child): Adjust index for vptr before figuring
14641         out the name of the child.
14642         (cplus_value_of_child): If a child's (real) parent is not valid,
14643         don't even bother trying to give a value for it. Just return
14644         an error. Change all instances in this function.
14645         (cplus_type_of_child): If our parent is one of the "fake"
14646         parents, we need to get at the type of the real parent, and
14647         derive the child's true type using this information.
14648
14649 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14650
14651         From 2002-01-09 John Marshall <johnm@falch.net>:
14652         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14653         sources.redhat.com, and tweak some related URLs which had
14654         suffered from linkrot.
14655
14656 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14657
14658         From Jeff law:
14659         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14660         structures passed in registers.
14661
14662 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14663
14664         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14665         white space which prevented compilation.  Reported by DSK
14666         <dsk@student.unsw.edu.au>.
14667
14668 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14669
14670         * symfile.c (build_section_addr_info_from_section_tab):
14671         Use bfd access method instead of manipulating bfd directly.
14672         (syms_from_objfile): Ditto.
14673         (simple_overlay_update_1): Ditto.
14674         (simple_overlay_update): Ditto.
14675         (generic_load): Ditto.
14676         (overlay_unmapped_address): FIXME comment, bfd access methods.
14677         (sections_overlap): FIXME comment, bfd access methods.
14678         (pc_in_mapped_range): FIXME comment, bfd access methods.
14679         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14680         (section_is_mapped): FIXME comment, bfd access methods.
14681         (section_is_overlay): FIXME comment, bfd access methods.
14682
14683         * symfile.c (generic_load): Whitespace and long line cleanups.
14684         Remove duplicate variable, change several local variables to
14685         more appropriate data types.
14686         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14687
14688 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14689
14690         From Peter Schauer:
14691         * language.c (longest_local_hex_string_custom): Use phex_nz to
14692         convert NUM to a hex string.
14693
14694 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14695
14696         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14697         the function.
14698         Update Copyright year.
14699
14700 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14701
14702         * language.c (longest_raw_hex_string): Delete unused function.
14703
14704 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14705
14706         * MAINTAINERS (write-after-approval): Add myself.
14707         * dwarf2read.c (read_tag_string_type): Handling of
14708         DW_AT_byte_size.
14709         (read_tag_string_type): FORTRAN fix to prevent propagation of
14710         first string size.
14711         (set_cu_language): Handling of DW_LANG_Fortran95
14712
14713 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14714
14715         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14716         GETPID(inferior_ptid).
14717         (store_inferior_registers): Likewise.
14718
14719 2002-01-10  Jason Merrill  <jason@redhat.com>
14720
14721         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14722         Fix DW_OP_minus.
14723
14724 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14725
14726         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14727         and bfd/elf32-sh-nbsd.c.
14728
14729 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14730
14731         * NEWS: Mention --pid and corefile/proc-id behavior change.
14732
14733         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14734         * gcore.c: Include cli/cli-decode.h instead of command.h.
14735
14736         * main.c (captured_main): Add new command line option "--pid".
14737         If the second command line argument (following the symbol-file)
14738         begins with a digit, try to attach to it before trying to open
14739         it as a corefile.
14740         (print_gdb_help): Document the "--pid" argument.
14741
14742 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14743
14744         * completer.c (command_completer): New function.
14745
14746         * completer.h <command_completer>: Add prototype.
14747
14748         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14749         completer for the "help" command.
14750
14751 2002-01-09  Jason Merrill  <jason@redhat.com>
14752
14753         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14754
14755 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14756
14757         * i386-linux-nat.c (fill_fpxregset): Make global.
14758         (store_fpxregset): Ditto.
14759
14760         * gregset.h (gdb_fpxregset_t): Define.
14761         (supply_fpxregset): Prototype.
14762         (fill_fpxregset): Prototype.
14763
14764         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14765
14766 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14767
14768         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14769         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14770         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14771
14772 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14773
14774         * MAINTAINERS: Update target maintainer rules so that any
14775         Maintainer can approve a tested patch for a maintenance-only
14776         target.
14777
14778 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14779
14780         * MAINTAINERS (write-after-approval): Add myself.
14781
14782         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14783         IN_SIGTRAMP.
14784
14785 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14786
14787         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14788         real name of the executable, rather than the /proc name.
14789
14790 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14791
14792         Implement a "generate-core-file" command in gdb, save target state.
14793         * gcore.c: New file.  Implement new command 'generate-core-file'.
14794         Save a corefile image of the current state of the inferior.
14795         * linux-proc.c: Add linux-specific code for saving corefiles.
14796         * target.h (struct target_ops): Add new target vectors for saving
14797         corefiles; to_find_memory_regions and to_make_corefile_notes.
14798         (target_find_memory_regions): New macro.
14799         (target_make_corefile_notes): New macro.
14800         * target.c (update_current_target): Inherit new target methods.
14801         (dummy_find_memory_regions): New place-holder method.
14802         (dummy_make_corefile_notes): New place-holder method.
14803         (init_dummy_target): Initialize new dummy target vectors.
14804         * exec.c (exec_set_find_memory_regions): New function.
14805         Allow the exec_ops vector for memory regions to be taken over.
14806         (exec_make_note_section): New function, target vector method.
14807         * defs.h (exec_set_find_memory_regions): Export prototype.
14808         * procfs.c (proc_find_memory_regions): New function, corefile method.
14809         (procfs_make_note_section): New function, corefile method.
14810         (init_procfs_ops): Set new target vector pointers.
14811         (find_memory_regions_callback): New function.
14812         (procfs_do_thread_registers): New function.
14813         (procfs_corefile_thread_callback): New function.
14814         * sol-thread.c (sol_find_memory_regions): New function.
14815         (sol_make_note_section): New function.
14816         (init_sol_thread_ops): Initialize new target vectors.
14817         * inftarg.c (inftarg_set_find_memory_regions): New function.
14818         Allow to_find_memory_regions vector to be taken over.
14819         (inftarg_set_make_corefile_notes): New function.
14820         Allow to_make_corefile_notes vector to be taken over.
14821         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14822         interface layer if not target_has_execution (may be a corefile).
14823         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14824         * config/sparc/sun4sol2.mh: Ditto.
14825         * config/alpha/alpha-linux.mh: Ditto.
14826         * config/arm/linux.mh: Ditto.
14827         * config/i386/x86-64linux.mh: Ditto.
14828         * config/ia64/linux.mh: Ditto.
14829         * config/m68k/linux.mh: Ditto.
14830         * config/mips/linux.mh: Ditto.
14831         * config/powerpc/linux.mh: Ditto.
14832         * config/sparc/linux.mh: Ditto.
14833
14834 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14835
14836         * arm-linux-nat.c: Remove references to regcache.c internal data
14837         (registers[] and register_valid[]).
14838
14839 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14840
14841         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14842         so that attaching to a pid will automatically read the process's
14843         symbol file and shlibs.
14844         * Makefile.in: Add rule for linux-proc.o.
14845         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14846         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14847         * config/arm/linux.mh: Ditto.
14848         * config/i386/linux.mh: Ditto.
14849         * config/i386/x86-64linux.mh: Ditto.
14850         * config/ia64/linux.mh: Ditto.
14851         * config/m68k/linux.mh: Ditto.
14852         * config/mips/linux.mh: Ditto.
14853         * config/powerpc/linux.mh: Ditto.
14854         * config/sparc/linux.mh: Ditto.
14855
14856 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14857
14858         * win32-nat.c: Add i386-tdep.h dependency.
14859
14860 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14861
14862         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14863         instead of bfd_get_arch_size.  Don't bail out just because
14864         there's no exec_bfd.
14865
14866         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14867         * p-valprint.c (pascal_object_print_value): Ditto.
14868         * somread.c (som_symtab_read): Ditto.
14869         * symfile.c (simple_free_overlay_region_table): Ditto.
14870         * valops.c (value_assign): Ditto.
14871
14872         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14873         use tilde_expand and strerror for opening save-tracepoints file.
14874
14875         * thread-db.c (thread_db_new_objfile): Indendation fix.
14876
14877         * infptrace.c (GDB_MAX_ALLOCA): New define.
14878         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14879         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14880         can be overridden with whatever value is appropriate to the host).
14881         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14882         alloca to allocate potentially large buffer.
14883         * rs6000-nat.c (child_xfer_memory): Ditto.
14884         * symm-nat.c (child_xfer_memory): Ditto.
14885         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14886
14887 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14888
14889         From Nick Clifton  <nickc@redhat.com>
14890         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14891
14892 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14893
14894         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14895         Don't use exec_bfd if it's NULL.
14896
14897 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14898
14899         * valops.c (value_arg_coerce): Fix formatting.
14900
14901 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14902
14903         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14904         * gnu-nat.c: Ditto.
14905
14906 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14907
14908         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14909         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14910         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14911         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14912         z8k-coff have not been multi-arched.  Update z8k-coff build
14913         status.
14914
14915 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14916
14917         * MAINTAINERS: Mark a29k target as obsolete.
14918         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14919         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14920         comments.
14921         * NEWS: Note that a29k targets are obsolete.
14922         * a29k-tdep.c: Mark as obsolete.
14923         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14924         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14925         a29k-*-vxworks* targets as obsolete.
14926         * remote-adapt.c: Obsolete.
14927         * remote-eb.c: Obsolete.
14928         * remote-mm.c: Obsolete.
14929         * remote-udi.c: Obsolete.
14930         * config/a29k/a29k-udi.mt: Obsolete.
14931         * config/a29k/a29k.mt: Obsolete.
14932         * config/a29k/tm-a29k.h: Obsolete.
14933         * config/a29k/tm-vx29k.h: Obsolete.
14934         * config/a29k/vx29k.mt: Obsolete.
14935
14936 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14937
14938         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14939         with BFD_ENDIAN_BIG.
14940
14941 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14942
14943         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14944         * configure, config.in: Re-generate.
14945         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14946         * defs.h: Do not include <endian.h>.
14947
14948 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14949
14950         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14951         * config.in: Regenerate.
14952         * configure.in: Update copyright years.
14953         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14954         * configure: Regenerate.
14955         * i386bsd-nat.c: Update copyright years.
14956         (fill_gregset): Use regcache_collect.
14957         (fetch_inferior_registers): Only fetch integer registers
14958         if requested to do so.  Add support for XMM registers
14959         using PT_GETXMMREGS.
14960         (store_inferior_registers): Only store integer registers
14961         if requested to do so.  Add support for XMM registers
14962         using PT_SETXMMREGS.
14963         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14964         (store_inferior_registers): Remove.
14965         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14966         (fetch_elfcore_registers): New function.
14967         (i386nbsd_elfcore_fns): New.
14968         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14969         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14970         i386bsd-nat.o.
14971         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14972         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14973         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14974         * config/i386/tm-nbsd.h: Update copyright years.
14975         (HAVE_SSE_REGS): Define.
14976         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14977         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14978         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14979         (SIGCONTEXT_PC_OFFSET): Remove.
14980         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14981
14982 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14983
14984         * configure.tgt: Remove powerpc-*-macos* target.
14985         * config/m68k/xm-mpw.h: Delete file.
14986         * config/xm-mpw.h: Delete file.
14987         * ser-mac.c: Delete file.
14988         * mpw-make.sed: Delete file.
14989         * mpw-config.in: Delete file.
14990         * mac-xdep.c: Delete file.
14991         * mac-gdb.r: Delete file.
14992         * mac-defs.h: Delete file.
14993         * mac-nat.c: Delete file.
14994         * config/powerpc/macos.mh: Delete file.
14995         * config/powerpc/macos.mt: Delete file.
14996         * config/powerpc/nm-macos.h: Delete file.
14997         * config/powerpc/tm-macos.h: Delete file.
14998         * source.c (openp, open_source_file): Remove obsolete code.
14999         * top.c (gdb_readline): Ditto.
15000         * utils.c (query): Ditto.
15001         * event-top.c (display_gdb_prompt): Ditto.
15002         * Makefile.in (ser-mac.o): Delete obsolete target.
15003         * NEWS: Update.
15004
15005 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15006
15007         * defs.h (BIG_ENDIAN): Delete macro definition.
15008         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15009         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15010         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15011         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15012         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15013         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15014         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15015         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15016         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15017         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15018         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15019         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15020         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15021         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15022         * gdbarch.c: Re-generate.
15023
15024 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15025
15026         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15027         for core files.
15028
15029 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15030
15031         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15032
15033 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15034
15035         * value.h (value_ptr): Delete typedef.
15036
15037 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15038
15039         * i386nbsd-nat.c: Update copyright years.
15040         Include i386-tdep.h.
15041
15042 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15043
15044         * stabsread.c: Update copyright years.
15045
15046         From Debashis Mahata <debashis.mahata@wipro.com>:
15047         (read_struct_fields): Deal with Sun C compiler erroneous stab
15048         output for structs and unions.
15049         Fix PR gdb/269.
15050
15051 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15052
15053         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15054         prototype.
15055
15056 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15057
15058         * cp-abi.c: Fix whitespace.
15059         (baseclass_offset): New wrapper function.
15060         * cp-abi.h (baseclass_offset): Add prototype.
15061         (struct cp_abi_ops): Add baseclass_offset pointer.
15062
15063         * valops.c (vb_match): Move to...
15064         * gnu-v2-abi.c (vb_match): here.
15065         * valops.c (baseclass_offset): Move to...
15066         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15067
15068         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15069
15070         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15071         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15072         * hpacc-abi.c (init_hpacc_ops): Likewise.
15073
15074 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15075
15076         * valops.c (find_overload_match): Accept obj as a
15077         reference parameter.  Update it before returning.
15078         * value.h (find_overload_match): Update prototype.
15079         * eval.c (evaluate_subexp_standard): Pass object to
15080         find_overload_match by reference.
15081
15082 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15083
15084         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15085         register attribute from value declarations.
15086         * valops.c: Ditto.
15087         * value.h: Ditto.
15088         * scm-lang.c (scm_lookup_name): Ditto.
15089
15090 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15091
15092         Abstract the functionality of iterating over mapped memory
15093         regions into a general purpose iterator function.
15094         * procfs.c (iterate_over_mappings): New function, general purpose
15095         iterator for memory sections.
15096         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15097         (solib_mappings_callback): New function, callback for above.
15098         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15099         (info_mappings_callback): New function, callback for above.
15100
15101         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15102
15103 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15104
15105         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15106         * i386-tdep.c: Include "elf-bfd.h".
15107         (process_note_abi_tag_sections): New function.
15108         (i386_gdbarch_init): Add code to recognize various OS/ABI
15109         combinations.
15110
15111         * maint.c (_initialize_maint_cmds): Add missing \ in
15112         string-literal.
15113
15114 For older changes see ChangeLog-2001
15115 \f
15116 Local Variables:
15117 mode: change-log
15118 left-margin: 8
15119 fill-column: 74
15120 version-control: never
15121 End: