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         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4         frame accessor methods.
5         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
7         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
8         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11         * z8k-tdep.c: Ditto.
12         
13 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14
15         * configure.in: Remove UI_OUT configuration code.
16         * ada-lang.c: Update assuming UI_OUT is always true.
17         * Makefile.in (UIOUT_CFLAGS): Remove.
18         * configure: Regenerated.
19         * TODO: Remove blurb about elimination of -DUI_OUT.
20
21         * configure.in: Move code that provides the --enable-gdbcli,
22         --enable-gdbmi options right before the code that handles the
23         --enable-tui option.  Polish a bit.
24         * configure: Regenerated.
25
26         * configure.in: Rewrite check for GNU regex and the
27         --without-included regex option, and move it into the "Checks for
28         library functions" section.  This makes us use the system regex
29         again by default on systems with version 2 of the GNU C library.
30         This was apparently broken.
31         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
32         * acconfig.h (USE_INCLUDED_REGEX): Remove.
33         * config.in, configure: Regenerated.
34
35         * configure.in: Move code that provides the --enable-tui option
36         before the "Checks for libraries" section.  Polish the code
37         somewhat and set need_curses to yes if we build the TUI.  Rewrite
38         code that looks for a library providing termcap functionality to
39         match more closely what's done in the Readline library, and move
40         it into to the "Checks for libraries" section.
41         * configure: Regenerated.
42         * Makefile.in (TERMCAP): Remove variable.
43         * config/i386/go32.mh (TERMCAP): Remove variable.
44
45 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
46
47         * MAINTAINERS: Mention gdb_mbuild.sh.
48         * gdb_mbuild.sh: Rewrite.
49
50 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
51
52         * configure.in: Fix typo in last change.
53         * config.in, configure: Regenerated.
54
55 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
56
57         * valarith.c (value_binop): Delete obsolete code and comments.
58         * configure.host: Ditto.
59         * buildsym.h (make_blockvector): Ditto.
60         * buildsym.c (make_blockvector): Ditto.
61         * defs.h (enum language): Ditto.
62         (chill_demangle): Ditto.
63         * elfread.c (elf_symtab_read): Ditto.
64         * dwarfread.c (CHILL_PRODUCER): Ditto.
65         (set_cu_language): Ditto.
66         (handle_producer): Ditto.
67         * expprint.c (print_subexp): Ditto.
68         * gdbtypes.c (chill_varying_type): Ditto.
69         * gdbtypes.h (builtin_type_chill_bool): Ditto.
70         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
71         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
72         (chill_varying_type): Ditto.
73         * language.h (_LANG_chill): Ditto.
74         * language.c (binop_result_type, integral_type): Ditto.
75         (character_type, string_type, structured_type): Ditto.
76         (lang_bool_type, binop_type_check): Ditto.
77         * stabsread.h (os9k_stabs): Ditto.
78         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
79         (define_symbol, read_type, read_struct_fields): Ditto.
80         (read_array_type, read_enum_type, read_huge_number): Ditto.
81         (read_range_type, start_stabs): Ditto.
82         * symfile.c (init_filename_language_table): Ditto.
83         (add_psymbol_with_dem_name_to_list): Ditto.
84         * symtab.c (symbol_init_language_specific): Ditto.
85         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
86         * symtab.h (struct general_symbol_info): Ditto.
87         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
88         * typeprint.c (typedef_print): Ditto.
89         * utils.c (fprintf_symbol_filtered): Ditto.
90         * valops.c (value_cast, search_struct_field, value_slice): Delete
91         obsolete code.
92         (varying_to_slice): Delete function.
93         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
94         (varying_to_slice): Delete declaration.
95         * MAINTAINERS: Update.
96
97 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
98
99         * configure.in: Reorganize "Checks for library functions section"
100         a bit.  Remove check for `btowc' and `isascii' functions.
101         * configure: Regenerated.
102
103         * acconfig.h (_MSE_INT_H): Remove.
104         * configure.in: Create "Checks for header files" section, and move
105         appropriate tests there.  Don't check for objlist.h, wchar.h,
106         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
107         misdetection fix.  Also add "Checks for types", "Checks for
108         compiler characteristics" and "Checks for library functions"
109         sections.
110         * config.in, configure: Regenerated.
111
112         * configure.in: Create "Checks for programs" section, and move
113         appropriate tests there.
114
115 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
116
117         * configure.in: Create "Checks for libraries" section, and move
118         appropriate tests there.  Cleanup check for wctype in libw.  Use
119         AC_SEARCH_LIBS to see whether we need libsocket.
120         * configure: Regenerated.
121
122 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
123
124         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
125         * config.in, configure: Regenerated.
126
127 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
128
129         * gdb_dirent.h: Cleanup and update code to match the example in
130         the Autoconf manual.
131         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
132         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
133         * configure: Regenerated.
134
135 2002-12-30  Adam Fedor  <fedor@gnu.org>
136
137         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
138         (yylex): Initialize c to avoid uninitialized warning.
139
140 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
141
142         * doc/fdl.texi: Revert the last change.
143
144 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
145
146         * tracepoint.c (ISATTY): Removed.
147
148 2002-12-26  J. Brobecker  <brobecker@gnat.com>
149
150         Continuing work to convert the hppa targets to multiarch partil.
151
152         * hppa-tdep.c: Add some missing forward declarations.
153         (frameless_function_invocation): Prefix the function name
154         by "hppa_" to avoid polluting the namespace.  Update all calls
155         to use the new function name.
156         (saved_pc_after_call): Ditto.
157         (init_extra_frame_info): Ditto.
158         (frame_chain): Ditto.
159         (push_dummy_frame): Ditto.
160         (target_read_pc): Ditto.
161         (target_write_pc): Ditto.
162         (in_solib_call_trampoline): Ditto.
163         (in_solib_return_trampoline): Ditto.
164         (skip_trampoline_code): Ditto.
165         (hppa_read_fp): New function, renamed from target_read_fp.
166         (hppa_target_read_fp): New function, using hppa_read_fp.
167         This function conforms to the function profile for the
168         READ_FP gdbarch method.
169         (hppa_extract_struct_value_address): New function, extracted
170         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
171         macro.
172         (hppa_frame_num_args): New function.
173         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
174
175         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
176         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
177         for the switch to multiarch partial.
178         Update some of the macros definitions to match some changes
179         described above in the name of the function they are calling.
180         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
181         not be straightforward to convert. Do now wrap it inside
182         "#if !... #endif" to remember that this macro has still not
183         been taken care of.
184         (FIX_CALL_DUMMY): Likewise.
185
186 2002-12-26  J. Brobecker  <brobecker@gnat.com>
187
188         Continuing work to convert the hppa targets to multiarch partial.
189
190         * hppa-tdep.c (hppa_register_raw_size): New function replacing
191         the body of macro REGISTER_RAW_SIZE.
192         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
193         config/pa/tm-hppah.h. These functions will be used to initialize
194         the gdbarch structure.
195         (hppa_hpux_pc_in_sigtramp): New function.
196         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
197         (hppa_hpux_frame_base_before_sigtramp): New function.
198         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
199         Add gdbcore.h #include.
200         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
201         of this gdbarch-eligible macro to a call to the new associated
202         function.
203         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
204         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
205         into a call to the new associated function.
206         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
207         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
208         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
209
210 2002-12-24  David Carlton  <carlton@math.stanford.edu>
211
212         * config/sparc/tm-sparc.h: Delete duplicate definition of
213         DEPRECATED_PC_IN_CALL_DUMMY.
214
215 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
216
217         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
218         $(gdb_assert_h).
219         * configure.tgt: Recognize mips64*-*-linux*.
220         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
221         (supply_32_bit_reg): New function.
222         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
223         (fill_gregset): Use regcache_collect() instead of
224         deprecated_registers[].
225         (register_addr): Change name to mips_linux_register_addr().
226         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
227         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
228         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
229         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
230         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
231         (MIPS64_LINUX_JB_PC): New defines.
232         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
233         (mips64_elf_fpregset_t): New typedefs.
234         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
235         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
236         (mips64_linux_register_addr, set_mips_linux_register_addr)
237         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
238         (init_register_addr_data)
239         New functions.
240         (fetch_core_registers): Add support for core file formats with 64-bit
241         registers.
242         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
243         (register_addr_data): New static global variable.
244         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
245         gdbarch_register_osabi() for each MIPS machine.
246         * config/mips/linux64.mt: New file.
247         * config/mips/tm-linux64.h: New file.
248
249 2002-12-23  Adam Fedor  <fedor@gnu.org>
250
251         * maint.c (maintenance_demangle): Add switch to demangle
252         ObjC language symbols as well.
253
254 2002-12-23  Adam Fedor  <fedor@gnu.org>
255
256         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
257         last argument from complaint function call.
258
259 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
260
261         * exec.c (print_section_info): Add FIXME comments regarding format
262         string choices.
263
264 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
265
266         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
267         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
268
269 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
270
271         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
272
273 2002-12-23  David Carlton  <carlton@math.stanford.edu>
274
275         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
276         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
277         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
278         information associated to a minsym, not lookup_symbol.
279
280 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
281
282         * x86-64-tdep.h (x86_64_init_abi): New prototype.
283         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
284         (x86_64_init_abi): Make non-static.  Set number of pseudo
285         registers to 0.
286         (x86_64_gdbarch_init): Remove function.
287         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
288         Remove code dealing with dissambly.
289         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
290         (_initialize_x86_64_linux_tdep): New function.
291         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
292         i386-tdep.o.
293
294 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
295
296         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
297         (struct gdb_osabi_handler): Remove member `arch'.  Add member
298         `arch_info'.
299         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
300         construct a `struct bfd_arch_info' and store it in the `struct
301         gdb_osabi_handler' that is created.
302         (gdbarch_init_osabi): Check for compatibility based on machine
303         type and architecture.
304         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
305         comment.
306         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
307         second argument in call to gdbarch_register_osabi.
308         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
309         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
310         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
311         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
312         * arm-tdep.c (_initialize_arm_tdep): Likewise.
313         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
314         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
315         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
316         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
317         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
318         * i386-tdep.c (_initialize_i386_tdep): Likewise.
319         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
320         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
321         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
322         _initialize_i386bsd_tdep and updated likewise.
323         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
324         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
325         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
326         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
327         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
328         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
329         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
330         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
331         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
332         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
333
334 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
335
336         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
337         DT_MIPS_RLD_MAP case for 64-bit targets.
338
339 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
340
341         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
342         ``temp_saved_regs'', not the pointer or other storage contiguous
343         to this pointer.
344
345 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
346
347         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
348         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
349         (mips_linux_get_longjmp_target): Delete declarations.
350         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
351         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
352         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
353         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
354         (mips_linux_get_longjmp_target)
355         (mips_linux_svr4_fetch_link_map_offsets): Make static.
356         (mips_linux_init_abi): New function.
357         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
358
359 2002-12-19  Keith Seitz  <keiths@redhat.com>
360
361         patch committed by Elena Zannoni  <ezannoni@redhat.com>
362         * thread.c (do_captured_list_thread_ids): Call prune_threads and
363         target_find_new_threads. Fix for PR mi/669.
364
365 2002-12-19  David Carlton  <carlton@math.stanford.edu>
366
367         * linespec.c (decode_line_1): Move code into decode_all_digits.
368         (decode_all_digits): New function.
369
370 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
371
372         * exec.c (print_section_info): Select a format string to use with
373         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
374
375 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
376
377         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
378         deprecated_update_current_frame_pc_hack.
379         (deprecated_update_frame_base_hack): New function.
380         * frame.h (deprecated_update_frame_pc_hack): Replace
381         (deprecated_update_frame_base_hack): Declare.
382         * infrun.c (normal_stop): Update.
383
384 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
385
386         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
387         frame_extra_info_zalloc.
388         (rs6000_frame_args_address): Use get_frame_extra_info.
389         (frame_get_saved_regs): Use get_frame_saved_regs.
390         (frame_initial_stack_address): Use get_frame_saved_regs and
391         get_frame_extra_info.
392         (frame_initial_stack_address): Use get_frame_extra_info.
393
394 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
395
396         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
397         array size.
398         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
399         checks for r3900_regnames[].
400
401 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
402
403         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
404         All uses changed
405         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
406
407 2002-12-17  David Carlton  <carlton@math.stanford.edu>
408
409         * symtab.c (lookup_partial_symbol): Don't search past the end of
410         the partial symbols.
411
412 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
413
414         * stack.c (frame_info): Use get_frame_saved_regs.
415         * breakpoint.c (until_break_command): Use get_frame_pc.
416
417 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
418
419         * buildsym.c (block_end_complaint, anon_block_end_complaint)
420         (innerblock_complaint, innerblock_anon_complaint)
421         (blockvector_complaint): Delete deprecated complaint structs.
422         (finish_block, make_blockvector, end_symtab): Replace calls
423         to complain() with calls to complaint().
424         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
425         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
426         (unexpected_type_complaint, bad_sclass_complaint)
427         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
428         Delete deprecated complaint structs.
429         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
430         Replace calls to complain() with calls to complaint().
431         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
432         (unknown_symtype_complaint, unknown_symchar_complaint)
433         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
434         (lbrac_mismatch_complaint, repeated_header_complaint)
435         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
436         Delete deprecated complaint structs.
437         (unknown_symtype_complaint, lbrac_mismatch_complaint)
438         (repeated_header_complaint)
439         (function_outside_compiliation_unit_complaint): New functions.
440         (add_old_header_file, find_corresponding_bincl_psymtab)
441         (set_namestring, find_stab_function_addr, read_dbx_symtab)
442         (process_one_symbol): Replace calls to complain() with, possibly
443         indirect, calls to complaint().
444         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
445         (unknown_attribute_form, unknown_attribute_length)
446         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
447         (const_ignored, botched_modified_type, op_deref2, op_deref4)
448         (basereg_not_handled, dup_user_type_allocation)
449         (dup_user_type_definition, missing_tag, bad_array_element_type)
450         (subscript_data_items, unhandled_array_subscript_format)
451         (unknown_array_subscript_format, not_row_major)
452         (missing_at_name): Delete deprecated complaint structs.
453         (bad_die_ref_complaint, unknown_attribute_form_complaint)
454         (dup_user_type_definition_complaint)
455         (bad_array_element_type_complaint): New functions.
456         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
457         (decode_subscript_data_item, dwarf_read_array_type)
458         (read_tag_string_type, read_subroutine_type, read_func_scope)
459         (locval, scan_partial_symbols, decode_modified_type)
460         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
461         (attribute_size): Replace calls to complain() with, possibly
462         indirect, calls to complaint().
463         * elfread.c (section_info_complaint, section_info_dup_complaint)
464         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
465         Delete deprecated complaint structs.
466         (elf_symtab_read, elfstab_offset_sections): Replace calls to
467         complain() with calls to complaint().
468         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
469         struct.
470         (stub_noname_complaint): New function.
471         (check_typedef, add_mangled_type): Replace calls to complain()
472         with calls to complaint().
473         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
474         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
475         (hpread_unhandled_type_complaint, hpread_struct_complaint)
476         (hpread_array_complaint, hpread_type_lookup_complaint)
477         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
478         (hpread_unhandled_common_complaint)
479         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
480         struct definitions and declarations.
481         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
482         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
483         Replace calls to complain() with, possibly indirect, calls to
484         complaint().
485         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
486         Likewise.
487         * mdebugread.c (bad_file_number_complaint, index_complaint)
488         (aux_index_complaint, block_index_complaint)
489         (unknown_ext_complaint, unknown_sym_complaint)
490         (unknown_st_complaint, block_overflow_complaint)
491         (basic_type_complaint, unknown_type_qual_complaint)
492         (array_index_type_complaint, bad_tag_guess_complaint)
493         (block_member_complaint, stEnd_complaint)
494         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
495         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
496         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
497         (bad_continued_complaint, bad_rfd_entry_complaint)
498         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
499         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
500         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
501         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
502         complaint structs.
503         (index_complaint, unknown_ext_complaint, basic_type_complaint)
504         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
505         (unexpected_type_code_complaint)
506         (function_outside_compilation_unit_complaint): New functions.
507         (parse_symbol, parse_type, upgrade_type, parse_procedure)
508         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
509         Replace calls to complain() with, possibly indirect calls to
510         complaint().
511         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
512         Delete deprecated complaint structs.
513         (lookup__objc_class, lookup_child_selector): Replace complain()
514         with complaint().
515         * remote-vx.c (cant_contact_target): Delete deprecated complaint
516         struct.
517         (vx_lookup_symbol): Replace complain() with complaint().
518         * stabsread.c (invalid_cpp_abbrev_complaint)
519         (invalid_cpp_type_complaint, member_fn_complaint)
520         (const_vol_complaint, error_type_complaint)
521         (invalid_member_complaint, range_type_base_complaint)
522         (reg_value_complaint, vtbl_notfound_complaint)
523         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
524         (unresolved_sym_chain_complaint, stabs_general_complaint)
525         (lrs_general_complaint, multiply_defined_struct): Delete
526         deprecated complaint structs.
527         (invalid_cpp_abbrev_complaint, ref_value_complaint)
528         (stabs_general_complaint, lrs_general_complaint)
529         (msg_unknown_complaint): New functions.
530         (dbx_lookup_type, read_cfront_baseclasses)
531         (read_cfront_member_functions, resolve_symbol_reference)
532         (define_symbol, resolve_live_range, add_live_range, read_type)
533         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
534         (read_one_struct_field, read_baseclasses, read_tilde_fields)
535         (read_cfront_static_fields, attach_fields_to_type)
536         (complain_about_struct_wipeout, read_range_type)
537         (common_block_start, common_block_end, cleanup_undefined_types)
538         (scan_file_globals): Replace complain() with complaint().
539         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
540         Delete deprecated complaint struct declarations.
541         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
542         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
543         (bf_not_found_complaint, ef_complaint, eb_complaint)
544         (function_outside_compilation_unit_complaint): New functions.
545         (record_include_begin, record_include_end, enter_line_range)
546         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
547         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
548         complain() with complaint().
549
550 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
551
552         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
553         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
554         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
555         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
556         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
557         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
558         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
559         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
560         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
561         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
562         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
563         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
564         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
565         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
566         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
567         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
568         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
569         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
570         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
571         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
572         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
573         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
574         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
575         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
576         * config/m88k/xm-dgux.h: Delete.
577         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
578         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
579         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
580         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
581         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
582         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
583         * ch-valprint.c: Delete.
584         
585 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
586
587         * infrun.c (handle_inferior_event): Rearrange code to resume if
588         no catchpoint triggers for an event.
589
590 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
591
592         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
593         and TARGET_WAITKIND_VFORKED cases.
594
595 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
596
597         * infrun.c (handle_inferior_event): Assume that catchpoints
598         are not affected by DECR_PC_AFTER_BREAK.
599
600 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
601
602         * target.c (update_current_target): Don't inherit DONT_USE.
603         * target.h (struct target_ops): Remove DONT_USE.
604         (target_next): Remove macro.
605
606 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
607
608         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
609
610 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
611
612         * arm-tdep.c (convert_from_extended): New argument to hold the
613         type of floating point result we want to convert to.  Make input 
614         argument const.  Fix all callers.
615         (convert_to_extended): Similarly.
616         (arm_extract_return_value): Now takes a regcache argument.  Change
617         code to use regcache accessor functions.  Correctly extract 
618         smaller-than-word results on big-endian machines.
619         (arm_store_return_value): Now takes a regcache argument.  Change
620         code to use regcache accessor functions.  Correctly zero/sign extend
621         smaller than word results before storing into r0.
622         (arm_gdbarch_init): Register new-style extract_return_value and
623         store_return_value functions.
624
625 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
626
627         * thread-db.c (thread_from_lwp): Uniquify error msg.
628         (lwp_from_thread): Ditto.
629         (check_event): Ditto.
630         (find_new_threads_callback): Ditto.
631         (thread_db_pid_to_str): Ditto.
632
633 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
634
635         * frame.h (get_frame_saved_regs): Declare.
636         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
637         pointer.
638         * frame.c (get_frame_saved_regs): New function.
639         (frame_saved_regs_zalloc): Return the allocated saved_regs.
640
641 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
642
643         * frame.c (deprecated_update_current_frame_pc_hack): New
644         function.
645         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
646         * infrun.c (normal_stop): Use said function instead of directly
647         modifying the frame's PC.
648         
649 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
650
651         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
652
653 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
654
655         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
656         config/mips/tm-irix6.h (NUM_REGS): Delete.
657         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
658         (temp_saved_regs): Declare as a pointer rather than an array.
659         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
660         that ``temp_saved_regs'' has storage allocated to it and that
661         it's the correct size.
662
663 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
664
665         * defs.h (init_last_source_visited): New prototype.
666         (add_path): Ditto.
667         * source.c (add_path): New function that adds to a specified path.
668         (mod_path): Change to call add_path.
669         (init_last_source_visited): New function to allow interfaces to
670         initialize static variable: last_source_visited.  Part of fix
671         for PR gdb/741.
672         * Makefile.in: Add support for mi/mi-cmd-env.c.
673
674 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
675
676         * frame.h (frame_id_unwind): Declare.
677         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
678         id_unwind_cache.
679         (frame_id_unwind_ftype): Declare.
680         * frame.c (frame_id_unwind): New function.
681         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
682         (create_new_frame, get_prev_frame): Pass id_unwind to
683         set_unwind_by_pc.
684         (frame_saved_regs_id_unwind): New function.
685         (frame_saved_regs_id_unwind): New function.
686         * dummy-frame.c (dummy_frame_id_unwind): New function.
687         (struct dummy_frame): Add field id.
688         (generic_push_dummy_frame): Initialize `id'.
689         * dummy-frame.h (dummy_frame_id_unwind): Declare.
690
691 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
692
693         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
694         pass that to set_momentary_breakpoint.  Move comments to where they
695         belong.
696         * frame.h (set_current_frame): Delete declaration.
697         * frame.c (set_current_frame): Delete function.
698
699 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
700
701         * frame.c (frame_extra_info_zalloc): New function.
702         * frame.h (frame_extra_info_zalloc): Declare.
703
704 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
705
706         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
707         in the previous prototype change to set_momentary_breakpoint.
708
709 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
710
711         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
712         and saw_child_exec.
713         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
714         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
715         (stop_stepping): Remove outdated check for child vfork events.
716
717 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
718
719         * GDB 5.3 released from gdb_5_3-branch.
720
721 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
722
723         * corelow.c (init_core_ops): Delete references to to_require_attach
724         and to_require_detach.
725         * exec.c (init_exec_ops): Likewise.
726         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
727         hppa_require_detach directly.
728         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
729         * inftarg.c (child_detach): Remove.
730         (child_detach_from_process): Rename to child_detach, remove
731         after_fork argument.
732         (child_attach): Remove.
733         (child_attach_to_process): Rename to child_attach, remove after_fork
734         argument.
735         (init_child_ops): Delete references to to_require_attach
736         and to_require_detach.
737         * infttrace.c (hppa_require_attach): Update comment.
738         * target.c (cleanup_target, update_current_target)
739         (init_dummy_target, setup_target_debug): Delete references to
740         to_require_attach and to_require_detach.
741         (find_default_require_detach, find_default_require_attach)
742         (debug_to_require_attach, debug_to_require_detach): Remove
743         functions.
744         * target.h (struct target_ops): Remove to_require_attach
745         and to_require_detach.
746         (target_require_attach, target_require_detach): Delete macros.
747         (find_default_require_detach, find_default_require_attach): Delete
748         prototypes.
749         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
750
751 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
752
753         * frame.c (get_frame_extra_info): New function.
754         * frame.h (get_frame_extra_info): Declare.
755
756 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
757
758         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
759         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
760         with `struct frame_id'.
761         (set_longjmp_resume_breakpoint): Ditto.
762         * infrun.c (handle_inferior_event): Update.
763         * breakpoint.c (watch_command_1, until_break_command): Update.
764         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
765         (handle_inferior_event, step_over_function): Update.
766         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
767         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
768         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
769         * infcmd.c (finish_command, run_stack_dummy): Update.
770
771 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
772
773         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
774         (dwarf2_non_const_array_bound_ignored)
775         (dwarf2_missing_line_number_section)
776         (dwarf2_statement_list_fits_in_line_number_section)
777         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
778         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
779         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
780         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
781         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
782         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
783         (dwarf2_missing_member_fn_type_complaint)
784         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
785         (dwarf2_const_value_length_mismatch)
786         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
787         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
788         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
789         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
790         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
791         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
792         complaints using deprecated struct..
793         (dwarf2_non_const_array_bound_ignored_complaint)
794         (dwarf2_complex_location_expr_complaint)
795         (dwarf2_unsupported_at_frame_base_complaint)
796         (dwarf2_const_value_length_mismatch_complaint)
797         (dwarf2_macros_too_long_complaint)
798         (dwarf2_macro_malformed_definition_complaint)
799         (dwarf2_invalid_attrib_class_complaint): New functions.
800         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
801         (read_structure_scope, read_array_type, read_common_block)
802         (read_tag_pointer_type, read_base_type, read_partial_die)
803         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
804         (new_symbol, dwarf2_const_value, read_type_die)
805         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
806         (parse_macro_definition, dwarf_decode_macros): Replace calls to
807         complain() with, possibly indirect, calls to complaint().
808
809 2002-12-11  Andrew Cagney  <cagney@redhat.com>
810
811         * frame.c (deprecated_get_frame_saved_regs): Rename
812         get_frame_saved_regs.
813         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
814         * sparc-tdep.c: Update.
815         * hppa-tdep.c: Update.
816         * h8500-tdep.c: Update.
817
818 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
819
820         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
821         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
822         ``char *'' for return and parameter types.
823         * gdbarch.h, gdbarch.c: Regenerate.
824         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
825         return type from ``char *'' to ``const char *''.
826         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
827         const.
828
829 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
830
831         * i386-tdep.c: Include "dummy-frame.h".
832         (i386_frame_chain, i386_frame_saved_pc): Replace
833         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
834         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
835
836 2002-12-10  Andrew Cagney  <cagney@redhat.com>
837
838         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
839         Change to a function with predicate.
840         * gdbarch.h, gdbarch.c: Re-generate.
841         * frame.c (get_prev_frame): Update.  Test
842         DEPRECATED_INIT_FRAME_PC_P.
843         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
844         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
845         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
846         * alpha-tdep.c (alpha_gdbarch_init): Update.
847         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
848         * mips-tdep.c (mips_gdbarch_init): Update.
849         * i386-interix-tdep.c (i386_interix_init_abi): Update.
850         * arm-tdep.c: Update comments.
851         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
852         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
853         * frv-tdep.c (frv_gdbarch_init): Ditto.
854         * x86-64-tdep.c (x86_64_init_abi): Ditto.
855         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
856         * s390-tdep.c (s390_gdbarch_init): Ditto.
857         * v850-tdep.c (v850_gdbarch_init): Ditto.
858         * vax-tdep.c (vax_gdbarch_init): Ditto.
859         * sh-tdep.c (sh_gdbarch_init): Ditto.
860         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
861         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
862         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
863         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
864         * i386-tdep.c (i386_gdbarch_init): Ditto.
865         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
866         * cris-tdep.c (cris_gdbarch_init): Ditto.
867         * avr-tdep.c (avr_gdbarch_init): Ditto.
868         * arm-tdep.c (arm_gdbarch_init): Ditto.
869         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
870         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
871
872 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
873
874         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
875         CHILD_FOLLOW_FORK.
876         * hppah-nat.c (saved_vfork_pid): Add.
877         (child_post_follow_vfork): Remove.
878         (child_follow_fork): New function.
879         (child_wait): Call detach_breakpoints after receiving the child vfork.
880         Call child_resume directly instead of going through resume ().
881         Make sure we have the exec before reporting the vfork.
882         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
883         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
884         (follow_fork): New function.  Call target_follow_fork.
885         (follow_inferior_reset_breakpoints): New function broken out from
886         old follow_inferior_fork.
887         (resume): Remove hack to follow exec after vfork.
888         * inftarg.c (child_post_follow_vfork): Remove.
889         (child_follow_fork): New function.
890         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
891         * target.c (cleanup_target): Replace to_post_follow_vfork with
892         to_follow_fork.
893         (update_current_target): Likewise.
894         (setup_target_debug): Likewise.
895         (debug_to_post_follow_vfork): Remove.
896         (debug_to_follow_fork): New function.
897         * target.h (struct target_ops): Replace to_post_folow_vfork with
898         to_follow_fork.
899         (child_post_follow_vfork): Remove prototype.
900         (child_follow_fork): Add prototype.
901         (target_post_follow_vfork): Remove macro.
902         (target_follow_fork): Add macro.
903
904 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
905
906         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
907         (child_post_follow_vfork): Cancel pending exec event if we follow
908         the parent.
909         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
910         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
911         event at the following wait call if necessary.
912         * infrun.c (follow_vfork): Don't follow_exec here.
913         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
914         case about HP/UX 10.20.  Remove code pushed down to
915         hppah-nat.c:child_wait.
916         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
917         vfork_in_flight is set.
918
919 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
920
921         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
922         for the parent's fork event.
923         * infrun.c (handle_inferior_event): Only expect one fork event.
924         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
925         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
926
927 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
928
929         * PROBLEMS: Delete reference to PR gdb/725.
930         
931         * MAINTAINERS (gdb.c++): Add David Carlton.
932
933 2002-12-09  David Carlton  <carlton@math.stanford.edu>
934
935         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
936         * cli/cli-cmds.c: Ditto.
937
938 2002-12-09  Andrew Cagney  <cagney@redhat.com>
939
940         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
941         function address in <>.
942         * gdbarch.c: Re-generate.
943
944 2002-12-09  David Carlton  <carlton@math.stanford.edu>
945
946         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
947
948 2002-12-09  David Carlton  <carlton@math.stanford.edu>
949
950         * linespec.c (symtab_from_filename): New function.
951         (decode_line_1): Move code into symtab_from_filename.
952
953 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
954
955         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
956
957 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
958
959         * f-valprint.c (info_common_command): Use get_frame_pc.
960         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
961         * ax-gdb.c (agent_command): Ditto.
962         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
963         (rs6000_pop_frame): Ditto.
964         (rs6000_frameless_function_invocation): Ditto.
965         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
966         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
967         * macroscope.c (default_macro_scope): Ditto.
968         * stack.c (print_frame_info_base): Ditto.
969         (print_frame, frame_info, print_frame_label_vars): Ditto.
970         (return_command, func_command, get_frame_language): Ditto.
971         * infcmd.c (finish_command): Ditto.
972         * dummy-frame.c (cached_find_dummy_frame): Ditto.
973         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
974         (break_at_finish_at_depth_command_1): Ditto.
975         (break_at_finish_command_1): Ditto.
976         (until_break_command, get_catch_sals): Ditto.
977         * blockframe.c (func_frame_chain_valid): Ditto.
978         (frameless_look_for_prologue): Ditto.
979         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
980
981 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
982
983         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
984         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
985
986 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
987
988         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
989         to pure functions.
990         * gdbarch.h, gdbarch.c: Re-generate.
991         * frame.c (get_prev_frame): Explictly assign prev's pc with value
992         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
993
994         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
995         declaration to a function returning a CORE_ADDR.
996         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
997         * arch-utils.c (init_frame_pc_noop): Return the PC value.
998         (init_frame_pc_default): Ditto.
999         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1000         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1001         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1002         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1003         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1004         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1005
1006         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1007         to init_frame_pc_noop.
1008         (i386_interix_init_frame_pc): Delete function.
1009         * z8k-tdep.c (init_frame_pc): Delete function.
1010         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1011         (INIT_FRAME_PC_FIRST): Ditto.
1012         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1013         (INIT_FRAME_PC_FIRST): Ditto.
1014         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1015         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1016         init_frame_pc_noop.
1017         (INIT_FRAME_PC_FIRST): Convert to an expression.
1018         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1019
1020 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1021
1022         * blockframe.c: Use get_frame_base instead of directly accessing
1023         the `struct frame_info' member frame.
1024         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1025         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1026
1027 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1028
1029         * Makefile.in (readline_h): Define.
1030         (completer.o): Depend on readline_h.
1031         (corelow.o): Ditto.
1032         (event-top.o): Ditto.
1033         (exec.o): Ditto.
1034         (solib.o): Ditto.
1035         (source.o): Ditto. 
1036         (symfile.o): Ditto. 
1037         (symmisc.o): Ditto. 
1038         (top.o): Ditto.
1039         (tracepoint.o): Ditto. 
1040         (utils.o): Ditto.
1041         (cli-dump.o): Ditto.
1042         (tui-hooks.o): Ditto. 
1043         (tuiWin.o): Ditto. 
1044
1045 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1046
1047         More cleanup from import of readline 4.3.
1048         * completer.h (complete_line, readline_line_completion_function):
1049         Update prototypes.
1050         (line_completion_function): Removed, not used outside of completer.c.
1051         * completer.c (readline_line_completion_function,
1052         complete_function, line_completion_function): Use const for first
1053         parameter.
1054         (line_completion_function): Make static.
1055         (filename_completer): filename_completion_function is now called
1056         rl_filename_completion_function
1057         * corelow.c: Include <readline/readline.h>.
1058         * exec.c: Ditto.
1059         * solib.c: Ditto.
1060         * source.c: Ditto.
1061         * symfile.c: Ditto.
1062         * symmisc.c: Ditto.
1063         * top.c (init_main): No need to coerce
1064         readline_line_completion_function anymore.
1065         * cli/cli-dump.c: Include <readline/readline.h>.
1066
1067 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1068
1069         * stack.c (frame_info): Use get_prev_frame.
1070         * blockframe.c (frame_address_in_block): Ditto.
1071         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1072         (rs6000_frameless_function_invocation): Ditto.
1073         (rs6000_frame_saved_pc): Ditto.
1074         (rs6000_frame_chain): Ditto.
1075         * arch-utils.c (init_frame_pc_default): Ditto.
1076
1077 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1078
1079         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1080         Delete redundant definition.
1081
1082 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1083
1084         Import of readline 4.3:
1085         * cli/cli-cmds.c: Include readline/tilde.h.
1086         * cli/cli-setshow.c: Ditto.
1087         * defs.h: Don't declare tilde_expand anymore, since readline
1088         exports it.
1089
1090 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1091
1092         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1093         -Werror on this file.
1094
1095 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1096
1097         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1098         the format name.
1099         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1100         * gdbarch.c: Regenerate.
1101         
1102 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1103
1104         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1105         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1106         provide a default value.
1107         * gdbarch.h, gdbarch.c: Regenerate.
1108         * frame.c (get_prev_frame): Update.  Check
1109         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1110         * s390-tdep.c (s390_gdbarch_init): Update.
1111         * mips-tdep.c (mips_gdbarch_init): Update.
1112         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1113         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1114         * alpha-tdep.c (alpha_gdbarch_init): Update.
1115         
1116 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1117
1118         * ia64-linux-nat.c: Include gdb_string.h.
1119         * alpha-nat.c: Ditto.
1120         * ppc-linux-nat.c: Ditto.
1121         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1122         Update dependencies.
1123
1124 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1125
1126         * gdbthread.h: Include "frame.h".
1127         (struct thread_info): Replace step_frame_address with
1128         step_frame_id.
1129         * inferior.h: Include "frame.h".
1130         (step_frame_id): Replace external variable step_frame_address.
1131         * gdbthread.h (save_infrun_state): Replace step_frame_address
1132         parameter with step_frame_id parameter.
1133         (load_infrun_state): Ditto.
1134         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1135         * infcmd.c (step_frame_id, step_1, step_once): Update.
1136         * thread.c (load_infrun_state, save_infrun_state): Update.
1137         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1138         (handle_inferior_event, step_over_function): Update.
1139         (normal_stop, context_switch, restore_inferior_status): Update.
1140         (struct inferior_status): Replace step_frame_address with
1141         step_frame_id.
1142
1143 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1144
1145         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1146         DW_TAG_member as well as a declaration as being a C++ static data
1147         member.
1148         (read_structure_scope): Combine tests for DW_TAG_member and
1149         DW_TAG_variable.
1150
1151 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1152
1153         * linespec.c (decode_compound): New function.
1154         (decode_line_1): Move code into decode_compound.
1155
1156 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1157
1158         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1159         argument.
1160         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1161         the static block.  See PR gdb/804.
1162
1163 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1164
1165         * symtab.c (lookup_symbol_aux_block): New function.
1166         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1167
1168 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1169
1170         * gdbarch.sh: Dump the predicate function and macro values.
1171         (read): Print error on standard error.
1172         * gdbarch.c: Regenerate.
1173         
1174 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1175
1176         * Makefile.in (mips_tdep_h): Define.
1177         (mips-tdep.o): Add mips_tdep_h to dependency list.
1178         * mips-tdep.h: New file.
1179         * mips-tdep.c (mips-tdep.h): Include.
1180         (enum mips_abi): Move to mips-tdep.h.
1181         (mips_abi): New function.
1182
1183 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1184
1185         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1186
1187 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1188
1189         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1190         function.
1191         (lookup_symbol_aux_minsyms): New function.
1192
1193 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1194
1195         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1196
1197 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1198
1199         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1200         which is an obsolete macro name.
1201
1202 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1203
1204         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1205         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1206
1207 2002-12-03  H.J. Lu  (hjl@gnu.org)
1208
1209         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1210         (create_breakpoints): Make sure the addr_string field is not
1211         NULL.
1212
1213 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1214
1215         * sparc-nat.c (fetch_inferior_registers)
1216         (store_inferior_registers): Add comment on problem of LWP vs
1217         threads.
1218         
1219         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1220         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1221         (lin_lwp_store_registers): Remove.
1222         (init_lin_lwp_ops): Use fetch_inferior_registers
1223         and store_inferior_registers directly.
1224         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1225         (store_inferior_registers): Likewise.
1226         Fix PR gdb/725.
1227
1228 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1229
1230         * frame.h (get_frame_id): Convert to a function.
1231         (null_frame_id, frame_id_p): Declare.
1232         (frame_id_eq, frame_id_inner): Declare.
1233         (frame_id_build): New function.
1234         * frame.c (get_frame_id): Update.  Use null_frame_id.
1235         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1236         frame_id_inner.
1237         (null_frame_id, frame_id_p): Define.
1238         (frame_id_eq, frame_id_inner): Define.
1239         (frame_id_build): New function.
1240         * varobj.c (varobj_create): Update.
1241         (varobj_update): Update.
1242         * valops.c (value_assign): Update.
1243         (new_root_variable): Update.
1244         * infrun.c (save_inferior_status): Update.
1245         * breakpoint.c (watch_command_1): Update.
1246
1247 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1248
1249         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1250         (SNAP2): Likewise.
1251
1252 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1253
1254         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1255         patch.
1256
1257         * PROBLEMS: Mention PR gdb/725.
1258
1259 2002-12-03  Andreas Schwab  <schwab@suse.de>
1260
1261         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1262
1263 2002-12-02  Adam Fedor  <fedor@gnu.org>
1264             Klee Dienes  <kdienes@apple.com>
1265
1266         * objc-lang.c (objc_printstr): Add width arg to match
1267         printstr prototype.
1268         (compare_selectors): Add 'const' to arg types.
1269         (compare_classes): Likewise.
1270         (find_imps): Cast msym pointer to avoid compiler warning.
1271         (print_object_command): Validate the address before
1272         passing it to the print routine.
1273         (find_objc_msgcall_submethod): Change function argument to
1274         return an int.
1275         * objc-lang.h: Add 'extern' to all function declarations.
1276         (value_nsstring): Add declaration.
1277
1278 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1279
1280         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1281         Fixes a build failure on HP/UX.
1282
1283         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1284         failure on HP/UX. 
1285         (hpread_has_name): Advance declaration to avoid a compilation warning.
1286         (pst_syms_count): Add missing variable type. By change, the compiler
1287         was defaulting to int, which seems a good choice. Fixes a compilation
1288         warning.
1289         (pst_syms_size): Likewise.
1290  
1291 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1292
1293         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1294         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1295         later to set the proper gdbarch methods depending on the osabi.
1296         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1297
1298 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1299
1300         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1301         * osabi.c (gdb_osabi_name): Add strings images for the two new
1302         enum values.
1303         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1304
1305 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1306
1307         * MAINTAINERS (Java): Global maintainers are responible for Java.
1308         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1309         part Java maintainers.
1310
1311 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1312
1313         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1314         Fixes a compilation failure on AiX.
1315
1316 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1317
1318         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1319         why aix-thread.o is not listed.
1320
1321 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1322
1323         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1324         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1325         * gdbarch.h, gdbarch.c: Re-generate.
1326         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1327         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1328         * config/pa/tm-hppa.h, frame.h: Update.
1329         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1330         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1331         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1332         * cris-tdep.c, alpha-tdep.c: Update.
1333         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1334         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1335         (get_prev_frame): Ditto.
1336
1337 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1338
1339         * exec.c (xfer_memory): Replace boolean with int.
1340         * p-exp.y: Use 0 instead of false.
1341         * corelow.c (gdb_check_format): Change return type to int from
1342         boolean.
1343         * utils.c: Don't include <curses.h> or <term.h> first.
1344
1345 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1346
1347         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1348         (m68hc11_register_byte): Remove.
1349         (m68hc11_gdbarch_init): Don't set the above.
1350
1351 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1352
1353         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1354         by calling get_selected_frame.
1355         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1356         set_current_frame, create_new_frame, select_frame and
1357         get_current_frame.
1358         * remote-e7000.c (e7000_start_remote): Ditto.
1359         * remote-mips.c (common_open): Ditto
1360         * remote-rdp.c (remote_rdp_open): Ditto.
1361
1362 2002-11-29  Andreas Schwab  <schwab@suse.de>
1363
1364         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1365         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1366         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1367         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1368         read_memory_unsigned_integer instead of read_memory_integer when
1369         dealing with addresses and instruction opcodes.
1370         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1371         (m68k_linux_frame_saved_pc): Likewise.
1372
1373 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1374
1375         * stack.c (selected_frame, select_frame): Move from here ...
1376         * frame.c (selected_frame, select_frame): ... to here.  Include
1377         "language.h".
1378         * Makefile.in (frame.o): Update dependencies.
1379         * frame.c (get_selected_frame): New function.
1380         * frame.h (get_selected_frame): Declare.
1381         (deprecated_selected_frame): Rename selected_frame.
1382         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1383         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1384         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1385         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1386         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1387         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1388         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1389         * z8k-tdep.c, cli/cli-cmds.c: Update.
1390         
1391 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1392
1393         * frame.h (get_selected_block): Add comments.
1394
1395 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1396
1397         * frame.c (pc_notcurrent): New function.
1398         (find_frame_sal): New function.
1399         * frame.h (find_frame_sal): Declare.
1400         (struct symtab_and_line): Add opaque declaration.
1401         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1402         find_pc_line.
1403         (frame_info): Ditto.
1404         * ada-lang.c (find_printable_frame): Ditto.
1405
1406 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1407
1408         * configure.in: Check that the pthdebug library is recent enough
1409         before enabling thread support on native AiX.
1410         * configure: Regenerate.
1411
1412         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1413         from the list of object files as it is now appended by configure
1414         if thread support is enabled.
1415         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1416         if thread support is enabled.
1417
1418 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1419
1420         * stack.c (get_selected_block): In-line get_current_block.
1421         * frame.h (get_current_block): Delete declaration.
1422         * blockframe.c (get_current_block): Delete function.
1423
1424 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1425
1426         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1427         USE_GENERIC_DUMMY_FRAMES.
1428         * gdbarch.h, gdbarch.c: Regenerate.
1429         * valops.c, frame.c: Update.
1430         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1431         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1432         * config/pa/tm-hppa.h, blockframe.c: Update.
1433         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1434         * m68k-tdep.c, alpha-tdep.c: Ditto.
1435
1436         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1437         * mips-tdep.c: Ditto.
1438
1439 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1440
1441         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1442         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1443         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1444         * gdbarch.c, gdbarch.h: Re-generate.
1445         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1446         (CALL_DUMMY_LOCATION): Delete macro definition.
1447         (PC_IN_CALL_DUMMY): Delete macro definitions.
1448         
1449         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1450         default is already generic_pc_in_call_dummy.
1451         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1452         * v850-tdep.c (v850_gdbarch_init): Ditto.
1453         * sh-tdep.c (sh_gdbarch_init): Ditto.
1454         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1455         * mips-tdep.c (mips_gdbarch_init): Ditto.
1456         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1457         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1458         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1459         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1460         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1461         * avr-tdep.c (avr_gdbarch_init): Ditto.
1462         
1463         * arm-tdep.c (arm_gdbarch_init): Do not set
1464         use_generic_dummy_frames, default is already 1.
1465         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1466         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1467         * v850-tdep.c (v850_gdbarch_init): Ditto.
1468         * sh-tdep.c (sh_gdbarch_init): Ditto.
1469         * s390-tdep.c (s390_gdbarch_init): Ditto.
1470         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1471         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1472         * mips-tdep.c (mips_gdbarch_init): Ditto.
1473         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1474         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1475         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1476         * i386-tdep.c (i386_gdbarch_init): Ditto.
1477         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1478         * frv-tdep.c (frv_gdbarch_init): Ditto.
1479         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1480         * cris-tdep.c (cris_gdbarch_init): Ditto.
1481         * avr-tdep.c (avr_gdbarch_init): Ditto.
1482
1483         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1484         call_dummy_location, default is already AT_ENTRY_POINT.
1485         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1486         * v850-tdep.c (v850_gdbarch_init): Ditto.
1487         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1488         * sh-tdep.c (sh_gdbarch_init): Ditto.
1489         * s390-tdep.c (s390_gdbarch_init): Ditto.
1490         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1491         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1492         * mips-tdep.c (mips_gdbarch_init): Ditto.
1493         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1494         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1495         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1496         * i386-tdep.c (i386_gdbarch_init): Ditto.
1497         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1498         * frv-tdep.c (frv_gdbarch_init): Ditto.
1499         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1500         * cris-tdep.c (cris_gdbarch_init): Ditto.
1501         * avr-tdep.c (avr_gdbarch_init): Ditto.
1502         * arm-tdep.c (arm_gdbarch_init): Ditto.
1503         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1504
1505 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1506
1507         * frame.h: Update comments on set_current_frame, create_new_frame,
1508         flush_cached_frames, reinit_frame_cache, select_frame and
1509         selected_frame.
1510         
1511 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1512
1513         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1514         deprecated pc_in_call_dummy function.
1515         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1516         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1517         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1518         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1519         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1520
1521 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1522
1523         * Makefile.in: Remove Tix dependencies.
1524         * acinclude.m4: Ditto.
1525         * aclocal.m4: Ditto.
1526         * configure.in: Ditto.
1527         * configure: Regenerated.
1528         
1529 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1530
1531         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1532         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1533         * gdbarch.c: Re-generate.
1534         
1535 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1536
1537         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1538         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1539         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1540         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1541         pc_in_call_dummy_at_entry_point.
1542         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1543         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1544         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1545         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1546         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1547         pc_in_call_dummy_on_stack.
1548         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1549         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1550         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1551         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1552         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1553         
1554 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1555
1556         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1557         pc_in_call_dummy_before_text_end
1558         (deprecated_pc_in_call_dummy_after_text_end): Rename
1559         pc_in_call_dummy_after_text_end.
1560         (deprecated_pc_in_call_dummy_on_stack): Rename
1561         pc_in_call_dummy_on_stack.
1562         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1563         pc_in_call_dummy_at_entry_point.
1564         * m68k-tdep.c (m68k_gdbarch_init): Update.
1565         * s390-tdep.c (s390_gdbarch_init): Update.
1566         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1567         * vax-tdep.c (vax_gdbarch_init): Update.
1568         * sparc-tdep.c (sparc_gdbarch_init): Update.
1569         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1570         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1571         * i386-tdep.c (i386_gdbarch_init): Update.
1572         * frv-tdep.c (frv_gdbarch_init): Update.
1573         * cris-tdep.c (cris_gdbarch_init): Update.
1574         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1575         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1576         (deprecated_pc_in_call_dummy_after_text_end)
1577         (deprecated_pc_in_call_dummy_on_stack)
1578         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1579         * alpha-tdep.c (alpha_gdbarch_init): Update.
1580
1581 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1582
1583         * acconfig.h (HAVE_PREAD64): Add.
1584         * configure.in: Check for pread64.
1585         * config.in: Regenerated.
1586         * configure: Regenerated.
1587         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1588         * linux-proc.c (linux_proc_xfer_memory): New function.
1589         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1590
1591 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1592
1593         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1594         pdi's with no name.
1595
1596 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1597
1598         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1599         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1600
1601 2002-11-25  Jim Blandy  <jimb@redhat.com>
1602
1603         * symfile.c (init_objfile_sect_indices): New function.
1604         (default_symfile_offsets): Move the section-index-initializing
1605         stuff into init_objfile_sect_indices, and call that.
1606
1607         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1608         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1609
1610         * symfile.c (syms_from_objfile): Adjust indentation.
1611
1612         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1613         || info_verbose isn't true.
1614
1615 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1616
1617         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1618         default to get_frame_base.
1619         * gdbarch.h, gdbarch.c: Regenerate.
1620         * arch-utils.c (default_frame_address): Delete function.
1621         * arch-utils.h (default_frame_address): Delete declaration
1622
1623 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1624
1625         * varobj.c (find_frame_addr_in_frame_chain):
1626         Use get_frame_base instead of FRAME_FP,
1627         obvious fix.
1628
1629 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1630
1631         * frame.h (FRAME_FP): Delete macro.
1632         (get_frame_base): New function declaration.
1633         * frame.c (get_frame_base): New function.
1634         (get_frame_id): Use ->frame.
1635         (frame_find_by_id): Rewrite to use get_frame_id.
1636         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1637         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1638         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1639         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1640         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1641         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1642         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1643
1644 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1645
1646         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1647
1648 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1649
1650         * frame.c (set_unwind_by_pc): Revert change below, use
1651         PC_IN_CALL_DUMMY.
1652         (get_prev_frame): Ditto.
1653
1654 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1655
1656         * dummy-frame.c (pc_in_dummy_frame): New function.
1657         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1658         (find_dummy_frame): Update comment.
1659         (generic_pop_current_frame): Use get_frame_type.
1660         * dummy-frame.h (pc_in_dummy_frame): Declare.
1661         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1662         (create_new_frame): Use pc_in_dummy_frame.
1663         (get_prev_frame): Use pc_in_dummy_frame.
1664         (frame_saved_regs_register_unwind): Use get_prev_frame.
1665         (deprecated_generic_get_saved_register): Use get_prev_frame.
1666
1667 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1668
1669         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1670         from here ...
1671         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1672         (varobj_create): Note that frame ID should be used.
1673         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1674
1675 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1676
1677         * breakpoint.c: Include "gdb_assert.h".
1678         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1679         not being used.
1680         * Makefile.in (breakpoint.o): Update dependencies.
1681         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1682         deprecated_frame_in_dummy.
1683         * stack.c (print_frame_info_base): Ditto.
1684         (frame_info): Ditto.
1685         (print_frame_info_base): Ditto.  Delete dead code.
1686         
1687 2002-11-23  Andreas Schwab  <schwab@suse.de>
1688
1689         * Makefile.in (m68k_tdep_h): Define.
1690         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1691         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1692         * m68k-tdep.c: Move register number enum ...
1693         * m68k-tdep.h: ... to this new file and rename the constants from
1694         E_* to M68K_*.  All uses changed.
1695         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1696         * abug-rom.c: Include "m68k-tdep.h".  Use
1697         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1698         * cpu32bug-rom.c: Likewise.
1699         * dbug-rom.c: Likewise.
1700         * m68k-tdep.c: Likewise.
1701         * m68klinux-nat.c: Likewise.
1702         * remote-est.c: Likewise.
1703         * rom68k-rom.c: Likewise.
1704         * config/m68k/tm-linux.h: Likewise.
1705
1706 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1707
1708         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1709         dummy frame initialization code.
1710         * mips-tdep.c (mips_gdbarch_init): Ditto.
1711
1712 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1713
1714         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1715         attach will hang.
1716
1717 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1718
1719         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1720         to default_frame_address.
1721         * gdbarch.h, gdbarch.c: Re-generate.
1722
1723         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1724         or frame_locals_address to default_frame_address.
1725         * m68k-tdep.c (m68k_gdbarch_init): Update.
1726         * i386-tdep.c (i386_gdbarch_init): Update.
1727         * frv-tdep.c (frv_gdbarch_init): Update.
1728         * sh-tdep.c (sh_gdbarch_init): Update.
1729         * v850-tdep.c (v850_gdbarch_init): Update.
1730         * sparc-tdep.c (sparc_gdbarch_init): Update.
1731         * mips-tdep.c (mips_gdbarch_init): Update.
1732         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1733         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1734         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1735
1736         * cris-tdep.c (cris_frame_args_address): Delete function.
1737         (cris_frame_locals_address): Delete function.
1738         (cris_gdbarch_init): Do not set frame_args_address or
1739         frame_locals_address.
1740
1741 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1742
1743         * thread-db.c (thread_db_load): Tell the user what's going on
1744         if dlopen fails on libthread_db.
1745
1746 2002-11-23  Andreas Schwab  <schwab@suse.de>
1747
1748         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1749         invariant return values.
1750
1751 2002-11-22  Andreas Schwab  <schwab@suse.de>
1752
1753         * valops.c (value_slice): Move declaration of `offset' to avoid
1754         warning.
1755
1756 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1757
1758         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1759         (struct so_stuff): Add end_addr field.
1760         (register_loaded_dll): Calculate and store end address of loaded dll.
1761         (solib_address): New function.
1762         (child_solib_loaded_library_pathname): Pass carefully constructed
1763         section info to safe_symbol_file_add rather than ignoring it.
1764         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1765         DLL is loaded.
1766         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1767         (child_create_inferior): Fix a compiler warning.
1768         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1769         (solib_address): Declare new function.
1770
1771 2002-11-22  Andreas Schwab  <schwab@suse.de>
1772
1773         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1774         and FPS registers.
1775
1776 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1777
1778         * maint.c (_initialize_maint_cmds): Fix typo.  From
1779         Francesco Potorti` <pot@gnu.org>.
1780
1781 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1782
1783         * mips-tdep.c (mips_dump_tdep): Delete references to
1784         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1785         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1786         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1787         * printcmd.c (build_address_symbolic): Delete calls to
1788         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1789         (address_info): Ditto.
1790         Fix PR gdb/773.
1791         
1792 2002-11-19  Klee Dienes  <kdienes@apple.com>
1793             Adam Fedor  <fedor@gnu.org>
1794
1795         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1796         the ability to explicitly specify the quote characters and word
1797         break characters; if NULL is specified for either, use the old
1798         behavior of using the characters used by the completer.
1799         (skip_chars): New function.  Convenience wrapper around
1800         skip_quoted_chars to provide the original skip_chars behavior.
1801         * completer.h (skip_quoted_chars): Add prototype.
1802
1803 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1804
1805         Problems reported by Paul Eggert.
1806         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1807
1808 2002-11-19  Andreas Schwab  <schwab@suse.de>
1809
1810         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1811         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1812         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1813         (m68k_linux_frame_saved_pc): Move to ...
1814         * m68klinux-tdep.c: ... here.  New file.
1815         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1816         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1817
1818 2002-11-19  Adam Fedor  <fedor@gnu.org>
1819
1820         * objc-exp.y: Revert to old skip_quoted usage.
1821
1822 2002-11-19  Adam Fedor  <fedor@gnu.org>
1823
1824         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1825         (objc_lang_h): Define.
1826         (YYFILES): Add objc-exp.tab.c.
1827         (local-maintainer-clean): Remove objc-exp.tab.c.
1828         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1829         
1830 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1831
1832         * p-exp.y (typecast rule): Add automatic dereference of
1833         pascal classes if needed.
1834         (THIS): Set current_type.
1835         Automatically dereference pascal classes. 
1836         (typebase rule): Add ^typebase recognition.
1837
1838 2002-11-18  Adam Fedor  <fedor@gnu.org>
1839
1840         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1841         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1842         (op_name): Handle OP_OBJC_SELF.
1843         * Makefile.in (expprint.o): Add additional depends.
1844
1845 2002-11-18  Adam Fedor  <fedor@gnu.org>
1846
1847         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1848         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1849         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1850         * objc-exp.y: Likewise. 
1851
1852 2002-11-18  Adam Fedor  <fedor@gnu.org>
1853
1854         * gdb/parser-defs.h: (struct objc_class_str): New structure
1855         for parsing ObjC classes.
1856
1857 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1858
1859         * stack.c (frame_relative_level): Copy function from here ...
1860         * frame.c (frame_relative_level): ...to here.
1861
1862 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1863
1864         * frame.h (enum frame_type): Define.
1865         (get_frame_type): Declare.
1866         (struct frame_info): Add field `type'.  Delete field
1867         signal_handler_caller.
1868         (deprecated_set_frame_signal_handler_caller): Declare.
1869         * frame.c (get_frame_type): New function.
1870         (deprecated_set_frame_type): New function.
1871         (create_new_frame): Set the frame's type.
1872         (get_prev_frame): Similar.
1873         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1874         * s390-tdep.c: Ditto.
1875         * m68klinux-nat.c: Ditto.
1876         * ns32k-tdep.c: Ditto.
1877         * x86-64-linux-tdep.c: Ditto.
1878         * vax-tdep.c: Ditto.
1879         * rs6000-tdep.c: Ditto.
1880         * ppc-linux-tdep.c: Ditto.
1881         * i386-interix-tdep.c: Ditto.
1882         * mips-tdep.c: Ditto.
1883         * m68k-tdep.c: Ditto.
1884         * hppa-tdep.c: Ditto.
1885         * ia64-tdep.c: Ditto.
1886         * cris-tdep.c: Ditto.
1887         * arm-tdep.c: Ditto.
1888         * alpha-tdep.c: Ditto.
1889         * i386-tdep.c: Ditto.
1890         * stack.c: Ditto.
1891         * ada-lang.c: Ditto.
1892         * blockframe.c: Update.
1893         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1894         deprecated_set_frame_type instead of signal_handler_caller.
1895         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1896         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1897         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1898
1899 2002-11-18   Klee Dienes  <kdienes@apple.com>
1900
1901         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1902
1903 2002-11-18  Klee Dienes  <kdienes@apple.com>
1904
1905         * buildsym.c (pop_context): Add comment.
1906         
1907 2002-11-18  Klee Dienes  <kdienes@apple.com>
1908
1909         * buildsym.h (pop_context): Convert to function, defined in
1910         buildsym.c.
1911         * buildsym.c: Include gdb_assert.h.
1912         (pop_context): Implement as C function.  Add check for stack
1913         underflow.
1914         * dbxread.c (process_one_symbol): Complain and stop processing
1915         that symbol if we are already at the top of the context stack for
1916         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1917         when processing N_RBRAC.
1918
1919 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1920
1921         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1922         define.
1923         (struct target_waitstatus): Add opaque definition.
1924         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1925         * exec.c (init_exec_ops): Likewise.
1926         * fork-child.c (clone_and_follow_inferior): Remove.
1927         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1928         * inferior.h (clone_and_follow_inferior): Remove prototype.
1929         * infrun.c (follow_fork_mode_both): Remove.
1930         (follow_fork_mode_kind_names): Remove commented out "both".
1931         (follow_inferior_fork): Remove follow_fork_mode_both support.
1932         * inftarg.c (child_clone_and_follow_inferior): Remove.
1933         (child_post_follow_inferior_by_clone): Remove.
1934         (init_child_ops): Don't set to_clone_and_follow_inferior
1935         or to_post_follow_inferior_by_clone.
1936         * target.c (default_clone_and_follow_inferior): Remove.
1937         (cleanup_target): Don't set to_clone_and_follow_inferior
1938         or to_post_follow_inferior_by_clone.
1939         (find_default_clone_and_follow_inferior): Remove.
1940         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1941         (debug_to_clone_and_follow_inferior): Remove.
1942         (debug_to_post_follow_inferior_by_clone): Remove.
1943         (setup_target_debug): Don't set to_clone_and_follow_inferior
1944         or to_post_follow_inferior_by_clone.
1945         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1946         and to_post_follow_inferior_by_clone.
1947         (child_clone_and_follow_inferior): Remove prototype.
1948         (child_post_follow_inferior_by_clone): Remove prototype.
1949         (target_clone_and_follow_inferior): Remove macro.
1950         (target_post_follow_inferior_by_clone): Remove macro.
1951         (find_default_clone_and_follow_inferior): Remove prototype.
1952
1953 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1954
1955         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1956         inferior_has_vforked, and inferior_has_execd instead of
1957         target_has_forked, target_has_vforked, and target_has_execd.
1958         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1959         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1960         (CHILD_WAIT): Define.
1961         (child_wait): Add prototype.
1962         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1963         Add prototype.
1964         (hpux_has_vforked): Likewise, from child_has_vforked.
1965         (hpux_has_execd): Likewise, from child_has_execd.
1966         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1967         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1968         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1969         and hpux_has_syscall_event instead of the target hooks.
1970         * infrun.c (inferior_has_forked, inferior_has_vforked)
1971         (inferior_has_execd): New functions.
1972         * inftarg.c (not_same_real_pid): Remove.
1973         (child_wait): Remove references to not_same_real_pid,
1974         target_has_forked, target_has_vforked, target_has_execd,
1975         and target_has_syscall_event.
1976         (child_has_forked, child_has_vforked, child_has_execd)
1977         (child_has_syscall_event): Remove.
1978         (init_child_ops): Remove references to child_has_forked,
1979         child_has_vforked, child_has_execd, and child_has_syscall_event.
1980         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1981         (hpux_has_vforked): Likewise, from child_has_vforked.
1982         (hpux_has_execd): Likewise, from child_has_execd.
1983         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1984         * target.c (cleanup_target): Remove references to
1985         to_has_forked, to_has_vforked, to_has_execd, and
1986         to_has_syscall_event.
1987         (update_current_target): Likewise.
1988         (setup_target_debug): Likewise.
1989         (debug_to_has_forked): Remove.
1990         (debug_to_has_vforked): Remove.
1991         (debug_to_has_execd): Remove.
1992         (debug_to_has_syscall_event): Remove.
1993         * target.h (struct target_ops): Remove to_has_forked.
1994         to_has_vforked, to_has_execd, and to_has_syscall_event.
1995         (child_has_forked, child_has_vforked, child_has_execd)
1996         (child_has_syscall_event): Remove prototypes.
1997         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1998         prototypes.
1999         (target_has_forked, target_has_vforked, target_has_execd)
2000         (target_has_syscall_event): Remove macros.
2001
2002 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2003
2004         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2005         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2006         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2007         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2008         * target.c (cleanup_target): Remove reference to
2009         to_can_follow_vfork_prior_to_exec.
2010         (update_current_target): Likewise.
2011         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2012         (setup_target_debug): Remove reference to
2013         to_can_follow_vfork_prior_to_exec.
2014         * target.h (struct target_ops): Remove
2015         to_can_follow_vfork_prior_to_exec.
2016         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2017         (target_can_follow_vfork_prior_to_exec): Remove definition.
2018         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2019         define.
2020         * infrun.c (follow_vfork_when_exec): Remove.
2021         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2022         (follow_exec): Likewise.
2023         (handle_inferior_event): Likewise.
2024         (keep_going): Likewise.
2025
2026 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2027
2028         * frame.c (generic_unwind_get_saved_register): Make static.
2029         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2030         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2031         defaults to generic_unwind_get_saved_register.
2032         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2033         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2034         * frv-tdep.c (frv_gdbarch_init): Ditto.
2035         * i386-tdep.c (i386_gdbarch_init): Ditto.
2036         * s390-tdep.c (s390_gdbarch_init): Ditto.
2037         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2038         * v850-tdep.c (v850_gdbarch_init): Ditto.
2039         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2040         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2041         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2042
2043 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2044
2045         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2046         i386-tdep.c.
2047
2048 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2049
2050         * frame.h (sigtramp_saved_pc): Delete declaration.
2051         * blockframe.c (sigtramp_saved_pc): Delete function.
2052         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2053         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2054         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2055         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2056
2057 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2058
2059         * frame.c (frame_pc_unwind): New function.
2060         (frame_saved_regs_pc_unwind): New function.
2061         (frame_register_unwind): Pass unwind_cache instead of
2062         register_unwind_cache.
2063         (set_unwind_by_pc): Add unwind_pc parameter, set.
2064         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2065         (get_prev_frame): Ditto.
2066         * frame.h (frame_pc_unwind_ftype): Declare.
2067         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2068         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2069         (frame_pc_unwind): Declare.
2070         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2071         (struct dummy_frame): Add comment mentioning that values are for
2072         previous frame.
2073         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2074         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2075         (generic_file_frame_chain_valid): Ditto.
2076         * stack.c (frame_info): Ditto.
2077
2078 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2079
2080         * linespec.c (locate_first_half): New function.
2081         (decode_line_1): Move code into locate_first_half.
2082
2083 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2084
2085         * complaints.h: Add comment explaining how to eliminate a
2086         deprecated_complain call.
2087         * complaints.h: Fix spelling errors.
2088
2089 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2090
2091         * printcmd.c: Remove #include "disasm.h".
2092
2093 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2094
2095         * frame.h: Move the most relevant interface functions to the start
2096         of the file.
2097
2098 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2099
2100         * regcache.h (deprecated_registers): Rename registers.
2101         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2102         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2103         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2104         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2105         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2106         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2107         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2108         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2109         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2110         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2111         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2112         * v850ice.c: Update.
2113
2114 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2115
2116         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2117         NULL buffer.
2118
2119 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2120
2121         * regcache.h (deprecated_read_register_bytes): Rename
2122         read_register_bytes.
2123         (deprecated_write_register_bytes): Rename write_register_bytes.
2124         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2125         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2126         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2127         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2128         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2129         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2130         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2131         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2132         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2133         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2134         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2135         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2136         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2137         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2138
2139 2002-11-13  Jim Blandy  <jimb@redhat.com>
2140
2141         * findvar.c (read_var_value): Doc fix.
2142
2143 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2144
2145         * regcache.c (struct regcache): Replace passthough_p with
2146         readonly_p.
2147         (regcache_xmalloc): Initialize readonly_p.
2148         (build_regcache): Initialize readonly_p.
2149         (regcache_save): New function.
2150         (regcache_restore): New function.
2151         (regcache_cpy): Re-implement using regcache_save and
2152         regcache_restore.
2153         (regcache_raw_read): Update.
2154         (regcache_cooked_read): When a read-only cache, checked for cached
2155         pseudo register values.
2156         (regcache_raw_write): Assert that the cache is not read-only.
2157         Remove code handling a non-passthrough cache.
2158         * regcache.h (regcache_save): Declare.
2159         (regcache_restore): Declare.
2160
2161 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2162
2163         * regcache.c (struct regcache_descr): Add fields
2164         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2165         (init_legacy_regcache_descr): Compute the size of a cooked
2166         register cache and then assign that to sizeof_raw_registers.  Set
2167         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2168         (init_legacy_regcache_descr): Ditto.
2169
2170 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2171
2172         * regcache.c (register_buffer): Move to near start of file, update
2173         description.
2174         (regcache_raw_read): Use.
2175         (regcache_raw_write): Use.
2176         (struct regcache): Rename raw_registers to registers and
2177         raw_register_valid_p to register_valid_p.
2178         (regcache_xmalloc): Update.
2179         (regcache_xfree): Update.
2180         (register_buffer): Update.
2181         (regcache_cpy): Update.
2182         (regcache_cpy_no_passthrough): Update.
2183         (regcache_valid_p): Update.
2184         (deprecated_grub_regcache_for_registers): Update.
2185         (deprecated_grub_regcache_for_register_valid): Update.
2186         (set_register_cached): Update.
2187         (regcache_raw_write): Update.
2188
2189 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2190
2191         * p-exp.y (name_not_typename): Use copy_name to
2192         set current_type variable for fields of THIS.
2193
2194 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2195
2196         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2197         * monitor.c (init_base_monitor_ops): Likewise.
2198         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2199         * remote-array.c (init_array_ops): Likewise.
2200         * remote-e7000.c (init_e7000_ops): Likewise.
2201         * remote-es.c (init_es1800_ops): Likewise.
2202         (init_es1800_child_ops): Likewise.
2203         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2204         * remote-sim.c (init_gdbsim_ops): Likewise.
2205         * remote-st.c (init_st2000_ops): Likewise.
2206         * sol-thread.c (init_sol_core_ops): Likewise.
2207         (init_sol_thread_ops): Likewise.
2208         * v850ice.c (init_850ice_ops): Likewise.
2209         * win32-nat.c (init_child_ops): Likewise.
2210         * wince.c (init_child_ops): Likewise.
2211
2212 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2213
2214         * utils.c (gdb_realpath): Make rp a constant pointer.
2215
2216 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2217
2218         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2219         a constant buffer; cannonicalize_file_name(); realpath() with a
2220         pathconf() defined buffer, xstrdup().
2221
2222 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2223
2224         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2225         to hang2.C; hang3.c to hang3.C.
2226
2227 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2228
2229         * findvar.c (read_var_value): Reenable TLS code.
2230
2231 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2232             Jim Blandy  <jimb@redhat.com>
2233         
2234         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2235         * target.c (update_current_target): Add
2236         to_get_thread_local_address.
2237         * target.h (to_get_thread_local_address): Export.
2238         (target_get_thread_local_address): Define.
2239         (target_get_thread_local_address_p): Define.
2240         * thread-db.c: Include solib-svr4.h.
2241         (td_thr_tls_get_addr_p): Define.
2242         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2243         (thread_db_get_thread_local_address): New function.
2244         (init_thread_db_ops): Initialize to_get_thread_local_address.
2245         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2246         * configure: Regenerate.
2247         * config.in: Regenerate.
2248
2249 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2250
2251         * linespec.c (set_flags): New function.
2252         (decode_line_1): Move code into set_flags.
2253
2254 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2255
2256         * linespec.c (decode_line_1): Move chunks of code to separate
2257         functions.
2258         (initialize_defaults): New function.
2259         (decode_indirect): New function.
2260
2261 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2262
2263         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2264         instead of void_code_ptr.
2265         (sigtramp_saved_pc): Ditto.
2266
2267         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2268         i386_fp_regnum_p.
2269
2270 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2271
2272         * gdbtypes.h (struct main_type): Move artificial flag out of
2273         loc.  New member of ``struct field'' named static_kind.  Reduce
2274         overloaded meaning of bitsize.
2275         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2276         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2277         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2278
2279         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2280         new fields.
2281         (template_to_fixed_record_type, template_to_static_fixed_type)
2282         (to_record_with_fixed_variant_part): Likewise.
2283         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2284         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2285         * dwarfread.c (struct_type, enum_type): Likewise.
2286         * hpread.c (hpread_read_enum_type)
2287         (hpread_read_function_type, hpread_read_doc_function_type)
2288         (hpread_read_struct_type): Likewise.
2289         * mdebugread.c (parse_symbol): Likewise.
2290
2291 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2294         * stack.c (print_frame_info_base): Update.
2295         (print_frame_info_base, frame_info): Update.
2296         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2297         (sparc_frame_saved_pc): Update.
2298         * ada-lang.c (find_printable_frame): Update.
2299         * breakpoint.c (deprecated_frame_in_dummy): Update.
2300         
2301 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2302
2303         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2304         defined.
2305         (regmap): Extend to cover all registers.
2306         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2307         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2308         definitions.
2309         (fetch_register, sore_register): Simplify.
2310         (old_fetch_inferior_registers, old_store_inferior_registers):
2311         Remove functions.
2312         (cannot_fetch_register, cannot_store_register): Change
2313         implementation to use regmap array to decide which registers
2314         cannot be fetched/stored.  This removes $orig_eax from the
2315         registers that cannot be fetched/stored.
2316         (fetch_inferior_registers): Call fetch_register directly instead
2317         of calling old_fetch_inferior_registers.
2318         (store_inferior_registers): Call store_register directly instead
2319         of calling old_store_inferior_registers.
2320         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2321         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2322         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2323
2324 2002-11-09  Klee Dienes  <kdienes@apple.com>
2325
2326         * i387-tdep.c (i387_supply_register): When called with NULL as a
2327         buffer, mark the register as not provided (to mirror the behavior
2328         of supply_register).
2329         (i387_supply_fxsave): Ditto.
2330         (i387_supply_fsave): Ditto (inherits the behavior from
2331         i387_supply_register).
2332
2333 2002-11-09  Klee Dienes  <kdienes@apple.com>
2334
2335         * blockframe.c (sigtramp_saved_pc): Use
2336         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2337         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2338         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2339         
2340 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2341
2342         * frame.c (get_prev_frame): Test prev_p to identify a previously
2343         unwound frame.  Initialize prev_p.
2344         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2345         comment.
2346
2347 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2348
2349         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2350         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2351         more comments.  Zap dead code.
2352
2353 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2354
2355         * infcmd.c (print_vector_info, print_float_info): Move code that
2356         checks whether the target has any registers and whether there is a
2357         selected frame up, such that it is also used if a target provides
2358         multi-arch definitions of these functions.
2359
2360 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2361
2362         * Makefile.in (DESTDIR): Define.
2363         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2364         prefix.
2365
2366         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2367         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2368
2369 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2370
2371         * i386-linux-tdep.c: Include "reggroups.h".
2372         (i386_linux_register_reggroup_p): New function.
2373         (i386_linux_init_abi): Set register_reggroup_p to
2374         i386_linux_register_reggroup_p.
2375         * i386-tdep.h (i386_register_reggroup_p): Declare.
2376         * i386-tdep.c: Include "reggroups.h".
2377         (i386_init_reggroups): New function.
2378         (i386_add_reggroups): New function.
2379         (i386_register_reggroup_p): New function.
2380         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2381         (_initialize_i386_tdep): Call i386_init_reggroups.
2382         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2383         specific reggroups.
2384
2385 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2386
2387         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2388         request that's available in *BSD.
2389
2390         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2391
2392         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2393         FDOFF_REGNUM.
2394
2395 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2396
2397         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2398         * dummy-frame.c (find_dummy_frame): Rename
2399         generic_find_dummy_frame, make static.  Return the dummy frame
2400         instead of the regcache.
2401         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2402         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2403         (dummy_frame_register_unwind): Rename
2404         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2405         * dummy-frame.h (dummy_frame_register_unwind): Rename
2406         generic_call_dummy_register_unwind.
2407
2408 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2409
2410         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2411         except the inclusion of "i386/tm-i386.h", to...
2412         * config/i386/nm-i386v42mp.h: ...here.
2413         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2414
2415 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2416
2417         * Makefile.in (frame.o): Update dependencies.
2418         * blockframe.c (current_frame, frame_obstack_alloc)
2419         (frame_saved_regs_zalloc, get_current_frame)
2420         (set_current_frame, create_new_frame)
2421         (set_unwind_by_pc, get_next_frame)
2422         (flush_cached_frames, reinit_frame_cache)
2423         (frame_saved_regs_register_unwind)
2424         (deprecated_generic_get_saved_register)
2425         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2426         (_initialize_blockframe): Move frame code from here...
2427         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2428         "annotate.h" and "dummy-frame.h".
2429         (_initialize_frame): New function.
2430
2431 2002-11-08  Jim Blandy  <jimb@redhat.com>
2432
2433         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2434         when we finish a function a context.
2435         * buildsym.h (outermost_context_p): New macro.
2436         (Bug analyzed by David Edelsohn.)
2437
2438 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2439
2440         * blockframe.c: Include "dummy-frame.h".
2441         (struct dummy_frame, dummy_frame_stack)
2442         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2443         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2444         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2445         (generic_save_call_dummy_addr, generic_pop_current_frame)
2446         (generic_pop_dummy_frame, generic_fix_call_dummy)
2447         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2448         dummy frame code from here...
2449         * dummy-frame.c: ...to here.  New file.
2450         * dummy-frame.h: New file.
2451         (generic_call_dummy_register_unwind): Declare.
2452         (generic_find_dummy_frame): Declare.
2453         * Makefile.in (SFILES): Add dummy-frame.c.
2454         (dummy-frame.o): Specify dependencies.
2455         (dummy_frame_h): Define.
2456         (COMMON_OBS): Add dummy-frame.o.
2457         (blockframe.o): Update dependencies.
2458
2459 2002-11-08  Jim Blandy  <jimb@redhat.com>
2460
2461         * dwarf2read.c (read_func_scope): Restore local_symbols and
2462         param_symbols after we finish the function context.  (Based on a
2463         patch from David Edelsohn.)
2464
2465 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2466
2467         * linespec.c (symbol_found): New function.
2468         (minsym_found): New function.
2469         (decode_line_1): Separate out some code into separate functions.
2470
2471 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2472
2473         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2474         the benefit of the interix target.
2475         * i386-tdep.h (i386_frameless_signal_p): Declare.
2476
2477 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2478
2479         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2480         declaration that snuck in from change below.
2481
2482 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2483
2484         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2485         all callers.
2486         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2487         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2488         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2489         (i386_mxcsr_regnum_p): new function.  Use instead of
2490         MXCSR_REGNUM_P.
2491         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2492         (i386_sse_regnum_p): Declare.
2493         (i386_mxcsr_regnum_p): Declare.
2494         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2495         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2496         (IS_FP_REGNUM): Update definition.
2497         (IS_FPU_CTRL_REGNUM): Update definition..
2498         (IS_SSE_REGNUM): Update definition..
2499         * i386v-nat.c (register_u_addr): Update.
2500         * go32-nat.c (fetch_register): Update.
2501         (store_register): Update.
2502
2503 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2504
2505         Preparation work to convert the hppa targets to multiarch partial.
2506
2507         * hppa-tdep.c: Add new functions replacing macro bodies from
2508         config/pa/tm-hppa.h. These function will be used to initialize
2509         the gdbarch structure. Import some comments from tm-hppa.h,
2510         and place them where appropriate, to avoid loosing them when
2511         we cleanup this file.
2512         (hppa_reg_struct_has_addr): New function.
2513         (hppa_inner_than): New function.
2514         (hppa_stack_align): New function.
2515         (hppa_pc_requires_run_before_use): New function.
2516         (hppa_instruction_nullified): New function.
2517         (hppa_register_byte): New function.
2518         (hppa_register_virtual_type): New function.
2519         (hppa_store_struct_return): New function.
2520         (hppa_cannot_store_register): New function.
2521         (hppa_frame_args_address): New function.
2522         (hppa_frame_locals_address): New function.
2523         (hppa_smash_text_address): New function.
2524         (hppa_coerce_float_to_double): New function. Requires the inclusion
2525         of "language.h".
2526
2527         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2528
2529         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2530         gdbarch-eligible macro to a call to the new associated function
2531         created in hppa-tdep.c.
2532         (INNER_THAN): Likewise.
2533         (STACK_ALIGN): Likewise.
2534         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2535         (INSTRUCTION_NULLIFIED): Likewise.
2536         (REGISTER_BYTE): Likewise.
2537         (REGISTER_VIRTUAL_TYPE): Likewise.
2538         (STORE_STRUCT_RETURN): Likewise.
2539         (CANNOT_STORE_REGISTER): Likewise.
2540         (FRAME_ARGS_ADDRESS): Likewise.
2541         (FRAME_LOCALS_ADDRESS): Likewise.
2542         (SMASH_TEXT_ADDRESS): Likewise.
2543         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2544         (ABOUT_TO_RETURN): Delete, as no longer used.
2545
2546 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2547
2548         * printcmd.c (disassemble_command): Remove obsolete function.
2549         (_initialize_printcmd): Do not create disassemble command here.
2550         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2551         disassemble command.
2552         (init_cli_cmds): Create disassemble command here instead.
2553
2554 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2555
2556         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2557
2558 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2559
2560         * regcache.h (regcache_cooked_read_using_offset_hack)
2561         (regcache_cooked_write_using_offset_hack): Delete declarations.
2562         (register_changed): Delete declaration.
2563         * regcache.c (regcache_cooked_read_using_offset_hack)
2564         (regcache_cooked_write_using_offset_hack): Delete functions.
2565         (cooked_xfer_using_offset_hack): Delete function.
2566         (register_changed): Delete function.
2567
2568 2002-11-07  Jim Blandy  <jimb@redhat.com>
2569
2570         * macroscope.c: #include "complaints.h".
2571         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2572         but not in the macro table.
2573         * Makefile.in (macroscope.o): Record dependency.
2574
2575 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2576
2577         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2578
2579 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2580
2581         * regcache.c (deprecated_registers_fetched): Update.
2582         * regcache.h (deprecated_registers_fetched): Rename
2583         registers_fetched.
2584         * remote-vxsparc.c (vx_read_register): Update.
2585         * remote-vxmips.c (vx_read_register): Update.
2586         * remote-vx68.c (vx_read_register): Update.
2587         * irix5-nat.c (fetch_core_registers): Update.
2588         * mipsm3-nat.c (fetch_inferior_registers): Update.
2589         * sun3-nat.c (fetch_inferior_registers): Update.
2590         * symm-nat.c (fetch_inferior_registers): Update.
2591         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2592         (fetch_core_registers): Update.
2593         (fetch_kcore_registers): Update.
2594         * mips-nat.c (fetch_inferior_registers): Update.
2595         * corelow.c (get_core_registers): Update.
2596         * a68v-nat.c (fetch_inferior_registers): Update.
2597
2598 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2599
2600         Put in place the framework necessary for multiarching the hppa targets.
2601         * hppa-tdep.c (hppa_gdbarch_init): New function.
2602         (hppa_dump_tdep): New function.
2603         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2604         tdep structure dumper.
2605         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2606         until the multi-arching conversion has partially been completed.
2607
2608 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2609
2610         * valops.c (value_assign): Merge lval_register case into
2611         lval_reg_frame_relative.  Use frame_register and
2612         regcache_cooked_write instead of get_saved_register and
2613         write_register_bytes.  After flushing the register cache, try to
2614         re-select the selected frame.
2615
2616 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2617
2618         * regcache.h (deprecated_register_valid): Rename register_valid.
2619         * regcache.c: Update.
2620         * ia64-aix-nat.c: Update.
2621         * i386gnu-nat.c: Update.
2622         * alpha-nat.c: Update.
2623         * sparc-nat.c: Update.
2624         * lynx-nat.c: Update.
2625         * remote-mips.c: Update.
2626
2627 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2628
2629         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2630         to end of file, to be more consistent with the pratice followed
2631         by other targets.
2632
2633 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2634
2635         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2636         (print_float_info): Print registers in float_reggroup.
2637         (print_vector_info): Print registers in vector_reggroup.
2638         (default_print_registers_info): When all, print registers in
2639         all_reggroup.  Otherwize, print registers in general_reggroup.
2640         (registers_info): Rewrite.  Add support for register groups.
2641         Eliminate a goto.
2642
2643 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2644
2645         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2646         ages.
2647         (symtab_symbol_info): Remove eons old ifdeffed out code.
2648         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2649         command.
2650
2651 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2652
2653         * c-exp.y: Add missing semi-colons.
2654         * f-exp.y: Add missing semi-colons.
2655         * m2-exp.y: Add missing semi-colons.
2656         * p-exp.y: Add missing semi-colons.
2657         Add empty action to start rule to avoid a type clash error when
2658         building with bison >= 1.50.
2659
2660 2002-11-06  Jim Blandy  <jimb@redhat.com>
2661
2662         * macrotab.h (struct macro_source_file): Doc fix.
2663
2664 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2665
2666         * varobj.c (child_exists, cplus_number_of_children): Change
2667         STREQ macro references to strcmp.
2668         (cplus_name_of_child): Change code to handle the fact that
2669         fields are not necessarily contiguous with regards to their 
2670         access control. This is a fix for PR gdb/792.
2671
2672 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2673
2674         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2675         * gdbarch.h, gdbarch.c: Regnerate.
2676         * frame.h (frame_register): Declare.
2677         * frame.c (frame_register): New function.
2678         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2679         GET_SAVED_REGISTER, otherwize call
2680         generic_unwind_get_saved_register.
2681         (frame_register_read): Use frame_register instead of
2682         get_saved_register.
2683
2684 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2685         
2686         From Jim Ingham  <jingham@apple.com>:
2687         * event-top.c (gdb_disable_readline): New function.
2688         (_initialize_event_loop): Move comment.
2689
2690 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2691
2692         * event-loop.c (start_event_loop): Add comment.
2693         Update copyright.
2694
2695 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2696
2697         * infcmd.c (default_print_registers_info): Do not call
2698         PRINT_REGISTER_HOOK.
2699
2700 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2701
2702         * sparc-tdep.c (sparc_print_register_hook): Make static.
2703         (sparc_print_registers_info): New function.
2704         (sparc_do_registers_info): New function.
2705         (sparclet_print_registers_info): New function.
2706         (sparclet_do_registers_info): New function.
2707         (do_sparc_print_registers_info): New function.
2708         (sparc_print_registers): New static function, clone of infcmd.c's
2709         default_print_registers_info.
2710         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2711         (sparclet_do_registers_info): Declare.
2712         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2713         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2714         Re-define.
2715         (sparc_do_registers_info): Declare.
2716         (PRINT_REGISTER_HOOK): Delete macro.
2717         (sparc_print_register_hook): Delete declaration.
2718
2719 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2720
2721         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2722         functions.
2723         (lookup_symbol_aux_local): New function.
2724         (lookup_symbol_aux_symtabs): New function.
2725         (lookup_symbol_aux_psymtabs): New function.
2726
2727 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2728
2729         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2730         previous values of 'objfile' and 'block'.
2731
2732 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2733
2734         * values.c (value_change_enclosing_type): Set 
2735         enclosing_type field correctly also for the case where 
2736         more memory needs to be allocated.
2737
2738 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2739
2740         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2741         of puts_filtered.
2742
2743         * i387-tdep.c (i387_print_float_info): Replace calls to
2744         register_read and deprecated_read_register_gen with calls to
2745         frame_register_read, and make the necessary adjustments to the
2746         surrounding code.
2747
2748 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2749
2750         * gdbarch.sh (register_reggroup_p): Allow default value.
2751         * gdbarch.h, gdbarch.c: Regenerate.
2752
2753 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2754
2755         * regcache.h: Add coment indicating replacements for deprecated
2756         functions.
2757
2758 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2759
2760         * reggroups.h, reggroups.c: New files.
2761         * regcache.c: Include "reggroups.h".
2762         (enum regcache_dump_what): Add `regcache_dump_groups'.
2763         (regcache_dump): Contract size of the "Type" column.  When
2764         specified, dump the register's groups.
2765         (maintenance_print_register_groups): New function.
2766         (_initialize_regcache): Add command `maint print register-groups'.
2767         * Makefile.in (COMMON_OBS): Add reggroups.o
2768         (SFILES): Add reggroups.c.
2769         (reggroups_h): Define.
2770         (regcache.o, gdbarch.o): Update dependencies.
2771         (reggroups.o): Specify dependencies.
2772         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2773         Add opaque declaration for `struct reggroup' in generated .h file.
2774         Include "reggroups.h" in generated .c file.
2775         gdbarch.h, gdbarch.c: Re-generate.
2776
2777 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2778
2779         * regcache.h (deprecated_read_register_gen): Rename
2780         read_register_gen.
2781         (deprecated_write_register_gen): Rename write_register_gen.
2782         * i387-tdep.c: Update.
2783         * x86-64-linux-nat.c: Update
2784         * wince.c: Update.
2785         * thread-db.c: Update.
2786         * win32-nat.c: Update.
2787         * mips-tdep.c: Update.
2788         * d10v-tdep.c: Update.
2789         * cris-tdep.c: Update.
2790         * remote-sim.c: Update.
2791         * remote-rdi.c: Update.
2792         * remote-rdp.c: Update.
2793         * frame.c: Update.
2794         * target.c: Update.
2795         * blockframe.c: Update.
2796         * x86-64-tdep.c: Update.
2797         * xstormy16-tdep.c: Update.
2798         * sh-tdep.c: Update.
2799         * s390-tdep.c: Update.
2800         * rs6000-tdep.c: Update.
2801         * sparc-tdep.c: Update.
2802         * i386-tdep.c: Update.
2803         * dwarf2cfi.c: Update.
2804         * regcache.c: Update.
2805
2806 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2807
2808         New interix-specific files:
2809         * config/i386/nm-interix.h: New file.
2810         * config/i386/interix.mh: New file.
2811         * config/i386/interix.mt: New file.
2812         * i386-interix-nat.c: New file.
2813         * i386-interix-tdep.c: New file.
2814
2815 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2816
2817         * frame.h (deprecated_generic_get_saved_register): Rename
2818         generic_get_saved_register.
2819         * blockframe.c (deprecated_generic_get_saved_register): Update.
2820         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2821         (xstormy16_frame_saved_register): Update.
2822         * sh-tdep.c (sh_gdbarch_init): Update.
2823         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2824         * ia64-tdep.c (ia64_get_saved_register): Update.
2825         * cris-tdep.c (cris_gdbarch_init): Update.
2826         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2827         * arm-tdep.c (arm_gdbarch_init): Update.
2828
2829 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2830
2831         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2832
2833 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2834
2835         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2836         trampolines in sigaction.
2837
2838 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2839
2840         * h8300-tdep.c: Include "gdb_assert.h".
2841         (h8300_print_register): Add gdbarch, file and frame parameters.
2842         Use frame_read_unsigned_register to read the register's value.
2843         Use fprintf_filtered to display output.
2844         (h8300_print_registers_info): Replace h8300_do_registers_info.
2845         (h8300_gdbarch_init): Set print_registers_info.
2846
2847 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2848
2849         * frame.c (frame_read_unsigned_register): New function.
2850         (frame_read_signed_register): New function.
2851         * frame.h (frame_read_unsigned_register): Declare.
2852         (frame_read_signed_register): Declare.
2853
2854 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2855
2856         * h8500-tdep.c (h8500_print_registers_info): New static function,
2857         clone of infcmd.c's default_print_registers_info.
2858         (h8500_do_registers_info): New funtion.
2859         (h8500_print_register_hook): Rename print_register_hook, make
2860         static.
2861
2862         * config/h8500/tm-h8500.h: Update copyright.
2863         (DEPRECATED_DO_REGISTERS_INFO): Define.
2864         (h8500_do_registers_info: Declare.
2865         (PRINT_REGISTER_HOOK): Delete macro.
2866         (print_register_hook): Delete function.
2867
2868 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2869
2870         * z8k-tdep.c (z8k_print_register_hook): Make static.
2871         (z8k_print_registers_info): New static function, clone of
2872         infcmd.c's default_print_registers_info.
2873         (z8k_do_registers_info): New function.  Wrap
2874         z8k_print_registers_info.
2875         * config/z8k/tm-z8k.h: Update copyright.
2876         (PRINT_REGISTER_HOOK): Delete macro.
2877         (z8k_print_register_hook): Delete declaration.
2878         (DEPRECATED_DO_REGISTERS_INFO): Define.
2879         (z8k_do_registers_info): Declare.
2880
2881 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2882
2883         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2884         as this is already provided by value.h, and was actually causing
2885         a compilation error because of a conflict in parameter type
2886         declaration due to a missing const keyword.
2887         (low_text_segment_addres): Fix a compilation warning.
2888
2889 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2890
2891         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2892         registers without a name.
2893         (mips_linux_cannot_store_register): Don't store registers without
2894         a name.
2895
2896 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2897
2898         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2899         out.)
2900         * symtab.h: Delete prototype for find_addr_symbol.
2901
2902 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2903
2904         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2905         DO_REGISTERS_INFO.
2906         gdbarch.h, gdbarch.c: Re-generate.
2907         * infcmd.c (default_print_registers_info): Update reference.
2908         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2909         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2910         * sh-tdep.c (sh_gdbarch_init): Ditto.
2911         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2912         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2913
2914 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2915
2916         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2917         cfi_init_extra_frame_info.
2918         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2919         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2920
2921         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2922         target where necessary.  Add more comments and remove the ones
2923         that don't provide any useful information.
2924
2925         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2926         deprecated_read_register_dummy with
2927         frame_unwind_unsigned_register.
2928
2929         * i386-tdep.c (i386_extract_struct_value_address): Use
2930         regcache_raw_read_unsigned instead of
2931         regcache_cooked_read_unsigned since we know that the register
2932         we're reading isn't a pseudo register.  Rename variable 'val' into
2933         the more descriptive 'addr'.
2934
2935         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2936         (x86_64_push_return_address): Add comment.
2937         (x86_64_pop_frame): Make static.
2938         (examine_argument): Clarify comment.
2939         (x86_64_skip_prologue): Make prolog_expact variable static.
2940
2941         * dwarf2cfi.c: Fix some formatting problems.
2942         (context_cpy, read_encoded_pointer): Clarify comments.
2943
2944         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2945         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2946         i386 target back into x86_64_gdbarch_init.  Add some comments and
2947         remove meaningless ones.
2948
2949 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2950
2951         * complaints.h (struct deprecated_complaint): Rename `struct
2952         complaint'.
2953         * complaints.c (complain): Update.
2954         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2955         incorrect comment indicating that "symfile.h" was being included
2956         for the `struct complaint' definition.
2957         * remote-vx.c: Update.
2958         * objc-lang.c: Update.
2959         * xcoffread.c: Update.
2960         * hpread.c: Update.
2961         * mdebugread.c: Update.
2962         * stabsread.c: Update.
2963         * dwarf2read.c: Update.
2964         * dwarfread.c: Update.
2965         * elfread.c: Update.
2966         * coffread.c: Update.
2967         * stabsread.h: Update.
2968         * dbxread.c: Update.
2969         * buildsym.c: Update.
2970         * gdbtypes.c: Update.
2971         * macrotab.c: Update.
2972
2973 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2974
2975         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2976         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2977         (x86_64_init_abi): ...new function.
2978
2979         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2980         * i386v-nat.c: Include "i386-tdep.h".
2981
2982 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2983
2984         * gdbtypes.c (address_space_name_to_int): Update.
2985         (address_space_int_to_name): Update.
2986         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2987         multi-arch predicate.
2988         (address_class_name_to_type_flags): Ditto.
2989         * gdbarch.h, gdbarch.c: Re-generate.
2990         
2991         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2992
2993 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
2994
2995         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2996
2997 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
2998
2999         * symtab.h (INIT_SAL): Delete macro.
3000         (init_sal): Export.
3001         * symtab.c (init_sal): New function.
3002
3003         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3004         to init_sal function call.
3005         (find_sal_from_funcs_and_line): Ditto.
3006         (all_sals_for_line): Ditto. 
3007         * breakpoint.c (create_internal_breakpoint): Ditto. 
3008         (create_fork_vfork_event_catchpoint): Ditto. 
3009         (create_exec_event_catchpoint): Ditto. 
3010         (parse_breakpoint_sals): Ditto. 
3011         (watch_command_1): Ditto. 
3012         (handle_gnu_4_16_catch_command): Ditto.
3013         (clear_command): Ditto. 
3014         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3015         * infcmd.c (run_stack_dummy): Ditto. 
3016         * infrun.c (process_event_stop_test): Ditto.
3017         (check_sigtramp2): Ditto.
3018         (step_over_function): Ditto. 
3019         * linespec.c (decode_line_2): Ditto. 
3020         (decode_line_1): Ditto. 
3021         * source.c (line_info): Ditto. 
3022         * symtab.c (find_pc_sect_line): Ditto.
3023
3024 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3025
3026         * dwarf2cfi.c (struct context)
3027         (struct context_reg): Moved to dwarf2cfi.h
3028         (context_alloc, frame_state_alloc, context_cpy):
3029         Made extern instead of static, removed prototypes.
3030         * dwarf2cfi.h (struct context)
3031         (struct context_reg): New, moved from dwarf2cfi.c
3032         (context_alloc, frame_state_alloc, context_cpy):
3033         New prototypes.
3034         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3035         Changed from static to extern.
3036         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3037         (LINUX_SIGCONTEXT_FP_OFFSET)
3038         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3039         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3040         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3041         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3042         set_gdbarch_*() calls now use x86-64 specific functions 
3043         instead of DWARF2 CFI ones.
3044         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3045         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3046         (x86_64_init_extra_frame_info): New prototypes.
3047         
3048 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3049
3050         * linespec.c: #include "parser-defs.h".
3051         Delete prototype for find_template_name_end.
3052         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3053
3054 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3055
3056         * NEWS: add recent mi fixes.
3057         * varobj.c (struct varobj): Add new "updated" flag.
3058         (new_variable): Default "updated" flag to 0.
3059         (varobj_set_value): Set "updated" flag to 1 if value
3060         changes.
3061         (varobj_update): Check varobj "updated" flag before
3062         comparing old and refreshed values.  Fix for
3063         PR gdb/702.
3064
3065 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3066
3067         * parse.c (parse_exp_1): Use BLOCK_START.
3068         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3069         SYMBOL_BLOCK_VALUE.
3070         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3071
3072 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3073
3074         * symtab.c: Delete cplusplus_hint.
3075         Delete prototype for find_template_name_end.
3076
3077 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3078
3079         * symtab.h: Update comment.
3080
3081 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3082
3083         * printcmd.c (address_info): Restore quotes in output.
3084         * valops.c (value_of_local): Restore quotes in error message.
3085
3086 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3087
3088         * symtab.c (symbol_demangled_name): New function.
3089         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3090         turning most of it into a function.
3091         (symbol_demangled_name): Export.
3092
3093 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3094
3095         * valops.c (value_of_local): Restore quotes in error message.
3096
3097 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3098
3099         * symtab.c (symbol_init_language_specific): New function.
3100         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3101         turning most of it into a function.
3102         (symbol_init_language_specific): Export.
3103
3104 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3105
3106         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3107         (dwarf_attr_name): Ditto.
3108         (dwarf_type_encoding_name): Ditto.
3109         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3110         (process_die): Handle DW_TAG_namespace,
3111         DW_TAG_imported_declaration, DW_TAG_imported_module.
3112         (read_namespace): New function.
3113
3114 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3115
3116         * configure.in: Define NEW_PROC_API on Interix too.
3117         * configure: Regenerate.
3118
3119 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3120
3121         * configure: Regenerate using the proper version of autoconf.
3122
3123 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3124
3125         * findvar.c (read_var_value): Temporarily disable TLS code, until
3126         complete TLS support is added.
3127
3128 2002-10-21  Jim Blandy  <jimb@redhat.com>
3129             Elena Zannoni  <ezannoni@redhat.com>
3130
3131         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3132         for thread local storage locations.
3133         (struct symbol): Add objfile field.
3134         (SYMBOL_OBJFILE): Define.
3135         * dwarf2read.c (is_thread_local): New static variable.
3136         (new_symbol): If variable is in thread local fill in address class
3137         and objfile appropriately.
3138         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3139         stack operation.
3140         * printcmd.c (address_info): Print the information for thread
3141         local storage variable.
3142         * findvar.c (read_var_value): In case of thread local variable,
3143         defer to the target vector code to compute address.
3144
3145 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3146
3147         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3148         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3149
3150 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3151
3152         * symtab.h (address_class):  Rename
3153         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3154         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3155         * printcmd.c (address_info): Ditto.
3156         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3157
3158 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3159
3160         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3161         DBREG_DRX macro to acces debug registers.
3162
3163         * Makefile.in (i386obsd-tdep.o): New target.
3164
3165         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3166         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3167
3168         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3169         * config/i386/obsd.mt: New file.
3170         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3171         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3172         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3173         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3174         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3175         * i386obsd-tdep.c: New file.
3176
3177 2002-10-19  Adam Fedor  <fedor@gnu.org>
3178
3179         * objc-exp.y (name_not_typename): Fix invalid comment.  
3180
3181 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3182
3183         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3184         to allocate partial syms and macro byte caches.
3185
3186 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3187
3188         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3189
3190 2002-10-18  Adam Fedor  <fedor@gnu.org>
3191
3192         * stabsread.c (find_name_end): New function.
3193         (define_symbol): Use it.
3194
3195 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3196
3197         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3198         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3199         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3200         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3201
3202 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3203
3204         * symfile.h: Add opaque declaration for struct obstack.
3205         Declare obsavestring to take a const char *.
3206         * symfile.c (obsavestring): Make first argument a const char *.
3207
3208 2002-10-16  Adam Fedor  <fedor@gnu.org>
3209
3210         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3211         names when matching breakpoints in current file.
3212
3213 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3214
3215         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3216         (read_tag_pointer_type): Add address class support.
3217         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3218         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3219         New methods.
3220         * gdbarch.h, gdbarch.c: Regenerate.
3221         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3222         (make_type_with_address_space, recursive_type_dump): Add address
3223         class support.
3224         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3225         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3226         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3227
3228 2002-10-16  Klee Dienes  <kdienes@apple.com>
3229
3230         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3231         to get the last character of a char[] buffer, not
3232         name[sizeof(vptr_name)-1].
3233
3234 2002-10-14  Adam Fedor  <fedor@gnu.org>
3235
3236         * symtab.h: New objc_specific struct.
3237         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3238         (SYMBOL_DEMANGLED_NAME): Likewise.
3239
3240 2002-10-14  Adam Fedor  <fedor@gnu.org>
3241
3242         * symfile.c (init_filename_language_table): Add ObjC file extension.
3243
3244 2002-10-14  Adam Fedor  <fedor@gnu.org>
3245
3246         * utils.c (puts_filtered_tabular): New function.
3247         (fprintf_symbol_filtered): Get ObjC demangled name.
3248         * defs.h (puts_filtered_tabular): Declared.
3249
3250 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3251
3252         * c-lang.h (c_type_print_varspec_prefix): Delete.
3253         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3254         ``need_post_space'' parameter.  Adjust all callers.
3255
3256 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3257  
3258         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3259         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3260         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3261         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3262
3263 2002-10-13  Adam Fedor  <fedor@gnu.org>
3264
3265         * source.c (print_source_lines): Update comments.
3266
3267 2002-10-13  Adam Fedor  <fedor@gnu.org>
3268
3269         * valops.c (value_of_local): New function.
3270         (value_of_this): Use it.
3271         * value.h (value_of_local): Declared.
3272
3273 2002-10-13  Adam Fedor  <fedor@gnu.org>
3274
3275         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3276         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3277
3278 2002-10-12  Adam Fedor  <fedor@gnu.org>
3279
3280         * language.c (binop_result_type): Add language_objc to case.
3281         (integral_type): Likewise.
3282         (character_type): Likewise.
3283         (string_type): Likewise.
3284         (boolean_type): Likewise.
3285         (structured_type): Likewise.
3286         (binop_type_check): Likewise.
3287
3288 2002-10-11  Adam Fedor  <fedor@gnu.org>
3289
3290         * printcmd.c (address_info): Print 'self' for ObjC.
3291
3292 2002-10-11  Adam Fedor  <fedor@gnu.org>
3293
3294         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3295         OP_SELF.
3296
3297 2002-10-11  Adam Fedor  <fedor@gnu.org>
3298
3299         * language.h (CAST_IS_CONVERSION): Add language_objc.
3300
3301 2002-10-11  Adam Fedor  <fedor@gnu.org>
3302
3303         * defs.h (enum language): Add language_objc.
3304
3305 2002-10-11  Klee Dienes  <kdienes@apple.com>
3306
3307         * corefile.c (read_memory_typed_address): New function.
3308         * gdbcore.h (read_memory_typed_address): Add prototype.
3309         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3310         to read a value destined for a CORE_ADDR, not read_memory_integer.
3311         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3312         (f77_get_dynamic_lowerbound): Ditto.
3313
3314 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3315
3316         * utils.c (string_to_core_addr): After turning string into
3317         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3318         which will do necessary sign-extension, etc.
3319
3320 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3321
3322         * c-exp.y (THIS): Delete token and grammar rule.
3323         (yylex): Don't return THIS.
3324         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3325         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3326         * demangle.c (cplus_markers): Update comment.  Put '$'
3327         first.  Remove CPLUS_MARKER.
3328         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3329         * jv-exp.y (THIS): Delete token and grammar rule.
3330         (yylex): Don't return THIS.
3331         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3332         * objc-exp.y (THIS): Delete token and grammar rule.
3333         (yylex): Don't return THIS.
3334         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3335         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3336         (read_member_functions): Likewise for opname.
3337         (read_tilde_fields): Use is_cplus_marker.
3338
3339         * defs.h (CPLUS_MARKER): Don't define.
3340         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3341         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3342         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3343         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3344         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3345
3346         * config/i386/tm-i386v4.h: Delete file.
3347         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3348         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3349         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3350         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3351         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3352         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3353         * config/i386/i386v4.mt (TM_FILE): Likewise.
3354         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3355
3356 2002-10-10  Marko Mlinar  <markom@opencores.org>
3357
3358         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3359         accidentially not commited 2002-10-09
3360         * gdbarch.h, gdbarch.c: Re-generate.
3361
3362 2002-10-09  Marko Mlinar  <markom@opencores.org>
3363
3364         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3365         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3366         * gdbarch.h, gdbarch.c: Re-generate.
3367
3368 2002-10-08  Petr Sorfa <petrs@caldera.com>
3369
3370         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3371
3372         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3373         so we can work on more than one compilation unit at a time.  This
3374         helps prepare GDB to handle inter-CU die references.
3375         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3376         the code to be defined before struct comp_unit_head.
3377         (comp_unit_head): Added new members - offset, cu_head,
3378         begin_die, next and dwarf2_abbrevs.
3379         (dwarf2_abbrevs): Removed single static var; now member of
3380         struct comp_unit_head.
3381         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3382         members.
3383         (psymtab_to_symtab_1): Changed to work with the new
3384         struct comp_unit_head.
3385         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3386         constructs the dwarf2_abbrevs[] inside the cu_header.
3387         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3388         dwarf2_abbrev table to clean up.
3389         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3390         handling of dwarf2_abbrevs inside the cu_header.
3391         (read_partial_die): Now supports the call to the new
3392         dwarf2_lookup_abbrev.
3393         (read_full_die): Now supports the call to the new
3394         dwarf2_lookup_abbrev.
3395
3396 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3397
3398         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3399         insure that shell variables, such as "transformed_name" are propagated
3400         to later shell statements in rule.
3401
3402 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3403
3404         * config/i386/nm-i386sco.h: Add protection against
3405         multiple-inclusion.  Include "i386/nm-i386v.h".
3406         (REGISTER_U_ADDR): Remove define.
3407         (i386_register_u_addr): Remove prototype.
3408
3409 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3410
3411         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3412         before treating it as a single-step event.
3413
3414 2002-10-03  Adam Fedor  <fedor@gnu.org>
3415
3416         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3417         (objc_demangle): Remove assignment in if statements, Replace
3418         free with xfree.
3419         (add_msglist): Likewise.
3420         (end_msglist): Likewise.
3421         (complare_selectors): Likewise.
3422         (selectors_info): Likewise.
3423         (compare_classes): Likewise.
3424         (classes_info): Likewise.
3425         (print_object_command): Likewise.
3426         (find_objc_msgcall_submethod): Replace PTR with void *.
3427         * objc-lang.h: Remove check for __STDC__.
3428
3429 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3430
3431         * ui-out.h (ui_out_field_fmt_int): New prototype.
3432         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3433         of field width and alignment.
3434         * stack.c (print_frame_info_base): When printing frame level, use
3435         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3436         PR gdb/192
3437
3438 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3439
3440         * MAINTAINERS: Add self to Write After Approval list.
3441
3442 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3443
3444         * infcmd.c (interrupt_target_command_wrapper): Delete.
3445         (interrupt_target_command): Make non static.
3446         (nofp_registers_info): Make static.
3447         * stack.c (return_command_wrapper): Delete.
3448         (return_command): Make non static.
3449
3450 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3451
3452         * event-top.c (gdb_setup_readline): New function. Code moved from
3453         _initialize_event_loop().
3454         (_initialize_event_loop): Call gdb_setup_readline().
3455
3456 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3457
3458         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3459         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3460         * gdbarch.h, gdbarch.c: Re-generate.
3461
3462 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3463
3464         Fix PR gdb/778
3465         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3466         before recursing.
3467         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3468         of fill_in_vptr_fieldno.
3469
3470 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3471
3472         * inferior.h (registers_info, stepi_command, nexti_command,
3473         continue_command, interrupt_target_command): Export from infcmd.c.
3474         * frame.h (args_info, selected_frame_level_changed_hook,
3475         return_command): Export from stack.c.
3476         * v850ice.c (stepi_command, nexti_command, continue_command): use
3477         prototypes from inferior.h.
3478         * tracepoint.c (registers_info, args_info, locals_info): Use
3479         prototypes from frame.h and inferior.h.
3480         * Makefile.in (mi-main.o): Add dependency on frame.h.
3481
3482 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3483
3484         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3485         value in register 3 adjusted by ppc_gp0_regnum.
3486
3487         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3488
3489 2002-10-02  Marko Mlinar <markom@opencores.org>
3490
3491         * MAINTAINERS: Add myself to the Write After Approval list.
3492
3493 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3494
3495         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3496         of the section for the N64 ABI, fixed.
3497
3498         * config/mips/tm-irix6.h: Include solib.h.
3499
3500 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3501
3502         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3503         GNU operators.
3504
3505 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3506
3507         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3508         and that "mi0" syntax has been removed.
3509
3510 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3511
3512         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3513         * ppc-sysv-tdep.c: #include "gdb_string.h".
3514         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3515         pacify GCC.
3516
3517 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3518
3519         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3520         "vrsave"'s register number.
3521
3522 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3523
3524         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3525         use frame_unwind_signed_register to obtain the PC.
3526         (mips_frame_chain): Handle a generic dummy frame.
3527         (mips_init_extra_frame_info): When a generic dummy frame, don't
3528         re-compute the frame base.
3529         (mips_pop_frame): Handle generic dummy frames.
3530         (mips_gdbarch_init): When generic dummy frames, set
3531         use_generic_dummy_frames, push_dummy_frame to
3532         generic_push_dummy_frame, pc_in_call_dummy to
3533         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3534         generic_save_dummy_frame_tos.
3535
3536 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3537
3538         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3539         against TOP when TOP was explictly set.
3540         (generic_push_dummy_frame): Set TOP to zero.
3541
3542 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3543
3544         * event-loop.c (start_event_loop): Rename variable 'result' to
3545         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3546
3547 2002-09-30  Keith Seitz  <keiths@redhat.com>
3548
3549         * gdb-events.sh (selected_thread_changed): New event.
3550         * gdb-events.c: Regenerated.
3551         * gdb-events.h: Regenerated.
3552
3553 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3554
3555         * MAINTAINERS: Add self to Write After Approval list.
3556
3557 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3558
3559         * disasm.c: New file.  
3560         * disasm.h: New file.  
3561         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3562         (compare_lines): Ditto.
3563         (dump_insns): Ditto.
3564         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3565         argument.
3566         (do_assembly_only): Ditto.
3567         (do_disassembly): Renamed to gdb_disassembly and moved to
3568         disasm.c.  Sdded uiout argument.
3569         * Makefile.in: Add new files.  Reorder SFILES list. Update
3570         dependencies.  Include libgdb.a later in the insight executable.
3571
3572 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3573
3574         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3575         bfd/elf64-alpha-fbsd.c.
3576
3577 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3578
3579         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3580         i386gnu-tdep.c.
3581
3582 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3583
3584         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3585         __FUNCTION__.
3586         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3587         function name.
3588         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3589         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3590         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3591         (S_msg_sig_post_reply): Ditto.
3592         
3593 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3594
3595         * sh-tdep.c (sh_use_struct_convention): Use definition according
3596         to ABI.
3597         (sh_push_arguments): Store in register with correct endianess.
3598         (sh_default_store_return_value): Ditto.
3599         (sh_gdbarch_init): Set sizeof long double to 8.
3600
3601 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3602
3603         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3604         Fix some whitespace problems.
3605
3606 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3607
3608         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3609         (mcore-tdep.o): Ditto.
3610         (ns32k-tdep.o): Ditto.
3611         (ns32knbsd-tdep.o): Ditto.
3612         (sh3-rom.o): Ditto.
3613         (vax-tdep.o): Ditto.
3614         * cris-tdep.c: #include "gdb_string.h"
3615         * mcore-tdep.c: Ditto.
3616         * ns32k-tdep.c: Ditto.
3617         * ns32knbsd-tdep.c: Ditto.
3618         * sh3-rom.c: Ditto.
3619         * vax-tdep.c: Ditto.
3620
3621 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3622
3623         * config/djgpp/fnchange.lst: Add entries for
3624         gdb/testsuite/gdb.c++/m-static files.
3625
3626 2002-09-27  Jim Wilson  <wilson@redhat.com>
3627
3628         * MAINTAINERS: Add myself to the Write After Approval list.
3629
3630 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3631
3632         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3633
3634
3635 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3636
3637         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3638         frame.
3639
3640 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3641
3642         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3643         (rs6000_struct_return_address): Delete variable.
3644         (rs6000_store_struct_return): Update.
3645         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3646         deprecated_extract_struct_value_address.
3647         (rs6000_frame_align): New function.
3648         (rs6000_gdbarch_init): Set frame_align.
3649
3650 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3651
3652         From Grace Sainsbury <graces@redhat.com>:
3653         * Makefile.in (gdbtk-main.o): New target.
3654         (gdb.o): New target.
3655         (main_h): Define.
3656         (main.o): Update dependencies.
3657         (gdb$(EXEEXT)): Add gdb.o.
3658         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3659         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3660         (SUBDIR_GDBTK_CLEAN): Set.
3661         (install-gdbtk): Install the insight binary.
3662         (uninstall-gdbtk): New target.
3663         (all-gdbtk, clean-gdbtk): New rule.
3664         * top.c (use_windows): Default to zero.
3665         * main.c: Include "main.h".
3666         (main): Delete.
3667         (struct captured_main_args): Delete.
3668         (gdb_main): New function.
3669         * main.h: New file.
3670         * gdb.c: New File.
3671
3672 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3673
3674         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3675         (frame_map_regnum_to_name): New function.
3676         (frame_map_name_to_regnum): New function.
3677         * frame.h (frame_map_name_to_regnum): Declare.
3678         (frame_map_regnum_to_name): Declare.
3679         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3680         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3681         * parse.c: Do not include "builtin-regs.h".
3682         (target_map_name_to_register): Delete function.
3683         (write_dollar_variable): Use frame_map_name_to_regnum.
3684         * parser-defs.h (target_map_name_to_register): Delete declaration.
3685         * expprint.c: Include "frame.h".
3686         (print_subexp): Use frame_map_regnum_to_name.
3687         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3688         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3689
3690 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3691
3692         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3693         wasn't saved, and the next innermost frame is a dummy, return the
3694         dummy frame's link register.
3695
3696 2002-09-24  Jim Blandy  <jimb@redhat.com>
3697
3698         Fix from Paul Breed:
3699         * main.c (captured_main): Add a `break' after the case for 'b'.
3700
3701 2002-09-24  Keith Seitz  <keiths@redhat.com>
3702
3703         * varobj.c (c_type_of_child): Use get_target_type instead
3704         of TYPE_TARGET_TYPE.
3705
3706 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3707
3708         * source.c (get_current_or_default_source_symtab_and_line): Remove
3709         function.
3710         (set_default_source_symtab_and_line): New function. Attempts to
3711         determine a source file to list lines from if one is not currently
3712         defined.
3713         (get_current_source_symtab_and_line): Initialize sal.pc and
3714         sal.end fields.
3715         (set_current_source_symtab_and_line): Mark argument as const.
3716         * source.h: Update declarations and comments.
3717         * linespec.c (decode_line_1): Replace call to removed routine above.
3718         * stack.c (print_frame_info_base): Ditto.
3719         * cli/cli-cmds.c (edit_command): Ditto.
3720         (list_command): Ditto.
3721
3722 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3723
3724         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3725         sal.pc and sal.end fields.
3726         (get_current_or_default_source_symtab_and_line): Ditto.
3727         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3728         so we do not cause a new source symtab to be searched for (reverting an
3729         unintentional change from the 2002-09-20 patch).
3730         * scm-lang.c (scm_unpac): Ditto.
3731
3732 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3733
3734         * complaints.c (symfile_explanations): Remove new-line from
3735         ``isolated_message''.
3736         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3737         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3738
3739 2002-09-20  Nick Clifton  <nickc@redhat.com>
3740         
3741         * NEWS: Announce that V850EA ISA is no longer supported.
3742         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3743
3744 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3745
3746         * Makefile.in (c-lang.o): Correct dependencies.
3747         (utils.o): Gather dependencies.
3748         (charset.o): Move.
3749         * c-lang.c: #include "gdb_string.h"
3750
3751 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3752
3753         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3754         * cli/cli-cmds.c (list_command): New function.  Implements the new
3755         cli edit command.
3756         (_init_cli_cmds): Add new command definition.
3757         * gdb.1: Document edit command.
3758         * doc/gdb.texinfo: Document edit command.
3759
3760 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3761
3762         * source.c: Make global variables current_source_symtab and
3763         current_source_line static.
3764         (list_command): Moved to cli/cli-cmds.c.
3765         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3766         (get_first_line_listed): New accessor function.
3767         (get_lines_to_list): New accessor function.
3768         (get_current_source_symtab_and_line): New function. Retrieves the
3769         position in the source code that we consider current.
3770         (get_current_or_default_source_symtab_and_line): New function.
3771         Like the above but attempts to determine a default position if one
3772         is not currently defined.
3773         (set_current_source_symtab_and_line): New function. Sets the source
3774         code position considered current and returns the previously set one.
3775         (clear_current_source_symtab_and_line): Reset stored information about
3776         a current source line.
3777         (_initialize_source): Remove registration for the "list" command and
3778         its alias.
3779         * source.h: Add declarations for the new functions above.
3780         * symtab.h: Remove declarations for the global variables mentioned
3781         above.
3782         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3783         obtain current source line.
3784         * linespec.c (decode_line_1): Ditto.
3785         * macroscope.c (default_macro_scope): Ditto.
3786         * scm-lang.c (scm_unpac): Ditto.
3787         * stack.c (print_frame_info_base): Ditto.
3788         * symfile.c (clear_symtab_users): Ditto.
3789         * symtab.c (decode_line_spec): Ditto.
3790         * cli/cli-cmds.c (list_command): Moved here from source.c.
3791         (ambiguous_line_spec): Moved here from source.c.
3792         (_init_cli_cmds): Add definition for "list" and its alias.
3793         * Makefile.in: Update dependencies.
3794
3795 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3796
3797         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3798         with what gcc thinks is correct.
3799
3800 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3801
3802         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3803         multiple register push instruction.
3804
3805 2002-09-19  Jim Blandy  <jimb@redhat.com>
3806
3807         Add support for distinct host and target character sets.
3808         * charset.c, charset.h: New files.
3809         * c-exp.y: #include "charset.h".
3810         (yylex): Convert character and string literals to the target
3811         character set, before returning them as the semantic value of the
3812         token.
3813         * c-lang.c: #include "charset.h".
3814         (c_emit_char): Use charset-specific methods to recognize
3815         characters with backslash escape forms, to decide which characters
3816         to print literally and which to print using numeric escape
3817         sequences, and to convert target characters to host characters
3818         before printing.
3819         * utils.c: #include "charset.h".
3820         (no_control_char_error): New function.
3821         (parse_escape): Use charset-specific methods to recognize
3822         backslash escapes, parse `control character' notation, and convert
3823         characters from the host character set to the target character set.
3824         * configure.in: Set the default host character set.
3825         Check where to find iconv, and what its argument types might be.
3826         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3827         * Makefile.in (SFILES): List charset.c.
3828         (COMMON_OBS): List charset.o.   
3829         (charset.o): New rule.
3830         (charset_h): New header dependency variable.
3831         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3832         (LIBICONV): New variable, set by configure.
3833         (CLIBS): Include $(LIBICONV) here.
3834         * aclocal.m4, config.in, configure: Regenerated.
3835
3836 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3837
3838         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3839         bison 1.35 warning.
3840
3841 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3842
3843         * gdb_mbuild.sh: New file.
3844
3845 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3846
3847         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3848
3849 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3850
3851         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3852         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3853         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3854         valops.c, value.h: Revert previous change.
3855         
3856 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3857
3858         Preliminary support for Objective-C:
3859         * defs.h (language_objc): New enum value.
3860         (puts_filtered_tabular): Declaration only, exported from utils.c.
3861         (skip_quoted): Delete, declared in completer.h.
3862         * c-exp.y: Include completer.h.
3863         * p-exp.y: Ditto.
3864         * jv-exp.y: Ditto.
3865         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3866         New operator enum values.
3867         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3868         * language.c (binop_result_type): Handle language_objc case.
3869         (integral_type, character_type, string_type, boolean_type,
3870         structured_type, binop_type_check): Ditto.
3871         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3872         (struct objc_specific): Add to general_symbol_info.
3873         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3874         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3875         * parser-defs.h (struct objc_class_str): New struct type.
3876         (start_msglist, end_msglist, add_msglist): Declaration only,
3877         exported from objc-lang.c.
3878         * value.h (value_of_local, value_nsstring, 
3879         call_function_by_hand_expecting_type): Exported from valops.c.
3880         * valops.c (find_function_addr): Export.
3881         (call_function_by_hand_expecting_type): New function.
3882         (value_of_local): New function.
3883         * symfile.c (init_filename_language_table): Add ".m" extension
3884         for Objective-C.
3885         * utils.c (puts_filtered_tabular): New function.
3886         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3887         (set/show demangle): Extend help-string to refer to ObjC.
3888         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3889         * stabsread.c (symbol_reference_defined): Objective-C symbols
3890         may contain colons: make allowances when scanning stabs strings
3891         for colons.
3892         (objc_find_colon): New function.
3893         * printcmd.c (address_info): If language == objc then print
3894         "self" instead of "this".
3895         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3896         OP_NSSTRING, and OP_SELF.
3897         (prefixify_subexp): Ditto.
3898         * source.c (print_source_lines): Mention objc in comment.
3899         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3900         method names.
3901
3902 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3903
3904         * complaints.h: Update copyright.
3905         (struct complaints): Declare.
3906         (struct complaint): Make `message' constant.
3907         (internal_complaint): Declare.
3908         (complaint): Declare.
3909         (complaint_root): Delete declaration.
3910         (symfile_complaints): Delete declaration.
3911         (struct complaints): Add opaque declaration.
3912         (clear_complaints): Add a complaints parameter.
3913         * complaints.c: Update copyright.
3914         (enum complaint_series): Define.
3915         (complaint_root): Delete.
3916         (struct complaints): Define.
3917         (complaint_sentinel, symfile_complaint_book): New variables.
3918         (symfile_explanations, symfile_complaints): New variables.
3919         New variables.
3920         (get_complaints): New function.
3921         (vcomplaint): New function.
3922         (complaint): New function.
3923         (internal_complaint): New function.
3924         (complain): Call vcomplain with symfile_complaint.
3925         (clear_complaints): Rewrite.
3926         (_initialize_complaints): Use add_setshow_command.
3927         * Makefile.in (complaints.o): Update dependencies.
3928         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3929         to call to clear_complaints.
3930         (new_symfile_objfile, reread_symbols): Ditto.
3931         (oldsyms_complaint): Delete.
3932         (empty_symtab_complaint, unknown_option_complaint): Delete.
3933         (free_named_symtabs): Use complaint instead of complain.
3934
3935 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3936
3937         Contributed by Apple Computer, Inc.  Merged with current sources
3938         by Adam Fedor <fedor@doc.com> [cagney].
3939         
3940         * objc-lang.c: First clean-up round: comments, indentation.
3941         * objc-lang.h: Ditto.
3942         * objc-lang.y: Ditto.
3943
3944 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3945
3946         * maint.c (maintenance_internal_error): Print the parameter as the
3947         error message.
3948         (maintenance_internal_warning): New function.
3949         (_initialize_maint_cmds): Add command `maint internal-warning'.
3950
3951         * defs.h (internal_warning, internal_vwarning): Declare.
3952         * utils.c (struct internal_problem): Define.
3953         (internal_vproblem): New function.
3954         (internal_warning): New function.
3955         (internal_vwarning): New function.
3956         (internal_warning_problem, internal_error_problem): New variables.
3957         (internal_verror): Just call internal_vproblem.
3958
3959 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3960
3961         * objc-lang.c: New file, support for Objective-C.
3962         Preliminary check-in, not yet integrated into gdb.
3963         * objc-lang.h: New file.
3964         * objc-exp.y:  New file.
3965
3966 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3967
3968         * infrun.c (signal_stop_update): Convert definition to ISO C.
3969         (signal_print_update): Ditto.
3970         (signal_pass_update): Ditto.
3971         * inflow.c (terminal_save_ours): Ditto.
3972
3973         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3974         comments.
3975         
3976         * config/djgpp/fnchange.lst: Handle name clashes between
3977         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3978         bfd/coff-tic80.c.
3979
3980         * i386-linux-tdep.h: Fix tipo.
3981
3982 2002-09-18  Adam Fedor  <fedor@gnu.org>
3983
3984         * MAINTAINERS: Add myself to the Write After Approval list.
3985
3986 2002-09-18  Jim Blandy  <jimb@redhat.com>
3987
3988         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3989         texthigh and textlow to reader-specific structs caused
3990         objfile_relocate to miss them.  This is fixable, but the work that
3991         the change was supposed to prepare GDB for never got done anyway.
3992
3993 2002-09-18  David Carlton  <carlton@math.stanford.edu>
3994
3995         * MAINTAINERS: Alphabetize Write After Approval list.
3996
3997 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
3998
3999         Fix PR gdb/709
4000         * values.c (value_static_field): Call read_var_value.
4001
4002 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4003
4004         * valops.c (hand_function_call): Align the initial stack pointer
4005         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4006         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4007         return value.
4008         * mips-tdep.c (mips_frame_align): New function.
4009         (mips_gdbarch_init): Set frame_align.
4010         * gdbarch.sh (FRAME_ALIGN): New method.
4011         * gdbarch.h, gdbarch.c: Re-generate.
4012
4013 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4014
4015         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4016         registers.
4017
4018 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4019
4020         * NEWS: Mention that MIPS $fp behavior changed.
4021         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4022         reference to FP_REGNUM.
4023         (mipsnbsd_cannot_store_register): Ditto.
4024         * mips-linux-nat.c: Update copyright.
4025         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4026         (mips_linux_cannot_store_register): Ditto.
4027         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4028         * config/mips/tm-mips.h: Update copyright.
4029         (FP_REGNUM): Delete macro.
4030         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4031         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4032         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4033         (mips_r3041_reg_names, mips_r3051_reg_names)
4034         (mips_r3081_reg_names): Replace "fp" with "".
4035         Fix PR gdb/480.
4036
4037 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4038
4039         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4040         generic_read_register_dummy() (PR gdb/703).
4041         (avr_push_return_address): #if 0 out unused vars.
4042         (avr_gdbarch_init): Enable use of avr_push_return_address().
4043
4044 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4045
4046         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4047         RTE will take care of it.
4048
4049 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4050
4051         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4052         invalid, return SP_REGNUM.
4053
4054 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4055
4056         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4057         point registers without sign extension.
4058
4059 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4060
4061         * blockframe.c (deprecated_read_register_dummy): Rename
4062         generic_read_register_dummy.
4063         * frame.c (frame_unwind_signed_register): New function.
4064         (frame_unwind_unsigned_register): New function.
4065         * frame.h (frame_unwind_signed_register): Declare.
4066         (frame_unwind_unsigned_register): Declare.
4067         (deprecated_read_register_dummy): Rename
4068         generic_read_register_dummy.
4069
4070         * h8300-tdep.c (h8300_frame_chain): Update.
4071         (h8300_frame_saved_pc): Update.
4072         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4073         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4074         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4075         (s390_frame_chain): Update.
4076         * v850-tdep.c (v850_find_callers_reg): Update.
4077         (v850_frame_saved_pc): Update.
4078         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4079         (m32r_find_callers_reg): Update.
4080         (m32r_frame_saved_pc): Update.
4081         * sh-tdep.c (sh_find_callers_reg): Update.
4082         (sh64_get_saved_pr): Update.
4083         (sh_init_extra_frame_info): Update.
4084         (sh_init_extra_frame_info): Update.
4085         (sh64_init_extra_frame_info): Update.
4086         (sh64_init_extra_frame_info): Update.
4087         * mcore-tdep.c (mcore_find_callers_reg): Update.
4088         (mcore_frame_saved_pc): Update.
4089         (mcore_init_extra_frame_info): Update.
4090         * i386-tdep.c (i386_frame_saved_pc): Update.
4091         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4092         (ia64_init_extra_frame_info): Update.
4093         (ia64_init_extra_frame_info): Update.
4094         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4095         * cris-tdep.c (cris_init_extra_frame_info): Update.
4096         * avr-tdep.c (avr_frame_chain): Update.
4097         (avr_init_extra_frame_info): Update.
4098         (avr_frame_saved_pc): Update.
4099         * arm-tdep.c (arm_find_callers_reg): Update.
4100         (arm_init_extra_frame_info): Update.
4101         (arm_frame_saved_pc): Update.
4102
4103 2002-09-17  Tom Tromey  <tromey@redhat.com>
4104
4105         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4106         is "'".
4107
4108 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4109
4110         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4111         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4112         NEXT_PROLOGUE_INSN.
4113         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4114         NEXT_PROLOGUE_INSN.
4115
4116 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4117
4118         * osfsolib.c: Remove file, replaced by solib-osf.c.
4119         * Makefile.in: Remove compilation rules for osfsolib.c.
4120
4121 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4122
4123         * cp-valprint.c (cp_print_class_method): Correct args to
4124         check_stub_method_group.
4125
4126 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4127
4128         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4129         `set architecture'.  Unify naming convention of functions.
4130         (h8300_skip_prologue): Improve prologue analysis.
4131         (h8300_push_arguments): Rewritten to more closely match GCC's
4132         bizarre argument-passing behavior, along with the comment describing
4133         said behavior.
4134         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4135         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4136         sim, remote-e7000.c, remote-hms.c and remote.c
4137
4138 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4139
4140         * i386-tdep.c (gdb_print_insn_i386): Removed.
4141         (i386_print_insn): New function.
4142         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4143         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4144         tm_print_insn_info.
4145
4146 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4147
4148         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4149         zero.
4150
4151 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4152
4153         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4154         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4155         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4156
4157 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4158
4159         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4160
4161 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4162
4163         * gdbtypes.c (check_stub_method): Make static.
4164         (check_stub_method_group): New function.
4165         * gdbtypes.h: Update prototypes.
4166         * cp-support.c: New file.
4167         * cp-support.h: New file.
4168
4169         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4170         (update_method_name_from_physname): New function.
4171         (read_member_functions): Correct method names for operators
4172         and v3 constructors/destructors.  Separate v2 constructors and
4173         destructors.
4174         * Makefile.in (stabsread.o): Update dependencies.
4175         (SFILES): Add cp-support.c.
4176         (COMMON_OBS): Add cp-support.o.
4177         (cp_support_h, cp-support.o): Add.
4178
4179         * cp-valprint.c (cp_print_class_method): Call
4180         check_stub_method_group instead of check_stub_method.  Remove
4181         extraneous QUITs.
4182         * p-valprint.c (pascal_object_print_class_method): Likewise.
4183         * valops.c (search_struct_method): Likewise.
4184         (find_method_list, value_struct_elt_for_reference): Likewise.
4185
4186 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4187
4188         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4189         * gdbarch.h, gdbarch.c: Regenerate.
4190
4191 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4192
4193         * frame.c (find_saved_register): Delete function.
4194         * frame.h (find_saved_register): Delete declaration.
4195         Fix PR gdb/631.
4196
4197 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4198
4199         * mips-tdep.c (read_next_frame_reg): Re-hack using
4200         frame_register_unwind.
4201
4202 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4203
4204         * mips-tdep.c (mips_get_saved_register): Re-hack using
4205         frame_register_unwind.
4206
4207 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4208
4209         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4210         vector. Will be useful for Interix.  
4211         * gdbarch.h, gdbarch.c: Regenerate.
4212
4213         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4214         name of the malloc function by NAME_OF_MALLOC.
4215
4216 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4217
4218         * value.h (find_function_in_inferior): Add const keyword to
4219         one of the parameters. Allows us to invoke this function with
4220         a const char *.
4221         * valops.c (find_function_in_inferior): Likewise.
4222
4223 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4224
4225         * exec.c (xfer_memory): Fix compilation warning with old versions
4226         of GCC.
4227         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4228
4229 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4230
4231         * symtab.h: Run through gdb_indent.h.
4232         Add 2002 to Copyright year list.
4233
4234 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4235
4236         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4237         mach constants.
4238         * MAINTAINERS: Add myself to write after approval list.
4239
4240 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4241
4242         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4243
4244 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4245
4246         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4247         Interix.
4248
4249 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4250
4251         * procfs.c (do_detach): Clear current signal, not just fault.
4252         Corrects problem with breakpoint trap signal leaking to detached
4253         process on Tru64.
4254
4255 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4256
4257         * buildsym.c (finish_block): Protect against null pointer.
4258
4259 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4260
4261         * infcmd.c (default_print_registers_info): Send all output to
4262         ``file'' instead of ``gdb_stdout''.
4263
4264 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4265
4266         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4267         LONGEST, and use signed register read (addresses are sign-
4268         extended for mips).
4269
4270 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4271
4272         * event-loop.c (gdb_do_one_event): Make public.
4273         * event-loop.h (gdb_do_one_event): Declare.
4274
4275 2002-09-10  Jeff Law  <law@redhat.com>
4276
4277         * infttrace.c (child_resume): Simplify and rework to avoid
4278         TT_PROC_CONTINUE.
4279
4280 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4281
4282         * printcmd.c (print_scalar_formatted): "len" is the number of
4283         target bytes, NOT the number of target bits.
4284
4285 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4286
4287         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4288         * top.c (init_main): Set rl_terminal_name.
4289
4290 2002-09-08  Aidan Skinner <aidan@velvet.net>
4291
4292         * ada-lang.c (ada_array_bound, ada_type_match,
4293         _initialize_ada_language): Fix K&R definitions.
4294         * ada-tasks.c (get_current_task): Fix K&R definitions.
4295         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4296                         
4297 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4298
4299         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4300         Add XP.
4301
4302 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4303
4304         * i386-tdep.c (i386_register_virtual_type,
4305         i386_register_convertible, i386_register_convert_to_virtual,
4306         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4307         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4308         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4309         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4310         Don't set push_arguments twice.
4311
4312         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4313         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4314         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4315         sigtramp_end to NULL.
4316         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4317         defines.
4318         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4319
4320         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4321         whitespace.
4322
4323         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4324         * gdbarch.h, gdbarch.c: Re-generate.
4325         * blockframe.c (find_pc_sect_partial_function): Convert to use
4326         SIGTRAMP_START_P predicate.
4327
4328 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4329
4330         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4331         generic_dummy_frame method and old method.  Also distinguish
4332         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4333         (arm_extract_return_value): Use new regcache method.
4334
4335         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4336         adjustment that doesn't conform to the ABI.
4337         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4338         saved regcache, not from current regcache.
4339
4340 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4341
4342         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4343         * README: Update.
4344
4345 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4346
4347         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4348         if arm_apcs_32 is false.
4349
4350 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4351
4352         GDB 5.3 branch created.
4353
4354 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4355
4356         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4357         generic_unwind_get_saved_register.
4358
4359 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4360
4361         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4362         argument (PR gdb/653).  Update call to smash_to_method_type.
4363         (read_structure_scope): Update call to dwarf2_add_member_fn.
4364
4365 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4366
4367         * x86-64-linux-tdep.c: Include gdb_string.h
4368         * x86-64-linux-nat.c: Ditto.
4369
4370 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4371
4372         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4373         when YYDEBUG is set to 1.  
4374         * c-exp.y: Likewise.
4375         * f-exp.y: Likewise.
4376         * jv-exp.y: Likewise.
4377         * m2-exp.y: Likewise.
4378         * p-exp.y: Likewise.
4379
4380 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4381
4382         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4383         dependency list.
4384         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4385         solib_svr4_fetch_link_map_offsets to
4386         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4387         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4388         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4389         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4390         solib-svr4.o, and solib-legacy.o.
4391         * config/i386/tm-nbsd.h: Include solib.h.
4392
4393 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4394
4395         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4396         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4397         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4398         comment noting that this needs its own target configuration.
4399         * config/i386/nbsd.mt: New file.
4400         * config/i386/nbsdaout.mt: Remove.
4401         * config/i386/nbsdelf.mt: Ditto.
4402         * config/i386/tm-nbsdaout.h: Ditto. 
4403
4404 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4405
4406         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4407         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4408         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4409         tdep->sigtramp_end.
4410         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4411         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4412         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4413
4414 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4415
4416         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4417         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4418         * i386-tdep.h (i386bsd_init_abi): New prototype.
4419         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4420         function declaration.
4421         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4422         for NetBSD-a.out or NetBSD-ELF.
4423         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4424         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4425         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4426         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4427         and nbsd-tdep.h.
4428         (i386nbsd_pc_in_sigtramp): New function.
4429         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4430         i386nbsd_pc_in_sigtramp.
4431         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4432         and i386nbsdelf_init_abi OS ABI handlers.
4433         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4434         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4435
4436 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4437
4438         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4439         registers if the target really has them.
4440
4441 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4442
4443         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4444         than nbsd-tdep.h.
4445
4446 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4447
4448         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4449         list.
4450         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4451         (alphanbsd_skip_sigtramp_frame): New functions. 
4452         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4453         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4454         to alphanbsd_sigcontext_addr. 
4455
4456 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4457
4458         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4459         list.
4460         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4461         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4462         nbsd_pc_in_sigtramp. 
4463         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4464         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4465         * nbsd-tdep.c: Include gdb_string.h.
4466         (nbsd_pc_in_sigtramp): New function. 
4467         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4468         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4469         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4470         ppcnbsd_pc_in_sigtramp. 
4471         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4472         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4473         shnbsd_pc_in_sigtramp. 
4474         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4475         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4476         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4477
4478 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4479
4480         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4481         watchpoints to NULL.
4482         (insert_breakpoints): set val field of watchpoints if NULL.
4483
4484
4485 2002-08-29  Jim Blandy  <jimb@redhat.com>
4486
4487         * symtab.c (lookup_symbol_aux): In the cases where we find a
4488         minimal symbol of an appropriate name and use its address to
4489         select a symtab to read and search, use `name' (as passed to us)
4490         as the demangled name when searching the symtab's global and
4491         static blocks, not the minsym's name.
4492
4493 2002-08-29  Keith Seitz  <keiths@redhat.com>
4494
4495         * stack.c (print_frame_info_base): Always set current_source_symtab
4496         and current_source_line.
4497
4498 2002-08-29  Donn Terry  <donnte@microsoft.com>
4499
4500         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4501
4502 2002-08-28  Keith Seitz  <keiths@redhat.com>
4503
4504         * stack.c (select_frame): Add FIXME concerning selected-frame
4505         events.
4506         (select_frame_command): Send selected-frame-level-changed
4507         event notification, but only if the level actually changed.
4508         (up_silently_base): Add selected-frame-level-changed event
4509         notification.
4510         (down_silently_base): Likewise.
4511
4512 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4513
4514         * Makefile.in: Update dependencies for all gdb/*.c files.
4515
4516 2002-08-27  Tom Tromey  <tromey@redhat.com>
4517
4518         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4519         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4520         Update dependencies.
4521         * i387-tdep.c: Include gdb_string.h.
4522         * osabi.c: Likewise.
4523         * i386-linux-nat.c: Likewise.
4524         * lin-lwp.c: Likewise.
4525         * ax-gdb.c: Likewise.
4526         * signals/signals.c: Likewise.
4527         * jv-valprint.c: Likewise.
4528         * p-lang.c: Likewise.
4529         * c-valprint.c: Likewise.
4530         * cp-abi.c: Likewise.
4531
4532 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4533
4534         * cli/cli-script.h (copy_command_lines): Export.
4535         * breakpoint.c: Include cli/cli-script.h.
4536         * Makefile.in (breakpoint.o): Update dependencies.
4537
4538 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4539
4540         * breakpoint.c (insert_breakpoints): Protect all references
4541         to 'process_warning'.  Shorten long lines.
4542
4543 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4544
4545         * cli/cli-script.c (copy_command_lines): New function.
4546         * defs.h (copy_command_lines): Export.
4547         * testsuite/gdb.base/commands.exp: New tests for commands
4548         attached to a temporary breakpoint, and for commands that
4549         delete the breakpoint they are attached to.
4550         
4551 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4552
4553         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4554         pointer to the breakpoint commands struct, make a new copy
4555         of the struct and point to that.
4556         (bpstat_clear): Free the commands struct.
4557         (bpstat_clear_actions): Free the commands struct.
4558         (bpstat_do_actions): Free the command actions.  Also execute
4559         the local cleanups, instead of deleting them.
4560         (delete_breakpoint): Leave the commands field of the bpstat
4561         chain alone -- it will be freed later.
4562
4563 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4564
4565         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4566         deleted in 2002-08-20 commit.  This function is still used by
4567         ppc-linux-nat.c.
4568
4569 2002-08-26  Keith Seitz  <keiths@redhat.com>
4570
4571         * gdb-events.sh: Add selected-frame-level-changed event.
4572         * gdb-events.c: Regenerated.
4573         * gdb-events.h: Regenerated.
4574         
4575 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4576
4577         Fix PR gdb/393:
4578         * inflow.c (terminal_save_ours): New function to save terminal
4579         settings.
4580         * inferior.h (terminal_save_ours): Declare.
4581         * target.c (debug_to_terminal_save_ours): New function.
4582         (cleanup_target): Defaults to_terminal_save_ours.
4583         (update_current_target): Inherit to_terminal_save_ours.
4584         (setup_target_debug): Set to_terminal_save_ours.
4585         * target.h (target_terminal_save_ours): New to save terminal settings.
4586         (target_ops): New member to_terminal_save_ours.
4587         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4588         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4589         * inftarg.c (init_child_ops): Likewise.
4590         * m3-nat.c (init_m3_ops): Likewise.
4591         * procfs.c (init_procfs_ops): Likewise.
4592         * wince.c (init_child_ops): Likewise.
4593         * win32-nat.c (init_child_ops): Likewise.
4594         * sol-thread.c (init_sol_thread_ops): Likewise.
4595
4596 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4597
4598         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4599         use regcache_* functions.
4600         (i386_gdbarch_init): Set store_return_value instead of
4601         deprecated_store_return_value.
4602
4603         * regcache.c (regcache_raw_write_signed,
4604         regcache_raw_write_unsigned): New functions.
4605         * regcache.h (regcache_raw_write_signed,
4606         regcache_raw_write_unsigned): New prototypes.
4607
4608 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4609
4610         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4611         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4612         source file dependencies.  Cleanup corresponding generator rules.
4613
4614 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4615
4616         * regcache.h (register_offset_hack): Declare.
4617         (regcache_cooked_read_using_offset_hack): Declare.
4618         (regcache_cooked_write_using_offset_hack): Declare.
4619
4620         * regcache.c (register_offset_hack): New function.
4621         (regcache_cooked_read_using_offset_hack): New function.
4622         (regcache_cooked_write_using_offset_hack): New function.
4623         (regcache_dump): Check that the registers, according to their
4624         offset, are packed hard against each other.
4625         (cooked_xfer_using_offset_hack): New function.
4626
4627 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4628
4629         * regcache.c (struct regcache_descr): Add field register_type.
4630         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4631         in as a parameter
4632         (init_regcache_descr): Initialize register_type.  Pass the descr
4633         to init_legacy_regcache_descr.  Use register_type instead of
4634         REGISTER_VIRTUAL_TYPE.
4635         (register_type): New function.
4636         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4637         * regcache.h (register_type): Declare.
4638
4639 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4640
4641         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4642         instead of deprecated_store_return_value.  Fix fallout from
4643         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4644
4645 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4646
4647         * regcache.c (max_register_size): New function.
4648         (init_legacy_regcache_descr): Ensure that max_register_size is
4649         large enough for REGISTER_VIRTUAL_SIZE.
4650         * regcache.h (max_register_size): Declare.
4651
4652 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4653
4654         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4655         store_return_value.
4656         (e500_extract_return_value): Change type of valbuf pointer to
4657         void.
4658
4659 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4660
4661         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4662         workaround.
4663
4664         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4665         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4666         long long) to prevent compiler warning on 64-bit systems.
4667
4668 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4669
4670         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4671         (DEPRECATED_STORE_RETURN_VALUE): New method.
4672         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4673         * gdbarch.h, gdbarch.c: Re-generate.
4674
4675         * values.c (set_return_value): Pass current_regcache to
4676         STORE_RETURN_VALUE.
4677         * arch-utils.h (legacy_store_return_value): Declare.
4678         * arch-utils.c (legacy_store_return_value): New function.
4679         (legacy_extract_return_value): Update parameters.
4680
4681         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4682         STORE_RETURN_VALUE.
4683         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4684         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4685         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4686         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4687         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4688         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4689         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4690         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4691         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4692         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4693
4694         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4695         * i386-tdep.c (i386_extract_return_value): Update.
4696         * arch-utils.c (legacy_extract_return_value): Update.
4697         * frv-tdep.c (frv_gdbarch_init): Update.
4698         * cris-tdep.c (cris_gdbarch_init): Update.
4699         * d10v-tdep.c (d10v_gdbarch_init): Update.
4700         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4701         * m68k-tdep.c (m68k_gdbarch_init): Update.
4702         * mcore-tdep.c (mcore_gdbarch_init): Update.
4703         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4704         * s390-tdep.c (s390_gdbarch_init): Update.
4705         * sparc-tdep.c (sparc_gdbarch_init): Update.
4706         * sh-tdep.c (sh_gdbarch_init): Update.
4707         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4708         * v850-tdep.c (v850_gdbarch_init): Update.
4709         * avr-tdep.c (avr_gdbarch_init): Update.
4710         * ia64-tdep.c (ia64_gdbarch_init): Update.
4711         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4712         * vax-tdep.c (vax_gdbarch_init): Update.
4713         * alpha-tdep.c (alpha_gdbarch_init): Update.
4714         * arm-tdep.c (arm_gdbarch_init): Update.
4715         * mips-tdep.c (mips_gdbarch_init): Update.
4716         * i386-tdep.c (i386_gdbarch_init): Update.
4717
4718 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4719
4720         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4721         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4722
4723 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4724
4725         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4726         problems.
4727
4728 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4729
4730         * infrun.c (handle_inferior_event): Move a comment outside of a
4731         function call, in order to avoid indent reformatting this part
4732         of the code in an unreadable way.
4733
4734 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4735
4736         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4737         when breakpoints fail. Move general breakpoint error messages to
4738         insert_breakpoints.  
4739         * breakpoint.c (insert_breakpoints): Change warnings when
4740         breakpoints are nto inserted to specify the type. Remove call to
4741         memory_error when hardware breakpoints can't be inserted. Remove
4742         multiple calls to warning so all messages are sent to the user at
4743         once.
4744         (delete_breakpoints): Make insert error messsages more explicit.
4745
4746 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4747
4748         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4749         gdbserver/ChangeLog.
4750
4751 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4752
4753         * i386-tdep.c: Include "objfiles.h".
4754         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4755         skip_trampoline_code.
4756         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4757         (CPLUS_MARKER): Define to '.'.
4758
4759         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4760         member.
4761         (linux_corefile_thread_callback): Increase args->num_notes.
4762         (linux_make_note_section): Initialize thread_args.num_notes, and
4763         use it to determine whether notes for any threads were created.
4764
4765 2002-08-23  Donn Terry  <donnte@microsoft.com>
4766
4767         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4768         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4769         and PCUNKILL.
4770         (write_with_trace): Conditionalize out the switch branch handling
4771         PCSHOLD if the corresponding macro is not defined. Likewise for
4772         PRSABORT and PRSTOP.
4773         This change will be needed by the Interix port.
4774
4775 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4776
4777         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4778         write_register wherever possible instead of manipulating the
4779         register bytes directly.
4780         Assign VALUE_CONTENTS to a variable and use that.
4781         The GPR numbers are now dependent on the architecture.
4782         
4783 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4784
4785         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4786         ev_offset fields.
4787         (skip_prologue): Add support for BookE/e500 instructions.
4788         (e500_extract_return_value): New function.
4789         (frame_get_saved_regs): Add support for saving ev registers and
4790         pseudo gpr's.
4791         (e500_store_return_value): New function.
4792         (rs6000_gdbarch_init): Move up default intializations of
4793         deprecated_extract_return_value and store_return_value.  Overwrite
4794         init of store_return_value with e500 specific version.
4795         Set extract_return_value for e500.
4796         
4797 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4798
4799         * blockframe.c (generic_call_dummy_register_unwind): Use
4800         regcache_cooked_read to catch cases in which the variable is
4801         stored in a pseudo register.
4802
4803 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4804
4805         * NEWS: Mention that the i960 has been made obsolete.
4806         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4807         i960-tdep.c
4808         (remote-nrom.o): Obsolete target.
4809         (remote-nindy.o, i960-tdep.o): Ditto.
4810         * remote-nrom.c: Make file obsolete.
4811         * remote-nindy.c, remote-vx960.c: Ditto.
4812         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4813         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4814         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4815         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4816         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4817         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4818         i960-*-vxworks* obsolete.
4819         * MAINTAINERS: Note that the i960 is obsolete.
4820
4821 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4822
4823         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4824         detach to allow reinitialization.
4825
4826 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4827
4828         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4829         attempt).
4830
4831 2002-08-22  Jim Blandy  <jimb@redhat.com>
4832
4833         * coffread.c (coff_symfile_read): Don't try to read the line
4834         number table from disk if the image file doesn't have a symbol
4835         table; we'll never actually look at the info anyway, and Windows
4836         ships DLL's with bogus file offsets for the line number data.
4837
4838 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4839
4840         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4841         an e500 executable.
4842
4843 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4844
4845         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4846         (MSYMBOL_SIZE): Replace macro with function.
4847         (DEFAULT_MIPS_TYPE): Delete unused macro.
4848         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4849         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4850
4851 2002-08-21  Jim Blandy  <jimb@redhat.com>
4852
4853         * valops.c (value_cast): Simplify and correct logic for doing a
4854         static cast from a pointer to a base class to a pointer to a
4855         derived class.
4856
4857 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4858
4859         * infcmd.c (default_print_registers_info): Replace
4860         do_registers_info.
4861         (registers_info): Use gdbarch_print_registers_info instead of
4862         DO_REGISTERS_INFO.
4863         * inferior.h (default_print_registers_info): Replace
4864         do_registers_info.
4865         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4866         (DO_REGISTERS_INFO): Change to a predicate function.
4867         * gdbarch.h, gdbarch.c: Regenerate.
4868         
4869 2002-08-21  Keith Seitz  <keiths@redhat.com>
4870
4871         * gdb-events.sh: Add target-changed event.
4872         * gdb-events.c: Regenerated.
4873         * gdb-events.c: Regenerated.
4874         * valops.c (value_assign): Add target-changed event notification
4875         to inlval_register, lval_memory, and lval_reg_frame_relative.
4876
4877 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4878
4879         * NEWS: Add an entry regarding the improvement of the next/step
4880         operation on Alpha Tru64 multi-processor machines.
4881
4882 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4883
4884         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4885         directores.
4886         * Makefile.in: Update all _h macro definitions.
4887         * Makefile.in (install-gdbtk): Move to install section.
4888         (rdi-share/libangsd.a): Move to end of file.
4889
4890 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4891
4892         * frame.c (frame_register_unwind): When a register, set addrp to
4893         the register's byte.
4894
4895 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4896
4897         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4898         used locally, so move them from the target machine header to here.
4899         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4900         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4901         Make static.
4902         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4903
4904 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4905
4906         * NEWS: Mention that the Apollo line was made obsolete.
4907         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4908         m68*-hp-hpux* obsolete.
4909         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4910         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4911         * buildsym.c (make_blockvector): Make static.
4912         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4913         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4914         (ALLDEPFILES): Remove dstread.c.
4915         (dstread.o): Obsolete make rule.
4916         * dstread.c: Makefile obsolete.
4917         * dst.h: Ditto.
4918         * config/m68k/hp300hpux.mt: Ditto.
4919         * config/m68k/hp300hpux.mh: Ditto.
4920         * config/m68k/hp300bsd.mt: Ditto.
4921         * config/m68k/hp300bsd.mh: Ditto.
4922         * config/m68k/apollo68b.mt: Ditto.
4923         * config/m68k/apollo68v.mh: Ditto.
4924         * config/m68k/apollo68b.mh: Ditto.
4925
4926 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4927
4928         * mips-tdep.c (mips_in_return_stub): Make static.
4929         (mips_gdbarch_init): Set in_solib_return_trampoline.
4930         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4931
4932 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4933
4934         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4935         * gdbarch.c, gdbarch.h: Regenerate.
4936         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4937         Add.
4938         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4939
4940 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4941
4942         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4943         (mips_gdbarch_init): Set skip_trampoline_code, 
4944         in_solib_call_trampoline.
4945         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4946         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4947
4948 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4949
4950         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4951
4952         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4953         vector type for ev registers.
4954         (e500_pseudo_register_read): New function.
4955         (e500_pseudo_register_write): New function.
4956         (e500_dwarf2_reg_to_regnum): New function.
4957         (PPC_UISA_NOFP_SPRS): New macro.
4958         (PPC_EV_REGS): New macro.
4959         (PPC_GPRS_PSEUDO_REGS): New macro.
4960         (registers_e500): New register set for e500.
4961         (variants): Add e500 variant.
4962         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4963         before setting architectural dependent variations.  Initialize ev
4964         registers numbers.  Add case for e500 architecture.  Set the
4965         number of pseudo registers.
4966
4967 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4968
4969         * rs6000-tdep.c: Clean up comments.
4970
4971 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4972
4973         * h8300-tdep.c: Re-indent file.
4974
4975 2002-08-20  Jim Blandy  <jimb@redhat.com>
4976
4977         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4978         default for this.
4979
4980 2002-08-20  Keith Seitz  <keiths@redhat.com>
4981
4982         * breakpoints.c (watch_command_1): Use internal breakpoint
4983         when setting a watchpoint_scope breakpoint.
4984
4985 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4986
4987         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4988         (build_builtin_type_vec64i): Ditto.
4989         (build_builtin_type_vec128): Ditto.
4990         (build_builtin_type_vec128i): Ditto.
4991
4992 2002-08-19  Michael Snyder  <msnyder@redhat.com>
4993
4994         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4995         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4996         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4997         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4998         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4999         CALL_DUMMY_ADDRESS): Delete.
5000         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5001         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5002         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5003         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5004         push_return_address.
5005         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5006         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5007         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5008         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5009         mips_n32n64_push_arguments, mips_push_return_address,
5010         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5011         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5012
5013 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5014
5015         * mips-tdep.c (mips_frame_num_args): New function.
5016         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5017         frame_saved_pc, frame_args_address, frame_locals_address, 
5018         frame_num_args, and frame_args_skip.
5019         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5020         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5021         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5022         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5023
5024 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5025
5026         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5027         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5028         * mips-tdep.c (mips_store_struct_return): New function.
5029         (mips_extract_struct_value_address): New function.
5030         (mips_gdbarch_init): Set store_struct_return and
5031         extract_struct_value_address.
5032
5033 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5034
5035         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5036         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5037         (read_file_scope): Check that line_header is nonzero before
5038         decoding macro information.
5039
5040 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5041
5042         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5043         flag the general-purpose registers as floating-point on targets
5044         that don't support the floating-point registers.
5045
5046 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5047
5048         * rs6000-tdep.c (altivec_register_p): Delete.
5049         (rs6000_do_altivec_registers): Delete.
5050         (rs6000_altivec_registers_info): Delete.
5051         (rs6000_do_registers_info): Delete.
5052         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5053         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5054
5055 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5056
5057         * infcmd.c (do_registers_info): Print vector registers in hex
5058         format only.
5059         (print_vector_info): Check that printing registers
5060         makes sense.
5061         (print_float_info): Ditto.
5062
5063 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5064
5065         * mips-tdep.c (mips_gdbarch_init): Update.
5066         (mips_o32_extract_return_value): Rewrite.
5067         (mips_o32_store_return_value): Rewrite.
5068         (mips_o32_xfer_return_value): New function.
5069         (mips_xfer_register): Tweak debug print message.  Allow for
5070         buf_offset when dumping the value transfered.
5071
5072 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5073
5074         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5075         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5076         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5077         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5078         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5079
5080 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5081
5082         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5083
5084 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5085
5086         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5087         register.
5088         (P): New macro to define a register as a pseudo register.
5089         (R, R4, R8, R16, FR32, R64, R0): Updated.
5090         (struct variant): Add new fields for number of pseudo registers
5091         and number of total registers.
5092         (tot_num_registers): New macro replacing....
5093         (num_registers): ...deleted macro.
5094         (num_registers): New function.
5095         (num_pseudo_registers): New function.
5096         (variants): Update all variants to intialize new fields correctly.
5097         Postpone initialization of number of pseudo regs and real regs.
5098         (init_variants): New function.
5099         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5100         registers offsets.
5101
5102 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5103
5104         * valops.c (search_struct_field): Change error message to treat
5105         return value of 0 from value_static_field as meaning that field is
5106         optimized out.
5107         (value_struct_elt_for_reference): Ditto.
5108         * values.c (value_static_field): Treat an unresolved location the
5109         same as a nonexistent symbol.  Fix PR gdb/635.
5110         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5111         enclosed.  Fix PR gdb/574.
5112         * MAINTAINERS: Add self to Write After Approval list.
5113
5114 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5115
5116         * mips-tdep.c (mips_xfer_register): New function.
5117         (mips_n32n64_extract_return_value): Rewrite.
5118         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5119         instead of deprecated_extract_return_value.
5120
5121 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5122
5123         * rs6000-tdep.c (TDEP): Delete macro.
5124         (branch_dest): Replace use of TDEP macro with its body.
5125         (rs6000_pop_frame): Ditto.
5126         (rs6000_push_arguments): Ditto.
5127         (rs6000_skip_trampoline_code): Ditto.
5128         (rs6000_frame_saved_pc): Ditto.
5129         (rs6000_frame_chain): Ditto.
5130         (rs6000_register_name): Ditto.
5131         (rs6000_register_byte): Ditto.
5132         (rs6000_register_raw_size): Ditto.
5133         (rs6000_register_virtual_type): Ditto.
5134         (rs6000_register_convertible): Ditto.
5135         (rs6000_convert_from_func_ptr_addr): Ditto.
5136
5137 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5138
5139         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5140         conditionally.
5141         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5142         MIPS_LINUX_JB_ELEMENT_SIZE.
5143         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5144         for MAX_REGISTER_RAW_SIZE arrays.
5145         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5146         MIPS_LINUX_JB_ELEMENT_SIZE.
5147
5148 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5149
5150         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5151
5152 2002-08-19  Aidan Skinner <aidan@velvet.net>
5153
5154         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5155         ada-valprint.c ada-tasks.c.
5156         (YYFILES): Add ada-exp.y.
5157         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5158         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5159         (ada-exp.tab.o): New target.
5160                 
5161 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5162
5163         * regcache.c (regcache_xfer_part): New function.
5164         (regcache_raw_read_part): New function.
5165         (regcache_raw_write_part): New function.
5166         (regcache_cooked_read_part): New function.
5167         (regcache_cooked_write_part): New function.
5168         * regcache.h (regcache_raw_read_part): Declare.
5169         (regcache_raw_write_part): Declare.
5170         (regcache_cooked_read_part): Declare.
5171         (regcache_cooked_write_part): Declare.
5172
5173 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5174
5175         * remote.c (remote_open_1): Add async_p.
5176         (remote_async_open_1): Delete.
5177         (open_remote_target): Delete.
5178         (remote_open, extended_remote_open): Update calls to remote_open_1.
5179         (remote_async_open, extended_remote_async_open): Call
5180         remote_open_1 instead of remote_async_open_1.
5181
5182 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5183
5184         * blockframe.c: Fix a few coding standard violations.
5185
5186 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5187
5188         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5189         here from ...
5190         * config/i386/tm-i386sco5.h: ... here.  File removed.
5191         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5192
5193         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5194         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5195         (TM_FILE): Set to tm-i386.h.
5196         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5197         * config/i386/tm-i386v.h: Remove file.
5198         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5199         instead of "i386/tm-i386v.h".
5200         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5201         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5202         "i386/tm-i386v.h".
5203         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5204         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5205         "i386/tm-i386.h".
5206
5207 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5208
5209         * config/i386/nm-i386v.h: Add protection against
5210         multiple-inclusion.
5211         (i386_register_u_addr): Remove prototype.
5212         (register_u_addr): New prototype.
5213         (REGISTER_U_ADDR): Redefine accordingly.
5214         * i386v-nat.c: Improve several comments.
5215         (i386_register_u_addr): Change signature and rename to
5216         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5217         ubase variable.
5218
5219 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5220
5221         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5222         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5223         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5224         deprecated_extract_return_value.
5225         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5226         rename mips_o32o64_push_arguments.
5227         (mips_gdbarch_init): Update.
5228         (mips_extract_return_value): Delete.
5229         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5230         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5231         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5232         (mips_n32n64_extract_return_value): Clone
5233         mips_extract_return_value.
5234         (mips_store_return_value): Delete.
5235         (mips_o32_store_return_value): Clone mips_store_return_value.
5236         (mips_o64_store_return_value): Clone mips_store_return_value.
5237         (mips_eabi_store_return_value): Clone mips_store_return_value.
5238         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5239
5240 2002-08-18  Aidan Skinner <aidan@velvet.net>
5241
5242         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5243         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5244                 
5245 2002-08-18  Aidan Skinner <aidan@velvet.net>
5246
5247         * ada-lang.c: Run through gdb_indent.sh.
5248         * ada-lang.h: Run through gdb_indent.sh.
5249         * ada-tasks.c: Run through gdb_indent.sh.
5250         * ada-typeprint.c: Run through gdb_indent.sh.
5251         * ada-valprint.c: Run through gdb_indent.sh.
5252
5253 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5254
5255         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5256         ABI.
5257
5258 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5259
5260         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5261
5262         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5263         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5264
5265         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5266         write_register_gen instead of write_register_bytes.
5267
5268         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5269         i[3456]-*-osf1mk* configurations have been made obsolete.
5270         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5271         i[3456]86-*-osf1mk* hosts obsolete.
5272         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5273         targets obsolete.
5274         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5275         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5276         config/i386/i386m3.mt, config/i386/nm-m3.h,
5277         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5278         config/i386/i386mk.mh, config/i386/i386mk.mt,
5279         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5280         obsolete.
5281         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5282         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5283         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5284
5285 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5286
5287         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5288         (hppa_value_returned_from_stack): Declare.
5289         (hppa_extract_return_value): Declare.
5290         * config/pa/hppa.mt: New file.
5291         * configure.tgt: Recognize hppa*-*-*.
5292         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5293
5294 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5295
5296         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5297         comment.
5298
5299 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5300
5301         * top.c (gdb_rl_operate_and_get_next): Make sure
5302         operate-and-get-next functions correctly even when the history
5303         list is completely filled.
5304
5305 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5306
5307         * MAINTAINERS (Target Instruction Set Architectures): Rename
5308         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5309         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5310         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5311         already listed under Host/Native.
5312
5313         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5314         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5315         mips*-*-*.
5316
5317 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5318
5319         * config/ia64/ia64.mt: New file.
5320         * config/alpha/alpha.mt: New file.
5321         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5322         ia64-linux-gnu.  Mention that ia64-elf is broken.
5323         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5324
5325 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5326
5327         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5328         generic_func_frame_valid instead of func_frame_valid.
5329
5330 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5331
5332         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5333         procfs appears to be broken when debugging on multi-processor
5334         machines. So enable software single stepping in order to avoid
5335         using the procfs interface to do next/step operations, using
5336         internal breakpoints instead.
5337
5338         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5339         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5340         make this pc address equal to the value it would have if the
5341         system stepping capability was used. Also set a new flag used
5342         to ensure that we don't readjust the PC one more time later.
5343
5344         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5345         address by DECR_PC_AFTER_BREAK when software single step is
5346         in use for this architecture, as this has already been taken
5347         care of in handle_inferior_event().
5348
5349 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5350
5351         * infrun.c (handle_inferior_event): Minor reformatting, to make
5352         a rather long condition expression easier to read.
5353
5354 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5355
5356         * Makefile.in (gdbtk.o): Move to end of file.
5357         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5358         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5359         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5360         (gdbtk-wrapper.o, gdbres.o): Ditto.
5361
5362 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5363
5364         * Makefile.in (copying.o): Separate out compile rule.
5365         (hpux-thread.o, procfs.o, signals.o): Ditto.
5366         (v850ice.o, z8k-tdep.o): Ditto.
5367         (tui-file.o): Move to TUI section.
5368         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5369         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5370
5371 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5372
5373         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5374         skip_trampoline_code, for better namespace-proofing.   
5375
5376         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5377
5378 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5379
5380         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5381
5382 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5383
5384         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5385         signal, check whether we hit a breakpoint before checking for a
5386         single step breakpoint. Otherwise, GDB fails to notice that a
5387         breakpoint has been hit when stepping onto a breakpoint.
5388
5389 2002-08-16  Keith Seitz  <keiths@redhat.com>
5390
5391         * gdb-events.sh (clear_gdb_event_hooks): New function.
5392         * gdb-events.c: Regenerate.
5393         * gdb-events.h: Regenerate.
5394
5395 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5396
5397         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5398         not_a_sw_breakpoint.
5399         * breakpoint.h (bpstat_stop_status): Add parameter names.
5400
5401 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5402
5403         * remote.c (remote_insert_hw_breakpoint)
5404         (remote_remove_hw_breakpoint): Fix calculation of length field
5405         for Z-packet.
5406
5407 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5408
5409         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5410         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5411         (supply_fpregset): Ditto.
5412         
5413         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5414         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5415         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5416         (TARGET_READ_SP): Delete.
5417         (DO_REGISTERS_INFO): Delete.
5418         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5419         Delete.
5420         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5421         from macros to functions.
5422
5423         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5424         (mips_register_convertible, mips_register_convert_to_virtual,
5425         mips_register_convert_to_raw): Make static.
5426         (mips_read_sp): New function.
5427         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5428         (mips_do_registers_info): Make static.
5429         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5430         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5431         (mips_register_convert_from_type, mips_register_convert_to_type):
5432         New functions.
5433         (mips_gdbarch_init): Set up function_start_offset, 
5434         register_virtual_size, pc_in_sigtramp.
5435
5436 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5437
5438         * infcmd.c (vector_info): New function.
5439         (_initialize_infcmd): Add command "info vector".
5440         (print_vector_info): New function.
5441
5442         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5443         * gdbarch.h, gdbarch.c: Regenerate.
5444
5445 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5446
5447         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5448         ``print_all''.  Only print vector registers when ``print_all''.
5449
5450 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5451
5452         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5453         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5454
5455         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5456         Add `args' parameter.
5457         * gdbarch.h, gdbarch.c: Regenerate.
5458         
5459         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5460         
5461         * infcmd.c (float_info): Call print_float_info.
5462         (print_float_info): New function.  By default, print the
5463         floating-point registers.
5464
5465         * arch-utils.h (default_print_float_info): Delete declaration.
5466         * arch-utils.c (default_print_float_info): Delete function.
5467         
5468 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5469
5470         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5471         out define.
5472
5473         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5474         FRAME.
5475
5476         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5477         * configure.host: Make i[3456]86-*-aix host obsolete.
5478         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5479         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5480         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5481         config/i386/xm-i386aix.h: Make files obsolete.
5482         * i386aix-nat.c: Make file obsolete.
5483         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5484         (i386aix-nat.o): Make target obsolete.
5485
5486         * config/i386/nm-gnu.h: Removed.
5487         * config/i386/nm-i386gnu.h: New file.
5488         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5489         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5490         Moved here from ...
5491         * config/i386/tm-i386gnu.h: ... here.  Removed.
5492         * config/i386/xm-i386gnu.h: Removed.
5493         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5494         (NAT_FILE): Set to nm-i386gnu.h.
5495         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5496         * i386-tdep.c: New file.
5497         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5498         (i386gnu-tdep.o): Specify dependencies.
5499
5500 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5501
5502         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5503         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5504         Adjust a few comments to reflect reality a bit closer.
5505         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5506         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5507         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5508         target_insert_watchpoint, target_remove_watchpoint):
5509         Move defines to ...
5510         * config/i386/nm-i386sco5.h: ... here.
5511         (kernel_u_size): Add prototype.  Improve a few comments and add
5512         protection against multiple inclusion.
5513         
5514         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5515         out define.
5516
5517         * uw-thread.c (SP_ARG0): Define if not already defined.
5518         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5519
5520         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5521
5522         * config/i386/tm-i386.h: Don't include "regcache.h".
5523
5524         * i387-tdep.h (i387_print_float_info): New prototype.
5525         * i387-tdep.c (print_i387_value, print_i387_ext,
5526         print_i387_status_word, print_i387_control_word): Add `struct
5527         ui_file *' argument and use it for output.
5528         (i387_print_float_info): Renamed from i387_float_info.  Add
5529         `struct gdbarch *' and `struct ui_file *' arguments and use the
5530         latter for output.
5531         * i386-tdep.c: Include "i387-tdep.h".
5532         (i386_gdbarch_init): Set print_float_info.
5533         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5534         (FLOAT_INFO): Remove define.
5535
5536 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5537
5538         * mips-tdep.c (mips_push_arguments): Rename to
5539         mips_eabi_push_arguments, and tune for EABI.
5540         (MIPS_REGS_HAVE_HOME_P): Delete.
5541         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5542         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5543         Delete references to mips_regs_have_home_p.
5544
5545 2002-08-14  Keith Seitz  <keiths@redhat.com>
5546
5547         * Makefile.in (install-gdbtk): Create insight plugin directory.
5548         Install plugins.tcl file.
5549
5550 2002-08-14  Keith Seitz  <keiths@redhat.com>
5551
5552         * configure.in: Move SUBDIRS to near top of the file so that
5553         --enable options may add things to it.
5554         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5555         * configure: Regenerate.
5556
5557 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5558
5559         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5560         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5561         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5562
5563 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5564
5565         * vax-tdep.c (vax_get_saved_register): Delete function.
5566         (vax_gdbarch_init): Update.
5567         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5568         (ns32k_gdbarch_init): Update.
5569         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5570         (alpha_gdbarch_init): Update.
5571
5572 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5573
5574         * regcache.c (init_regcache_descr): Overallocate the
5575         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5576         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5577         nr_raw_registers.
5578         (set_register_cached): Add range checking assertions.  Use
5579         current_regcache.
5580
5581 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5582
5583         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5584         numbers for MMX registers.
5585
5586 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5587
5588         * i386-tdep.c (i386_gdbarch_init): Use
5589         generic_unwind_get_saved_register.
5590
5591 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5592
5593         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5594         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5595         target vector.
5596         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5597         Delete.  Add comment regarding this now-deleted target method.
5598
5599 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5600
5601         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5602         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5603         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5604         real PC and the page number (if it's within the memory bank window).
5605         (m68hc11_pseudo_register_write): Likewise when saving.
5606         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5607         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5608         (m68hc11_register_raw_size): And use 32-bit for it.
5609         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5610         16K memory bank is used by the prog; also use the virtual pc.
5611
5612 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5613
5614         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5615         (m68hc11_gdbarch_init): Install it in gdbarch.
5616         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5617         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5618         (MSYMBOL_SIZE): New for documentation.
5619         (insn_return_kind): Enum to specify how a function returns.
5620         (frame_extra_info): Cleanup and record the return mode.
5621         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5622         register in address computation.
5623         (m68hc11_get_return_insn): New to obtain the return instruction used
5624         by the function.
5625         (m68hc11_frame_init_saved_regs): Take into account the return
5626         instruction used by the function for far and interrupt functions.
5627         (m68hc11_init_extra_frame_info): Take into account page register.
5628         (m68hc11_frame_args_address): Adjust according to the return mode.
5629         (show_regs): Print page register only when it's used.
5630
5631 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5632
5633         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5634         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5635         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5636         registers.
5637         (m68hc11_register_raw_size): Likewise.
5638
5639 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5640
5641         * i386-tdep.c (i386_register_name): Handle mmx registers.
5642         (mmx_regnum_p): New function.
5643         (i386_mmx_names): New array.
5644         (mmx_num_regs): New variable.
5645         (i386_pseudo_register_read): New function.
5646         (i386_pseudo_register_write): New function.
5647         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5648
5649         * regcache.c (regcache_raw_read_unsigned): New function.
5650         (regcache_raw_read_signed): New function.
5651         * regcache.h (regcache_raw_read_unsigned): Declare.
5652         (regcache_raw_read_signed): Declare.
5653
5654 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5655
5656         * regcache.c (regcache_raw_read_as_address): Delete function.
5657         (regcache_cooked_read_signed): New function.
5658         (regcache_cooked_read_unsigned): New function.
5659         * regcache.h (regcache_cooked_read_signed): Declare.
5660         (regcache_cooked_read_unsigned): Declare.
5661         (regcache_raw_read_as_address): Delete declaration.
5662
5663         * blockframe.c (generic_read_register_dummy): Use
5664         regcache_cooked_read_unsigned.
5665         * i386-tdep.c (i386_extract_struct_value_address): Use
5666         regcache_cooked_read_unsigned.
5667
5668 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5669
5670         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5671         double sizes according to ELF ABI flags.
5672         (gdbarch_tdep): Record elf_flags.
5673
5674 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5675
5676         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5677         (m6812_prolog): They can appear in 68HC12 function prologue.
5678         (m68hc11_frame_chain): Cleanup.
5679
5680 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5681
5682         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5683         declarations.
5684         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5685         (i386_linux_register_raw_size): Delete function.
5686         (i386_linux_init_abi): Update.
5687         * i386-tdep.c (i386_register_raw_size): Delete function.
5688         (i386_register_byte): Delete function.
5689         (i386_gdbarch_init): Update.
5690         (i386_register_size): Delete array.
5691         (i386_register_offset): Delete array.
5692
5693         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5694         (REGISTER_RAW_SIZE): Delete macro.
5695         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5696         (REGISTER_BYTE): Delete macro.
5697
5698 2002-08-11  Aidan Skinner <aidan@velvet.net>
5699
5700         * ada-lang.c (ada_lookup_partial_symbol)
5701         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5702         prototype names so that grep ^func works properly.
5703
5704         * ada-lang.c (ada_array_element_type)
5705         (ada_lookup_partial_symbol): Fix typos in parameter list.
5706
5707         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5708         Fix prototype names so that grep ^func works properly.
5709         
5710 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5711             Elena Zannoni  <ezannoni@redhat.com>
5712             Martin M. Hunt  <hunt@redhat.com>
5713
5714         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5715         (build_builtin_type_vec128i): Set the vector bit.
5716         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5717         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5718         (build_builtin_type_vec64): New function.
5719         (build_builtin_type_vec64i): New function.
5720         (build_gdbtypes): Initialize builtin_type_vec64 and
5721         builtin_type_vec64i.
5722
5723 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5724
5725         * regcache.c (regcache_dump): Compare the register offset
5726         with REGISTER_BYTE.
5727         * arch-utils.c (generic_register_byte): New function.
5728         * arch-utils.h (generic_register_byte): Declare.
5729         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5730         * gdbarch.h, gdbarch.c: Regenerate.
5731
5732 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5733
5734         * regcache.c: Include "gdbcmd.h"
5735         (_initialize_regcache): Add commands "maintenance print
5736         registers", "maintenance print raw-registers" and "maintenance
5737         print cooked-registers".
5738         (enum regcache_dump_what): Define.
5739         (dump_endian_bytes): New function.
5740         (regcache_dump): New function.
5741         (regcache_print): New function.
5742         (maintenance_print_registers): New function.
5743         (maintenance_print_raw_registers): New function.
5744         (maintenance_print_cooked_registers): New function.
5745         * Makefile.in (regcache.o): Update dependencies.
5746
5747 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5748
5749         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5750         (mips_push_arguments): Correct some comments.  Use paddr_nz
5751         for printing addresses in debug output.  Replace static
5752         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5753         (mips_n32n64_push_arguments): New function, cloned from
5754         mips_push_arguments and tuned for the n32/n64 ABI.
5755         (mips_push_register): Buffer needs dynamic allocation.
5756         (mips_print_register): Ditto.
5757         (do_gp_register_row): Ditto.
5758         (mips_store_return_value): Ditto.
5759         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5760
5761 2002-08-09  Don Howard  <dhoward@redhat.com>
5762
5763         * memattr.c (mem_info_command): Print special case of upper bound
5764         as max CORE_ADDR + 1.
5765
5766 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5767
5768         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5769         returns structs by ref if they're too big to fit in two registers.
5770
5771 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5772
5773         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5774         saved regs value.
5775         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5776         mips_find_saved_regs().
5777         (mips_pop_frame): Likewise.
5778
5779 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5780
5781         * blockframe.c (frame_saved_regs_register_unwind): Revise
5782         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5783         frames are in use.
5784
5785 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5786         
5787         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5788         T-packets; the 'a' is not taken as a register number.
5789         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5790         (remote_stopped_data_address): New functions; add to target
5791         vector.
5792         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5793         prototypes to match other implementations of this
5794         function. replace integer argument with pointer -- the length
5795         field in the Z-packet is the length of what is pointed to or 1 if
5796         pointer is null. Add to target vector.
5797         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5798         target vector.
5799
5800         From Mark Salter:
5801         * remote.c (remote_wait): Add support to extract optional
5802         watchpoint information from T-packet. Ignore unrecognized
5803         optional info in T-packet.
5804         (remote_async_wait): Ditto.
5805
5806 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5807
5808         * cli/cli-dump.c: Change fopen modes to use binary open modes
5809         as defined in include/fopen-bin.h throughout.
5810
5811 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5812
5813         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5814
5815 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5816
5817         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5818         assertion failure by returning early after a warning.
5819
5820 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5821
5822         * mips-tdep.c (mips_find_saved_regs): Make static.
5823         (mips_frame_init_saved_regs): New function.
5824         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5825         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5826         (mips_find_saved_regs): Delete declaration.
5827
5828 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5829
5830         * remote.c (remote_wait, remote_async_wait): Change
5831         thread_num from int to ULONGEST.
5832         (unpack_varlen_hex): Change result parameter from
5833         int * to ULONGEST *.
5834
5835 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5836
5837         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5838         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5839         powerpc*-*-*.
5840         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5841
5842 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5843
5844         * gcore.c (override_derive_stack_segment): Delete variable.
5845         (preempt_derive_stack_segment): Delete function.
5846         (derive_stack_segment): Delete function.
5847         (default_derive_stack_segment): Renamed to derive_stack_segment.
5848         (override_derive_heap_segment): Delete variable.
5849         (preempt_derive_heap_segment): Delete function.
5850         (derive_heap_segment): Delete function.
5851         (default_derive_heap_segment): Rename to derive_heap_segment.
5852
5853 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5854
5855         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5856         * mips-tdep.c (mips_EABI_use_struct_convention, 
5857         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5858         New functions.  (mips_use_struct_convention): Delete.
5859         (mips_gdbarch_init): set use_gdbarch_convention.
5860
5861 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5862
5863         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5864         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5865         mips_o32_reg_struct_has_addr): New functions.
5866         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5867
5868 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5869
5870         * regcache.c (pseudo_register): Delete function.
5871         (fetch_register): Delete function.
5872         (store_register): Delete function.
5873         (regcache_raw_read, legacy_read_register_gen): Use
5874         target_fetch_registers instead of fetch_register.
5875         (legacy_write_register_gen, regcache_raw_write): Use
5876         target_store_register instead of store_register.
5877         (write_register_bytes): Ditto.
5878
5879         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5880         (STORE_PSEUDO_REGISTER): Delete.
5881         * gdbarch.h, gdbarch.c: Regenerate.
5882
5883 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5884
5885         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5886         write dump file binary.
5887
5888 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5889
5890         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5891         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5892         (mips_gdbarch_init): Set N32 target to be mips64.
5893
5894 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5895
5896         * frame.c (find_saved_register): Break out of loop once saved
5897         register address is found.  Don't mention sparc in loop comment
5898         anymore.
5899
5900 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5901
5902         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5903         mips_default_saved_regsize to 8.
5904
5905 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5906
5907         * gcore.c: Do not include <sys/procfs.h>.
5908         * Makefile.in (gcore.o): Update dependencies.
5909
5910 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5911
5912         * configure.tgt: Make arc-*-* obsolete.
5913         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5914         * MAINTAINERS: Make arc-elf obsolete.
5915         * arc-tdep.c: Make file obsolete.
5916         * config/arc/arc.mt: Ditto.
5917         * config/arc/tm-arc.h: Ditto.
5918
5919 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5920
5921         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5922
5923 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5924
5925         * mcore-tdep.c (mcore_gdbarch_init): Use
5926         generic_unwind_get_saved_register instead of
5927         generic_get_saved_register.
5928         * v850-tdep.c (v850_gdbarch_init): Ditto.
5929         * frv-tdep.c (frv_gdbarch_init): Ditto.
5930         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5931         * s390-tdep.c (s390_gdbarch_init): Ditto.
5932         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5933         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5934         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5935
5936 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5937
5938         * objfiles.h: Add missing #include "symfile.h"
5939
5940         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5941
5942 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5943
5944         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5945         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5946         of FIELD_BITSIZE.
5947
5948 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5949
5950         * NEWS: Cleanup and nitpick.
5951
5952 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5953
5954         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5955
5956 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5957
5958         * Makefile.in (gdbtk-bp.o): Update dependencies.
5959         (gdbtk-register.o): Ditto.
5960         (gdbtk-varobj.o): Ditto.
5961
5962 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5963
5964         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5965         m68hc11_fetch_pseudo_register.
5966         (m68hc11_pseudo_register_write): Replace
5967         m68hc11_store_pseudo_register.
5968         (m68hc11_gdbarch_init): Update.
5969
5970 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5971
5972         * gdbarch.sh: Include "gdb_string.h".
5973         * gdbarch.c: Regenerate.
5974
5975         * regcache.c: Include "gdb_string.h".
5976         * ax-general.c: Ditto.
5977         * varobj.c: Ditto.
5978         * std-regs.c: Ditto.
5979         * fbsd-proc.c: Ditto.
5980         * thread.c: Ditto.
5981
5982         * Makefile.in (regcache.o): Update dependencies.
5983         (thread.o, gdbarch.o): Ditto.
5984         (ax-general.o, gdbarch.o): Ditto.
5985         (varobj.o, std-regs.o): Ditto.
5986         (fbsd-proc.o): Specify dependencies.
5987
5988 2002-08-02  Andrew Cagney  <cagney@redhat.com>
5989
5990         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5991         regnum.
5992         (regcache_cooked_write): Ditto.
5993
5994 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
5995
5996         * regcache.c (regcache_cooked_read): New function.
5997         (regcache_cooked_write): New function.
5998         (read_register_gen): Rewrite using regcache_cooked_read.
5999         (write_register_gen): Rewrite using regcache_cooked_write.
6000
6001         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6002         Declare.
6003
6004 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6005
6006         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6007         Replace the architecture methods register_read and register_write.
6008         * gdbarch.h, gdbarch.c: Regenerate.
6009         * regcache.c (init_regcache_descr): Update.
6010         (read_register_gen): Update.
6011         (write_register_gen): Update.
6012         (supply_register): Update comment.
6013
6014         * sh-tdep.c (sh_gdbarch_init): Update.
6015         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6016         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6017         pointer.  Update code.
6018         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6019         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6020         void pointer.  Update code.
6021         (sh64_register_write): Delete.
6022         (sh4_register_read): Delete.
6023         (sh64_register_read): Delete.
6024         (sh4_register_write): Delete.
6025         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6026         void pointer, `to' parameter a void pointer.
6027         (sh_sh64_register_convert_to_raw): Ditto.
6028
6029 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6030
6031         * mips-tdep.c (mips_register_virtual_type): Use architecture
6032         invariant return values.
6033
6034 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6035
6036         * linux-proc.c: Include "gdb_string.h".
6037         * Makefile.in (linux-proc.o): Update dependency list.
6038
6039 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6040
6041         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6042         comment.
6043
6044 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6045
6046         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6047         to_insert_watchpoint, to_remove_watchpoint,
6048         to_stopped_by_watchpoint, to_stopped_data_address,
6049         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6050         target vecctor. Define their corresponding macros so they call
6051         them.
6052         
6053         * target.c: Add default and debug versions of for
6054         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6055         to_insert_watchpoint, to_remove_watchpoint,
6056         to_stopped_by_watchpoint, to_stopped_data_address,
6057         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6058
6059 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6060
6061         * mips-tdep.c (mips_register_virtual_type): New function.
6062         (mips_gdbarch_init): Register mips_register_virtual_type()
6063         with gdbarch machinery.
6064         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6065         this file instead of tm-bigmips.h.
6066         (MIPS_REGSIZE): Delete this macro.
6067         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6068         multiarch version in mips-tdep.c will be found.
6069
6070 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6071
6072         * NEWS: Menion that CHILL has been made obsolete.
6073
6074         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6075         * stabsread.c (read_range_type): Ditto.
6076         * gdbtypes.h: Ditto.
6077         * language.c (binop_type_check): Ditto.
6078         (binop_result_type): Ditto.
6079         (integral_type): Ditto.
6080         (character_type): Ditto.
6081         (string_type): Ditto.
6082         (boolean_type): Ditto.
6083         (structured_type): Ditto.
6084         (lang_bool_type): Ditto.
6085         (binop_type_check): Ditto.
6086         * language.h (_LANG_chill): Ditto.
6087         * dwarfread.c (set_cu_language): Ditto.
6088         * dwarfread.c (CHILL_PRODUCER): Ditto.
6089         * dwarfread.c (handle_producer): Ditto.
6090         * expression.h (enum exp_opcode): Ditto.
6091         * eval.c: Ditto for comments.
6092         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6093         * expprint.c (print_subexp): Ditto.
6094         (print_subexp): Ditto.
6095         * valops.c (value_cast): Ditto.
6096         (search_struct_field): Ditto.
6097         * value.h (COERCE_VARYING_ARRAY): Ditto.
6098         * symfile.c (init_filename_language_table): Ditto.
6099         (add_psymbol_with_dem_name_to_list): Ditto.
6100         * valarith.c (value_binop): Ditto.
6101         (value_neg): Ditto.
6102         * valops.c (value_slice): Ditto.
6103         * symtab.h (union language_specific): Ditto.
6104         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6105         (SYMBOL_DEMANGLED_NAME): Ditto.
6106         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6107         * defs.h (enum language): Ditto.
6108         * symtab.c (got_symtab): Ditto.
6109         * utils.c (fprintf_symbol_filtered): Ditto.
6110
6111         * ch-typeprint.c: Make file obsolete.
6112         * ch-valprint.c: Make file obsolete.
6113         * ch-lang.h: Make file obsolete.
6114         * ch-exp.c: Make file obsolete.
6115         * ch-lang.c: Make file obsolete.
6116
6117         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6118         CHILL_LIB.
6119         (TARGET_FLAGS_TO_PASS): Ditto.
6120         (CHILLFLAGS): Obsolete.
6121         (CHILL): Obsolete.
6122         (CHILL_FOR_TARGET): Obsolete.
6123         (CHILL_LIB): Obsolete.
6124         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6125         ch-valprint.c.
6126         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6127         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6128         ch-lang.o.
6129         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6130         targets.
6131
6132 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6133
6134         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6135         This does not change anything at the moment, but will be helpful
6136         later when full Ada support is integrated.
6137
6138 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6139
6140         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6141         help message.
6142
6143 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6144
6145         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6146         and save it in a local variable.  Use variable in later test.
6147
6148 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6149
6150         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6151         test.  (Thanks to Daniel Jacobowitz.)
6152         
6153 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6154
6155         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6156         (mips_abi_strings): Add "n64".
6157         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6158
6159 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6160
6161         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6162         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6163
6164 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6165
6166         * utils.c (host_pointer_to_address, address_to_host_pointer):
6167         Use gdb_assert() instead of explicit call to internal_error().
6168
6169 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6170
6171         * Makefile.in (rs6000-nat.o): Update dependencies.
6172
6173         From Nicholas Duffek:
6174         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6175         (aix-thread.o): New rule.
6176         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6177         * config/powerpc/aix432.mh: New file.
6178
6179 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6180
6181         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6182         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6183         (fetch_core_registers, ppc_linux_supply_gregset)
6184         (ppc_linux_supply_fpregset): New functions.
6185         (ppc_linux_regset_core_fns): New.
6186         (_initialize_ppc_linux_tdep): Call add_core_fns.
6187         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6188         and ppc_linux_supply_gregset.
6189         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6190         (supply_fpregset): Call ppc_linux_supply_fpregset.
6191         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6192         corelow.o.
6193         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6194
6195 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6196
6197         * symtab.c (lookup_symbol): Demangle before lowercasing.
6198
6199 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6200
6201         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6202         declaration.
6203         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6204         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6205         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6206         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6207         "gdb_string.h".
6208         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6209         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6210         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6211         (avr-tdep.o, mon960-rom.o): Ditto.
6212         (aout_stabs_gnu_h): Define.
6213         (symtab_h): Remove $(gdb_obstack_h).
6214
6215 2002-07-30  Jim Blandy  <jimb@redhat.com>
6216
6217         Patch from David Carlton <carlton@math.stanford.edu>:
6218         * gdbinit.in: Move the `dir' commands that add GDB's own source
6219         directory to the search path to the end, so that the `gdb' source
6220         directory will be searched first.
6221
6222 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6223
6224         * gdb_obstack.h: New file.
6225         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6226         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6227         * objfiles.h: Include "gdb_obstack.h".
6228         * Makefile.in (gdb_obstack_h): Define.
6229         (symtab_h): Add $(gdb_obstack_h).
6230         (objfiles_h): Add $(gdb_obstack_h).
6231         
6232         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6233         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6234         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6235         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6236         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6237         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6238         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6239         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6240
6241         * Makefile.in (bcache.o): Update dependencies.
6242         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6243         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6244         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6245         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6246         (stabsread.o, symfile.o, symmisc.o): Ditto.
6247         (symtab.o, typeprint.o, macroexp.o): Ditto.
6248         (macrotab.o, mdebugread.o): Ditto.
6249         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6250         (coff_ecoff_h, aout_aout64_h): Define.
6251         (aout_stabs_gnu_h, libaout_h): Define.
6252
6253 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6254
6255         * regcache.c (struct regcache_descr): Rename nr_registers to
6256         nr_cooked_registers.  Revise comments describing the structure
6257         member fields.
6258         (init_regcache_descr): Update.
6259         (init_legacy_regcache_descr): Update.
6260         (read_register_gen, write_register_gen): When a cooked register in
6261         the raw register range, directly access the value from the raw
6262         register cache.
6263
6264 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6265
6266         * z8k-tdep.c: Do not include "obstack.h".
6267         * h8300-tdep.c, h8500-tdep.c: Ditto.
6268         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6269         * valprint.c, v850-tdep.c: Ditto.
6270         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6271         * mn10200-tdep.c: Ditto.
6272
6273         * Makefile.in (z8k-tdep.o): Update dependencies.
6274         (m68hc11-tdep.o, valprint.o): Ditto.
6275         (v850-tdep.o, d10v-tdep.o): Ditto.
6276         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6277         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6278         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6279         (sh_opc_h, gdb_sim_sh_h): Define.
6280         (elf_sh_h, elf_bfd_h): Define.
6281         (opcode_m68hc11_h): Define.
6282         (OPCODES_SRC, OPCODES_DIR): define.
6283         (OPCODES): Use $(OPCODES_DIR).
6284         (gdb_sim_d10v_h): Rename sim_d10v_h.
6285         (gdb_sim_arm_h): Rename sim_arm_h.
6286
6287 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6288
6289         * utils.c (host_pointer_to_address, address_to_host_pointer):
6290         Change internal_error() message to indicate function responsible
6291         for the error.
6292
6293 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6294
6295         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6296         calls to local_hex_string_custom().
6297
6298 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6299
6300         * irix5-nat.c: Move IRIX shared library support from here...
6301         * solib-irix.c: ...to here.  Revised substantially to work with
6302         generic solib framework.
6303
6304         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6305         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6306         * mips-irix-tdep.c: New file.
6307
6308         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6309         (mips-irix-tdep.o, solib-irix.o): New rules.
6310         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6311         solib-irix.o.
6312         * config/mips/irix6.mt (TDEPFILES): Likewise.
6313         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6314
6315 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6316
6317         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6318         disabled (via ``#if 0'') includes.
6319
6320 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6321
6322         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6323         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6324         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6325         Add support for the fpscr register.
6326         * rs6000-nat.c (regmap, fetch_inferior_registers)
6327         (store_inferior_registers, fetch_core_registers): Likewise.
6328
6329 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6330
6331         * rs6000-nat.c (language.h): Include.
6332         (special_regs): Delete this array.
6333         (regmap): New function.
6334         (fetch_register, store_register):  Use regmap() to map gdb
6335         register numbers to ptrace register numbers.  Also, use
6336         outputs from regmap() to make decisions regarding type of
6337         ptrace() call to make.  In particular, don't compare against
6338         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6339         (fetch_inferior_registers, store_inferior_registers): Where
6340         possible, obtain register numbers from tdep struct.  Don't
6341         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6342         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6343         (LAST_UISA_SP_REGNUM): Delete.
6344         
6345 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6346
6347         * rs6000-nat.c (ppc-tdep.h): Include.
6348         (fetch_registers, store_register, fetch_core_registers): Don't
6349         access registers[] directly.  Instead, use supply_register() or
6350         regcache_collect() as appropriate.
6351         (find_toc_address): Format hex address with local_hex_string().
6352
6353 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6354
6355         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6356         bfd/elf32-frv.c.
6357
6358 2002-07-24  Tom Tromey  <tromey@redhat.com>
6359
6360         * jv-exp.y: Marked all strings with _().
6361         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6362         internal_error.
6363         (MethodInvocation, CastExpression, parse_number, yyerror,
6364         java_type_from_name, push_expression_name, yylex): Typo fixes.
6365
6366 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6367
6368         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6369         (tee_file_flush, tee_file_write, tee_file_fputs)
6370         (tee_file_isatty): New.
6371         * ui-file.h (tee_file_new): Add prototype.
6372
6373 2002-07-24  Aidan Skinner <aidan@velvet.net>
6374
6375         * ada-lang.c: Change k&r style function definitions to prototyped
6376         form.
6377         * ada-typeprint.c: Change k&r style function definitions to prototyped
6378         form.
6379         * ada-valprint.c: Change k&r style function definitions to prototyped
6380         form.
6381         
6382 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6383
6384         * README: Remove reference to remote-bug.
6385         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6386         remote-bug.c.
6387         (m88k-nat.o): Delete rule.
6388         (m88k-tdep.o): Delete rule.
6389         (remote-bug.o): Delete rule.
6390         * MAINTAINERS: Mark as obsolete.
6391         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6392         * m88k-tdep.c: Make file obsolete.
6393         * config/m88k/m88k.mh: Ditto.
6394         * config/m88k/delta88v4.mh: Ditto.
6395         * config/m88k/delta88v4.mt: Ditto.
6396         * config/m88k/delta88.mt: Ditto.
6397         * config/m88k/delta88.mh: Ditto.
6398         * remote-bug.c: Ditto.
6399         * config/m88k/tm-delta88.h: Ditto.
6400         * config/m88k/nm-delta88v4.h: Ditto.
6401         * config/m88k/xm-delta88.h: Ditto.
6402         * config/m88k/xm-dgux.h: Ditto.
6403         * config/m88k/tm-m88k.h: Ditto.
6404         * config/m88k/nm-m88k.h: Ditto.
6405         * config/m88k/tm-delta88v4.h: Ditto.
6406         * m88k-nat.c: Ditto.
6407         * cxux-nat.c: Ditto.
6408         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6409         and m88*-*-* obsolete.
6410         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6411         m88*-*-* obsolete.
6412
6413 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6414
6415         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6416         constant.  Same for local pointer variables.
6417         (extract_signed_integer): Ditto.
6418         * defs.h (extract_unsigned_integer): Update.
6419         (extract_signed_integer): Update.
6420
6421 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6422
6423         * regcache.c (regcache_raw_write): Change buf parameter to a
6424         constant void pointer.
6425         (regcache_raw_read): Change buf parameter to a void pointer.
6426         (legacy_write_register_gen): Change myaddr parameter a constant
6427         void pointer.
6428         (supply_register): Change val parameter to a const void pointer.
6429         * regcache.h (regcache_raw_write): Update declaration.
6430         (regcache_raw_read): Update declaration.
6431         (supply_register): Update declaration.
6432
6433 2002-07-24  Tom Tromey  <tromey@redhat.com>
6434
6435         * defs.h (gdb_readline_wrapper): Declare.
6436         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6437         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6438         * top.c (gdb_readline_wrapper): New function.
6439         (command_line_input): Use it.
6440
6441 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6442
6443         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6444         regcache_read and regcache_write.
6445         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6446         * regcache.c: Update.
6447         * sh-tdep.c (sh64_push_arguments): Update comment.
6448         (sh_pseudo_register_read): Update.
6449         (sh_pseudo_register_write): Update.
6450         (sh4_register_read): Update.
6451         (sh4_register_write): Update.
6452         (sh64_pseudo_register_read): Update.
6453         (sh64_pseudo_register_write): Update.
6454         (sh64_register_read): Update.
6455         (sh64_register_write): Update.
6456         * i386-tdep.c (i386_extract_return_value): Update.
6457         (i386_extract_struct_value_address): Update.
6458         (i386_extract_return_value): Update.
6459         * blockframe.c (generic_read_register_dummy): Update.
6460         (generic_call_dummy_register_unwind): Update
6461         * infrun.c (write_inferior_status_register): Update.
6462
6463 2002-07-23  Jim Blandy  <jimb@redhat.com>
6464
6465         * parser-defs.h (expression_context_pc): Make this extern.
6466         (Thanks to Michael Snyder.)
6467
6468 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6469
6470         GDB 5.2.1 released from 5.2 branch.
6471         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6472         * README: Update to mention 5.2.1.
6473
6474 2002-07-23  Mark Salter  <msalter@redhat.com>
6475
6476         * remote.c (remote_read_bytes): Fix check for error.
6477
6478 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6479
6480         * aix-thread.c (language.h): Include.
6481         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6482         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6483         Print newlines at end of debug messages.
6484         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6485         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6486
6487 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6488
6489         * aix-thread.c (ppc-tdep.h): Include.
6490         (special_register_p): New function.
6491         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6492         (store_regs_user_thread): Use register number information from
6493         gdbarch_tdep struct instead of hardcoded offsets relative to
6494         FIRST_UISA_SP_REGNUM.
6495         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6496         special_register_p() instead of using FPLAST_REGNUM and
6497         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6498         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6499         will be MQ's register number.
6500
6501 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6502
6503         * aix-thread.c (ops): Rename to aix_thread_ops.
6504         (base_ops): Rename to base_target.
6505         (ops_attach): Rename to aix_thread_attach.
6506         (ops_detach): Rename to aix_thread_detach.
6507         (ops_resume): Rename to aix_thread_detach.
6508         (ops_wait):   Rename to aix_thread_wait.
6509         (ops_kill):   Rename to aix_thread_kill.
6510         (init_ops):   Rename to init_aix_thread_ops.
6511         (ops_fetch_register): Rename to aix_thread_fetch_register.
6512         (ops_store_register): Rename to aix_thread_store_register.
6513         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6514         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6515         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6516         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6517         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6518         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6519         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6520         (store_regs_lib):  Rename to store_regs_user_thread.
6521         (store_regs_kern): Rename to store_regs_kernel_thread.
6522
6523 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6524
6525         * aix-thread.c (ops_prepare_to_store): Eliminate.
6526         (init_ops): Don't initialize ops.prepare_to_store.
6527         (store_regs_kern): Pre-fetch register buffers from child, 
6528         because some registers may not be in the cache.  Copy
6529         regs from register cache only if they are cached.
6530         (store_regs_lib): Copy regs from register cache only
6531         if they are cached.
6532         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6533         fill_gprs64): Ditto.
6534
6535 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6536
6537         * aix-thread.c (gdb_assert.h): Include.
6538         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6539         register sizes (from register cache) match size of buffer holding
6540         register data.
6541         (fill_sprs32): Change parameter types to match those in the ptrace()
6542         buffer.
6543         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6544         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6545
6546 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6547
6548         * aix-thread.c (supply_sprs64): Cosmetic change.
6549         (supply_sprs32): Cosmetic change.
6550         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6551         (fill_sprs64): Use regcache_collect instead of read_register.
6552         (store_regs_lib): Use regcache_collect instead of 
6553         read_register.  Use fill_sprs32 instead of fill_sprs64,
6554         if debugging a 32-bit architecture.
6555         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6556         out of the register cache, instead of passing a pointer into
6557         the register cache directly to ptrace.  Use regcache_collect
6558         insteaad of read_register.
6559         (ops_prepare_to_store): Use target_read_registers instead
6560         of read_register_bytes.
6561
6562 2002-07-20  Aidan Skinner <aidan@velvet.net>
6563
6564         * MAINTAINERS: Add self under write after approval. 
6565                 
6566 2002-07-20  Aidan Skinner <aidan@velvet.net>
6567
6568         * ada-tasks.c: Change k&r style function definitions to prototyped
6569         form.
6570                 
6571 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6572
6573         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6574         * x86-64-tdep.c: Include "objfiles.h".
6575         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6576         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6577
6578 2002-07-17  Michal Ludvig  <michal@suse.cz>
6579
6580         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6581         (update_context): Initialise cfa variable.
6582
6583 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6584
6585         * aix-thread.c: Shorten some long lines.  
6586         Bring comments into line with code spec.
6587
6588 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6589
6590         * infrun.c: Re-indent using gdb_indent.sh.
6591
6592 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6593
6594         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6595         Leave the indentation temporarily untouched, to minimize the diffs.
6596
6597 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6598
6599         * stabsread.c: Make os9k sections of the code obsolete,
6600         for real this time.
6601         * stabsread.h: Make os9k sections of the code obsolete.
6602
6603 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6604
6605         * linux-low.c (regsets_store_inferior_registers): Add free()
6606         at the end of a loop to prevent memory leak.
6607         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6608         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6609         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6610         line a comment.
6611         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6612
6613 2002-07-17  Jim Blandy  <jimb@redhat.com>
6614
6615         * macrocmd.c (info_macro_command): Remove newline from error
6616         message.
6617
6618 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6619
6620         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6621         (sh_gdbarch_init): Use it for sh-dsp.
6622
6623 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6624
6625         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6626         64-bit DWARF2 format.
6627
6628 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6629
6630         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6631         <sys/proc.h> when not available.
6632
6633 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6634
6635         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6636         * stabsread.c: Make os9k sections of the code obsolete.
6637         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6638         * config/i386/i386os9k.mt: Make file obsolete.
6639         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6640         (COMMON_OBS): Remove os9kread.o
6641         (SFILES): Remove os9kread.c.
6642         (os9kread.o, remote-os9k.o): Make target obsolete.
6643         * remote-os9k.c: Make file obsolete.
6644         * os9kread.c: Make file obsolete.
6645         * Makefile.in
6646
6647 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6648
6649         * NEWS: Mention that the FR30 has been made obsolete.
6650         * fr30-tdep.c: Make file obsolete.
6651         * config/fr30/tm-fr30.h: Ditto.
6652         * config/fr30/fr30.mt: Ditto.
6653         * configure.tgt: Make fr30-*-elf obsolete.
6654         * MAINTAINERS: Make fr30-elf obsolete.
6655
6656 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6657
6658         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6659         found is not inside a section.
6660
6661 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6662
6663         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6664         strerror().
6665         (pdc_realloc): Use xrealloc() instead of realloc().
6666
6667 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6668
6669         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6670         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6671         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6672         macros.
6673
6674 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6675
6676         * aix-thread.c (ptrace_check): Eliminate goto.
6677         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6678         problem.
6679
6680 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6681
6682         * aix-thread.c (gdbcmd.h): Include.
6683         (DEBUG, DBG, DBG2, dbg): Eliminate.
6684         (debug_aix_thread): New static global.
6685         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6686         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6687         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6688         invocations to DBG and DBG2 macros to test against
6689         ``debug_aix_thread'' and call fprintf_unfiltered().
6690         (_initialize_aix_thread): Add new command "set debug aix-thread".
6691
6692 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6693
6694         From Gerhard Tonn <TON@de.ibm.com>:
6695         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6696         instead of supply_register.
6697
6698 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6699
6700         * dwarf2cfi.c: Include "gdb_assert.h".
6701         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6702         non-NULL.
6703         (update_context): Do not use __func__.  Add missing ``break''.
6704         (update_context): Do not use __func__.
6705
6706 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6707
6708         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6709         and its setting.  Set gdbarch instruction printing functions
6710         directly.  For non-rs6000 case use new function
6711         gdb_print_insn_powerpc.
6712         (gdb_print_insn_powerpc): New function.
6713
6714 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6715
6716         * NEWS: Mention that the d30v has been marked obsolete.
6717         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6718         * configure.tgt: Mark d30v-*-* as obsolete.
6719         * d30v-tdep.c: Mark file as obsolete.
6720         * config/d30v/d30v.mt: Ditto.
6721         * config/d30v/tm-d30v.h: Ditto.
6722
6723 2002-07-13  Aidan Skinner <aidan@velvet.net>
6724
6725         * ada-tasks.c (add_task_entry): replace calls to
6726         malloc() with xmalloc
6727         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6728         
6729         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6730         ada_finish_decode_line_1, all_sals_for_line
6731         ada_breakpoint_rewrite): replace calls to free() with xfree()
6732                 
6733 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6734
6735         From Nicholas Duffek (with minor changes by Martin Hunt, 
6736         Louis Hamilton, and Kevin Buettner):
6737         * aix-thread.c: New file.
6738
6739 2002-07-12  Petr Sorfa <petrs@caldera.com>
6740
6741         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6742         complaint for invalid attribute class or form.
6743         (read_func_scope): DW_AT_frame_base
6744         better handling of DW_AT_block*.
6745         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6746         better handling of DW_AT_block*.
6747         (read_common_block): DW_AT_location
6748         better handling of DW_AT_block*.
6749         (read_partial_die): DW_AT_location better handling
6750         of DW_AT_block*.
6751         (new_symbol): DW_AT_external better handling of
6752         DW_AT_block*. Proper initialization of variable
6753         "addr".
6754         (attr_form_is_block): New function that returns true
6755         if the attribute's form is of DW_FORM_block*.
6756
6757 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6758
6759         * valops.c (find_method_list): Remove comment about
6760         removed STATIC_MEMFUNCP argument.
6761         (value_find_oload_method_list): Likewise.
6762
6763 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6764
6765         From Nicholas Duffek:
6766         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6767         target_new_objfile_hook.
6768
6769 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6770
6771         From Nicholas Duffek:
6772         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6773         csect.
6774
6775 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6776
6777         * MAINTAINERS: Mention --enable-sim-build-warnings.
6778         (m68hc11-elf): Disable sim build warnings.
6779         (m32r-elf): Mark as broken obsolete candidate.
6780         (x86_64-linux-gnu): Mark as buildable with -Werror.
6781         (arm-elf): Change -w to ``,'' which enables warnings but not
6782         -Werror.
6783
6784 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6785
6786         * bcache.h: Update copyright.
6787         (struct bstring, struct bcache): Move definition to "bcache.c".
6788         Replaced by opaque declaration.
6789         (bcache_xfree): Replace free_bcache.
6790         (bcache_xmalloc, bcache_memory_used): Declare.
6791         
6792         * bcache.c: Update copyright.
6793         (struct bstring, struct bcache): Moved to here from "bcache.h".
6794         Update comments.
6795         (bcache_xmalloc, bcache_memory_used): New functions.
6796         (bcache_xfree): Replace function free_bcache.
6797         
6798         * Makefile.in (objfiles.o): Add $(bcache_h).
6799         (objfiles_h): Remove $(bcache_h).
6800         (symfile.o): Add $(bcache_h).
6801
6802         * symmisc.c: Update copyright.
6803         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6804         (print_objfile_statistics): Use bcache_memory_used.
6805
6806         * symfile.c: Include "bcache.h".
6807         (reread_symbols): Use bcache_xfree.
6808         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6809         (add_psymbol_to_list): Pass psymbol_cache by value.
6810         (add_psymbol_with_dem_name_to_list): Ditto.
6811
6812         * objfiles.h: Update copyright.
6813         (struct bcache): Declare opaque.  Do not include "bcache.h".
6814         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6815         bcache'' pointers.
6816         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6817
6818         * objfiles.c: Include "bcache.h".  Update copyright.
6819         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6820         macro_cache.
6821         (free_objfile): Use bcache_xfree.
6822
6823 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6824
6825         * monitor.c (monitor_fetch_register): Make name a constant.
6826         (monitor_store_register): Same.
6827
6828 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6829
6830         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6831         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6832         (finish_block) For non-function blocks, hash the symbol table.  For
6833         function blocks, mark the symbol table as unhashed.
6834         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6835         (msymbol_hash_iw): Likewise.
6836         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6837         value.
6838         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6839         (lookup_minimal_symbol): Likewise for both.
6840         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6841         hashtable.
6842         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6843         (ALL_BLOCK_SYMBOLS): Update.
6844         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6845         (struct symbol): Add `hash_next' pointer.
6846         * symtab.c (lookup_block_symbol): Search using the hash table when
6847         possible.
6848         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6849         (search_symbols, find_addr_symbol): Likewise.
6850
6851         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6852         (read_dst_symtab): Likewise.
6853         * jv-lang.c (get_java_class_symtab): Likewise.
6854         * mdebugread.c: Include "gdb_assert.h".
6855         (shrink_block): Assert that the block being modified is not hashed.
6856         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6857         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6858         symbols.
6859         (dump_symtab): Recognize hashed blocks.
6860         * printcmd.c (print_frame_args):  Assert that function blocks do not
6861         have hashed symbol tables.
6862         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6863         (fill_in_ada_prototype, debug_print_block): Likewise.
6864         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6865
6866 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6867
6868         * stack.c (print_frame): Use result of frame_address_in_block()
6869         instead of fi->pc when evaluating symbols.
6870         (backtrace_command_1): Ditto.
6871
6872 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6873
6874         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6875         Make static.
6876
6877         * arm-tdep.c (arm_register_name): Make return type constant.
6878
6879 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6880
6881         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6882         prototype.
6883         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6884         * s390-tdep.c (s390_fp_regnum): Ditto.
6885         (s390_read_fp): Ditto.
6886         (s390_pop_frame): Ditto.
6887         (_initialize_s390_tdep): Ditto.
6888         * remote.c (get_remote_state): Ditto.
6889         * procfs.c (mappingflags): Ditto.
6890         * memattr.c (_initialize_mem): Ditto.
6891         * mcore-tdep.c (mcore_pop_frame): Ditto.
6892         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6893         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6894         * language.c (set_case_str): Ditto.
6895         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6896         * frv-tdep.c (new_variant): Ditto.
6897         (frv_stopped_data_address): Ditto.
6898         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6899         (context_alloc): Ditto.
6900         (frame_state_alloc): Ditto.
6901         (unwind_tmp_obstack_init): Ditto.
6902         (unwind_tmp_obstack_free): Ditto.
6903         (cfi_read_fp): Ditto.
6904         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6905         (cris_pop_frame): Ditto.
6906         * c-lang.c (scanning_macro_expansion): Ditto.
6907         (finished_macro_expansion): Ditto.
6908         (c_preprocess_and_parse): Ditto.
6909         * gdbarch.sh: Ditto.
6910         * gdbarch.h, gdbarch.c: Regenerate.
6911         * config/mn10200/tm-mn10200.h: Adjust indentation.
6912         * target.c: Adjust indentation.
6913         * symtab.h: Adjust indentation.
6914         * stabsread.h: Adjust indentation.
6915         * remote-es.c: Adjust indentation.
6916         * os9kread.c: Adjust indentation.
6917
6918 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6919         
6920         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6921         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6922
6923 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6924         
6925         * NEWS: Mention m68k, mcore multi-arching.  
6926         * MAINTAINERS: Change status of m68k, mcore to reflect
6927         multi-arching.
6928
6929 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6930
6931         * valops.c (find_overload_match): Free oload_syms.
6932
6933 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6934
6935         Define HAVE_SYS_PROC_H if sys/proc.h exists
6936         * configure.in: Add check for sys/proc.h
6937         * config.in: Regenerate.
6938         * configure: Regenerate.
6939
6940 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6941
6942         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6943         #if !GDB_MULTI_ARCH. 
6944
6945 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6946
6947         * config.in, configure: Regenerate.
6948
6949 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6950
6951         * dwarf2cfi.c: Include "gcore.h".
6952         (execute_stack_op): Fix implementation of the
6953         DW_OP_deref and DW_OP_deref_size operators by letting do their
6954         lookup in the target.
6955
6956 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6957
6958         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6959         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6960         tdep->sc_sp_offset.
6961
6962 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6963
6964         Fix PR gdb/595, gdb/602
6965         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6966         Don't call value_cast, just read the vtable pointer; update comments
6967         to match.
6968
6969 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6970
6971         * config/mcore/tm-mcore.h: Remove file.
6972         * config/mcore/mcore.mt: Remove definition of TM_FILE
6973         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6974
6975 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6976
6977         * i386bsd-tdep.c: Include "gdb_string.h".
6978
6979 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6980
6981         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6982         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6983         mcore-tdep.
6984         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6985         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6986         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6987         (RETVAL_REGNUM): Move macros from tm-mcore.h
6988         (mcore_reg_struct_has_addr): New function.
6989         (mcore_gdbarch_init): Added initializations for the macros removed
6990         from tm-mcore.h.
6991
6992 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
6993
6994         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6995         traditonal string branding within the ELF header.
6996
6997 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6998
6999         * symtab.c (remove_params): New function.
7000         (make_symbol_overload_list): Use it instead of cplus_demangle.
7001         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7002
7003 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7004
7005         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7006
7007         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7008         New variables.
7009         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7010         and tdep->sigtramp_end.
7011         * i386obsd-nat.c: New file.
7012         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7013
7014         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7015         Don't call get_current_frame().
7016
7017 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7018
7019         * i386-nat.c (child_post_startup_inferior): New function
7020         calling i386_cleanup_dregs if
7021         I386_USE_GENERIC_WATCHPOINTS is defined.
7022         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7023         conditional to acknowledge that i386-nat.c has its
7024         own child_post_startup_inferior function.
7025
7026 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7027
7028         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7029         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7030         instead of MAX_REGISTER_RAW_SIZE.
7031         (i386_extract_return_value, i386_extract_struct_value_address):
7032         Convert to use regcache.
7033         (i386_gdbarch_init): Set max_register_raw_size and
7034         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7035         Set extract_return_value and extract_struct_value_address instead
7036         of their deprecated variants.
7037
7038         Convert i386 target to generic dummy frames.
7039         * i386-tdep.c: Include "symfile.h".
7040         (i386_frameless_signal_p): Consider a function to be frameless if
7041         the pc points at the first instruction of the function.
7042         (i386_frame_chain): Handle (generic) call dummies.
7043         (i386_frame_saved_pc): Likewise.
7044         (i386_frame_init_saved_regs): Remove code dealing with call
7045         dummies on the stack.
7046         (i386_push_dummy_frame): Removed.
7047         (i386_call_dummy_words): Removed.
7048         (i386_fix_call_dummy): Removed.
7049         (i386_push_return_address): New function.
7050         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7051         parameter, and don't call get_current_frame.
7052         (i386_pop_frame): New function.
7053         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7054         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7055         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7056         call_dummy_length to 0, set call_dummy_words to NULL, set
7057         sizeof_call_dummy_words to 0, set fix_call_dummy to
7058         generic_fix_call_dummy, set pc_in_call_dummy to
7059         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7060         generic_push_dummy_frame, set push_return_address to
7061         i386_push_return_address and set frame_chain_valid to
7062         generic_file_frame_chain_valid.
7063
7064 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7065
7066         * gdbarch.sh (struct regcache): Add opaque declaration.
7067         (EXTRACT_RETURN_VALUE): New architecture method.
7068         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7069         * gdbarch.h, gdbarch.c: Regenerate.
7070         * arch-utils.c (legacy_extract_return_value): New function.
7071         * arch-utils.h (legacy_extract_return_value): Declare.
7072         * values.c (value_being_returned): Re-enable code handling
7073         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7074         deprecated_grub_regcache_for_registers call to block handling
7075         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7076         (EXTRACT_RETURN_VALUE): Do not define.
7077
7078 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7079
7080         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7081         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7082         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7083         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7084         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7085         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7086         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7087         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7088         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7089         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7090         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7091         argument so the function fits the prototype in the architecture
7092         vector.
7093         (mcore_pop_frame): Remove argument so the function fits the
7094         prototype. Use get_current_frame instead of the argument.
7095         (mcore_push_arguments): Change type of struct_return so the
7096         function can be used in the architecture vector.
7097         (mcore_store_struct_return): Add.
7098         (mcore_frame_init_saved_regs): Add.
7099         (mcore_gdbarch_init): Add function calls to replace the macros
7100         removed from tm-mcore.h
7101
7102 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7103
7104         * infcmd.c (print_return_value): Remove compatibility code calling
7105         deprecated_grub_regcache_for_registers.
7106         
7107         * values.c: Include "regcache.h".
7108         (value_being_returned): Update.  Use
7109         deprecated_grub_regcache_for_registers to extract the register
7110         buffer address.  
7111         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7112         ``struct regcache''.
7113         * Makefile.in (values.o): Add dependency on $(regcache_h).
7114
7115         * inferior.h (run_stack_dummy): Change type of second parameter to
7116         a ``struct regcache''.
7117         * valops.c (hand_function_call): Change type of retbuf to ``struct
7118         regcache''.  Allocate using regcache_xmalloc, clean using
7119         make_cleanup_regcache_xfree.
7120         * infcmd.c (run_stack_dummy): Update.  Use
7121         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7122
7123         * regcache.c (do_regcache_xfree): New function.
7124         (make_cleanup_regcache_xfree): New function.
7125         * regcache.h (make_cleanup_regcache_xfree): Declare.
7126
7127 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7128
7129         * event-top.c (command_line_handler): Don't read past
7130         beginning of buffer.
7131
7132 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7133         
7134         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7135         struct frame_id. 
7136         (varobj_create): Store frame_id for root.
7137         (varobj_gen_name): Use xasprintf.
7138         (varobj_update): Save and restore frame using get_frame_id() and
7139         frame_find_by_id().
7140         (create_child): Use xasprintf.
7141         (new_root_variable): Initialize frame_id.
7142         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7143         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7144         to prevent memory leak.
7145
7146 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7147
7148         * valops.c (hand_function_call): Move declaration of retbuf to
7149         start of function, allocate using malloc, add a cleanup but before
7150         the inf_status cleanup, cleanup the buffer.  Rename local variable
7151         old_chain to inf_status_cleanup.
7152
7153 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7154
7155         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7156
7157         * cli/cli-decode.c (cmd_func_p): New function.
7158         (cmd_func): New function.
7159
7160         * command.h: Add cmd_func() and cmd_func_p().   
7161         
7162 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7163
7164         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7165         (REGISTER_SIZE): Remove.
7166         (MAX_REGISTER_RAW_SIZE): Remove.
7167         (REGISTER_VIRTUAL_TYPE): Remove.
7168         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7169         (REGISTER_NAME): Remove.
7170         (USE_GENERIC_DUMMY_FRAMES): Remove.
7171         (CALL_DUMMY): Remove.
7172         (CALL_DUMMY_START_OFFSET): Remove.
7173         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7174         (CALL_DUMMY_LOCATION): Remove.
7175         (FIX_CALL_DUMMY): Remove.
7176         (CALL_DUMMY_ADDRESS): Remove.
7177         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7178         (SAVE_DUMMY_FRAME_TOS): Remove.
7179         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7180         (mcore_register_virtual_type): New function.
7181         (mcore_register_byte): New function.
7182         (mcore_register_size): New function.
7183         (mcore_register_name): New function.
7184         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7185         macros removed from tm-mcore.h.
7186         (mcore_dump_tdep): Add.
7187         (_initialize_mcore_tdep): Add gdbarch_register call.
7188
7189 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7190
7191         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7192         frameless_look_for_prologue, such that we actually call this
7193         function.
7194
7195 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7196
7197         * frame.h (frame_address_in_block): New function.
7198
7199         * blockframe.c (frame_address_in_block): New function extracted
7200         from get_frame_block().
7201         (get_frame_block): Use frame_address_in_block().
7202         (block_innermost_frame): Use frame_address_in_block() to match
7203         the frame pc address against the block boundaries rather than
7204         the frame pc directly. This prevents a failure when a frame pc
7205         is actually a return-address pointing immediately after the end
7206         of the given block. 
7207
7208 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7209
7210         * MAINTAINERS: Add self under write after approval. 
7211
7212 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7213
7214         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7215         used in architecture vector. The default is
7216         m68k_local_breakpoint_from_pc.
7217         (m68k_local_breakpoint_from_pc): Add.
7218         (enum): Add register numbers from tm-m68k.h.
7219         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7220         vector.  
7221         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7222         GDB_MULTI_ARCH_PARTIAL.
7223         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7224         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7225         m68k-tdep.c.
7226         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7227         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7228         to enum in m68k-tdep.c
7229
7230 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7231
7232         * solib-osf.c (open_map): Compute the list of shared libraries
7233         loaded by the inferior, rather than the list of libraries loaded
7234         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7235         the wrong shared libraries...
7236
7237 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7238
7239         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7240         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7241         macros.
7242         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7243         Remove functions.
7244         (FRAMELESS_SIGNAL): Remove function.
7245         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7246         i386_linux_saved_pc_after_call): Removed.
7247         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7248         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7249         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7250
7251         * i386-tdep.c (i386_frameless_signal_p): New function.
7252         (i386_frame_chain): Deal with frameless signals.
7253         (i386_sigtramp_saved_sp): New function.
7254         (i386_frame_saved_pc): Deal with frameless signals.
7255         (i386_saved_pc_after_call): Make sure the correct value is
7256         returned just after entry into a sigtramp.
7257         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7258         i386fbsd4_sc_sp_offset): New variables.
7259         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7260         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7261         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7262         similiar to what we already did for sc_pc_offset.
7263         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7264         tdep->sc_sp_offset.
7265
7266         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7267
7268 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7269
7270         * config/i386/tm-x86-64linux.h: New.
7271         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7272         definitions.
7273         * config/i386/nm-x86-64.h: Rename to ...
7274         * config/i386/nm-x86-64linux.h: ... this one.
7275         * config/i386/x86-64linux.mh: Reflect the above change.
7276         
7277 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7278
7279         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7280         with sigcontext_addr.  Add sc_sp_offset.
7281         (i386bsd_sigtramp_saved_pc): Remove prototype.
7282         (i386bsd_sicontext_addr): Add prototype.
7283         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7284         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7285         (i386_svr4_sigtramp_saved_pc): Removed.
7286         (i386_svr4_sigcontext_addr): New function.
7287         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7288         Initialize tdep->sigcontext_addr instead.  Initialize
7289         tdep->sc_pc_offset and tdep->sc_sp_offset.
7290         (i386_gdbarch_init): Likewise.
7291         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7292         any more.
7293         (i386bsd_sigtramp_saved_pc): Remove function.
7294         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7295         Initialize tdep->sigcontext_addr instead.  Initialize
7296         tdep->sc_pc_offset.
7297         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7298         of tdep->sigtramp_saved_pc.
7299         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7300         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7301         instead.
7302
7303         * i386-tdep.c (i386_frameless_function_invocation,
7304         i386_frame_num_args, i386_frame_init_saved_regs,
7305         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7306         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7307         i386_extract_return_value, i386_store_return_value,
7308         i386_extract_struct_value_address, i386_register_virtual_type,
7309         i386_register_convertible, i386_register_convert_to_virtual,
7310         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7311         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7312         static.
7313
7314 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7315
7316         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7317
7318         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7319         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7320         this macro.  Include "value.h".
7321
7322 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7323
7324         * ada-exp.tab.c: remove as it's a generated file
7325         * ada-lex.c: remove as it's a generated file
7326                 
7327 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7328
7329         * config/i386/tm-i386.h (struct frame_info, struct
7330         frame_saved_regs, struct value, struct type): Remove forward
7331         declarations.
7332
7333         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7334         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7335         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7336         (FILL_FPXREGSET): Define.
7337
7338         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7339
7340         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7341         i[3456]86-*-netbsd* case.
7342         * config/i386/tm-obsd.h: Removed.
7343         * config/i386/obsd.mt: Removed.
7344         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7345         core-aout.o.
7346         (MH_CFLAGS): Add -DYYDEBUG=0.
7347
7348         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7349         i386nbsd_sc_pc_offset on OpenBSD too.
7350
7351         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7352         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7353         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7354         define.
7355         * i386bsd-tdep.c: Include "arch-utils.h".
7356         (i386bsd_aout_in_solib_call_trampoline): New function.
7357         (i386bsd_init_abi): Set in_solib_call_trampoline to
7358         i386bsd_aout_in_solib_call_trampoline.
7359         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7360         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7361
7362 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7363
7364         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7365         (struct obstack, struct bcache): Add opaque declarations.
7366         * Makefile.in (macrotab_h): Update
7367
7368 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7369
7370         * blockframe.c (generic_find_dummy_frame): Change return type to
7371         ``struct regcache''.
7372         (struct dummy_frame): Replace field ``registers'' with regcache, a
7373         struct regcache object.
7374         (generic_find_dummy_frame): Update.
7375         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7376         regcache_xmalloc and regcache_cpy.
7377         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7378         regcache_xfree.
7379         (deprecated_generic_find_dummy_frame): Update.
7380         (generic_read_register_dummy): Update.  Use
7381         regcache_read_as_address.
7382         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7383         (generic_get_saved_register): Update.  Use regcache_read.
7384
7385 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7386
7387         * Makefile.in (objfiles_h): Add $(bcache_h).
7388         * objfiles.h: Include "bcache.h".
7389
7390         * Makefile.in (symtab_h): Remove $(bcache_h).
7391         * symtab.h: Do not include "bcache.h".
7392
7393 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7394
7395         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7396         generic_func_frame_chain_valid.
7397
7398 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7399
7400         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7401         * config/i386/tm-fbsd.h: Likewise.
7402
7403 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7404
7405         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7406         generic_unwind_get_saved_register.
7407
7408 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7409
7410         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7411         * regcache.c (supply_register): Add missing argument to
7412         register_buffer call.
7413
7414 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7415
7416         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7417         Solaris /bin/grep does not not like it.  From Peter Schauer.
7418
7419 2002-06-26  Tom Tromey  <tromey@redhat.com>
7420
7421         * command.h (add_setshow_cmd): Declare.
7422         (add_setshow_cmd_full): Declare.
7423         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7424         returns void.  Use add_setshow_cmd_full.
7425         (add_setshow_cmd_full): New function.
7426         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7427         (add_setshow_boolean_cmd): Likewise.
7428
7429 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7430
7431         * config/vax/tm-vax.h: Protect from multiple inclusion.
7432         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7433         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7434         * config/vax/tm-vaxbsd.h: ...here.  New file.
7435         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7436
7437 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7438
7439         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7440         (BELIEVE_PCC_PROMOTION): Remove.
7441         (AP_REGNUM): Move to...
7442         * config/vax/nm-vax.h: ...here.
7443         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7444         (vax_breakpoint_from_pc): New function.
7445         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7446         and gdbarch_believe_pcc_promotion.
7447
7448 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7449
7450         * Makefile.in (vax_tdep_h): Define.  
7451         (vax-tdep.o): Use $(vax_tdep_h).
7452         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7453         (vax_dump_tdep): New function. 
7454         (_initialize_vax_tdep): Register vax_dump_tdep.
7455         * vax-tdep.h: Include osabi.h.     
7456         (struct gdbarch_tdep): New. 
7457
7458 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7459
7460         * frame.h (deprecated_generic_find_dummy_frame): Rename
7461         generic_find_dummy_frame.
7462         * blockframe.c (generic_find_dummy_frame): Make static.
7463         (deprecated_generic_find_dummy_frame): New function.
7464         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7465         generic_find_dummy_frame with deprecated_find_dummy_frame.
7466         (sh64_nofp_frame_init_saved_regs): Ditto.
7467         (sh_fp_frame_init_saved_regs): Ditto.
7468         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7469         (s390_frame_chain): Ditto.
7470         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7471
7472 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7473
7474         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7475         gdbarch vector are at the top.
7476         (NUM_REGS): Remove.
7477         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7478         (FRAME_ARGS_ADDRESS): Remove.
7479         (FRAME_LOCALS_ADDRESS): Remove.
7480         (FRAME_NUM_ARGS): Remove.
7481         (FRAME_ARGS_SKIP): Remove.  
7482         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7483         (m68k_gdbarch_init): Add gdbarch initializations for macros
7484         undefined in tm-m68k.h
7485
7486 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7487
7488         * monitor.h: Add the function regname to monitor_ops
7489         structure. This way NUM_REGS does not have to be a constant.
7490         * monitor.c (monitor_fetch_register): Added support for regname
7491         function. The function is called if the array regnames is NULL.
7492         (monitor_store_register): Same.
7493         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7494         regnames array.
7495         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7496         cpu32bug_cmds.regname to point to new function.
7497         * abug-rom.c (abug_regname): Same as above.
7498         (init_abug_cmds): Same.
7499         * dbug-rom.c (dbug_regname): Same as above.
7500         (init_dbug_cmds): Same.
7501         * remote-est.c (est_regname): Same. 
7502         (init_est_cmds): Same.
7503         * rom68k-rom.c (rom68k_regname): Same. 
7504         (init_rom68k_cmds): Same.
7505
7506 2002-06-25  Tom Tromey  <tromey@redhat.com>
7507
7508         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7509
7510 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7511
7512         * infrun.c (stop_registers): Change variable's type to ``struct
7513         regcache'''.
7514         (xmalloc_inferior_status): Delete function.
7515         (free_inferior_status): Delete function.
7516         (normal_stop): Use regcache_cpy.
7517         (struct inferior_status): Change type of fields ``stop_registers''
7518         and ``registers'' to ``struct regcache''.
7519         (write_inferior_status_register): Use regcache_write.
7520         (save_inferior_status): Instead of calling
7521         xmalloc_inferior_status, allocate the inf_status buffer directly.
7522         Use regcache_dup_no_passthrough and regcache_dup to save the
7523         buffers.
7524         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7525         Replace the stop_registers regcache instead of overriding it.  Use
7526         regcache_xfree.  Instead of calling free_inferior_status, xfree
7527         the buffer directly.
7528         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7529         free_inferior_status, xfree the buffer directly.
7530         (build_infrun): Use regcache_xmalloc.
7531         (_initialize_infrun): Delete redundant call to build_infrun.
7532
7533         * Makefile.in (infcmd.o): Add $(regcache_h).
7534
7535         * infcmd.c: Include "regcache.h".
7536         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7537         obtain the address of `stop_registers' register buffer.
7538         (print_return_value): Ditto.
7539
7540         * inferior.h (struct regcache): Add opaque declaration.
7541         (stop_registers): Change variable's declared type to ``struct
7542         regcache''.
7543
7544 2002-06-24  Tom Tromey  <tromey@redhat.com>
7545
7546         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7547         * target.c (initialize_targets): Fixed typo in
7548         trust-readonly-sections `show' documentation.
7549
7550         * main.c: Marked all strings with _().
7551
7552 2002-06-24  Don Howard  <dhoward@redhat.com>
7553
7554         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7555         that means max CORE_ADDR+1.
7556         (lookup_mem_region): Ditto.
7557         (mem_info_command): Ditto.
7558
7559 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7560
7561         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7562         (REGISTER_BYTES_OK): Remove.
7563         (REGISTER_BYTES): Remove.
7564         (STORE_STRUCT_RETURN): Remove.
7565         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7566         (STORE_RETURN_VALUE): Remove.
7567         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7568         (FRAME_CHAIN): Remove.
7569         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7570         (FRAME_SAVED_PC): Remove.  
7571         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7572         (m68k_store_struct_return): Add.
7573         (m68k_deprecated_extract_return_value): Add.
7574         (m68k_deprecated_extract_struct_value_address): Add.
7575         (m68k_store_return_value): Add.
7576         (m68k_frame_chain): Add.
7577         (m68k_frameless_function_invocation): Add.
7578         (m68k_frame_saved_pc): Add.
7579         (m68k_gdbarch_init): added set_gdbarch calls for new 
7580         functions and deleted macros.
7581
7582 2002-06-23  Tom Tromey  <tromey@redhat.com>
7583
7584         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7585         (ALLDEPFILES): Likewise.
7586         (udiheaders): Removed.
7587         (udip2soc.o): Likewise.
7588         (udi2go32.o): Likewise.
7589         (udr.o): Likewise.
7590         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7591
7592 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7593
7594         * infrun.c (_initialize_infrun): Delete unnecessary call to
7595         build_infrun.
7596
7597         * regcache.h: Update comments describing the regcache_cpy family
7598         of functions.
7599         (regcache_save, regcache_restore): Delete declaration.
7600         (regcache_save_no_passthrough): Delete declaration.
7601         (regcache_restore_no_passthrough): Delete declaration.
7602         * regcache.c (regcache_save): Delete function.
7603         (regcache_save_no_passthrough): Delete function.
7604         (regcache_restore): Delete function.
7605         (regcache_restore_no_passthrough): Delete function.
7606
7607 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7608
7609         * config/m68k/tm-m68k.h: Fix typo.
7610         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7611         (m68k_frame_init_saved_regs): Declare.
7612
7613 2002-06-21  Jim Blandy  <jimb@redhat.com>
7614
7615         Remove some vestiges of Harris 88k support.
7616         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7617         register numbering quirk.
7618         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7619         odd symbols occurring in Harris 88k ELF targets.
7620
7621 2002-06-21  Tom Tromey  <tromey@redhat.com>
7622
7623         * gdb_locale.h: New file.
7624         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7625         (defs_h): Added gdb_locale.h.
7626         * configure, config.in: Rebuilt.
7627         * configure.in (PACKAGE): Define.
7628         * defs.h: Include gdb_locale.h.
7629         * main.c (captured_main): Call setlocale, bindtextdomain,
7630         textdomain.
7631
7632 2002-06-21  Dave Brolley  <brolley@redhat.com>
7633
7634         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7635         * config/frv/frv.mt: New file.
7636         * config/frv/tm-frv.h: New file.
7637         * configure.tgt: Support frv-*-*.
7638         * Makefile.in (frv-tdep.o): New target.
7639         * frv-tdep.c: New file.
7640         * NEWS: Mention frv.
7641
7642 2002-06-21  Dave Brolley  <brolley@redhat.com>
7643
7644         * MAINTAINERS: Add self to "Write After Approval" list.
7645
7646 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7647
7648         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7649         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7650         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7651         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7652         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7653
7654         * m68k-tdep.c: Include arch-utils.h
7655         (m68k_register_raw_size): Add.
7656         (m68k_register_virtual_size): Add.
7657         (m68k_register_virtual_type): Add.
7658         (m68k_register_name): Add.
7659         (m68k_stack_align): Add.
7660         (m68k_register_byte): Add.
7661         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7662         tm-m68k.h.
7663
7664 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7665
7666         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7667         m68k_find_saved_regs.
7668         (m68k_pop_frame): Removed saved_regs structure, and replaced
7669         references to it with frame->saved_regs.
7670         (m68k_gdbarch_init): Added function calls to initialize the
7671         gdbarch structure.
7672         (m68k_fix_call_dummy): Add. 
7673         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7674         (CALL_DUMMY): Remove.
7675         (CALL_DUMMY_LENGTH): Remove.
7676         (CALL_DUMMY_START_OFFSET): Remove.
7677         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7678         (FIX_CALL_DUMMY): Remove.
7679         (PUSH_DUMMY_FRAME): Remove.
7680         (POP_FRAME): Remove.
7681
7682 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7683
7684         * parse.c (parse_fprintf): New function used to avoid calls to
7685         fprintf in bison parser generated debug code.
7686         * parser-defs.h: Declaration of new parse_fprintf function.
7687         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7688         Set YYDEBUG to 1 by default.
7689         Set YYFPRINTF as parse_fprintf.
7690
7691 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7692
7693         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7694         encoding anymore.
7695         (pointer_encoding, enum ptr_encoding): New.
7696         (execute_cfa_program): Take care about pointer encoding.        
7697         (dwarf2_build_frame_info): Only call parse_frame_info for 
7698         .debug_frame and .eh_frame.
7699         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7700         fixed augmentation handling, added relative addressing, 
7701         ignore duplicate FDEs. Added comments.
7702         * dwarf2cfi.c: Reindented.
7703         
7704 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7705
7706         * event-top.c (command_handler): Don't use space_at_cmd_start
7707         unless there is sbrk() on the host. Assign time and space data
7708         to union fields of the appropriate length.
7709
7710 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7711
7712         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7713         x86_64_register_name. Return type changed to 'const char *'.
7714         (x86_64_register_name2nr): Rename to x86_64_register_number.
7715         (x86_64_gdbarch_init): Update to reflect the change.
7716         * x86-64-tdep.h: Ditto.
7717         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7718         (supply_fpregset): Ditto.
7719
7720 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7721
7722         * regcache.h: Update copyright.
7723         (struct regcache, struct gdbarch): Add opaque declarations.
7724         (current_regcache): Declare global variable.
7725         (regcache_read, regcache_write): Add gdbarch parameter.
7726         (regcache_save, regcache_save_no_passthrough)
7727         (regcache_restore, regcache_restore_no_passthrough)
7728         (regcache_dup, regcache_dup_no_passthrough)
7729         (regcache_cpy, regcache_cpy_no_passthrough)
7730         (deprecated_grub_regcache_for_registers)
7731         (deprecated_grub_regcache_for_register_valid)
7732         (regcache_valid_p): Add function declarations.
7733         
7734         * regcache.c: Update copyright.
7735         (regcache_descr_handle): New global variable.
7736         (struct regcache_descr): Define.
7737         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7738         (regcache_descr, xfree_regcache_descr): New functions.
7739         (struct regcache): Define.
7740         (regcache_xmalloc, regcache_xfree): New functions.
7741         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7742         (regcache_dup, regcache_dup_no_passthrough): New functions.
7743         (regcache_valid_p, regcache_read_as_address): New functions.
7744         (deprecated_grub_regcache_for_registers): New function.
7745         (deprecated_grub_regcache_for_register_valid): New function.
7746         (current_regcache): New global variable.
7747         (register_buffer): Add regcache parameter.  Update calls.
7748         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7749         (read_register_gen, write_register_gen): Update register_buffer
7750         call.  Test for legacy_p instead of gdbarch_register_read_p or
7751         gdbarch_register_write_p.
7752         (regcache_collect): Update register_buffer call.
7753         (build_regcache): Rewrite.  Use deprecated grub functions.
7754         (regcache_save, regcache_save_no_passthrough): New functions.
7755         (regcache_restore, regcache_restore_no_passthrough): New
7756         functions.
7757         (_initialize_regcache): Create the regcache_data_handle. Swap
7758         current_regcache global variable.
7759         
7760         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7761         parameter to regcache_read and regcache_write calls.
7762         (sh4_register_read): Ditto.
7763         (sh64_pseudo_register_read): Ditto.
7764         (sh64_register_read): Ditto.
7765         (sh_pseudo_register_write): Ditto.
7766         (sh4_register_write): Ditto.
7767         (sh64_pseudo_register_write): Ditto.
7768         (sh64_register_write): Ditto.
7769
7770         * defs.h (XCALLOC): Define.
7771
7772 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7773
7774         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7775         * m68k-tdep.c (m68k_gdbarch_init): Added.
7776         (m68k_dump_tdep): Added.
7777
7778 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7779
7780         * ada-lang.c (fill_in_ada_prototype): Update comment.
7781
7782 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7783
7784         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7785         MIPS_ABI_LAST.
7786         (mips_abi_string, mips_abi_strings): New.
7787         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7788         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7789         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7790         O32 if no ABI is found.
7791         (mips_dump_tdep): Use mips_abi_strings.
7792         (mips_abi_update): New function.
7793         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7794         ``set mips abi'' and ``show mips abi''.  Check the size of
7795         mips_abi_strings.
7796
7797 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7798
7799         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7800         constant.
7801
7802 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7803
7804         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7805         current frame using only the first stack size adjustment. All
7806         subsequent size adjustments are not considered to be part of
7807         the "static" part of the current frame.
7808         Compute the address of the saved registers relative to the
7809         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7810         in use in this frame.
7811
7812 2002-06-18  Don Howard  <dhoward@redhat.com>
7813  
7814         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7815         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7816         suggesting this solution.
7817
7818 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7819
7820         * config/romp/xm-rtbsd.h: Delete file.
7821         * config/romp/rtbsd.mh: Delete file.
7822
7823 2002-06-18  Keith Seitz  <keiths@redhat.com>
7824
7825         * breakpoint.c (condition_command): Post breakpoint_modify
7826         when a condition is added to an existing breakpoint.
7827         (commands_command): Likewise for commands.
7828         (set_ignore_count): Likewise for ignore counts.
7829         If no tty, do not simply return, still need to send event
7830         notification.
7831         (ignore_command): Only print a newline if the command came
7832         from a tty.
7833         Don't call breakpoints_changed, since this is now properly
7834         handled by set_ignore_count.
7835
7836 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7837
7838         * MAINTAINERS: Note that cris-elf target can be compiled with
7839         -Werror.
7840         * cris-tdep.c (cris_register_name): Make return type constant.
7841         (cris_breakpoint_from_pc): Ditto.
7842
7843 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7844
7845         * frame.h (struct frame_info): Change type of context to 
7846         'struct context'.
7847
7848 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7849
7850         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7851         pointer.
7852         * gdbarch.h, gdbarch.c: Regenerate.
7853         * config/mips/tm-mips.h (mips_register_name): Update.
7854         * i386-tdep.h (i386_register_name): Update.
7855         * mips-tdep.c (mips_register_name): Update
7856         * alpha-tdep.c (alpha_register_name): Update.
7857         * arch-utils.c (legacy_register_name): Update.
7858         * arch-utils.h (legacy_register_name): Update.
7859         * avr-tdep.c (avr_register_name): Update.
7860         * ia64-tdep.c (ia64_register_name): Update.
7861         * i386-tdep.c (i386_register_name): Update.
7862         * sparc-tdep.c (sparc32_register_name): Update.
7863         (sparc64_register_name): Update.
7864         (sparclite_register_name): Update.
7865         (sparclet_register_name): Update.
7866         * sh-tdep.c (sh_generic_register_name): Update.
7867         (sh_sh_register_name): Update.
7868         (sh_sh3_register_name): Update.
7869         (sh_sh3e_register_name): Update.
7870         (sh_sh_dsp_register_name): Update.
7871         (sh_sh3_dsp_register_name): Update.
7872         (sh_sh4_register_name): Update.
7873         (sh_sh64_register_name): Update.
7874         * s390-tdep.c (s390_register_name): Update.
7875         * rs6000-tdep.c (rs6000_register_name): Update.
7876         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7877         (ns32k_register_name_32382): Update.
7878         * d10v-tdep.c (d10v_ts2_register_name): Update.
7879         (d10v_ts3_register_name): Update.
7880         * xstormy16-tdep.c (xstormy16_register_name): Update.
7881         * vax-tdep.c (vax_register_name): Update.
7882         * v850-tdep.c (v850_register_name): Update.
7883         * m68hc11-tdep.c (m68hc11_register_name): Update.
7884         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7885         (am33_register_name): Update.
7886
7887 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7888
7889         * m68k-tdep.c: Reindented.
7890
7891 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7892
7893         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7894         list of predefined types.
7895
7896 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7897
7898         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7899         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7900         REGISTER_CONVERT_TO_RAW): Remove defines.
7901         (i386_register_virtual_type, i386_register_convertible,
7902         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7903         Remove prototypes.
7904         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7905         macros mentioned above.
7906
7907         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7908         (i386lynx_saved_pc_after_call): Remove prototype.
7909         * i386ly-tdep.c: Include "i386-tdep.h".
7910         (i386lynx_saved_pc_after_call): Make static.  Use
7911         read_memory_nobpt instead of read_memory.  Use
7912         read_memory_unsigned_integer instead of read_memory_integer.
7913         (i386lynx_init_abi): New function.
7914         (i386lynx_coff_osabi_sniffer): New function.
7915         (_initialize_i386bsd_tdep): New function.
7916
7917         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7918         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7919         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7920         (i386_fix_call_dummy): Remove prototype.
7921         * i386-tdep.c (i386_call_dummy_words): New variable.
7922         (i386_gdbarch_init): Adjust for removal of the
7923         macros mentioned above.
7924
7925 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7926
7927         * command.h (add_setshow_auto_boolean_cmd): Replace
7928         add_set_auto_boolean_cmd.
7929         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7930         add_set_auto_boolean_cmd.
7931         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7932         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7933         mask-address'' command.
7934         (show_mask_address): Add cmd parameter.
7935         * remote.c (add_packet_config_cmd): Update.  Change type of
7936         set_func and show_func to cmd_sfunc_ftype.
7937         (_initialize_remote): Update `set remote Z-packet'
7938         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7939         (show_remote_protocol_e_packet_cmd): Ditto.
7940         (show_remote_protocol_E_packet_cmd): Ditto.
7941         (show_remote_protocol_P_packet_cmd): Ditto.
7942         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7943         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7944         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7945         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7946         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7947         (show_remote_protocol_Z_packet_cmd): Ditto.
7948         (show_remote_protocol_binary_download_cmd): Ditto.
7949         (show_remote_cmd): Pass NULL to all of above.
7950
7951 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7952
7953         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7954         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7955         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7956         POP_FRAME): Remove defines.
7957         (i386_push_arguments, i386_store_struct_return,
7958         i386_extract_return_value, i386_store_return_value,
7959         i386_extract_struct_value_address, i386_push_dummy_frame,
7960         i386_pop_frame): Renove prototypes.
7961         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7962         macros mentioned above.
7963
7964 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7965
7966         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7967         add_set_boolean_cmd.
7968         (add_setshow_cmd): New function.
7969         * command.h (add_setshow_boolean_cmd): Replace
7970         add_set_boolean_cmd.
7971         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7972         and ``set rdiromatzero''.
7973         * maint.c (_initialize_maint_cmds): Update commented out code.
7974         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7975         * target.c (initialize_targets): Update `set
7976         trust-readonly-sections'.
7977         * remote.c (_initialize_remote): Update `set remotebreak'.
7978
7979 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7980
7981         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7982         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7983         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7984         fit into multi-arch framework.
7985         (i386_breakpoint_from_pc): New function.
7986         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7987         above.
7988
7989         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7990         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7991         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7992         (i386_frameless_function_invocation, i386_frame_num_args,
7993         i386_frame_init_saved_regs): Remove prototypes.
7994         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7995         macros mentioned above.
7996
7997 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7998
7999         * cli/cli-decode.c (set_cmd_cfunc): Update.
8000         (set_cmd_sfunc): Update.
8001         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8002         (set_cmd_sfunc, set_cmd_cfunc): Update.
8003         * cli/cli-decode.h: Update.
8004
8005 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8006
8007         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8008         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8009
8010 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8011
8012         * defs.h (auto_boolean): Declare enum.
8013         * command.h (cmd_auto_boolean): Delete enum.
8014         * mips-tdep.c (mask_address_var): Update.
8015         (mips_mask_address_p): Update.
8016         (show_mask_address): Update.
8017         * remote.c (struct packet_config): Update.
8018         (update_packet_config): Update.
8019         (show_packet_config_cmd): Update.
8020         (packet_ok): Update.
8021         (add_packet_config_cmd): Update.
8022         (_initialize_remote): 
8023         * command.h: Update.
8024         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8025         (do_setshow_command): Update.
8026         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8027         * cli/cli-decode.h: Update.
8028
8029 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8030
8031         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8032         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8033         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8034         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8035         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8036         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8037
8038         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8039         list of DJGPP COFF targets.
8040
8041         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8042         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8043         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8044         (FP0_REGNUM): Remove define.
8045         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8046         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8047         (i386_register_virtual_size): Remove protoype.
8048         * i386-tdep.c (i386_register_virtual_size): Removed.
8049         (i386_extract_return_value, i386_store_return_value): Use
8050         FP0_REGNUM instead of NUM_FREGS to determine whether the
8051         floating-point registers are available.
8052         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8053         Adjust for removal of macros mentioned above.
8054
8055 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8056
8057         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8058         comments.
8059         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8060         Remove prototypes.
8061         (supply_gregset, fill_gregset): Remove use of register keyword and
8062         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8063         NUM_REGS and NUM_FREGS.
8064         (FPREGSET_FSAVE_OFFSET): Remove.
8065         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8066         NUM_FREGS to determine whether the floating-point registers are
8067         available.
8068
8069         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8070         gnu_store_registers): Replace usage of NUM_GREGS with
8071         I386_NUM_GREGS.
8072
8073         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8074         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8075         usage of NUM_GREGS with I386_NUM_GREGS.
8076
8077         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8078
8079         * i386bsd-nat.c: Include "i386-tdep.h".
8080         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8081         I386_NUM_GREGS.
8082
8083         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8084         and associated comment.  They no longer make any sense, since we
8085         don't use this file anymore on Linux.
8086
8087         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8088         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8089         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8090         elements in these arrays.
8091         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8092         MAX_NUM_REGS.
8093
8094 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8095
8096         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8097         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8098
8099 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8100
8101         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8102         EXTRACT_RETURN_VALUE.
8103         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8104         EXTRACT_STRUCT_VALUE_ADDRESS.
8105         * gdbarch.h, gdbarch.c: Regenerate.
8106         
8107         * values.c (value_being_returned): Handle
8108         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8109         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8110
8111         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8112         * arm-tdep.c (arm_gdbarch_init): Update.
8113         * avr-tdep.c (avr_gdbarch_init): Update.
8114         * cris-tdep.c (cris_gdbarch_init): Update.
8115         * d10v-tdep.c (d10v_gdbarch_init): Update.
8116         * ia64-tdep.c (ia64_gdbarch_init): Update.
8117         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8118         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8119         * s390-tdep.c (s390_gdbarch_init): Update.
8120         * sh-tdep.c (sh_gdbarch_init): Update.
8121         * s390-tdep.c (s390_gdbarch_init): Update.
8122         * sparc-tdep.c (sparc_gdbarch_init): Update.
8123         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8124         * v850-tdep.c (v850_gdbarch_init): Update.
8125         * vax-tdep.c (vax_gdbarch_init): Update.
8126         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8127         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8128
8129         * config/arc/tm-arc.h: Update.
8130         * config/d30v/tm-d30v.h: Update.
8131         * config/fr30/tm-fr30.h: Update.
8132         * config/h8300/tm-h8300.h: Update.
8133         * config/h8500/tm-h8500.h: Update.
8134         * config/i386/tm-i386.h: Update.
8135         * config/i386/tm-ptx.h: Update.
8136         * config/i386/tm-symmetry.h: Update.
8137         * config/i960/tm-i960.h: Update.
8138         * config/m32r/tm-m32r.h: Update.
8139         * config/m68k/tm-delta68.h: Update.
8140         * config/m68k/tm-linux.h: Update.
8141         * config/m68k/tm-m68k.h: Update.
8142         * config/m88k/tm-m88k.h: Update.
8143         * config/mcore/tm-mcore.h: Update.
8144         * config/mips/tm-mips.h: Update.
8145         * config/mn10200/tm-mn10200.h: Update.
8146         * config/pa/tm-hppa.h: Update.
8147         * config/pa/tm-hppa64.h: Update.
8148         * config/sparc/tm-sp64.h: Update.
8149         * config/sparc/tm-sparc.h: Update.
8150         * config/sparc/tm-sparclet.h: Update.
8151         * config/z8k/tm-z8k.h: Update.
8152
8153 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8154
8155         * Makefile.in (i386_linux_tdep_h): Define.
8156         (i386_tdep_h, i387_tdep_h): Define.
8157         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8158         $(i386_tdep_h) and $(i387_tdep_h).
8159         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8160
8161 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8162
8163         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8164         Already covered by the default.
8165
8166         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8167         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8168         (i386_gdbarch_init): Initialize long_double_format and long_double
8169         bit.
8170
8171         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8172         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8173         Move these to ...
8174         * config/i386/i386sol2.mh: ... here.
8175         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8176         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8177         (SIGCONTEXT_PC_OFFSET): Remove define.
8178         (IN_SIGTRAMP): Remove define.
8179         * i386-sol2-tdep.c: New file.
8180         
8181         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8182         * config/i386/tm-i386nw.h: Removed.
8183
8184         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8185         USE_STRUCT_CONVENTION): Remove defines.
8186         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8187         (get_longjmp_target): Remove prototype.
8188         (IN_SIGTRAMP): Remove define.
8189         (i386bsd_in_sigtramp): Remove prototype.
8190         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8191         function.  Update comment accordingly
8192         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8193         (FRAME_SAVED_PC): Remove define.
8194         (i386bsd_frame_saved_pc): Remove prototype.
8195         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8196         GET_LONGJMP_TARGET): Remove defines.
8197         (get_longjmp_target): Remove prototype.
8198         (IN_SIGTRAMP): Remove define.
8199         (i386bsd_in_sigtramp): Remove prototype.
8200         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8201         function.  Update comment accordingly
8202         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8203         (FRAME_SAVED_PC): Remove define.
8204         (i386bsd_frame_saved_pc): Remove prototype.
8205         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8206         Remove prototype.
8207         (USE_STRUCT_CONVENTION): Remove prototype.
8208         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8209         declaration.
8210         (_initialize_i386bsd_nat): Revise logic to determine some
8211         constants at compile time when compiling a native GDB.  Warn if
8212         things don't match up with what we expect.
8213         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8214         Remove variables.
8215         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8216         to use date stored in `struct gdbarch_tdep'.
8217         (i386bsd_sigcontext_offset): Remove varaible.
8218         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8219         stored in `struct gdbarch_tdep'.
8220         (i386bsd_frame_saved_pc): Make static.
8221         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8222         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8223         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8224         i386fbsd4_sc_pc_offset): New variables.
8225         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8226         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8227         functions.
8228         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8229         functions.
8230         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8231         Modify the value of i386fbsd_sigtramp_start and
8232         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8233         i386fbsd_sigtramp_end.
8234         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8235         function.
8236
8237         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8238         define to i386-linux-tdep.h.
8239         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8240         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8241         defines.
8242         (i386_linux_register_name, i386_linux_register_byte,
8243         i386_linux_register_raw_size): Remove prototypes.
8244         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8245         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8246         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8247         TARGET_WRITE_PC): Remove defines.
8248         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8249         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8250         i386_linux_write_pc): Remove prototypes.
8251         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8252         (get_longjmp_target): Remove prototype.
8253         * i386-linux-tdep.h: New file.
8254         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8255         * i386-linux-tdep.c: Include "i386-tdep.h" and
8256         "i386-linux-tdep.h".
8257         (i386_linux_register_name, i386_linux_register_byte,
8258         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8259         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8260         Make static.
8261         (i386_linux_init_abi): New function.
8262         (_initialize_i386_linux_tdep): New function.
8263
8264         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8265         (i386_saved_pc_after_call): Remove prototype.
8266         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8267         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8268         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8269         (i386_register_name, i386_stab_reg_to_regnum,
8270         i386_dwarf_reg_to_regnum): Remove prototypes.
8271         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8272         SIZEOF_SSE_REGS): Remove defines.
8273         (REGISTER_BYTES): Remove define.
8274         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8275         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8276         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8277         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8278         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8279         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8280         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8281         (get_longjmp_target): Remove prototype.
8282         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8283         (sigtramp_saved_pc): Remove define.
8284         (i386v4_sigtramp_saved_pc): Remove prototype.
8285         * config/i386/tm-go32.h (FRAME_CHAIN,
8286         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8287         (i386go32_frame_saved_pc): Remove prototype.
8288         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8289         (get_longjmp_target): Remove prototype.
8290         * i386-tdep.h: Include "osabi.h".
8291         (enum i386_abi): Removed.
8292         (enum struct_return): New enum.
8293         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8294         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8295         sc_pc_offset members.
8296         (i386_gdbarch_register_os_abi): Remove prototype.
8297         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8298         I386_SSE_NUM_REGS): New defines.
8299         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8300         I386_SSE_SIZEOF_REGS): New defines.
8301         (i386_register_name, i386_register_byte, i386_register_raw_size):
8302         New prototypes.
8303         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8304         (i386bsd_sigtramp_saved_pc): New prototype.
8305         * i386-tdep.c: Don't include "elf-bfd.h".
8306         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8307         i386_frame_chain, i386_saved_pc_after_call): Make static.
8308         (i386_frame_saved_pc): Rewrite to call architecture dependent
8309         function to deal with signal handlers.  Make static.
8310         (i386go32_frame_saved_pc): Removed.
8311         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8312         Removed.
8313         (i386_get_longjmp_target): New function.
8314         (default_struct_convention, pcc_struct_convention,
8315         reg_struct_convention, valid_conventions, struct_convention): New
8316         variables.
8317         (i386_use_struct_convention): New function.
8318         (i386v4_sigtramp_saved_pc): Renamed to
8319         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8320         (i386_pc_in_sigtramp): New function.
8321         (i386_abi_names): Removed.
8322         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8323         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8324         Removed.
8325         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8326         i386_gdbarch_register_os_abi): Removed.
8327         (struct i386_abi_handler): Removed.
8328         (i386_abi_handler_list): Removed.
8329         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8330         functions.
8331         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8332         i386_nw_init_abi): New functions.
8333         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8334         Use set_gdbarch_xxx() calls instead of relying on macros for a
8335         number of calls.
8336         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8337         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8338         Register the various architecture variants defined in this file.
8339
8340 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8341
8342         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8343         (struct main_type): Remove arg_types member.  Update comments for
8344         struct field.
8345         (TYPE_ARG_TYPES): Remove.
8346         (TYPE_FN_FIELD_ARGS): Update.
8347         (smash_to_method_type): Update prototype.
8348
8349         * c-typeprint.c (cp_type_print_method_args): Take method type
8350         instead of argument list.  Use new argument layout.  Simplify.
8351         (c_type_print_args): Use new argument layout.  Simplify.
8352         (c_type_print_base): Update call to cp_type_print_method_args.
8353         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8354         argument; use die->type instead.  Update call to
8355         smash_to_method_type.
8356         (read_structure_scope): Update call to dwarf2_add_member_fn.
8357         * gdbtypes.c (allocate_stub_method): Update comment.
8358         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8359         Use new argument layout.
8360         (check_stub_method): Use new argument layout.  Don't count
8361         void as an argument.
8362         (print_arg_types): Update comments.  Use new argument layout.
8363         (recursive_dump_type): Don't print arg_types member.
8364         * hpread.c (hpread_read_struct_type): Use new argument layout.
8365         (fixup_class_method_type): Likewise.
8366         (hpread_type_lookup): Likewise.
8367         * stabsread.c (read_type): Update calls to read_args and
8368         smash_to_method_type.
8369         (read_args): Use new argument layout.  Simplify.
8370         * valops.c (typecmp): Use new argument layout.  Update parameters
8371         and comments.  Simplify.
8372         (hand_function_call): Use new argument layout.
8373         (search_struct_method): Update call to typecmp.
8374         (find_overload_match): Use new argument layout.
8375
8376 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8377
8378         * NEWS: Mention multithreaded debug support for gdbserver.
8379
8380 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8381
8382         * MAINTAINERS: Mention NEWS.
8383
8384 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8385
8386         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8387         (struct mips_objfile_private, compare_pdr_entries): New.
8388         (non_heuristic_proc_desc): Read the ".pdr" section if it
8389         is present.
8390
8391 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8392
8393         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8394         (arm_debug): New static variable.
8395         (_initialize_arm_tdep): Add ``set debug arm'' command.
8396
8397 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8398
8399         * Makefile.in (sim_arm_h): Define.
8400         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8401         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8402         (arm_register_sim_regno): New function, map an internal REGNUM
8403         onto a simulator register number.
8404         (arm_gdbarch_init): Set register_sim_regno.
8405
8406 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8407
8408         * MAINTAINERS: Add self.
8409
8410 2002-06-11  Jim Blandy  <jimb@redhat.com>
8411
8412         * source.c (source_info): Mention whether the symtab has
8413         information about preprocessor macros.
8414
8415         Call the command `info macro', not `show macro'.
8416         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8417         Fix error message.
8418         (_initialize_macrocmd): Register `info_macro_command' in
8419         `infolist', not `showlist'.
8420
8421 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8422
8423         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8424         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8425         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8426         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8427         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8428         unconditionally.
8429         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8430         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8431         (_initialize_mips_tdep): Remove dead code.
8432         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8433         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8434         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8435         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8436         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8437         MIPS_LAST_FP_ARG_REGNUM): Remove.
8438
8439 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8440
8441         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8442         (unwind_tmp_obstack_free, parse_frame_info)
8443         (update_context, cfi_read_fp, cfi_write_fp)
8444         (cfi_frame_chain, cfi_init_extra_frame_info)
8445         (cfi_virtual_frame_pointer): Use the above function.
8446         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8447
8448 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8449
8450         * v850-tdep.c (v850_type_is_scalar): New function.
8451         (v850_use_struct_convention): Match current gcc implementation
8452         as close as possible.
8453         (v850_push_arguments): Fix stack_offset handling.  Don't write
8454         struct_addr into register.  This is done by v850_store_struct_return.
8455         (v850_extract_return_value): Care for structs.
8456         (v850_store_return_value): Ditto.
8457         (v850_store_struct_return): Actually write address.
8458
8459 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8460
8461         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8462         without debug information too.
8463
8464 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8465
8466         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8467         Make multi-arch pure.
8468         * gdbarch.h, gdbarch.c: Re-generate.
8469         * arm-tdep.c (arm_print_float_info): Update.
8470         * arch-utils.h (default_print_float_info): Update.
8471         * arch-utils.c (default_print_float_info): Update.
8472         * infcmd.c (float_info): Update call.
8473
8474 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8475
8476         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8477         the front of the initialize list.
8478
8479 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8480
8481         * infrun.c (struct inferior_status): Replace fields
8482         selected_frame_address and selected_level with field
8483         selected_frame_id.
8484         (save_inferior_status): Update.  Use get_frame_id.
8485         (struct restore_selected_frame_args): Delete.
8486         (restore_selected_frame): Update.  Use frame_find_by_id.
8487         (restore_inferior_status): Update.
8488
8489         * breakpoint.h (struct breakpoint): Change type of
8490         watchpoint_frame to frame_id.
8491         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8492         call to get_current_frame.
8493         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8494         get_current_frame.
8495         (watchpoint_check): Use frame_find_by_id.
8496
8497         * frame.h (record_selected_frame): Delete declaration.
8498         * stack.c (record_selected_frame): Delete function.
8499         
8500         * frame.h (struct frame_id): Define.
8501         (get_frame_id): Declare.
8502         (frame_find_by_id): Declare.
8503         * frame.c (frame_find_by_id): New function.
8504         (get_frame_id): New function.
8505
8506 2002-06-10  Andrey Volkov <avolkov@transas.com>
8507
8508         * ser-e7kpc.c: Fix duplicated define and call of 
8509         _initialize_ser_e7000pc
8510             
8511 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8512
8513         * signals/signals.c (target_signal_from_host): Fix #ifdef
8514         SIGRTMIN case.
8515         (do_target_signal_to_host): Likewise.
8516
8517 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8518
8519         * mips-tdep.c (mips_find_abi_section): New function.
8520         (mips_gdbarch_init): Call it.
8521
8522 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8523
8524         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8525         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8526         after Andrew's 2002-06-08 gdbarch change.
8527
8528 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8529
8530         * i386-linux-nat.c (suppy_gregset): Don't supply
8531         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8532         register cache.
8533         (fill_gregset): Don't fetch it under the same circumstances.
8534
8535 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8536
8537         * Makefile.in (callback_h): Define.
8538         (remote_sim_h): Update path to remote-sim.h.
8539         (remote-rdp.o): Add $(callback_h).
8540         (remote-sim.o): Use $(callback_h).
8541         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8542         * remote-rdp.c: Include "gdb/callback.h".
8543
8544 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8545
8546         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8547         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8548
8549 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8550
8551         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8552         * rdi-share/serpardr.c: Ditto.
8553         * rdi-share/unixcomm.c: Ditto.
8554         * rdi-share/serdrv.c: Ditto.
8555         * rdi-share/hostchan.h: Ditto.
8556         * rdi-share/hostchan.c: Ditto.
8557         * rdi-share/host.h: Ditto.
8558         * rdi-share/devsw.c: Ditto.
8559
8560         * objfiles.h: Change type of obj_private to void pointer.
8561         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8562         strcmp instead of STREQ, use LONGEST, do not use PTR
8563         * somsolib.c: Ditto.
8564
8565         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8566         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8567         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8568
8569 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8570
8571         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8572         (default_get_saved_register): Delete function.
8573         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8574         generic_unwind_get_saved_register.
8575         * gdbarch.h, gdbarch.c: Re-generate.
8576         
8577 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8578
8579         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8580         generic_func_frame_chain_valid.
8581         * gdbarch.h, gdbarch.c: Re-generate.
8582         * blockframe.c (generic_func_frame_chain_valid): Only check
8583         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8584         passing FP to PC_IN_CALL_DUMMY.
8585         Fix PR gdb/360.
8586
8587 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8588
8589         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8590         (register_gdbarch_data): Initialize init_p.
8591         (gdbarch_data): Initialize data pointer using the init function.
8592         (init_gdbarch_data): Delete function.
8593         (gdbarch_update_p): Update.
8594         (initialize_non_multiarch): Update.
8595         (struct gdbarch): Add field initialized_p.
8596         * gdbarch.h, gdbarch.c: Re-generate.
8597
8598 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8599
8600         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8601         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8602         better do the things actually here.
8603         * x86-64-tdep.c (x86_64_register_name2nr): New.
8604         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8605         (x86_64_gdbarch_init): Respect the above change.
8606         * x86-64-tdep.h (x86_64_register_name2nr)
8607         (x86_64_register_nr2name): Add prototypes.
8608         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8609
8610 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8611
8612         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8613         Delete extra braces and re-indent.
8614         (d10v_store_return_value): Char return values
8615         must be shifted over by one byte in R0.
8616         (d10v_extract_return_value): Delete extra braces, re-indent.
8617
8618 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8619
8620         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8621         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8622         (d10v_integer_to_address): Rewrite.
8623         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8624         the d10v specific functions which take care of converting to the
8625         correct space.
8626
8627 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8628
8629         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8630         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8631
8632 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8633
8634         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8635         includes.
8636         * config/tm-linux.h: Ditto.
8637         * config/alpha/tm-alphalinux.h: Ditto.
8638         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8639         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8640         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8641         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8642         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8643         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8644         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8645         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8646         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8647         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8648         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8649         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8650         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8651         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8652         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8653         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8654         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8655         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8656         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8657         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8658         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8659         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8660         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8661         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8662         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8663         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8664         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8665         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8666         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8667         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8668         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8669         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8670         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8671         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8672         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8673         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8674         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8675
8676 2002-05-04  Aidan Skinner <aidan@velvet.net>
8677
8678         * ada-exp.tab.c: New file
8679         * ada-exp.y: New file
8680         * ada-lang.c: New file
8681         * ada-lang.h: New file
8682         * ada-lex.c: New file
8683         * ada-lex.l: New file
8684         * ada-tasks.c: New file
8685         * ada-typeprint.c: New file
8686         * ada-valprint.c: New file
8687         
8688 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8689
8690         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8691         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8692
8693 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8694
8695         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8696         insetead of ppc-linux-tdep.o.
8697         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8698         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8699
8700 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8701
8702         2002-05-07 Christian Groessler <chris@groessler.org>
8703         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8704         bit register contents for little endian hosts.
8705
8706 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8707
8708         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8709         any maintainer.
8710
8711 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8712
8713         * gdbarch.h: Regenerate.
8714
8715 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8716
8717         * MAINTAINERS: Add everyone to write-after-approval list.
8718
8719 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8720
8721         * stack.c (frame_info): Use frame_register_unwind instead of
8722         saved_regs.  Mention when the SP is on the stack or in a register.
8723
8724         * frame.h (frame_register_unwind_ftype): Define.  Document.
8725         (struct frame_info): Add field register_unwind and
8726         register_unwind_cache.
8727         (frame_register_unwind): Declare.
8728         (generic_unwind_get_saved_register): Declare.
8729
8730         * frame.c (frame_register_unwind): New function.
8731         (generic_unwind_get_saved_register): New function.
8732
8733         * blockframe.c (generic_call_dummy_register_unwind): New function.
8734         (frame_saved_regs_register_unwind): New function.
8735         (set_unwind_by_pc): New function.
8736         (create_new_frame): New function.
8737         (get_prev_frame): New function.
8738
8739 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8740
8741         * a29k-share/: Delete directory.
8742         * remote-vx29k.c: Delete file.
8743
8744 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8745
8746         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8747         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8748
8749 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8750
8751         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8752         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8753         (sparc64nbsd-nat.o)
8754         (sparcnbsd-nat.o)
8755         (sparcnbsd-tdep.o): New dependency lists.
8756         * NEWS: Note new UltraSPARC NetBSD native configuration.
8757         * configure.host (sparc64-*-netbsd*): New host.
8758         * configure.tgt (sparc-*-netbsdelf*)
8759         (sparc-*-netbsd*): Set gdb_target to nbsd.
8760         (sparc64-*-netbsd*): New target.
8761         * sparc64nbsd-nat.c: New file.
8762         * sparcnbsd-nat.c: New file.
8763         * sparcnbsd-tdep.c: New file.
8764         * sparcnbsd-tdep.h: New file.
8765         * config/sparc/nbsd.mt: New file.
8766         * config/sparc/nbsd64.mh: New file.
8767         * config/sparc/nbsd64.mt: New file.
8768         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8769         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8770         (HOST_IPC): Remove.
8771         * config/sparc/nbsdaout.mt: Remove.
8772         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8773         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8774         (HOST_IPC): Remove.
8775         * config/sparc/nbsdelf.mt: Remove.
8776         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8777         sparc-nat.c compatiblity defines.
8778         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8779         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8780         * config/sparc/tm-nbsd64.h: New file.
8781         * config/sparc/tm-nbsdaout.h: Remove.
8782         * config/sparc/xm-nbsd.h: Remove.
8783
8784 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8785
8786         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8787         * sparc-tdep.c: Include osabi.h.
8788         (gdbarch_tdep): Add osabi member.
8789         (_initialize_sparc_tdep): Use gdbarch_register.
8790         (sparc_gdbarch_init): Use generic OS ABI framework.
8791         (sparc_dump_tdep): New function.
8792
8793 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8794
8795         * corefile.c (do_captured_read_memory_integer): Return non-zero
8796         result.
8797         (safe_read_memory_integer): Copy result of memory read when
8798         status is non-zero.  Also, add comments.
8799
8800 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8801
8802         * Makefile.in (ppc_tdep_h): Define.
8803         (ppc-linux-nat.o)
8804         (ppc-linux-tdep.o)
8805         (rs6000-tdep.o): Use $(ppc_tdep_h).
8806         (ppc-sysv-tdep.o)
8807         (ppcnbsd-nat.o)
8808         (ppcnbsd-tdep.o): New dependency lists.
8809         * ppc-tdep.h: Use generic OS ABI framework.
8810         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8811         (ppc_linux_init_abi): New functions.
8812         (ppc_sysv_abi_broken_use_struct_convention)
8813         (ppc_sysv_abi_use_struct_convention)
8814         (ppc_sysv_abi_push_arguments): Move to...
8815         * ppc-sysv-tdep.c: ...here.
8816         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8817         * rs6000-tdep.c (process_note_abi_tag_sections)
8818         (get_elfosabi): Remove.
8819         (rs6000_gdbarch_init): Use generic OS ABI framework.
8820         (rs6000_dump_tdep): New function.
8821         (_initialize_rs6000_tdep): Use gdbarch_register.
8822         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8823         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8824         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8825         of ppc-linux-tdep.o.
8826         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8827         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8828         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8829         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8830         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8831         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8832
8833 2002-05-29  Jim Blandy  <jimb@redhat.com>
8834
8835         * macroscope.c (default_macro_scope): Put `void' in empty argument
8836         list.
8837
8838 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8839
8840         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8841         * arch-utils.c: Include "sim-regno.h".
8842         * gdbarch.sh: Don't include "sim-regno.h".
8843         * gdbarch.h, gdbarch.c: Regenerate.
8844         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8845         here.
8846         * arch-utils.h (legacy_register_sim_regno): To here.
8847         * remote-sim.c (legacy_register_sim_regno): Move function from
8848         here.
8849         * arch-utils.c (legacy_register_sim_regno): To here.
8850
8851 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8852
8853         * sim-regno.h: New file.
8854         * Makefile.in (sim_regno_h): Define.
8855         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8856         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8857         (legacy_register_sim_regno): New function.
8858         (one2one_register_sim_regno): New function.
8859         (gdbsim_fetch_register): Rewrite.
8860         (gdbsim_store_register): Only store a register when
8861         REGISTER_SIM_REGNO is valid.
8862         * d10v-tdep.c: Include "sim-regno.h".
8863         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8864         (d10v_ts3_register_sim_regno): Ditto.
8865         * gdbarch.sh: Include "sim-regno.h".
8866         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8867         * gdbarch.h, gdbarch.c: Regenerate.
8868         * arch-utils.h (default_register_sim_regno): Delete declaration.
8869         * arch-utils.c (default_register_sim_regno): Delete function.
8870
8871 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8872
8873         * ppcnbsd-nat.c: Rewrite.
8874         * ppcnbsd-tdep.c: New file.
8875         * ppcnbsd-tdep.h: New file.
8876         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8877         solib.o, and solib-svr4.o.
8878         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8879         nbsd-tdep.o, and corelow.o.
8880
8881 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8882
8883         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8884         `tr' and `sed'.  Mention that `broken' targets are not expected to
8885         build.
8886
8887 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8888
8889         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8890         Let PC point right after the prologue before looking up symbols.
8891         
8892 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8893
8894         * i386-tdep.c (i386_register_virtual_type): Return 
8895         builtin_type_vec128i for SSE registers.
8896
8897         * gdbtypes.h (builtin_type_vec128i): Declare.
8898
8899         * gdbtypes.c (build_builtin_type_vec128i): New function.
8900         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8901         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8902         (build_gdbtypes): Initialize new builtin vector types.
8903         (_initialize_gdbtypes): Register new vector types with gdbarch.
8904
8905 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8906
8907         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8908         since it has been multi-arch'd.
8909         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8910         Move Alpha and VAX multi-arch news entries to same section
8911         as other multi-arch news.
8912
8913 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8914
8915         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8916         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8917         static.  Rename some register numbers to put them in ns32k-tdep
8918         private namespace.
8919         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8920         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8921         functions.
8922         (_initialize_ns32k_tdep): Use gdbarch_register.
8923         * ns32k-tdep.h: New file.
8924         * ns32knbsd-tdep.c: New file.
8925         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8926         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8927         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8928         REGISTER_BYTES, REGISTER_BYTE): Remove.
8929         * config/ns32k/tm-ns32k.h: New file.
8930         * config/ns32k/tm-umax.h: Remove.
8931
8932 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8933
8934         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8935         ns32k_store_struct_return, ns32k_extract_return_value,
8936         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8937         functions.
8938         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8939         ns32k_saved_pc_after_call.
8940         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8941         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8942         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8943         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8944         ns32k_extract_struct_value_address.
8945
8946 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8947
8948         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8949         ns32k_fix_call_dummy): New.
8950         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8951         ns32k_call_dummy_words.
8952         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8953         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8954         CALL_DUMMY_NARGS): Remove.
8955         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8956
8957 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8958
8959         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8960         ns32k_frame_saved_pc, ns32k_frame_args_address,
8961         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8962         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8963         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8964         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8965         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8966         (BREAKPOINT): Remove..
8967         (FRAME_CHAIN): Define as ns32k_frame_chain.
8968         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8969         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8970         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8971         (FRAME_FIND_SAVED_REGS): Remove.
8972         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8973         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8974         (POP_FRAME): Define as ns32k_pop_frame.
8975
8976 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8977
8978         * ns32k-tdep.c (ns32k_register_byte_32082,
8979         ns32k_register_byte_32382, ns32k_register_raw_size,
8980         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8981         functions.
8982         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8983         ns32k_register_byte_32382.
8984         * config/ns32k/tm-umax.h: Update copyright years.
8985         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8986         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8987         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8988         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8989         (ns32k_get_enter_addr): Fix prototype.
8990
8991 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8992
8993         * ns32k-tdep.c: Update copyright years.
8994         (ns32k_register_name_32082): New function.
8995         (ns32k_register_name_32382): Ditto.
8996         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8997         (REGISTER_NAME): Define as ns32k_register_name_32382.
8998         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8999         (REGISTER_NAME): Define as ns32k_register_name_32082.
9000
9001 2002-05-24  Jim Blandy  <jimb@redhat.com>
9002
9003         * dwarf2read.c (free_line_header): Use xfree, not free.
9004
9005 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9006
9007         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9008         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9009
9010 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9011
9012         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9013
9014 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9015
9016         From Ross Alexander at NEC Europe:
9017         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9018
9019 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9020
9021         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9022         for input, rather than parse_and_eval_address.  
9023
9024 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9025
9026         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9027         * Makefile.in (sim_d10v_h): Update definition.
9028
9029 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9030
9031         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9032         change `2002-05-22 Michael Snyder' below.
9033         (d10v_push_arguments): Ditto.
9034         (d10v_extract_return_value): Ditto.
9035
9036 2002-05-23  Jim Blandy  <jimb@redhat.com>
9037
9038         * macrotab.c (check_for_redefinition): Don't complain if the new
9039         definition is the same as the previous one.  Take more arguments
9040         to allow the comparison.
9041         (macro_define_object, macro_define_function): Pass more arguments
9042         to check_for_redefinition.
9043
9044 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9045
9046         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9047         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9048         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9049         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9050         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9051         Add a temp variable to save a call (and a memory read).
9052         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9053         if possible (so that PC_IN_CALL_DUMMY will work).
9054
9055 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9056
9057         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9058
9059 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9060
9061         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9062         fde->cie_ptr.
9063         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9064         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9065         so that frames of shared libraries are mapped correctly.
9066         (execute_stack_op): Change type of 'result' from ULONGEST to
9067         CORE_ADDR.
9068         
9069 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9070
9071         * config/alpha/tm-nbsd.h: Include solib.h.
9072
9073 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9074
9075         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9076         assumptions about the host's byte order.
9077
9078 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9079
9080         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9081         to dependency list.
9082         * alphanbsd-tdep.c: Include solib-svr4.h.
9083         * shnbsd-tdep.c: Ditto.
9084
9085 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9086
9087         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9088         nbsd-tdep.h to dependency list.
9089         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9090         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9091         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9092         nbsdaout.mh and nbsdelf.mh consistently.
9093         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9094         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9095         nbsdaout.mt and nbsdelf.mh consistently.
9096         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9097         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9098         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9099         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9100         a.out shared library stuff from here...
9101         * config/nm-nbsdaout.h: ...to here.
9102         * config/tm-nbsd.h: Remove.
9103         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9104         * config/arm/nbsd.mh: Remove.
9105         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9106         nbsd-tdep.o.
9107         * config/arm/nbsdaout.mh: New file. 
9108         * config/arm/nbsdelf.mh: New file.
9109         * config/arm/nm-nbsdaout.h: New file.
9110         * config/i386/nbsd.mh: Remove.
9111         * config/i386/nbsd.mt: Remove.
9112         * config/i386/nbsdaout.mh: New file.
9113         * config/i386/nbsdaout.mt: New file.
9114         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9115         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9116         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9117         i386_register_u_addr): Remove.
9118         * config/i386/nm-nbsdaout.h: New file.
9119         * config/i386/nm-nbsdelf.h: Remove.
9120         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9121         (USE_STRUCT_CONVENTION): Remove.
9122         * config/i386/tm-nbsdaout.h: New file.
9123         * config/i386/tm-nbsdelf.h: Remove.
9124         * config/m68k/nbsd.mh: Remove.
9125         * config/m68k/nbsd.mt: Remove.
9126         * config/m68k/nbsdaout.mh: New file.
9127         * config/m68k/nbsdaout.mt: New file. 
9128         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9129         * config/m68k/nm-nbsdaout.h: New file.
9130         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9131         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9132         * config/ns32k/nbsd.mh: Remove.
9133         * config/ns32k/nbsd.mt: Remove. 
9134         * config/ns32k/nbsdaout.mh: New file.
9135         * config/ns32k/nbsdaout.mt: New file.
9136         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9137         * config/ns32k/nm-nbsdaout.h: New file.
9138         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9139         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9140         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9141         (SVR4_SHARED_LIBS): Remove.
9142         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9143         * config/sparc/nbsd.mh: Remove.
9144         * config/sparc/nbsd.mt: Remove.
9145         * config/sparc/nbsdaout.mh: New file.
9146         * config/sparc/nbsdaout.mt: New file.
9147         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9148         * config/sparc/nbsdelf.mt: New file.
9149         * config/sparc/nm-nbsdaout.h: New file.   
9150         * config/sparc/nm-nbsdelf.h: Remove.
9151         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9152         * config/sparc/tm-nbsdaout.h: New file.
9153
9154 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9155
9156         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9157         mipsnbsd-tdep.c
9158         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9159
9160 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9161
9162         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9163         shnbsd-nat.c.
9164         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9165
9166 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9167
9168         * NEWS: Note new MIPS NetBSD native configuration. 
9169         * configure.host (mips*-*-netbsd*): New host. 
9170         * configure.tgt (mips*-*-netbsd*): New target. 
9171         * mipsnbsd-nat.c: New file.
9172         * mipsnbsd-tdep.c: New file.
9173         * mipsnbsd-tdep.h: New file.
9174         * config/mips/nbsd.mh: New file.
9175         * config/mips/nbsd.mt: New file.
9176         * config/mips/nm-nbsd.h: New file.
9177         * config/mips/tm-nbsd.h: New file.
9178
9179 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9180
9181         * Makefile.in (SFILES): Add osabi.c.
9182         (COMMON_OBS): Add osabi.o.
9183         (osabi.o): New dependency list.
9184         * osabi.c: New file.
9185         * osabi.h: New file.
9186         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9187
9188         * Makefile.in (alpha_tdep_h): Define and use instead of
9189         alpha-tdep.h.
9190         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9191         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9192         Remove.
9193         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9194         * alpha-tdep.h: Include osabi.h.
9195         (alpha_abi): Remove.
9196         (gdbarch_tdep): Use generic OS ABI framework.
9197         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9198         gdbarch_register_osabi.
9199         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9200         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9201         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9202
9203         * Makefile.in (sh_tdep_h): Add osabi.h.
9204         * sh-tdep.h (sh_osabi): Remove.
9205         (gdbarch_tdep): Use generic OS ABI framework.
9206         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9207         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9208         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9209         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9210
9211         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9212         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9213         gdbarch_register_osabi.
9214         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9215         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9216         (get_elfosabi): Rename to...
9217         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9218         ABI framework support routines.
9219         (arm_gdbarch_init): Use generic OS ABI framework.
9220         (arm_dump_tdep): Likewise.
9221         (_initialize_arm_tdep): Likewise.
9222         * arm-tdep.h: Include osabi.h.
9223         (arm_abi): Remove.
9224         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9225         osabi member.
9226         (arm_gdbarch_register_os_abi): Remove prototype.
9227         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9228         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9229
9230         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9231         * mips-tdep.c: Include osabi.h.
9232         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9233         OS ABI framework.
9234
9235 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9236
9237         * h8300-tdep.c: Fix formatting.
9238
9239 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9240
9241         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9242         printing vector registers.
9243
9244 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9245
9246         From Fernando Nasser:
9247         * remote.c (remote_async_open_1): Re-throw the exception when the
9248         connection fails.
9249         (remote_cisco_open): Ditto.
9250         (remote_open_1): Ditto.
9251
9252 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9253
9254         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9255         (remote_start_remote): Add uiout parameter.  Pass through to
9256         remote_start_remote_dummy.
9257         (remote_open_1): Use catch_exception instead of catch_errors.
9258         (remote_async_open_1): Ditto.
9259         (remote_cisco_open): Ditto.
9260
9261 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9262
9263         * remote.c (remote_start_remote): Replace PTR with void pointer.
9264         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9265         static.
9266
9267 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9268
9269         * gdb_indent.sh: Allow the script to be run in the sim directory.
9270
9271 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9272
9273         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9274         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9275
9276         * corelow.c (core_open): Only call set_gdbarch_from_file if
9277         exec_bfd is NULL.
9278
9279 2002-05-17  Andrey Volkov <avolkov@transas.com>
9280
9281         * h8300-tdep.c: Add support of EXR register
9282         * config/h8300/tm-h8300.h: Ditto. 
9283         
9284 2002-05-17  Andrey Volkov <avolkov@transas.com>
9285
9286         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9287         
9288 2002-05-17  Andrey Volkov <avolkov@transas.com>
9289
9290         * h8300-tdep.c: Change literal regnums to REGNO.
9291         
9292 2002-05-17  Jim Blandy  <jimb@redhat.com>
9293
9294         * NEWS: Note addition of macro support.
9295
9296         Expand preprocessor macros in C expressions.
9297         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9298         (scan_macro_expansion, scanning_macro_expansion,
9299         finished_macro_expansion): New function declarations.
9300         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9301         variable declarations.
9302         * parser-defs.h (expression_context_pc): New declaration.
9303         * parse.c (expression_context_pc): New variable.
9304         (parse_exp_1): Set expression_context_pc, as well as
9305         expression_context_block.
9306         * c-exp.y (yylex): If we're not already reading the result of a
9307         macro expansion, try to macro-expand the next token.  When we're
9308         done scanning a macro expansion, switch back to the mainline text.
9309         Commas and `if's in a macro's expansion don't terminate the input.
9310         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9311         (macro_original_text, macro_expanded_text,
9312         expression_macro_lookup_func, expression_macro_lookup_baton): New
9313         variables.
9314         (scan_macro_expansion, scanning_macro_expansion,
9315         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9316         c_preprocess_and_parse): New functions.
9317         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9318         c_preprocess_and_parse, instead of c_parse.
9319         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9320         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9321
9322 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9323
9324         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9325         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9326         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9327
9328 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9329
9330         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9331
9332 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9333
9334         * Makefile.in (sh_tdep_h): Define and use.
9335         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9336         register enum): Move to...
9337         * * sh-tdep.h: ...here.
9338         * sh-tdep.c: Include sh-tdep.h.
9339         * sh3-rom.c: Likewise.
9340         * shnbsd-tdep.c: Likewise.
9341
9342 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9343
9344         * arm-tdep.c: Spelling fix in comment.
9345
9346 2002-05-16  Jim Blandy  <jimb@redhat.com>
9347
9348         Add commands for manually expanding macros and showing their
9349         definitions.
9350         * macrocmd.c, macroscope.c, macroscope.h: New files.
9351         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9352         (macroscope_h): New variable.
9353         (HFILES_NO_SRCDIR): Add macroscope.h.
9354         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9355         (macroscope.o, macrocmd.o): New rules.
9356
9357         Teach the Dwarf 2 reader to read macro information.
9358         * dwarf2read.c: #include "macrotab.h".
9359         (dwarf_macinfo_buffer): New variable.
9360         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9361         dwarf_macinfo_size.
9362         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9363         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9364         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9365         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9366         dwarf2_macro_spaces_in_definition): New complaints.
9367         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9368         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9369         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9370         the partial symbol table.
9371         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9372         from what's recorded in the partial symbol table.
9373         (read_file_scope): If the compilation unit has a
9374         `DW_AT_macro_info' attribute, read its macro information.
9375         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9376
9377 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9378
9379         Fix PR gdb/546
9380         * ser-tcp.c: Don't include <netinet/udp.h>.
9381
9382 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9383
9384         * MAINTAINERS: Update my email address.
9385
9386 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9387
9388         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9389         include file of the same name.
9390
9391 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9392
9393         * configure.tgt: Mark v850 as multi-arched.
9394         * config/v850/tm-v850.h: Remove file.
9395         * config/v850/v850.mt: Eliminate TM_FILE.
9396
9397 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9398
9399         * v850-tdep.c: Full multi-arch.
9400         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9401         Define GDB_MULTI_ARCH to 2.
9402
9403 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9404
9405         * p-exp.y (current_type): New static variable.
9406         Carries the type of the expression at the position that is parsed.
9407         (push_current_type, pop_current_type): Two new functions. Used
9408         to store/restore current_type in expression on specific tokens.
9409         (search_field): New static variable. Set to one after parsing a point
9410         as at that point only a FIELDNAME token should be searched.
9411         (FIELDNAME): New token. After a point only a token belonging to 
9412         current_type type definition is allowed.
9413         (all over token rules): reset and change current_type according
9414         to rules.
9415         (exp '[' rule): insert implicit array index field if
9416         exp is a pascal string type.
9417
9418 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9419
9420         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9421         frame info.  Use frame_info's saved_regs instead of matching member
9422         in extra_frame_info throughout.
9423         (v850_frame_init_saved_regs): New function.
9424         (v850_init_extra_frame_info): Move most functionality into
9425         v850_frame_init_saved_regs().
9426         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9427         (v850_frame_find_saved_regs): Remove declaration.
9428         (FRAME_FIND_SAVED_REGS): Remove definition.
9429         (v850_frame_init_saved_regs): Add declaration.
9430         (FRAME_INIT_SAVED_REGS): Add definition.
9431
9432 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9433
9434         * v850-tdep.c: Begin multi-arch'ing v850.
9435         (v850_target_architecture_hook): Remove function.
9436         (v850_gdbarch_init): New function.  Add code previously in
9437         v850_target_architecture_hook().
9438         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9439         Call register_gdbarch_init() instead.
9440
9441 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9442
9443         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9444         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9445         (fixup_class_method_type): Likewise.
9446
9447 2002-05-15  Jim Blandy  <jimb@redhat.com>
9448
9449         Add macro structures to GDB's symbol tables.  Nobody puts anything
9450         in them yet.
9451         * symtab.h (struct symtab): New member: `macro_table'.
9452         * buildsym.h (pending_macros): New global variable.
9453         * buildsym.c: #include "macrotab.h".
9454         (buildsym_init): Initialize `pending_macros'.
9455         (end_symtab): If we found macro information while reading a CU's
9456         debugging info, do build a symtab structure for it.  Make the
9457         symtab point to the macro information, and clear the
9458         `pending_macros' pointer which held it while we were reading the
9459         debug info.
9460         (really_free_pendings): Free any pending macro table.
9461         * objfiles.h (struct objfile): New member: `macro_cache'.
9462         * objfiles.c (allocate_objfile): Set allocate and free functions
9463         for the macro cache's objstack.
9464         (free_objfile): Empty the macro cache's obstack.
9465         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9466         set new allocate and free functions for it.
9467         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9468         free functions for the macro cache's objstack.  (Why is this
9469         function building its own objfile?)
9470         * symmisc.c (print_objfile_statistics): Print statistics on the
9471         macro bcache.
9472         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9473
9474 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9475
9476         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9477         (REGISTER_U_ADDR): Delete definition.
9478         (arm_register_u_addr): Delete declaration.
9479
9480 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9481
9482         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9483         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9484
9485 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9486
9487         * regcache.c (register_valid): Revise comments refering to "Not
9488         available" and "unavailable".
9489         * frame.c (frame_register_read): Ditto.
9490         * findvar.c (value_of_register): Ditto.
9491
9492 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9493
9494         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9495         (remote-sim.o): Update dependencies.
9496         (d10v-tdep.o): Specify dependencies.
9497         (sim_d10v_h): Define.
9498
9499 2002-05-14  Jim Blandy  <jimb@redhat.com>
9500
9501         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9502         * macrotab.c (macro_lookup_inclusion, find_definition,
9503         new_macro_table): Same.
9504         
9505         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9506         not `! strcmp ()'.  This is a dubious improvement.
9507         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9508
9509         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9510         although it's not necessary, to avoid a warning.
9511
9512 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9513
9514         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9515         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9516         TYPE_INSTANCE_FLAGS.
9517         (struct main_type): New.
9518         (struct type): Move most members to struct main_type.  Change
9519         cv_type and as_type to new type_chain member.  Add instance_flags.
9520         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9521         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9522         (finish_cv_type): Remove prototype.
9523         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9524         Set TYPE_CHAIN.
9525         (alloc_type_instance): New function.
9526         (smash_type): New function.
9527         (make_pointer_type, make_reference_type, make_function_type)
9528         (smash_to_member_type, smash_to_method_type): Call smash_type.
9529         (make_qualified_type): New function.
9530         (make_type_with_address_space): Call make_qualified_type.
9531         (make_cv_type): Likewise.
9532         (finish_cv_type): Remove unnecessary function.
9533         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9534         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9535         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9536         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9537         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9538         * hpread.c (hpread_read_struct_type): Likewise.
9539         * stabsread.c (read_struct_type): Likewise.
9540
9541 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9542
9543         * configure.tgt: Add a catch all sh* target, for cases like
9544         sh[2,3,4]-elf and sh-hms.
9545
9546 2002-05-14  Keith Seitz  <keiths@redhat.com>
9547
9548         * event-loop.c (create_file_handler): Don't do anything but
9549         update data when we are given a fd which we are already
9550         monitoring.
9551
9552 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9553
9554         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9555         (update_context): Use __func__ in warnings.
9556         
9557 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9558
9559         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9560         and tcp_close to net_open and net_close.
9561         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9562         using UDP if requested.  Don't try to disable Nagle on UDP
9563         sockets.
9564         * remote.c (remote_serial_open): New function.  Warn about UDP.
9565         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9566
9567 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9568
9569         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9570
9571 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9572
9573         * configure.tgt: Remove sh-hms target.
9574         * MAINTAINERS: Don't list sh-hms as a separate target.
9575
9576 2002-05-13  Jim Blandy  <jimb@redhat.com>
9577
9578         Add first preprocessor macro-expansion files.
9579         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9580         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9581         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9582         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9583         (COMMON_OBS): Add macrotab.o, macroexp.o.
9584         (macroexp.o, macrotab.o): New rules.
9585
9586 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9587
9588         * config/m88k/tm-m88k.h: Update copyright.
9589         (m88k_target_write_pc): Declare
9590         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9591         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9592         (SHIFT_INST_REGS): Update definition.
9593         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9594         using old definition of TARGET_WRITE_PC.
9595         * regcache.c (generic_target_write_pc): Delete code handling
9596         NNPC_REGNUM.
9597         * gdbarch.sh (NNPC_REGNUM): Delete.
9598         * gdbarch.h, gdbarch.c: Regenerate.
9599
9600 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9601
9602         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9603         builtin reg number.
9604
9605 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9606
9607         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9608         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9609         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9610         access macros.
9611         * c-typeprint.c (cp_type_print_method_args): Likewise.
9612         (c_type_print_args): Likewise.
9613         * d10v-tdep.c (d10v_push_arguments): Likewise.
9614         (d10v_extract_return_value): Likewise.
9615         * expprint.c (print_subexp): Likewise.
9616         * gdbtypes.c (lookup_primitive_typename): Likewise.
9617         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9618         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9619         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9620         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9621         (TYPE_VECTOR): Likewise.
9622         * hpread.c (hpread_read_struct_type)
9623         (fix_static_member_physnames, fixup_class_method_type)
9624         (hpread_type_lookup): Likewise.
9625         * mdebugread.c (parse_symbol, parse_type): Likewise.
9626         * p-lang.c (is_pascal_string_type): Likewise.
9627         * valops.c (hand_function_call): Likewise.
9628         * x86-64-tdep.c (classify_argument): Likewise.
9629
9630         * hpread.c (hpread_read_function_type)
9631         (hpread_read_doc_function_type): Call replace_type.
9632         * dstread.c (create_new_type): Delete.
9633         (decode_dst_structure, process_dst_function): Call alloc_type.
9634         Use type access macros.
9635
9636 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9637
9638         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9639         the're not supported by the current architecture.
9640         (i387_fill_fxsave): Likewise.
9641
9642 2002-05-12  Fred Fish  <fnf@redhat.com>
9643
9644         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9645         sect_index_xxx members to index the first slot in section_offsets
9646         if all of the section_offsets are zero.
9647
9648 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9649
9650         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9651         checked in with last change.
9652
9653 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9654
9655         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9656         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9657         config.sub.
9658
9659 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9660
9661         * Makefile.in: Update dependencies.
9662
9663 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9664
9665         * language.c (local_hex_string_custom): Simplify.  Do not depend
9666         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9667
9668         * memattr.c (mem_info_command): Replace calls to
9669         longest_local_hex_string and longest_local_hex_string_custom.
9670         * buildsym.c (make_blockvector): Ditto.
9671         * solib.c (info_sharedlibrary_command): Ditto.
9672         * tracepoint.c (tracepoints_info): Ditto.
9673         * symtab.c (print_msymbol_info): Ditto.
9674
9675         * language.c (local_hex_string): Delete.
9676         (local_hex_string_custom): Delete.
9677         (longest_local_hex_string): Rename to local_hex_string.
9678         (longest_local_hex_string_custom): Rename to
9679         local_hex_string_custom.
9680         * language.h (local_hex_string): Change parameter type to LONGEST.
9681         (local_hex_string_custom): Ditto.
9682         (longest_local_hex_string): Delete declaration.
9683         (longest_local_hex_string_custom): Ditto.
9684
9685         * solib.c: Update copyright.
9686         * memattr.c: Update copyright.
9687         
9688 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9689
9690         * arch-utils.h (legacy_register_to_value): Declare.
9691         (legacy_value_to_register): Declare.
9692         (legacy_convert_register_p): Declare.
9693         * arch-utils.c (legacy_register_to_value): New function.
9694         (legacy_value_to_register): New function.
9695         (legacy_convert_register_p): New function.
9696
9697         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9698         (VALUE_TO_REGISTER): Define.
9699         (CONVERT_REGISTER_P): Define.
9700         * gdbarch.h, gdbarch.c: Regenerate.
9701
9702         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9703         VALUE_TO_REGISTER.
9704         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9705         CONVERT_REGISTER_P.
9706
9707 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9708             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9709
9710         * Makefile.in: Update dependencies for valops.c.
9711         * valops.c: Include "gdb_assert.h".
9712         (typecmp): Skip THIS parameter to methods.
9713         (find_method_list): Remove static_memfuncp argument,
9714         update callers.  Check for stub methods.
9715         (find_value_oload_method_list): Don't set *static_memfuncp.
9716         (find_overload_match): Don't check for stub methods.  Assert
9717         that methods are not stubbed.  Handle static methods.
9718         (value_find_oload_method_list): Remove static_memfuncp argument.
9719         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9720         to the argument list for static stub methods.
9721         * value.h (value_find_oload_method_list): Update prototype.
9722
9723 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9724
9725         * arch-utils.h (generic_register_size): Declare.
9726         (generic_register_raw_size, generic_register_virtual_size): Delete
9727         declarations.
9728         * arch-utils.c (generic_register_raw_size): Delete.
9729         (generic_register_size): New function.
9730         (generic_register_virtual_size): Delete.
9731
9732         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9733         default generic_register_size.
9734         * gdbarch.h, gdbarch.c: Re-generate.
9735         
9736         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9737         register_virtual_size.
9738         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9739         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9740
9741 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9742
9743         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9744         * gdbarch.h, gdbarch.c: Regenerate.
9745         * gnu-v3-abi.c: Update copyright.
9746         (vtable_address_point_offset): Update.
9747         (gnuv3_rtti_type): Update.
9748         (gnuv3_baseclass_offset): Update.
9749         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9750         (init_fetch_link_map_offsets): Update.
9751         * remote.c (get_remote_state): Update.
9752         
9753 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9754
9755         * TODO: Remove value_headof/value_from_vtable_info comment.
9756         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9757         * values.c (value_headof, value_from_vtable_info): Delete.
9758         * value.h (value_from_vtable_info): Delete prototype.
9759
9760 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9761
9762         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9763         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9764         $(gdb_regex_h).
9765         (gdb_assert_h): Define.
9766         (gdb_wait_h): Define.
9767         (gdb_regex_h): Define.
9768
9769 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9770
9771         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9772         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9773
9774 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9775
9776         * nbsd-tdep.c: Fix comment.
9777
9778 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9779
9780         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9781         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9782         (nbsd-tdep.o): New dependency list.
9783         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9784         nbsd-tdep.h.
9785         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9786         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9787         * nbsd-tdep.c: New file.
9788         * nbsd-tdep.h: New file.
9789         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9790         nbsd-tdep.h.
9791         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9792         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9793         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9794         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9795
9796 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9797
9798         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9799         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9800         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9801         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9802         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9803         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9804
9805 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9806
9807         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9808         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9809         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9810         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9811         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9812         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9813         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9814
9815 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9816
9817         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9818         fetch_elfcore_registers to...
9819         * i386nbsd-tdep.c: ...here.
9820         (i386nbsd_use_struct_convention): Rename to...
9821         (i386nbsd_aout_use_struct_convention): ...this.
9822         (i386nbsd_supply_reg): New function.
9823         (i386nbsd_fill_reg): New function.
9824         (fetch_core_registers): Use i386nbsd_supply_reg.
9825         (fetch_elfcore_registers): Likewise.
9826         (_initialize_i386nbsd_tdep): New function.
9827         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9828         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9829         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9830         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9831         (i386nbsd_aout_use_struct_convention): ...this.
9832
9833 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9834
9835         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9836         (store_inferior_registers): Use shnbsd_fill_reg.
9837         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9838         sh_nbsd_supply_register): Collapse into...
9839         (shnbsd_supply_reg): ...this.
9840         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9841         (shnbsd_fill_reg): ...this.
9842         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9843         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9844         (fetch_core_registers): Use shnbsd_supply_reg.
9845         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9846         (sh_nbsd_core_fns): Rename to...
9847         (shnbsd_core_fns): ...this.
9848         (sh_nbsd_elfcore_fns): Rename to...
9849         (shnbsd_elfcore_fns): ...this.
9850         (sh_nbsd_init_abi): Rename to...
9851         (shnbsd_init_abi): ...this.
9852         (_initialize_sh_nbsd_tdep): Rename to...
9853         (_initialize_shnbsd_tdep): ...this.
9854         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9855         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9856         sh_nbsd_fill_register): Remove prototypes.
9857         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9858
9859 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9860
9861         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9862         (i387-nat.o): Delete dependency list.
9863         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9864         (x86-64-linux-nat.o): Likewise.
9865         * i387-nat.c: Delete file, moving contents to...
9866         * i387-tdep.c: ...here.
9867         * i387-nat.h: Rename...
9868         * i387-tdep.h: ...to this.
9869         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9870         * i386-linux-nat.c: Likewise.
9871         * i386bsd-nat.c: Likewise.
9872         * i386gnu-nat.c: Likewise.
9873         * i386nbsd-nat.c: Likewise.
9874         * i386v4-nat.c: Likewise.
9875         * x86-64-linux-nat.c: Likewise.
9876         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9877         * config/i386/go32.mh (NATDEPFILES): Likewise.
9878         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9879         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9880         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9881         * config/i386/linux.mh (NATDEPFILES): Likewise.
9882         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9883         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9884         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9885         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9886
9887 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9888
9889         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9890         (alphanbsd-nat.o): Remove dependency list.
9891         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9892         * alphanbsd-nat.c: Delete.  Contents moved to...
9893         * alphanbsd-tdep.c: ...here.
9894         (_initialize_alphanbsd_tdep): Register core functions.
9895         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9896
9897 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9898
9899         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9900         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9901         (alphanbsd-nat.o): Likewise.
9902         (alphabsd-tdep.o): New dependency list.
9903         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9904         (fill_gregset): Use alphabsd_fill_reg.
9905         (supply_fpregset): Use alphabsd_supply_fpreg.
9906         (fill_fpregset): Use alphabsd_fill_fpreg.
9907         (fetch_inferior_registers): Use struct reg and struct fpreg
9908         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9909         and alphabsd_supply_fpreg.
9910         (store_inferior_registers): Use struct reg and struct fpreg
9911         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9912         and alphabsd_fill_fpreg.
9913         * alphabsd-tdep.c: New file.
9914         * alphabsd-tdep.h: New file.
9915         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9916         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9917         alphabsd_supply_fpreg.
9918         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9919         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9920
9921 2002-05-11  Eric Christopher  <echristo@redhat.com>
9922
9923         * mips-tdep.c (mips_double_register_type): Fix thinko.
9924         (mips_single_register_type): Ditto.
9925         * MAINTAINERS: Add self.
9926
9927 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9928
9929         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9930         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9931         right thing on architectures with different endianness and/or
9932         integer sizes.
9933
9934 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9935
9936         From Christian Limpach <chris@Pin.LU>
9937         * configure.in: Change sed expression which comments out
9938         NATDEPFILES to also comment out continuation lines.
9939         * configure: Regenerate.
9940
9941 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9942
9943         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9944         big patch.
9945
9946 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9947
9948         * sh-tdep.c: Include correct file.
9949
9950 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9951
9952         New support for sh64-elf (sh5) target.
9953
9954         * configure.tgt: For sh64-elf target, default to sh-elf.
9955
9956         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9957         (struct gdbarch_tdep): Add new fields for new registers and ABI
9958         info.
9959
9960         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9961         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9962         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9963         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9964         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9965         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9966         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9967         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9968         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9969         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9970         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9971         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9972         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9973         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9974         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9975         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9976         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9977         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9978         sign_extend, sh64_nofp_frame_init_saved_regs,
9979         sh64_init_extra_frame_info, sh64_get_saved_register,
9980         sh64_extract_struct_value_address, sh64_pop_frame,
9981         sh64_push_arguments, sh64_extract_return_value,
9982         sh64_store_return_value, sh64_show_media_regs,
9983         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9984         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9985         sh_sh64_register_virtual_type,
9986         sh_sh64_register_convert_to_virtual,
9987         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9988         sh64_register_read, sh64_pseudo_register_write,
9989         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9990         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9991         sh64_do_pseudo_register, sh_compact_do_registers_info,
9992         sh64_do_registers_info, sh_gdbarch_init): New functions.
9993
9994 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9995
9996         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9997
9998 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
9999
10000         * linespec.c (decode_line_1): Check for a double quote after
10001         a filename correctly.
10002
10003 2002-05-10  Jim Blandy  <jimb@redhat.com>
10004
10005         Properly track the size of the current objfile's .debug_line section.
10006         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10007         (DWARF_LINE_SIZE): New macro.
10008         (dwarf2_build_psymtabs_hard): Record the line section's size in
10009         the partial symbol table.
10010         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10011         symbol table.
10012
10013 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10014
10015         * ia64-tdep.c: Handle breakpoints on L instruction type
10016         in MLX instruction bundle by moving the breakpoint to
10017         the third slot (X instruction type) as L holds only data.
10018
10019 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10020
10021         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10022         (process_one_symbol): Complain about discarding local symbols
10023         due to a misplaced N_LBRAC entry.
10024
10025 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10026
10027         From Daniel Berlin <dan@cgsoftware.com>
10028         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10029         decrease the depth we are at, in the case of templates.
10030
10031 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10032
10033         * mips-tdep.c (mips_float_register_type): New function.
10034         (mips_double_register_type): New function.
10035         (mips_print_register): Use them.
10036         (do_fp_register_row): Likewise.
10037
10038 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10039
10040         * signals/signals.c (signals): Remove conditional compilation around
10041         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10042         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10043
10044 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10045
10046         * remote-rdp.c (remote_rdp_can_run): Remove.
10047
10048 2002-05-09  Tom Tromey  <tromey@redhat.com>
10049
10050         * jv-valprint.c (java_val_print): Handle `char' as a special case
10051         of TYPE_CODE_INT.
10052
10053 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10054
10055         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10056         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10057         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10058         str r(0123),[sp,#nn].
10059         (arm_skip_prologue): Ditto.  Also make disassembly
10060         order-independent by placing it in a loop.
10061
10062 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10063
10064         * stabsread.c (read_type): Add recognition for new attribute:
10065         "@V;" means that an array type is actually a vector.
10066         This is analogous to the vector flag that's been added to dwarf2.
10067
10068 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10069
10070         * i386-tdep.h (i386_abi): New enum.
10071         (struct gdbarch_tdep): Replace os_ident member with abi.
10072         (i386_gdbarch_register_os_abi): New prototype.
10073         * i386-tdep.c (i386_abi_names): New array.
10074         (process_note_abi_tag_sections): Removed.
10075         (process_note_sections): New function.
10076         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10077         (struct i386_abi_handler): New struct.
10078         (i386_abi_handler_list): New variable.
10079         (i386_gdbarch_register_os_abi): New function.
10080         (i386_gdbarch_init): Adapt for the changes given above.
10081
10082 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10083
10084         * gregset.h: Say "GNU/Linux".
10085
10086 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10087
10088         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10089         (build_gdbtypes): Build builtin_type_v2_float.
10090         (_initialize_gdbtypes): Register new builtin type.
10091
10092 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10093
10094         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10095         (clear_gdbarch_swap): New function.
10096         (initialize_non_multiarch): Call.
10097         (gdbarch_update_p): Before calling init(), swap out and clear the
10098         existing architecture.
10099         * gdbarch.c: Regenerate.
10100
10101 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10102
10103         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10104         alphanbsd-tdep.c.
10105
10106 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10107
10108         * sh-nbsd-nat.c: Rename to...
10109         * shnbsd-nat.c: ...this.
10110         * sh-nbsd-tdep.c: Rename to...
10111         * shnbsd-tdep.c: ...this.
10112         * sh-nbsd-tdep.h: Rename to...
10113         * shnbsd-tdep.h: ...this.
10114         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10115         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10116
10117 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10118
10119         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10120         concatenation for command help messages.
10121
10122 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10123
10124         * NEWS: Note new sh*-*-netbsdelf* configuration.
10125         * configure.host: Set gdb_host_cpu to sh for all sh*.
10126         (sh*-*-netbsdelf*): New host.
10127         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10128         (sh*-*-netbsdelf*): New target.
10129         * sh-nbsd-nat.c: New file.
10130         * sh-nbsd-tdep.c: New file.
10131         * sh-nbsd-tdep.h: New file.
10132         * config/sh/nbsd.mh: New file.
10133         * config/sh/nbsd.mt: New file.
10134         * config/sh/nm-nbsd.h: New file.
10135         * config/sh/tm-nbsd.h: New file.
10136
10137 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10138
10139         * sh-tdep.c (sh_osabi_names): Declare.
10140         (process_note_abi_tag_sections): New function.
10141         (get_elfosabi): Ditto.
10142         (sh_gdbarch_register_os_abi): Ditto.
10143         (sh_dump_tdep): Ditto.
10144         _initialize_sh_tdep): Use gdbarch_register to register
10145         sh_gdbarch_init and sh_dump_tdep.
10146         * config/sh/tm-sh.h (sh_osabi): Declare.
10147         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10148
10149 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10150
10151         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10152         (thumb_scan_prologue): Ditto.
10153         (arm_find_callers_reg): Ditto.
10154         (arm_frame_chain): Ditto.
10155         (arm_init_extra_frame_info): Ditto.
10156         (arm_frame_saved_pc): Ditto.
10157         (arm_pop_frame): Ditto.
10158         (arm_push_return_address): New function.
10159         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10160         call_dummy_location, call_dummy_breakpoint_offset_p,
10161         call_dummy_breakpoint_offset, call_dummy_p,
10162         call_dummy_stack_adjust_p, call_dummy_words,
10163         sizeof_call_dummy_words, call_dummy_start_offset,
10164         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10165         call_dummy_address, push_return_address and push_dummy_frame for
10166         generic dummy frames.
10167
10168 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10169
10170         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10171         size computation for alloca.
10172         (sh_fp_frame_init_saved_regs): Likewise.
10173
10174 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10175
10176         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10177         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10178         * arm-tdep.c (arm_store_return_value): Use them.
10179         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10180         * remote-rdp.c (remote_rdp_fetch_register): Use
10181         ARM_MAX_REGISTER_RAW_SIZE.
10182         (remote_rdp_store_register): Likewise.
10183
10184 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10185
10186         * dwarf2cfi.c: Code cleanup, removed unused variables,
10187         added default labels to switch {} statements.
10188         * x86-64-tdep.c: Ditto.
10189         * x86-64-linux-nat.c: Ditto.
10190
10191 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10192
10193         * solib.h: Protect against multiple inclusion.
10194
10195 2002-05-06  Jim Blandy  <jimb@redhat.com>
10196
10197         Add first preprocessor macro-expansion files.
10198         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10199         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10200         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10201         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10202         (COMMON_OBS): Add macrotab.o, macroexp.o.
10203         (macroexp.o, macrotab.o): New rules.
10204
10205         Separate the job of reading the line number info statement program
10206         header (...expialidocious) out into its own function.
10207         * dwarf2read.c (struct line_head, struct filenames, struct
10208         directories): Replace with...
10209         (struct line_header): New structure, containing the full
10210         contents of the statement program header, including the
10211         include directory and file name tables.
10212         (read_file_scope): If we have line number info, instead of just
10213         calling dwarf_decode_lines to do all the work, call
10214         dwarf_decode_line_header first to get a `struct line_header'
10215         containing the data in the statement program header, and then
10216         pass that to dwarf_decode_lines, which will pick up where that
10217         left off.  Be sure to clean up the `struct line_header' object.
10218         (dwarf_decode_line_header, free_line_header, add_include_dir,
10219         add_file_name): New functions.
10220         (dwarf_decode_lines): Move all the code to read the statement
10221         program header into dwarf_decode_line_header.  Take the line
10222         header it built as the first argument, instead of the offset to
10223         the compilation unit's line number info.  Use the new `struct
10224         line_header' type instead of the old structures.  No need to do
10225         cleanups here now, since we don't allocate anything.
10226         (dwarf2_statement_list_fits_in_line_number_section,
10227         dwarf2_line_header_too_long): New complaints.
10228
10229 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10230
10231         * gdbtypes.c (init_vector_type): New function.
10232         (build_builtin_type_vec128): Simplify the representation of SIMD
10233         registers.
10234         (build_gdbtypes): Initialize new builtin vector types.
10235         (_initialize_gdbtypes): Register new vector types with gdbarch.
10236         (builtin_type_v4_float, builtin_type_v4_int32,
10237         builtin_type_v8_int16, builtin_type_v16_int8,
10238         builtin_type_v2_int32, builtin_type_v4_int16,
10239         builtin_type_v8_int8): New (renamed) SIMD types.
10240
10241 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10242
10243         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10244         (i387_fill_fxsave): Likewise.
10245
10246 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10247
10248         * alpha-tdep.c (alpha_extract_return_value): Don't use
10249         non-constant array size in prototype.
10250
10251 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10252
10253         From Brian Taylor <briant at model dot com>:
10254         * ui-out.c (ui_out_field_core_addr): Use the function
10255         longest_local_hex_string_custom'to format addresses > 32 bits
10256         wide.
10257
10258         * ui-out.c (ui_out_field_core_addr): Update comment.
10259
10260 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10261
10262         * stack.c (select_and_print_frame): Make static.  Delete the
10263         parameter `level'.
10264         (func_command): Update call.
10265         (select_frame_command): Delete code computing the frame level.
10266         * frame.h (select_and_print_frame): Delete declaration.
10267
10268 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10269
10270         * sparc-tdep.c (sparc_get_saved_register): Comment why
10271         get_prev_frame call is safe.
10272
10273 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10274
10275         * frame.h (select_frame): Delete level parameter.
10276         * stack.c (select_frame): Update.  Use frame_relative_level to
10277         obtain the frame's level.
10278         (select_and_print_frame): Update call.
10279         (select_frame_command): Ditto.
10280         (up_silently_base): Ditto.
10281         (down_silently_base): Ditto.
10282         * ocd.c (ocd_start_remote): Ditto.
10283         * remote-rdp.c (remote_rdp_open): Ditto.
10284         * remote-mips.c (mips_initialize): Ditto.
10285         (common_open): Ditto.
10286         * remote-e7000.c (e7000_start_remote): Ditto.
10287         * m3-nat.c (select_thread): Ditto.
10288         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10289         (child_get_current_exception_event): Ditto.
10290         * varobj.c (varobj_create): Ditto.
10291         (varobj_update): Ditto.
10292         (c_value_of_root): Ditto.
10293         * tracepoint.c (finish_tfind_command): Ditto.
10294         * corelow.c (core_open): Ditto.
10295         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10296         * thread.c (info_threads_command): Ditto.
10297         (switch_to_thread): Ditto.
10298         * infrun.c (normal_stop): Ditto.
10299         (restore_selected_frame): Ditto.
10300         (restore_inferior_status): Ditto.
10301         * breakpoint.c (insert_breakpoints): Ditto.
10302         (watchpoint_check): Ditto.
10303         (bpstat_stop_status): Ditto.
10304         (do_enable_breakpoint): Ditto.
10305         * blockframe.c (flush_cached_frames): Ditto.
10306         (reinit_frame_cache): Ditto.
10307
10308 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10309
10310         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10311         maintainer.
10312
10313 2002-05-04  Jim Blandy  <jimb@redhat.com>
10314
10315         * gdbtypes.c (replace_type): Doc fix.
10316
10317 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10318
10319         * valprint.c (strcat_longest): Delete commented out function.
10320         Update copyright.
10321
10322 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10323
10324         * MAINTAINERS: Mark a29k as deleted.
10325         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10326         Move new configurations to the top.
10327         * configure.tgt: Remove a29k.
10328         * config/a29k/tm-vx29k.h: Delete.
10329         * config/a29k/vx29k.mt: Delete.
10330         * config/a29k/tm-a29k.h: Delete.
10331         * config/a29k/a29k-udi.mt: Delete.
10332         * config/a29k/a29k.mt: Delete.
10333         * a29k-tdep.c: Delete.
10334         * remote-udi.c: Delete.
10335         * remote-mm.c: Delete.
10336         * remote-eb.c: Delete.
10337         * remote-adapt.c: Delete.
10338         * Makefile.in: Remove obsolete code.
10339         * config/s390/s390x.mt: Ditto.
10340         * config/s390/s390.mt: Ditto.
10341         * config/sparc/sparclynx.mh: Ditto.
10342         * config/sparc/linux.mh: Ditto.
10343         * config/pa/hppaosf.mh: Ditto.
10344         * config/pa/hppabsd.mh: Ditto.
10345         * config/ns32k/nbsd.mt: Ditto.
10346         * config/mips/vr5000.mt: Ditto.
10347         * config/m68k/sun3os4.mh: Ditto.
10348         * config/m68k/nbsd.mt: Ditto.
10349         * config/m68k/m68klynx.mh: Ditto.
10350         * config/m32r/m32r.mt: Ditto.
10351         * config/i386/x86-64linux.mt: Ditto.
10352         * config/i386/nbsdelf.mt: Ditto.
10353         * config/i386/nbsd.mt: Ditto.
10354         * config/i386/i386lynx.mh: Ditto.
10355
10356 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10357
10358         * target.c (debug_print_register): New function.  Handle oversize
10359         registers.
10360         (debug_to_fetch_registers): Call.
10361         (debug_to_store_registers): Call.
10362
10363 2002-05-03  Jim Blandy  <jimb@redhat.com>
10364
10365         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10366         (read_type): Doc fix.
10367         * gdbtypes.c (replace_type): Doc fix.
10368
10369         * stabsread.c (multiply_defined_struct): New complaint.
10370         (read_struct_type): If the type we were passed isn't empty, or
10371         incomplete, don't read the new struct type into it; complain,
10372         and return the original type unchanged.  Take a new `type_code'
10373         argument, which is the type code for the new type.
10374         (read_type): Rather than storing the type's type code here, pass
10375         it as an argument to read_struct_type, and let that take care of
10376         storing it.  That way, we don't overwrite the original type code,
10377         so read_struct_type can use it to decide whether we're overwriting
10378         something we shouldn't.
10379         (complain_about_struct_wipeout): New function.
10380
10381 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10382
10383         * gdbarch.sh: Assert that gdbarch is non-NULL.
10384         * gdbarch.c: Regenerate.
10385
10386 2002-05-03  Jason Merrill  <jason@redhat.com>
10387
10388         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10389         and return NULL.
10390
10391 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10392
10393         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10394         (x86_64_dwarf2gdb_regno_map_length),
10395         (x86_64_dwarf2_reg_to_regnum): Added.
10396         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10397         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10398         (_initialize_x86_64_tdep): Synced with the change above.
10399         (x86_64_skip_prologue): Reformulated message.
10400
10401 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10402
10403         * f-exp.y: Also use new prev_lexptr variable
10404         to improve error reporting. Based on Michael Snyder
10405         2002-04-24 dated patch to c-exp.y.
10406         * jv-exp.y: Likewise.
10407         * m2-exp.y: Likewise.
10408
10409 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10410
10411         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10412         we are dealing with vectors.
10413
10414 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10415
10416         * config/m68k/tm-nbsd.h: Obvious fix,
10417         correct machine name.
10418
10419 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10420
10421         * p-typeprint.c (pascal_type_print_base): Add support
10422         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10423
10424 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10425
10426         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10427         for fondamental pascal 'char' type.
10428
10429 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10430
10431         * p-lang.h (is_pascal_string_type): Declaration changed,
10432         new sixth argument of type char ** added.
10433         * p-lang.c (is_pascal_string_type): Implementation
10434         changed. Args length_pos, length_size, string_pos, char_size
10435         can now be NULL. New argument arrayname set to the field
10436         name of the char array. Return value set to char array
10437         field index plus one.
10438         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10439         is_pascal_string_type function.
10440
10441 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10442
10443         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10444         <cagney@redhat.com> change.
10445         * gdbarch.c: Regenerate.
10446
10447 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10448
10449         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10450         before probing for a new one.  Detect errorenous gdbarch_init
10451         functions.
10452         * gdbarch.c: Regenerate.
10453
10454 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10455
10456         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10457         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10458         * config/v850/tm-v850.h: Ditto.  Update copyright.
10459
10460 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10461
10462         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10463         current_gdbarch.
10464
10465 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10466
10467         * arm-tdep.c: Whitespace clean-ups.
10468         (arm_skip_prologue): Fix thinko; two lines
10469         should have been removed as part of 4/24 change.
10470
10471 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10472
10473         * rs6000-tdep.c: Added comment describing how fpscr register
10474         numbers were chosen.
10475
10476 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10477
10478         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10479
10480 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10481
10482         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10483         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10484         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10485
10486 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10487
10488         From Louis Hamilton <hamilton@redhat.com>:
10489         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10490         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10491         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10492         not bfd-private xcoff data, to determine wordsize.
10493         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10494
10495 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10496
10497         GDB 5.2 released from 5.2 branch.
10498
10499 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10500
10501         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10502         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10503         (x86_64_register_info_table): Added comments with register numbers.
10504
10505 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10506
10507         * rs6000-tdep.c (rs6000_extract_return_value,
10508         rs6000_store_return_value): Handle returning vectors.
10509         (rs6000_gdbarch_init): Use
10510         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10511         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10512         New function.
10513         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10514         vectors.
10515         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10516         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10517
10518 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10519
10520         * hpread.c (hpread_psymtab_to_symtab_1,
10521         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10522         with fprintf_unfiltered (gdb_stderr,...).
10523
10524 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10525
10526         * remote-array.c (printf_monitor, write_monitor,
10527         array_insert_breakpoint, array_remove_breakpoint ):
10528         Replace fprintf (stderr,...
10529         with fprintf_unfiltered (gdb_stderr,....
10530         * remote-es.c: Likewise.
10531         * remote-os9k.c: Likewise.
10532         * remote-st.c: Likewise.
10533
10534 2002-04-28  Andreas Schwab  <schwab@suse.de>
10535
10536         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10537         linux-proc.o and gcore.o.
10538
10539 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10540
10541         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10542         code without frame pointers.
10543
10544 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10545
10546         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10547         ON_STACK is needed.
10548
10549 2002-04-26  Ben Elliston  <bje@redhat.com>
10550
10551         * target.c (do_xfer_memory): Correct reference to the new option
10552         "trust-readonly-sections".
10553
10554 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10555
10556         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10557         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10558         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10559         vectors.
10560         (read_array_type): Record the fact that this array type is really a
10561         vector (i.e. are passed in by value).
10562
10563 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10564
10565         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10566         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10567         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10568         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10569         * alpha-linux-tdep.c: Include frame.h.
10570         (alpha_linux_sigcontext_addr): New function.
10571         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10572         alpha_linux_sigcontext_addr.
10573         * alpha-osf1-tdep.c: Include gdbcore.h.
10574         (alpha_osf1_sigcontext_addr): New function.
10575         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10576         alpha_osf1_sigcontext_addr.
10577         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10578         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10579
10580 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10581
10582         * stack.c (selected_frame_level):
10583         (select_frame): Do not set selected_frame_level.
10584         * frame.h (selected_frame_level): Delete declaration.
10585
10586 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10587
10588         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10589         convert_from_func_ptr-addr when AIX / PowerOpen.
10590
10591 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10592
10593         * valops.c (hand_function_call): Call
10594         generic_save_call_dummy_addr.
10595         * frame.h (generic_save_call_dummy_addr): Declare.
10596         * blockframe.c (struct dummy_frame): Add fields call_lo and
10597         call_hi.
10598         (generic_find_dummy_frame): Check for PC in range call_lo to
10599         call_hi instead of entry_point_address.
10600         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10601         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10602         (generic_save_call_dummy_addr): New function.
10603
10604 2002-04-24  David S. Miller  <davem@redhat.com>
10605
10606         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10607         sparc_skip_prologue.
10608         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10609         information to find prologue when possible.
10610         (sparc_prologue_frameless_p): Call examine_prologue directly.
10611         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10612         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10613         second argument.
10614         (SKIP_PROLOGUE): Likewise.
10615
10616 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10617
10618         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10619         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10620         indicate that the condition it was testing is always true.
10621         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10622         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10623         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10624
10625 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10626
10627         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10628         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10629         tdep->jb_pc and tdep->jb_elt_size.
10630         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10631         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10632         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10633         * alpha-nat.c (get_longjmp_target): Remove.
10634         (JB_ELEMENT_SIZE): Ditto.
10635         (JB_PC): Ditto.
10636         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10637         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10638         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10639         to alpha_get_longjmp_target.
10640         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10641         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10642         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10643
10644 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10645
10646         * README: Update to GDB 5.2.
10647
10648 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10649
10650         * gdbarch.sh (LC_ALL): Set to `c'.
10651
10652 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10653
10654         * avr-tdep.c: Ran through gdb_indent.sh.
10655
10656 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10657
10658         * MAINTAINERS: Add myself as AVR maintainer.
10659         * NEWS: Note new target avr.
10660
10661 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10662
10663         * Makefile.in: Add support for AVR target.
10664         * configure.tgt: Add support for AVR target.
10665         * avr-tdep.c: New file
10666         * config/avr/avr.mt: New file.
10667
10668 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10669
10670         * MAINTAINERS: Add myself to write-after-approval.
10671
10672 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10673
10674         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10675         with fprintf_unfiltered (gdb_stderr,....
10676
10677 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10678
10679         Fix PR gdb/508.
10680         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10681
10682 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10683
10684         * p-exp.y: Also use new prev_lexptr variable
10685         to improve error reporting. Based on Michael Snyder
10686         2002-04-24 dated patch to c-exp.y.
10687
10688 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10689
10690         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10691         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10692         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10693         to 0.
10694         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10695         and struct value.
10696         (FUNCTION_START_OFFSET): Remove.
10697         (BREAKPOINT): Ditto.
10698
10699 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10700
10701         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10702         * NEWS: Ditto.
10703
10704 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10705
10706         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10707         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10708         alpha_linux_pc_in_sigtramp.
10709         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10710         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10711         alpha_osf1_pc_in_sigtramp.
10712         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10713         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10714         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10715         alphafbsd_pc_in_sigtramp.
10716         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10717         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10718         alphanbsd_pc_in_sigtramp.
10719         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10720         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10721
10722 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10723
10724         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10725
10726 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10727
10728         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10729         alphanbsd-tdep.c.
10730         (alphanbsd-nat.o): New dependency list.
10731         (alphanbsd-tdep.o): Ditto.
10732         * NEWS: Note new native NetBSD/alpha configuration.
10733         * alphanbsd-nat.c: New file.
10734         * alphanbsd-tdep.c: Ditto.
10735         * configure.host (alpha*-*-netbsd*): New host.
10736         * configure.tgt (alpha*-*-netbsd*): New target.
10737         * config/alpha/nbsd.mh: New file.
10738         * config/alpha/nbsd.mt: Ditto.
10739         * config/alpha/nm-nbsd.h: Ditto.
10740         * config/alpha/tm-nbsd.h: Ditto.
10741
10742 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10743
10744         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10745         (alpha-osf1-tdep.o): New dependency list.
10746         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10747         and skip_sigtramp_frame members.
10748         * alpha-linux-tdep.c: Include gdbcore.h.
10749         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10750         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10751         * alpha-osf1-tdep.c: New file.
10752         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10753         alpha-osf1-dep.c.
10754         (alpha_frame_past_sigtramp_frame): New function.
10755         (alpha_dynamic_sigtramp_offset): Ditto.
10756         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10757         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10758         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10759         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10760         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10761         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10762         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10763         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10764         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10765         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10766         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10767         to find_solib_trampoline_target.
10768         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10769         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10770         (SKIP_TRAMPOLINE_CODE): Remove.
10771         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10772         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10773         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10774         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10775         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10776         (PROC_SIGTRAMP_MAGIC): Ditto.
10777         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10778         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10779         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10780         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10781         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10782
10783 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10784
10785         * NEWS: Note that Alpha targets are now multi-arch.
10786
10787 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10788
10789         * parser-defs.h (prev_lexptr): New external variable.
10790         * parse.c (parse_exp_1): Set prev_lexptr to null before
10791         calling the language-specific parser.
10792         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10793         (yyerror): Use prev_lexptr in error reporting.
10794
10795 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10796
10797         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10798         * gregset.h: If FILL_FPXREGSET is defined, provide
10799         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10800         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10801         is defined, call fill_fpxregset.
10802
10803 2002-04-24  Roland McGrath  <roland@frob.com>
10804
10805         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10806         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10807         (supply_gregset, supply_fpregset): New functions.
10808
10809         * gnu-nat.c (gnu_find_memory_regions): New function.
10810         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10811         (gnu_xfer_memory): Add a cast.
10812
10813 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10814
10815         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10816         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10817         of argument regs ("str r(0123), [r11, #-nn"]).
10818         (arm_skip_prologue): Better handling for frameless functions.
10819         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10820         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10821
10822 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10823
10824         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10825         NUM_PSEUDO_REGS can be used.
10826
10827 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10828
10829         * arch-utils.h: Update copyright.
10830
10831         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10832         * gdbarch.h, gdbarch.c: Re-generate.
10833
10834         * inferior.h (IN_SIGTRAMP): Delete definition.
10835         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10836         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10837
10838         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10839         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10840         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10841         (find_proc_framesize): Ditto.
10842         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10843         (alpha_init_extra_frame_info): Ditto.
10844         * infrun.c (handle_inferior_event): Ditto.
10845         (handle_inferior_event): Ditto.
10846         (check_sigtramp2): Ditto.
10847         * blockframe.c (create_new_frame): Ditto.
10848         (get_prev_frame): Ditto.
10849         * ppc-linux-tdep.c: Update comments.
10850         * i386-linux-tdep.c: Update comments.
10851         * breakpoint.c (bpstat_what): Update comment.
10852
10853 2002-04-24  David S. Miller  <davem@redhat.com>
10854
10855         * i960-tdep.c (register_in_window_p): New function.
10856         (i960_find_saved_register): Use it instead of
10857         REGISTER_IN_WINDOW_P.
10858         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10859
10860         * symtab.h (find_stab_function_addr): Kill extern.
10861         * minsyms.c (find_stab_function_addr): Remove from here...
10862         * dbxread.c: ... to here, and mark it static.
10863
10864 2002-04-20  David S. Miller  <davem@redhat.com>
10865
10866         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10867         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10868
10869 2002-04-21  David S. Miller  <davem@redhat.com>
10870
10871         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10872         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10873         (vx_write_register): Likewise.
10874
10875 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10876
10877         * source.c (is_regular_file): New function.
10878         (openp): Check wether file to open is a regular file
10879         to avoid opening directories.
10880
10881 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10882
10883         * findvar.c (extract_signed_integer): Cast printf argument
10884         to suppress format warning.
10885         (extract_unsigned_integer): Likewise.
10886         * infcmd.c (registers_info): Likewise.
10887         * top.c (get_prompt_1): Likewise.
10888         * valops.c (value_assign): Likewise.
10889         * valprint.c (print_decimal): Likewise.
10890
10891 2002-04-22  H.J. Lu  (hjl@gnu.org)
10892
10893         * c-exp.y (typebase): Support
10894
10895         [long|long long|short] [signed|unsigned] [int|]
10896
10897         and
10898
10899         signed [long|long long|short] int
10900
10901 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10902
10903         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10904         and vax-tdep.h.
10905         * vax-tdep.h: New file.
10906         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10907         Make several routines static.
10908         (vax_get_saved_register): New function.
10909         (vax_gdbarch_init): New function.
10910         (_initialize_vax_tdep): Register vax_gdbarch_init.
10911         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10912         Remove macros now under the control of gdbarch.
10913
10914 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10915
10916         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10917         Some whitespace and coding standards tweaks.
10918
10919 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10920
10921         * vax-tdep.c: Include regcache.h.
10922         (vax_call_dummy_words): New.
10923         (sizeof_vax_call_dummy_words): New.
10924         (vax_fix_call_dummy): New function.
10925         (vax_saved_pc_after_call): Ditto.
10926         * config/vax/tm-vax.h: Don't include regcache.h.
10927         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10928         (CALL_DUMMY): Remove.
10929         (CALL_DUMMY_WORDS): Define.
10930         (SIZEOF_CALL_DUMMY_WORDS): Define.
10931         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10932
10933 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10934
10935         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10936
10937 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10938
10939         * vax-tdep.c (vax_frame_chain): New function.
10940         (vax_push_dummy_frame): Ditto.
10941         (vax_pop_frame): Ditto.
10942         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10943         (FRAMELESS_FUNCTION_INVOCATION): Use
10944         generic_frameless_function_invocation_not.
10945         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10946         (POP_FRAME): Use vax_pop_frame.
10947
10948 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10949
10950         * vax-tdep.c (vax_store_struct_return): New function.
10951         (vax_extract_return_value): Ditto.
10952         (vax_store_return_value): Ditto.
10953         (vax_extract_struct_value_address): Ditto.
10954         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10955         vax_store_struct_return.
10956         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10957         (STORE_RETURN_VALUE): Use vax_store_return_value.
10958         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10959
10960 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10961
10962         * vax-tdep.c (vax_frame_saved_pc): New function.
10963         (vax_frame_args_address_correct): Ditto.
10964         (vax_frame_args_address): Ditto.
10965         (vax_frame_locals_address): Ditto.
10966         (vax_frame_num_args): Move code to be in proximity to
10967         other frame-related functions.
10968         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10969         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10970         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10971         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10972         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10973
10974 2002-04-22  H.J. Lu  (hjl@gnu.org)
10975
10976         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10977         includedir.
10978
10979 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10980
10981         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10982         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10983         (FRAME_INIT_SAVED_REGS): New macro.
10984
10985 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10986
10987         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10988
10989 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10990
10991         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10992         where needed.
10993         (fetch_osf_core_registers): Likewise.
10994         (supply_gregset): Likewise.
10995
10996 2002-04-22  J. Brobecker  <brobecker@gnat.com>
10997
10998         * symfile.h (get_section_index): Define.
10999         * symfile.c (get_section_index): New function.
11000         * mdebugread.c (SC_IS_SBSS): New macro.
11001         (SC_IS_BSS): Return true for the scBss storage class only, as
11002         the scSBss storage class refers to the .sbss section.
11003         (parse_partial_symbols): Discard the symbols which associated
11004         section does not exist.
11005         Make sure to use the .sbss section index for symbols which
11006         storage class is scBss, rather than using the .bss section index.
11007
11008 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11009
11010         * vax-tdep.c: Update copyright years.
11011         (vax_register_name): New function.
11012         (vax_register_byte): Ditto.
11013         (vax_register_raw_size): Ditto.
11014         (vax_register_virtual_size): Ditto.
11015         (vax_register_virtual_type): Ditto.
11016         * config/vax/tm-vax.h: Update copyright years.
11017         (REGISTER_NAMES): Remove.
11018         (REGISTER_NAME): Define.
11019         (REGISTER_BYTE): Use vax_register_byte.
11020         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11021         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11022         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11023
11024 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11025
11026         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11027         declaration
11028         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11029
11030 2002-04-21  David S. Miller  <davem@redhat.com>
11031
11032         * arch-utils.c (generic_prologue_frameless_p): Kill
11033         SKIP_PROLOGUE_FRAMELESS_P code.
11034         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11035         references.
11036         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11037         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11038         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11039         references.
11040         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11041         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11042         (sparc_gdbarch_init): Pass it to
11043         set_gdbarch_prologue_frameless_p.
11044
11045 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11046
11047         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11048         (alphabsd-nat.o): New dependency list.
11049
11050 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11051
11052         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11053         alphafbsd-tdep.c.
11054         (alpha-linux-tdep.o): New dependency list.
11055         (alphafbsd-tdep.o): Likewise.
11056
11057 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11058
11059         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11060         to here...
11061         * alpha-tdep.c: ...from here.
11062         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11063
11064 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11065
11066         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11067         prototype from here...
11068         * alpha-tdep.h: ...to here.
11069
11070 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11071
11072         * frame.h (selected_frame_level): Document as deprecated.
11073         (frame_relative_level): Declare.
11074         * stack.c (frame_relative_level): New function.
11075         (selected_frame_level): Document as deprecated.
11076         (select_frame): Do not set the selected_frame_level.
11077
11078         * stack.c (frame_info, record_selected_frame): Update.
11079         (frame_command, current_frame_command): Update.
11080         (up_silently_base, up_command, down_silently_base): Update.
11081         (down_command): Update.
11082         * inflow.c (kill_command): Update.
11083         * tracepoint.c (finish_tfind_command): Update.
11084         * corelow.c (core_open): Update.
11085         * thread.c (info_threads_command): Update.
11086         (do_captured_thread_select): Update.
11087         * infcmd.c (finish_command): Update.
11088         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11089
11090 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11091
11092         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11093
11094 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11095
11096         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11097         type const.
11098
11099 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11100
11101         * alphafbsd-tdep.c: Update copyright years.  Include
11102         alpha-tdep.h.
11103         (alphafbsd_use_struct_convention): Make static.
11104         (alphafbsd_init_abi): New function.
11105         (_initialize_alphafbsd_tdep): New function.
11106         * config/alpha/tm-fbsd.h: Update copyright years.
11107         (USE_STRUCT_CONVENTION): Remove.
11108
11109 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11110
11111         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11112         an Alpha ABI variant.
11113         (alpha_abi_handler_list): Declare.
11114         (alpha_gdbarch_register_os_abi): New function.
11115         (alpha_gdbarch_init): Give registered ABI variant handlers a
11116         chance to tweak the gdbarch once we have set up defaults.
11117         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11118
11119 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11120
11121         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11122         to standard_coerce_float_to_double.
11123         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11124
11125 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11126
11127         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11128         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11129         from gdbarch_tdep rather than a constant.
11130         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11131         the default text address for all Alpha Unix ABIs.
11132         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11133         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11134
11135 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11136
11137         * alpha-tdep.h: New file.  Includes several Alpha target constants
11138         taken from...
11139         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11140         let gdbarch deal with.
11141         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11142         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11143         to dependency list.
11144         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11145         Alpha target register names.
11146         * alphabsd-nat.c: Likewise.
11147         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11148         Alpha target register names.  Make serveral routines static.
11149         (alpha_get_saved_register): New function.
11150         (alpha_abi_names): New.
11151         (process_note_abi_tag_sections): New function.
11152         (get_elfosabi): New function.
11153         (alpha_gdbarch_init): New function.
11154         (alpha_dump_tdep): New function.
11155         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11156
11157 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11158
11159         * frame.c (find_saved_register): Delete #ifdef
11160         HAVE_REGISTER_WINDOWS code.
11161         * config/sparc/tm-sparc.h: Update comments.
11162         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11163
11164 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11165
11166         * i960-tdep.c (i960_find_saved_register): New function.
11167         (i960_get_saved_register): New function.
11168         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11169         (i960_get_saved_register): Declare.
11170         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11171
11172 2002-04-20  David S. Miller  <davem@redhat.com>
11173
11174         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11175
11176 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11177
11178         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11179         instead of NUM_PSEUDO_REGS.
11180
11181 2002-04-20  David S. Miller  <davem@redhat.com>
11182
11183         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11184         GDB_MULTI_ARCH_PARTIAL
11185         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11186         define, let tm-sp64.h do it.
11187
11188 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11189
11190         * frame.c (find_saved_register): Avoid a NULL pointer
11191         dereference and actually walk the frame list.
11192
11193 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11194
11195         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11196         sorted in most most-recent-used order.  Document.
11197         * gdbarch.h, gdbarch.c: Regenerate.
11198
11199 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11200
11201         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11202         instead of ->prev.
11203         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11204         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11205         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11206         instead of ->prev.
11207
11208 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11209
11210         Fix PR gdb/471.
11211         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11212         (build_builtin_type_vec128): Ditto.
11213         (append_composite_type_field): Fix calculation of type length in
11214         union case.
11215
11216 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11217
11218         * config/djgpp/README: Update.
11219
11220         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11221         compiler warnings.
11222
11223 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11224
11225         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11226         (alpha_setup_arbitrary_frame): ...to this.
11227         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11228         for alpha_setup_arbitrary_frame.
11229
11230 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11231
11232         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11233         * gdbarch.h, gdbarch.c: Regenerate.
11234
11235         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11236         * target.h (memory_breakpoint_from_pc): Update declaration.
11237         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11238
11239         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11240         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11241         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11242         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11243         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11244         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11245         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11246         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11247         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11248         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11249         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11250         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11251
11252         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11253         const pointer.
11254         * monitor.c (monitor_insert_breakpoint): Ditto.
11255         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11256
11257         * config/mcore/tm-mcore.h: Update copyright.
11258         * mem-break.c: Ditto.
11259         * xstormy16-tdep.c: Ditto.
11260
11261 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11262
11263         * p-exp.y: Add precedence rule for '^' token.
11264         This removes the shift/reduce conflicts.
11265         Remove the comment concerning these shift/reduce conflicts.
11266
11267 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11268
11269         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11270         (registers_powerpc_nofp): New register set for processors
11271         without floating point unit.
11272
11273 2002-04-18  David S. Miller  <davem@redhat.com>
11274
11275         * MAINTAINERS: Add myself to write-after-approval.
11276
11277 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11278
11279         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11280
11281 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11282
11283         * rs6000-tdep.c (frame_initial_stack_address): Use
11284         frame_register_read to read the alloca_reg.
11285
11286 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11287
11288         * frame.c (find_saved_register): Find saved registers in the next
11289         not prev frame.
11290         Fix PR gdb/365.
11291
11292 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11293
11294         * gdbarch.sh (LANG): Set to ``c''.
11295
11296 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11297
11298         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11299
11300 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11301
11302         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11303         Update copyright.
11304
11305         * hpread.c (hpread_get_lntt): Add declaration.
11306         Also fix PR gdb/391.
11307
11308 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11309
11310         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11311         * aclocal.m4, configure: Re-generate.
11312         Fix PR gdb/391.
11313
11314 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11315
11316         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11317         instead of tm_print_insn.
11318
11319 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11320
11321         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11322
11323 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11324
11325         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11326         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11327         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11328
11329 2002-04-12  Don Howard  <dhoward@redhat.com>
11330
11331         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11332         max_user_call_depth.
11333         (init_cmd_lists): Initialize the new value;
11334         * cli/cli-script.c (execute_user_command): Limit the call depth of
11335         user defined commands.  This avoids a core-dump when user commands
11336         are infinitly recursive.
11337
11338 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11339
11340         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11341         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11342         from tdep struct instead of DEFAULT_LR_SAVE.
11343         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11344         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11345         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11346
11347 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11348
11349         * Remote.c: Spelling fix.
11350         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11351         If no symbol found for "sbrk", try "_sbrk".
11352         (make_output_phdrs): Use bfd_section_name.
11353         (gcore_copy_callback): Use bfd_section_name.
11354         * eval.c: Indentation fix-ups.
11355         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11356         in case it gets applied to an address that is already
11357         in the instruction space.
11358         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11359         * symfile.c: Fix indentation, long lines.
11360         * source.c: White space fix-up.
11361
11362 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11363
11364         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11365         * frame.c (frame_register_read): New function.  Return non-zero on
11366         success.
11367         (read_relative_register_raw_bytes_for_frame): Delete.
11368         (read_relative_register_raw_bytes): Delete.
11369         * frame.h (frame_register_read): Declare.
11370         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11371         * sh-tdep.c: Ditto.
11372         * infcmd.c (do_registers_info): Ditto.
11373         * hppa-tdep.c: Ditto.
11374         * rs6000-tdep.c: Ditto.
11375         * h8500-tdep.c: Ditto.
11376         * mips-tdep.c: Ditto.
11377         * h8300-tdep.c: Ditto.
11378         * z8k-tdep.c: Ditto.
11379
11380 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11381
11382         From Jimi X <jimix@watson.ibm.com>:
11383         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11384         64-bit SysV ABI.
11385
11386 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11387
11388         From Jimi X <jimix@watson.ibm.com>:
11389         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11390         bfd info.
11391
11392 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11393
11394         From Jimi X <jimix@watson.ibm.com>:
11395         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11396         register sets for these processor variants.
11397
11398 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11399
11400         * regformats/reg-ppc.dat: Support FPSCR.
11401
11402 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11403
11404         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11405         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11406         Add fpscr as an invalid/unfetchable register.
11407         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11408         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11409         (fill_fpregset): Add support for register fpscr.
11410         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11411         (fill_gregset): Account for the fact that register ``mq'' might
11412         not exist.
11413         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11414         (registers_power): Add fpscr to register set at slot 71.
11415         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11416         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11417
11418 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11419
11420         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11421         * configure: Regenerate.
11422         * config.in: Regenerate.
11423         * acconfig.h: Add define for _SYSCALL32.
11424         * core-sol2.c: Remove #define _SYSCALL32.
11425         * solib-legacy.c: Remove #define _SYSCALL32.
11426
11427 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11428
11429         * stack.c (select_frame): Cleanup internal error message, do not
11430         use %p.
11431
11432 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11433
11434         * stack.c (select_frame): Check that selected_frame and the
11435         specified level are as expected.
11436         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11437         Update copyright.
11438         * frame.h (struct frame_info): Add field `level'.  Update
11439         copyright.
11440         Work-in-progress PR gdb/464.
11441
11442 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11443
11444         * maint.c (maint_print_section_info): Rename print_section_info.
11445         (print_bfd_section_info, print_objfile_section_info): Update.
11446         * inferior.h (struct gdbarch): Add opaque declaration.
11447         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11448         * gdbarch.h: Regenerate.
11449
11450 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11451
11452         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11453         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11454         (kernel_u_size): Added.
11455         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11456         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11457
11458 2002-04-04  Jim Ingham  <jingham@apple.com>
11459
11460        * valarith.c (find_size_for_pointer_math): New function, either returns
11461        the size for a pointer's target, returns 1 for void *, or errors for
11462        incomplete types.
11463        (value_add, value_sub): use find_size_for_pointer_math.
11464
11465 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11466
11467         * linux-low.c (linux_look_up_symbols): New hook.
11468         (linux_target_ops): Add linux_look_up_symbols.
11469         * remote-utils.c (decode_address): New function.
11470         (look_up_one_symbol): New function.
11471         * server.c (handle_query): Call target look_up_symbols hook.
11472         * server.h (look_up_one_symbol): Add prototype.
11473         * target.h (struct target_ops): Add look_up_symbols hook.
11474
11475 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11476
11477         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11478         override FP_REGNUM with frame->fp.  Update copyright.
11479         * parse.c (num_std_regs, std_regs): Delete.
11480         (target_map_name_to_register): Do not search std_regs.  Update
11481         function description.
11482         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11483         declarations.  Update copyright.
11484         Fix PR gdb/251.
11485
11486 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11487
11488         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11489         after the last symbol in a block.
11490
11491 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11492
11493         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11494         is non zero as a found symbol.
11495
11496 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11497
11498         * findvar.c: Include "builtin-regs.h".
11499         (value_of_register): Call value_of_builtin_reg when applicable.
11500         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11501         (target_map_name_to_register): Call
11502         builtin_reg_map_name_to_regnum.
11503         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11504         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11505         (builtin_regs_h): Define.
11506         (builtin-regs.o): New target.
11507         (findvar.o): Add $(builtin_regs_h).
11508         * builtin-regs.c, builtin-regs.h: New files.
11509         * std-regs.c: New file.
11510         Partial fix for PR gdb/251.
11511
11512 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11513
11514         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11515         it's no longer required.
11516
11517 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11518
11519         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11520
11521 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11522
11523         From Jimi X <jimix@watson.ibm.com>:
11524         * rs6000-tdep.c (rs6000_software_single_step): Use
11525         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11526         and size.  Use target_insert_breakpoint() and
11527         target_remove_breakpoint() to insert and remove breakpoints
11528         instead of explicit memory reads and writes.
11529
11530 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11531
11532         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11533         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11534         ELF_OBJECT_FORMAT ifdef.
11535
11536 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11537
11538         From Jimi X <jimix@watson.ibm.com>:
11539         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11540
11541 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11542
11543         From Jimi X <jimix@watson.ibm.com>:
11544         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11545         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11546
11547 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11548
11549         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11550         s/asprintf/xasprintf/.
11551         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11552
11553 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11554
11555         I believe Jeff Law denies responsability for this one:
11556         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11557         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11558         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11559         Work-around for PR gdb/366.
11560
11561 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11562
11563         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11564         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11565         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11566
11567 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11568
11569         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11570         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11571         information.
11572
11573 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11574
11575         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11576         maintainer.
11577
11578 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11579
11580         * README (Reporting Bugs in GDB): Document the bug web page as the
11581         prefered way of submitting bugs.
11582         Fix PR gdb/402.
11583
11584 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11585
11586         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11587         -1.  Update comment.
11588         * gdbarch.h, gdbarch.c: Re-generate.
11589
11590 2002-04-07  Andreas Schwab  <schwab@suse.de>
11591
11592         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11593         buffer to regcache_collect.
11594
11595 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11596
11597         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11598         * gdbarch.c, gdbarch.h: Re-generate.
11599
11600 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11601
11602         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11603         declaration.  Fix -Werror.
11604
11605 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11606
11607         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11608         * gdbarch.c: Regenerate.
11609
11610 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11611
11612         * breakpoint.c (clear_command): Rewrite middle section to
11613         combine two loops with identical control conditions.
11614         Add a cleanup to eliminate a memory leak.
11615         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11616
11617 2002-04-05  H.J. Lu  (hjl@gnu.org)
11618
11619         * solib-svr4.c (bkpt_names): Add "__start".
11620
11621 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11622
11623         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11624         as test for 64 bit target.
11625
11626 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11627
11628         * h8500-tdep.c (h8500_write_fp): Delete function.
11629         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11630         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11631         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11632         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11633         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11634         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11635         (s390_write_fp):
11636         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11637         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11638         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11639         (d10v_write_fp): Delete function.
11640         * inferior.h (write_fp, generic_target_write_fp): Delete
11641         declarations.
11642         * regcache.c (generic_target_write_fp): Delete function.
11643         (write_fp): Delete function.
11644         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11645         * gdbarch.h, gdbarch.c: Regenerate.
11646         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11647         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11648         (sparc64_write_fp): Delete declaration.
11649         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11650         (h8500_write_fp): Delete declaration.
11651
11652 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11653
11654         * sparc-tdep.c (sparc64_write_fp): Delete.
11655         (sparc_push_dummy_frame): Replace write_fp call with code to store
11656         the FP directly.
11657         (sparc_gdbarch_init): Do not initialize write_fp.
11658
11659 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11660
11661         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11662         clause.
11663
11664 2002-03-29  Jim Blandy  <jimb@redhat.com>
11665
11666         * stack.c (get_selected_block): Add new argument `addr_in_block',
11667         used to return the exact code address we used to select the block,
11668         not just the block.
11669         * blockframe.c (get_frame_block, get_current_block): Same.
11670         * frame.h (get_frame_block, get_current_block,
11671         get_selected_block): Update declarations.
11672         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11673         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11674
11675 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11676
11677         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11678         warning message.
11679
11680 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11681
11682         * utils.c (xfullpath): New function.
11683         * defs.h (xfullpath): Add declaration.
11684         * source.c (openp): Use xfullpath in place of gdb_realpath to
11685         avoid resolving the basename part of filenames when the
11686         associated file is a symbolic link. This fixes a potential
11687         inconsistency between the filenames known to GDB and the
11688         filenames it prints in the annotations.
11689         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11690         to be able to match a filename with either the real filename, or
11691         the name of any symbolic link to this file.
11692         (lookup_partial_symtab): Ditto.
11693
11694 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11695
11696         * breakpoint.c: Add support for hardware breakpoints in overlays.
11697         (overlay_events_enabled): New state variable.
11698         (insert_breakpoints): Use overlay_events_enabled to decide
11699         whether to attempt to set a breakpoint at the overlay load addr.
11700         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11701         (remove_breakpoint): Use overlay_events_enabled to decide
11702         whether breakpoints need to be removed from overlay load addr.
11703         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11704         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11705         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11706         disable_overlay_breakpoints): Update overlay_events_enabled.
11707
11708 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11709
11710         * dwarf2read.c (struct function_range): New.
11711         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11712         (check_cu_functions): New.
11713         (read_file_scope): Initialize global function lists.
11714         Call dwarf_decode_line after processing children.
11715         (read_func_scope): Add to global function list.
11716         (dwarf_decode_lines): Call check_cu_functions everywhere
11717         record_line is called.  Call record_line with a linenumber
11718         of 0 to mark sequence ends.
11719
11720 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11721
11722         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11723         change sync with glibc.
11724
11725 2002-04-03  Jim Blandy  <jimb@redhat.com>
11726
11727         * configure.in: Call AC_C_INLINE.
11728         * configure: Regenerated.
11729
11730 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11731
11732         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11733         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11734
11735 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11736
11737         * NEWS: Mention gcore support on FreeBSD/i386.
11738
11739         * fbsd-proc.c: New file.
11740         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11741         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11742
11743         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11744         while statement.
11745
11746 2002-03-29  Jim Blandy  <jimb@redhat.com>
11747
11748         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11749         unescaped newlines in string literals, but newer ones don't.  So
11750         escape them.
11751
11752 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11753             Andrew Cagney <cagney@redhat.com>
11754
11755         * cli/cli-dump.c: New file.  Dump memory to file,
11756         restore file to memory.
11757         * cli/cli-dump.h: New file.
11758         * Makefile.in: Add rules, dependencies for cli-dump.o.
11759         * NEWS: Mention new commands.
11760
11761 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11762
11763         * symfile.c (symbol_file_add): Move test for null symbols to later.
11764
11765 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11766
11767         From veksler at il.ibm.com:
11768         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11769         the xstrduped original path.
11770         Fix PR gdb/417.
11771
11772 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11773
11774         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11775         * infcmd.c (_initialize_infcmd): Ditto.
11776         * language.c (_initialize_language): Ditto.
11777         * symfile.c (_initialize_symfile): Ditto.
11778         * top.c (_init_main): Ditto.
11779         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11780
11781 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11782
11783         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11784         vector registers handling.
11785         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11786         fields of frame data.
11787         (frame_get_saved_regs): Fill in information for AltiVec registers.
11788
11789 2002-03-27  Jim Blandy  <jimb@redhat.com>
11790
11791         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11792         a function; leave this macro here to invoke that function.
11793         (symbol_init_mangled_name): Declaration for that function.
11794         * symtab.c (symbol_init_mangled_name): New function.
11795
11796 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11797
11798         * valarith.c: Replace strerror with safe_strerror.
11799         * tracepoint.c: Ditto.
11800         * lin-lwp.c: Ditto.
11801         * go32-nat.c: Ditto.
11802         * inflow.c: Ditto.
11803         * gnu-nat.c: Ditto.
11804
11805 2002-03-27  Andreas Schwab  <schwab@suse.de>
11806
11807         * event-top.c (command_line_handler): Remove useless if.
11808
11809 2002-03-27  Andreas Jaeger  <aj@suse.de>
11810
11811         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11812         comment.
11813
11814 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11815
11816         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11817         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11818         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11819         (x86_64_linux_dr_get_status, supply_gregset),
11820         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11821         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11822         (x86_64_register_info_table): Add.
11823         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11824         (x86_64_register_raw_size, x86_64_register_virtual_type),
11825         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11826         general x86_64_register_info_table.
11827         (i386_gdbarch_init): gdbarch_register_bytes is now set
11828         dynamicaly during initialization.
11829         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11830         * gdbserver/linux-x86-64-low.c: Ditto.
11831
11832 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11833
11834         * gdbserver/server.c (main): Call target_signal_to_host_p
11835         and target_signal_to_host on signals received from the remote.
11836         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11837         target_signal_from_host on signals sent to the remote.
11838         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11839         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11840
11841 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11842
11843         * signals/signals.c: Include "server.h" in gdbserver build.
11844         (target_signal_from_name): Don't use STREQ.
11845         (_initialize_signals): Likewise.  Don't include function in
11846         gdbserver build.
11847
11848 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11849
11850         * signals.c: Moved to...
11851         * signals/signals.c: Here.
11852         * Makefile (signals.o): Update.
11853
11854 2002-03-26  Jeff Law (law@redhat.com)
11855
11856         * somread.c (som_symtab_read): Remove some commented out code and
11857         updated related comments.  Do not set the minimal symbol table to
11858         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11859         in a dynamic executable.
11860         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11861         where we are unable to find the minimal symbol for the given
11862         PC value.
11863
11864 2002-03-25  Jeff Law (law@redhat.com)
11865
11866         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11867
11868 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11869
11870         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11871
11872 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11873
11874         * command.h: Update copyright.
11875         (struct cmd_list_element): Replace definition with opaque
11876         declaration.
11877         (enum cmd_types): Document that it will eventually be moved to
11878         cli/cli-decode.h
11879         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11880         (MALLOCED_REPLACEMENT): Delete macro.
11881         * Makefile.in (cli_decode_h): Add $(command_h).
11882         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11883         * top.c: Include "cli/cli-decode.h".
11884         * completer.c: Include "cli/cli-decode.h".
11885         * maint.c: Include "cli/cli-decode.h".
11886         * cli/cli-decode.h: Include "command.h".
11887         (enum command_class): Delete.
11888         (enum cmd_types): Comment out.
11889         (enum cmd_auto_boolean): Delete.
11890         (enum var_types): Delete.
11891
11892 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11893
11894         * cli/cli-decode.c: Include "gdb_assert.h".
11895         (add_set_or_show_cmd): New static function.
11896         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11897         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11898         all fields, such as func, from the set command.
11899
11900 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11901
11902         * MAINTAINERS (sh-elf): Change warning flag to -w.
11903
11904 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11905
11906         * defs.h (error): Add printf format attribute.
11907         * thread-db.c (thread_from_lwp): Fix error format string.
11908         * stack.c (parse_frame_specification): Ditto.
11909         * cli/cli-decode.c (undef_cmd_error): Ditto.
11910         * scm-lang.c (scm_lookup_name): Ditto.
11911         * tracepoint.c (trace_error): Ditto.
11912         * remote-utils.c (usage): Ditto.
11913         * remote.c (compare_sections_command): Ditto.
11914         Fix PR gdb/328.
11915
11916 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11917
11918         * gdbtypes.c (append_composite_type_field): New function.
11919         (init_composite_type): New function.
11920         * gdbtypes.h (append_composite_type_field): Declare.
11921         (init_composite_type): Ditto.
11922
11923 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11924
11925         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11926         function.
11927         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11928         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11929         structure returning convention for SYSV ABI case, but not
11930         for GNU/Linux, FreeBSD, or NetBSD.
11931
11932 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11933
11934         * symtab.h (lookup_block_symbol): Add mangled_name argument
11935         to prototype.
11936
11937         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11938         with new mangled_name argument.
11939         * linespec.c (decode_line_1): Likewise.
11940         * valops (value_of_this): Likewise.
11941         * symtab.c (lookup_transparent_type): Likewise.
11942         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11943         (lookup_symbol): If we are given a mangled name, pass it down
11944         to lookup_symbol_aux.
11945         (lookup_block_symbol): If we are given a mangled name to check
11946         against, only return symbols which match it.
11947
11948 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11949
11950         * win32-nat.c (child_create_inferior): Check for proper shell to use
11951         here, in case the user changes it on the fly.
11952         (_initialize_inftarg): Remove shell path considerations.
11953
11954 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11955
11956         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11957         for gdbarch_max_register_raw_size and max_register_virtual_size.
11958         Adjust copyright year.
11959
11960 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11961
11962          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11963          in a function to cover the entire beginning of the function
11964          as well if it does not already.
11965
11966 2002-03-21  Tom Rix  <trix@redhat.com>
11967
11968         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11969         (rs6000_ptrace64): Renamed from ptrace64.
11970
11971 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11972
11973         * gdbserver/remote-utils.c (remote_open): Don't call
11974         getprotobyname, we're all using TCP here so just use
11975         IPPROTO_TCP.
11976         * gdbserver/gdbreplay.c (remote_open): Ditto.
11977
11978 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11979
11980         * regcache.c (_initialize_regcache): No need to call
11981         build_regcache() at this time; it gets called whenever
11982         the gdbarch changes.
11983
11984 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11985
11986         * sparc-nat.c:  Include sys/param.h where possible.
11987
11988 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
11989
11990         Fix PR gdb/422.
11991         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11992         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11993         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11994         complex types.
11995         * stabsread.c (rs6000_builtin_type): Likewise.
11996         (read_sun_floating_type): Likewise.
11997
11998 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11999
12000         * stabsread.c (read_member_functions): Remove skip code for duplicate
12001         constructor/destructor methods.  Use standard parsing for these
12002         methods and just do not chain them to the list of methods after
12003         parsing.
12004
12005 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12006
12007         * coffread.c: Remove redundant static declarations.  Replace
12008         occurrences of `PTR' with `void *'.
12009         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12010         * top.h (quit_cover): Likewise.
12011         * defs.h (catch_errors): Likewise.
12012
12013 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12014
12015         * defs.h (XMALLOC): Define.
12016         * gdb-events.sh (XMALLOC): Delete macro.
12017         * gdb-events.c, gdb-events.h: Regenerate.
12018         * gdbarch.sh (XMALLOC): Delete macro.
12019         * gdbarch.c: Regenerate.
12020         * serial.c (XMALLOC): Delete macro.
12021         * ui-file.c (XMALLOC): Ditto.
12022         * ser-unix.h (XMALLOC): Ditto.
12023         * sh-tdep.c (XMALLOC): Ditto.
12024         * ui-out.c (XMALLOC): Ditto.
12025         * utils.c (XMALLOC): Ditto.
12026         * i386-tdep.c (XMALLOC): Ditto.
12027         * gdb-events.c (XMALLOC): Ditto.
12028         * d10v-tdep.c (XMALLOC): Ditto.
12029         * cli-out.c (XMALLOC): Ditto.
12030
12031         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12032         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12033         * ui-file.c, ui-out.c: Ditto.
12034
12035 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12036
12037         * command.h (struct cmd_list_element): Add field context.
12038         (set_cmd_context, get_cmd_context): Declare.
12039         * cli/cli-decode.h: Ditto.
12040         * cli/cli-decode.c (get_cmd_context): New function.
12041         (set_cmd_context): New function.
12042         (add_cmd): Initialize context.
12043         Part of fixing PR gdb/145 and PR gdb/146.
12044
12045 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12046
12047         * cli/cli-decode.c (cmd_type): New function.
12048         * command.h (cmd_type): Declare.
12049         * infrun.c (set_schedlock_func): Call function cmd_type.
12050         * kod.c (kod_set_os): Call cmd_type.
12051         * cris-tdep.c (cris_version_update): Use function cmd_type.
12052         (cris_mode_update, cris_abi_update): Ditto.
12053
12054         * command.h: (execute_cmd_post_hook): Declare.
12055         (execute_cmd_pre_hook): Declare.
12056         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12057         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12058         functions. Execute pre/post hook while ensuring that afterwords
12059         hook_in is cleared.
12060         * top.c (execute_command): Use execute_cmd_post_hook, and
12061         execute_cmd_pre_hook to execute pre/post commands.
12062         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12063         hook_stop_stub.
12064         (hook_stop_stub): Call execute_cmd_pre_hook.
12065
12066 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12067
12068         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12069         set'' and this leads to a core dump.  Move xstrdup of
12070         operating_system to after check that it is not NULL.
12071
12072 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12073
12074         * kod.c (kod_set_os): Remove unnecessary check that
12075         ``command->type'' is set_cmd.
12076
12077         * valprint.c (set_input_radix): Use input_radix.
12078         (set_output_radix): Use output_radix.
12079         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12080         isn't reverted.
12081
12082 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12083
12084         * value.h (struct value): Delete field ``substring_addr''.  Change
12085         aligner fields to force_doublest_align, force_longest_align,
12086         force_core_addr_align and force_pointer_aligh.
12087
12088         * value.h (struct value): Fix typo in above change.
12089
12090 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12091
12092         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12093         to fix internal_error from ``maintenance print architecture''.
12094
12095 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12096
12097         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12098         for gcc versions after gcc-2.8.1.
12099
12100 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12101
12102         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12103         for method resolution.  Restore adjustment of ``this'' pointer after
12104         calling value_struct_elt, which was accidentally removed during the
12105         HP merge.
12106
12107 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12108
12109         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12110         value_of_register.
12111         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12112         get_saved_register.
12113         * value.h (value_of_register): Update.
12114
12115 2002-03-14  Richard Henderson  <rth@redhat.com>
12116
12117         * configure.in: Detect declaration for canonicalize_file_name.
12118         * utils.c (canonicalize_file_name): Declare, if needed.
12119         (gdb_realpath): Prefer realpath if available and usable.
12120         * config.in, configure: Rebuild.
12121
12122 2002-03-14  Richard Henderson  <rth@redhat.com>
12123
12124         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12125         a constant array bound.
12126
12127         * MAINTAINERS: Add myself to write-after-approval.
12128
12129 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12130
12131         * symfile.c (syms_from_objfile): Return immediately if no syms.
12132         (symbol_file_add): Return immediately if no syms.
12133         (find_sym_fns): Return immediately if no syms.
12134
12135 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12136
12137         * gdbserver/remote-util.c (remote_open): Print remote-side's
12138         IP address when remote debugging over the network.
12139
12140 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12141
12142         * config/sparc/fbsd.mh: Fix copyright.
12143         * config/sparc/fbsd.mt: Likewise.
12144
12145 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12146
12147         * MAINTAINERS: Fix typo in name of gdb warnings option.
12148         (x86-64): Fix formating so that this can be parsed by awk.
12149
12150 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12151
12152         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12153         * defs.h: Include "gdb/signals.h".
12154         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12155
12156 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12157
12158         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12159         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12160         from x86-64-tdep.h
12161
12162 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12163             Don Howard <dhoward@redhat.com>
12164
12165         * mips-tdep.c (ST0_FR): Define.
12166         (mips2_fp_compat): New function, temporarily disabled.
12167         (mips_read_fp_register_single): New function.
12168         (mips_read_fp_register_double): New function.
12169         (mips_print_register): Use them.
12170         (do_fp_register_row): Likewise.
12171
12172 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12173
12174         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12175         approval''.
12176
12177 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12178
12179         * stabsread.c (read_member_functions): Fix is_stub test for
12180         static member functions, improve comment.
12181
12182 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12183
12184         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12185         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12186         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12187         commands that set boolean values.
12188         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12189         (arm_rdi_resume): Always initialize PC.
12190         (arm_rdi_open): Don't use rslt as a boolean.
12191         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12192         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12193         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12194         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12195
12196 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12197
12198         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12199         * configure: Rebuilt.
12200
12201 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12202
12203         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12204         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12205
12206 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12207
12208         * cli/cli-decode.c (set_cmd_completer): New function.
12209         * command.h (set_cmd_completer): Declare.
12210         * cli/cli-decode.h (set_cmd_completer): Ditto.
12211
12212         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12213         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12214         * win32-nat.c (_initialize_inftarg): Ditto.
12215         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12216         * proc-api.c (_initialize_proc_api): Ditto.
12217         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12218         * source.c (_initialize_source): Ditto.
12219         * exec.c (_initialize_exec): Ditto.
12220         * solib.c (_initialize_solib): Ditto.
12221         * top.c (init_main): Ditto.
12222         * tracepoint.c (_initialize_tracepoint): Ditto.
12223         * symfile.c (_initialize_symfile): Ditto.
12224         * printcmd.c (_initialize_printcmd): Ditto.
12225         * infcmd.c (_initialize_infcmd): Ditto.
12226         * corefile.c (_initialize_core): Ditto.
12227
12228 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12229
12230         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12231
12232 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12233
12234         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12235
12236 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12237
12238         * NEWS: Update headings, 5.2 has branched.
12239
12240 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12241
12242         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12243         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12244         (register_addr, REGISTER_RAW_SIZE): Likewise.
12245         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12246         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12247
12248 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12249
12250         * MAINTAINERS (x86-64): Add myself.
12251         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12252         changed value_ptr -> struct value *
12253
12254 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12255
12256         * configure.host (sparc64-*-freebsd): Add.
12257         * configure.tgt: Likewise.
12258         * config/sparc/fbsd.mh: New file.
12259         * config/sparc/fbsd.mt: Likewise.
12260         * config/sparc/nm-fbsd.h: Likewise.
12261         * config/sparc/tm-fbsd.h: Likewise.
12262
12263 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12264
12265         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12266         regformats/reg-s390x.dat.
12267
12268 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12269
12270         * utils.c: Add FIXME explaining true/false problem.
12271
12272 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12273
12274         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12275
12276 2002-02-28  Michael Chastain  <mec@shout.net>
12277
12278         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12279
12280 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12281
12282         * gdbserver/linux-s390-low.c: New file.
12283         * regformats/reg-s390.dat: New file.
12284         * regformats/reg-s390x.dat: New file.
12285         * gdbserver/configure.srv: Add S/390.
12286         * gdbserver/Makefile.in: Add S/390.
12287         * configure.tgt: Enable gdbserver for S/390.
12288
12289 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12290
12291         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12292         first line of the doc string for "info dos", except at the end of
12293         the sentence, since the short help stops at the first period.
12294
12295 2002-02-28  Jason Merrill  <jason@redhat.com>
12296
12297         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12298
12299 2002-02-27  Fred Fish  <fnf@redhat.com>
12300
12301         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12302         comment (dumy -> dummy).
12303
12304 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12305
12306         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12307
12308 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12309
12310       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12311
12312 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12313
12314         * gdbserver/acconfig.h: New file.
12315         * gdbserver/i387-fp.c: New file.
12316         * gdbserver/i387-fp.h: New file.
12317         * gdbserver/linux-x86-64.c: New file.
12318         * regformats/reg-x86-64.dat: New file.
12319         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12320         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12321         * gdbserver/configure.in: Add support for regsets.
12322         * gdbserver/config.in: Regenerate.
12323         * gdbserver/configure: Regenerate.
12324         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12325         * gdbserver/linux-low.h: New file.
12326         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12327         for regsets.
12328         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12329         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12330         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12331         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12332         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12333         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12334         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12335         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12336         * gdbserver/regcache.c (supply_register): New function.
12337         (supply_register_by_name): New function.
12338         (collect_register): New function.
12339         (collect_register_by_name): New function.
12340
12341 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12342
12343         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12344         (config.status): Add configure.srv dependency.
12345         (server_h): Add config.h dependency.
12346
12347 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12348
12349         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12350         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12351         * gdbserver/configure.srv: Change i386-*-linux* to use
12352         reg-i386-linux.o.
12353
12354 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12355
12356         * x86-64-tdep.c: Re-indent.  Update copyright date.
12357
12358 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12359
12360         From Michal Ludvig <mludvig@suse.cz>:
12361         * x86-64-tdep.c (value.h): Delete.
12362         (gdb_assert.h): Include.
12363         (x86_64_register_convert_to_virtual,
12364         x86_64_register_convert_to_raw ): Add check which lets only
12365         floating-point values to be converted.
12366         (value_push): Delete.
12367         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12368         (i386_gdbarch_init): Number of register_bytes fixed.
12369
12370 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12371
12372         * MAINTAINERS: Add x86-64 target.
12373
12374 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12375
12376         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12377         * osfsolib.c (solib_map_sections): Ditto.
12378         * irix5-nat.c (solib_map_sections): Ditto.
12379         * corelow.c (gdb_check_format): Ditto.
12380         * symfile.c (symfile_bfd_open): Ditto.
12381         * solib.c (solib_map_sections): Ditto.
12382         Fix PR gdb/354.
12383
12384 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12385
12386         * remote.c (_initialize_remote): By default, disable ``e'' and
12387         ``E'' step out-of-range packets.
12388
12389 2002-02-26  Andreas Schwab  <schwab@suse.de>
12390
12391         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12392         m68k_linux_frame_saved_pc.
12393         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12394         in_sigtramp.
12395         (SIGCONTEXT_PC_OFFSET): Remove.
12396         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12397         m68k_linux_sigtramp_saved_pc): New functions.
12398         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12399         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12400         (UCONTEXT_PC_OFFSET): Define.
12401         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12402         non-RT and RT signal trampolines.
12403
12404 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12405
12406         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12407         (TARGET_NBPG, STACK_END_ADDR): Delete
12408         (VARIABLES_INSIDE_BLOCK): Delete.
12409
12410 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12411
12412         * utils.c (perror_with_name): Make string parameter constant.
12413         (print_sys_errmsg): Ditto.
12414         (query): Ditto.
12415         * defs.h (perror_with_name): Update.
12416         (print_sys_errmsg): Update.
12417         (query): Update.
12418
12419 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12420
12421         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12422         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12423
12424 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12425
12426         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12427         if it already matches the current architecture from the exec file.
12428         Include arch-utils.h for gdbarch_info_init prototype.
12429         * Makefile.in (rs6000-nat.o): Update dependencies.
12430
12431 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12432
12433         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12434          list of exported variables.
12435
12436 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12437
12438         * gdbserver/configure.srv: New file.
12439         * gdbserver/configure.in: Use configure.srv instead
12440         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12441         from it.
12442         * gdbserver/configure: Regenerated.
12443         * gdbserver/terminal.h: New file.
12444         * gdbserver/Makefile.in: Update for configure changes.  Remove
12445         more unneeded include paths.
12446
12447 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12448
12449         From wiz at danbala:
12450         * config/sparc/tm-sp64.h: Fix grammar and typos.
12451         Fix PR gdb/287.
12452
12453 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12454
12455         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12456         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12457         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12458         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12459         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12460         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12461         * s390-tdep.c: Ditto.
12462         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12463         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12464         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12465         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12466         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12467         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12468         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12469         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12470         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12471         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12472         Fix PR gdb/378.
12473
12474 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12475
12476         * lin-thread.c: Delete file.
12477         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12478         to gdb_proc_service.h.
12479         * configure: Re-generate.
12480
12481         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12482         * serial.c (serial_open): Delete check for "ocd".
12483         Fix PR gdb/349.
12484
12485         * Makefile.in (linux-thread.o): Delete target.
12486         * linux-thread.c: Delete file.
12487
12488         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12489         renamed SH files to be consistent.
12490
12491         * symtab.c (sort_search_symbols): Use xfree.
12492
12493 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12494
12495         * arm-linux-tdep.c (arm_linux_init_abi): Register
12496         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12497         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12498         definition with undef, since we don't want the sysvr4 definition.
12499         (SKIP_TRAMPOLINE_CODE): Likewise.
12500
12501 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12502
12503         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12504
12505         * configure.in: (AC_CHECK_FUNCS) Added test for
12506         canonicalize_file_name Regenerated.
12507         * config.in, configure: Regenerated.
12508         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12509         defined use canonicalize_file_name.
12510
12511 2002-02-23  Michael Chastain  <mec@shout.net>
12512
12513         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12514
12515 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12516
12517         * README: Remove references to cygnus.com.
12518         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12519         dot com'' form.  Remove references to cygnus.com and sourceware.
12520
12521 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12522
12523         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12524         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12525         1003.1-2001 no longer allows "head -1".
12526         * gdb/Makefile.in (version.c): Likewise.
12527         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12528         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12529         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12530
12531 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12532
12533         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12534         * command.h (cmd_cfunc_eq): Declare.
12535         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12536
12537         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12538         ``struct cmd_list_element *''.
12539         * cli/cli-cmds.c (is_complete_command): Update.  Use
12540         cmd_cfunc_eq.
12541         * top.c (execute_command): Pass the command to
12542         is_complete_command.
12543         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12544
12545 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12546
12547         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12548         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12549         architecture defines.
12550         * s390-tdep.c (s390_gdbarch_init): Likewise.
12551
12552 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12553
12554         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12555         (arm_linux_push_arguments): Likewise.
12556         (arm_linux_init_abi): Register them.  Also register linux-specific
12557         call_dummy_words.
12558         (find_minsym_and_objfile): Use strcmp, not STREQ.
12559         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12560         (arm_linux_call_dummy_words): Delete declaration.
12561         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12562         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12563         declarations.
12564         (LOWEST_PC): Delete.
12565
12566 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12567
12568         * maint.c (print_section_info): Do not prepend `0x' to filepos
12569         output, it will be handled by local_hex_string_custom.
12570
12571 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12572
12573         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12574         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12575         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12576
12577 2002-02-22  Jim Blandy  <jimb@redhat.com>
12578
12579         Indicate that the bcache functions don't change the strings
12580         they're passed.
12581         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12582         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12583
12584 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12585
12586         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12587
12588 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12589
12590         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12591         find the complete path to a loaded DLL.
12592
12593 2002-02-21  Fred Fish  <fnf@redhat.com>
12594
12595         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12596         that marks the end of the range of a function, enter a line number
12597         entry that has a line number of zero and a PC offset that matches
12598         the end of the function.  This starts a range of PC's for which no
12599         line number information is known.
12600         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12601         PC's for which no line number info is found (line number is zero)
12602         then we didn't find any valid line information.
12603         * symtab.h: Document use of zero line number entry.
12604
12605 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12606
12607         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12608         (have_ptrace_getvrregs): Define for run time checks.
12609         (gdb_vrregset_t): New type for Altivec register handling.
12610         (fetch_register, store_register): Fetch/store altivec register
12611         when needed.
12612         (fetch_altivec_register, store_altivec_register): New functions.
12613         (supply_vrregset, fill_vrregset): New functions.
12614         (fetch_altivec_registers, store_altivec_registers): New functions.
12615         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12616         registers as well.
12617
12618 2002-02-21  Jiri Smid  <smid@suse.cz>
12619
12620         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12621
12622 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12623
12624         * Makefile.in (armnbsd-nat.o): Update dependencies.
12625         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12626         supply the integer register set.
12627         (supply_fparegset): New function.  Similar for FPA registers.
12628         (fetch_regs, fetch_fp_regs): Use them.
12629         (fetch_core_registers): Likewise.
12630         (fetch_elfcore_registers): New function.
12631         (arm_netbsd_elfcore_fns): New core-file type specification.
12632         (_initialize_arm_netbsd_nat): Register it.
12633
12634 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12635
12636         * armnbsd-nat.c: Include gdbcore.h.
12637         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12638         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12639         'void' to declaration, to shut up ARI.
12640         (fetch_core_registers): Make static.  Rewrite using supply_register.
12641         (arm_netbsd_core_fns): New core-file type specification.
12642         (_initialize_arm_netbsd_nat): New function.
12643
12644 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12645
12646         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12647         value.
12648
12649 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12650
12651         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12652         fails.
12653
12654 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12655
12656         * jv-exp.y (parse_number): Change type of implicit longs
12657         to builtin_type_uint64.
12658
12659 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12660
12661         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12662         to be an integer instead of a `union wait'.
12663
12664 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12665
12666         * mips-linux-nat.c: Call the operating system GNU/Linux.
12667         * mips-linux-tdep.c: Likewise.
12668         * mips-tdep.c: Likewise.
12669
12670 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12671
12672         Fix PR gdb/265.
12673         * jv-exp.y (parse_number): Handle 64-bit integers.
12674
12675 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12676
12677         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12678         AC_STDC_HEADERS to AC_HEADER_STDC.
12679         * gdbserver/configure: Regenerated.
12680
12681 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12682
12683         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12684         is defined.
12685         * sparc-tdep.c (get_longjmp_target): Likewise.
12686
12687 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12688
12689         * News: Add news about ARM and Multi-arch.  Mention the new target
12690         arm*-*-netbsd*.
12691
12692 2002-02-19  Jim Blandy  <jimb@redhat.com>
12693
12694         * stabsread.c (error_type_complaint): Improve error message.
12695
12696 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12697
12698         * gdbserver/README: Update documentation.
12699         * gdbserver/configure.in: Update configury to match documentation.
12700         * gdbserver/Makefile.in: Likewise.
12701         * gdbserver/configure: Regenerated.
12702         * gdbserver/aclocal.m4: New file, generated by aclocal.
12703         * gdbserver/config.in: New file, generated by autoheader.
12704
12705 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12706
12707         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12708         armnbsd-nat.c.
12709
12710 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12711
12712         * arm-tdep.h (enum arm_float_model): New enum.
12713         (struct gdbarch_tdep): Add fp_model.
12714         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12715         up floating-point conversions until we know the floating-point model
12716         in use by the inferior.  Don't complain about being unable to
12717         determine the ABI of the inferior when we don't have one.
12718         (arm_extract_return_value): Support different floating-point models.
12719         (arm_store_return_value): Likewise.
12720         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12721         ARM_FLOAT_SOFT.
12722         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12723
12724 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12725
12726         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12727         of ``current_gdbarch''.
12728
12729 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12730
12731         * armnbsd-nat.c : ANSIfy all function declarations.
12732         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12733         (fetch_inferior_registers): Re-implement in terms of above.
12734         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12735         (store_inferior_registers): Re-implement in terms of above.
12736
12737 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12738
12739         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12740         kernel.
12741         * arm-linux-tdep.c: Likewise.
12742         * config/arm/tm-linux.h: Likewise.
12743
12744 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12745
12746         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12747         * config/arm/nbsd.mt (TM_FILE): Delete.
12748         * config/arm/tm-nbsd.h: Delete.
12749
12750 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12751
12752         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12753         Initialize CALL_DUMMY_LENGTH.
12754
12755 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12756
12757         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12758         function.
12759         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12760         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12761         defines one thing and that is incorrect for this port.
12762         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12763
12764 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12765
12766         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12767
12768 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12769
12770         * win32-nat.c (display_selector): New function. Displays information
12771         about the information returned by GetThreadSelectorEntry API function.
12772         (display_selectors): New function. Displays the infomation of
12773         the selector given as argument, or of CS, DS ans FS selectors
12774         if no argument is given.
12775         ( _initialize_inftarg): Add "w32" as info prefix command.
12776         Add "info w32 selector" as command calling display_selectors.
12777
12778 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12779
12780         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12781         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12782         if not defined.
12783
12784 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12785
12786         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12787
12788 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12789
12790         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12791         (arm_fix_call_dummy): Call it.
12792         (arm_call_dummy_breakpoint_offset): Delete.
12793         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12794         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12795
12796 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12797
12798         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12799         Default to func_frame_chain_valid.
12800         * gdbarch.h, gdbarch.c: Re-generate.
12801         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12802
12803 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12804
12805         * ppc-linux-nat.c: Update copyright.
12806         (fetch_register, store_register): Add tid parameter, don't compute
12807         tid here.
12808         (fetch_ppc_registers, store_ppc_registers): Add tid
12809         parameter. Pass it along to callees.
12810         (fetch_inferior_registers, store_inferior_registers): Compute tid
12811         here, and pass it to calleed functions.
12812         (fill_gregset, supply_fpregset): Clean up formatting.
12813
12814 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12815
12816         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12817         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12818
12819 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12820
12821         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12822         * gdbarch.c gdbarch.h: Regenerate.
12823         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12824         function.
12825         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12826         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12827         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12828
12829         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12830         * arm-tdep.c (arm_get_longjmp_target): New function.
12831         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12832         this to a positive value register arm_get_longjmp_target as the
12833         longjmp handler.
12834         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12835         (arm_linux_init_abi): Set up longjmp description in tdep.
12836         * armnbsd-nat.c (get_longjmp_target): Delete.
12837         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12838         description in tdep.
12839         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12840         (get_longjmp_target): Delete declaration.
12841         (GET_LONGJMP_TARGET): Delete.
12842         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12843         (GET_LONGJMP_TARGET): Delete.
12844
12845 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12846
12847         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12848         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12849         of ``current_gdbarch''.
12850
12851 2002-02-17  Tom Tromey  <tromey@redhat.com>
12852
12853         * cli/cli-cmds.c (compare_strings): New function.
12854         (complete_command): Only print each unique item once.
12855         * completer.h (complete_line): Declare.
12856         * completer.c (complete_line): New function.
12857         (line_completion_function): Use it.
12858
12859 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12860
12861         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12862         * gdbarch.h, gdbarch.c: Re-generate.
12863
12864 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12865
12866         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12867
12868 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12869
12870         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12871         * valops.c (value_arg_coerce): Don't take the address of a reference
12872         to convert an argument to a reference.
12873
12874 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12875
12876         * win32-nat.c (get_image_name): New function.
12877         (handle_load_dll): Use get_image_name function.
12878         (get_child_debug_event): Avoid registering debug events until possibly
12879         execed process is started.
12880         (child_create_inferior): Allow invocation via shell so that command
12881         line redirection, etc.  works ok.
12882         (_initialize_inftarg): Add new command: "set shell" to control whether
12883         a shell is used to start a process.
12884
12885 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12886
12887         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12888         instead of find_register_by_number.
12889         (cannot_store_register): Likewise.
12890
12891 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12892
12893         * dwarf2read.c: Replace fprintf (stderr, ...) by
12894         fprintf_unfiltered (gdb_stderr, ...).
12895
12896 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12897
12898         * gdbserver/gdbserver.1: Document --attach.
12899
12900 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12901
12902         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12903         descriptions.
12904         * arm-tdep.c (arm_default_arm_le_breakpoint)
12905         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12906         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12907         traditional breakpoint defines.
12908         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12909         (arm_gdbarch_init): Initialize new breakpoint variables.
12910         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12911         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12912         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12913         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12914         code out to ...
12915         (arm_netbsd_init_abi_common): ... here; new function.
12916         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12917         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12918         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12919         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12920
12921 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12922
12923         * arm-tdep.h (enum arm_abi): New enum.
12924         (struct gdbarch_tdep): New structure.
12925         (LOWEST_PC): Provide a default.
12926         (arm_gdbarch_register_os_abi): Declare new function.
12927         * arm-tdep.c (arm_abi_names): New array.
12928         (process_note_abi_tag_sections): New function.
12929         (get_elfosabi): New function.
12930         (arm_gdbarch_register_os_abi): New function.
12931         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12932         support for that ABI has been built in, then call the appropriate
12933         configuration routine.  Use gdbarch_num_regs() to get the number
12934         of registers.
12935         (arm_dump_tdep): New function.
12936         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12937         place-holder functions.
12938         (_initialize_arm_tdep): Register them.
12939         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12940
12941         * armnbsd-tdep.c: New file.
12942         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12943         * config/arm/nbsd.mt (TDEPFILES): Add it.
12944         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12945
12946         * armnbsd-nat.c: Include regcache.h.
12947         * Makefile.in (armnbsd-nat.o): Update dependency list.
12948
12949         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12950
12951 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12952
12953         * gdbserver/Makefile.in: Fix typos in target rules.
12954
12955 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12956
12957         Fix part of PR gdb/267.
12958         * linespec.c (find_methods): Handle constructors specially for now.
12959
12960 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12961
12962         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12963         handling.
12964         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12965         standard_coerce_float_to_double().
12966
12967 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12968
12969         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12970         GDBINIT_FILENAME.
12971
12972 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12973
12974         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12975         find_variant_by_name, because it confuses the multiarch
12976         framework. Return NULL if there isn't an architecture with the
12977         user supplied name, instead of forcing a different one without
12978         recording the change with the multiarch machinery.
12979         (find_variant_by_name): Delete.
12980
12981 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12982
12983         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12984         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12985
12986 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12987
12988         * stack.c (print_frame_info_base): When calling
12989         print_frame_info_listing_hook, set current_source_symtab.
12990
12991 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12992
12993         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12994         and remove unused $(INCLUDE_DIR).
12995         Add regcache.c to OBS.
12996         Add generated register protocol files to clean target.
12997         Update dependencies for new objects, obsolete old target code.
12998
12999         * gdbserver/linux-low.c: Remove all platform-specific code to
13000         new files.  Remove various dead code.  Update to use regcache
13001         functionality.
13002         * gdbserver/remote-utils.c (fromhex): Add return statement
13003         to quiet warning.
13004         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13005         constant.
13006         (input_interrupt): Add integer parameter to match prototype
13007         of a signal handler.
13008         (outreg): Use register_data ().
13009         (prepare_resume_reply): Use gdbserver_expedite_regs.
13010         * gdbserver/server.c (main): Dynamically allocate own_buf because
13011         PBUFSIZ is no longer constant.  Use registers_to_string () and
13012         registers_from_string ().
13013         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13014         for error (), fatal (), and warning ().  Update definition of
13015         PBUFSIZ to use regcache functionality.  Add include guard.
13016         * gdbserver/utils.c (fatal): Add missing ``const''.
13017         (warning): New function.
13018
13019         * regformats/regdat.sh: Include "regcache.h" in generated files.
13020         Provide init_registers () function.
13021         * regformats/regdef.h: Add prototype for set_register_cache ().
13022         Add include guard.
13023
13024         * gdbserver/linux-arm-low.c: New file.
13025         * gdbserver/linux-i386-low.c: New file.
13026         * gdbserver/linux-ia64-low.c: New file.
13027         * gdbserver/linux-m68k-low.c: New file.
13028         * gdbserver/linux-mips-low.c: New file.
13029         * gdbserver/linux-ppc-low.c: New file.
13030         * gdbserver/linux-sh-low.c: New file.
13031
13032         * gdbserver/regcache.c: New file.
13033         * gdbserver/regcache.h: New file.
13034
13035         * gdbserver/low-linux.c: Removed obsolete file.
13036
13037 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13038
13039         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13040         * config/i386/linux.mt: Likewise.
13041         * config/ia64/linux.mt: Likewise.
13042         * config/m68k/linux.mh: Likewise.
13043         * config/powerpc/linux.mh: Likewise.
13044         * config/mips/linux.mt: Likewise.
13045
13046         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13047
13048         * config/i386/i386lynx.mh: Mark gdbserver variables
13049         as (currently) obsolete for this target.
13050         * config/i386/nbsd.mt: Likewise.
13051         * config/i386/nbsdelf.mt: Likewise.
13052         * config/m32r/m32r.mt: Likewise.
13053         * config/m68k/m68klynx.mh: Likewise.
13054         * config/m68k/nbsd.mt: Likewise.
13055         * config/m68k/sun3os4.mh: Likewise.
13056         * config/mips/vr5000.mt: Likewise.
13057         * config/ns32k/nbsd.mt: Likewise.
13058         * config/pa/hppabsd.mh: Likewise.
13059         * config/pa/hppaosf.mh: Likewise.
13060         * config/powerpc/nbsd.mt: Likewise.
13061         * config/rs6000/rs6000lynx.mh: Likewise.
13062         * config/s390/s390.mt: Likewise.
13063         * config/s390/s390x.mt: Likewise.
13064         * config/sparc/sparclynx.mh: Likewise.
13065         * config/sparc/sun4os4.mh: Likewise.
13066         * config/i386/x86-64linux.mt: Likewise.
13067         * config/sparc/linux.mh: Likewise.
13068
13069 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13070
13071         * configure.tgt: Configure gdbserver only for known working
13072         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13073         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13074         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13075         * configure: Regenerated.
13076
13077 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13078
13079         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13080
13081         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13082         (default_gcore_mach): Just return 0, work around a problem in bfd.
13083         (default_gcore_target): OK to return NULL if exec_bfd is null.
13084         (make_mem_sec): Use a cast, avoid a warning.
13085
13086         * procfs.c (find_memory_regions_callback): Use a cast instead of
13087         calling host_pointer_to_address (which complains if
13088         sizeof (host pointer) != sizeof (target pointer)).
13089         (procfs_make_note_section): Avoid overflow in psargs string.
13090
13091         * procfs.c (procfs_make_note_section): Make the default
13092         implementation return an error.
13093
13094 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13095
13096         * procfs.c (procfs_make_note_section): Provide a default definition
13097         (for alpha-dec-osf4.0f). Fix typos.
13098
13099 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13100
13101         * linux-proc.c: Add include of regcache.h.
13102         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13103
13104 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13105
13106         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13107         * memattr.c (create_mem_region): Disallow useless empty region.
13108         Regions are half-open intervals, so allow [A..B) [B..C) as
13109         non-overlapping.
13110
13111 2002-02-13  Michael Chastain <mec@shout.net>
13112
13113         * defs.h: Kill CONST_PTR.
13114         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13115         * c-lang.c (c_builtin_types): Likewise.
13116         * ch-lang.c (ch_builtin_types): Likewise.
13117         * f-lang.c (f_builtin_types): Likewise.
13118         * language.c (unknown_builtin_types): Likewise.
13119         * m2-lang.c (m2_builtin_types): Likewise.
13120         * p-lang.c (pascal_builtin_types): Likewise.
13121         * scm-lang.c (c_builtin_types): Likewise.
13122
13123 2002-02-13  Keith Seitz  <keiths@redhat.com>
13124
13125         * arm-tdep.h (arm_get_next_pc): Add declaration.
13126
13127 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13128
13129         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13130         with other related struct-returning functions.
13131         (arm_extract_struct_value_address): New function.
13132         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13133         initialize float_format, double_format and long_double_format as
13134         appropriate to the endianness of the target.
13135         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13136         (arm_use_struct_convention): Delete declaration.
13137         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13138
13139 2002-02-13  Keith Seitz  <keiths@redhat.com>
13140
13141         * defs.h (core_addr_to_string_nz): New function.
13142
13143 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13144
13145         Apply missing bits of 2002-01-15 patch.
13146         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13147         (fill_fpregset): Use i387_fill_fsave.
13148
13149 2002-02-12  Keith Seitz  <keiths@redhat.com>
13150
13151         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13152         (core_addr_to_string_nz): New function.
13153
13154 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13155
13156         * arm-linux-nat.c: Really include arm-tdep.h.
13157         * config/arm/tm-linux.h (struct type, struct value): Declare.
13158
13159 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13160
13161         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13162         (gcore section): Ifdef for Solaris and Unixware only.
13163         (procfs_do_thread_registers): Unixware needs one lwpstatus
13164         per thread (not one prstatus or pstatus).
13165         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13166         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13167         once before iterating over threads.
13168
13169 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13170
13171         * arm-tdep.h: New file.
13172         * arm-tdep.c: Include arm-tdep.h.
13173         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13174         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13175         (arm_print_float_info, arm_register_type, convert_to_extended)
13176         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13177         (arm_extract_return_value, arm_register_name): Make static.
13178         (arm_software_single_step): Similarly.  Fix types in declaration.
13179         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13180         (arm_store_return_value, arm_store_struct_return): New functions.
13181         (arm_gdbarch_init): Register the above functions.  Also register
13182         call_dummy_start_offset, sizeof_call_dummy_words,
13183         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13184         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13185         max_register_virtual_size, register_size.  Set up
13186         prologue_cache.saved_regs here, rather than ...
13187         (_initialize_arm_tdep): ... here.
13188         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13189         declarations.
13190         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13191         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13192         (arm_print_float_info, arm_register_type, convert_to_extended)
13193         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13194         (arm_extract_return_value, arm_register_name): Delete declarations.
13195         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13196         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13197         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13198         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13199         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13200         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13201         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13202         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13203         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13204         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13205         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13206         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13207         interface.
13208         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13209         * remote-rdi.c remote-rdp.c: Likewise.
13210         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13211         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13212         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13213         definition.
13214
13215         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13216         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13217         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13218         from non-ARM_ prefixed definitions.
13219         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13220         all uses of above.
13221         * remote-rdi.c remote-rdp.c: Likewise.
13222         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13223
13224 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13225
13226         * arm-tdep.c (arm_frameless_function_invocation)
13227         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13228         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13229         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13230         (arm_pop_frame, arm_get_next_pc): Make static.
13231         (arm_gdbarch_init): Register above in gdbarch structure.
13232         (arm_read_fp): Renamed from arm_target_read_fp.
13233         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13234         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13235         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13236         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13237         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13238         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13239         (arm_pc_is_thumb_dummy): Delete declarations.
13240         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13241         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13242         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13243         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13244
13245 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13246
13247         * symtab.c (compare_search_syms): New function.
13248         (sort_search_symbols): New function.
13249         (search_symbols): Sort symbols after searching rather than
13250         before.
13251
13252 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13253
13254         * NEWS: Linux -> GNU/Linux.
13255
13256 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13257
13258         * gdbarch.sh: For for level one methods, disallow a definition
13259         when partially multi-arched.  Add comments explaining rationale.
13260         * gdbarch.h: Re-generate.
13261
13262 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13263
13264         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13265         multi-arch partial.
13266
13267 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13268
13269         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13270         field.  Use diff -u.
13271         * gdbarch.c: Re-generate.
13272
13273 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13274
13275         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13276         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13277         partial.
13278
13279 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13280
13281         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13282         multi-arch partial.
13283         (PUSH_ARGUMENTS): Switch to using predefault.
13284         * gdbarch.c: Regenerate.
13285
13286 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13287
13288         * valops.c (PUSH_ARGUMENTS): Delete definition.
13289         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13290         partial.  Default to default_push_arguments.
13291         * gdbarch.h, gdbarch.c: Regenerate.
13292
13293 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13294
13295         * defs.h (throw_exception): Rename return_to_top_level.  Update
13296         comments.
13297         * utils.c (error_stream, internal_verror, quit): Ditto.
13298         * top.c (throw_exception, catcher): Ditto.
13299         * sparclet-rom.c (sparclet_load): Ditto.
13300         * remote.c (interrupt_query, minitelnet): Ditto.
13301         * remote-sds.c (interrupt_query): Ditto.
13302         * remote-mips.c (mips_error, mips_kill): Ditto.
13303         * ocd.c (interrupt_query): Ditto.
13304         * monitor.c (monitor_interrupt_query): Ditto.
13305         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13306         * target.h: Update comment.
13307
13308         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13309
13310 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13311
13312         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13313         default_double_format.
13314         * gdbarch.h, gdbarch.c: Re-generate.
13315         * findvar.c (floatformat_unknown): Delete variable definition.
13316         * doublest.h (floatformat_unknown): Delete variable declaration.
13317
13318 2002-02-09  Jim Blandy  <jimb@redhat.com>
13319
13320         * stabsread.c (read_type): Add code to parse Sun's syntax for
13321         prototyped function types.
13322
13323 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13324
13325         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13326         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13327
13328 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13329
13330         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13331         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13332         now _initialize_xcoffsolib gets called again and overrides the
13333         commands from solib.c in a native configuration.
13334
13335 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13336
13337         * doublest.c (store_typed_floating): Don't try to return a value.
13338         Fixes PR gdb/290.
13339
13340 2002-02-08  Jim Blandy  <jimb@redhat.com>
13341
13342         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13343         is prototyped and has no arguments, print its argument list as
13344         `(void)'.
13345
13346 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13347
13348         * MAINTAINERS (write-after-approval): Add myself.
13349         (paper-trail): I've escaped!
13350
13351 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13352
13353         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13354         changes.
13355         (_initialize_check_for_gdb_ini): Ditto.
13356
13357 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13358
13359         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13360         xaprintf -> xasprintf.
13361
13362 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13363
13364         * win32-nat.c: Remove use of printf and sprintf functions.
13365
13366 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13367
13368         * arm-tdep.c (arm_frame_chain_valid): Make static.
13369         (arm_push_arguments): Likewise.
13370         (arm_gdbarch_init): New function.
13371         (_initialize_arm_tdep): Call it.
13372         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13373         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13374         (FRAME_CHAIN_VALID): Delete.
13375         (arm_frame_chain_valid): Delete declaration.
13376         (PUSH_ARGUMENTS): Delete.
13377         (arm_push_arguments): Delete declaration.
13378         (CALL_DUMMY_P): Delete.
13379
13380 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13381             Corinna Vinschen  <vinschen@redhat.com>
13382
13383         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13384         on builtin float types.
13385
13386 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13387
13388         * utils.c: Include <curses.h> before "bfd.h".
13389         * tui/tui-hooks.c: Likewise.
13390         * tui/tui.c: Likewise.
13391         * tui/tuiCommand.c: Likewise.
13392         * tui/tuiData.c: Likewise.
13393         * tui/tuiDataWin.c: Likewise.
13394         * tui/tuiDisassem.c: Likewise.
13395         * tui/tuiGeneralWin.c: Likewise.
13396         * tui/tuiIO.c: Likewise.
13397         * tui/tuiLayout.c: Likewise.
13398         * tui/tuiRegs.c: Likewise.
13399         * tui/tuiSource.c: Likewise.
13400         * tui/tuiSourceWin.c: Likewise.
13401         * tui/tuiStack.c: Likewise.
13402         * tui/tuiWin.c: Likewise.
13403
13404 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13405
13406         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13407         to include space for pseudoregs as well. Update loops accordingly.
13408         (sh_fp_frame_init_saved_regs): Ditto.
13409         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13410
13411 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13412
13413         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13414         Add Richard Earnshaw to Arm maintainers.
13415
13416 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13417
13418         * defs.h (warning_begin): Delete declaration.
13419
13420         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13421         Delete macro.
13422
13423 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13424
13425         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13426         Logic bug, remove misplaced else.
13427
13428 2002-02-07  Klee Dienes  <klee@apple.com>
13429
13430         * fork-inferior.c (fork_inferior): Add '!' to the list of
13431         characters that need to be quoted when building a string for the
13432         shell.  Quote '!' specifically with a backslash, since CSH chokes
13433         when trying to evaluate "str!str".
13434
13435 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13436
13437         * rdi-share/host.h: Only provide a typedef for bool if it is not
13438         defined.
13439
13440 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13441
13442         * breakpoint.h (enum bptype): Add new overlay event bp type.
13443         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13444
13445         * breakpoint.c (create_internal_breakpoint): New function.
13446         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13447         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13448         (create_thread_event_breakpoint): Ditto.
13449         (create_solib_event_breakpoint): Ditto.
13450         (create_overlay_event_breakpoint): New function.
13451         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13452         (update_breakpoints_after_exec): Delete and re-initialize
13453         overlay event breakpoints after an exec.  Add FIXME comment
13454         about longjmp breakpoint.
13455         (print_it_typical): Ignore overlay event breakpoints.
13456         (print_one_breakpoint): Ditto.
13457         (mention): Ditto.
13458         (bpstat_what): Do not stop for overlay event breakpoints.
13459         (delete_breakpoint): Don't delete overlay event breakpoints.
13460         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13461         (breakpoint_re_set): Re-create overlay event breakpoint.
13462
13463         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13464         (overlay_manual_command): Disable overlay breakpoints.
13465         (overlay_off_command): Disable overlay breakpoints.
13466
13467 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13468
13469         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13470         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13471         to here from config/tm-arm.h.
13472         (coff_sym_is_thumb): Make static.
13473         (arm_elf_make_msymbol_special): New function.
13474         (arm_coff_make_msymbol_special): New function.
13475         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13476         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13477         (coff_sym_is_thumb): Delete declaration.
13478         (arm_elf_make_msymbol_special): Declare.
13479         (arm_coff_make_msymbol_special): Declare.
13480         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13481         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13482
13483 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13484
13485         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13486
13487 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13488
13489         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13490         * gdbarch.c gdbarch.h: Regenerate.
13491         * arch-utils.c (default_print_float_info): New function.
13492         * arch-utils.h (default_print_float_info): Prototype it.
13493         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13494         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13495         (PRINT_FLOAT_INFO): Document it.
13496
13497         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13498         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13499         (PRINT_FLOAT_INFO): Define.
13500
13501 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13502
13503         * win32-nat.c (_initialize_check_for_gdb_ini):
13504         Add typecast to sprintf argument to suppress a warning.
13505
13506 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13507
13508         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13509         to allow easier handling of pass state.
13510         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13511         that gives exception name and address.
13512         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13513         and set last_sig value to ourstatus->value.sig. Some missing
13514         exceptions added.
13515         (child_continue): Correctly report continue_status.
13516         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13517         TARGET_SIGNAL_0 (new default value).
13518         (child_resume): consider sig argument passed to decide if
13519         the exception should be passed to debuggee or not.
13520
13521 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13522
13523         * regcache.c (fetch_register): Call target_fetch_register
13524         only if we don't call FETCH_PSEUDO_REGISTER.
13525         (store_register): Call target_store_register only if we
13526         don't call STORE_PSEUDO_REGISTER.
13527
13528 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13529
13530         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13531         ELF_MAKE_MSYMBOL_SPECIAL.
13532         * gdbarch.c, gdbarch.h: Regenerate.
13533         * arch-utils.c (default_make_msymbol_special): New function.
13534         * arch-utils.h (default_make_msymbol_special): Export.
13535         * elfread.c (elf_symtab_read): Compile use of
13536         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13537         multiarched.
13538         * coffread.c (coff_symtab_read): Ditto, for
13539         COFF_MAKE_MSYMBOL_SPECIAL.
13540
13541 2002-02-05  Jim Blandy  <jimb@redhat.com>
13542
13543         * solib-svr4.c (svr4_truncate_ptr): New function.
13544         (svr4_relocate_section_addresses): Do the address arithmetic with
13545         the appropriate truncation for target addresses, even when
13546         CORE_ADDR is larger than a target address.
13547
13548 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13549
13550         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13551         to (int *).
13552
13553 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13554
13555         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13556         code.
13557
13558 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13559
13560         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13561
13562 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13563
13564         * gdbserver/linux-low.c: Remove unused include files.
13565
13566 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13567
13568         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13569         (read_inferior_memory): Use it.
13570         (write_inferior_memory): Likewise.
13571
13572 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13573
13574         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13575         grubbing through sys_errlist.
13576
13577 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13578
13579         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13580
13581 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13582         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13583
13584 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13585
13586         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13587         (do_sfunc, set_cmd_sfunc): New functions.
13588
13589         * command.h (struct cmd_list_element): Add field func.
13590         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13591         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13592         * cli/cli-decode.h: Ditto.
13593
13594         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13595         (help_all, help_cmd_list): Ditto.
13596         (find_cmd, complete_on_cmdlist): Ditto.
13597         * top.c (execute_command): Ditto.
13598
13599         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13600         function.sfunc.
13601
13602         * infcmd.c (notice_args_read): Fix function signature.
13603
13604         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13605         * cli/cli-decode.c (add_set_cmd): Ditto.
13606         * utils.c (initialize_utils): Ditto.
13607         * maint.c (_initialize_maint_cmds): Ditto.
13608         * infrun.c (_initialize_infrun): Ditto.
13609         * demangle.c (_initialize_demangler): Ditto.
13610         * remote.c (add_packet_config_cmd): Ditto.
13611         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13612         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13613         * proc-api.c (_initialize_proc_api): Ditto.
13614         * kod.c (_initialize_kod): Ditto.
13615         * valprint.c (_initialize_valprint): Ditto.
13616         * top.c (init_main): Ditto.
13617         * infcmd.c (_initialize_infcmd): Ditto.
13618         * corefile.c (_initialize_core): Ditto.
13619         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13620         * arch-utils.c (initialize_current_architecture): Ditto.
13621         (_initialize_gdbarch_utils): Ditto.
13622         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13623
13624         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13625         * wince.c (_initialize_inftarg): Ditto.
13626         * symfile.c (_initialize_symfile): Ditto.
13627         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13628         * language.c (_initialize_language): Ditto.
13629         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13630
13631 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13632
13633         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13634
13635 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13636
13637         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13638         Add rules for building the register data files.
13639
13640 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13641
13642         * regformats/regdat.sh: Add braces to the definition of
13643         expedite_regs_${arch}.
13644
13645 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13646
13647         * regformats/regdef.h (struct reg): Add comment describing the
13648         requirements for offset and size fields.
13649
13650 2002-02-04  Andreas Schwab  <schwab@suse.de>
13651
13652         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13653         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13654
13655 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13656
13657         * gdbarch.sh (copyright): Update years in generated header.
13658         (SMASH_TEXT_ADDRESS): Add rule.
13659         * gdbarch.h, gdbarch.c: Re-generate.
13660         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13661         * dbxread.c: Likewise.
13662         * dwarfread.c: Likewise.
13663         * elfread.c: Likewise.
13664         * somread.c: Likewise.
13665
13666         * arm-tdep.c (arm_smash_text_address): New function.
13667         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13668
13669 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13670
13671         Add support for hardware watchpoints on win32 native.
13672         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13673         CONTEXT_DEBUG_REGISTERS.
13674         (dr variable): New variable. Static array containing a local copy
13675         of debug registers.
13676         (debug_registers_changed): New variable.  Reflects when debug registers
13677         are changed and need to be written to inferior.
13678         (debug_registers_used): New variable. Reflects when any debug register
13679         was set, used when new threads are created.
13680         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13681         i386-nat code.
13682         (thread_rec): Set dr array if id is the thread of current_event .
13683         (child_continue, child_resume): Change the debug registers for all
13684         threads if debug_registers_changed.
13685         (child_add_thread): Change the debug registers if debug_registers_used.
13686         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13687         Link nm.h to new nm-cygwin.h file.
13688         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13689         of hardware registers.
13690
13691 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13692
13693         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13694         Restore behavour broken by 2002-01-20 Andrew Cagney
13695         <ac131313@redhat.com> IEEE_FLOAT removal.
13696
13697 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13698
13699         * c-valprint.c (c_val_print): Pass a proper valaddr to
13700         cp_print_class_method.
13701         * valops.c (search_struct_method): If there is only one method
13702         and args is NULL, return that method.
13703
13704 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13705
13706         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13707         accessing tag_name directly.
13708
13709 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13710
13711         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13712         of accessing tag_name directly.
13713
13714 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13715
13716         PR gdb/280
13717         * gdbtypes.c (replace_type): New function.
13718         * gdbtypes.h (replace_type): Add prototype.
13719         * stabsread.c (read_type): Use replace_type.
13720
13721 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13722
13723         * Makefile.in (memattr.o): Add missing dependencies rule.
13724
13725 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13726
13727         * breakpoint.c (break_at_finish_command): Really export.
13728         (break_at_finish_at_depth_command): Ditto.
13729         (tbreak_at_finish_command): Ditto.
13730         * hppa-tdep.c: Include completer.h.
13731         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13732         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13733
13734 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13735
13736         * utils.c (do_write): New function.
13737         (error_stream): Rewrite combining the code from error_begin and
13738         verror.
13739         (verror): Rewrite using error_stream.
13740         (error_begin): Delete function.
13741
13742 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13743
13744         * utils.c (error_begin): Make static.
13745         * defs.h (error_begin): Delete declaration.
13746
13747         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13748         (decode_line_1): Use cplusplus_error instead of error_begin,
13749         cplusplus_hint and return_to_top_level.
13750         * coffread.c (coff_symfile_read): Use error instead of error_begin
13751         and return_to_top_level.
13752         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13753
13754 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13755
13756         * language.h (type_error, range_error): Make string parameter
13757         constant.
13758         * language.c (warning_pre_print): Delete extern declaration.
13759         * dwarfread.c (warning_pre_print): Ditto.
13760         * language.c (type_error, range_error): Rewrite to use verror and
13761         vwarning instead of warning_begin.
13762
13763 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13764
13765         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13766         (set_ignore_count): Move misplaced comment back where it belongs.
13767
13768 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13769
13770         * command.h (NO_FUNCTION): Delete macro.
13771         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13772         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13773         * tracepoint.c (_initialize_tracepoint): Ditto.
13774         * cli/cli-decode.c (add_set_cmd): Ditto.
13775         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13776
13777 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13778
13779         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13780         Update ``this'' pointer when calling virtual functions.
13781
13782 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13783
13784         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13785         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13786
13787 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13788
13789         * regformats/reg-arm.dat: New file.
13790         * regformats/reg-i386.dat: New file.
13791         * regformats/reg-ia64.dat: New file.
13792         * regformats/reg-m68k.dat: New file.
13793         * regformats/reg-mips.dat: New file.
13794         * regformats/reg-ppc.dat: New file.
13795         * regformats/reg-sh.dat: New file.
13796         * regformats/regdef.h: New file.
13797         * regformats/regdat.sh: New file.
13798
13799 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13800
13801         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13802         (arm_frame_args_address, arm_frame_locals_address): New functions.
13803         (arm_frame_num_args): New function.
13804         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13805         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13806         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13807
13808 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13809
13810         * breakpoint.c (break_at_finish_command): Export.
13811         (break_at_finish_at_depth_command): Export.
13812         (tbreak_at_finish_command): Export.
13813         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13814         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13815         "txbreak" commands, which are HPPA specific.
13816
13817         * printcmd.c (disassemble_command): Remove an ancient
13818         artifact of an old merge.
13819
13820         * symfile.h (enum overlay_debugging_state):
13821         Define enum constant values for overlay mode.
13822         * symfile.c (overlay_debugging): Use enums instead of literals.
13823         (overlay_is_mapped, overlay_auto_command,
13824         overlay_manual_command): Ditto.
13825
13826         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13827         breakpoint_here_p, breakpoint_inserted_here_p,
13828         breakpoint_thread_match, bpstat_stop_status,
13829         describe_other_breakpoints, check_duplicates, clear_command):
13830         Coding standard fixes.
13831
13832         * target.c (target_xfer_memory): Add spaces, coding standard.
13833         (do_xfer_memory): Add missing line to trust-readonly
13834         code: check bfd SEC_READONLY flag for section.
13835
13836 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13837
13838         * PROBLEMS: Fix typo, 5.1->5.1.1.
13839
13840 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13841
13842         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13843         data symbols, since we search based on textlow and texthigh.
13844         (find_pc_sect_symtab): Likewise.
13845
13846 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13847
13848         * defs.h (vwarning): Declare.
13849         * utils.c (vwarning): New function.
13850         (warning): Call vwarning.
13851         (warning_begin): Delete function.
13852
13853         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13854         the warning message.
13855         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13856         warning_begin.
13857
13858 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13859
13860         * NEWS: Mention "set trust-readonly-sections" command.
13861         Mention generate-core-file command.
13862
13863 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13864
13865         * target.c: New command, "set trust-readonly-sections on".
13866         (do_xfer_memory): Honor the suggestion to trust readonly sections
13867         by reading them from the object file instead of from the target.
13868         (initialize_targets): Register command "set trust-readonly-sections".
13869
13870 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13871
13872         * parse.c (target_map_name_to_register): Simplify, search regs and
13873         pseudo-regs using a single loop.
13874
13875 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13876
13877         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13878
13879 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13880
13881         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13882         * config/i386/i386v42mp.mh: Add i387-nat.o .
13883         * i386v4-nat.c: Include i387-nat.h.
13884         (supply_fpregset): Use i387_supply_fsave.
13885         (fill_fpregset): Use i387_fill_fsave.
13886
13887 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13888
13889         * arm-tdep.c (arm_call_dummy_words): Define.
13890         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13891         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13892         (CALL_DUMMY_WORDS): Define.
13893         (arm_call_dummy_words): Declare.
13894         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13895         (arm_linux_call_dummy_words): Declare.
13896
13897 2002-01-30  Andreas Schwab  <schwab@suse.de>
13898
13899         * m68klinux-nat.c: Fix last change to use regcache_collect
13900         instead of referencing registers[] directly.
13901
13902 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13903
13904         * parse.c (target_map_name_to_register): Delete code wrapped in
13905         #ifdef REGISTER_NAME_ALIAS_HOOK.
13906
13907 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13908
13909         * regcache.c (legacy_read_register_gen): Need to be able to
13910         read pseudo-register as well as real register.
13911         (legacy_write_register_gen): Ditto.
13912
13913 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13914
13915         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13916         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13917         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13918         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13919         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13920         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13921         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13922         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13923         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13924         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13925         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13926         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13927         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13928         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13929         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13930         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13931         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13932         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13933         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13934         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13935
13936 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13937
13938         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13939         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13940         (initialize_current_architecture): Update target_byte_order using
13941         information from BFD.
13942         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13943         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13944
13945 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13946
13947         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13948         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13949
13950         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13951         #ifdef INVALID_FLOAT.
13952         * infcmd.c (do_registers_info): Ditto.
13953         * values.c (unpack_double): Ditto.  Add comment.
13954
13955         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13956         already commented out.
13957
13958 2002-01-26  Andreas Schwab  <schwab@suse.de>
13959
13960         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13961         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13962         registers and add support for PTRACE_GETREGS.
13963
13964 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13965
13966         GDB 5.1.1 released from 5.1 branch.
13967         * NEWS: Add 5.1.1 news.
13968         * README: Sync with 5.1 branch.
13969
13970 2002-01-23  Fred Fish  <fnf@redhat.com>
13971
13972         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13973         stabstring on initial malloc.  Reallocing will copy it for us,
13974         if necessary.
13975
13976 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13977
13978         * Makefile.in (hpread_h): Delete.
13979         (HFILES_NO_SRCDIR): Remove hpread.h.
13980         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13981         (hpread.o): Update dependencies.
13982         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13983
13984         * hp-psymtab-read.c: Remove file.
13985         * hp-symtab-read.c: Remove file.
13986         * hpread.h: Remove file.
13987
13988         * hpread.c: Merge all contents of hp-psymtab-read.c,
13989         hp-symtab-read.c and hpread.h into this file, as it was prior to
13990         January 1999.
13991
13992         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13993         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13994         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13995         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13996
13997 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13998
13999         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14000         fill_gregset): Call gdbarch_tdep() just once, assign result to
14001         variable and use that, instead of calling the function several
14002         times.
14003
14004 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14005
14006         * configure.host: Accept sparcv9 as alias for sparc64.
14007         * configure.tgt: Likewise.
14008
14009 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14010
14011         * solib-aix5.c (build_so_list_from_mapfile)
14012         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14013         arguments is not reversed.
14014         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14015         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14016
14017 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14018
14019         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14020         modified version of obsolete sh_fetch_pseudo_register.
14021         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14022         (sh4_register_read): New function.
14023         (sh_pseudo_register_write): New function. Renamed and modified
14024         version of obsolete sh_store_pseudo_register.
14025         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14026         (sh4_register_write): New function.
14027         (sh_gdbarch_init): Remove setting of gdbarch function
14028         fetch_pseudo_register and store_pseudo_register. Remove setting of
14029         register_convert_to_raw, register_convert_to_virtual,
14030         register_convertible.
14031         (sh_sh4_register_convertible): Delete. No longer needed. All is
14032         taken care by architecture specific functions
14033         register_read/register_write.
14034         (sh_sh4_register_convert_to_virtual): Make static.
14035         (sh_sh4_register_convert_to_raw): Ditto.
14036
14037 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14038
14039         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14040         (floatformat_is_nan, floatformat_mantissa): Ditto.
14041
14042         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14043         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14044         builtin_type_ieee_double_little,
14045         builtin_type_ieee_double_littlebyte_bigword,
14046         builtin_type_m68881_ext, builtin_type_i960_ext,
14047         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14048         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14049         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14050         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14051
14052 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14053
14054         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14055         parameter.  Set frameless flag if it exists and depended of
14056         whether the scanned function is frameless or not.
14057         (xstormy16_skip_prologue): If function is frameless, return
14058         result of xstormy16_scan_prologue().
14059         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14060         call.
14061
14062 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14063
14064         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14065         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14066         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14067         sh_sh4_register_byte, sh_sh4_register_raw_size,
14068         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14069         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14070         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14071         sh_store_pseudo_register, sh_do_pseudo_register): Call
14072         gdbarch_tdep() just once, assign result to variable and use that,
14073         instead of calling the function several times.
14074
14075 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14076
14077         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14078         macros instead of LAST_FPU_CTRL_REGNUM.
14079         (store_register): Likewise.
14080
14081 2002-01-21  Jim Blandy  <jimb@redhat.com>
14082
14083         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14084         is up-to-date before running the program, not just when a program
14085         exits.
14086
14087 2002-01-21  Fred Fish  <fnf@redhat.com>
14088
14089         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14090         when we have found all instructions we are looking for.
14091
14092 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14093
14094         * arm-tdep.c (arm_register_name): New function.
14095         (arm_registers_names): Make static.
14096         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14097         (arm_register_name): Declare.
14098         (REGISTER_NAME): Use it.
14099
14100 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14101             Kevin Buettner  <kevinb@redhat.com>
14102
14103         Convert arm targets to new FRAME interface.
14104         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14105         (arm_frame_find_save_regs): Delete.
14106         (arm_frame_init_saved_regs): New.
14107         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14108         Allocate extra_info as required.  Convert all uses of fsr.regs
14109         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14110         to use extra_info.
14111         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14112         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14113         (check_prologue_cache, save_prologue_cache): Likewise.
14114         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14115         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14116         (FRAME_FIND_SAVED_REGS): Delete.
14117         (arm_frame_find_saved_regs): Delete prototype.
14118         (arm_frame_init_saved_regs): New prototype.
14119         (FRAME_INIT_SAVED_REGS): Define.
14120
14121 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14122
14123         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14124
14125 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14126
14127         From Jeff Law <law@redhat.com>:
14128         * infttrace.c: Include <sys/pstat.h>.
14129         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14130         exec file if the ttrace equivalent fails.
14131
14132 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14133
14134         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14135         (closeLogFile): Ditto.
14136
14137 2002-01-20  Michael Chastain  <mec@shout.net>
14138
14139         * top.c (print_gdb_version): Bump copyright year to 2002.
14140
14141 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14142
14143         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14144         Zannoni and Eli Zaretskii.
14145
14146 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14147
14148         * buildsym.c: Update copyright years.
14149         * c-typeprint.c: Likewise.
14150         * dwarf2read.c: Likewise.
14151         * f-typeprint.c: Likewise.
14152         * gdbtypes.c: Likewise.
14153         * gdbtypes.h: Likewise.
14154         * hp-symtab-read.c: Likewise.
14155         * hpread.c: Likewise.
14156         * mdebugread.c: Likewise.
14157         * p-typeprint.c: Likewise.
14158
14159 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14160
14161         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14162         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14163         byte-order selectable.
14164         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14165         * arch-utils.c: Ditto.
14166         (set_endian): Ditto.
14167         (set_endian_from_file): Ditto.
14168         * gdbserver/low-sim.c (create_inferior): Ditto.
14169         * gdbarch.sh: Ditto.
14170         * gdbarch.h: Re-generate.
14171         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14172         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14173         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14174         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14175         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14176         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14177         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14178         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14179         macro definition.
14180         * config/mips/tm-wince.h: Remove #undef of macro
14181         TARGET_BYTE_ORDER_SELECTABLE.
14182         * config/sh/tm-wince.h: Ditto.
14183
14184 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14185
14186         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14187         member function fields.  Add accessor macro
14188         TYPE_FN_FIELD_ARTIFICIAL.
14189         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14190         * c-typeprint.c (c_type_print_base): Skip artificial member
14191         functions.
14192
14193 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14194
14195         * f-typeprint.c: Delete unused function f_type_print_args.
14196         * p-typeprint.c: Delete unused function pascal_type_print_args.
14197
14198 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14199
14200         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14201         comment.  Add ``artificial'' to ``union field_location''.
14202
14203         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14204
14205         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14206         * mdebugread.c (parse_symbol): Likewise.
14207         * stabsread.c (define_symbol): Likewise.
14208         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14209         initializing TYPE_FIELD_BITPOS to n (obsolete).
14210         (hpread_doc_function_type): Likewise.
14211         * hpread.c (hpread_function_type): Likewise.
14212
14213 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14214
14215         * configure.in (host_makefile_frag): Only require a host makefile
14216         fragment when a native build.
14217         * configure: Re-generate.
14218
14219 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14220
14221         * doublest.h (floatformat_from_type): Declare.
14222         * doublest.c (floatformat_from_type): New function.
14223         (convert_typed_floating): Use.
14224
14225         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14226         call to function floatformat_from_type.
14227
14228         * gdbarch.sh (IEEE_FLOAT): Delete.
14229         * gdbarch.h, gdbarch.c: Re-generate.
14230         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14231         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14232         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14233         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14234         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14235         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14236         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14237         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14238         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14239         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14240         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14241         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14242
14243         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14244         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14245         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14246         * sh-tdep.c (sh_gdbarch_init): Ditto.
14247         * mips-tdep.c (mips_gdbarch_init): Ditto.
14248         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14249         * cris-tdep.c (cris_gdbarch_init): Ditto.
14250
14251 2002-01-20  Jiri Smid  <smid@suse.cz>
14252
14253         * configure.host, configure.tgt: Support x86-64.
14254         * NEWS: Note new target x86-64.
14255
14256         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14257         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14258         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14259         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14260         x86-64-linux-nat.o): Fix dependencies.
14261
14262 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14263
14264         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14265         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14266         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14267         * config/sparc/xm-sun4os4.h: Delete file.
14268         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14269
14270 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14271
14272         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14273         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14274         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14275         * config/i386/i386lynx.mh (XM_FILE): Delete.
14276         * config/rs6000/xm-rs6000ly.h: Delete file.
14277         * config/sparc/xm-sparclynx.h: Delete file.
14278         * config/m68k/xm-m68klynx.h: Delete file.
14279         * config/i386/xm-i386lynx.h: Delete file.
14280         * config/xm-lynx.h: Delete file.
14281         * config/djgpp/fnchange.lst: Update.
14282
14283 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14284
14285         * alpha-tdep.c (alpha_register_byte): New function.
14286         (alpha_register_raw_size): Ditto.
14287         (alpha_register_virtual_size): Ditto.
14288         (alpha_skip_prologue_internal): Renamed from
14289         alpha_skip_prologue.
14290         (alpha_skip_prologue): New version that calls
14291         alpha_skip_prologue_internal.
14292         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14293         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14294         second argument from alpha_skip_prologue.
14295         (REGISTER_BYTE): Use alpha_register_byte.
14296         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14297         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14298         (FRAMELESS_FUNCTION_INVOCATION): Use
14299         generic_frameless_function_invocation_not.
14300         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14301         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14302
14303 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14304
14305         * config/mips/xm-news-mips.h: Delete file.
14306         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14307
14308         * config/m88k/xm-m88k.h: Delete file.
14309         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14310         * config/m88k/xm-delta88v4.h: Ditto.
14311         * config/m88k/xm-delta88.h: Ditto.
14312
14313         * config/alpha/xm-fbsd.h: Delete file.
14314         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14315
14316         * config/sparc/xm-sparc.h: Delete file.
14317         * Makefile.in (xm-sun4os4.h): Delete dependency.
14318         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14319         * config/sparc/xm-sun4os4.h: Ditto.
14320         * config/sparc/xm-linux.h: Ditto.
14321
14322         * config/i386/xm-windows.h: Delete file.
14323
14324 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14325
14326         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14327         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14328
14329 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14330
14331         * alpha-tdep.c (alpha_call_dummy_words): New.
14332         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14333         (CALL_DUMMY_P): Define.
14334         (CALL_DUMMY_WORDS): Define.
14335         (SIZEOF_CALL_DUMMY_WORDS): Define.
14336
14337 2002-01-19  Per Bothner  <per@bothner.com>
14338
14339         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14340         isn't NULL, which can happen with some gcj-3.x-produced code.
14341
14342 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14343
14344         * alpha-tdep.c (alpha_register_virtual_type): New function.
14345         (alpha_init_frame_pc_first): Ditto.
14346         (alpha_fix_call_dummy): Ditto.
14347         (alpha_store_struct_return): Ditto.
14348         (alpha_extract_struct_value_address): Ditto.
14349         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14350         alpha_register_virtual_type.
14351         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14352         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14353         alpha_extract_struct_value_address.
14354         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14355         (INIT_FRAME_PC): Use init_frame_pc_noop.
14356         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14357
14358 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14359
14360         * i386gnu-nat.c: Include "i386-tdep.h".
14361         (fetch_fpregs): Simplify code dealing with uninitialized floating
14362         point states such that it doesn't require FP7_REGNUM.
14363
14364 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14365
14366         * alpha-tdep.c (frame_extra_info): New.
14367         (alpha_find_saved_regs): Make static.  Use
14368         frame->extra_info.
14369         (alpha_frame_init_saved_regs): New function.
14370         (alpha_frame_saved_pc): Use frame->extra_info.
14371         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14372         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14373         (init_extra_frame_info): Rename to...
14374         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14375         (alpha_print_extra_frame_info): New function.
14376         (alpha_frame_locals_address): Ditto.
14377         (alpha_frame_args_address): Ditto.
14378         (alpha_pop_frame): Use frame->extra_info.
14379         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14380         alpha_frame_args_address.
14381         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14382         (alpha_find_saved_regs): Remove prototype.
14383         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14384         (EXTRA_FRAME_INFO): Remove.
14385         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14386         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14387
14388 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14389
14390         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14391         (alpha_cannot_fetch_register): Ditto.
14392         (alpha_cannot_store_register): Ditto.
14393         (alpha_register_convertible): Ditto.
14394         (alpha_use_struct_convention): Ditto.
14395         * config/alpha/tm-alpha.h: Update copyright years.
14396         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14397         (INNER_THAN): Use core_addr_lessthan.
14398         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14399         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14400         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14401         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14402         (FRAME_CHAIN): Remove unnecessary cast.
14403
14404 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14405
14406         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14407         obsolete.
14408
14409 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14410
14411         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14412         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14413         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14414         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14415         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14416         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14417         * x86-64-linux-nat.c: Ditto.
14418
14419 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14420
14421         * alpha-tdep.c (alpha_register_name): New function.
14422         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14423         (REGISTER_NAME): Define.
14424
14425 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14426
14427         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14428
14429 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14430
14431         * alpha-tdep.c: Update copyright years.
14432         (alpha_next_pc): New function.
14433         (alpha_software_single_step): Ditto.
14434         * config/alpha/tm-alpha.h: Add prototype for
14435         alpha_software_single_step.
14436
14437 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14438
14439         * alphabsd-nat.c: Update copyright years.
14440         (fill_gregset): Use regcache_collect.
14441         (fill_fpregset): Likewise.
14442         (fetch_inferior_registers): Only fetch integer registers
14443         if requested to do so.
14444         (store_inferior_registers): Only store integer registers
14445         if requested to do so.
14446
14447 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14448
14449         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14450         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14451         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14452         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14453         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14454         * config/arm/linux.mh (XDEPFILES): Delete.
14455         * config/arm/nbsd.mh (XDEPFILES): Delete.
14456         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14457         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14458         * config/i386/i386m3.mh (XDEPFILES): Delete.
14459         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14460         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14461         * config/i386/fbsd.mh (XDEPFILES): Delete.
14462         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14463         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14464         * config/i386/i386v4.mh (XDEPFILES): Delete.
14465         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14466         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14467         * config/i386/i386aix.mh (XDEPFILES): Delete.
14468         * config/i386/go32.mh (XDEPFILES): Delete.
14469         * config/i386/cygwin.mh (XDEPFILES): Delete.
14470         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14471         * config/i386/i386mach.mh (XDEPFILES): Delete.
14472         * config/i386/i386v32.mh (XDEPFILES): Delete.
14473         * config/i386/linux.mh (XDEPFILES): Delete.
14474         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14475         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14476         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14477         * config/i386/i386sco.mh (XDEPFILES): Delete.
14478         * config/i386/i386v.mh (XDEPFILES): Delete.
14479         * config/i386/nbsd.mh (XDEPFILES): Delete.
14480         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14481         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14482         * config/i386/symmetry.mh (XDEPFILES): Delete.
14483         * config/i386/obsd.mh (XDEPFILES): Delete.
14484         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14485         * config/ia64/linux.mh (XDEPFILES): Delete.
14486         * config/ia64/aix.mh (XDEPFILES): Delete.
14487         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14488         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14489         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14490         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14491         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14492         * config/m68k/linux.mh (XDEPFILES): Delete.
14493         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14494         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14495         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14496         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14497         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14498         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14499         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14500         * config/m88k/delta88.mh (XDEPFILES): Delete.
14501         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14502         * config/m88k/m88k.mh (XDEPFILES): Delete.
14503         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14504         * config/mips/linux.mh (XDEPFILES): Delete.
14505         * config/mips/irix6.mh (XDEPFILES): Delete.
14506         * config/mips/irix5.mh (XDEPFILES): Delete.
14507         * config/mips/irix4.mh (XDEPFILES): Delete.
14508         * config/mips/irix3.mh (XDEPFILES): Delete.
14509         * config/mips/decstation.mh (XDEPFILES): Delete.
14510         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14511         (NATDEPFILES): Move core-aout.o to here.
14512         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14513         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14514         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14515         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14516         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14517         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14518         * config/pa/hpux11.mh (XDEPFILES): Delete.
14519         * config/powerpc/aix.mh (XDEPFILES): Delete.
14520         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14521         * config/powerpc/linux.mh (XDEPFILES): Delete.
14522         * config/romp/rtbsd.mh: Rename XDEPFILES.
14523         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14524         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14525         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14526         * config/s390/s390.mh (XDEPFILES): Delete.
14527         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14528         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14529         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14530         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14531         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14532         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14533         * config/sparc/linux.mh (XDEPFILES): Delete.
14534         * config/vax/vaxult.mh (XDEPFILES): Delete.
14535         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14536         * Makefile.in (DEPFILES): Remove XDEPFILES.
14537
14538 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14539
14540         * utils.c (internal_verror): Fix comments, default is yes not no.
14541         Update queries to match.  Default to quit and dump core.
14542
14543 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14544
14545         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14546         copyright.
14547         * defs.h, event-top.c, gdbcmd.h: Ditto.
14548         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14549         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14550         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14551         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14552         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14553         * mi/mi-main.c:Ditto.
14554
14555         * stack.c, symfile.c: Update copyright.
14556
14557 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14558
14559         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14560         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14561         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14562         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14563
14564 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14565
14566         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14567         * gdbserver/low-lynx.c (myattach): Likewise.
14568         * gdbserver/low-nbsd.c (myattach): Likewise.
14569         * gdbserver/low-sim.c (myattach): Likewise.
14570         * gdbserver/low-sparc.c (myattach): Likewise.
14571         * gdbserver/low-sun3.c (myattach): Likewise.
14572
14573         * gdbserver/low-linux.c (myattach): New function.
14574
14575         * gdbserver/server.c (attach_inferior): New function.
14576         (main): Handle "--attach".
14577
14578 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14579
14580         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14581         maintainer.
14582
14583 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14584
14585         * c-typeprint.c (is_type_conversion_operator): Add additional
14586         check for non-conversion operators.
14587
14588 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14589
14590         * linux-proc.c: Add "info proc" command, a la procfs.c.
14591         (read_mapping): New function, abstract and re-use code.
14592         (linux_find_memory_regions): Use new func read_mapping.
14593         (linux_info_proc_cmd): New function, implement "info proc".
14594         (_initialize_linux_proc): Add new command "info proc".
14595
14596 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14597
14598         * symfile.c (generic_load): Use bfd_map_over_sections method
14599         instead of manipulating bfd structure members directly.
14600         (add_section_size_callback): New function, bfd sections callback
14601         used by generic_load.
14602         (load_sections_callback): New function, bfd sections callback
14603         used by generic_load.
14604
14605 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14606
14607         [Based on work by Jim Blandy]
14608         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14609         (builtin_type_vec128): Export.
14610         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14611         types.
14612         (builtin_type_vec128): New builtin type for 128 bit vector
14613         registers.
14614         (build_gdbtypes): Initialize builtin_type_v16qi and
14615         builtin_type_v8hi. Create the vec128 register builtin type
14616         structure.
14617         (build_builtin_type_vec128): New function.
14618         (_initialize_gdbtypes): Register builtin_type_v16qi and
14619         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14620         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14621         AltiVec register to new builtin type.
14622
14623 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14624
14625         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14626         to make_cv_type.
14627
14628 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14629
14630         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14631         CLEAN_UP_REGISTER_VALUE.
14632         * regcache.c (supply_register): Update only call.
14633
14634 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14635
14636         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14637         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14638         a29k-*-vxworks* targets as obsolete.
14639
14640 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14641
14642         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14643         until we can resolve portability issues.
14644         * gregset.h: Remove references to fpxregs.
14645         * gcore.c (gcore_command): Initialize note_sec to NULL.
14646
14647 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14648
14649         * signals.c (target_signal_to_name): Rewrite.  Only use
14650         signals[].name when in bounds and non-NULL.
14651
14652 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14653
14654         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14655         * signals.c (target_signal_to_name): Verify that SIG is within the
14656         bounds of the signals array.
14657
14658 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14659
14660         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14661
14662 2002-01-13  Keith Seitz  <keiths@redhat.com>
14663
14664         * stack.c (print_frame_info_base): Print the frame's pc
14665         only if when print_frame_info_listing_hook is not defined.
14666
14667 2002-01-13  Keith Seitz  <keiths@redhat.com>
14668
14669         * varobj.c (varobj_set_value): Make sure that there were no
14670         errors evaluating the object before attempting to set its
14671         value.
14672         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14673         so this offset adjustment is no longer necessary.
14674         (create_child): Don't set the error flag if the child is
14675         a CPLUS_FAKE_CHILD.
14676         (value_of_child): If value_fetch_lazy fails, return NULL
14677         so that callers will be notified that an error occurred.
14678         (c_value_of_variable): Delay check of variable's validity
14679         until later. We actually want all structs and unions to have
14680         the value "{...}".
14681         Do not return "???" for variables which could not be evaluated.
14682         This error condition must be returned to the caller so that it
14683         can get the error condition from gdb.
14684         (cplus_name_of_child): Adjust index for vptr before figuring
14685         out the name of the child.
14686         (cplus_value_of_child): If a child's (real) parent is not valid,
14687         don't even bother trying to give a value for it. Just return
14688         an error. Change all instances in this function.
14689         (cplus_type_of_child): If our parent is one of the "fake"
14690         parents, we need to get at the type of the real parent, and
14691         derive the child's true type using this information.
14692
14693 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14694
14695         From 2002-01-09 John Marshall <johnm@falch.net>:
14696         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14697         sources.redhat.com, and tweak some related URLs which had
14698         suffered from linkrot.
14699
14700 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14701
14702         From Jeff law:
14703         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14704         structures passed in registers.
14705
14706 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14707
14708         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14709         white space which prevented compilation.  Reported by DSK
14710         <dsk@student.unsw.edu.au>.
14711
14712 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14713
14714         * symfile.c (build_section_addr_info_from_section_tab):
14715         Use bfd access method instead of manipulating bfd directly.
14716         (syms_from_objfile): Ditto.
14717         (simple_overlay_update_1): Ditto.
14718         (simple_overlay_update): Ditto.
14719         (generic_load): Ditto.
14720         (overlay_unmapped_address): FIXME comment, bfd access methods.
14721         (sections_overlap): FIXME comment, bfd access methods.
14722         (pc_in_mapped_range): FIXME comment, bfd access methods.
14723         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14724         (section_is_mapped): FIXME comment, bfd access methods.
14725         (section_is_overlay): FIXME comment, bfd access methods.
14726
14727         * symfile.c (generic_load): Whitespace and long line cleanups.
14728         Remove duplicate variable, change several local variables to
14729         more appropriate data types.
14730         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14731
14732 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14733
14734         From Peter Schauer:
14735         * language.c (longest_local_hex_string_custom): Use phex_nz to
14736         convert NUM to a hex string.
14737
14738 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14739
14740         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14741         the function.
14742         Update Copyright year.
14743
14744 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14745
14746         * language.c (longest_raw_hex_string): Delete unused function.
14747
14748 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14749
14750         * MAINTAINERS (write-after-approval): Add myself.
14751         * dwarf2read.c (read_tag_string_type): Handling of
14752         DW_AT_byte_size.
14753         (read_tag_string_type): FORTRAN fix to prevent propagation of
14754         first string size.
14755         (set_cu_language): Handling of DW_LANG_Fortran95
14756
14757 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14758
14759         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14760         GETPID(inferior_ptid).
14761         (store_inferior_registers): Likewise.
14762
14763 2002-01-10  Jason Merrill  <jason@redhat.com>
14764
14765         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14766         Fix DW_OP_minus.
14767
14768 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14769
14770         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14771         and bfd/elf32-sh-nbsd.c.
14772
14773 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14774
14775         * NEWS: Mention --pid and corefile/proc-id behavior change.
14776
14777         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14778         * gcore.c: Include cli/cli-decode.h instead of command.h.
14779
14780         * main.c (captured_main): Add new command line option "--pid".
14781         If the second command line argument (following the symbol-file)
14782         begins with a digit, try to attach to it before trying to open
14783         it as a corefile.
14784         (print_gdb_help): Document the "--pid" argument.
14785
14786 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14787
14788         * completer.c (command_completer): New function.
14789
14790         * completer.h <command_completer>: Add prototype.
14791
14792         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14793         completer for the "help" command.
14794
14795 2002-01-09  Jason Merrill  <jason@redhat.com>
14796
14797         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14798
14799 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14800
14801         * i386-linux-nat.c (fill_fpxregset): Make global.
14802         (store_fpxregset): Ditto.
14803
14804         * gregset.h (gdb_fpxregset_t): Define.
14805         (supply_fpxregset): Prototype.
14806         (fill_fpxregset): Prototype.
14807
14808         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14809
14810 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14811
14812         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14813         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14814         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14815
14816 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14817
14818         * MAINTAINERS: Update target maintainer rules so that any
14819         Maintainer can approve a tested patch for a maintenance-only
14820         target.
14821
14822 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14823
14824         * MAINTAINERS (write-after-approval): Add myself.
14825
14826         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14827         IN_SIGTRAMP.
14828
14829 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14830
14831         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14832         real name of the executable, rather than the /proc name.
14833
14834 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14835
14836         Implement a "generate-core-file" command in gdb, save target state.
14837         * gcore.c: New file.  Implement new command 'generate-core-file'.
14838         Save a corefile image of the current state of the inferior.
14839         * linux-proc.c: Add linux-specific code for saving corefiles.
14840         * target.h (struct target_ops): Add new target vectors for saving
14841         corefiles; to_find_memory_regions and to_make_corefile_notes.
14842         (target_find_memory_regions): New macro.
14843         (target_make_corefile_notes): New macro.
14844         * target.c (update_current_target): Inherit new target methods.
14845         (dummy_find_memory_regions): New place-holder method.
14846         (dummy_make_corefile_notes): New place-holder method.
14847         (init_dummy_target): Initialize new dummy target vectors.
14848         * exec.c (exec_set_find_memory_regions): New function.
14849         Allow the exec_ops vector for memory regions to be taken over.
14850         (exec_make_note_section): New function, target vector method.
14851         * defs.h (exec_set_find_memory_regions): Export prototype.
14852         * procfs.c (proc_find_memory_regions): New function, corefile method.
14853         (procfs_make_note_section): New function, corefile method.
14854         (init_procfs_ops): Set new target vector pointers.
14855         (find_memory_regions_callback): New function.
14856         (procfs_do_thread_registers): New function.
14857         (procfs_corefile_thread_callback): New function.
14858         * sol-thread.c (sol_find_memory_regions): New function.
14859         (sol_make_note_section): New function.
14860         (init_sol_thread_ops): Initialize new target vectors.
14861         * inftarg.c (inftarg_set_find_memory_regions): New function.
14862         Allow to_find_memory_regions vector to be taken over.
14863         (inftarg_set_make_corefile_notes): New function.
14864         Allow to_make_corefile_notes vector to be taken over.
14865         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14866         interface layer if not target_has_execution (may be a corefile).
14867         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14868         * config/sparc/sun4sol2.mh: Ditto.
14869         * config/alpha/alpha-linux.mh: Ditto.
14870         * config/arm/linux.mh: Ditto.
14871         * config/i386/x86-64linux.mh: Ditto.
14872         * config/ia64/linux.mh: Ditto.
14873         * config/m68k/linux.mh: Ditto.
14874         * config/mips/linux.mh: Ditto.
14875         * config/powerpc/linux.mh: Ditto.
14876         * config/sparc/linux.mh: Ditto.
14877
14878 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14879
14880         * arm-linux-nat.c: Remove references to regcache.c internal data
14881         (registers[] and register_valid[]).
14882
14883 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14884
14885         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14886         so that attaching to a pid will automatically read the process's
14887         symbol file and shlibs.
14888         * Makefile.in: Add rule for linux-proc.o.
14889         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14890         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14891         * config/arm/linux.mh: Ditto.
14892         * config/i386/linux.mh: Ditto.
14893         * config/i386/x86-64linux.mh: Ditto.
14894         * config/ia64/linux.mh: Ditto.
14895         * config/m68k/linux.mh: Ditto.
14896         * config/mips/linux.mh: Ditto.
14897         * config/powerpc/linux.mh: Ditto.
14898         * config/sparc/linux.mh: Ditto.
14899
14900 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14901
14902         * win32-nat.c: Add i386-tdep.h dependency.
14903
14904 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14905
14906         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14907         instead of bfd_get_arch_size.  Don't bail out just because
14908         there's no exec_bfd.
14909
14910         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14911         * p-valprint.c (pascal_object_print_value): Ditto.
14912         * somread.c (som_symtab_read): Ditto.
14913         * symfile.c (simple_free_overlay_region_table): Ditto.
14914         * valops.c (value_assign): Ditto.
14915
14916         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14917         use tilde_expand and strerror for opening save-tracepoints file.
14918
14919         * thread-db.c (thread_db_new_objfile): Indendation fix.
14920
14921         * infptrace.c (GDB_MAX_ALLOCA): New define.
14922         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14923         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14924         can be overridden with whatever value is appropriate to the host).
14925         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14926         alloca to allocate potentially large buffer.
14927         * rs6000-nat.c (child_xfer_memory): Ditto.
14928         * symm-nat.c (child_xfer_memory): Ditto.
14929         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14930
14931 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14932
14933         From Nick Clifton  <nickc@redhat.com>
14934         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14935
14936 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14937
14938         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14939         Don't use exec_bfd if it's NULL.
14940
14941 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14942
14943         * valops.c (value_arg_coerce): Fix formatting.
14944
14945 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14946
14947         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14948         * gnu-nat.c: Ditto.
14949
14950 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14951
14952         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14953         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14954         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14955         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14956         z8k-coff have not been multi-arched.  Update z8k-coff build
14957         status.
14958
14959 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14960
14961         * MAINTAINERS: Mark a29k target as obsolete.
14962         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14963         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14964         comments.
14965         * NEWS: Note that a29k targets are obsolete.
14966         * a29k-tdep.c: Mark as obsolete.
14967         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14968         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14969         a29k-*-vxworks* targets as obsolete.
14970         * remote-adapt.c: Obsolete.
14971         * remote-eb.c: Obsolete.
14972         * remote-mm.c: Obsolete.
14973         * remote-udi.c: Obsolete.
14974         * config/a29k/a29k-udi.mt: Obsolete.
14975         * config/a29k/a29k.mt: Obsolete.
14976         * config/a29k/tm-a29k.h: Obsolete.
14977         * config/a29k/tm-vx29k.h: Obsolete.
14978         * config/a29k/vx29k.mt: Obsolete.
14979
14980 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14981
14982         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14983         with BFD_ENDIAN_BIG.
14984
14985 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14986
14987         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14988         * configure, config.in: Re-generate.
14989         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14990         * defs.h: Do not include <endian.h>.
14991
14992 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
14993
14994         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14995         * config.in: Regenerate.
14996         * configure.in: Update copyright years.
14997         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14998         * configure: Regenerate.
14999         * i386bsd-nat.c: Update copyright years.
15000         (fill_gregset): Use regcache_collect.
15001         (fetch_inferior_registers): Only fetch integer registers
15002         if requested to do so.  Add support for XMM registers
15003         using PT_GETXMMREGS.
15004         (store_inferior_registers): Only store integer registers
15005         if requested to do so.  Add support for XMM registers
15006         using PT_SETXMMREGS.
15007         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15008         (store_inferior_registers): Remove.
15009         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15010         (fetch_elfcore_registers): New function.
15011         (i386nbsd_elfcore_fns): New.
15012         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15013         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15014         i386bsd-nat.o.
15015         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15016         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15017         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15018         * config/i386/tm-nbsd.h: Update copyright years.
15019         (HAVE_SSE_REGS): Define.
15020         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15021         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15022         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15023         (SIGCONTEXT_PC_OFFSET): Remove.
15024         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15025
15026 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15027
15028         * configure.tgt: Remove powerpc-*-macos* target.
15029         * config/m68k/xm-mpw.h: Delete file.
15030         * config/xm-mpw.h: Delete file.
15031         * ser-mac.c: Delete file.
15032         * mpw-make.sed: Delete file.
15033         * mpw-config.in: Delete file.
15034         * mac-xdep.c: Delete file.
15035         * mac-gdb.r: Delete file.
15036         * mac-defs.h: Delete file.
15037         * mac-nat.c: Delete file.
15038         * config/powerpc/macos.mh: Delete file.
15039         * config/powerpc/macos.mt: Delete file.
15040         * config/powerpc/nm-macos.h: Delete file.
15041         * config/powerpc/tm-macos.h: Delete file.
15042         * source.c (openp, open_source_file): Remove obsolete code.
15043         * top.c (gdb_readline): Ditto.
15044         * utils.c (query): Ditto.
15045         * event-top.c (display_gdb_prompt): Ditto.
15046         * Makefile.in (ser-mac.o): Delete obsolete target.
15047         * NEWS: Update.
15048
15049 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15050
15051         * defs.h (BIG_ENDIAN): Delete macro definition.
15052         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15053         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15054         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15055         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15056         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15057         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15058         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15059         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15060         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15061         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15062         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15063         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15064         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15065         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15066         * gdbarch.c: Re-generate.
15067
15068 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15069
15070         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15071         for core files.
15072
15073 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15074
15075         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15076
15077 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15078
15079         * value.h (value_ptr): Delete typedef.
15080
15081 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15082
15083         * i386nbsd-nat.c: Update copyright years.
15084         Include i386-tdep.h.
15085
15086 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15087
15088         * stabsread.c: Update copyright years.
15089
15090         From Debashis Mahata <debashis.mahata@wipro.com>:
15091         (read_struct_fields): Deal with Sun C compiler erroneous stab
15092         output for structs and unions.
15093         Fix PR gdb/269.
15094
15095 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15096
15097         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15098         prototype.
15099
15100 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15101
15102         * cp-abi.c: Fix whitespace.
15103         (baseclass_offset): New wrapper function.
15104         * cp-abi.h (baseclass_offset): Add prototype.
15105         (struct cp_abi_ops): Add baseclass_offset pointer.
15106
15107         * valops.c (vb_match): Move to...
15108         * gnu-v2-abi.c (vb_match): here.
15109         * valops.c (baseclass_offset): Move to...
15110         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15111
15112         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15113
15114         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15115         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15116         * hpacc-abi.c (init_hpacc_ops): Likewise.
15117
15118 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15119
15120         * valops.c (find_overload_match): Accept obj as a
15121         reference parameter.  Update it before returning.
15122         * value.h (find_overload_match): Update prototype.
15123         * eval.c (evaluate_subexp_standard): Pass object to
15124         find_overload_match by reference.
15125
15126 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15127
15128         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15129         register attribute from value declarations.
15130         * valops.c: Ditto.
15131         * value.h: Ditto.
15132         * scm-lang.c (scm_lookup_name): Ditto.
15133
15134 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15135
15136         Abstract the functionality of iterating over mapped memory
15137         regions into a general purpose iterator function.
15138         * procfs.c (iterate_over_mappings): New function, general purpose
15139         iterator for memory sections.
15140         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15141         (solib_mappings_callback): New function, callback for above.
15142         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15143         (info_mappings_callback): New function, callback for above.
15144
15145         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15146
15147 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15148
15149         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15150         * i386-tdep.c: Include "elf-bfd.h".
15151         (process_note_abi_tag_sections): New function.
15152         (i386_gdbarch_init): Add code to recognize various OS/ABI
15153         combinations.
15154
15155         * maint.c (_initialize_maint_cmds): Add missing \ in
15156         string-literal.
15157
15158 For older changes see ChangeLog-2001
15159 \f
15160 Local Variables:
15161 mode: change-log
15162 left-margin: 8
15163 fill-column: 74
15164 version-control: never
15165 End: