* configure.in: Remove --with-cpu option.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
2
3         * configure.in: Remove --with-cpu option.
4         subscripts.  Remove evil changequotes here.
5         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
6         * config.in, configure: Regenerated.
7         
8         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9         * configure.in: Cleanup section that sources GDB and BFD configure
10         subscripts.  Remove evil changequotes here.
11         * config.in, configure: Regenerated.
12
13 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14
15         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
16         frame accessor methods.
17         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
18         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
19         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
20         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
21         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
22         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
23         * z8k-tdep.c: Ditto.
24         
25 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
26
27         * configure.in: Remove UI_OUT configuration code.
28         * ada-lang.c: Update assuming UI_OUT is always true.
29         * Makefile.in (UIOUT_CFLAGS): Remove.
30         * configure: Regenerated.
31         * TODO: Remove blurb about elimination of -DUI_OUT.
32
33         * configure.in: Move code that provides the --enable-gdbcli,
34         --enable-gdbmi options right before the code that handles the
35         --enable-tui option.  Polish a bit.
36         * configure: Regenerated.
37
38         * configure.in: Rewrite check for GNU regex and the
39         --without-included regex option, and move it into the "Checks for
40         library functions" section.  This makes us use the system regex
41         again by default on systems with version 2 of the GNU C library.
42         This was apparently broken.
43         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
44         * acconfig.h (USE_INCLUDED_REGEX): Remove.
45         * config.in, configure: Regenerated.
46
47         * configure.in: Move code that provides the --enable-tui option
48         before the "Checks for libraries" section.  Polish the code
49         somewhat and set need_curses to yes if we build the TUI.  Rewrite
50         code that looks for a library providing termcap functionality to
51         match more closely what's done in the Readline library, and move
52         it into to the "Checks for libraries" section.
53         * configure: Regenerated.
54         * Makefile.in (TERMCAP): Remove variable.
55         * config/i386/go32.mh (TERMCAP): Remove variable.
56
57 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
58
59         * MAINTAINERS: Mention gdb_mbuild.sh.
60         * gdb_mbuild.sh: Rewrite.
61
62 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
63
64         * configure.in: Fix typo in last change.
65         * config.in, configure: Regenerated.
66
67 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
68
69         * valarith.c (value_binop): Delete obsolete code and comments.
70         * configure.host: Ditto.
71         * buildsym.h (make_blockvector): Ditto.
72         * buildsym.c (make_blockvector): Ditto.
73         * defs.h (enum language): Ditto.
74         (chill_demangle): Ditto.
75         * elfread.c (elf_symtab_read): Ditto.
76         * dwarfread.c (CHILL_PRODUCER): Ditto.
77         (set_cu_language): Ditto.
78         (handle_producer): Ditto.
79         * expprint.c (print_subexp): Ditto.
80         * gdbtypes.c (chill_varying_type): Ditto.
81         * gdbtypes.h (builtin_type_chill_bool): Ditto.
82         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
83         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
84         (chill_varying_type): Ditto.
85         * language.h (_LANG_chill): Ditto.
86         * language.c (binop_result_type, integral_type): Ditto.
87         (character_type, string_type, structured_type): Ditto.
88         (lang_bool_type, binop_type_check): Ditto.
89         * stabsread.h (os9k_stabs): Ditto.
90         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
91         (define_symbol, read_type, read_struct_fields): Ditto.
92         (read_array_type, read_enum_type, read_huge_number): Ditto.
93         (read_range_type, start_stabs): Ditto.
94         * symfile.c (init_filename_language_table): Ditto.
95         (add_psymbol_with_dem_name_to_list): Ditto.
96         * symtab.c (symbol_init_language_specific): Ditto.
97         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
98         * symtab.h (struct general_symbol_info): Ditto.
99         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
100         * typeprint.c (typedef_print): Ditto.
101         * utils.c (fprintf_symbol_filtered): Ditto.
102         * valops.c (value_cast, search_struct_field, value_slice): Delete
103         obsolete code.
104         (varying_to_slice): Delete function.
105         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
106         (varying_to_slice): Delete declaration.
107         * MAINTAINERS: Update.
108
109 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
110
111         * configure.in: Reorganize "Checks for library functions section"
112         a bit.  Remove check for `btowc' and `isascii' functions.
113         * configure: Regenerated.
114
115         * acconfig.h (_MSE_INT_H): Remove.
116         * configure.in: Create "Checks for header files" section, and move
117         appropriate tests there.  Don't check for objlist.h, wchar.h,
118         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
119         misdetection fix.  Also add "Checks for types", "Checks for
120         compiler characteristics" and "Checks for library functions"
121         sections.
122         * config.in, configure: Regenerated.
123
124         * configure.in: Create "Checks for programs" section, and move
125         appropriate tests there.
126
127 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
128
129         * configure.in: Create "Checks for libraries" section, and move
130         appropriate tests there.  Cleanup check for wctype in libw.  Use
131         AC_SEARCH_LIBS to see whether we need libsocket.
132         * configure: Regenerated.
133
134 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
135
136         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
137         * config.in, configure: Regenerated.
138
139 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
140
141         * gdb_dirent.h: Cleanup and update code to match the example in
142         the Autoconf manual.
143         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
144         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
145         * configure: Regenerated.
146
147 2002-12-30  Adam Fedor  <fedor@gnu.org>
148
149         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
150         (yylex): Initialize c to avoid uninitialized warning.
151
152 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
153
154         * doc/fdl.texi: Revert the last change.
155
156 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
157
158         * tracepoint.c (ISATTY): Removed.
159
160 2002-12-26  J. Brobecker  <brobecker@gnat.com>
161
162         Continuing work to convert the hppa targets to multiarch partil.
163
164         * hppa-tdep.c: Add some missing forward declarations.
165         (frameless_function_invocation): Prefix the function name
166         by "hppa_" to avoid polluting the namespace.  Update all calls
167         to use the new function name.
168         (saved_pc_after_call): Ditto.
169         (init_extra_frame_info): Ditto.
170         (frame_chain): Ditto.
171         (push_dummy_frame): Ditto.
172         (target_read_pc): Ditto.
173         (target_write_pc): Ditto.
174         (in_solib_call_trampoline): Ditto.
175         (in_solib_return_trampoline): Ditto.
176         (skip_trampoline_code): Ditto.
177         (hppa_read_fp): New function, renamed from target_read_fp.
178         (hppa_target_read_fp): New function, using hppa_read_fp.
179         This function conforms to the function profile for the
180         READ_FP gdbarch method.
181         (hppa_extract_struct_value_address): New function, extracted
182         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
183         macro.
184         (hppa_frame_num_args): New function.
185         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
186
187         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
188         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
189         for the switch to multiarch partial.
190         Update some of the macros definitions to match some changes
191         described above in the name of the function they are calling.
192         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
193         not be straightforward to convert. Do now wrap it inside
194         "#if !... #endif" to remember that this macro has still not
195         been taken care of.
196         (FIX_CALL_DUMMY): Likewise.
197
198 2002-12-26  J. Brobecker  <brobecker@gnat.com>
199
200         Continuing work to convert the hppa targets to multiarch partial.
201
202         * hppa-tdep.c (hppa_register_raw_size): New function replacing
203         the body of macro REGISTER_RAW_SIZE.
204         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
205         config/pa/tm-hppah.h. These functions will be used to initialize
206         the gdbarch structure.
207         (hppa_hpux_pc_in_sigtramp): New function.
208         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
209         (hppa_hpux_frame_base_before_sigtramp): New function.
210         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
211         Add gdbcore.h #include.
212         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
213         of this gdbarch-eligible macro to a call to the new associated
214         function.
215         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
216         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
217         into a call to the new associated function.
218         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
219         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
220         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
221
222 2002-12-24  David Carlton  <carlton@math.stanford.edu>
223
224         * config/sparc/tm-sparc.h: Delete duplicate definition of
225         DEPRECATED_PC_IN_CALL_DUMMY.
226
227 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
228
229         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
230         $(gdb_assert_h).
231         * configure.tgt: Recognize mips64*-*-linux*.
232         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
233         (supply_32_bit_reg): New function.
234         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
235         (fill_gregset): Use regcache_collect() instead of
236         deprecated_registers[].
237         (register_addr): Change name to mips_linux_register_addr().
238         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
239         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
240         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
241         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
242         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
243         (MIPS64_LINUX_JB_PC): New defines.
244         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
245         (mips64_elf_fpregset_t): New typedefs.
246         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
247         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
248         (mips64_linux_register_addr, set_mips_linux_register_addr)
249         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
250         (init_register_addr_data)
251         New functions.
252         (fetch_core_registers): Add support for core file formats with 64-bit
253         registers.
254         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
255         (register_addr_data): New static global variable.
256         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
257         gdbarch_register_osabi() for each MIPS machine.
258         * config/mips/linux64.mt: New file.
259         * config/mips/tm-linux64.h: New file.
260
261 2002-12-23  Adam Fedor  <fedor@gnu.org>
262
263         * maint.c (maintenance_demangle): Add switch to demangle
264         ObjC language symbols as well.
265
266 2002-12-23  Adam Fedor  <fedor@gnu.org>
267
268         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
269         last argument from complaint function call.
270
271 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
272
273         * exec.c (print_section_info): Add FIXME comments regarding format
274         string choices.
275
276 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
277
278         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
279         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
280
281 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
282
283         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
284
285 2002-12-23  David Carlton  <carlton@math.stanford.edu>
286
287         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
288         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
289         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
290         information associated to a minsym, not lookup_symbol.
291
292 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
293
294         * x86-64-tdep.h (x86_64_init_abi): New prototype.
295         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
296         (x86_64_init_abi): Make non-static.  Set number of pseudo
297         registers to 0.
298         (x86_64_gdbarch_init): Remove function.
299         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
300         Remove code dealing with dissambly.
301         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
302         (_initialize_x86_64_linux_tdep): New function.
303         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
304         i386-tdep.o.
305
306 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
307
308         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
309         (struct gdb_osabi_handler): Remove member `arch'.  Add member
310         `arch_info'.
311         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
312         construct a `struct bfd_arch_info' and store it in the `struct
313         gdb_osabi_handler' that is created.
314         (gdbarch_init_osabi): Check for compatibility based on machine
315         type and architecture.
316         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
317         comment.
318         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
319         second argument in call to gdbarch_register_osabi.
320         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
321         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
322         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
323         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
324         * arm-tdep.c (_initialize_arm_tdep): Likewise.
325         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
326         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
327         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
328         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
329         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
330         * i386-tdep.c (_initialize_i386_tdep): Likewise.
331         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
332         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
333         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
334         _initialize_i386bsd_tdep and updated likewise.
335         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
336         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
337         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
338         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
339         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
340         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
341         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
342         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
343         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
344         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
345
346 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
347
348         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
349         DT_MIPS_RLD_MAP case for 64-bit targets.
350
351 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
352
353         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
354         ``temp_saved_regs'', not the pointer or other storage contiguous
355         to this pointer.
356
357 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
358
359         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
360         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
361         (mips_linux_get_longjmp_target): Delete declarations.
362         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
363         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
364         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
365         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
366         (mips_linux_get_longjmp_target)
367         (mips_linux_svr4_fetch_link_map_offsets): Make static.
368         (mips_linux_init_abi): New function.
369         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
370
371 2002-12-19  Keith Seitz  <keiths@redhat.com>
372
373         patch committed by Elena Zannoni  <ezannoni@redhat.com>
374         * thread.c (do_captured_list_thread_ids): Call prune_threads and
375         target_find_new_threads. Fix for PR mi/669.
376
377 2002-12-19  David Carlton  <carlton@math.stanford.edu>
378
379         * linespec.c (decode_line_1): Move code into decode_all_digits.
380         (decode_all_digits): New function.
381
382 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
383
384         * exec.c (print_section_info): Select a format string to use with
385         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
386
387 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
388
389         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
390         deprecated_update_current_frame_pc_hack.
391         (deprecated_update_frame_base_hack): New function.
392         * frame.h (deprecated_update_frame_pc_hack): Replace
393         (deprecated_update_frame_base_hack): Declare.
394         * infrun.c (normal_stop): Update.
395
396 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
397
398         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
399         frame_extra_info_zalloc.
400         (rs6000_frame_args_address): Use get_frame_extra_info.
401         (frame_get_saved_regs): Use get_frame_saved_regs.
402         (frame_initial_stack_address): Use get_frame_saved_regs and
403         get_frame_extra_info.
404         (frame_initial_stack_address): Use get_frame_extra_info.
405
406 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
407
408         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
409         array size.
410         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
411         checks for r3900_regnames[].
412
413 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
414
415         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
416         All uses changed
417         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
418
419 2002-12-17  David Carlton  <carlton@math.stanford.edu>
420
421         * symtab.c (lookup_partial_symbol): Don't search past the end of
422         the partial symbols.
423
424 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
425
426         * stack.c (frame_info): Use get_frame_saved_regs.
427         * breakpoint.c (until_break_command): Use get_frame_pc.
428
429 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
430
431         * buildsym.c (block_end_complaint, anon_block_end_complaint)
432         (innerblock_complaint, innerblock_anon_complaint)
433         (blockvector_complaint): Delete deprecated complaint structs.
434         (finish_block, make_blockvector, end_symtab): Replace calls
435         to complain() with calls to complaint().
436         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
437         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
438         (unexpected_type_complaint, bad_sclass_complaint)
439         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
440         Delete deprecated complaint structs.
441         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
442         Replace calls to complain() with calls to complaint().
443         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
444         (unknown_symtype_complaint, unknown_symchar_complaint)
445         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
446         (lbrac_mismatch_complaint, repeated_header_complaint)
447         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
448         Delete deprecated complaint structs.
449         (unknown_symtype_complaint, lbrac_mismatch_complaint)
450         (repeated_header_complaint)
451         (function_outside_compiliation_unit_complaint): New functions.
452         (add_old_header_file, find_corresponding_bincl_psymtab)
453         (set_namestring, find_stab_function_addr, read_dbx_symtab)
454         (process_one_symbol): Replace calls to complain() with, possibly
455         indirect, calls to complaint().
456         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
457         (unknown_attribute_form, unknown_attribute_length)
458         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
459         (const_ignored, botched_modified_type, op_deref2, op_deref4)
460         (basereg_not_handled, dup_user_type_allocation)
461         (dup_user_type_definition, missing_tag, bad_array_element_type)
462         (subscript_data_items, unhandled_array_subscript_format)
463         (unknown_array_subscript_format, not_row_major)
464         (missing_at_name): Delete deprecated complaint structs.
465         (bad_die_ref_complaint, unknown_attribute_form_complaint)
466         (dup_user_type_definition_complaint)
467         (bad_array_element_type_complaint): New functions.
468         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
469         (decode_subscript_data_item, dwarf_read_array_type)
470         (read_tag_string_type, read_subroutine_type, read_func_scope)
471         (locval, scan_partial_symbols, decode_modified_type)
472         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
473         (attribute_size): Replace calls to complain() with, possibly
474         indirect, calls to complaint().
475         * elfread.c (section_info_complaint, section_info_dup_complaint)
476         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
477         Delete deprecated complaint structs.
478         (elf_symtab_read, elfstab_offset_sections): Replace calls to
479         complain() with calls to complaint().
480         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
481         struct.
482         (stub_noname_complaint): New function.
483         (check_typedef, add_mangled_type): Replace calls to complain()
484         with calls to complaint().
485         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
486         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
487         (hpread_unhandled_type_complaint, hpread_struct_complaint)
488         (hpread_array_complaint, hpread_type_lookup_complaint)
489         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
490         (hpread_unhandled_common_complaint)
491         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
492         struct definitions and declarations.
493         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
494         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
495         Replace calls to complain() with, possibly indirect, calls to
496         complaint().
497         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
498         Likewise.
499         * mdebugread.c (bad_file_number_complaint, index_complaint)
500         (aux_index_complaint, block_index_complaint)
501         (unknown_ext_complaint, unknown_sym_complaint)
502         (unknown_st_complaint, block_overflow_complaint)
503         (basic_type_complaint, unknown_type_qual_complaint)
504         (array_index_type_complaint, bad_tag_guess_complaint)
505         (block_member_complaint, stEnd_complaint)
506         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
507         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
508         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
509         (bad_continued_complaint, bad_rfd_entry_complaint)
510         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
511         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
512         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
513         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
514         complaint structs.
515         (index_complaint, unknown_ext_complaint, basic_type_complaint)
516         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
517         (unexpected_type_code_complaint)
518         (function_outside_compilation_unit_complaint): New functions.
519         (parse_symbol, parse_type, upgrade_type, parse_procedure)
520         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
521         Replace calls to complain() with, possibly indirect calls to
522         complaint().
523         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
524         Delete deprecated complaint structs.
525         (lookup__objc_class, lookup_child_selector): Replace complain()
526         with complaint().
527         * remote-vx.c (cant_contact_target): Delete deprecated complaint
528         struct.
529         (vx_lookup_symbol): Replace complain() with complaint().
530         * stabsread.c (invalid_cpp_abbrev_complaint)
531         (invalid_cpp_type_complaint, member_fn_complaint)
532         (const_vol_complaint, error_type_complaint)
533         (invalid_member_complaint, range_type_base_complaint)
534         (reg_value_complaint, vtbl_notfound_complaint)
535         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
536         (unresolved_sym_chain_complaint, stabs_general_complaint)
537         (lrs_general_complaint, multiply_defined_struct): Delete
538         deprecated complaint structs.
539         (invalid_cpp_abbrev_complaint, ref_value_complaint)
540         (stabs_general_complaint, lrs_general_complaint)
541         (msg_unknown_complaint): New functions.
542         (dbx_lookup_type, read_cfront_baseclasses)
543         (read_cfront_member_functions, resolve_symbol_reference)
544         (define_symbol, resolve_live_range, add_live_range, read_type)
545         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
546         (read_one_struct_field, read_baseclasses, read_tilde_fields)
547         (read_cfront_static_fields, attach_fields_to_type)
548         (complain_about_struct_wipeout, read_range_type)
549         (common_block_start, common_block_end, cleanup_undefined_types)
550         (scan_file_globals): Replace complain() with complaint().
551         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
552         Delete deprecated complaint struct declarations.
553         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
554         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
555         (bf_not_found_complaint, ef_complaint, eb_complaint)
556         (function_outside_compilation_unit_complaint): New functions.
557         (record_include_begin, record_include_end, enter_line_range)
558         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
559         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
560         complain() with complaint().
561
562 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
563
564         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
565         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
566         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
567         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
568         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
569         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
570         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
571         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
572         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
573         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
574         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
575         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
576         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
577         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
578         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
579         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
580         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
581         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
582         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
583         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
584         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
585         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
586         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
587         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
588         * config/m88k/xm-dgux.h: Delete.
589         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
590         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
591         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
592         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
593         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
594         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
595         * ch-valprint.c: Delete.
596         
597 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
598
599         * infrun.c (handle_inferior_event): Rearrange code to resume if
600         no catchpoint triggers for an event.
601
602 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
603
604         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
605         and TARGET_WAITKIND_VFORKED cases.
606
607 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
608
609         * infrun.c (handle_inferior_event): Assume that catchpoints
610         are not affected by DECR_PC_AFTER_BREAK.
611
612 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
613
614         * target.c (update_current_target): Don't inherit DONT_USE.
615         * target.h (struct target_ops): Remove DONT_USE.
616         (target_next): Remove macro.
617
618 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
619
620         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
621
622 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
623
624         * arm-tdep.c (convert_from_extended): New argument to hold the
625         type of floating point result we want to convert to.  Make input 
626         argument const.  Fix all callers.
627         (convert_to_extended): Similarly.
628         (arm_extract_return_value): Now takes a regcache argument.  Change
629         code to use regcache accessor functions.  Correctly extract 
630         smaller-than-word results on big-endian machines.
631         (arm_store_return_value): Now takes a regcache argument.  Change
632         code to use regcache accessor functions.  Correctly zero/sign extend
633         smaller than word results before storing into r0.
634         (arm_gdbarch_init): Register new-style extract_return_value and
635         store_return_value functions.
636
637 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
638
639         * thread-db.c (thread_from_lwp): Uniquify error msg.
640         (lwp_from_thread): Ditto.
641         (check_event): Ditto.
642         (find_new_threads_callback): Ditto.
643         (thread_db_pid_to_str): Ditto.
644
645 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
646
647         * frame.h (get_frame_saved_regs): Declare.
648         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
649         pointer.
650         * frame.c (get_frame_saved_regs): New function.
651         (frame_saved_regs_zalloc): Return the allocated saved_regs.
652
653 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
654
655         * frame.c (deprecated_update_current_frame_pc_hack): New
656         function.
657         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
658         * infrun.c (normal_stop): Use said function instead of directly
659         modifying the frame's PC.
660         
661 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
662
663         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
664
665 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
666
667         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
668         config/mips/tm-irix6.h (NUM_REGS): Delete.
669         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
670         (temp_saved_regs): Declare as a pointer rather than an array.
671         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
672         that ``temp_saved_regs'' has storage allocated to it and that
673         it's the correct size.
674
675 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
676
677         * defs.h (init_last_source_visited): New prototype.
678         (add_path): Ditto.
679         * source.c (add_path): New function that adds to a specified path.
680         (mod_path): Change to call add_path.
681         (init_last_source_visited): New function to allow interfaces to
682         initialize static variable: last_source_visited.  Part of fix
683         for PR gdb/741.
684         * Makefile.in: Add support for mi/mi-cmd-env.c.
685
686 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
687
688         * frame.h (frame_id_unwind): Declare.
689         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
690         id_unwind_cache.
691         (frame_id_unwind_ftype): Declare.
692         * frame.c (frame_id_unwind): New function.
693         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
694         (create_new_frame, get_prev_frame): Pass id_unwind to
695         set_unwind_by_pc.
696         (frame_saved_regs_id_unwind): New function.
697         (frame_saved_regs_id_unwind): New function.
698         * dummy-frame.c (dummy_frame_id_unwind): New function.
699         (struct dummy_frame): Add field id.
700         (generic_push_dummy_frame): Initialize `id'.
701         * dummy-frame.h (dummy_frame_id_unwind): Declare.
702
703 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
704
705         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
706         pass that to set_momentary_breakpoint.  Move comments to where they
707         belong.
708         * frame.h (set_current_frame): Delete declaration.
709         * frame.c (set_current_frame): Delete function.
710
711 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
712
713         * frame.c (frame_extra_info_zalloc): New function.
714         * frame.h (frame_extra_info_zalloc): Declare.
715
716 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
717
718         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
719         in the previous prototype change to set_momentary_breakpoint.
720
721 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
722
723         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
724         and saw_child_exec.
725         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
726         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
727         (stop_stepping): Remove outdated check for child vfork events.
728
729 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
730
731         * GDB 5.3 released from gdb_5_3-branch.
732
733 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
734
735         * corelow.c (init_core_ops): Delete references to to_require_attach
736         and to_require_detach.
737         * exec.c (init_exec_ops): Likewise.
738         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
739         hppa_require_detach directly.
740         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
741         * inftarg.c (child_detach): Remove.
742         (child_detach_from_process): Rename to child_detach, remove
743         after_fork argument.
744         (child_attach): Remove.
745         (child_attach_to_process): Rename to child_attach, remove after_fork
746         argument.
747         (init_child_ops): Delete references to to_require_attach
748         and to_require_detach.
749         * infttrace.c (hppa_require_attach): Update comment.
750         * target.c (cleanup_target, update_current_target)
751         (init_dummy_target, setup_target_debug): Delete references to
752         to_require_attach and to_require_detach.
753         (find_default_require_detach, find_default_require_attach)
754         (debug_to_require_attach, debug_to_require_detach): Remove
755         functions.
756         * target.h (struct target_ops): Remove to_require_attach
757         and to_require_detach.
758         (target_require_attach, target_require_detach): Delete macros.
759         (find_default_require_detach, find_default_require_attach): Delete
760         prototypes.
761         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
762
763 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
764
765         * frame.c (get_frame_extra_info): New function.
766         * frame.h (get_frame_extra_info): Declare.
767
768 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
769
770         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
771         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
772         with `struct frame_id'.
773         (set_longjmp_resume_breakpoint): Ditto.
774         * infrun.c (handle_inferior_event): Update.
775         * breakpoint.c (watch_command_1, until_break_command): Update.
776         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
777         (handle_inferior_event, step_over_function): Update.
778         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
779         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
780         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
781         * infcmd.c (finish_command, run_stack_dummy): Update.
782
783 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
784
785         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
786         (dwarf2_non_const_array_bound_ignored)
787         (dwarf2_missing_line_number_section)
788         (dwarf2_statement_list_fits_in_line_number_section)
789         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
790         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
791         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
792         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
793         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
794         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
795         (dwarf2_missing_member_fn_type_complaint)
796         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
797         (dwarf2_const_value_length_mismatch)
798         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
799         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
800         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
801         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
802         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
803         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
804         complaints using deprecated struct..
805         (dwarf2_non_const_array_bound_ignored_complaint)
806         (dwarf2_complex_location_expr_complaint)
807         (dwarf2_unsupported_at_frame_base_complaint)
808         (dwarf2_const_value_length_mismatch_complaint)
809         (dwarf2_macros_too_long_complaint)
810         (dwarf2_macro_malformed_definition_complaint)
811         (dwarf2_invalid_attrib_class_complaint): New functions.
812         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
813         (read_structure_scope, read_array_type, read_common_block)
814         (read_tag_pointer_type, read_base_type, read_partial_die)
815         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
816         (new_symbol, dwarf2_const_value, read_type_die)
817         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
818         (parse_macro_definition, dwarf_decode_macros): Replace calls to
819         complain() with, possibly indirect, calls to complaint().
820
821 2002-12-11  Andrew Cagney  <cagney@redhat.com>
822
823         * frame.c (deprecated_get_frame_saved_regs): Rename
824         get_frame_saved_regs.
825         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
826         * sparc-tdep.c: Update.
827         * hppa-tdep.c: Update.
828         * h8500-tdep.c: Update.
829
830 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
831
832         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
833         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
834         ``char *'' for return and parameter types.
835         * gdbarch.h, gdbarch.c: Regenerate.
836         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
837         return type from ``char *'' to ``const char *''.
838         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
839         const.
840
841 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
842
843         * i386-tdep.c: Include "dummy-frame.h".
844         (i386_frame_chain, i386_frame_saved_pc): Replace
845         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
846         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
847
848 2002-12-10  Andrew Cagney  <cagney@redhat.com>
849
850         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
851         Change to a function with predicate.
852         * gdbarch.h, gdbarch.c: Re-generate.
853         * frame.c (get_prev_frame): Update.  Test
854         DEPRECATED_INIT_FRAME_PC_P.
855         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
856         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
857         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
858         * alpha-tdep.c (alpha_gdbarch_init): Update.
859         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
860         * mips-tdep.c (mips_gdbarch_init): Update.
861         * i386-interix-tdep.c (i386_interix_init_abi): Update.
862         * arm-tdep.c: Update comments.
863         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
864         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
865         * frv-tdep.c (frv_gdbarch_init): Ditto.
866         * x86-64-tdep.c (x86_64_init_abi): Ditto.
867         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
868         * s390-tdep.c (s390_gdbarch_init): Ditto.
869         * v850-tdep.c (v850_gdbarch_init): Ditto.
870         * vax-tdep.c (vax_gdbarch_init): Ditto.
871         * sh-tdep.c (sh_gdbarch_init): Ditto.
872         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
873         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
874         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
875         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
876         * i386-tdep.c (i386_gdbarch_init): Ditto.
877         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
878         * cris-tdep.c (cris_gdbarch_init): Ditto.
879         * avr-tdep.c (avr_gdbarch_init): Ditto.
880         * arm-tdep.c (arm_gdbarch_init): Ditto.
881         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
882         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
883
884 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
885
886         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
887         CHILD_FOLLOW_FORK.
888         * hppah-nat.c (saved_vfork_pid): Add.
889         (child_post_follow_vfork): Remove.
890         (child_follow_fork): New function.
891         (child_wait): Call detach_breakpoints after receiving the child vfork.
892         Call child_resume directly instead of going through resume ().
893         Make sure we have the exec before reporting the vfork.
894         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
895         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
896         (follow_fork): New function.  Call target_follow_fork.
897         (follow_inferior_reset_breakpoints): New function broken out from
898         old follow_inferior_fork.
899         (resume): Remove hack to follow exec after vfork.
900         * inftarg.c (child_post_follow_vfork): Remove.
901         (child_follow_fork): New function.
902         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
903         * target.c (cleanup_target): Replace to_post_follow_vfork with
904         to_follow_fork.
905         (update_current_target): Likewise.
906         (setup_target_debug): Likewise.
907         (debug_to_post_follow_vfork): Remove.
908         (debug_to_follow_fork): New function.
909         * target.h (struct target_ops): Replace to_post_folow_vfork with
910         to_follow_fork.
911         (child_post_follow_vfork): Remove prototype.
912         (child_follow_fork): Add prototype.
913         (target_post_follow_vfork): Remove macro.
914         (target_follow_fork): Add macro.
915
916 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
917
918         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
919         (child_post_follow_vfork): Cancel pending exec event if we follow
920         the parent.
921         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
922         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
923         event at the following wait call if necessary.
924         * infrun.c (follow_vfork): Don't follow_exec here.
925         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
926         case about HP/UX 10.20.  Remove code pushed down to
927         hppah-nat.c:child_wait.
928         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
929         vfork_in_flight is set.
930
931 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
932
933         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
934         for the parent's fork event.
935         * infrun.c (handle_inferior_event): Only expect one fork event.
936         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
937         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
938
939 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
940
941         * PROBLEMS: Delete reference to PR gdb/725.
942         
943         * MAINTAINERS (gdb.c++): Add David Carlton.
944
945 2002-12-09  David Carlton  <carlton@math.stanford.edu>
946
947         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
948         * cli/cli-cmds.c: Ditto.
949
950 2002-12-09  Andrew Cagney  <cagney@redhat.com>
951
952         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
953         function address in <>.
954         * gdbarch.c: Re-generate.
955
956 2002-12-09  David Carlton  <carlton@math.stanford.edu>
957
958         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
959
960 2002-12-09  David Carlton  <carlton@math.stanford.edu>
961
962         * linespec.c (symtab_from_filename): New function.
963         (decode_line_1): Move code into symtab_from_filename.
964
965 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
966
967         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
968
969 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
970
971         * f-valprint.c (info_common_command): Use get_frame_pc.
972         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
973         * ax-gdb.c (agent_command): Ditto.
974         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
975         (rs6000_pop_frame): Ditto.
976         (rs6000_frameless_function_invocation): Ditto.
977         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
978         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
979         * macroscope.c (default_macro_scope): Ditto.
980         * stack.c (print_frame_info_base): Ditto.
981         (print_frame, frame_info, print_frame_label_vars): Ditto.
982         (return_command, func_command, get_frame_language): Ditto.
983         * infcmd.c (finish_command): Ditto.
984         * dummy-frame.c (cached_find_dummy_frame): Ditto.
985         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
986         (break_at_finish_at_depth_command_1): Ditto.
987         (break_at_finish_command_1): Ditto.
988         (until_break_command, get_catch_sals): Ditto.
989         * blockframe.c (func_frame_chain_valid): Ditto.
990         (frameless_look_for_prologue): Ditto.
991         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
992
993 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
994
995         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
996         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
997
998 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
999
1000         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1001         to pure functions.
1002         * gdbarch.h, gdbarch.c: Re-generate.
1003         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1004         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1005
1006         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1007         declaration to a function returning a CORE_ADDR.
1008         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1009         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1010         (init_frame_pc_default): Ditto.
1011         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1012         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1013         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1014         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1015         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1016         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1017
1018         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1019         to init_frame_pc_noop.
1020         (i386_interix_init_frame_pc): Delete function.
1021         * z8k-tdep.c (init_frame_pc): Delete function.
1022         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1023         (INIT_FRAME_PC_FIRST): Ditto.
1024         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1025         (INIT_FRAME_PC_FIRST): Ditto.
1026         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1027         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1028         init_frame_pc_noop.
1029         (INIT_FRAME_PC_FIRST): Convert to an expression.
1030         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1031
1032 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1033
1034         * blockframe.c: Use get_frame_base instead of directly accessing
1035         the `struct frame_info' member frame.
1036         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1037         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1038
1039 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1040
1041         * Makefile.in (readline_h): Define.
1042         (completer.o): Depend on readline_h.
1043         (corelow.o): Ditto.
1044         (event-top.o): Ditto.
1045         (exec.o): Ditto.
1046         (solib.o): Ditto.
1047         (source.o): Ditto. 
1048         (symfile.o): Ditto. 
1049         (symmisc.o): Ditto. 
1050         (top.o): Ditto.
1051         (tracepoint.o): Ditto. 
1052         (utils.o): Ditto.
1053         (cli-dump.o): Ditto.
1054         (tui-hooks.o): Ditto. 
1055         (tuiWin.o): Ditto. 
1056
1057 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1058
1059         More cleanup from import of readline 4.3.
1060         * completer.h (complete_line, readline_line_completion_function):
1061         Update prototypes.
1062         (line_completion_function): Removed, not used outside of completer.c.
1063         * completer.c (readline_line_completion_function,
1064         complete_function, line_completion_function): Use const for first
1065         parameter.
1066         (line_completion_function): Make static.
1067         (filename_completer): filename_completion_function is now called
1068         rl_filename_completion_function
1069         * corelow.c: Include <readline/readline.h>.
1070         * exec.c: Ditto.
1071         * solib.c: Ditto.
1072         * source.c: Ditto.
1073         * symfile.c: Ditto.
1074         * symmisc.c: Ditto.
1075         * top.c (init_main): No need to coerce
1076         readline_line_completion_function anymore.
1077         * cli/cli-dump.c: Include <readline/readline.h>.
1078
1079 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1080
1081         * stack.c (frame_info): Use get_prev_frame.
1082         * blockframe.c (frame_address_in_block): Ditto.
1083         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1084         (rs6000_frameless_function_invocation): Ditto.
1085         (rs6000_frame_saved_pc): Ditto.
1086         (rs6000_frame_chain): Ditto.
1087         * arch-utils.c (init_frame_pc_default): Ditto.
1088
1089 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1090
1091         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1092         Delete redundant definition.
1093
1094 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1095
1096         Import of readline 4.3:
1097         * cli/cli-cmds.c: Include readline/tilde.h.
1098         * cli/cli-setshow.c: Ditto.
1099         * defs.h: Don't declare tilde_expand anymore, since readline
1100         exports it.
1101
1102 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1103
1104         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1105         -Werror on this file.
1106
1107 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1108
1109         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1110         the format name.
1111         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1112         * gdbarch.c: Regenerate.
1113         
1114 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1115
1116         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1117         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1118         provide a default value.
1119         * gdbarch.h, gdbarch.c: Regenerate.
1120         * frame.c (get_prev_frame): Update.  Check
1121         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1122         * s390-tdep.c (s390_gdbarch_init): Update.
1123         * mips-tdep.c (mips_gdbarch_init): Update.
1124         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1125         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1126         * alpha-tdep.c (alpha_gdbarch_init): Update.
1127         
1128 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1129
1130         * ia64-linux-nat.c: Include gdb_string.h.
1131         * alpha-nat.c: Ditto.
1132         * ppc-linux-nat.c: Ditto.
1133         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1134         Update dependencies.
1135
1136 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1137
1138         * gdbthread.h: Include "frame.h".
1139         (struct thread_info): Replace step_frame_address with
1140         step_frame_id.
1141         * inferior.h: Include "frame.h".
1142         (step_frame_id): Replace external variable step_frame_address.
1143         * gdbthread.h (save_infrun_state): Replace step_frame_address
1144         parameter with step_frame_id parameter.
1145         (load_infrun_state): Ditto.
1146         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1147         * infcmd.c (step_frame_id, step_1, step_once): Update.
1148         * thread.c (load_infrun_state, save_infrun_state): Update.
1149         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1150         (handle_inferior_event, step_over_function): Update.
1151         (normal_stop, context_switch, restore_inferior_status): Update.
1152         (struct inferior_status): Replace step_frame_address with
1153         step_frame_id.
1154
1155 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1156
1157         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1158         DW_TAG_member as well as a declaration as being a C++ static data
1159         member.
1160         (read_structure_scope): Combine tests for DW_TAG_member and
1161         DW_TAG_variable.
1162
1163 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1164
1165         * linespec.c (decode_compound): New function.
1166         (decode_line_1): Move code into decode_compound.
1167
1168 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1169
1170         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1171         argument.
1172         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1173         the static block.  See PR gdb/804.
1174
1175 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1176
1177         * symtab.c (lookup_symbol_aux_block): New function.
1178         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1179
1180 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1181
1182         * gdbarch.sh: Dump the predicate function and macro values.
1183         (read): Print error on standard error.
1184         * gdbarch.c: Regenerate.
1185         
1186 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1187
1188         * Makefile.in (mips_tdep_h): Define.
1189         (mips-tdep.o): Add mips_tdep_h to dependency list.
1190         * mips-tdep.h: New file.
1191         * mips-tdep.c (mips-tdep.h): Include.
1192         (enum mips_abi): Move to mips-tdep.h.
1193         (mips_abi): New function.
1194
1195 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1196
1197         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1198
1199 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1200
1201         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1202         function.
1203         (lookup_symbol_aux_minsyms): New function.
1204
1205 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1206
1207         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1208
1209 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1210
1211         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1212         which is an obsolete macro name.
1213
1214 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1215
1216         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1217         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1218
1219 2002-12-03  H.J. Lu  (hjl@gnu.org)
1220
1221         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1222         (create_breakpoints): Make sure the addr_string field is not
1223         NULL.
1224
1225 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1226
1227         * sparc-nat.c (fetch_inferior_registers)
1228         (store_inferior_registers): Add comment on problem of LWP vs
1229         threads.
1230         
1231         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1232         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1233         (lin_lwp_store_registers): Remove.
1234         (init_lin_lwp_ops): Use fetch_inferior_registers
1235         and store_inferior_registers directly.
1236         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1237         (store_inferior_registers): Likewise.
1238         Fix PR gdb/725.
1239
1240 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1241
1242         * frame.h (get_frame_id): Convert to a function.
1243         (null_frame_id, frame_id_p): Declare.
1244         (frame_id_eq, frame_id_inner): Declare.
1245         (frame_id_build): New function.
1246         * frame.c (get_frame_id): Update.  Use null_frame_id.
1247         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1248         frame_id_inner.
1249         (null_frame_id, frame_id_p): Define.
1250         (frame_id_eq, frame_id_inner): Define.
1251         (frame_id_build): New function.
1252         * varobj.c (varobj_create): Update.
1253         (varobj_update): Update.
1254         * valops.c (value_assign): Update.
1255         (new_root_variable): Update.
1256         * infrun.c (save_inferior_status): Update.
1257         * breakpoint.c (watch_command_1): Update.
1258
1259 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1260
1261         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1262         (SNAP2): Likewise.
1263
1264 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1265
1266         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1267         patch.
1268
1269         * PROBLEMS: Mention PR gdb/725.
1270
1271 2002-12-03  Andreas Schwab  <schwab@suse.de>
1272
1273         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1274
1275 2002-12-02  Adam Fedor  <fedor@gnu.org>
1276             Klee Dienes  <kdienes@apple.com>
1277
1278         * objc-lang.c (objc_printstr): Add width arg to match
1279         printstr prototype.
1280         (compare_selectors): Add 'const' to arg types.
1281         (compare_classes): Likewise.
1282         (find_imps): Cast msym pointer to avoid compiler warning.
1283         (print_object_command): Validate the address before
1284         passing it to the print routine.
1285         (find_objc_msgcall_submethod): Change function argument to
1286         return an int.
1287         * objc-lang.h: Add 'extern' to all function declarations.
1288         (value_nsstring): Add declaration.
1289
1290 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1291
1292         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1293         Fixes a build failure on HP/UX.
1294
1295         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1296         failure on HP/UX. 
1297         (hpread_has_name): Advance declaration to avoid a compilation warning.
1298         (pst_syms_count): Add missing variable type. By change, the compiler
1299         was defaulting to int, which seems a good choice. Fixes a compilation
1300         warning.
1301         (pst_syms_size): Likewise.
1302  
1303 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1304
1305         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1306         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1307         later to set the proper gdbarch methods depending on the osabi.
1308         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1309
1310 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1311
1312         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1313         * osabi.c (gdb_osabi_name): Add strings images for the two new
1314         enum values.
1315         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1316
1317 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1318
1319         * MAINTAINERS (Java): Global maintainers are responible for Java.
1320         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1321         part Java maintainers.
1322
1323 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1324
1325         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1326         Fixes a compilation failure on AiX.
1327
1328 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1329
1330         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1331         why aix-thread.o is not listed.
1332
1333 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1334
1335         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1336         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1337         * gdbarch.h, gdbarch.c: Re-generate.
1338         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1339         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1340         * config/pa/tm-hppa.h, frame.h: Update.
1341         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1342         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1343         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1344         * cris-tdep.c, alpha-tdep.c: Update.
1345         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1346         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1347         (get_prev_frame): Ditto.
1348
1349 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1350
1351         * exec.c (xfer_memory): Replace boolean with int.
1352         * p-exp.y: Use 0 instead of false.
1353         * corelow.c (gdb_check_format): Change return type to int from
1354         boolean.
1355         * utils.c: Don't include <curses.h> or <term.h> first.
1356
1357 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1358
1359         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1360         (m68hc11_register_byte): Remove.
1361         (m68hc11_gdbarch_init): Don't set the above.
1362
1363 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1364
1365         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1366         by calling get_selected_frame.
1367         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1368         set_current_frame, create_new_frame, select_frame and
1369         get_current_frame.
1370         * remote-e7000.c (e7000_start_remote): Ditto.
1371         * remote-mips.c (common_open): Ditto
1372         * remote-rdp.c (remote_rdp_open): Ditto.
1373
1374 2002-11-29  Andreas Schwab  <schwab@suse.de>
1375
1376         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1377         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1378         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1379         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1380         read_memory_unsigned_integer instead of read_memory_integer when
1381         dealing with addresses and instruction opcodes.
1382         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1383         (m68k_linux_frame_saved_pc): Likewise.
1384
1385 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1386
1387         * stack.c (selected_frame, select_frame): Move from here ...
1388         * frame.c (selected_frame, select_frame): ... to here.  Include
1389         "language.h".
1390         * Makefile.in (frame.o): Update dependencies.
1391         * frame.c (get_selected_frame): New function.
1392         * frame.h (get_selected_frame): Declare.
1393         (deprecated_selected_frame): Rename selected_frame.
1394         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1395         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1396         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1397         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1398         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1399         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1400         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1401         * z8k-tdep.c, cli/cli-cmds.c: Update.
1402         
1403 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1404
1405         * frame.h (get_selected_block): Add comments.
1406
1407 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1408
1409         * frame.c (pc_notcurrent): New function.
1410         (find_frame_sal): New function.
1411         * frame.h (find_frame_sal): Declare.
1412         (struct symtab_and_line): Add opaque declaration.
1413         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1414         find_pc_line.
1415         (frame_info): Ditto.
1416         * ada-lang.c (find_printable_frame): Ditto.
1417
1418 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1419
1420         * configure.in: Check that the pthdebug library is recent enough
1421         before enabling thread support on native AiX.
1422         * configure: Regenerate.
1423
1424         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1425         from the list of object files as it is now appended by configure
1426         if thread support is enabled.
1427         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1428         if thread support is enabled.
1429
1430 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1431
1432         * stack.c (get_selected_block): In-line get_current_block.
1433         * frame.h (get_current_block): Delete declaration.
1434         * blockframe.c (get_current_block): Delete function.
1435
1436 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1437
1438         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1439         USE_GENERIC_DUMMY_FRAMES.
1440         * gdbarch.h, gdbarch.c: Regenerate.
1441         * valops.c, frame.c: Update.
1442         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1443         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1444         * config/pa/tm-hppa.h, blockframe.c: Update.
1445         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1446         * m68k-tdep.c, alpha-tdep.c: Ditto.
1447
1448         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1449         * mips-tdep.c: Ditto.
1450
1451 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1452
1453         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1454         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1455         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1456         * gdbarch.c, gdbarch.h: Re-generate.
1457         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1458         (CALL_DUMMY_LOCATION): Delete macro definition.
1459         (PC_IN_CALL_DUMMY): Delete macro definitions.
1460         
1461         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1462         default is already generic_pc_in_call_dummy.
1463         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1464         * v850-tdep.c (v850_gdbarch_init): Ditto.
1465         * sh-tdep.c (sh_gdbarch_init): Ditto.
1466         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1467         * mips-tdep.c (mips_gdbarch_init): Ditto.
1468         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1469         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1470         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1471         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1472         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1473         * avr-tdep.c (avr_gdbarch_init): Ditto.
1474         
1475         * arm-tdep.c (arm_gdbarch_init): Do not set
1476         use_generic_dummy_frames, default is already 1.
1477         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1478         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1479         * v850-tdep.c (v850_gdbarch_init): Ditto.
1480         * sh-tdep.c (sh_gdbarch_init): Ditto.
1481         * s390-tdep.c (s390_gdbarch_init): Ditto.
1482         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1483         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1484         * mips-tdep.c (mips_gdbarch_init): Ditto.
1485         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1486         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1487         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1488         * i386-tdep.c (i386_gdbarch_init): Ditto.
1489         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1490         * frv-tdep.c (frv_gdbarch_init): Ditto.
1491         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1492         * cris-tdep.c (cris_gdbarch_init): Ditto.
1493         * avr-tdep.c (avr_gdbarch_init): Ditto.
1494
1495         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1496         call_dummy_location, default is already AT_ENTRY_POINT.
1497         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1498         * v850-tdep.c (v850_gdbarch_init): Ditto.
1499         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1500         * sh-tdep.c (sh_gdbarch_init): Ditto.
1501         * s390-tdep.c (s390_gdbarch_init): Ditto.
1502         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1503         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1504         * mips-tdep.c (mips_gdbarch_init): Ditto.
1505         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1506         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1507         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1508         * i386-tdep.c (i386_gdbarch_init): Ditto.
1509         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1510         * frv-tdep.c (frv_gdbarch_init): Ditto.
1511         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1512         * cris-tdep.c (cris_gdbarch_init): Ditto.
1513         * avr-tdep.c (avr_gdbarch_init): Ditto.
1514         * arm-tdep.c (arm_gdbarch_init): Ditto.
1515         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1516
1517 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1518
1519         * frame.h: Update comments on set_current_frame, create_new_frame,
1520         flush_cached_frames, reinit_frame_cache, select_frame and
1521         selected_frame.
1522         
1523 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1524
1525         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1526         deprecated pc_in_call_dummy function.
1527         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1528         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1529         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1530         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1531         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1532
1533 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1534
1535         * Makefile.in: Remove Tix dependencies.
1536         * acinclude.m4: Ditto.
1537         * aclocal.m4: Ditto.
1538         * configure.in: Ditto.
1539         * configure: Regenerated.
1540         
1541 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1542
1543         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1544         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1545         * gdbarch.c: Re-generate.
1546         
1547 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1548
1549         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1550         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1551         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1552         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1553         pc_in_call_dummy_at_entry_point.
1554         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1555         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1556         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1557         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1558         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1559         pc_in_call_dummy_on_stack.
1560         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1561         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1562         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1563         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1564         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1565         
1566 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1567
1568         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1569         pc_in_call_dummy_before_text_end
1570         (deprecated_pc_in_call_dummy_after_text_end): Rename
1571         pc_in_call_dummy_after_text_end.
1572         (deprecated_pc_in_call_dummy_on_stack): Rename
1573         pc_in_call_dummy_on_stack.
1574         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1575         pc_in_call_dummy_at_entry_point.
1576         * m68k-tdep.c (m68k_gdbarch_init): Update.
1577         * s390-tdep.c (s390_gdbarch_init): Update.
1578         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1579         * vax-tdep.c (vax_gdbarch_init): Update.
1580         * sparc-tdep.c (sparc_gdbarch_init): Update.
1581         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1582         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1583         * i386-tdep.c (i386_gdbarch_init): Update.
1584         * frv-tdep.c (frv_gdbarch_init): Update.
1585         * cris-tdep.c (cris_gdbarch_init): Update.
1586         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1587         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1588         (deprecated_pc_in_call_dummy_after_text_end)
1589         (deprecated_pc_in_call_dummy_on_stack)
1590         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1591         * alpha-tdep.c (alpha_gdbarch_init): Update.
1592
1593 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1594
1595         * acconfig.h (HAVE_PREAD64): Add.
1596         * configure.in: Check for pread64.
1597         * config.in: Regenerated.
1598         * configure: Regenerated.
1599         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1600         * linux-proc.c (linux_proc_xfer_memory): New function.
1601         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1602
1603 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1604
1605         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1606         pdi's with no name.
1607
1608 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1609
1610         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1611         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1612
1613 2002-11-25  Jim Blandy  <jimb@redhat.com>
1614
1615         * symfile.c (init_objfile_sect_indices): New function.
1616         (default_symfile_offsets): Move the section-index-initializing
1617         stuff into init_objfile_sect_indices, and call that.
1618
1619         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1620         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1621
1622         * symfile.c (syms_from_objfile): Adjust indentation.
1623
1624         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1625         || info_verbose isn't true.
1626
1627 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1628
1629         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1630         default to get_frame_base.
1631         * gdbarch.h, gdbarch.c: Regenerate.
1632         * arch-utils.c (default_frame_address): Delete function.
1633         * arch-utils.h (default_frame_address): Delete declaration
1634
1635 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1636
1637         * varobj.c (find_frame_addr_in_frame_chain):
1638         Use get_frame_base instead of FRAME_FP,
1639         obvious fix.
1640
1641 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1642
1643         * frame.h (FRAME_FP): Delete macro.
1644         (get_frame_base): New function declaration.
1645         * frame.c (get_frame_base): New function.
1646         (get_frame_id): Use ->frame.
1647         (frame_find_by_id): Rewrite to use get_frame_id.
1648         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1649         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1650         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1651         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1652         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1653         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1654         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1655
1656 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1657
1658         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1659
1660 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1661
1662         * frame.c (set_unwind_by_pc): Revert change below, use
1663         PC_IN_CALL_DUMMY.
1664         (get_prev_frame): Ditto.
1665
1666 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1667
1668         * dummy-frame.c (pc_in_dummy_frame): New function.
1669         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1670         (find_dummy_frame): Update comment.
1671         (generic_pop_current_frame): Use get_frame_type.
1672         * dummy-frame.h (pc_in_dummy_frame): Declare.
1673         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1674         (create_new_frame): Use pc_in_dummy_frame.
1675         (get_prev_frame): Use pc_in_dummy_frame.
1676         (frame_saved_regs_register_unwind): Use get_prev_frame.
1677         (deprecated_generic_get_saved_register): Use get_prev_frame.
1678
1679 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1680
1681         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1682         from here ...
1683         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1684         (varobj_create): Note that frame ID should be used.
1685         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1686
1687 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1688
1689         * breakpoint.c: Include "gdb_assert.h".
1690         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1691         not being used.
1692         * Makefile.in (breakpoint.o): Update dependencies.
1693         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1694         deprecated_frame_in_dummy.
1695         * stack.c (print_frame_info_base): Ditto.
1696         (frame_info): Ditto.
1697         (print_frame_info_base): Ditto.  Delete dead code.
1698         
1699 2002-11-23  Andreas Schwab  <schwab@suse.de>
1700
1701         * Makefile.in (m68k_tdep_h): Define.
1702         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1703         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1704         * m68k-tdep.c: Move register number enum ...
1705         * m68k-tdep.h: ... to this new file and rename the constants from
1706         E_* to M68K_*.  All uses changed.
1707         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1708         * abug-rom.c: Include "m68k-tdep.h".  Use
1709         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1710         * cpu32bug-rom.c: Likewise.
1711         * dbug-rom.c: Likewise.
1712         * m68k-tdep.c: Likewise.
1713         * m68klinux-nat.c: Likewise.
1714         * remote-est.c: Likewise.
1715         * rom68k-rom.c: Likewise.
1716         * config/m68k/tm-linux.h: Likewise.
1717
1718 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1719
1720         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1721         dummy frame initialization code.
1722         * mips-tdep.c (mips_gdbarch_init): Ditto.
1723
1724 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1725
1726         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1727         attach will hang.
1728
1729 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1730
1731         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1732         to default_frame_address.
1733         * gdbarch.h, gdbarch.c: Re-generate.
1734
1735         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1736         or frame_locals_address to default_frame_address.
1737         * m68k-tdep.c (m68k_gdbarch_init): Update.
1738         * i386-tdep.c (i386_gdbarch_init): Update.
1739         * frv-tdep.c (frv_gdbarch_init): Update.
1740         * sh-tdep.c (sh_gdbarch_init): Update.
1741         * v850-tdep.c (v850_gdbarch_init): Update.
1742         * sparc-tdep.c (sparc_gdbarch_init): Update.
1743         * mips-tdep.c (mips_gdbarch_init): Update.
1744         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1745         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1746         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1747
1748         * cris-tdep.c (cris_frame_args_address): Delete function.
1749         (cris_frame_locals_address): Delete function.
1750         (cris_gdbarch_init): Do not set frame_args_address or
1751         frame_locals_address.
1752
1753 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1754
1755         * thread-db.c (thread_db_load): Tell the user what's going on
1756         if dlopen fails on libthread_db.
1757
1758 2002-11-23  Andreas Schwab  <schwab@suse.de>
1759
1760         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1761         invariant return values.
1762
1763 2002-11-22  Andreas Schwab  <schwab@suse.de>
1764
1765         * valops.c (value_slice): Move declaration of `offset' to avoid
1766         warning.
1767
1768 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1769
1770         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1771         (struct so_stuff): Add end_addr field.
1772         (register_loaded_dll): Calculate and store end address of loaded dll.
1773         (solib_address): New function.
1774         (child_solib_loaded_library_pathname): Pass carefully constructed
1775         section info to safe_symbol_file_add rather than ignoring it.
1776         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1777         DLL is loaded.
1778         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1779         (child_create_inferior): Fix a compiler warning.
1780         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1781         (solib_address): Declare new function.
1782
1783 2002-11-22  Andreas Schwab  <schwab@suse.de>
1784
1785         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1786         and FPS registers.
1787
1788 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1789
1790         * maint.c (_initialize_maint_cmds): Fix typo.  From
1791         Francesco Potorti` <pot@gnu.org>.
1792
1793 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1794
1795         * mips-tdep.c (mips_dump_tdep): Delete references to
1796         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1797         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1798         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1799         * printcmd.c (build_address_symbolic): Delete calls to
1800         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1801         (address_info): Ditto.
1802         Fix PR gdb/773.
1803         
1804 2002-11-19  Klee Dienes  <kdienes@apple.com>
1805             Adam Fedor  <fedor@gnu.org>
1806
1807         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1808         the ability to explicitly specify the quote characters and word
1809         break characters; if NULL is specified for either, use the old
1810         behavior of using the characters used by the completer.
1811         (skip_chars): New function.  Convenience wrapper around
1812         skip_quoted_chars to provide the original skip_chars behavior.
1813         * completer.h (skip_quoted_chars): Add prototype.
1814
1815 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1816
1817         Problems reported by Paul Eggert.
1818         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1819
1820 2002-11-19  Andreas Schwab  <schwab@suse.de>
1821
1822         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1823         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1824         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1825         (m68k_linux_frame_saved_pc): Move to ...
1826         * m68klinux-tdep.c: ... here.  New file.
1827         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1828         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1829
1830 2002-11-19  Adam Fedor  <fedor@gnu.org>
1831
1832         * objc-exp.y: Revert to old skip_quoted usage.
1833
1834 2002-11-19  Adam Fedor  <fedor@gnu.org>
1835
1836         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1837         (objc_lang_h): Define.
1838         (YYFILES): Add objc-exp.tab.c.
1839         (local-maintainer-clean): Remove objc-exp.tab.c.
1840         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1841         
1842 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1843
1844         * p-exp.y (typecast rule): Add automatic dereference of
1845         pascal classes if needed.
1846         (THIS): Set current_type.
1847         Automatically dereference pascal classes. 
1848         (typebase rule): Add ^typebase recognition.
1849
1850 2002-11-18  Adam Fedor  <fedor@gnu.org>
1851
1852         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1853         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1854         (op_name): Handle OP_OBJC_SELF.
1855         * Makefile.in (expprint.o): Add additional depends.
1856
1857 2002-11-18  Adam Fedor  <fedor@gnu.org>
1858
1859         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1860         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1861         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1862         * objc-exp.y: Likewise. 
1863
1864 2002-11-18  Adam Fedor  <fedor@gnu.org>
1865
1866         * gdb/parser-defs.h: (struct objc_class_str): New structure
1867         for parsing ObjC classes.
1868
1869 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1870
1871         * stack.c (frame_relative_level): Copy function from here ...
1872         * frame.c (frame_relative_level): ...to here.
1873
1874 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1875
1876         * frame.h (enum frame_type): Define.
1877         (get_frame_type): Declare.
1878         (struct frame_info): Add field `type'.  Delete field
1879         signal_handler_caller.
1880         (deprecated_set_frame_signal_handler_caller): Declare.
1881         * frame.c (get_frame_type): New function.
1882         (deprecated_set_frame_type): New function.
1883         (create_new_frame): Set the frame's type.
1884         (get_prev_frame): Similar.
1885         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1886         * s390-tdep.c: Ditto.
1887         * m68klinux-nat.c: Ditto.
1888         * ns32k-tdep.c: Ditto.
1889         * x86-64-linux-tdep.c: Ditto.
1890         * vax-tdep.c: Ditto.
1891         * rs6000-tdep.c: Ditto.
1892         * ppc-linux-tdep.c: Ditto.
1893         * i386-interix-tdep.c: Ditto.
1894         * mips-tdep.c: Ditto.
1895         * m68k-tdep.c: Ditto.
1896         * hppa-tdep.c: Ditto.
1897         * ia64-tdep.c: Ditto.
1898         * cris-tdep.c: Ditto.
1899         * arm-tdep.c: Ditto.
1900         * alpha-tdep.c: Ditto.
1901         * i386-tdep.c: Ditto.
1902         * stack.c: Ditto.
1903         * ada-lang.c: Ditto.
1904         * blockframe.c: Update.
1905         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1906         deprecated_set_frame_type instead of signal_handler_caller.
1907         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1908         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1909         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1910
1911 2002-11-18   Klee Dienes  <kdienes@apple.com>
1912
1913         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1914
1915 2002-11-18  Klee Dienes  <kdienes@apple.com>
1916
1917         * buildsym.c (pop_context): Add comment.
1918         
1919 2002-11-18  Klee Dienes  <kdienes@apple.com>
1920
1921         * buildsym.h (pop_context): Convert to function, defined in
1922         buildsym.c.
1923         * buildsym.c: Include gdb_assert.h.
1924         (pop_context): Implement as C function.  Add check for stack
1925         underflow.
1926         * dbxread.c (process_one_symbol): Complain and stop processing
1927         that symbol if we are already at the top of the context stack for
1928         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
1929         when processing N_RBRAC.
1930
1931 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1932
1933         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1934         define.
1935         (struct target_waitstatus): Add opaque definition.
1936         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1937         * exec.c (init_exec_ops): Likewise.
1938         * fork-child.c (clone_and_follow_inferior): Remove.
1939         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1940         * inferior.h (clone_and_follow_inferior): Remove prototype.
1941         * infrun.c (follow_fork_mode_both): Remove.
1942         (follow_fork_mode_kind_names): Remove commented out "both".
1943         (follow_inferior_fork): Remove follow_fork_mode_both support.
1944         * inftarg.c (child_clone_and_follow_inferior): Remove.
1945         (child_post_follow_inferior_by_clone): Remove.
1946         (init_child_ops): Don't set to_clone_and_follow_inferior
1947         or to_post_follow_inferior_by_clone.
1948         * target.c (default_clone_and_follow_inferior): Remove.
1949         (cleanup_target): Don't set to_clone_and_follow_inferior
1950         or to_post_follow_inferior_by_clone.
1951         (find_default_clone_and_follow_inferior): Remove.
1952         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1953         (debug_to_clone_and_follow_inferior): Remove.
1954         (debug_to_post_follow_inferior_by_clone): Remove.
1955         (setup_target_debug): Don't set to_clone_and_follow_inferior
1956         or to_post_follow_inferior_by_clone.
1957         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1958         and to_post_follow_inferior_by_clone.
1959         (child_clone_and_follow_inferior): Remove prototype.
1960         (child_post_follow_inferior_by_clone): Remove prototype.
1961         (target_clone_and_follow_inferior): Remove macro.
1962         (target_post_follow_inferior_by_clone): Remove macro.
1963         (find_default_clone_and_follow_inferior): Remove prototype.
1964
1965 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
1966
1967         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1968         inferior_has_vforked, and inferior_has_execd instead of
1969         target_has_forked, target_has_vforked, and target_has_execd.
1970         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1971         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1972         (CHILD_WAIT): Define.
1973         (child_wait): Add prototype.
1974         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1975         Add prototype.
1976         (hpux_has_vforked): Likewise, from child_has_vforked.
1977         (hpux_has_execd): Likewise, from child_has_execd.
1978         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1979         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1980         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1981         and hpux_has_syscall_event instead of the target hooks.
1982         * infrun.c (inferior_has_forked, inferior_has_vforked)
1983         (inferior_has_execd): New functions.
1984         * inftarg.c (not_same_real_pid): Remove.
1985         (child_wait): Remove references to not_same_real_pid,
1986         target_has_forked, target_has_vforked, target_has_execd,
1987         and target_has_syscall_event.
1988         (child_has_forked, child_has_vforked, child_has_execd)
1989         (child_has_syscall_event): Remove.
1990         (init_child_ops): Remove references to child_has_forked,
1991         child_has_vforked, child_has_execd, and child_has_syscall_event.
1992         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1993         (hpux_has_vforked): Likewise, from child_has_vforked.
1994         (hpux_has_execd): Likewise, from child_has_execd.
1995         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1996         * target.c (cleanup_target): Remove references to
1997         to_has_forked, to_has_vforked, to_has_execd, and
1998         to_has_syscall_event.
1999         (update_current_target): Likewise.
2000         (setup_target_debug): Likewise.
2001         (debug_to_has_forked): Remove.
2002         (debug_to_has_vforked): Remove.
2003         (debug_to_has_execd): Remove.
2004         (debug_to_has_syscall_event): Remove.
2005         * target.h (struct target_ops): Remove to_has_forked.
2006         to_has_vforked, to_has_execd, and to_has_syscall_event.
2007         (child_has_forked, child_has_vforked, child_has_execd)
2008         (child_has_syscall_event): Remove prototypes.
2009         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2010         prototypes.
2011         (target_has_forked, target_has_vforked, target_has_execd)
2012         (target_has_syscall_event): Remove macros.
2013
2014 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2015
2016         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2017         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2018         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2019         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2020         * target.c (cleanup_target): Remove reference to
2021         to_can_follow_vfork_prior_to_exec.
2022         (update_current_target): Likewise.
2023         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2024         (setup_target_debug): Remove reference to
2025         to_can_follow_vfork_prior_to_exec.
2026         * target.h (struct target_ops): Remove
2027         to_can_follow_vfork_prior_to_exec.
2028         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2029         (target_can_follow_vfork_prior_to_exec): Remove definition.
2030         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2031         define.
2032         * infrun.c (follow_vfork_when_exec): Remove.
2033         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2034         (follow_exec): Likewise.
2035         (handle_inferior_event): Likewise.
2036         (keep_going): Likewise.
2037
2038 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2039
2040         * frame.c (generic_unwind_get_saved_register): Make static.
2041         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2042         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2043         defaults to generic_unwind_get_saved_register.
2044         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2045         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2046         * frv-tdep.c (frv_gdbarch_init): Ditto.
2047         * i386-tdep.c (i386_gdbarch_init): Ditto.
2048         * s390-tdep.c (s390_gdbarch_init): Ditto.
2049         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2050         * v850-tdep.c (v850_gdbarch_init): Ditto.
2051         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2052         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2053         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2054
2055 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2056
2057         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2058         i386-tdep.c.
2059
2060 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2061
2062         * frame.h (sigtramp_saved_pc): Delete declaration.
2063         * blockframe.c (sigtramp_saved_pc): Delete function.
2064         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2065         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2066         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2067         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2068
2069 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2070
2071         * frame.c (frame_pc_unwind): New function.
2072         (frame_saved_regs_pc_unwind): New function.
2073         (frame_register_unwind): Pass unwind_cache instead of
2074         register_unwind_cache.
2075         (set_unwind_by_pc): Add unwind_pc parameter, set.
2076         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2077         (get_prev_frame): Ditto.
2078         * frame.h (frame_pc_unwind_ftype): Declare.
2079         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2080         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2081         (frame_pc_unwind): Declare.
2082         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2083         (struct dummy_frame): Add comment mentioning that values are for
2084         previous frame.
2085         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2086         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2087         (generic_file_frame_chain_valid): Ditto.
2088         * stack.c (frame_info): Ditto.
2089
2090 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2091
2092         * linespec.c (locate_first_half): New function.
2093         (decode_line_1): Move code into locate_first_half.
2094
2095 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2096
2097         * complaints.h: Add comment explaining how to eliminate a
2098         deprecated_complain call.
2099         * complaints.h: Fix spelling errors.
2100
2101 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2102
2103         * printcmd.c: Remove #include "disasm.h".
2104
2105 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2106
2107         * frame.h: Move the most relevant interface functions to the start
2108         of the file.
2109
2110 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2111
2112         * regcache.h (deprecated_registers): Rename registers.
2113         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2114         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2115         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2116         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2117         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2118         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2119         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2120         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2121         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2122         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2123         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2124         * v850ice.c: Update.
2125
2126 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2127
2128         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2129         NULL buffer.
2130
2131 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2132
2133         * regcache.h (deprecated_read_register_bytes): Rename
2134         read_register_bytes.
2135         (deprecated_write_register_bytes): Rename write_register_bytes.
2136         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2137         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2138         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2139         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2140         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2141         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2142         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2143         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2144         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2145         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2146         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2147         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2148         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2149         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2150
2151 2002-11-13  Jim Blandy  <jimb@redhat.com>
2152
2153         * findvar.c (read_var_value): Doc fix.
2154
2155 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2156
2157         * regcache.c (struct regcache): Replace passthough_p with
2158         readonly_p.
2159         (regcache_xmalloc): Initialize readonly_p.
2160         (build_regcache): Initialize readonly_p.
2161         (regcache_save): New function.
2162         (regcache_restore): New function.
2163         (regcache_cpy): Re-implement using regcache_save and
2164         regcache_restore.
2165         (regcache_raw_read): Update.
2166         (regcache_cooked_read): When a read-only cache, checked for cached
2167         pseudo register values.
2168         (regcache_raw_write): Assert that the cache is not read-only.
2169         Remove code handling a non-passthrough cache.
2170         * regcache.h (regcache_save): Declare.
2171         (regcache_restore): Declare.
2172
2173 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2174
2175         * regcache.c (struct regcache_descr): Add fields
2176         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2177         (init_legacy_regcache_descr): Compute the size of a cooked
2178         register cache and then assign that to sizeof_raw_registers.  Set
2179         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2180         (init_legacy_regcache_descr): Ditto.
2181
2182 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2183
2184         * regcache.c (register_buffer): Move to near start of file, update
2185         description.
2186         (regcache_raw_read): Use.
2187         (regcache_raw_write): Use.
2188         (struct regcache): Rename raw_registers to registers and
2189         raw_register_valid_p to register_valid_p.
2190         (regcache_xmalloc): Update.
2191         (regcache_xfree): Update.
2192         (register_buffer): Update.
2193         (regcache_cpy): Update.
2194         (regcache_cpy_no_passthrough): Update.
2195         (regcache_valid_p): Update.
2196         (deprecated_grub_regcache_for_registers): Update.
2197         (deprecated_grub_regcache_for_register_valid): Update.
2198         (set_register_cached): Update.
2199         (regcache_raw_write): Update.
2200
2201 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2202
2203         * p-exp.y (name_not_typename): Use copy_name to
2204         set current_type variable for fields of THIS.
2205
2206 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2207
2208         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2209         * monitor.c (init_base_monitor_ops): Likewise.
2210         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2211         * remote-array.c (init_array_ops): Likewise.
2212         * remote-e7000.c (init_e7000_ops): Likewise.
2213         * remote-es.c (init_es1800_ops): Likewise.
2214         (init_es1800_child_ops): Likewise.
2215         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2216         * remote-sim.c (init_gdbsim_ops): Likewise.
2217         * remote-st.c (init_st2000_ops): Likewise.
2218         * sol-thread.c (init_sol_core_ops): Likewise.
2219         (init_sol_thread_ops): Likewise.
2220         * v850ice.c (init_850ice_ops): Likewise.
2221         * win32-nat.c (init_child_ops): Likewise.
2222         * wince.c (init_child_ops): Likewise.
2223
2224 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2225
2226         * utils.c (gdb_realpath): Make rp a constant pointer.
2227
2228 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2229
2230         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2231         a constant buffer; cannonicalize_file_name(); realpath() with a
2232         pathconf() defined buffer, xstrdup().
2233
2234 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2235
2236         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2237         to hang2.C; hang3.c to hang3.C.
2238
2239 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2240
2241         * findvar.c (read_var_value): Reenable TLS code.
2242
2243 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2244             Jim Blandy  <jimb@redhat.com>
2245         
2246         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2247         * target.c (update_current_target): Add
2248         to_get_thread_local_address.
2249         * target.h (to_get_thread_local_address): Export.
2250         (target_get_thread_local_address): Define.
2251         (target_get_thread_local_address_p): Define.
2252         * thread-db.c: Include solib-svr4.h.
2253         (td_thr_tls_get_addr_p): Define.
2254         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2255         (thread_db_get_thread_local_address): New function.
2256         (init_thread_db_ops): Initialize to_get_thread_local_address.
2257         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2258         * configure: Regenerate.
2259         * config.in: Regenerate.
2260
2261 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2262
2263         * linespec.c (set_flags): New function.
2264         (decode_line_1): Move code into set_flags.
2265
2266 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2267
2268         * linespec.c (decode_line_1): Move chunks of code to separate
2269         functions.
2270         (initialize_defaults): New function.
2271         (decode_indirect): New function.
2272
2273 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2274
2275         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2276         instead of void_code_ptr.
2277         (sigtramp_saved_pc): Ditto.
2278
2279         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2280         i386_fp_regnum_p.
2281
2282 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2283
2284         * gdbtypes.h (struct main_type): Move artificial flag out of
2285         loc.  New member of ``struct field'' named static_kind.  Reduce
2286         overloaded meaning of bitsize.
2287         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2288         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2289         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2290
2291         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2292         new fields.
2293         (template_to_fixed_record_type, template_to_static_fixed_type)
2294         (to_record_with_fixed_variant_part): Likewise.
2295         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2296         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2297         * dwarfread.c (struct_type, enum_type): Likewise.
2298         * hpread.c (hpread_read_enum_type)
2299         (hpread_read_function_type, hpread_read_doc_function_type)
2300         (hpread_read_struct_type): Likewise.
2301         * mdebugread.c (parse_symbol): Likewise.
2302
2303 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2304
2305         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2306         * stack.c (print_frame_info_base): Update.
2307         (print_frame_info_base, frame_info): Update.
2308         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2309         (sparc_frame_saved_pc): Update.
2310         * ada-lang.c (find_printable_frame): Update.
2311         * breakpoint.c (deprecated_frame_in_dummy): Update.
2312         
2313 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2314
2315         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2316         defined.
2317         (regmap): Extend to cover all registers.
2318         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2319         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2320         definitions.
2321         (fetch_register, sore_register): Simplify.
2322         (old_fetch_inferior_registers, old_store_inferior_registers):
2323         Remove functions.
2324         (cannot_fetch_register, cannot_store_register): Change
2325         implementation to use regmap array to decide which registers
2326         cannot be fetched/stored.  This removes $orig_eax from the
2327         registers that cannot be fetched/stored.
2328         (fetch_inferior_registers): Call fetch_register directly instead
2329         of calling old_fetch_inferior_registers.
2330         (store_inferior_registers): Call store_register directly instead
2331         of calling old_store_inferior_registers.
2332         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2333         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2334         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2335
2336 2002-11-09  Klee Dienes  <kdienes@apple.com>
2337
2338         * i387-tdep.c (i387_supply_register): When called with NULL as a
2339         buffer, mark the register as not provided (to mirror the behavior
2340         of supply_register).
2341         (i387_supply_fxsave): Ditto.
2342         (i387_supply_fsave): Ditto (inherits the behavior from
2343         i387_supply_register).
2344
2345 2002-11-09  Klee Dienes  <kdienes@apple.com>
2346
2347         * blockframe.c (sigtramp_saved_pc): Use
2348         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2349         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2350         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2351         
2352 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2353
2354         * frame.c (get_prev_frame): Test prev_p to identify a previously
2355         unwound frame.  Initialize prev_p.
2356         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2357         comment.
2358
2359 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2360
2361         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2362         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2363         more comments.  Zap dead code.
2364
2365 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2366
2367         * infcmd.c (print_vector_info, print_float_info): Move code that
2368         checks whether the target has any registers and whether there is a
2369         selected frame up, such that it is also used if a target provides
2370         multi-arch definitions of these functions.
2371
2372 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2373
2374         * Makefile.in (DESTDIR): Define.
2375         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2376         prefix.
2377
2378         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2379         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2380
2381 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2382
2383         * i386-linux-tdep.c: Include "reggroups.h".
2384         (i386_linux_register_reggroup_p): New function.
2385         (i386_linux_init_abi): Set register_reggroup_p to
2386         i386_linux_register_reggroup_p.
2387         * i386-tdep.h (i386_register_reggroup_p): Declare.
2388         * i386-tdep.c: Include "reggroups.h".
2389         (i386_init_reggroups): New function.
2390         (i386_add_reggroups): New function.
2391         (i386_register_reggroup_p): New function.
2392         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2393         (_initialize_i386_tdep): Call i386_init_reggroups.
2394         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2395         specific reggroups.
2396
2397 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2398
2399         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2400         request that's available in *BSD.
2401
2402         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2403
2404         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2405         FDOFF_REGNUM.
2406
2407 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2408
2409         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2410         * dummy-frame.c (find_dummy_frame): Rename
2411         generic_find_dummy_frame, make static.  Return the dummy frame
2412         instead of the regcache.
2413         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2414         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2415         (dummy_frame_register_unwind): Rename
2416         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2417         * dummy-frame.h (dummy_frame_register_unwind): Rename
2418         generic_call_dummy_register_unwind.
2419
2420 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2421
2422         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2423         except the inclusion of "i386/tm-i386.h", to...
2424         * config/i386/nm-i386v42mp.h: ...here.
2425         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2426
2427 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2428
2429         * Makefile.in (frame.o): Update dependencies.
2430         * blockframe.c (current_frame, frame_obstack_alloc)
2431         (frame_saved_regs_zalloc, get_current_frame)
2432         (set_current_frame, create_new_frame)
2433         (set_unwind_by_pc, get_next_frame)
2434         (flush_cached_frames, reinit_frame_cache)
2435         (frame_saved_regs_register_unwind)
2436         (deprecated_generic_get_saved_register)
2437         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2438         (_initialize_blockframe): Move frame code from here...
2439         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2440         "annotate.h" and "dummy-frame.h".
2441         (_initialize_frame): New function.
2442
2443 2002-11-08  Jim Blandy  <jimb@redhat.com>
2444
2445         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2446         when we finish a function a context.
2447         * buildsym.h (outermost_context_p): New macro.
2448         (Bug analyzed by David Edelsohn.)
2449
2450 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2451
2452         * blockframe.c: Include "dummy-frame.h".
2453         (struct dummy_frame, dummy_frame_stack)
2454         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2455         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2456         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2457         (generic_save_call_dummy_addr, generic_pop_current_frame)
2458         (generic_pop_dummy_frame, generic_fix_call_dummy)
2459         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2460         dummy frame code from here...
2461         * dummy-frame.c: ...to here.  New file.
2462         * dummy-frame.h: New file.
2463         (generic_call_dummy_register_unwind): Declare.
2464         (generic_find_dummy_frame): Declare.
2465         * Makefile.in (SFILES): Add dummy-frame.c.
2466         (dummy-frame.o): Specify dependencies.
2467         (dummy_frame_h): Define.
2468         (COMMON_OBS): Add dummy-frame.o.
2469         (blockframe.o): Update dependencies.
2470
2471 2002-11-08  Jim Blandy  <jimb@redhat.com>
2472
2473         * dwarf2read.c (read_func_scope): Restore local_symbols and
2474         param_symbols after we finish the function context.  (Based on a
2475         patch from David Edelsohn.)
2476
2477 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2478
2479         * linespec.c (symbol_found): New function.
2480         (minsym_found): New function.
2481         (decode_line_1): Separate out some code into separate functions.
2482
2483 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2484
2485         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2486         the benefit of the interix target.
2487         * i386-tdep.h (i386_frameless_signal_p): Declare.
2488
2489 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2490
2491         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2492         declaration that snuck in from change below.
2493
2494 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2495
2496         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2497         all callers.
2498         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2499         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2500         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2501         (i386_mxcsr_regnum_p): new function.  Use instead of
2502         MXCSR_REGNUM_P.
2503         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2504         (i386_sse_regnum_p): Declare.
2505         (i386_mxcsr_regnum_p): Declare.
2506         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2507         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2508         (IS_FP_REGNUM): Update definition.
2509         (IS_FPU_CTRL_REGNUM): Update definition..
2510         (IS_SSE_REGNUM): Update definition..
2511         * i386v-nat.c (register_u_addr): Update.
2512         * go32-nat.c (fetch_register): Update.
2513         (store_register): Update.
2514
2515 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2516
2517         Preparation work to convert the hppa targets to multiarch partial.
2518
2519         * hppa-tdep.c: Add new functions replacing macro bodies from
2520         config/pa/tm-hppa.h. These function will be used to initialize
2521         the gdbarch structure. Import some comments from tm-hppa.h,
2522         and place them where appropriate, to avoid loosing them when
2523         we cleanup this file.
2524         (hppa_reg_struct_has_addr): New function.
2525         (hppa_inner_than): New function.
2526         (hppa_stack_align): New function.
2527         (hppa_pc_requires_run_before_use): New function.
2528         (hppa_instruction_nullified): New function.
2529         (hppa_register_byte): New function.
2530         (hppa_register_virtual_type): New function.
2531         (hppa_store_struct_return): New function.
2532         (hppa_cannot_store_register): New function.
2533         (hppa_frame_args_address): New function.
2534         (hppa_frame_locals_address): New function.
2535         (hppa_smash_text_address): New function.
2536         (hppa_coerce_float_to_double): New function. Requires the inclusion
2537         of "language.h".
2538
2539         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2540
2541         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2542         gdbarch-eligible macro to a call to the new associated function
2543         created in hppa-tdep.c.
2544         (INNER_THAN): Likewise.
2545         (STACK_ALIGN): Likewise.
2546         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2547         (INSTRUCTION_NULLIFIED): Likewise.
2548         (REGISTER_BYTE): Likewise.
2549         (REGISTER_VIRTUAL_TYPE): Likewise.
2550         (STORE_STRUCT_RETURN): Likewise.
2551         (CANNOT_STORE_REGISTER): Likewise.
2552         (FRAME_ARGS_ADDRESS): Likewise.
2553         (FRAME_LOCALS_ADDRESS): Likewise.
2554         (SMASH_TEXT_ADDRESS): Likewise.
2555         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2556         (ABOUT_TO_RETURN): Delete, as no longer used.
2557
2558 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2559
2560         * printcmd.c (disassemble_command): Remove obsolete function.
2561         (_initialize_printcmd): Do not create disassemble command here.
2562         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2563         disassemble command.
2564         (init_cli_cmds): Create disassemble command here instead.
2565
2566 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2567
2568         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2569
2570 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2571
2572         * regcache.h (regcache_cooked_read_using_offset_hack)
2573         (regcache_cooked_write_using_offset_hack): Delete declarations.
2574         (register_changed): Delete declaration.
2575         * regcache.c (regcache_cooked_read_using_offset_hack)
2576         (regcache_cooked_write_using_offset_hack): Delete functions.
2577         (cooked_xfer_using_offset_hack): Delete function.
2578         (register_changed): Delete function.
2579
2580 2002-11-07  Jim Blandy  <jimb@redhat.com>
2581
2582         * macroscope.c: #include "complaints.h".
2583         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2584         but not in the macro table.
2585         * Makefile.in (macroscope.o): Record dependency.
2586
2587 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2588
2589         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2590
2591 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2592
2593         * regcache.c (deprecated_registers_fetched): Update.
2594         * regcache.h (deprecated_registers_fetched): Rename
2595         registers_fetched.
2596         * remote-vxsparc.c (vx_read_register): Update.
2597         * remote-vxmips.c (vx_read_register): Update.
2598         * remote-vx68.c (vx_read_register): Update.
2599         * irix5-nat.c (fetch_core_registers): Update.
2600         * mipsm3-nat.c (fetch_inferior_registers): Update.
2601         * sun3-nat.c (fetch_inferior_registers): Update.
2602         * symm-nat.c (fetch_inferior_registers): Update.
2603         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2604         (fetch_core_registers): Update.
2605         (fetch_kcore_registers): Update.
2606         * mips-nat.c (fetch_inferior_registers): Update.
2607         * corelow.c (get_core_registers): Update.
2608         * a68v-nat.c (fetch_inferior_registers): Update.
2609
2610 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2611
2612         Put in place the framework necessary for multiarching the hppa targets.
2613         * hppa-tdep.c (hppa_gdbarch_init): New function.
2614         (hppa_dump_tdep): New function.
2615         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2616         tdep structure dumper.
2617         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2618         until the multi-arching conversion has partially been completed.
2619
2620 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2621
2622         * valops.c (value_assign): Merge lval_register case into
2623         lval_reg_frame_relative.  Use frame_register and
2624         regcache_cooked_write instead of get_saved_register and
2625         write_register_bytes.  After flushing the register cache, try to
2626         re-select the selected frame.
2627
2628 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2629
2630         * regcache.h (deprecated_register_valid): Rename register_valid.
2631         * regcache.c: Update.
2632         * ia64-aix-nat.c: Update.
2633         * i386gnu-nat.c: Update.
2634         * alpha-nat.c: Update.
2635         * sparc-nat.c: Update.
2636         * lynx-nat.c: Update.
2637         * remote-mips.c: Update.
2638
2639 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2640
2641         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2642         to end of file, to be more consistent with the pratice followed
2643         by other targets.
2644
2645 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2646
2647         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2648         (print_float_info): Print registers in float_reggroup.
2649         (print_vector_info): Print registers in vector_reggroup.
2650         (default_print_registers_info): When all, print registers in
2651         all_reggroup.  Otherwize, print registers in general_reggroup.
2652         (registers_info): Rewrite.  Add support for register groups.
2653         Eliminate a goto.
2654
2655 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2656
2657         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2658         ages.
2659         (symtab_symbol_info): Remove eons old ifdeffed out code.
2660         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2661         command.
2662
2663 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2664
2665         * c-exp.y: Add missing semi-colons.
2666         * f-exp.y: Add missing semi-colons.
2667         * m2-exp.y: Add missing semi-colons.
2668         * p-exp.y: Add missing semi-colons.
2669         Add empty action to start rule to avoid a type clash error when
2670         building with bison >= 1.50.
2671
2672 2002-11-06  Jim Blandy  <jimb@redhat.com>
2673
2674         * macrotab.h (struct macro_source_file): Doc fix.
2675
2676 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2677
2678         * varobj.c (child_exists, cplus_number_of_children): Change
2679         STREQ macro references to strcmp.
2680         (cplus_name_of_child): Change code to handle the fact that
2681         fields are not necessarily contiguous with regards to their 
2682         access control. This is a fix for PR gdb/792.
2683
2684 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2685
2686         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2687         * gdbarch.h, gdbarch.c: Regnerate.
2688         * frame.h (frame_register): Declare.
2689         * frame.c (frame_register): New function.
2690         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2691         GET_SAVED_REGISTER, otherwize call
2692         generic_unwind_get_saved_register.
2693         (frame_register_read): Use frame_register instead of
2694         get_saved_register.
2695
2696 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2697         
2698         From Jim Ingham  <jingham@apple.com>:
2699         * event-top.c (gdb_disable_readline): New function.
2700         (_initialize_event_loop): Move comment.
2701
2702 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2703
2704         * event-loop.c (start_event_loop): Add comment.
2705         Update copyright.
2706
2707 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2708
2709         * infcmd.c (default_print_registers_info): Do not call
2710         PRINT_REGISTER_HOOK.
2711
2712 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2713
2714         * sparc-tdep.c (sparc_print_register_hook): Make static.
2715         (sparc_print_registers_info): New function.
2716         (sparc_do_registers_info): New function.
2717         (sparclet_print_registers_info): New function.
2718         (sparclet_do_registers_info): New function.
2719         (do_sparc_print_registers_info): New function.
2720         (sparc_print_registers): New static function, clone of infcmd.c's
2721         default_print_registers_info.
2722         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2723         (sparclet_do_registers_info): Declare.
2724         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2725         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2726         Re-define.
2727         (sparc_do_registers_info): Declare.
2728         (PRINT_REGISTER_HOOK): Delete macro.
2729         (sparc_print_register_hook): Delete declaration.
2730
2731 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2732
2733         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2734         functions.
2735         (lookup_symbol_aux_local): New function.
2736         (lookup_symbol_aux_symtabs): New function.
2737         (lookup_symbol_aux_psymtabs): New function.
2738
2739 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2740
2741         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2742         previous values of 'objfile' and 'block'.
2743
2744 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2745
2746         * values.c (value_change_enclosing_type): Set 
2747         enclosing_type field correctly also for the case where 
2748         more memory needs to be allocated.
2749
2750 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2751
2752         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2753         of puts_filtered.
2754
2755         * i387-tdep.c (i387_print_float_info): Replace calls to
2756         register_read and deprecated_read_register_gen with calls to
2757         frame_register_read, and make the necessary adjustments to the
2758         surrounding code.
2759
2760 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2761
2762         * gdbarch.sh (register_reggroup_p): Allow default value.
2763         * gdbarch.h, gdbarch.c: Regenerate.
2764
2765 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2766
2767         * regcache.h: Add coment indicating replacements for deprecated
2768         functions.
2769
2770 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2771
2772         * reggroups.h, reggroups.c: New files.
2773         * regcache.c: Include "reggroups.h".
2774         (enum regcache_dump_what): Add `regcache_dump_groups'.
2775         (regcache_dump): Contract size of the "Type" column.  When
2776         specified, dump the register's groups.
2777         (maintenance_print_register_groups): New function.
2778         (_initialize_regcache): Add command `maint print register-groups'.
2779         * Makefile.in (COMMON_OBS): Add reggroups.o
2780         (SFILES): Add reggroups.c.
2781         (reggroups_h): Define.
2782         (regcache.o, gdbarch.o): Update dependencies.
2783         (reggroups.o): Specify dependencies.
2784         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2785         Add opaque declaration for `struct reggroup' in generated .h file.
2786         Include "reggroups.h" in generated .c file.
2787         gdbarch.h, gdbarch.c: Re-generate.
2788
2789 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2790
2791         * regcache.h (deprecated_read_register_gen): Rename
2792         read_register_gen.
2793         (deprecated_write_register_gen): Rename write_register_gen.
2794         * i387-tdep.c: Update.
2795         * x86-64-linux-nat.c: Update
2796         * wince.c: Update.
2797         * thread-db.c: Update.
2798         * win32-nat.c: Update.
2799         * mips-tdep.c: Update.
2800         * d10v-tdep.c: Update.
2801         * cris-tdep.c: Update.
2802         * remote-sim.c: Update.
2803         * remote-rdi.c: Update.
2804         * remote-rdp.c: Update.
2805         * frame.c: Update.
2806         * target.c: Update.
2807         * blockframe.c: Update.
2808         * x86-64-tdep.c: Update.
2809         * xstormy16-tdep.c: Update.
2810         * sh-tdep.c: Update.
2811         * s390-tdep.c: Update.
2812         * rs6000-tdep.c: Update.
2813         * sparc-tdep.c: Update.
2814         * i386-tdep.c: Update.
2815         * dwarf2cfi.c: Update.
2816         * regcache.c: Update.
2817
2818 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2819
2820         New interix-specific files:
2821         * config/i386/nm-interix.h: New file.
2822         * config/i386/interix.mh: New file.
2823         * config/i386/interix.mt: New file.
2824         * i386-interix-nat.c: New file.
2825         * i386-interix-tdep.c: New file.
2826
2827 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2828
2829         * frame.h (deprecated_generic_get_saved_register): Rename
2830         generic_get_saved_register.
2831         * blockframe.c (deprecated_generic_get_saved_register): Update.
2832         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2833         (xstormy16_frame_saved_register): Update.
2834         * sh-tdep.c (sh_gdbarch_init): Update.
2835         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2836         * ia64-tdep.c (ia64_get_saved_register): Update.
2837         * cris-tdep.c (cris_gdbarch_init): Update.
2838         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2839         * arm-tdep.c (arm_gdbarch_init): Update.
2840
2841 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2842
2843         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2844
2845 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2846
2847         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2848         trampolines in sigaction.
2849
2850 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2851
2852         * h8300-tdep.c: Include "gdb_assert.h".
2853         (h8300_print_register): Add gdbarch, file and frame parameters.
2854         Use frame_read_unsigned_register to read the register's value.
2855         Use fprintf_filtered to display output.
2856         (h8300_print_registers_info): Replace h8300_do_registers_info.
2857         (h8300_gdbarch_init): Set print_registers_info.
2858
2859 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2860
2861         * frame.c (frame_read_unsigned_register): New function.
2862         (frame_read_signed_register): New function.
2863         * frame.h (frame_read_unsigned_register): Declare.
2864         (frame_read_signed_register): Declare.
2865
2866 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2867
2868         * h8500-tdep.c (h8500_print_registers_info): New static function,
2869         clone of infcmd.c's default_print_registers_info.
2870         (h8500_do_registers_info): New funtion.
2871         (h8500_print_register_hook): Rename print_register_hook, make
2872         static.
2873
2874         * config/h8500/tm-h8500.h: Update copyright.
2875         (DEPRECATED_DO_REGISTERS_INFO): Define.
2876         (h8500_do_registers_info: Declare.
2877         (PRINT_REGISTER_HOOK): Delete macro.
2878         (print_register_hook): Delete function.
2879
2880 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2881
2882         * z8k-tdep.c (z8k_print_register_hook): Make static.
2883         (z8k_print_registers_info): New static function, clone of
2884         infcmd.c's default_print_registers_info.
2885         (z8k_do_registers_info): New function.  Wrap
2886         z8k_print_registers_info.
2887         * config/z8k/tm-z8k.h: Update copyright.
2888         (PRINT_REGISTER_HOOK): Delete macro.
2889         (z8k_print_register_hook): Delete declaration.
2890         (DEPRECATED_DO_REGISTERS_INFO): Define.
2891         (z8k_do_registers_info): Declare.
2892
2893 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2894
2895         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2896         as this is already provided by value.h, and was actually causing
2897         a compilation error because of a conflict in parameter type
2898         declaration due to a missing const keyword.
2899         (low_text_segment_addres): Fix a compilation warning.
2900
2901 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2902
2903         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2904         registers without a name.
2905         (mips_linux_cannot_store_register): Don't store registers without
2906         a name.
2907
2908 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2909
2910         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2911         out.)
2912         * symtab.h: Delete prototype for find_addr_symbol.
2913
2914 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2915
2916         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2917         DO_REGISTERS_INFO.
2918         gdbarch.h, gdbarch.c: Re-generate.
2919         * infcmd.c (default_print_registers_info): Update reference.
2920         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2921         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2922         * sh-tdep.c (sh_gdbarch_init): Ditto.
2923         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2924         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2925
2926 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2927
2928         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2929         cfi_init_extra_frame_info.
2930         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2931         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2932
2933         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2934         target where necessary.  Add more comments and remove the ones
2935         that don't provide any useful information.
2936
2937         * i386-tdep.c (i386_frame_saved_pc): Replace call to
2938         deprecated_read_register_dummy with
2939         frame_unwind_unsigned_register.
2940
2941         * i386-tdep.c (i386_extract_struct_value_address): Use
2942         regcache_raw_read_unsigned instead of
2943         regcache_cooked_read_unsigned since we know that the register
2944         we're reading isn't a pseudo register.  Rename variable 'val' into
2945         the more descriptive 'addr'.
2946
2947         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2948         (x86_64_push_return_address): Add comment.
2949         (x86_64_pop_frame): Make static.
2950         (examine_argument): Clarify comment.
2951         (x86_64_skip_prologue): Make prolog_expact variable static.
2952
2953         * dwarf2cfi.c: Fix some formatting problems.
2954         (context_cpy, read_encoded_pointer): Clarify comments.
2955
2956         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2957         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2958         i386 target back into x86_64_gdbarch_init.  Add some comments and
2959         remove meaningless ones.
2960
2961 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2962
2963         * complaints.h (struct deprecated_complaint): Rename `struct
2964         complaint'.
2965         * complaints.c (complain): Update.
2966         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2967         incorrect comment indicating that "symfile.h" was being included
2968         for the `struct complaint' definition.
2969         * remote-vx.c: Update.
2970         * objc-lang.c: Update.
2971         * xcoffread.c: Update.
2972         * hpread.c: Update.
2973         * mdebugread.c: Update.
2974         * stabsread.c: Update.
2975         * dwarf2read.c: Update.
2976         * dwarfread.c: Update.
2977         * elfread.c: Update.
2978         * coffread.c: Update.
2979         * stabsread.h: Update.
2980         * dbxread.c: Update.
2981         * buildsym.c: Update.
2982         * gdbtypes.c: Update.
2983         * macrotab.c: Update.
2984
2985 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
2986
2987         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2988         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2989         (x86_64_init_abi): ...new function.
2990
2991         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2992         * i386v-nat.c: Include "i386-tdep.h".
2993
2994 2002-10-25  Andrew Cagney  <cagney@redhat.com>
2995
2996         * gdbtypes.c (address_space_name_to_int): Update.
2997         (address_space_int_to_name): Update.
2998         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2999         multi-arch predicate.
3000         (address_class_name_to_type_flags): Ditto.
3001         * gdbarch.h, gdbarch.c: Re-generate.
3002         
3003         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3004
3005 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3006
3007         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3008
3009 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3010
3011         * symtab.h (INIT_SAL): Delete macro.
3012         (init_sal): Export.
3013         * symtab.c (init_sal): New function.
3014
3015         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3016         to init_sal function call.
3017         (find_sal_from_funcs_and_line): Ditto.
3018         (all_sals_for_line): Ditto. 
3019         * breakpoint.c (create_internal_breakpoint): Ditto. 
3020         (create_fork_vfork_event_catchpoint): Ditto. 
3021         (create_exec_event_catchpoint): Ditto. 
3022         (parse_breakpoint_sals): Ditto. 
3023         (watch_command_1): Ditto. 
3024         (handle_gnu_4_16_catch_command): Ditto.
3025         (clear_command): Ditto. 
3026         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3027         * infcmd.c (run_stack_dummy): Ditto. 
3028         * infrun.c (process_event_stop_test): Ditto.
3029         (check_sigtramp2): Ditto.
3030         (step_over_function): Ditto. 
3031         * linespec.c (decode_line_2): Ditto. 
3032         (decode_line_1): Ditto. 
3033         * source.c (line_info): Ditto. 
3034         * symtab.c (find_pc_sect_line): Ditto.
3035
3036 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3037
3038         * dwarf2cfi.c (struct context)
3039         (struct context_reg): Moved to dwarf2cfi.h
3040         (context_alloc, frame_state_alloc, context_cpy):
3041         Made extern instead of static, removed prototypes.
3042         * dwarf2cfi.h (struct context)
3043         (struct context_reg): New, moved from dwarf2cfi.c
3044         (context_alloc, frame_state_alloc, context_cpy):
3045         New prototypes.
3046         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3047         Changed from static to extern.
3048         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3049         (LINUX_SIGCONTEXT_FP_OFFSET)
3050         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3051         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3052         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3053         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3054         set_gdbarch_*() calls now use x86-64 specific functions 
3055         instead of DWARF2 CFI ones.
3056         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3057         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3058         (x86_64_init_extra_frame_info): New prototypes.
3059         
3060 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3061
3062         * linespec.c: #include "parser-defs.h".
3063         Delete prototype for find_template_name_end.
3064         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3065
3066 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3067
3068         * NEWS: add recent mi fixes.
3069         * varobj.c (struct varobj): Add new "updated" flag.
3070         (new_variable): Default "updated" flag to 0.
3071         (varobj_set_value): Set "updated" flag to 1 if value
3072         changes.
3073         (varobj_update): Check varobj "updated" flag before
3074         comparing old and refreshed values.  Fix for
3075         PR gdb/702.
3076
3077 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3078
3079         * parse.c (parse_exp_1): Use BLOCK_START.
3080         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3081         SYMBOL_BLOCK_VALUE.
3082         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3083
3084 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3085
3086         * symtab.c: Delete cplusplus_hint.
3087         Delete prototype for find_template_name_end.
3088
3089 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3090
3091         * symtab.h: Update comment.
3092
3093 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3094
3095         * printcmd.c (address_info): Restore quotes in output.
3096         * valops.c (value_of_local): Restore quotes in error message.
3097
3098 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3099
3100         * symtab.c (symbol_demangled_name): New function.
3101         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3102         turning most of it into a function.
3103         (symbol_demangled_name): Export.
3104
3105 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3106
3107         * valops.c (value_of_local): Restore quotes in error message.
3108
3109 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3110
3111         * symtab.c (symbol_init_language_specific): New function.
3112         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3113         turning most of it into a function.
3114         (symbol_init_language_specific): Export.
3115
3116 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3117
3118         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3119         (dwarf_attr_name): Ditto.
3120         (dwarf_type_encoding_name): Ditto.
3121         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3122         (process_die): Handle DW_TAG_namespace,
3123         DW_TAG_imported_declaration, DW_TAG_imported_module.
3124         (read_namespace): New function.
3125
3126 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3127
3128         * configure.in: Define NEW_PROC_API on Interix too.
3129         * configure: Regenerate.
3130
3131 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3132
3133         * configure: Regenerate using the proper version of autoconf.
3134
3135 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3136
3137         * findvar.c (read_var_value): Temporarily disable TLS code, until
3138         complete TLS support is added.
3139
3140 2002-10-21  Jim Blandy  <jimb@redhat.com>
3141             Elena Zannoni  <ezannoni@redhat.com>
3142
3143         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3144         for thread local storage locations.
3145         (struct symbol): Add objfile field.
3146         (SYMBOL_OBJFILE): Define.
3147         * dwarf2read.c (is_thread_local): New static variable.
3148         (new_symbol): If variable is in thread local fill in address class
3149         and objfile appropriately.
3150         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3151         stack operation.
3152         * printcmd.c (address_info): Print the information for thread
3153         local storage variable.
3154         * findvar.c (read_var_value): In case of thread local variable,
3155         defer to the target vector code to compute address.
3156
3157 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3158
3159         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3160         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3161
3162 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3163
3164         * symtab.h (address_class):  Rename
3165         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3166         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3167         * printcmd.c (address_info): Ditto.
3168         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3169
3170 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3171
3172         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3173         DBREG_DRX macro to acces debug registers.
3174
3175         * Makefile.in (i386obsd-tdep.o): New target.
3176
3177         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3178         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3179
3180         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3181         * config/i386/obsd.mt: New file.
3182         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3183         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3184         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3185         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3186         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3187         * i386obsd-tdep.c: New file.
3188
3189 2002-10-19  Adam Fedor  <fedor@gnu.org>
3190
3191         * objc-exp.y (name_not_typename): Fix invalid comment.  
3192
3193 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3194
3195         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3196         to allocate partial syms and macro byte caches.
3197
3198 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3199
3200         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3201
3202 2002-10-18  Adam Fedor  <fedor@gnu.org>
3203
3204         * stabsread.c (find_name_end): New function.
3205         (define_symbol): Use it.
3206
3207 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3208
3209         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3210         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3211         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3212         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3213
3214 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3215
3216         * symfile.h: Add opaque declaration for struct obstack.
3217         Declare obsavestring to take a const char *.
3218         * symfile.c (obsavestring): Make first argument a const char *.
3219
3220 2002-10-16  Adam Fedor  <fedor@gnu.org>
3221
3222         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3223         names when matching breakpoints in current file.
3224
3225 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3226
3227         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3228         (read_tag_pointer_type): Add address class support.
3229         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3230         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3231         New methods.
3232         * gdbarch.h, gdbarch.c: Regenerate.
3233         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3234         (make_type_with_address_space, recursive_type_dump): Add address
3235         class support.
3236         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3237         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3238         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3239
3240 2002-10-16  Klee Dienes  <kdienes@apple.com>
3241
3242         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3243         to get the last character of a char[] buffer, not
3244         name[sizeof(vptr_name)-1].
3245
3246 2002-10-14  Adam Fedor  <fedor@gnu.org>
3247
3248         * symtab.h: New objc_specific struct.
3249         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3250         (SYMBOL_DEMANGLED_NAME): Likewise.
3251
3252 2002-10-14  Adam Fedor  <fedor@gnu.org>
3253
3254         * symfile.c (init_filename_language_table): Add ObjC file extension.
3255
3256 2002-10-14  Adam Fedor  <fedor@gnu.org>
3257
3258         * utils.c (puts_filtered_tabular): New function.
3259         (fprintf_symbol_filtered): Get ObjC demangled name.
3260         * defs.h (puts_filtered_tabular): Declared.
3261
3262 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3263
3264         * c-lang.h (c_type_print_varspec_prefix): Delete.
3265         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3266         ``need_post_space'' parameter.  Adjust all callers.
3267
3268 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3269  
3270         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3271         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3272         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3273         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3274
3275 2002-10-13  Adam Fedor  <fedor@gnu.org>
3276
3277         * source.c (print_source_lines): Update comments.
3278
3279 2002-10-13  Adam Fedor  <fedor@gnu.org>
3280
3281         * valops.c (value_of_local): New function.
3282         (value_of_this): Use it.
3283         * value.h (value_of_local): Declared.
3284
3285 2002-10-13  Adam Fedor  <fedor@gnu.org>
3286
3287         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3288         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3289
3290 2002-10-12  Adam Fedor  <fedor@gnu.org>
3291
3292         * language.c (binop_result_type): Add language_objc to case.
3293         (integral_type): Likewise.
3294         (character_type): Likewise.
3295         (string_type): Likewise.
3296         (boolean_type): Likewise.
3297         (structured_type): Likewise.
3298         (binop_type_check): Likewise.
3299
3300 2002-10-11  Adam Fedor  <fedor@gnu.org>
3301
3302         * printcmd.c (address_info): Print 'self' for ObjC.
3303
3304 2002-10-11  Adam Fedor  <fedor@gnu.org>
3305
3306         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3307         OP_SELF.
3308
3309 2002-10-11  Adam Fedor  <fedor@gnu.org>
3310
3311         * language.h (CAST_IS_CONVERSION): Add language_objc.
3312
3313 2002-10-11  Adam Fedor  <fedor@gnu.org>
3314
3315         * defs.h (enum language): Add language_objc.
3316
3317 2002-10-11  Klee Dienes  <kdienes@apple.com>
3318
3319         * corefile.c (read_memory_typed_address): New function.
3320         * gdbcore.h (read_memory_typed_address): Add prototype.
3321         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3322         to read a value destined for a CORE_ADDR, not read_memory_integer.
3323         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3324         (f77_get_dynamic_lowerbound): Ditto.
3325
3326 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3327
3328         * utils.c (string_to_core_addr): After turning string into
3329         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3330         which will do necessary sign-extension, etc.
3331
3332 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3333
3334         * c-exp.y (THIS): Delete token and grammar rule.
3335         (yylex): Don't return THIS.
3336         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3337         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3338         * demangle.c (cplus_markers): Update comment.  Put '$'
3339         first.  Remove CPLUS_MARKER.
3340         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3341         * jv-exp.y (THIS): Delete token and grammar rule.
3342         (yylex): Don't return THIS.
3343         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3344         * objc-exp.y (THIS): Delete token and grammar rule.
3345         (yylex): Don't return THIS.
3346         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3347         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3348         (read_member_functions): Likewise for opname.
3349         (read_tilde_fields): Use is_cplus_marker.
3350
3351         * defs.h (CPLUS_MARKER): Don't define.
3352         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3353         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3354         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3355         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3356         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3357
3358         * config/i386/tm-i386v4.h: Delete file.
3359         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3360         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3361         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3362         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3363         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3364         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3365         * config/i386/i386v4.mt (TM_FILE): Likewise.
3366         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3367
3368 2002-10-10  Marko Mlinar  <markom@opencores.org>
3369
3370         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3371         accidentially not commited 2002-10-09
3372         * gdbarch.h, gdbarch.c: Re-generate.
3373
3374 2002-10-09  Marko Mlinar  <markom@opencores.org>
3375
3376         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3377         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3378         * gdbarch.h, gdbarch.c: Re-generate.
3379
3380 2002-10-08  Petr Sorfa <petrs@caldera.com>
3381
3382         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3383
3384         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3385         so we can work on more than one compilation unit at a time.  This
3386         helps prepare GDB to handle inter-CU die references.
3387         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3388         the code to be defined before struct comp_unit_head.
3389         (comp_unit_head): Added new members - offset, cu_head,
3390         begin_die, next and dwarf2_abbrevs.
3391         (dwarf2_abbrevs): Removed single static var; now member of
3392         struct comp_unit_head.
3393         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3394         members.
3395         (psymtab_to_symtab_1): Changed to work with the new
3396         struct comp_unit_head.
3397         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3398         constructs the dwarf2_abbrevs[] inside the cu_header.
3399         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3400         dwarf2_abbrev table to clean up.
3401         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3402         handling of dwarf2_abbrevs inside the cu_header.
3403         (read_partial_die): Now supports the call to the new
3404         dwarf2_lookup_abbrev.
3405         (read_full_die): Now supports the call to the new
3406         dwarf2_lookup_abbrev.
3407
3408 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3409
3410         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3411         insure that shell variables, such as "transformed_name" are propagated
3412         to later shell statements in rule.
3413
3414 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3415
3416         * config/i386/nm-i386sco.h: Add protection against
3417         multiple-inclusion.  Include "i386/nm-i386v.h".
3418         (REGISTER_U_ADDR): Remove define.
3419         (i386_register_u_addr): Remove prototype.
3420
3421 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3422
3423         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3424         before treating it as a single-step event.
3425
3426 2002-10-03  Adam Fedor  <fedor@gnu.org>
3427
3428         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3429         (objc_demangle): Remove assignment in if statements, Replace
3430         free with xfree.
3431         (add_msglist): Likewise.
3432         (end_msglist): Likewise.
3433         (complare_selectors): Likewise.
3434         (selectors_info): Likewise.
3435         (compare_classes): Likewise.
3436         (classes_info): Likewise.
3437         (print_object_command): Likewise.
3438         (find_objc_msgcall_submethod): Replace PTR with void *.
3439         * objc-lang.h: Remove check for __STDC__.
3440
3441 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3442
3443         * ui-out.h (ui_out_field_fmt_int): New prototype.
3444         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3445         of field width and alignment.
3446         * stack.c (print_frame_info_base): When printing frame level, use
3447         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3448         PR gdb/192
3449
3450 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3451
3452         * MAINTAINERS: Add self to Write After Approval list.
3453
3454 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3455
3456         * infcmd.c (interrupt_target_command_wrapper): Delete.
3457         (interrupt_target_command): Make non static.
3458         (nofp_registers_info): Make static.
3459         * stack.c (return_command_wrapper): Delete.
3460         (return_command): Make non static.
3461
3462 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3463
3464         * event-top.c (gdb_setup_readline): New function. Code moved from
3465         _initialize_event_loop().
3466         (_initialize_event_loop): Call gdb_setup_readline().
3467
3468 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3469
3470         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3471         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3472         * gdbarch.h, gdbarch.c: Re-generate.
3473
3474 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3475
3476         Fix PR gdb/778
3477         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3478         before recursing.
3479         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3480         of fill_in_vptr_fieldno.
3481
3482 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3483
3484         * inferior.h (registers_info, stepi_command, nexti_command,
3485         continue_command, interrupt_target_command): Export from infcmd.c.
3486         * frame.h (args_info, selected_frame_level_changed_hook,
3487         return_command): Export from stack.c.
3488         * v850ice.c (stepi_command, nexti_command, continue_command): use
3489         prototypes from inferior.h.
3490         * tracepoint.c (registers_info, args_info, locals_info): Use
3491         prototypes from frame.h and inferior.h.
3492         * Makefile.in (mi-main.o): Add dependency on frame.h.
3493
3494 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3495
3496         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3497         value in register 3 adjusted by ppc_gp0_regnum.
3498
3499         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3500
3501 2002-10-02  Marko Mlinar <markom@opencores.org>
3502
3503         * MAINTAINERS: Add myself to the Write After Approval list.
3504
3505 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3506
3507         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3508         of the section for the N64 ABI, fixed.
3509
3510         * config/mips/tm-irix6.h: Include solib.h.
3511
3512 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3513
3514         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3515         GNU operators.
3516
3517 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3518
3519         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3520         and that "mi0" syntax has been removed.
3521
3522 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3523
3524         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3525         * ppc-sysv-tdep.c: #include "gdb_string.h".
3526         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3527         pacify GCC.
3528
3529 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3530
3531         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3532         "vrsave"'s register number.
3533
3534 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3535
3536         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3537         use frame_unwind_signed_register to obtain the PC.
3538         (mips_frame_chain): Handle a generic dummy frame.
3539         (mips_init_extra_frame_info): When a generic dummy frame, don't
3540         re-compute the frame base.
3541         (mips_pop_frame): Handle generic dummy frames.
3542         (mips_gdbarch_init): When generic dummy frames, set
3543         use_generic_dummy_frames, push_dummy_frame to
3544         generic_push_dummy_frame, pc_in_call_dummy to
3545         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3546         generic_save_dummy_frame_tos.
3547
3548 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3549
3550         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3551         against TOP when TOP was explictly set.
3552         (generic_push_dummy_frame): Set TOP to zero.
3553
3554 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3555
3556         * event-loop.c (start_event_loop): Rename variable 'result' to
3557         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3558
3559 2002-09-30  Keith Seitz  <keiths@redhat.com>
3560
3561         * gdb-events.sh (selected_thread_changed): New event.
3562         * gdb-events.c: Regenerated.
3563         * gdb-events.h: Regenerated.
3564
3565 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3566
3567         * MAINTAINERS: Add self to Write After Approval list.
3568
3569 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3570
3571         * disasm.c: New file.  
3572         * disasm.h: New file.  
3573         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3574         (compare_lines): Ditto.
3575         (dump_insns): Ditto.
3576         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3577         argument.
3578         (do_assembly_only): Ditto.
3579         (do_disassembly): Renamed to gdb_disassembly and moved to
3580         disasm.c.  Sdded uiout argument.
3581         * Makefile.in: Add new files.  Reorder SFILES list. Update
3582         dependencies.  Include libgdb.a later in the insight executable.
3583
3584 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3585
3586         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3587         bfd/elf64-alpha-fbsd.c.
3588
3589 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3590
3591         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3592         i386gnu-tdep.c.
3593
3594 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3595
3596         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3597         __FUNCTION__.
3598         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3599         function name.
3600         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3601         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3602         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3603         (S_msg_sig_post_reply): Ditto.
3604         
3605 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3606
3607         * sh-tdep.c (sh_use_struct_convention): Use definition according
3608         to ABI.
3609         (sh_push_arguments): Store in register with correct endianess.
3610         (sh_default_store_return_value): Ditto.
3611         (sh_gdbarch_init): Set sizeof long double to 8.
3612
3613 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3614
3615         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3616         Fix some whitespace problems.
3617
3618 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3619
3620         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3621         (mcore-tdep.o): Ditto.
3622         (ns32k-tdep.o): Ditto.
3623         (ns32knbsd-tdep.o): Ditto.
3624         (sh3-rom.o): Ditto.
3625         (vax-tdep.o): Ditto.
3626         * cris-tdep.c: #include "gdb_string.h"
3627         * mcore-tdep.c: Ditto.
3628         * ns32k-tdep.c: Ditto.
3629         * ns32knbsd-tdep.c: Ditto.
3630         * sh3-rom.c: Ditto.
3631         * vax-tdep.c: Ditto.
3632
3633 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3634
3635         * config/djgpp/fnchange.lst: Add entries for
3636         gdb/testsuite/gdb.c++/m-static files.
3637
3638 2002-09-27  Jim Wilson  <wilson@redhat.com>
3639
3640         * MAINTAINERS: Add myself to the Write After Approval list.
3641
3642 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3643
3644         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3645
3646
3647 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3648
3649         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3650         frame.
3651
3652 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3653
3654         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3655         (rs6000_struct_return_address): Delete variable.
3656         (rs6000_store_struct_return): Update.
3657         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3658         deprecated_extract_struct_value_address.
3659         (rs6000_frame_align): New function.
3660         (rs6000_gdbarch_init): Set frame_align.
3661
3662 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3663
3664         From Grace Sainsbury <graces@redhat.com>:
3665         * Makefile.in (gdbtk-main.o): New target.
3666         (gdb.o): New target.
3667         (main_h): Define.
3668         (main.o): Update dependencies.
3669         (gdb$(EXEEXT)): Add gdb.o.
3670         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3671         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3672         (SUBDIR_GDBTK_CLEAN): Set.
3673         (install-gdbtk): Install the insight binary.
3674         (uninstall-gdbtk): New target.
3675         (all-gdbtk, clean-gdbtk): New rule.
3676         * top.c (use_windows): Default to zero.
3677         * main.c: Include "main.h".
3678         (main): Delete.
3679         (struct captured_main_args): Delete.
3680         (gdb_main): New function.
3681         * main.h: New file.
3682         * gdb.c: New File.
3683
3684 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3685
3686         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3687         (frame_map_regnum_to_name): New function.
3688         (frame_map_name_to_regnum): New function.
3689         * frame.h (frame_map_name_to_regnum): Declare.
3690         (frame_map_regnum_to_name): Declare.
3691         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3692         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3693         * parse.c: Do not include "builtin-regs.h".
3694         (target_map_name_to_register): Delete function.
3695         (write_dollar_variable): Use frame_map_name_to_regnum.
3696         * parser-defs.h (target_map_name_to_register): Delete declaration.
3697         * expprint.c: Include "frame.h".
3698         (print_subexp): Use frame_map_regnum_to_name.
3699         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3700         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3701
3702 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3703
3704         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3705         wasn't saved, and the next innermost frame is a dummy, return the
3706         dummy frame's link register.
3707
3708 2002-09-24  Jim Blandy  <jimb@redhat.com>
3709
3710         Fix from Paul Breed:
3711         * main.c (captured_main): Add a `break' after the case for 'b'.
3712
3713 2002-09-24  Keith Seitz  <keiths@redhat.com>
3714
3715         * varobj.c (c_type_of_child): Use get_target_type instead
3716         of TYPE_TARGET_TYPE.
3717
3718 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3719
3720         * source.c (get_current_or_default_source_symtab_and_line): Remove
3721         function.
3722         (set_default_source_symtab_and_line): New function. Attempts to
3723         determine a source file to list lines from if one is not currently
3724         defined.
3725         (get_current_source_symtab_and_line): Initialize sal.pc and
3726         sal.end fields.
3727         (set_current_source_symtab_and_line): Mark argument as const.
3728         * source.h: Update declarations and comments.
3729         * linespec.c (decode_line_1): Replace call to removed routine above.
3730         * stack.c (print_frame_info_base): Ditto.
3731         * cli/cli-cmds.c (edit_command): Ditto.
3732         (list_command): Ditto.
3733
3734 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3735
3736         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3737         sal.pc and sal.end fields.
3738         (get_current_or_default_source_symtab_and_line): Ditto.
3739         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3740         so we do not cause a new source symtab to be searched for (reverting an
3741         unintentional change from the 2002-09-20 patch).
3742         * scm-lang.c (scm_unpac): Ditto.
3743
3744 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3745
3746         * complaints.c (symfile_explanations): Remove new-line from
3747         ``isolated_message''.
3748         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3749         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3750
3751 2002-09-20  Nick Clifton  <nickc@redhat.com>
3752         
3753         * NEWS: Announce that V850EA ISA is no longer supported.
3754         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3755
3756 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3757
3758         * Makefile.in (c-lang.o): Correct dependencies.
3759         (utils.o): Gather dependencies.
3760         (charset.o): Move.
3761         * c-lang.c: #include "gdb_string.h"
3762
3763 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3764
3765         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3766         * cli/cli-cmds.c (list_command): New function.  Implements the new
3767         cli edit command.
3768         (_init_cli_cmds): Add new command definition.
3769         * gdb.1: Document edit command.
3770         * doc/gdb.texinfo: Document edit command.
3771
3772 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3773
3774         * source.c: Make global variables current_source_symtab and
3775         current_source_line static.
3776         (list_command): Moved to cli/cli-cmds.c.
3777         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3778         (get_first_line_listed): New accessor function.
3779         (get_lines_to_list): New accessor function.
3780         (get_current_source_symtab_and_line): New function. Retrieves the
3781         position in the source code that we consider current.
3782         (get_current_or_default_source_symtab_and_line): New function.
3783         Like the above but attempts to determine a default position if one
3784         is not currently defined.
3785         (set_current_source_symtab_and_line): New function. Sets the source
3786         code position considered current and returns the previously set one.
3787         (clear_current_source_symtab_and_line): Reset stored information about
3788         a current source line.
3789         (_initialize_source): Remove registration for the "list" command and
3790         its alias.
3791         * source.h: Add declarations for the new functions above.
3792         * symtab.h: Remove declarations for the global variables mentioned
3793         above.
3794         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3795         obtain current source line.
3796         * linespec.c (decode_line_1): Ditto.
3797         * macroscope.c (default_macro_scope): Ditto.
3798         * scm-lang.c (scm_unpac): Ditto.
3799         * stack.c (print_frame_info_base): Ditto.
3800         * symfile.c (clear_symtab_users): Ditto.
3801         * symtab.c (decode_line_spec): Ditto.
3802         * cli/cli-cmds.c (list_command): Moved here from source.c.
3803         (ambiguous_line_spec): Moved here from source.c.
3804         (_init_cli_cmds): Add definition for "list" and its alias.
3805         * Makefile.in: Update dependencies.
3806
3807 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3808
3809         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3810         with what gcc thinks is correct.
3811
3812 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3813
3814         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3815         multiple register push instruction.
3816
3817 2002-09-19  Jim Blandy  <jimb@redhat.com>
3818
3819         Add support for distinct host and target character sets.
3820         * charset.c, charset.h: New files.
3821         * c-exp.y: #include "charset.h".
3822         (yylex): Convert character and string literals to the target
3823         character set, before returning them as the semantic value of the
3824         token.
3825         * c-lang.c: #include "charset.h".
3826         (c_emit_char): Use charset-specific methods to recognize
3827         characters with backslash escape forms, to decide which characters
3828         to print literally and which to print using numeric escape
3829         sequences, and to convert target characters to host characters
3830         before printing.
3831         * utils.c: #include "charset.h".
3832         (no_control_char_error): New function.
3833         (parse_escape): Use charset-specific methods to recognize
3834         backslash escapes, parse `control character' notation, and convert
3835         characters from the host character set to the target character set.
3836         * configure.in: Set the default host character set.
3837         Check where to find iconv, and what its argument types might be.
3838         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3839         * Makefile.in (SFILES): List charset.c.
3840         (COMMON_OBS): List charset.o.   
3841         (charset.o): New rule.
3842         (charset_h): New header dependency variable.
3843         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3844         (LIBICONV): New variable, set by configure.
3845         (CLIBS): Include $(LIBICONV) here.
3846         * aclocal.m4, config.in, configure: Regenerated.
3847
3848 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3849
3850         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3851         bison 1.35 warning.
3852
3853 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3854
3855         * gdb_mbuild.sh: New file.
3856
3857 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3858
3859         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3860
3861 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3862
3863         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3864         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3865         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3866         valops.c, value.h: Revert previous change.
3867         
3868 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3869
3870         Preliminary support for Objective-C:
3871         * defs.h (language_objc): New enum value.
3872         (puts_filtered_tabular): Declaration only, exported from utils.c.
3873         (skip_quoted): Delete, declared in completer.h.
3874         * c-exp.y: Include completer.h.
3875         * p-exp.y: Ditto.
3876         * jv-exp.y: Ditto.
3877         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3878         New operator enum values.
3879         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3880         * language.c (binop_result_type): Handle language_objc case.
3881         (integral_type, character_type, string_type, boolean_type,
3882         structured_type, binop_type_check): Ditto.
3883         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3884         (struct objc_specific): Add to general_symbol_info.
3885         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3886         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3887         * parser-defs.h (struct objc_class_str): New struct type.
3888         (start_msglist, end_msglist, add_msglist): Declaration only,
3889         exported from objc-lang.c.
3890         * value.h (value_of_local, value_nsstring, 
3891         call_function_by_hand_expecting_type): Exported from valops.c.
3892         * valops.c (find_function_addr): Export.
3893         (call_function_by_hand_expecting_type): New function.
3894         (value_of_local): New function.
3895         * symfile.c (init_filename_language_table): Add ".m" extension
3896         for Objective-C.
3897         * utils.c (puts_filtered_tabular): New function.
3898         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3899         (set/show demangle): Extend help-string to refer to ObjC.
3900         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3901         * stabsread.c (symbol_reference_defined): Objective-C symbols
3902         may contain colons: make allowances when scanning stabs strings
3903         for colons.
3904         (objc_find_colon): New function.
3905         * printcmd.c (address_info): If language == objc then print
3906         "self" instead of "this".
3907         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3908         OP_NSSTRING, and OP_SELF.
3909         (prefixify_subexp): Ditto.
3910         * source.c (print_source_lines): Mention objc in comment.
3911         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3912         method names.
3913
3914 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3915
3916         * complaints.h: Update copyright.
3917         (struct complaints): Declare.
3918         (struct complaint): Make `message' constant.
3919         (internal_complaint): Declare.
3920         (complaint): Declare.
3921         (complaint_root): Delete declaration.
3922         (symfile_complaints): Delete declaration.
3923         (struct complaints): Add opaque declaration.
3924         (clear_complaints): Add a complaints parameter.
3925         * complaints.c: Update copyright.
3926         (enum complaint_series): Define.
3927         (complaint_root): Delete.
3928         (struct complaints): Define.
3929         (complaint_sentinel, symfile_complaint_book): New variables.
3930         (symfile_explanations, symfile_complaints): New variables.
3931         New variables.
3932         (get_complaints): New function.
3933         (vcomplaint): New function.
3934         (complaint): New function.
3935         (internal_complaint): New function.
3936         (complain): Call vcomplain with symfile_complaint.
3937         (clear_complaints): Rewrite.
3938         (_initialize_complaints): Use add_setshow_command.
3939         * Makefile.in (complaints.o): Update dependencies.
3940         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3941         to call to clear_complaints.
3942         (new_symfile_objfile, reread_symbols): Ditto.
3943         (oldsyms_complaint): Delete.
3944         (empty_symtab_complaint, unknown_option_complaint): Delete.
3945         (free_named_symtabs): Use complaint instead of complain.
3946
3947 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3948
3949         Contributed by Apple Computer, Inc.  Merged with current sources
3950         by Adam Fedor <fedor@doc.com> [cagney].
3951         
3952         * objc-lang.c: First clean-up round: comments, indentation.
3953         * objc-lang.h: Ditto.
3954         * objc-lang.y: Ditto.
3955
3956 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3957
3958         * maint.c (maintenance_internal_error): Print the parameter as the
3959         error message.
3960         (maintenance_internal_warning): New function.
3961         (_initialize_maint_cmds): Add command `maint internal-warning'.
3962
3963         * defs.h (internal_warning, internal_vwarning): Declare.
3964         * utils.c (struct internal_problem): Define.
3965         (internal_vproblem): New function.
3966         (internal_warning): New function.
3967         (internal_vwarning): New function.
3968         (internal_warning_problem, internal_error_problem): New variables.
3969         (internal_verror): Just call internal_vproblem.
3970
3971 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3972
3973         * objc-lang.c: New file, support for Objective-C.
3974         Preliminary check-in, not yet integrated into gdb.
3975         * objc-lang.h: New file.
3976         * objc-exp.y:  New file.
3977
3978 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3979
3980         * infrun.c (signal_stop_update): Convert definition to ISO C.
3981         (signal_print_update): Ditto.
3982         (signal_pass_update): Ditto.
3983         * inflow.c (terminal_save_ours): Ditto.
3984
3985         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3986         comments.
3987         
3988         * config/djgpp/fnchange.lst: Handle name clashes between
3989         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3990         bfd/coff-tic80.c.
3991
3992         * i386-linux-tdep.h: Fix tipo.
3993
3994 2002-09-18  Adam Fedor  <fedor@gnu.org>
3995
3996         * MAINTAINERS: Add myself to the Write After Approval list.
3997
3998 2002-09-18  Jim Blandy  <jimb@redhat.com>
3999
4000         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4001         texthigh and textlow to reader-specific structs caused
4002         objfile_relocate to miss them.  This is fixable, but the work that
4003         the change was supposed to prepare GDB for never got done anyway.
4004
4005 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4006
4007         * MAINTAINERS: Alphabetize Write After Approval list.
4008
4009 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4010
4011         Fix PR gdb/709
4012         * values.c (value_static_field): Call read_var_value.
4013
4014 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4015
4016         * valops.c (hand_function_call): Align the initial stack pointer
4017         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4018         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4019         return value.
4020         * mips-tdep.c (mips_frame_align): New function.
4021         (mips_gdbarch_init): Set frame_align.
4022         * gdbarch.sh (FRAME_ALIGN): New method.
4023         * gdbarch.h, gdbarch.c: Re-generate.
4024
4025 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4026
4027         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4028         registers.
4029
4030 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4031
4032         * NEWS: Mention that MIPS $fp behavior changed.
4033         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4034         reference to FP_REGNUM.
4035         (mipsnbsd_cannot_store_register): Ditto.
4036         * mips-linux-nat.c: Update copyright.
4037         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4038         (mips_linux_cannot_store_register): Ditto.
4039         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4040         * config/mips/tm-mips.h: Update copyright.
4041         (FP_REGNUM): Delete macro.
4042         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4043         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4044         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4045         (mips_r3041_reg_names, mips_r3051_reg_names)
4046         (mips_r3081_reg_names): Replace "fp" with "".
4047         Fix PR gdb/480.
4048
4049 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4050
4051         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4052         generic_read_register_dummy() (PR gdb/703).
4053         (avr_push_return_address): #if 0 out unused vars.
4054         (avr_gdbarch_init): Enable use of avr_push_return_address().
4055
4056 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4057
4058         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4059         RTE will take care of it.
4060
4061 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4062
4063         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4064         invalid, return SP_REGNUM.
4065
4066 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4067
4068         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4069         point registers without sign extension.
4070
4071 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4072
4073         * blockframe.c (deprecated_read_register_dummy): Rename
4074         generic_read_register_dummy.
4075         * frame.c (frame_unwind_signed_register): New function.
4076         (frame_unwind_unsigned_register): New function.
4077         * frame.h (frame_unwind_signed_register): Declare.
4078         (frame_unwind_unsigned_register): Declare.
4079         (deprecated_read_register_dummy): Rename
4080         generic_read_register_dummy.
4081
4082         * h8300-tdep.c (h8300_frame_chain): Update.
4083         (h8300_frame_saved_pc): Update.
4084         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4085         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4086         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4087         (s390_frame_chain): Update.
4088         * v850-tdep.c (v850_find_callers_reg): Update.
4089         (v850_frame_saved_pc): Update.
4090         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4091         (m32r_find_callers_reg): Update.
4092         (m32r_frame_saved_pc): Update.
4093         * sh-tdep.c (sh_find_callers_reg): Update.
4094         (sh64_get_saved_pr): Update.
4095         (sh_init_extra_frame_info): Update.
4096         (sh_init_extra_frame_info): Update.
4097         (sh64_init_extra_frame_info): Update.
4098         (sh64_init_extra_frame_info): Update.
4099         * mcore-tdep.c (mcore_find_callers_reg): Update.
4100         (mcore_frame_saved_pc): Update.
4101         (mcore_init_extra_frame_info): Update.
4102         * i386-tdep.c (i386_frame_saved_pc): Update.
4103         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4104         (ia64_init_extra_frame_info): Update.
4105         (ia64_init_extra_frame_info): Update.
4106         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4107         * cris-tdep.c (cris_init_extra_frame_info): Update.
4108         * avr-tdep.c (avr_frame_chain): Update.
4109         (avr_init_extra_frame_info): Update.
4110         (avr_frame_saved_pc): Update.
4111         * arm-tdep.c (arm_find_callers_reg): Update.
4112         (arm_init_extra_frame_info): Update.
4113         (arm_frame_saved_pc): Update.
4114
4115 2002-09-17  Tom Tromey  <tromey@redhat.com>
4116
4117         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4118         is "'".
4119
4120 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4121
4122         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4123         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4124         NEXT_PROLOGUE_INSN.
4125         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4126         NEXT_PROLOGUE_INSN.
4127
4128 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4129
4130         * osfsolib.c: Remove file, replaced by solib-osf.c.
4131         * Makefile.in: Remove compilation rules for osfsolib.c.
4132
4133 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4134
4135         * cp-valprint.c (cp_print_class_method): Correct args to
4136         check_stub_method_group.
4137
4138 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4139
4140         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4141         `set architecture'.  Unify naming convention of functions.
4142         (h8300_skip_prologue): Improve prologue analysis.
4143         (h8300_push_arguments): Rewritten to more closely match GCC's
4144         bizarre argument-passing behavior, along with the comment describing
4145         said behavior.
4146         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4147         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4148         sim, remote-e7000.c, remote-hms.c and remote.c
4149
4150 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4151
4152         * i386-tdep.c (gdb_print_insn_i386): Removed.
4153         (i386_print_insn): New function.
4154         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4155         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4156         tm_print_insn_info.
4157
4158 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4159
4160         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4161         zero.
4162
4163 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4164
4165         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4166         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4167         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4168
4169 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4170
4171         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4172
4173 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4174
4175         * gdbtypes.c (check_stub_method): Make static.
4176         (check_stub_method_group): New function.
4177         * gdbtypes.h: Update prototypes.
4178         * cp-support.c: New file.
4179         * cp-support.h: New file.
4180
4181         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4182         (update_method_name_from_physname): New function.
4183         (read_member_functions): Correct method names for operators
4184         and v3 constructors/destructors.  Separate v2 constructors and
4185         destructors.
4186         * Makefile.in (stabsread.o): Update dependencies.
4187         (SFILES): Add cp-support.c.
4188         (COMMON_OBS): Add cp-support.o.
4189         (cp_support_h, cp-support.o): Add.
4190
4191         * cp-valprint.c (cp_print_class_method): Call
4192         check_stub_method_group instead of check_stub_method.  Remove
4193         extraneous QUITs.
4194         * p-valprint.c (pascal_object_print_class_method): Likewise.
4195         * valops.c (search_struct_method): Likewise.
4196         (find_method_list, value_struct_elt_for_reference): Likewise.
4197
4198 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4199
4200         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4201         * gdbarch.h, gdbarch.c: Regenerate.
4202
4203 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4204
4205         * frame.c (find_saved_register): Delete function.
4206         * frame.h (find_saved_register): Delete declaration.
4207         Fix PR gdb/631.
4208
4209 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4210
4211         * mips-tdep.c (read_next_frame_reg): Re-hack using
4212         frame_register_unwind.
4213
4214 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4215
4216         * mips-tdep.c (mips_get_saved_register): Re-hack using
4217         frame_register_unwind.
4218
4219 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4220
4221         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4222         vector. Will be useful for Interix.  
4223         * gdbarch.h, gdbarch.c: Regenerate.
4224
4225         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4226         name of the malloc function by NAME_OF_MALLOC.
4227
4228 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4229
4230         * value.h (find_function_in_inferior): Add const keyword to
4231         one of the parameters. Allows us to invoke this function with
4232         a const char *.
4233         * valops.c (find_function_in_inferior): Likewise.
4234
4235 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4236
4237         * exec.c (xfer_memory): Fix compilation warning with old versions
4238         of GCC.
4239         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4240
4241 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4242
4243         * symtab.h: Run through gdb_indent.h.
4244         Add 2002 to Copyright year list.
4245
4246 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4247
4248         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4249         mach constants.
4250         * MAINTAINERS: Add myself to write after approval list.
4251
4252 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4253
4254         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4255
4256 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4257
4258         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4259         Interix.
4260
4261 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4262
4263         * procfs.c (do_detach): Clear current signal, not just fault.
4264         Corrects problem with breakpoint trap signal leaking to detached
4265         process on Tru64.
4266
4267 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4268
4269         * buildsym.c (finish_block): Protect against null pointer.
4270
4271 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4272
4273         * infcmd.c (default_print_registers_info): Send all output to
4274         ``file'' instead of ``gdb_stdout''.
4275
4276 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4277
4278         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4279         LONGEST, and use signed register read (addresses are sign-
4280         extended for mips).
4281
4282 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4283
4284         * event-loop.c (gdb_do_one_event): Make public.
4285         * event-loop.h (gdb_do_one_event): Declare.
4286
4287 2002-09-10  Jeff Law  <law@redhat.com>
4288
4289         * infttrace.c (child_resume): Simplify and rework to avoid
4290         TT_PROC_CONTINUE.
4291
4292 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4293
4294         * printcmd.c (print_scalar_formatted): "len" is the number of
4295         target bytes, NOT the number of target bits.
4296
4297 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4298
4299         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4300         * top.c (init_main): Set rl_terminal_name.
4301
4302 2002-09-08  Aidan Skinner <aidan@velvet.net>
4303
4304         * ada-lang.c (ada_array_bound, ada_type_match,
4305         _initialize_ada_language): Fix K&R definitions.
4306         * ada-tasks.c (get_current_task): Fix K&R definitions.
4307         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4308                         
4309 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4310
4311         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4312         Add XP.
4313
4314 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4315
4316         * i386-tdep.c (i386_register_virtual_type,
4317         i386_register_convertible, i386_register_convert_to_virtual,
4318         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4319         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4320         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4321         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4322         Don't set push_arguments twice.
4323
4324         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4325         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4326         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4327         sigtramp_end to NULL.
4328         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4329         defines.
4330         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4331
4332         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4333         whitespace.
4334
4335         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4336         * gdbarch.h, gdbarch.c: Re-generate.
4337         * blockframe.c (find_pc_sect_partial_function): Convert to use
4338         SIGTRAMP_START_P predicate.
4339
4340 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4341
4342         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4343         generic_dummy_frame method and old method.  Also distinguish
4344         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4345         (arm_extract_return_value): Use new regcache method.
4346
4347         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4348         adjustment that doesn't conform to the ABI.
4349         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4350         saved regcache, not from current regcache.
4351
4352 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4353
4354         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4355         * README: Update.
4356
4357 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4358
4359         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4360         if arm_apcs_32 is false.
4361
4362 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4363
4364         GDB 5.3 branch created.
4365
4366 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4367
4368         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4369         generic_unwind_get_saved_register.
4370
4371 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4372
4373         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4374         argument (PR gdb/653).  Update call to smash_to_method_type.
4375         (read_structure_scope): Update call to dwarf2_add_member_fn.
4376
4377 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4378
4379         * x86-64-linux-tdep.c: Include gdb_string.h
4380         * x86-64-linux-nat.c: Ditto.
4381
4382 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4383
4384         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4385         when YYDEBUG is set to 1.  
4386         * c-exp.y: Likewise.
4387         * f-exp.y: Likewise.
4388         * jv-exp.y: Likewise.
4389         * m2-exp.y: Likewise.
4390         * p-exp.y: Likewise.
4391
4392 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4393
4394         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4395         dependency list.
4396         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4397         solib_svr4_fetch_link_map_offsets to
4398         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4399         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4400         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4401         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4402         solib-svr4.o, and solib-legacy.o.
4403         * config/i386/tm-nbsd.h: Include solib.h.
4404
4405 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4406
4407         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4408         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4409         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4410         comment noting that this needs its own target configuration.
4411         * config/i386/nbsd.mt: New file.
4412         * config/i386/nbsdaout.mt: Remove.
4413         * config/i386/nbsdelf.mt: Ditto.
4414         * config/i386/tm-nbsdaout.h: Ditto. 
4415
4416 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4417
4418         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4419         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4420         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4421         tdep->sigtramp_end.
4422         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4423         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4424         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4425
4426 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4427
4428         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4429         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4430         * i386-tdep.h (i386bsd_init_abi): New prototype.
4431         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4432         function declaration.
4433         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4434         for NetBSD-a.out or NetBSD-ELF.
4435         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4436         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4437         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4438         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4439         and nbsd-tdep.h.
4440         (i386nbsd_pc_in_sigtramp): New function.
4441         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4442         i386nbsd_pc_in_sigtramp.
4443         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4444         and i386nbsdelf_init_abi OS ABI handlers.
4445         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4446         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4447
4448 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4449
4450         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4451         registers if the target really has them.
4452
4453 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4454
4455         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4456         than nbsd-tdep.h.
4457
4458 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4459
4460         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4461         list.
4462         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4463         (alphanbsd_skip_sigtramp_frame): New functions. 
4464         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4465         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4466         to alphanbsd_sigcontext_addr. 
4467
4468 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4469
4470         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4471         list.
4472         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4473         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4474         nbsd_pc_in_sigtramp. 
4475         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4476         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4477         * nbsd-tdep.c: Include gdb_string.h.
4478         (nbsd_pc_in_sigtramp): New function. 
4479         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4480         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4481         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4482         ppcnbsd_pc_in_sigtramp. 
4483         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4484         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4485         shnbsd_pc_in_sigtramp. 
4486         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4487         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4488         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4489
4490 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4491
4492         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4493         watchpoints to NULL.
4494         (insert_breakpoints): set val field of watchpoints if NULL.
4495
4496
4497 2002-08-29  Jim Blandy  <jimb@redhat.com>
4498
4499         * symtab.c (lookup_symbol_aux): In the cases where we find a
4500         minimal symbol of an appropriate name and use its address to
4501         select a symtab to read and search, use `name' (as passed to us)
4502         as the demangled name when searching the symtab's global and
4503         static blocks, not the minsym's name.
4504
4505 2002-08-29  Keith Seitz  <keiths@redhat.com>
4506
4507         * stack.c (print_frame_info_base): Always set current_source_symtab
4508         and current_source_line.
4509
4510 2002-08-29  Donn Terry  <donnte@microsoft.com>
4511
4512         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4513
4514 2002-08-28  Keith Seitz  <keiths@redhat.com>
4515
4516         * stack.c (select_frame): Add FIXME concerning selected-frame
4517         events.
4518         (select_frame_command): Send selected-frame-level-changed
4519         event notification, but only if the level actually changed.
4520         (up_silently_base): Add selected-frame-level-changed event
4521         notification.
4522         (down_silently_base): Likewise.
4523
4524 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4525
4526         * Makefile.in: Update dependencies for all gdb/*.c files.
4527
4528 2002-08-27  Tom Tromey  <tromey@redhat.com>
4529
4530         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4531         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4532         Update dependencies.
4533         * i387-tdep.c: Include gdb_string.h.
4534         * osabi.c: Likewise.
4535         * i386-linux-nat.c: Likewise.
4536         * lin-lwp.c: Likewise.
4537         * ax-gdb.c: Likewise.
4538         * signals/signals.c: Likewise.
4539         * jv-valprint.c: Likewise.
4540         * p-lang.c: Likewise.
4541         * c-valprint.c: Likewise.
4542         * cp-abi.c: Likewise.
4543
4544 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4545
4546         * cli/cli-script.h (copy_command_lines): Export.
4547         * breakpoint.c: Include cli/cli-script.h.
4548         * Makefile.in (breakpoint.o): Update dependencies.
4549
4550 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4551
4552         * breakpoint.c (insert_breakpoints): Protect all references
4553         to 'process_warning'.  Shorten long lines.
4554
4555 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4556
4557         * cli/cli-script.c (copy_command_lines): New function.
4558         * defs.h (copy_command_lines): Export.
4559         * testsuite/gdb.base/commands.exp: New tests for commands
4560         attached to a temporary breakpoint, and for commands that
4561         delete the breakpoint they are attached to.
4562         
4563 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4564
4565         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4566         pointer to the breakpoint commands struct, make a new copy
4567         of the struct and point to that.
4568         (bpstat_clear): Free the commands struct.
4569         (bpstat_clear_actions): Free the commands struct.
4570         (bpstat_do_actions): Free the command actions.  Also execute
4571         the local cleanups, instead of deleting them.
4572         (delete_breakpoint): Leave the commands field of the bpstat
4573         chain alone -- it will be freed later.
4574
4575 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4576
4577         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4578         deleted in 2002-08-20 commit.  This function is still used by
4579         ppc-linux-nat.c.
4580
4581 2002-08-26  Keith Seitz  <keiths@redhat.com>
4582
4583         * gdb-events.sh: Add selected-frame-level-changed event.
4584         * gdb-events.c: Regenerated.
4585         * gdb-events.h: Regenerated.
4586         
4587 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4588
4589         Fix PR gdb/393:
4590         * inflow.c (terminal_save_ours): New function to save terminal
4591         settings.
4592         * inferior.h (terminal_save_ours): Declare.
4593         * target.c (debug_to_terminal_save_ours): New function.
4594         (cleanup_target): Defaults to_terminal_save_ours.
4595         (update_current_target): Inherit to_terminal_save_ours.
4596         (setup_target_debug): Set to_terminal_save_ours.
4597         * target.h (target_terminal_save_ours): New to save terminal settings.
4598         (target_ops): New member to_terminal_save_ours.
4599         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4600         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4601         * inftarg.c (init_child_ops): Likewise.
4602         * m3-nat.c (init_m3_ops): Likewise.
4603         * procfs.c (init_procfs_ops): Likewise.
4604         * wince.c (init_child_ops): Likewise.
4605         * win32-nat.c (init_child_ops): Likewise.
4606         * sol-thread.c (init_sol_thread_ops): Likewise.
4607
4608 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4609
4610         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4611         use regcache_* functions.
4612         (i386_gdbarch_init): Set store_return_value instead of
4613         deprecated_store_return_value.
4614
4615         * regcache.c (regcache_raw_write_signed,
4616         regcache_raw_write_unsigned): New functions.
4617         * regcache.h (regcache_raw_write_signed,
4618         regcache_raw_write_unsigned): New prototypes.
4619
4620 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4621
4622         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4623         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4624         source file dependencies.  Cleanup corresponding generator rules.
4625
4626 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4627
4628         * regcache.h (register_offset_hack): Declare.
4629         (regcache_cooked_read_using_offset_hack): Declare.
4630         (regcache_cooked_write_using_offset_hack): Declare.
4631
4632         * regcache.c (register_offset_hack): New function.
4633         (regcache_cooked_read_using_offset_hack): New function.
4634         (regcache_cooked_write_using_offset_hack): New function.
4635         (regcache_dump): Check that the registers, according to their
4636         offset, are packed hard against each other.
4637         (cooked_xfer_using_offset_hack): New function.
4638
4639 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4640
4641         * regcache.c (struct regcache_descr): Add field register_type.
4642         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4643         in as a parameter
4644         (init_regcache_descr): Initialize register_type.  Pass the descr
4645         to init_legacy_regcache_descr.  Use register_type instead of
4646         REGISTER_VIRTUAL_TYPE.
4647         (register_type): New function.
4648         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4649         * regcache.h (register_type): Declare.
4650
4651 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4652
4653         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4654         instead of deprecated_store_return_value.  Fix fallout from
4655         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4656
4657 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4658
4659         * regcache.c (max_register_size): New function.
4660         (init_legacy_regcache_descr): Ensure that max_register_size is
4661         large enough for REGISTER_VIRTUAL_SIZE.
4662         * regcache.h (max_register_size): Declare.
4663
4664 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4665
4666         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4667         store_return_value.
4668         (e500_extract_return_value): Change type of valbuf pointer to
4669         void.
4670
4671 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4672
4673         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4674         workaround.
4675
4676         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4677         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4678         long long) to prevent compiler warning on 64-bit systems.
4679
4680 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4681
4682         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4683         (DEPRECATED_STORE_RETURN_VALUE): New method.
4684         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4685         * gdbarch.h, gdbarch.c: Re-generate.
4686
4687         * values.c (set_return_value): Pass current_regcache to
4688         STORE_RETURN_VALUE.
4689         * arch-utils.h (legacy_store_return_value): Declare.
4690         * arch-utils.c (legacy_store_return_value): New function.
4691         (legacy_extract_return_value): Update parameters.
4692
4693         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4694         STORE_RETURN_VALUE.
4695         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4696         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4697         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4698         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4699         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4700         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4701         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4702         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4703         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4704         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4705
4706         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4707         * i386-tdep.c (i386_extract_return_value): Update.
4708         * arch-utils.c (legacy_extract_return_value): Update.
4709         * frv-tdep.c (frv_gdbarch_init): Update.
4710         * cris-tdep.c (cris_gdbarch_init): Update.
4711         * d10v-tdep.c (d10v_gdbarch_init): Update.
4712         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4713         * m68k-tdep.c (m68k_gdbarch_init): Update.
4714         * mcore-tdep.c (mcore_gdbarch_init): Update.
4715         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4716         * s390-tdep.c (s390_gdbarch_init): Update.
4717         * sparc-tdep.c (sparc_gdbarch_init): Update.
4718         * sh-tdep.c (sh_gdbarch_init): Update.
4719         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4720         * v850-tdep.c (v850_gdbarch_init): Update.
4721         * avr-tdep.c (avr_gdbarch_init): Update.
4722         * ia64-tdep.c (ia64_gdbarch_init): Update.
4723         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4724         * vax-tdep.c (vax_gdbarch_init): Update.
4725         * alpha-tdep.c (alpha_gdbarch_init): Update.
4726         * arm-tdep.c (arm_gdbarch_init): Update.
4727         * mips-tdep.c (mips_gdbarch_init): Update.
4728         * i386-tdep.c (i386_gdbarch_init): Update.
4729
4730 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4731
4732         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4733         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4734
4735 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4736
4737         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4738         problems.
4739
4740 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4741
4742         * infrun.c (handle_inferior_event): Move a comment outside of a
4743         function call, in order to avoid indent reformatting this part
4744         of the code in an unreadable way.
4745
4746 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4747
4748         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4749         when breakpoints fail. Move general breakpoint error messages to
4750         insert_breakpoints.  
4751         * breakpoint.c (insert_breakpoints): Change warnings when
4752         breakpoints are nto inserted to specify the type. Remove call to
4753         memory_error when hardware breakpoints can't be inserted. Remove
4754         multiple calls to warning so all messages are sent to the user at
4755         once.
4756         (delete_breakpoints): Make insert error messsages more explicit.
4757
4758 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4759
4760         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4761         gdbserver/ChangeLog.
4762
4763 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4764
4765         * i386-tdep.c: Include "objfiles.h".
4766         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4767         skip_trampoline_code.
4768         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4769         (CPLUS_MARKER): Define to '.'.
4770
4771         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4772         member.
4773         (linux_corefile_thread_callback): Increase args->num_notes.
4774         (linux_make_note_section): Initialize thread_args.num_notes, and
4775         use it to determine whether notes for any threads were created.
4776
4777 2002-08-23  Donn Terry  <donnte@microsoft.com>
4778
4779         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4780         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4781         and PCUNKILL.
4782         (write_with_trace): Conditionalize out the switch branch handling
4783         PCSHOLD if the corresponding macro is not defined. Likewise for
4784         PRSABORT and PRSTOP.
4785         This change will be needed by the Interix port.
4786
4787 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4788
4789         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4790         write_register wherever possible instead of manipulating the
4791         register bytes directly.
4792         Assign VALUE_CONTENTS to a variable and use that.
4793         The GPR numbers are now dependent on the architecture.
4794         
4795 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4796
4797         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4798         ev_offset fields.
4799         (skip_prologue): Add support for BookE/e500 instructions.
4800         (e500_extract_return_value): New function.
4801         (frame_get_saved_regs): Add support for saving ev registers and
4802         pseudo gpr's.
4803         (e500_store_return_value): New function.
4804         (rs6000_gdbarch_init): Move up default intializations of
4805         deprecated_extract_return_value and store_return_value.  Overwrite
4806         init of store_return_value with e500 specific version.
4807         Set extract_return_value for e500.
4808         
4809 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4810
4811         * blockframe.c (generic_call_dummy_register_unwind): Use
4812         regcache_cooked_read to catch cases in which the variable is
4813         stored in a pseudo register.
4814
4815 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4816
4817         * NEWS: Mention that the i960 has been made obsolete.
4818         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4819         i960-tdep.c
4820         (remote-nrom.o): Obsolete target.
4821         (remote-nindy.o, i960-tdep.o): Ditto.
4822         * remote-nrom.c: Make file obsolete.
4823         * remote-nindy.c, remote-vx960.c: Ditto.
4824         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4825         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4826         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4827         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4828         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4829         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4830         i960-*-vxworks* obsolete.
4831         * MAINTAINERS: Note that the i960 is obsolete.
4832
4833 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4834
4835         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4836         detach to allow reinitialization.
4837
4838 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4839
4840         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4841         attempt).
4842
4843 2002-08-22  Jim Blandy  <jimb@redhat.com>
4844
4845         * coffread.c (coff_symfile_read): Don't try to read the line
4846         number table from disk if the image file doesn't have a symbol
4847         table; we'll never actually look at the info anyway, and Windows
4848         ships DLL's with bogus file offsets for the line number data.
4849
4850 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4851
4852         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4853         an e500 executable.
4854
4855 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4856
4857         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4858         (MSYMBOL_SIZE): Replace macro with function.
4859         (DEFAULT_MIPS_TYPE): Delete unused macro.
4860         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4861         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4862
4863 2002-08-21  Jim Blandy  <jimb@redhat.com>
4864
4865         * valops.c (value_cast): Simplify and correct logic for doing a
4866         static cast from a pointer to a base class to a pointer to a
4867         derived class.
4868
4869 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4870
4871         * infcmd.c (default_print_registers_info): Replace
4872         do_registers_info.
4873         (registers_info): Use gdbarch_print_registers_info instead of
4874         DO_REGISTERS_INFO.
4875         * inferior.h (default_print_registers_info): Replace
4876         do_registers_info.
4877         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4878         (DO_REGISTERS_INFO): Change to a predicate function.
4879         * gdbarch.h, gdbarch.c: Regenerate.
4880         
4881 2002-08-21  Keith Seitz  <keiths@redhat.com>
4882
4883         * gdb-events.sh: Add target-changed event.
4884         * gdb-events.c: Regenerated.
4885         * gdb-events.c: Regenerated.
4886         * valops.c (value_assign): Add target-changed event notification
4887         to inlval_register, lval_memory, and lval_reg_frame_relative.
4888
4889 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4890
4891         * NEWS: Add an entry regarding the improvement of the next/step
4892         operation on Alpha Tru64 multi-processor machines.
4893
4894 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4895
4896         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4897         directores.
4898         * Makefile.in: Update all _h macro definitions.
4899         * Makefile.in (install-gdbtk): Move to install section.
4900         (rdi-share/libangsd.a): Move to end of file.
4901
4902 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4903
4904         * frame.c (frame_register_unwind): When a register, set addrp to
4905         the register's byte.
4906
4907 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4908
4909         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4910         used locally, so move them from the target machine header to here.
4911         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4912         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4913         Make static.
4914         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4915
4916 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4917
4918         * NEWS: Mention that the Apollo line was made obsolete.
4919         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4920         m68*-hp-hpux* obsolete.
4921         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4922         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4923         * buildsym.c (make_blockvector): Make static.
4924         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4925         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4926         (ALLDEPFILES): Remove dstread.c.
4927         (dstread.o): Obsolete make rule.
4928         * dstread.c: Makefile obsolete.
4929         * dst.h: Ditto.
4930         * config/m68k/hp300hpux.mt: Ditto.
4931         * config/m68k/hp300hpux.mh: Ditto.
4932         * config/m68k/hp300bsd.mt: Ditto.
4933         * config/m68k/hp300bsd.mh: Ditto.
4934         * config/m68k/apollo68b.mt: Ditto.
4935         * config/m68k/apollo68v.mh: Ditto.
4936         * config/m68k/apollo68b.mh: Ditto.
4937
4938 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4939
4940         * mips-tdep.c (mips_in_return_stub): Make static.
4941         (mips_gdbarch_init): Set in_solib_return_trampoline.
4942         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4943
4944 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4945
4946         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4947         * gdbarch.c, gdbarch.h: Regenerate.
4948         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4949         Add.
4950         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4951
4952 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4953
4954         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4955         (mips_gdbarch_init): Set skip_trampoline_code, 
4956         in_solib_call_trampoline.
4957         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4958         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4959
4960 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4961
4962         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4963
4964         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4965         vector type for ev registers.
4966         (e500_pseudo_register_read): New function.
4967         (e500_pseudo_register_write): New function.
4968         (e500_dwarf2_reg_to_regnum): New function.
4969         (PPC_UISA_NOFP_SPRS): New macro.
4970         (PPC_EV_REGS): New macro.
4971         (PPC_GPRS_PSEUDO_REGS): New macro.
4972         (registers_e500): New register set for e500.
4973         (variants): Add e500 variant.
4974         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4975         before setting architectural dependent variations.  Initialize ev
4976         registers numbers.  Add case for e500 architecture.  Set the
4977         number of pseudo registers.
4978
4979 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4980
4981         * rs6000-tdep.c: Clean up comments.
4982
4983 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4984
4985         * h8300-tdep.c: Re-indent file.
4986
4987 2002-08-20  Jim Blandy  <jimb@redhat.com>
4988
4989         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4990         default for this.
4991
4992 2002-08-20  Keith Seitz  <keiths@redhat.com>
4993
4994         * breakpoints.c (watch_command_1): Use internal breakpoint
4995         when setting a watchpoint_scope breakpoint.
4996
4997 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
4998
4999         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5000         (build_builtin_type_vec64i): Ditto.
5001         (build_builtin_type_vec128): Ditto.
5002         (build_builtin_type_vec128i): Ditto.
5003
5004 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5005
5006         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5007         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5008         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5009         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5010         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5011         CALL_DUMMY_ADDRESS): Delete.
5012         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5013         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5014         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5015         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5016         push_return_address.
5017         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5018         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5019         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5020         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5021         mips_n32n64_push_arguments, mips_push_return_address,
5022         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5023         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5024
5025 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5026
5027         * mips-tdep.c (mips_frame_num_args): New function.
5028         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5029         frame_saved_pc, frame_args_address, frame_locals_address, 
5030         frame_num_args, and frame_args_skip.
5031         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5032         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5033         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5034         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5035
5036 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5037
5038         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5039         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5040         * mips-tdep.c (mips_store_struct_return): New function.
5041         (mips_extract_struct_value_address): New function.
5042         (mips_gdbarch_init): Set store_struct_return and
5043         extract_struct_value_address.
5044
5045 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5046
5047         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5048         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5049         (read_file_scope): Check that line_header is nonzero before
5050         decoding macro information.
5051
5052 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5053
5054         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5055         flag the general-purpose registers as floating-point on targets
5056         that don't support the floating-point registers.
5057
5058 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5059
5060         * rs6000-tdep.c (altivec_register_p): Delete.
5061         (rs6000_do_altivec_registers): Delete.
5062         (rs6000_altivec_registers_info): Delete.
5063         (rs6000_do_registers_info): Delete.
5064         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5065         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5066
5067 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5068
5069         * infcmd.c (do_registers_info): Print vector registers in hex
5070         format only.
5071         (print_vector_info): Check that printing registers
5072         makes sense.
5073         (print_float_info): Ditto.
5074
5075 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5076
5077         * mips-tdep.c (mips_gdbarch_init): Update.
5078         (mips_o32_extract_return_value): Rewrite.
5079         (mips_o32_store_return_value): Rewrite.
5080         (mips_o32_xfer_return_value): New function.
5081         (mips_xfer_register): Tweak debug print message.  Allow for
5082         buf_offset when dumping the value transfered.
5083
5084 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5085
5086         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5087         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5088         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5089         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5090         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5091
5092 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5093
5094         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5095
5096 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5097
5098         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5099         register.
5100         (P): New macro to define a register as a pseudo register.
5101         (R, R4, R8, R16, FR32, R64, R0): Updated.
5102         (struct variant): Add new fields for number of pseudo registers
5103         and number of total registers.
5104         (tot_num_registers): New macro replacing....
5105         (num_registers): ...deleted macro.
5106         (num_registers): New function.
5107         (num_pseudo_registers): New function.
5108         (variants): Update all variants to intialize new fields correctly.
5109         Postpone initialization of number of pseudo regs and real regs.
5110         (init_variants): New function.
5111         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5112         registers offsets.
5113
5114 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5115
5116         * valops.c (search_struct_field): Change error message to treat
5117         return value of 0 from value_static_field as meaning that field is
5118         optimized out.
5119         (value_struct_elt_for_reference): Ditto.
5120         * values.c (value_static_field): Treat an unresolved location the
5121         same as a nonexistent symbol.  Fix PR gdb/635.
5122         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5123         enclosed.  Fix PR gdb/574.
5124         * MAINTAINERS: Add self to Write After Approval list.
5125
5126 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5127
5128         * mips-tdep.c (mips_xfer_register): New function.
5129         (mips_n32n64_extract_return_value): Rewrite.
5130         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5131         instead of deprecated_extract_return_value.
5132
5133 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5134
5135         * rs6000-tdep.c (TDEP): Delete macro.
5136         (branch_dest): Replace use of TDEP macro with its body.
5137         (rs6000_pop_frame): Ditto.
5138         (rs6000_push_arguments): Ditto.
5139         (rs6000_skip_trampoline_code): Ditto.
5140         (rs6000_frame_saved_pc): Ditto.
5141         (rs6000_frame_chain): Ditto.
5142         (rs6000_register_name): Ditto.
5143         (rs6000_register_byte): Ditto.
5144         (rs6000_register_raw_size): Ditto.
5145         (rs6000_register_virtual_type): Ditto.
5146         (rs6000_register_convertible): Ditto.
5147         (rs6000_convert_from_func_ptr_addr): Ditto.
5148
5149 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5150
5151         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5152         conditionally.
5153         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5154         MIPS_LINUX_JB_ELEMENT_SIZE.
5155         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5156         for MAX_REGISTER_RAW_SIZE arrays.
5157         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5158         MIPS_LINUX_JB_ELEMENT_SIZE.
5159
5160 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5161
5162         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5163
5164 2002-08-19  Aidan Skinner <aidan@velvet.net>
5165
5166         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5167         ada-valprint.c ada-tasks.c.
5168         (YYFILES): Add ada-exp.y.
5169         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5170         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5171         (ada-exp.tab.o): New target.
5172                 
5173 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5174
5175         * regcache.c (regcache_xfer_part): New function.
5176         (regcache_raw_read_part): New function.
5177         (regcache_raw_write_part): New function.
5178         (regcache_cooked_read_part): New function.
5179         (regcache_cooked_write_part): New function.
5180         * regcache.h (regcache_raw_read_part): Declare.
5181         (regcache_raw_write_part): Declare.
5182         (regcache_cooked_read_part): Declare.
5183         (regcache_cooked_write_part): Declare.
5184
5185 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5186
5187         * remote.c (remote_open_1): Add async_p.
5188         (remote_async_open_1): Delete.
5189         (open_remote_target): Delete.
5190         (remote_open, extended_remote_open): Update calls to remote_open_1.
5191         (remote_async_open, extended_remote_async_open): Call
5192         remote_open_1 instead of remote_async_open_1.
5193
5194 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5195
5196         * blockframe.c: Fix a few coding standard violations.
5197
5198 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5199
5200         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5201         here from ...
5202         * config/i386/tm-i386sco5.h: ... here.  File removed.
5203         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5204
5205         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5206         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5207         (TM_FILE): Set to tm-i386.h.
5208         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5209         * config/i386/tm-i386v.h: Remove file.
5210         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5211         instead of "i386/tm-i386v.h".
5212         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5213         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5214         "i386/tm-i386v.h".
5215         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5216         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5217         "i386/tm-i386.h".
5218
5219 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5220
5221         * config/i386/nm-i386v.h: Add protection against
5222         multiple-inclusion.
5223         (i386_register_u_addr): Remove prototype.
5224         (register_u_addr): New prototype.
5225         (REGISTER_U_ADDR): Redefine accordingly.
5226         * i386v-nat.c: Improve several comments.
5227         (i386_register_u_addr): Change signature and rename to
5228         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5229         ubase variable.
5230
5231 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5232
5233         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5234         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5235         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5236         deprecated_extract_return_value.
5237         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5238         rename mips_o32o64_push_arguments.
5239         (mips_gdbarch_init): Update.
5240         (mips_extract_return_value): Delete.
5241         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5242         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5243         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5244         (mips_n32n64_extract_return_value): Clone
5245         mips_extract_return_value.
5246         (mips_store_return_value): Delete.
5247         (mips_o32_store_return_value): Clone mips_store_return_value.
5248         (mips_o64_store_return_value): Clone mips_store_return_value.
5249         (mips_eabi_store_return_value): Clone mips_store_return_value.
5250         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5251
5252 2002-08-18  Aidan Skinner <aidan@velvet.net>
5253
5254         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5255         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5256                 
5257 2002-08-18  Aidan Skinner <aidan@velvet.net>
5258
5259         * ada-lang.c: Run through gdb_indent.sh.
5260         * ada-lang.h: Run through gdb_indent.sh.
5261         * ada-tasks.c: Run through gdb_indent.sh.
5262         * ada-typeprint.c: Run through gdb_indent.sh.
5263         * ada-valprint.c: Run through gdb_indent.sh.
5264
5265 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5266
5267         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5268         ABI.
5269
5270 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5271
5272         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5273
5274         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5275         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5276
5277         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5278         write_register_gen instead of write_register_bytes.
5279
5280         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5281         i[3456]-*-osf1mk* configurations have been made obsolete.
5282         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5283         i[3456]86-*-osf1mk* hosts obsolete.
5284         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5285         targets obsolete.
5286         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5287         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5288         config/i386/i386m3.mt, config/i386/nm-m3.h,
5289         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5290         config/i386/i386mk.mh, config/i386/i386mk.mt,
5291         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5292         obsolete.
5293         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5294         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5295         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5296
5297 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5298
5299         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5300         (hppa_value_returned_from_stack): Declare.
5301         (hppa_extract_return_value): Declare.
5302         * config/pa/hppa.mt: New file.
5303         * configure.tgt: Recognize hppa*-*-*.
5304         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5305
5306 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5307
5308         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5309         comment.
5310
5311 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5312
5313         * top.c (gdb_rl_operate_and_get_next): Make sure
5314         operate-and-get-next functions correctly even when the history
5315         list is completely filled.
5316
5317 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5318
5319         * MAINTAINERS (Target Instruction Set Architectures): Rename
5320         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5321         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5322         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5323         already listed under Host/Native.
5324
5325         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5326         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5327         mips*-*-*.
5328
5329 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5330
5331         * config/ia64/ia64.mt: New file.
5332         * config/alpha/alpha.mt: New file.
5333         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5334         ia64-linux-gnu.  Mention that ia64-elf is broken.
5335         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5336
5337 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5338
5339         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5340         generic_func_frame_valid instead of func_frame_valid.
5341
5342 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5343
5344         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5345         procfs appears to be broken when debugging on multi-processor
5346         machines. So enable software single stepping in order to avoid
5347         using the procfs interface to do next/step operations, using
5348         internal breakpoints instead.
5349
5350         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5351         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5352         make this pc address equal to the value it would have if the
5353         system stepping capability was used. Also set a new flag used
5354         to ensure that we don't readjust the PC one more time later.
5355
5356         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5357         address by DECR_PC_AFTER_BREAK when software single step is
5358         in use for this architecture, as this has already been taken
5359         care of in handle_inferior_event().
5360
5361 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5362
5363         * infrun.c (handle_inferior_event): Minor reformatting, to make
5364         a rather long condition expression easier to read.
5365
5366 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5367
5368         * Makefile.in (gdbtk.o): Move to end of file.
5369         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5370         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5371         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5372         (gdbtk-wrapper.o, gdbres.o): Ditto.
5373
5374 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5375
5376         * Makefile.in (copying.o): Separate out compile rule.
5377         (hpux-thread.o, procfs.o, signals.o): Ditto.
5378         (v850ice.o, z8k-tdep.o): Ditto.
5379         (tui-file.o): Move to TUI section.
5380         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5381         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5382
5383 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5384
5385         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5386         skip_trampoline_code, for better namespace-proofing.   
5387
5388         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5389
5390 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5391
5392         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5393
5394 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5395
5396         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5397         signal, check whether we hit a breakpoint before checking for a
5398         single step breakpoint. Otherwise, GDB fails to notice that a
5399         breakpoint has been hit when stepping onto a breakpoint.
5400
5401 2002-08-16  Keith Seitz  <keiths@redhat.com>
5402
5403         * gdb-events.sh (clear_gdb_event_hooks): New function.
5404         * gdb-events.c: Regenerate.
5405         * gdb-events.h: Regenerate.
5406
5407 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5408
5409         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5410         not_a_sw_breakpoint.
5411         * breakpoint.h (bpstat_stop_status): Add parameter names.
5412
5413 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5414
5415         * remote.c (remote_insert_hw_breakpoint)
5416         (remote_remove_hw_breakpoint): Fix calculation of length field
5417         for Z-packet.
5418
5419 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5420
5421         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5422         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5423         (supply_fpregset): Ditto.
5424         
5425         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5426         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5427         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5428         (TARGET_READ_SP): Delete.
5429         (DO_REGISTERS_INFO): Delete.
5430         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5431         Delete.
5432         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5433         from macros to functions.
5434
5435         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5436         (mips_register_convertible, mips_register_convert_to_virtual,
5437         mips_register_convert_to_raw): Make static.
5438         (mips_read_sp): New function.
5439         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5440         (mips_do_registers_info): Make static.
5441         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5442         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5443         (mips_register_convert_from_type, mips_register_convert_to_type):
5444         New functions.
5445         (mips_gdbarch_init): Set up function_start_offset, 
5446         register_virtual_size, pc_in_sigtramp.
5447
5448 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5449
5450         * infcmd.c (vector_info): New function.
5451         (_initialize_infcmd): Add command "info vector".
5452         (print_vector_info): New function.
5453
5454         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5455         * gdbarch.h, gdbarch.c: Regenerate.
5456
5457 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5458
5459         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5460         ``print_all''.  Only print vector registers when ``print_all''.
5461
5462 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5463
5464         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5465         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5466
5467         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5468         Add `args' parameter.
5469         * gdbarch.h, gdbarch.c: Regenerate.
5470         
5471         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5472         
5473         * infcmd.c (float_info): Call print_float_info.
5474         (print_float_info): New function.  By default, print the
5475         floating-point registers.
5476
5477         * arch-utils.h (default_print_float_info): Delete declaration.
5478         * arch-utils.c (default_print_float_info): Delete function.
5479         
5480 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5481
5482         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5483         out define.
5484
5485         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5486         FRAME.
5487
5488         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5489         * configure.host: Make i[3456]86-*-aix host obsolete.
5490         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5491         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5492         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5493         config/i386/xm-i386aix.h: Make files obsolete.
5494         * i386aix-nat.c: Make file obsolete.
5495         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5496         (i386aix-nat.o): Make target obsolete.
5497
5498         * config/i386/nm-gnu.h: Removed.
5499         * config/i386/nm-i386gnu.h: New file.
5500         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5501         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5502         Moved here from ...
5503         * config/i386/tm-i386gnu.h: ... here.  Removed.
5504         * config/i386/xm-i386gnu.h: Removed.
5505         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5506         (NAT_FILE): Set to nm-i386gnu.h.
5507         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5508         * i386-tdep.c: New file.
5509         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5510         (i386gnu-tdep.o): Specify dependencies.
5511
5512 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5513
5514         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5515         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5516         Adjust a few comments to reflect reality a bit closer.
5517         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5518         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5519         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5520         target_insert_watchpoint, target_remove_watchpoint):
5521         Move defines to ...
5522         * config/i386/nm-i386sco5.h: ... here.
5523         (kernel_u_size): Add prototype.  Improve a few comments and add
5524         protection against multiple inclusion.
5525         
5526         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5527         out define.
5528
5529         * uw-thread.c (SP_ARG0): Define if not already defined.
5530         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5531
5532         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5533
5534         * config/i386/tm-i386.h: Don't include "regcache.h".
5535
5536         * i387-tdep.h (i387_print_float_info): New prototype.
5537         * i387-tdep.c (print_i387_value, print_i387_ext,
5538         print_i387_status_word, print_i387_control_word): Add `struct
5539         ui_file *' argument and use it for output.
5540         (i387_print_float_info): Renamed from i387_float_info.  Add
5541         `struct gdbarch *' and `struct ui_file *' arguments and use the
5542         latter for output.
5543         * i386-tdep.c: Include "i387-tdep.h".
5544         (i386_gdbarch_init): Set print_float_info.
5545         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5546         (FLOAT_INFO): Remove define.
5547
5548 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5549
5550         * mips-tdep.c (mips_push_arguments): Rename to
5551         mips_eabi_push_arguments, and tune for EABI.
5552         (MIPS_REGS_HAVE_HOME_P): Delete.
5553         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5554         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5555         Delete references to mips_regs_have_home_p.
5556
5557 2002-08-14  Keith Seitz  <keiths@redhat.com>
5558
5559         * Makefile.in (install-gdbtk): Create insight plugin directory.
5560         Install plugins.tcl file.
5561
5562 2002-08-14  Keith Seitz  <keiths@redhat.com>
5563
5564         * configure.in: Move SUBDIRS to near top of the file so that
5565         --enable options may add things to it.
5566         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5567         * configure: Regenerate.
5568
5569 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5570
5571         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5572         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5573         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5574
5575 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5576
5577         * vax-tdep.c (vax_get_saved_register): Delete function.
5578         (vax_gdbarch_init): Update.
5579         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5580         (ns32k_gdbarch_init): Update.
5581         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5582         (alpha_gdbarch_init): Update.
5583
5584 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5585
5586         * regcache.c (init_regcache_descr): Overallocate the
5587         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5588         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5589         nr_raw_registers.
5590         (set_register_cached): Add range checking assertions.  Use
5591         current_regcache.
5592
5593 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5594
5595         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5596         numbers for MMX registers.
5597
5598 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5599
5600         * i386-tdep.c (i386_gdbarch_init): Use
5601         generic_unwind_get_saved_register.
5602
5603 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5604
5605         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5606         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5607         target vector.
5608         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5609         Delete.  Add comment regarding this now-deleted target method.
5610
5611 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5612
5613         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5614         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5615         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5616         real PC and the page number (if it's within the memory bank window).
5617         (m68hc11_pseudo_register_write): Likewise when saving.
5618         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5619         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5620         (m68hc11_register_raw_size): And use 32-bit for it.
5621         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5622         16K memory bank is used by the prog; also use the virtual pc.
5623
5624 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5625
5626         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5627         (m68hc11_gdbarch_init): Install it in gdbarch.
5628         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5629         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5630         (MSYMBOL_SIZE): New for documentation.
5631         (insn_return_kind): Enum to specify how a function returns.
5632         (frame_extra_info): Cleanup and record the return mode.
5633         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5634         register in address computation.
5635         (m68hc11_get_return_insn): New to obtain the return instruction used
5636         by the function.
5637         (m68hc11_frame_init_saved_regs): Take into account the return
5638         instruction used by the function for far and interrupt functions.
5639         (m68hc11_init_extra_frame_info): Take into account page register.
5640         (m68hc11_frame_args_address): Adjust according to the return mode.
5641         (show_regs): Print page register only when it's used.
5642
5643 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5644
5645         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5646         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5647         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5648         registers.
5649         (m68hc11_register_raw_size): Likewise.
5650
5651 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5652
5653         * i386-tdep.c (i386_register_name): Handle mmx registers.
5654         (mmx_regnum_p): New function.
5655         (i386_mmx_names): New array.
5656         (mmx_num_regs): New variable.
5657         (i386_pseudo_register_read): New function.
5658         (i386_pseudo_register_write): New function.
5659         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5660
5661         * regcache.c (regcache_raw_read_unsigned): New function.
5662         (regcache_raw_read_signed): New function.
5663         * regcache.h (regcache_raw_read_unsigned): Declare.
5664         (regcache_raw_read_signed): Declare.
5665
5666 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5667
5668         * regcache.c (regcache_raw_read_as_address): Delete function.
5669         (regcache_cooked_read_signed): New function.
5670         (regcache_cooked_read_unsigned): New function.
5671         * regcache.h (regcache_cooked_read_signed): Declare.
5672         (regcache_cooked_read_unsigned): Declare.
5673         (regcache_raw_read_as_address): Delete declaration.
5674
5675         * blockframe.c (generic_read_register_dummy): Use
5676         regcache_cooked_read_unsigned.
5677         * i386-tdep.c (i386_extract_struct_value_address): Use
5678         regcache_cooked_read_unsigned.
5679
5680 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5681
5682         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5683         double sizes according to ELF ABI flags.
5684         (gdbarch_tdep): Record elf_flags.
5685
5686 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5687
5688         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5689         (m6812_prolog): They can appear in 68HC12 function prologue.
5690         (m68hc11_frame_chain): Cleanup.
5691
5692 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5693
5694         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5695         declarations.
5696         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5697         (i386_linux_register_raw_size): Delete function.
5698         (i386_linux_init_abi): Update.
5699         * i386-tdep.c (i386_register_raw_size): Delete function.
5700         (i386_register_byte): Delete function.
5701         (i386_gdbarch_init): Update.
5702         (i386_register_size): Delete array.
5703         (i386_register_offset): Delete array.
5704
5705         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5706         (REGISTER_RAW_SIZE): Delete macro.
5707         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5708         (REGISTER_BYTE): Delete macro.
5709
5710 2002-08-11  Aidan Skinner <aidan@velvet.net>
5711
5712         * ada-lang.c (ada_lookup_partial_symbol)
5713         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5714         prototype names so that grep ^func works properly.
5715
5716         * ada-lang.c (ada_array_element_type)
5717         (ada_lookup_partial_symbol): Fix typos in parameter list.
5718
5719         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5720         Fix prototype names so that grep ^func works properly.
5721         
5722 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5723             Elena Zannoni  <ezannoni@redhat.com>
5724             Martin M. Hunt  <hunt@redhat.com>
5725
5726         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5727         (build_builtin_type_vec128i): Set the vector bit.
5728         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5729         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5730         (build_builtin_type_vec64): New function.
5731         (build_builtin_type_vec64i): New function.
5732         (build_gdbtypes): Initialize builtin_type_vec64 and
5733         builtin_type_vec64i.
5734
5735 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5736
5737         * regcache.c (regcache_dump): Compare the register offset
5738         with REGISTER_BYTE.
5739         * arch-utils.c (generic_register_byte): New function.
5740         * arch-utils.h (generic_register_byte): Declare.
5741         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5742         * gdbarch.h, gdbarch.c: Regenerate.
5743
5744 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5745
5746         * regcache.c: Include "gdbcmd.h"
5747         (_initialize_regcache): Add commands "maintenance print
5748         registers", "maintenance print raw-registers" and "maintenance
5749         print cooked-registers".
5750         (enum regcache_dump_what): Define.
5751         (dump_endian_bytes): New function.
5752         (regcache_dump): New function.
5753         (regcache_print): New function.
5754         (maintenance_print_registers): New function.
5755         (maintenance_print_raw_registers): New function.
5756         (maintenance_print_cooked_registers): New function.
5757         * Makefile.in (regcache.o): Update dependencies.
5758
5759 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5760
5761         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5762         (mips_push_arguments): Correct some comments.  Use paddr_nz
5763         for printing addresses in debug output.  Replace static
5764         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5765         (mips_n32n64_push_arguments): New function, cloned from
5766         mips_push_arguments and tuned for the n32/n64 ABI.
5767         (mips_push_register): Buffer needs dynamic allocation.
5768         (mips_print_register): Ditto.
5769         (do_gp_register_row): Ditto.
5770         (mips_store_return_value): Ditto.
5771         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5772
5773 2002-08-09  Don Howard  <dhoward@redhat.com>
5774
5775         * memattr.c (mem_info_command): Print special case of upper bound
5776         as max CORE_ADDR + 1.
5777
5778 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5779
5780         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5781         returns structs by ref if they're too big to fit in two registers.
5782
5783 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5784
5785         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5786         saved regs value.
5787         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5788         mips_find_saved_regs().
5789         (mips_pop_frame): Likewise.
5790
5791 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5792
5793         * blockframe.c (frame_saved_regs_register_unwind): Revise
5794         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5795         frames are in use.
5796
5797 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5798         
5799         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5800         T-packets; the 'a' is not taken as a register number.
5801         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5802         (remote_stopped_data_address): New functions; add to target
5803         vector.
5804         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5805         prototypes to match other implementations of this
5806         function. replace integer argument with pointer -- the length
5807         field in the Z-packet is the length of what is pointed to or 1 if
5808         pointer is null. Add to target vector.
5809         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5810         target vector.
5811
5812         From Mark Salter:
5813         * remote.c (remote_wait): Add support to extract optional
5814         watchpoint information from T-packet. Ignore unrecognized
5815         optional info in T-packet.
5816         (remote_async_wait): Ditto.
5817
5818 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5819
5820         * cli/cli-dump.c: Change fopen modes to use binary open modes
5821         as defined in include/fopen-bin.h throughout.
5822
5823 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5824
5825         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5826
5827 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5828
5829         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5830         assertion failure by returning early after a warning.
5831
5832 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5833
5834         * mips-tdep.c (mips_find_saved_regs): Make static.
5835         (mips_frame_init_saved_regs): New function.
5836         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5837         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5838         (mips_find_saved_regs): Delete declaration.
5839
5840 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5841
5842         * remote.c (remote_wait, remote_async_wait): Change
5843         thread_num from int to ULONGEST.
5844         (unpack_varlen_hex): Change result parameter from
5845         int * to ULONGEST *.
5846
5847 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5848
5849         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5850         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5851         powerpc*-*-*.
5852         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5853
5854 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5855
5856         * gcore.c (override_derive_stack_segment): Delete variable.
5857         (preempt_derive_stack_segment): Delete function.
5858         (derive_stack_segment): Delete function.
5859         (default_derive_stack_segment): Renamed to derive_stack_segment.
5860         (override_derive_heap_segment): Delete variable.
5861         (preempt_derive_heap_segment): Delete function.
5862         (derive_heap_segment): Delete function.
5863         (default_derive_heap_segment): Rename to derive_heap_segment.
5864
5865 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5866
5867         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5868         * mips-tdep.c (mips_EABI_use_struct_convention, 
5869         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5870         New functions.  (mips_use_struct_convention): Delete.
5871         (mips_gdbarch_init): set use_gdbarch_convention.
5872
5873 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5874
5875         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5876         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5877         mips_o32_reg_struct_has_addr): New functions.
5878         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5879
5880 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5881
5882         * regcache.c (pseudo_register): Delete function.
5883         (fetch_register): Delete function.
5884         (store_register): Delete function.
5885         (regcache_raw_read, legacy_read_register_gen): Use
5886         target_fetch_registers instead of fetch_register.
5887         (legacy_write_register_gen, regcache_raw_write): Use
5888         target_store_register instead of store_register.
5889         (write_register_bytes): Ditto.
5890
5891         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5892         (STORE_PSEUDO_REGISTER): Delete.
5893         * gdbarch.h, gdbarch.c: Regenerate.
5894
5895 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5896
5897         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5898         write dump file binary.
5899
5900 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5901
5902         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5903         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5904         (mips_gdbarch_init): Set N32 target to be mips64.
5905
5906 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5907
5908         * frame.c (find_saved_register): Break out of loop once saved
5909         register address is found.  Don't mention sparc in loop comment
5910         anymore.
5911
5912 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5913
5914         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5915         mips_default_saved_regsize to 8.
5916
5917 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5918
5919         * gcore.c: Do not include <sys/procfs.h>.
5920         * Makefile.in (gcore.o): Update dependencies.
5921
5922 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5923
5924         * configure.tgt: Make arc-*-* obsolete.
5925         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5926         * MAINTAINERS: Make arc-elf obsolete.
5927         * arc-tdep.c: Make file obsolete.
5928         * config/arc/arc.mt: Ditto.
5929         * config/arc/tm-arc.h: Ditto.
5930
5931 2002-08-05  Theodore A. Roth  <troth@verinet.com>
5932
5933         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5934
5935 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
5936
5937         * mcore-tdep.c (mcore_gdbarch_init): Use
5938         generic_unwind_get_saved_register instead of
5939         generic_get_saved_register.
5940         * v850-tdep.c (v850_gdbarch_init): Ditto.
5941         * frv-tdep.c (frv_gdbarch_init): Ditto.
5942         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5943         * s390-tdep.c (s390_gdbarch_init): Ditto.
5944         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5945         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5946         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5947
5948 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
5949
5950         * objfiles.h: Add missing #include "symfile.h"
5951
5952         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5953
5954 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
5955
5956         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5957         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5958         of FIELD_BITSIZE.
5959
5960 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
5961
5962         * NEWS: Cleanup and nitpick.
5963
5964 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5965
5966         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5967
5968 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
5969
5970         * Makefile.in (gdbtk-bp.o): Update dependencies.
5971         (gdbtk-register.o): Ditto.
5972         (gdbtk-varobj.o): Ditto.
5973
5974 2002-08-03  Andrew Cagney  <cagney@redhat.com>
5975
5976         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5977         m68hc11_fetch_pseudo_register.
5978         (m68hc11_pseudo_register_write): Replace
5979         m68hc11_store_pseudo_register.
5980         (m68hc11_gdbarch_init): Update.
5981
5982 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
5983
5984         * gdbarch.sh: Include "gdb_string.h".
5985         * gdbarch.c: Regenerate.
5986
5987         * regcache.c: Include "gdb_string.h".
5988         * ax-general.c: Ditto.
5989         * varobj.c: Ditto.
5990         * std-regs.c: Ditto.
5991         * fbsd-proc.c: Ditto.
5992         * thread.c: Ditto.
5993
5994         * Makefile.in (regcache.o): Update dependencies.
5995         (thread.o, gdbarch.o): Ditto.
5996         (ax-general.o, gdbarch.o): Ditto.
5997         (varobj.o, std-regs.o): Ditto.
5998         (fbsd-proc.o): Specify dependencies.
5999
6000 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6001
6002         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6003         regnum.
6004         (regcache_cooked_write): Ditto.
6005
6006 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6007
6008         * regcache.c (regcache_cooked_read): New function.
6009         (regcache_cooked_write): New function.
6010         (read_register_gen): Rewrite using regcache_cooked_read.
6011         (write_register_gen): Rewrite using regcache_cooked_write.
6012
6013         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6014         Declare.
6015
6016 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6017
6018         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6019         Replace the architecture methods register_read and register_write.
6020         * gdbarch.h, gdbarch.c: Regenerate.
6021         * regcache.c (init_regcache_descr): Update.
6022         (read_register_gen): Update.
6023         (write_register_gen): Update.
6024         (supply_register): Update comment.
6025
6026         * sh-tdep.c (sh_gdbarch_init): Update.
6027         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6028         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6029         pointer.  Update code.
6030         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6031         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6032         void pointer.  Update code.
6033         (sh64_register_write): Delete.
6034         (sh4_register_read): Delete.
6035         (sh64_register_read): Delete.
6036         (sh4_register_write): Delete.
6037         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6038         void pointer, `to' parameter a void pointer.
6039         (sh_sh64_register_convert_to_raw): Ditto.
6040
6041 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6042
6043         * mips-tdep.c (mips_register_virtual_type): Use architecture
6044         invariant return values.
6045
6046 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6047
6048         * linux-proc.c: Include "gdb_string.h".
6049         * Makefile.in (linux-proc.o): Update dependency list.
6050
6051 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6052
6053         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6054         comment.
6055
6056 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6057
6058         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6059         to_insert_watchpoint, to_remove_watchpoint,
6060         to_stopped_by_watchpoint, to_stopped_data_address,
6061         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6062         target vecctor. Define their corresponding macros so they call
6063         them.
6064         
6065         * target.c: Add default and debug versions of for
6066         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6067         to_insert_watchpoint, to_remove_watchpoint,
6068         to_stopped_by_watchpoint, to_stopped_data_address,
6069         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6070
6071 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6072
6073         * mips-tdep.c (mips_register_virtual_type): New function.
6074         (mips_gdbarch_init): Register mips_register_virtual_type()
6075         with gdbarch machinery.
6076         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6077         this file instead of tm-bigmips.h.
6078         (MIPS_REGSIZE): Delete this macro.
6079         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6080         multiarch version in mips-tdep.c will be found.
6081
6082 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6083
6084         * NEWS: Menion that CHILL has been made obsolete.
6085
6086         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6087         * stabsread.c (read_range_type): Ditto.
6088         * gdbtypes.h: Ditto.
6089         * language.c (binop_type_check): Ditto.
6090         (binop_result_type): Ditto.
6091         (integral_type): Ditto.
6092         (character_type): Ditto.
6093         (string_type): Ditto.
6094         (boolean_type): Ditto.
6095         (structured_type): Ditto.
6096         (lang_bool_type): Ditto.
6097         (binop_type_check): Ditto.
6098         * language.h (_LANG_chill): Ditto.
6099         * dwarfread.c (set_cu_language): Ditto.
6100         * dwarfread.c (CHILL_PRODUCER): Ditto.
6101         * dwarfread.c (handle_producer): Ditto.
6102         * expression.h (enum exp_opcode): Ditto.
6103         * eval.c: Ditto for comments.
6104         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6105         * expprint.c (print_subexp): Ditto.
6106         (print_subexp): Ditto.
6107         * valops.c (value_cast): Ditto.
6108         (search_struct_field): Ditto.
6109         * value.h (COERCE_VARYING_ARRAY): Ditto.
6110         * symfile.c (init_filename_language_table): Ditto.
6111         (add_psymbol_with_dem_name_to_list): Ditto.
6112         * valarith.c (value_binop): Ditto.
6113         (value_neg): Ditto.
6114         * valops.c (value_slice): Ditto.
6115         * symtab.h (union language_specific): Ditto.
6116         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6117         (SYMBOL_DEMANGLED_NAME): Ditto.
6118         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6119         * defs.h (enum language): Ditto.
6120         * symtab.c (got_symtab): Ditto.
6121         * utils.c (fprintf_symbol_filtered): Ditto.
6122
6123         * ch-typeprint.c: Make file obsolete.
6124         * ch-valprint.c: Make file obsolete.
6125         * ch-lang.h: Make file obsolete.
6126         * ch-exp.c: Make file obsolete.
6127         * ch-lang.c: Make file obsolete.
6128
6129         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6130         CHILL_LIB.
6131         (TARGET_FLAGS_TO_PASS): Ditto.
6132         (CHILLFLAGS): Obsolete.
6133         (CHILL): Obsolete.
6134         (CHILL_FOR_TARGET): Obsolete.
6135         (CHILL_LIB): Obsolete.
6136         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6137         ch-valprint.c.
6138         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6139         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6140         ch-lang.o.
6141         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6142         targets.
6143
6144 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6145
6146         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6147         This does not change anything at the moment, but will be helpful
6148         later when full Ada support is integrated.
6149
6150 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6151
6152         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6153         help message.
6154
6155 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6156
6157         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6158         and save it in a local variable.  Use variable in later test.
6159
6160 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6161
6162         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6163         test.  (Thanks to Daniel Jacobowitz.)
6164         
6165 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6166
6167         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6168         (mips_abi_strings): Add "n64".
6169         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6170
6171 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6172
6173         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6174         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6175
6176 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6177
6178         * utils.c (host_pointer_to_address, address_to_host_pointer):
6179         Use gdb_assert() instead of explicit call to internal_error().
6180
6181 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6182
6183         * Makefile.in (rs6000-nat.o): Update dependencies.
6184
6185         From Nicholas Duffek:
6186         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6187         (aix-thread.o): New rule.
6188         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6189         * config/powerpc/aix432.mh: New file.
6190
6191 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6192
6193         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6194         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6195         (fetch_core_registers, ppc_linux_supply_gregset)
6196         (ppc_linux_supply_fpregset): New functions.
6197         (ppc_linux_regset_core_fns): New.
6198         (_initialize_ppc_linux_tdep): Call add_core_fns.
6199         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6200         and ppc_linux_supply_gregset.
6201         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6202         (supply_fpregset): Call ppc_linux_supply_fpregset.
6203         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6204         corelow.o.
6205         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6206
6207 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6208
6209         * symtab.c (lookup_symbol): Demangle before lowercasing.
6210
6211 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6212
6213         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6214         declaration.
6215         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6216         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6217         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6218         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6219         "gdb_string.h".
6220         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6221         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6222         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6223         (avr-tdep.o, mon960-rom.o): Ditto.
6224         (aout_stabs_gnu_h): Define.
6225         (symtab_h): Remove $(gdb_obstack_h).
6226
6227 2002-07-30  Jim Blandy  <jimb@redhat.com>
6228
6229         Patch from David Carlton <carlton@math.stanford.edu>:
6230         * gdbinit.in: Move the `dir' commands that add GDB's own source
6231         directory to the search path to the end, so that the `gdb' source
6232         directory will be searched first.
6233
6234 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6235
6236         * gdb_obstack.h: New file.
6237         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6238         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6239         * objfiles.h: Include "gdb_obstack.h".
6240         * Makefile.in (gdb_obstack_h): Define.
6241         (symtab_h): Add $(gdb_obstack_h).
6242         (objfiles_h): Add $(gdb_obstack_h).
6243         
6244         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6245         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6246         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6247         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6248         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6249         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6250         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6251         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6252
6253         * Makefile.in (bcache.o): Update dependencies.
6254         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6255         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6256         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6257         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6258         (stabsread.o, symfile.o, symmisc.o): Ditto.
6259         (symtab.o, typeprint.o, macroexp.o): Ditto.
6260         (macrotab.o, mdebugread.o): Ditto.
6261         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6262         (coff_ecoff_h, aout_aout64_h): Define.
6263         (aout_stabs_gnu_h, libaout_h): Define.
6264
6265 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6266
6267         * regcache.c (struct regcache_descr): Rename nr_registers to
6268         nr_cooked_registers.  Revise comments describing the structure
6269         member fields.
6270         (init_regcache_descr): Update.
6271         (init_legacy_regcache_descr): Update.
6272         (read_register_gen, write_register_gen): When a cooked register in
6273         the raw register range, directly access the value from the raw
6274         register cache.
6275
6276 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6277
6278         * z8k-tdep.c: Do not include "obstack.h".
6279         * h8300-tdep.c, h8500-tdep.c: Ditto.
6280         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6281         * valprint.c, v850-tdep.c: Ditto.
6282         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6283         * mn10200-tdep.c: Ditto.
6284
6285         * Makefile.in (z8k-tdep.o): Update dependencies.
6286         (m68hc11-tdep.o, valprint.o): Ditto.
6287         (v850-tdep.o, d10v-tdep.o): Ditto.
6288         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6289         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6290         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6291         (sh_opc_h, gdb_sim_sh_h): Define.
6292         (elf_sh_h, elf_bfd_h): Define.
6293         (opcode_m68hc11_h): Define.
6294         (OPCODES_SRC, OPCODES_DIR): define.
6295         (OPCODES): Use $(OPCODES_DIR).
6296         (gdb_sim_d10v_h): Rename sim_d10v_h.
6297         (gdb_sim_arm_h): Rename sim_arm_h.
6298
6299 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6300
6301         * utils.c (host_pointer_to_address, address_to_host_pointer):
6302         Change internal_error() message to indicate function responsible
6303         for the error.
6304
6305 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6306
6307         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6308         calls to local_hex_string_custom().
6309
6310 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6311
6312         * irix5-nat.c: Move IRIX shared library support from here...
6313         * solib-irix.c: ...to here.  Revised substantially to work with
6314         generic solib framework.
6315
6316         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6317         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6318         * mips-irix-tdep.c: New file.
6319
6320         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6321         (mips-irix-tdep.o, solib-irix.o): New rules.
6322         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6323         solib-irix.o.
6324         * config/mips/irix6.mt (TDEPFILES): Likewise.
6325         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6326
6327 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6328
6329         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6330         disabled (via ``#if 0'') includes.
6331
6332 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6333
6334         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6335         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6336         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6337         Add support for the fpscr register.
6338         * rs6000-nat.c (regmap, fetch_inferior_registers)
6339         (store_inferior_registers, fetch_core_registers): Likewise.
6340
6341 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6342
6343         * rs6000-nat.c (language.h): Include.
6344         (special_regs): Delete this array.
6345         (regmap): New function.
6346         (fetch_register, store_register):  Use regmap() to map gdb
6347         register numbers to ptrace register numbers.  Also, use
6348         outputs from regmap() to make decisions regarding type of
6349         ptrace() call to make.  In particular, don't compare against
6350         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6351         (fetch_inferior_registers, store_inferior_registers): Where
6352         possible, obtain register numbers from tdep struct.  Don't
6353         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6354         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6355         (LAST_UISA_SP_REGNUM): Delete.
6356         
6357 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6358
6359         * rs6000-nat.c (ppc-tdep.h): Include.
6360         (fetch_registers, store_register, fetch_core_registers): Don't
6361         access registers[] directly.  Instead, use supply_register() or
6362         regcache_collect() as appropriate.
6363         (find_toc_address): Format hex address with local_hex_string().
6364
6365 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6366
6367         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6368         bfd/elf32-frv.c.
6369
6370 2002-07-24  Tom Tromey  <tromey@redhat.com>
6371
6372         * jv-exp.y: Marked all strings with _().
6373         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6374         internal_error.
6375         (MethodInvocation, CastExpression, parse_number, yyerror,
6376         java_type_from_name, push_expression_name, yylex): Typo fixes.
6377
6378 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6379
6380         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6381         (tee_file_flush, tee_file_write, tee_file_fputs)
6382         (tee_file_isatty): New.
6383         * ui-file.h (tee_file_new): Add prototype.
6384
6385 2002-07-24  Aidan Skinner <aidan@velvet.net>
6386
6387         * ada-lang.c: Change k&r style function definitions to prototyped
6388         form.
6389         * ada-typeprint.c: Change k&r style function definitions to prototyped
6390         form.
6391         * ada-valprint.c: Change k&r style function definitions to prototyped
6392         form.
6393         
6394 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6395
6396         * README: Remove reference to remote-bug.
6397         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6398         remote-bug.c.
6399         (m88k-nat.o): Delete rule.
6400         (m88k-tdep.o): Delete rule.
6401         (remote-bug.o): Delete rule.
6402         * MAINTAINERS: Mark as obsolete.
6403         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6404         * m88k-tdep.c: Make file obsolete.
6405         * config/m88k/m88k.mh: Ditto.
6406         * config/m88k/delta88v4.mh: Ditto.
6407         * config/m88k/delta88v4.mt: Ditto.
6408         * config/m88k/delta88.mt: Ditto.
6409         * config/m88k/delta88.mh: Ditto.
6410         * remote-bug.c: Ditto.
6411         * config/m88k/tm-delta88.h: Ditto.
6412         * config/m88k/nm-delta88v4.h: Ditto.
6413         * config/m88k/xm-delta88.h: Ditto.
6414         * config/m88k/xm-dgux.h: Ditto.
6415         * config/m88k/tm-m88k.h: Ditto.
6416         * config/m88k/nm-m88k.h: Ditto.
6417         * config/m88k/tm-delta88v4.h: Ditto.
6418         * m88k-nat.c: Ditto.
6419         * cxux-nat.c: Ditto.
6420         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6421         and m88*-*-* obsolete.
6422         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6423         m88*-*-* obsolete.
6424
6425 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6426
6427         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6428         constant.  Same for local pointer variables.
6429         (extract_signed_integer): Ditto.
6430         * defs.h (extract_unsigned_integer): Update.
6431         (extract_signed_integer): Update.
6432
6433 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6434
6435         * regcache.c (regcache_raw_write): Change buf parameter to a
6436         constant void pointer.
6437         (regcache_raw_read): Change buf parameter to a void pointer.
6438         (legacy_write_register_gen): Change myaddr parameter a constant
6439         void pointer.
6440         (supply_register): Change val parameter to a const void pointer.
6441         * regcache.h (regcache_raw_write): Update declaration.
6442         (regcache_raw_read): Update declaration.
6443         (supply_register): Update declaration.
6444
6445 2002-07-24  Tom Tromey  <tromey@redhat.com>
6446
6447         * defs.h (gdb_readline_wrapper): Declare.
6448         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6449         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6450         * top.c (gdb_readline_wrapper): New function.
6451         (command_line_input): Use it.
6452
6453 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6454
6455         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6456         regcache_read and regcache_write.
6457         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6458         * regcache.c: Update.
6459         * sh-tdep.c (sh64_push_arguments): Update comment.
6460         (sh_pseudo_register_read): Update.
6461         (sh_pseudo_register_write): Update.
6462         (sh4_register_read): Update.
6463         (sh4_register_write): Update.
6464         (sh64_pseudo_register_read): Update.
6465         (sh64_pseudo_register_write): Update.
6466         (sh64_register_read): Update.
6467         (sh64_register_write): Update.
6468         * i386-tdep.c (i386_extract_return_value): Update.
6469         (i386_extract_struct_value_address): Update.
6470         (i386_extract_return_value): Update.
6471         * blockframe.c (generic_read_register_dummy): Update.
6472         (generic_call_dummy_register_unwind): Update
6473         * infrun.c (write_inferior_status_register): Update.
6474
6475 2002-07-23  Jim Blandy  <jimb@redhat.com>
6476
6477         * parser-defs.h (expression_context_pc): Make this extern.
6478         (Thanks to Michael Snyder.)
6479
6480 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6481
6482         GDB 5.2.1 released from 5.2 branch.
6483         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6484         * README: Update to mention 5.2.1.
6485
6486 2002-07-23  Mark Salter  <msalter@redhat.com>
6487
6488         * remote.c (remote_read_bytes): Fix check for error.
6489
6490 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6491
6492         * aix-thread.c (language.h): Include.
6493         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6494         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6495         Print newlines at end of debug messages.
6496         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6497         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6498
6499 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6500
6501         * aix-thread.c (ppc-tdep.h): Include.
6502         (special_register_p): New function.
6503         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6504         (store_regs_user_thread): Use register number information from
6505         gdbarch_tdep struct instead of hardcoded offsets relative to
6506         FIRST_UISA_SP_REGNUM.
6507         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6508         special_register_p() instead of using FPLAST_REGNUM and
6509         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6510         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6511         will be MQ's register number.
6512
6513 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6514
6515         * aix-thread.c (ops): Rename to aix_thread_ops.
6516         (base_ops): Rename to base_target.
6517         (ops_attach): Rename to aix_thread_attach.
6518         (ops_detach): Rename to aix_thread_detach.
6519         (ops_resume): Rename to aix_thread_detach.
6520         (ops_wait):   Rename to aix_thread_wait.
6521         (ops_kill):   Rename to aix_thread_kill.
6522         (init_ops):   Rename to init_aix_thread_ops.
6523         (ops_fetch_register): Rename to aix_thread_fetch_register.
6524         (ops_store_register): Rename to aix_thread_store_register.
6525         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6526         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6527         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6528         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6529         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6530         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6531         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6532         (store_regs_lib):  Rename to store_regs_user_thread.
6533         (store_regs_kern): Rename to store_regs_kernel_thread.
6534
6535 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6536
6537         * aix-thread.c (ops_prepare_to_store): Eliminate.
6538         (init_ops): Don't initialize ops.prepare_to_store.
6539         (store_regs_kern): Pre-fetch register buffers from child, 
6540         because some registers may not be in the cache.  Copy
6541         regs from register cache only if they are cached.
6542         (store_regs_lib): Copy regs from register cache only
6543         if they are cached.
6544         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6545         fill_gprs64): Ditto.
6546
6547 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6548
6549         * aix-thread.c (gdb_assert.h): Include.
6550         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6551         register sizes (from register cache) match size of buffer holding
6552         register data.
6553         (fill_sprs32): Change parameter types to match those in the ptrace()
6554         buffer.
6555         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6556         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6557
6558 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6559
6560         * aix-thread.c (supply_sprs64): Cosmetic change.
6561         (supply_sprs32): Cosmetic change.
6562         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6563         (fill_sprs64): Use regcache_collect instead of read_register.
6564         (store_regs_lib): Use regcache_collect instead of 
6565         read_register.  Use fill_sprs32 instead of fill_sprs64,
6566         if debugging a 32-bit architecture.
6567         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6568         out of the register cache, instead of passing a pointer into
6569         the register cache directly to ptrace.  Use regcache_collect
6570         insteaad of read_register.
6571         (ops_prepare_to_store): Use target_read_registers instead
6572         of read_register_bytes.
6573
6574 2002-07-20  Aidan Skinner <aidan@velvet.net>
6575
6576         * MAINTAINERS: Add self under write after approval. 
6577                 
6578 2002-07-20  Aidan Skinner <aidan@velvet.net>
6579
6580         * ada-tasks.c: Change k&r style function definitions to prototyped
6581         form.
6582                 
6583 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6584
6585         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6586         * x86-64-tdep.c: Include "objfiles.h".
6587         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6588         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6589
6590 2002-07-17  Michal Ludvig  <michal@suse.cz>
6591
6592         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6593         (update_context): Initialise cfa variable.
6594
6595 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6596
6597         * aix-thread.c: Shorten some long lines.  
6598         Bring comments into line with code spec.
6599
6600 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6601
6602         * infrun.c: Re-indent using gdb_indent.sh.
6603
6604 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6605
6606         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6607         Leave the indentation temporarily untouched, to minimize the diffs.
6608
6609 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6610
6611         * stabsread.c: Make os9k sections of the code obsolete,
6612         for real this time.
6613         * stabsread.h: Make os9k sections of the code obsolete.
6614
6615 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6616
6617         * linux-low.c (regsets_store_inferior_registers): Add free()
6618         at the end of a loop to prevent memory leak.
6619         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6620         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6621         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6622         line a comment.
6623         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6624
6625 2002-07-17  Jim Blandy  <jimb@redhat.com>
6626
6627         * macrocmd.c (info_macro_command): Remove newline from error
6628         message.
6629
6630 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6631
6632         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6633         (sh_gdbarch_init): Use it for sh-dsp.
6634
6635 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6636
6637         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6638         64-bit DWARF2 format.
6639
6640 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6641
6642         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6643         <sys/proc.h> when not available.
6644
6645 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6646
6647         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6648         * stabsread.c: Make os9k sections of the code obsolete.
6649         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6650         * config/i386/i386os9k.mt: Make file obsolete.
6651         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6652         (COMMON_OBS): Remove os9kread.o
6653         (SFILES): Remove os9kread.c.
6654         (os9kread.o, remote-os9k.o): Make target obsolete.
6655         * remote-os9k.c: Make file obsolete.
6656         * os9kread.c: Make file obsolete.
6657         * Makefile.in
6658
6659 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6660
6661         * NEWS: Mention that the FR30 has been made obsolete.
6662         * fr30-tdep.c: Make file obsolete.
6663         * config/fr30/tm-fr30.h: Ditto.
6664         * config/fr30/fr30.mt: Ditto.
6665         * configure.tgt: Make fr30-*-elf obsolete.
6666         * MAINTAINERS: Make fr30-elf obsolete.
6667
6668 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6669
6670         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6671         found is not inside a section.
6672
6673 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6674
6675         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6676         strerror().
6677         (pdc_realloc): Use xrealloc() instead of realloc().
6678
6679 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6680
6681         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6682         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6683         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6684         macros.
6685
6686 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6687
6688         * aix-thread.c (ptrace_check): Eliminate goto.
6689         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6690         problem.
6691
6692 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6693
6694         * aix-thread.c (gdbcmd.h): Include.
6695         (DEBUG, DBG, DBG2, dbg): Eliminate.
6696         (debug_aix_thread): New static global.
6697         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6698         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6699         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6700         invocations to DBG and DBG2 macros to test against
6701         ``debug_aix_thread'' and call fprintf_unfiltered().
6702         (_initialize_aix_thread): Add new command "set debug aix-thread".
6703
6704 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6705
6706         From Gerhard Tonn <TON@de.ibm.com>:
6707         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6708         instead of supply_register.
6709
6710 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6711
6712         * dwarf2cfi.c: Include "gdb_assert.h".
6713         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6714         non-NULL.
6715         (update_context): Do not use __func__.  Add missing ``break''.
6716         (update_context): Do not use __func__.
6717
6718 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6719
6720         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6721         and its setting.  Set gdbarch instruction printing functions
6722         directly.  For non-rs6000 case use new function
6723         gdb_print_insn_powerpc.
6724         (gdb_print_insn_powerpc): New function.
6725
6726 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6727
6728         * NEWS: Mention that the d30v has been marked obsolete.
6729         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6730         * configure.tgt: Mark d30v-*-* as obsolete.
6731         * d30v-tdep.c: Mark file as obsolete.
6732         * config/d30v/d30v.mt: Ditto.
6733         * config/d30v/tm-d30v.h: Ditto.
6734
6735 2002-07-13  Aidan Skinner <aidan@velvet.net>
6736
6737         * ada-tasks.c (add_task_entry): replace calls to
6738         malloc() with xmalloc
6739         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6740         
6741         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6742         ada_finish_decode_line_1, all_sals_for_line
6743         ada_breakpoint_rewrite): replace calls to free() with xfree()
6744                 
6745 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6746
6747         From Nicholas Duffek (with minor changes by Martin Hunt, 
6748         Louis Hamilton, and Kevin Buettner):
6749         * aix-thread.c: New file.
6750
6751 2002-07-12  Petr Sorfa <petrs@caldera.com>
6752
6753         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6754         complaint for invalid attribute class or form.
6755         (read_func_scope): DW_AT_frame_base
6756         better handling of DW_AT_block*.
6757         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6758         better handling of DW_AT_block*.
6759         (read_common_block): DW_AT_location
6760         better handling of DW_AT_block*.
6761         (read_partial_die): DW_AT_location better handling
6762         of DW_AT_block*.
6763         (new_symbol): DW_AT_external better handling of
6764         DW_AT_block*. Proper initialization of variable
6765         "addr".
6766         (attr_form_is_block): New function that returns true
6767         if the attribute's form is of DW_FORM_block*.
6768
6769 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6770
6771         * valops.c (find_method_list): Remove comment about
6772         removed STATIC_MEMFUNCP argument.
6773         (value_find_oload_method_list): Likewise.
6774
6775 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6776
6777         From Nicholas Duffek:
6778         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6779         target_new_objfile_hook.
6780
6781 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6782
6783         From Nicholas Duffek:
6784         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6785         csect.
6786
6787 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6788
6789         * MAINTAINERS: Mention --enable-sim-build-warnings.
6790         (m68hc11-elf): Disable sim build warnings.
6791         (m32r-elf): Mark as broken obsolete candidate.
6792         (x86_64-linux-gnu): Mark as buildable with -Werror.
6793         (arm-elf): Change -w to ``,'' which enables warnings but not
6794         -Werror.
6795
6796 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6797
6798         * bcache.h: Update copyright.
6799         (struct bstring, struct bcache): Move definition to "bcache.c".
6800         Replaced by opaque declaration.
6801         (bcache_xfree): Replace free_bcache.
6802         (bcache_xmalloc, bcache_memory_used): Declare.
6803         
6804         * bcache.c: Update copyright.
6805         (struct bstring, struct bcache): Moved to here from "bcache.h".
6806         Update comments.
6807         (bcache_xmalloc, bcache_memory_used): New functions.
6808         (bcache_xfree): Replace function free_bcache.
6809         
6810         * Makefile.in (objfiles.o): Add $(bcache_h).
6811         (objfiles_h): Remove $(bcache_h).
6812         (symfile.o): Add $(bcache_h).
6813
6814         * symmisc.c: Update copyright.
6815         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6816         (print_objfile_statistics): Use bcache_memory_used.
6817
6818         * symfile.c: Include "bcache.h".
6819         (reread_symbols): Use bcache_xfree.
6820         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6821         (add_psymbol_to_list): Pass psymbol_cache by value.
6822         (add_psymbol_with_dem_name_to_list): Ditto.
6823
6824         * objfiles.h: Update copyright.
6825         (struct bcache): Declare opaque.  Do not include "bcache.h".
6826         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6827         bcache'' pointers.
6828         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6829
6830         * objfiles.c: Include "bcache.h".  Update copyright.
6831         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6832         macro_cache.
6833         (free_objfile): Use bcache_xfree.
6834
6835 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6836
6837         * monitor.c (monitor_fetch_register): Make name a constant.
6838         (monitor_store_register): Same.
6839
6840 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6841
6842         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6843         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6844         (finish_block) For non-function blocks, hash the symbol table.  For
6845         function blocks, mark the symbol table as unhashed.
6846         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6847         (msymbol_hash_iw): Likewise.
6848         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6849         value.
6850         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6851         (lookup_minimal_symbol): Likewise for both.
6852         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6853         hashtable.
6854         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6855         (ALL_BLOCK_SYMBOLS): Update.
6856         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6857         (struct symbol): Add `hash_next' pointer.
6858         * symtab.c (lookup_block_symbol): Search using the hash table when
6859         possible.
6860         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6861         (search_symbols, find_addr_symbol): Likewise.
6862
6863         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6864         (read_dst_symtab): Likewise.
6865         * jv-lang.c (get_java_class_symtab): Likewise.
6866         * mdebugread.c: Include "gdb_assert.h".
6867         (shrink_block): Assert that the block being modified is not hashed.
6868         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6869         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6870         symbols.
6871         (dump_symtab): Recognize hashed blocks.
6872         * printcmd.c (print_frame_args):  Assert that function blocks do not
6873         have hashed symbol tables.
6874         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6875         (fill_in_ada_prototype, debug_print_block): Likewise.
6876         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6877
6878 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6879
6880         * stack.c (print_frame): Use result of frame_address_in_block()
6881         instead of fi->pc when evaluating symbols.
6882         (backtrace_command_1): Ditto.
6883
6884 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6885
6886         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6887         Make static.
6888
6889         * arm-tdep.c (arm_register_name): Make return type constant.
6890
6891 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6892
6893         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6894         prototype.
6895         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6896         * s390-tdep.c (s390_fp_regnum): Ditto.
6897         (s390_read_fp): Ditto.
6898         (s390_pop_frame): Ditto.
6899         (_initialize_s390_tdep): Ditto.
6900         * remote.c (get_remote_state): Ditto.
6901         * procfs.c (mappingflags): Ditto.
6902         * memattr.c (_initialize_mem): Ditto.
6903         * mcore-tdep.c (mcore_pop_frame): Ditto.
6904         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6905         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6906         * language.c (set_case_str): Ditto.
6907         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6908         * frv-tdep.c (new_variant): Ditto.
6909         (frv_stopped_data_address): Ditto.
6910         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6911         (context_alloc): Ditto.
6912         (frame_state_alloc): Ditto.
6913         (unwind_tmp_obstack_init): Ditto.
6914         (unwind_tmp_obstack_free): Ditto.
6915         (cfi_read_fp): Ditto.
6916         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6917         (cris_pop_frame): Ditto.
6918         * c-lang.c (scanning_macro_expansion): Ditto.
6919         (finished_macro_expansion): Ditto.
6920         (c_preprocess_and_parse): Ditto.
6921         * gdbarch.sh: Ditto.
6922         * gdbarch.h, gdbarch.c: Regenerate.
6923         * config/mn10200/tm-mn10200.h: Adjust indentation.
6924         * target.c: Adjust indentation.
6925         * symtab.h: Adjust indentation.
6926         * stabsread.h: Adjust indentation.
6927         * remote-es.c: Adjust indentation.
6928         * os9kread.c: Adjust indentation.
6929
6930 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6931         
6932         * wince.c (_initialize_wince): Rename _initialize_inftarg.
6933         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6934
6935 2002-07-10  Grace Sainsbury  <graces@redhat.com>
6936         
6937         * NEWS: Mention m68k, mcore multi-arching.  
6938         * MAINTAINERS: Change status of m68k, mcore to reflect
6939         multi-arching.
6940
6941 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
6942
6943         * valops.c (find_overload_match): Free oload_syms.
6944
6945 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
6946
6947         Define HAVE_SYS_PROC_H if sys/proc.h exists
6948         * configure.in: Add check for sys/proc.h
6949         * config.in: Regenerate.
6950         * configure: Regenerate.
6951
6952 2002-07-09  Grace Sainsbury  <graces@redhat.com>
6953
6954         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6955         #if !GDB_MULTI_ARCH. 
6956
6957 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
6958
6959         * config.in, configure: Regenerate.
6960
6961 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
6962
6963         * dwarf2cfi.c: Include "gcore.h".
6964         (execute_stack_op): Fix implementation of the
6965         DW_OP_deref and DW_OP_deref_size operators by letting do their
6966         lookup in the target.
6967
6968 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
6969
6970         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6971         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6972         tdep->sc_sp_offset.
6973
6974 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
6975
6976         Fix PR gdb/595, gdb/602
6977         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6978         Don't call value_cast, just read the vtable pointer; update comments
6979         to match.
6980
6981 2002-07-05  Grace Sainsbury  <graces@redhat.com>
6982
6983         * config/mcore/tm-mcore.h: Remove file.
6984         * config/mcore/mcore.mt: Remove definition of TM_FILE
6985         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6986
6987 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
6988
6989         * i386bsd-tdep.c: Include "gdb_string.h".
6990
6991 2002-07-04  Grace Sainsbury  <graces@redhat.com>
6992
6993         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6994         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6995         mcore-tdep.
6996         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6997         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6998         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6999         (RETVAL_REGNUM): Move macros from tm-mcore.h
7000         (mcore_reg_struct_has_addr): New function.
7001         (mcore_gdbarch_init): Added initializations for the macros removed
7002         from tm-mcore.h.
7003
7004 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7005
7006         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7007         traditonal string branding within the ELF header.
7008
7009 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7010
7011         * symtab.c (remove_params): New function.
7012         (make_symbol_overload_list): Use it instead of cplus_demangle.
7013         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7014
7015 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7016
7017         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7018
7019         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7020         New variables.
7021         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7022         and tdep->sigtramp_end.
7023         * i386obsd-nat.c: New file.
7024         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7025
7026         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7027         Don't call get_current_frame().
7028
7029 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7030
7031         * i386-nat.c (child_post_startup_inferior): New function
7032         calling i386_cleanup_dregs if
7033         I386_USE_GENERIC_WATCHPOINTS is defined.
7034         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7035         conditional to acknowledge that i386-nat.c has its
7036         own child_post_startup_inferior function.
7037
7038 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7039
7040         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7041         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7042         instead of MAX_REGISTER_RAW_SIZE.
7043         (i386_extract_return_value, i386_extract_struct_value_address):
7044         Convert to use regcache.
7045         (i386_gdbarch_init): Set max_register_raw_size and
7046         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7047         Set extract_return_value and extract_struct_value_address instead
7048         of their deprecated variants.
7049
7050         Convert i386 target to generic dummy frames.
7051         * i386-tdep.c: Include "symfile.h".
7052         (i386_frameless_signal_p): Consider a function to be frameless if
7053         the pc points at the first instruction of the function.
7054         (i386_frame_chain): Handle (generic) call dummies.
7055         (i386_frame_saved_pc): Likewise.
7056         (i386_frame_init_saved_regs): Remove code dealing with call
7057         dummies on the stack.
7058         (i386_push_dummy_frame): Removed.
7059         (i386_call_dummy_words): Removed.
7060         (i386_fix_call_dummy): Removed.
7061         (i386_push_return_address): New function.
7062         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7063         parameter, and don't call get_current_frame.
7064         (i386_pop_frame): New function.
7065         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7066         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7067         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7068         call_dummy_length to 0, set call_dummy_words to NULL, set
7069         sizeof_call_dummy_words to 0, set fix_call_dummy to
7070         generic_fix_call_dummy, set pc_in_call_dummy to
7071         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7072         generic_push_dummy_frame, set push_return_address to
7073         i386_push_return_address and set frame_chain_valid to
7074         generic_file_frame_chain_valid.
7075
7076 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7077
7078         * gdbarch.sh (struct regcache): Add opaque declaration.
7079         (EXTRACT_RETURN_VALUE): New architecture method.
7080         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7081         * gdbarch.h, gdbarch.c: Regenerate.
7082         * arch-utils.c (legacy_extract_return_value): New function.
7083         * arch-utils.h (legacy_extract_return_value): Declare.
7084         * values.c (value_being_returned): Re-enable code handling
7085         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7086         deprecated_grub_regcache_for_registers call to block handling
7087         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7088         (EXTRACT_RETURN_VALUE): Do not define.
7089
7090 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7091
7092         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7093         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7094         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7095         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7096         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7097         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7098         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7099         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7100         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7101         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7102         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7103         argument so the function fits the prototype in the architecture
7104         vector.
7105         (mcore_pop_frame): Remove argument so the function fits the
7106         prototype. Use get_current_frame instead of the argument.
7107         (mcore_push_arguments): Change type of struct_return so the
7108         function can be used in the architecture vector.
7109         (mcore_store_struct_return): Add.
7110         (mcore_frame_init_saved_regs): Add.
7111         (mcore_gdbarch_init): Add function calls to replace the macros
7112         removed from tm-mcore.h
7113
7114 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7115
7116         * infcmd.c (print_return_value): Remove compatibility code calling
7117         deprecated_grub_regcache_for_registers.
7118         
7119         * values.c: Include "regcache.h".
7120         (value_being_returned): Update.  Use
7121         deprecated_grub_regcache_for_registers to extract the register
7122         buffer address.  
7123         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7124         ``struct regcache''.
7125         * Makefile.in (values.o): Add dependency on $(regcache_h).
7126
7127         * inferior.h (run_stack_dummy): Change type of second parameter to
7128         a ``struct regcache''.
7129         * valops.c (hand_function_call): Change type of retbuf to ``struct
7130         regcache''.  Allocate using regcache_xmalloc, clean using
7131         make_cleanup_regcache_xfree.
7132         * infcmd.c (run_stack_dummy): Update.  Use
7133         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7134
7135         * regcache.c (do_regcache_xfree): New function.
7136         (make_cleanup_regcache_xfree): New function.
7137         * regcache.h (make_cleanup_regcache_xfree): Declare.
7138
7139 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7140
7141         * event-top.c (command_line_handler): Don't read past
7142         beginning of buffer.
7143
7144 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7145         
7146         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7147         struct frame_id. 
7148         (varobj_create): Store frame_id for root.
7149         (varobj_gen_name): Use xasprintf.
7150         (varobj_update): Save and restore frame using get_frame_id() and
7151         frame_find_by_id().
7152         (create_child): Use xasprintf.
7153         (new_root_variable): Initialize frame_id.
7154         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7155         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7156         to prevent memory leak.
7157
7158 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7159
7160         * valops.c (hand_function_call): Move declaration of retbuf to
7161         start of function, allocate using malloc, add a cleanup but before
7162         the inf_status cleanup, cleanup the buffer.  Rename local variable
7163         old_chain to inf_status_cleanup.
7164
7165 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7166
7167         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7168
7169         * cli/cli-decode.c (cmd_func_p): New function.
7170         (cmd_func): New function.
7171
7172         * command.h: Add cmd_func() and cmd_func_p().   
7173         
7174 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7175
7176         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7177         (REGISTER_SIZE): Remove.
7178         (MAX_REGISTER_RAW_SIZE): Remove.
7179         (REGISTER_VIRTUAL_TYPE): Remove.
7180         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7181         (REGISTER_NAME): Remove.
7182         (USE_GENERIC_DUMMY_FRAMES): Remove.
7183         (CALL_DUMMY): Remove.
7184         (CALL_DUMMY_START_OFFSET): Remove.
7185         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7186         (CALL_DUMMY_LOCATION): Remove.
7187         (FIX_CALL_DUMMY): Remove.
7188         (CALL_DUMMY_ADDRESS): Remove.
7189         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7190         (SAVE_DUMMY_FRAME_TOS): Remove.
7191         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7192         (mcore_register_virtual_type): New function.
7193         (mcore_register_byte): New function.
7194         (mcore_register_size): New function.
7195         (mcore_register_name): New function.
7196         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7197         macros removed from tm-mcore.h.
7198         (mcore_dump_tdep): Add.
7199         (_initialize_mcore_tdep): Add gdbarch_register call.
7200
7201 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7202
7203         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7204         frameless_look_for_prologue, such that we actually call this
7205         function.
7206
7207 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7208
7209         * frame.h (frame_address_in_block): New function.
7210
7211         * blockframe.c (frame_address_in_block): New function extracted
7212         from get_frame_block().
7213         (get_frame_block): Use frame_address_in_block().
7214         (block_innermost_frame): Use frame_address_in_block() to match
7215         the frame pc address against the block boundaries rather than
7216         the frame pc directly. This prevents a failure when a frame pc
7217         is actually a return-address pointing immediately after the end
7218         of the given block. 
7219
7220 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7221
7222         * MAINTAINERS: Add self under write after approval. 
7223
7224 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7225
7226         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7227         used in architecture vector. The default is
7228         m68k_local_breakpoint_from_pc.
7229         (m68k_local_breakpoint_from_pc): Add.
7230         (enum): Add register numbers from tm-m68k.h.
7231         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7232         vector.  
7233         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7234         GDB_MULTI_ARCH_PARTIAL.
7235         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7236         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7237         m68k-tdep.c.
7238         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7239         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7240         to enum in m68k-tdep.c
7241
7242 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7243
7244         * solib-osf.c (open_map): Compute the list of shared libraries
7245         loaded by the inferior, rather than the list of libraries loaded
7246         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7247         the wrong shared libraries...
7248
7249 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7250
7251         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7252         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7253         macros.
7254         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7255         Remove functions.
7256         (FRAMELESS_SIGNAL): Remove function.
7257         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7258         i386_linux_saved_pc_after_call): Removed.
7259         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7260         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7261         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7262
7263         * i386-tdep.c (i386_frameless_signal_p): New function.
7264         (i386_frame_chain): Deal with frameless signals.
7265         (i386_sigtramp_saved_sp): New function.
7266         (i386_frame_saved_pc): Deal with frameless signals.
7267         (i386_saved_pc_after_call): Make sure the correct value is
7268         returned just after entry into a sigtramp.
7269         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7270         i386fbsd4_sc_sp_offset): New variables.
7271         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7272         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7273         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7274         similiar to what we already did for sc_pc_offset.
7275         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7276         tdep->sc_sp_offset.
7277
7278         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7279
7280 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7281
7282         * config/i386/tm-x86-64linux.h: New.
7283         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7284         definitions.
7285         * config/i386/nm-x86-64.h: Rename to ...
7286         * config/i386/nm-x86-64linux.h: ... this one.
7287         * config/i386/x86-64linux.mh: Reflect the above change.
7288         
7289 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7290
7291         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7292         with sigcontext_addr.  Add sc_sp_offset.
7293         (i386bsd_sigtramp_saved_pc): Remove prototype.
7294         (i386bsd_sicontext_addr): Add prototype.
7295         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7296         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7297         (i386_svr4_sigtramp_saved_pc): Removed.
7298         (i386_svr4_sigcontext_addr): New function.
7299         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7300         Initialize tdep->sigcontext_addr instead.  Initialize
7301         tdep->sc_pc_offset and tdep->sc_sp_offset.
7302         (i386_gdbarch_init): Likewise.
7303         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7304         any more.
7305         (i386bsd_sigtramp_saved_pc): Remove function.
7306         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7307         Initialize tdep->sigcontext_addr instead.  Initialize
7308         tdep->sc_pc_offset.
7309         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7310         of tdep->sigtramp_saved_pc.
7311         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7312         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7313         instead.
7314
7315         * i386-tdep.c (i386_frameless_function_invocation,
7316         i386_frame_num_args, i386_frame_init_saved_regs,
7317         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7318         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7319         i386_extract_return_value, i386_store_return_value,
7320         i386_extract_struct_value_address, i386_register_virtual_type,
7321         i386_register_convertible, i386_register_convert_to_virtual,
7322         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7323         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7324         static.
7325
7326 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7327
7328         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7329
7330         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7331         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7332         this macro.  Include "value.h".
7333
7334 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7335
7336         * ada-exp.tab.c: remove as it's a generated file
7337         * ada-lex.c: remove as it's a generated file
7338                 
7339 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7340
7341         * config/i386/tm-i386.h (struct frame_info, struct
7342         frame_saved_regs, struct value, struct type): Remove forward
7343         declarations.
7344
7345         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7346         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7347         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7348         (FILL_FPXREGSET): Define.
7349
7350         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7351
7352         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7353         i[3456]86-*-netbsd* case.
7354         * config/i386/tm-obsd.h: Removed.
7355         * config/i386/obsd.mt: Removed.
7356         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7357         core-aout.o.
7358         (MH_CFLAGS): Add -DYYDEBUG=0.
7359
7360         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7361         i386nbsd_sc_pc_offset on OpenBSD too.
7362
7363         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7364         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7365         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7366         define.
7367         * i386bsd-tdep.c: Include "arch-utils.h".
7368         (i386bsd_aout_in_solib_call_trampoline): New function.
7369         (i386bsd_init_abi): Set in_solib_call_trampoline to
7370         i386bsd_aout_in_solib_call_trampoline.
7371         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7372         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7373
7374 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7375
7376         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7377         (struct obstack, struct bcache): Add opaque declarations.
7378         * Makefile.in (macrotab_h): Update
7379
7380 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7381
7382         * blockframe.c (generic_find_dummy_frame): Change return type to
7383         ``struct regcache''.
7384         (struct dummy_frame): Replace field ``registers'' with regcache, a
7385         struct regcache object.
7386         (generic_find_dummy_frame): Update.
7387         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7388         regcache_xmalloc and regcache_cpy.
7389         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7390         regcache_xfree.
7391         (deprecated_generic_find_dummy_frame): Update.
7392         (generic_read_register_dummy): Update.  Use
7393         regcache_read_as_address.
7394         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7395         (generic_get_saved_register): Update.  Use regcache_read.
7396
7397 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7398
7399         * Makefile.in (objfiles_h): Add $(bcache_h).
7400         * objfiles.h: Include "bcache.h".
7401
7402         * Makefile.in (symtab_h): Remove $(bcache_h).
7403         * symtab.h: Do not include "bcache.h".
7404
7405 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7406
7407         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7408         generic_func_frame_chain_valid.
7409
7410 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7411
7412         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7413         * config/i386/tm-fbsd.h: Likewise.
7414
7415 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7416
7417         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7418         generic_unwind_get_saved_register.
7419
7420 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7421
7422         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7423         * regcache.c (supply_register): Add missing argument to
7424         register_buffer call.
7425
7426 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7427
7428         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7429         Solaris /bin/grep does not not like it.  From Peter Schauer.
7430
7431 2002-06-26  Tom Tromey  <tromey@redhat.com>
7432
7433         * command.h (add_setshow_cmd): Declare.
7434         (add_setshow_cmd_full): Declare.
7435         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7436         returns void.  Use add_setshow_cmd_full.
7437         (add_setshow_cmd_full): New function.
7438         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7439         (add_setshow_boolean_cmd): Likewise.
7440
7441 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7442
7443         * config/vax/tm-vax.h: Protect from multiple inclusion.
7444         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7445         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7446         * config/vax/tm-vaxbsd.h: ...here.  New file.
7447         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7448
7449 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7450
7451         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7452         (BELIEVE_PCC_PROMOTION): Remove.
7453         (AP_REGNUM): Move to...
7454         * config/vax/nm-vax.h: ...here.
7455         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7456         (vax_breakpoint_from_pc): New function.
7457         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7458         and gdbarch_believe_pcc_promotion.
7459
7460 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7461
7462         * Makefile.in (vax_tdep_h): Define.  
7463         (vax-tdep.o): Use $(vax_tdep_h).
7464         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7465         (vax_dump_tdep): New function. 
7466         (_initialize_vax_tdep): Register vax_dump_tdep.
7467         * vax-tdep.h: Include osabi.h.     
7468         (struct gdbarch_tdep): New. 
7469
7470 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7471
7472         * frame.h (deprecated_generic_find_dummy_frame): Rename
7473         generic_find_dummy_frame.
7474         * blockframe.c (generic_find_dummy_frame): Make static.
7475         (deprecated_generic_find_dummy_frame): New function.
7476         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7477         generic_find_dummy_frame with deprecated_find_dummy_frame.
7478         (sh64_nofp_frame_init_saved_regs): Ditto.
7479         (sh_fp_frame_init_saved_regs): Ditto.
7480         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7481         (s390_frame_chain): Ditto.
7482         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7483
7484 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7485
7486         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7487         gdbarch vector are at the top.
7488         (NUM_REGS): Remove.
7489         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7490         (FRAME_ARGS_ADDRESS): Remove.
7491         (FRAME_LOCALS_ADDRESS): Remove.
7492         (FRAME_NUM_ARGS): Remove.
7493         (FRAME_ARGS_SKIP): Remove.  
7494         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7495         (m68k_gdbarch_init): Add gdbarch initializations for macros
7496         undefined in tm-m68k.h
7497
7498 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7499
7500         * monitor.h: Add the function regname to monitor_ops
7501         structure. This way NUM_REGS does not have to be a constant.
7502         * monitor.c (monitor_fetch_register): Added support for regname
7503         function. The function is called if the array regnames is NULL.
7504         (monitor_store_register): Same.
7505         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7506         regnames array.
7507         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7508         cpu32bug_cmds.regname to point to new function.
7509         * abug-rom.c (abug_regname): Same as above.
7510         (init_abug_cmds): Same.
7511         * dbug-rom.c (dbug_regname): Same as above.
7512         (init_dbug_cmds): Same.
7513         * remote-est.c (est_regname): Same. 
7514         (init_est_cmds): Same.
7515         * rom68k-rom.c (rom68k_regname): Same. 
7516         (init_rom68k_cmds): Same.
7517
7518 2002-06-25  Tom Tromey  <tromey@redhat.com>
7519
7520         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7521
7522 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7523
7524         * infrun.c (stop_registers): Change variable's type to ``struct
7525         regcache'''.
7526         (xmalloc_inferior_status): Delete function.
7527         (free_inferior_status): Delete function.
7528         (normal_stop): Use regcache_cpy.
7529         (struct inferior_status): Change type of fields ``stop_registers''
7530         and ``registers'' to ``struct regcache''.
7531         (write_inferior_status_register): Use regcache_write.
7532         (save_inferior_status): Instead of calling
7533         xmalloc_inferior_status, allocate the inf_status buffer directly.
7534         Use regcache_dup_no_passthrough and regcache_dup to save the
7535         buffers.
7536         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7537         Replace the stop_registers regcache instead of overriding it.  Use
7538         regcache_xfree.  Instead of calling free_inferior_status, xfree
7539         the buffer directly.
7540         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7541         free_inferior_status, xfree the buffer directly.
7542         (build_infrun): Use regcache_xmalloc.
7543         (_initialize_infrun): Delete redundant call to build_infrun.
7544
7545         * Makefile.in (infcmd.o): Add $(regcache_h).
7546
7547         * infcmd.c: Include "regcache.h".
7548         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7549         obtain the address of `stop_registers' register buffer.
7550         (print_return_value): Ditto.
7551
7552         * inferior.h (struct regcache): Add opaque declaration.
7553         (stop_registers): Change variable's declared type to ``struct
7554         regcache''.
7555
7556 2002-06-24  Tom Tromey  <tromey@redhat.com>
7557
7558         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7559         * target.c (initialize_targets): Fixed typo in
7560         trust-readonly-sections `show' documentation.
7561
7562         * main.c: Marked all strings with _().
7563
7564 2002-06-24  Don Howard  <dhoward@redhat.com>
7565
7566         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7567         that means max CORE_ADDR+1.
7568         (lookup_mem_region): Ditto.
7569         (mem_info_command): Ditto.
7570
7571 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7572
7573         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7574         (REGISTER_BYTES_OK): Remove.
7575         (REGISTER_BYTES): Remove.
7576         (STORE_STRUCT_RETURN): Remove.
7577         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7578         (STORE_RETURN_VALUE): Remove.
7579         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7580         (FRAME_CHAIN): Remove.
7581         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7582         (FRAME_SAVED_PC): Remove.  
7583         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7584         (m68k_store_struct_return): Add.
7585         (m68k_deprecated_extract_return_value): Add.
7586         (m68k_deprecated_extract_struct_value_address): Add.
7587         (m68k_store_return_value): Add.
7588         (m68k_frame_chain): Add.
7589         (m68k_frameless_function_invocation): Add.
7590         (m68k_frame_saved_pc): Add.
7591         (m68k_gdbarch_init): added set_gdbarch calls for new 
7592         functions and deleted macros.
7593
7594 2002-06-23  Tom Tromey  <tromey@redhat.com>
7595
7596         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7597         (ALLDEPFILES): Likewise.
7598         (udiheaders): Removed.
7599         (udip2soc.o): Likewise.
7600         (udi2go32.o): Likewise.
7601         (udr.o): Likewise.
7602         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7603
7604 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7605
7606         * infrun.c (_initialize_infrun): Delete unnecessary call to
7607         build_infrun.
7608
7609         * regcache.h: Update comments describing the regcache_cpy family
7610         of functions.
7611         (regcache_save, regcache_restore): Delete declaration.
7612         (regcache_save_no_passthrough): Delete declaration.
7613         (regcache_restore_no_passthrough): Delete declaration.
7614         * regcache.c (regcache_save): Delete function.
7615         (regcache_save_no_passthrough): Delete function.
7616         (regcache_restore): Delete function.
7617         (regcache_restore_no_passthrough): Delete function.
7618
7619 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7620
7621         * config/m68k/tm-m68k.h: Fix typo.
7622         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7623         (m68k_frame_init_saved_regs): Declare.
7624
7625 2002-06-21  Jim Blandy  <jimb@redhat.com>
7626
7627         Remove some vestiges of Harris 88k support.
7628         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7629         register numbering quirk.
7630         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7631         odd symbols occurring in Harris 88k ELF targets.
7632
7633 2002-06-21  Tom Tromey  <tromey@redhat.com>
7634
7635         * gdb_locale.h: New file.
7636         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7637         (defs_h): Added gdb_locale.h.
7638         * configure, config.in: Rebuilt.
7639         * configure.in (PACKAGE): Define.
7640         * defs.h: Include gdb_locale.h.
7641         * main.c (captured_main): Call setlocale, bindtextdomain,
7642         textdomain.
7643
7644 2002-06-21  Dave Brolley  <brolley@redhat.com>
7645
7646         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7647         * config/frv/frv.mt: New file.
7648         * config/frv/tm-frv.h: New file.
7649         * configure.tgt: Support frv-*-*.
7650         * Makefile.in (frv-tdep.o): New target.
7651         * frv-tdep.c: New file.
7652         * NEWS: Mention frv.
7653
7654 2002-06-21  Dave Brolley  <brolley@redhat.com>
7655
7656         * MAINTAINERS: Add self to "Write After Approval" list.
7657
7658 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7659
7660         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7661         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7662         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7663         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7664         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7665
7666         * m68k-tdep.c: Include arch-utils.h
7667         (m68k_register_raw_size): Add.
7668         (m68k_register_virtual_size): Add.
7669         (m68k_register_virtual_type): Add.
7670         (m68k_register_name): Add.
7671         (m68k_stack_align): Add.
7672         (m68k_register_byte): Add.
7673         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7674         tm-m68k.h.
7675
7676 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7677
7678         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7679         m68k_find_saved_regs.
7680         (m68k_pop_frame): Removed saved_regs structure, and replaced
7681         references to it with frame->saved_regs.
7682         (m68k_gdbarch_init): Added function calls to initialize the
7683         gdbarch structure.
7684         (m68k_fix_call_dummy): Add. 
7685         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7686         (CALL_DUMMY): Remove.
7687         (CALL_DUMMY_LENGTH): Remove.
7688         (CALL_DUMMY_START_OFFSET): Remove.
7689         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7690         (FIX_CALL_DUMMY): Remove.
7691         (PUSH_DUMMY_FRAME): Remove.
7692         (POP_FRAME): Remove.
7693
7694 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7695
7696         * parse.c (parse_fprintf): New function used to avoid calls to
7697         fprintf in bison parser generated debug code.
7698         * parser-defs.h: Declaration of new parse_fprintf function.
7699         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7700         Set YYDEBUG to 1 by default.
7701         Set YYFPRINTF as parse_fprintf.
7702
7703 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7704
7705         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7706         encoding anymore.
7707         (pointer_encoding, enum ptr_encoding): New.
7708         (execute_cfa_program): Take care about pointer encoding.        
7709         (dwarf2_build_frame_info): Only call parse_frame_info for 
7710         .debug_frame and .eh_frame.
7711         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7712         fixed augmentation handling, added relative addressing, 
7713         ignore duplicate FDEs. Added comments.
7714         * dwarf2cfi.c: Reindented.
7715         
7716 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7717
7718         * event-top.c (command_handler): Don't use space_at_cmd_start
7719         unless there is sbrk() on the host. Assign time and space data
7720         to union fields of the appropriate length.
7721
7722 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7723
7724         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7725         x86_64_register_name. Return type changed to 'const char *'.
7726         (x86_64_register_name2nr): Rename to x86_64_register_number.
7727         (x86_64_gdbarch_init): Update to reflect the change.
7728         * x86-64-tdep.h: Ditto.
7729         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7730         (supply_fpregset): Ditto.
7731
7732 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7733
7734         * regcache.h: Update copyright.
7735         (struct regcache, struct gdbarch): Add opaque declarations.
7736         (current_regcache): Declare global variable.
7737         (regcache_read, regcache_write): Add gdbarch parameter.
7738         (regcache_save, regcache_save_no_passthrough)
7739         (regcache_restore, regcache_restore_no_passthrough)
7740         (regcache_dup, regcache_dup_no_passthrough)
7741         (regcache_cpy, regcache_cpy_no_passthrough)
7742         (deprecated_grub_regcache_for_registers)
7743         (deprecated_grub_regcache_for_register_valid)
7744         (regcache_valid_p): Add function declarations.
7745         
7746         * regcache.c: Update copyright.
7747         (regcache_descr_handle): New global variable.
7748         (struct regcache_descr): Define.
7749         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7750         (regcache_descr, xfree_regcache_descr): New functions.
7751         (struct regcache): Define.
7752         (regcache_xmalloc, regcache_xfree): New functions.
7753         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7754         (regcache_dup, regcache_dup_no_passthrough): New functions.
7755         (regcache_valid_p, regcache_read_as_address): New functions.
7756         (deprecated_grub_regcache_for_registers): New function.
7757         (deprecated_grub_regcache_for_register_valid): New function.
7758         (current_regcache): New global variable.
7759         (register_buffer): Add regcache parameter.  Update calls.
7760         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7761         (read_register_gen, write_register_gen): Update register_buffer
7762         call.  Test for legacy_p instead of gdbarch_register_read_p or
7763         gdbarch_register_write_p.
7764         (regcache_collect): Update register_buffer call.
7765         (build_regcache): Rewrite.  Use deprecated grub functions.
7766         (regcache_save, regcache_save_no_passthrough): New functions.
7767         (regcache_restore, regcache_restore_no_passthrough): New
7768         functions.
7769         (_initialize_regcache): Create the regcache_data_handle. Swap
7770         current_regcache global variable.
7771         
7772         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7773         parameter to regcache_read and regcache_write calls.
7774         (sh4_register_read): Ditto.
7775         (sh64_pseudo_register_read): Ditto.
7776         (sh64_register_read): Ditto.
7777         (sh_pseudo_register_write): Ditto.
7778         (sh4_register_write): Ditto.
7779         (sh64_pseudo_register_write): Ditto.
7780         (sh64_register_write): Ditto.
7781
7782         * defs.h (XCALLOC): Define.
7783
7784 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7785
7786         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7787         * m68k-tdep.c (m68k_gdbarch_init): Added.
7788         (m68k_dump_tdep): Added.
7789
7790 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7791
7792         * ada-lang.c (fill_in_ada_prototype): Update comment.
7793
7794 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7795
7796         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7797         MIPS_ABI_LAST.
7798         (mips_abi_string, mips_abi_strings): New.
7799         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7800         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7801         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7802         O32 if no ABI is found.
7803         (mips_dump_tdep): Use mips_abi_strings.
7804         (mips_abi_update): New function.
7805         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7806         ``set mips abi'' and ``show mips abi''.  Check the size of
7807         mips_abi_strings.
7808
7809 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7810
7811         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7812         constant.
7813
7814 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7815
7816         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7817         current frame using only the first stack size adjustment. All
7818         subsequent size adjustments are not considered to be part of
7819         the "static" part of the current frame.
7820         Compute the address of the saved registers relative to the
7821         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7822         in use in this frame.
7823
7824 2002-06-18  Don Howard  <dhoward@redhat.com>
7825  
7826         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7827         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7828         suggesting this solution.
7829
7830 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7831
7832         * config/romp/xm-rtbsd.h: Delete file.
7833         * config/romp/rtbsd.mh: Delete file.
7834
7835 2002-06-18  Keith Seitz  <keiths@redhat.com>
7836
7837         * breakpoint.c (condition_command): Post breakpoint_modify
7838         when a condition is added to an existing breakpoint.
7839         (commands_command): Likewise for commands.
7840         (set_ignore_count): Likewise for ignore counts.
7841         If no tty, do not simply return, still need to send event
7842         notification.
7843         (ignore_command): Only print a newline if the command came
7844         from a tty.
7845         Don't call breakpoints_changed, since this is now properly
7846         handled by set_ignore_count.
7847
7848 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7849
7850         * MAINTAINERS: Note that cris-elf target can be compiled with
7851         -Werror.
7852         * cris-tdep.c (cris_register_name): Make return type constant.
7853         (cris_breakpoint_from_pc): Ditto.
7854
7855 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7856
7857         * frame.h (struct frame_info): Change type of context to 
7858         'struct context'.
7859
7860 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7861
7862         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7863         pointer.
7864         * gdbarch.h, gdbarch.c: Regenerate.
7865         * config/mips/tm-mips.h (mips_register_name): Update.
7866         * i386-tdep.h (i386_register_name): Update.
7867         * mips-tdep.c (mips_register_name): Update
7868         * alpha-tdep.c (alpha_register_name): Update.
7869         * arch-utils.c (legacy_register_name): Update.
7870         * arch-utils.h (legacy_register_name): Update.
7871         * avr-tdep.c (avr_register_name): Update.
7872         * ia64-tdep.c (ia64_register_name): Update.
7873         * i386-tdep.c (i386_register_name): Update.
7874         * sparc-tdep.c (sparc32_register_name): Update.
7875         (sparc64_register_name): Update.
7876         (sparclite_register_name): Update.
7877         (sparclet_register_name): Update.
7878         * sh-tdep.c (sh_generic_register_name): Update.
7879         (sh_sh_register_name): Update.
7880         (sh_sh3_register_name): Update.
7881         (sh_sh3e_register_name): Update.
7882         (sh_sh_dsp_register_name): Update.
7883         (sh_sh3_dsp_register_name): Update.
7884         (sh_sh4_register_name): Update.
7885         (sh_sh64_register_name): Update.
7886         * s390-tdep.c (s390_register_name): Update.
7887         * rs6000-tdep.c (rs6000_register_name): Update.
7888         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7889         (ns32k_register_name_32382): Update.
7890         * d10v-tdep.c (d10v_ts2_register_name): Update.
7891         (d10v_ts3_register_name): Update.
7892         * xstormy16-tdep.c (xstormy16_register_name): Update.
7893         * vax-tdep.c (vax_register_name): Update.
7894         * v850-tdep.c (v850_register_name): Update.
7895         * m68hc11-tdep.c (m68hc11_register_name): Update.
7896         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7897         (am33_register_name): Update.
7898
7899 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7900
7901         * m68k-tdep.c: Reindented.
7902
7903 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7904
7905         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7906         list of predefined types.
7907
7908 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7909
7910         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7911         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7912         REGISTER_CONVERT_TO_RAW): Remove defines.
7913         (i386_register_virtual_type, i386_register_convertible,
7914         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7915         Remove prototypes.
7916         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7917         macros mentioned above.
7918
7919         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7920         (i386lynx_saved_pc_after_call): Remove prototype.
7921         * i386ly-tdep.c: Include "i386-tdep.h".
7922         (i386lynx_saved_pc_after_call): Make static.  Use
7923         read_memory_nobpt instead of read_memory.  Use
7924         read_memory_unsigned_integer instead of read_memory_integer.
7925         (i386lynx_init_abi): New function.
7926         (i386lynx_coff_osabi_sniffer): New function.
7927         (_initialize_i386bsd_tdep): New function.
7928
7929         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7930         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7931         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7932         (i386_fix_call_dummy): Remove prototype.
7933         * i386-tdep.c (i386_call_dummy_words): New variable.
7934         (i386_gdbarch_init): Adjust for removal of the
7935         macros mentioned above.
7936
7937 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7938
7939         * command.h (add_setshow_auto_boolean_cmd): Replace
7940         add_set_auto_boolean_cmd.
7941         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7942         add_set_auto_boolean_cmd.
7943         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7944         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7945         mask-address'' command.
7946         (show_mask_address): Add cmd parameter.
7947         * remote.c (add_packet_config_cmd): Update.  Change type of
7948         set_func and show_func to cmd_sfunc_ftype.
7949         (_initialize_remote): Update `set remote Z-packet'
7950         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7951         (show_remote_protocol_e_packet_cmd): Ditto.
7952         (show_remote_protocol_E_packet_cmd): Ditto.
7953         (show_remote_protocol_P_packet_cmd): Ditto.
7954         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7955         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7956         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7957         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7958         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7959         (show_remote_protocol_Z_packet_cmd): Ditto.
7960         (show_remote_protocol_binary_download_cmd): Ditto.
7961         (show_remote_cmd): Pass NULL to all of above.
7962
7963 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7964
7965         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7966         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7967         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7968         POP_FRAME): Remove defines.
7969         (i386_push_arguments, i386_store_struct_return,
7970         i386_extract_return_value, i386_store_return_value,
7971         i386_extract_struct_value_address, i386_push_dummy_frame,
7972         i386_pop_frame): Renove prototypes.
7973         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7974         macros mentioned above.
7975
7976 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
7977
7978         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7979         add_set_boolean_cmd.
7980         (add_setshow_cmd): New function.
7981         * command.h (add_setshow_boolean_cmd): Replace
7982         add_set_boolean_cmd.
7983         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7984         and ``set rdiromatzero''.
7985         * maint.c (_initialize_maint_cmds): Update commented out code.
7986         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7987         * target.c (initialize_targets): Update `set
7988         trust-readonly-sections'.
7989         * remote.c (_initialize_remote): Update `set remotebreak'.
7990
7991 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
7992
7993         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7994         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7995         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7996         fit into multi-arch framework.
7997         (i386_breakpoint_from_pc): New function.
7998         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7999         above.
8000
8001         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8002         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8003         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8004         (i386_frameless_function_invocation, i386_frame_num_args,
8005         i386_frame_init_saved_regs): Remove prototypes.
8006         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8007         macros mentioned above.
8008
8009 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8010
8011         * cli/cli-decode.c (set_cmd_cfunc): Update.
8012         (set_cmd_sfunc): Update.
8013         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8014         (set_cmd_sfunc, set_cmd_cfunc): Update.
8015         * cli/cli-decode.h: Update.
8016
8017 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8018
8019         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8020         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8021
8022 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8023
8024         * defs.h (auto_boolean): Declare enum.
8025         * command.h (cmd_auto_boolean): Delete enum.
8026         * mips-tdep.c (mask_address_var): Update.
8027         (mips_mask_address_p): Update.
8028         (show_mask_address): Update.
8029         * remote.c (struct packet_config): Update.
8030         (update_packet_config): Update.
8031         (show_packet_config_cmd): Update.
8032         (packet_ok): Update.
8033         (add_packet_config_cmd): Update.
8034         (_initialize_remote): 
8035         * command.h: Update.
8036         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8037         (do_setshow_command): Update.
8038         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8039         * cli/cli-decode.h: Update.
8040
8041 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8042
8043         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8044         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8045         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8046         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8047         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8048         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8049
8050         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8051         list of DJGPP COFF targets.
8052
8053         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8054         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8055         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8056         (FP0_REGNUM): Remove define.
8057         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8058         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8059         (i386_register_virtual_size): Remove protoype.
8060         * i386-tdep.c (i386_register_virtual_size): Removed.
8061         (i386_extract_return_value, i386_store_return_value): Use
8062         FP0_REGNUM instead of NUM_FREGS to determine whether the
8063         floating-point registers are available.
8064         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8065         Adjust for removal of macros mentioned above.
8066
8067 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8068
8069         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8070         comments.
8071         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8072         Remove prototypes.
8073         (supply_gregset, fill_gregset): Remove use of register keyword and
8074         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8075         NUM_REGS and NUM_FREGS.
8076         (FPREGSET_FSAVE_OFFSET): Remove.
8077         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8078         NUM_FREGS to determine whether the floating-point registers are
8079         available.
8080
8081         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8082         gnu_store_registers): Replace usage of NUM_GREGS with
8083         I386_NUM_GREGS.
8084
8085         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8086         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8087         usage of NUM_GREGS with I386_NUM_GREGS.
8088
8089         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8090
8091         * i386bsd-nat.c: Include "i386-tdep.h".
8092         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8093         I386_NUM_GREGS.
8094
8095         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8096         and associated comment.  They no longer make any sense, since we
8097         don't use this file anymore on Linux.
8098
8099         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8100         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8101         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8102         elements in these arrays.
8103         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8104         MAX_NUM_REGS.
8105
8106 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8107
8108         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8109         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8110
8111 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8112
8113         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8114         EXTRACT_RETURN_VALUE.
8115         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8116         EXTRACT_STRUCT_VALUE_ADDRESS.
8117         * gdbarch.h, gdbarch.c: Regenerate.
8118         
8119         * values.c (value_being_returned): Handle
8120         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8121         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8122
8123         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8124         * arm-tdep.c (arm_gdbarch_init): Update.
8125         * avr-tdep.c (avr_gdbarch_init): Update.
8126         * cris-tdep.c (cris_gdbarch_init): Update.
8127         * d10v-tdep.c (d10v_gdbarch_init): Update.
8128         * ia64-tdep.c (ia64_gdbarch_init): Update.
8129         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8130         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8131         * s390-tdep.c (s390_gdbarch_init): Update.
8132         * sh-tdep.c (sh_gdbarch_init): Update.
8133         * s390-tdep.c (s390_gdbarch_init): Update.
8134         * sparc-tdep.c (sparc_gdbarch_init): Update.
8135         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8136         * v850-tdep.c (v850_gdbarch_init): Update.
8137         * vax-tdep.c (vax_gdbarch_init): Update.
8138         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8139         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8140
8141         * config/arc/tm-arc.h: Update.
8142         * config/d30v/tm-d30v.h: Update.
8143         * config/fr30/tm-fr30.h: Update.
8144         * config/h8300/tm-h8300.h: Update.
8145         * config/h8500/tm-h8500.h: Update.
8146         * config/i386/tm-i386.h: Update.
8147         * config/i386/tm-ptx.h: Update.
8148         * config/i386/tm-symmetry.h: Update.
8149         * config/i960/tm-i960.h: Update.
8150         * config/m32r/tm-m32r.h: Update.
8151         * config/m68k/tm-delta68.h: Update.
8152         * config/m68k/tm-linux.h: Update.
8153         * config/m68k/tm-m68k.h: Update.
8154         * config/m88k/tm-m88k.h: Update.
8155         * config/mcore/tm-mcore.h: Update.
8156         * config/mips/tm-mips.h: Update.
8157         * config/mn10200/tm-mn10200.h: Update.
8158         * config/pa/tm-hppa.h: Update.
8159         * config/pa/tm-hppa64.h: Update.
8160         * config/sparc/tm-sp64.h: Update.
8161         * config/sparc/tm-sparc.h: Update.
8162         * config/sparc/tm-sparclet.h: Update.
8163         * config/z8k/tm-z8k.h: Update.
8164
8165 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8166
8167         * Makefile.in (i386_linux_tdep_h): Define.
8168         (i386_tdep_h, i387_tdep_h): Define.
8169         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8170         $(i386_tdep_h) and $(i387_tdep_h).
8171         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8172
8173 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8174
8175         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8176         Already covered by the default.
8177
8178         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8179         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8180         (i386_gdbarch_init): Initialize long_double_format and long_double
8181         bit.
8182
8183         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8184         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8185         Move these to ...
8186         * config/i386/i386sol2.mh: ... here.
8187         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8188         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8189         (SIGCONTEXT_PC_OFFSET): Remove define.
8190         (IN_SIGTRAMP): Remove define.
8191         * i386-sol2-tdep.c: New file.
8192         
8193         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8194         * config/i386/tm-i386nw.h: Removed.
8195
8196         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8197         USE_STRUCT_CONVENTION): Remove defines.
8198         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8199         (get_longjmp_target): Remove prototype.
8200         (IN_SIGTRAMP): Remove define.
8201         (i386bsd_in_sigtramp): Remove prototype.
8202         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8203         function.  Update comment accordingly
8204         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8205         (FRAME_SAVED_PC): Remove define.
8206         (i386bsd_frame_saved_pc): Remove prototype.
8207         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8208         GET_LONGJMP_TARGET): Remove defines.
8209         (get_longjmp_target): Remove prototype.
8210         (IN_SIGTRAMP): Remove define.
8211         (i386bsd_in_sigtramp): Remove prototype.
8212         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8213         function.  Update comment accordingly
8214         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8215         (FRAME_SAVED_PC): Remove define.
8216         (i386bsd_frame_saved_pc): Remove prototype.
8217         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8218         Remove prototype.
8219         (USE_STRUCT_CONVENTION): Remove prototype.
8220         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8221         declaration.
8222         (_initialize_i386bsd_nat): Revise logic to determine some
8223         constants at compile time when compiling a native GDB.  Warn if
8224         things don't match up with what we expect.
8225         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8226         Remove variables.
8227         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8228         to use date stored in `struct gdbarch_tdep'.
8229         (i386bsd_sigcontext_offset): Remove varaible.
8230         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8231         stored in `struct gdbarch_tdep'.
8232         (i386bsd_frame_saved_pc): Make static.
8233         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8234         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8235         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8236         i386fbsd4_sc_pc_offset): New variables.
8237         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8238         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8239         functions.
8240         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8241         functions.
8242         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8243         Modify the value of i386fbsd_sigtramp_start and
8244         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8245         i386fbsd_sigtramp_end.
8246         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8247         function.
8248
8249         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8250         define to i386-linux-tdep.h.
8251         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8252         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8253         defines.
8254         (i386_linux_register_name, i386_linux_register_byte,
8255         i386_linux_register_raw_size): Remove prototypes.
8256         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8257         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8258         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8259         TARGET_WRITE_PC): Remove defines.
8260         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8261         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8262         i386_linux_write_pc): Remove prototypes.
8263         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8264         (get_longjmp_target): Remove prototype.
8265         * i386-linux-tdep.h: New file.
8266         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8267         * i386-linux-tdep.c: Include "i386-tdep.h" and
8268         "i386-linux-tdep.h".
8269         (i386_linux_register_name, i386_linux_register_byte,
8270         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8271         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8272         Make static.
8273         (i386_linux_init_abi): New function.
8274         (_initialize_i386_linux_tdep): New function.
8275
8276         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8277         (i386_saved_pc_after_call): Remove prototype.
8278         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8279         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8280         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8281         (i386_register_name, i386_stab_reg_to_regnum,
8282         i386_dwarf_reg_to_regnum): Remove prototypes.
8283         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8284         SIZEOF_SSE_REGS): Remove defines.
8285         (REGISTER_BYTES): Remove define.
8286         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8287         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8288         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8289         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8290         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8291         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8292         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8293         (get_longjmp_target): Remove prototype.
8294         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8295         (sigtramp_saved_pc): Remove define.
8296         (i386v4_sigtramp_saved_pc): Remove prototype.
8297         * config/i386/tm-go32.h (FRAME_CHAIN,
8298         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8299         (i386go32_frame_saved_pc): Remove prototype.
8300         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8301         (get_longjmp_target): Remove prototype.
8302         * i386-tdep.h: Include "osabi.h".
8303         (enum i386_abi): Removed.
8304         (enum struct_return): New enum.
8305         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8306         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8307         sc_pc_offset members.
8308         (i386_gdbarch_register_os_abi): Remove prototype.
8309         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8310         I386_SSE_NUM_REGS): New defines.
8311         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8312         I386_SSE_SIZEOF_REGS): New defines.
8313         (i386_register_name, i386_register_byte, i386_register_raw_size):
8314         New prototypes.
8315         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8316         (i386bsd_sigtramp_saved_pc): New prototype.
8317         * i386-tdep.c: Don't include "elf-bfd.h".
8318         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8319         i386_frame_chain, i386_saved_pc_after_call): Make static.
8320         (i386_frame_saved_pc): Rewrite to call architecture dependent
8321         function to deal with signal handlers.  Make static.
8322         (i386go32_frame_saved_pc): Removed.
8323         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8324         Removed.
8325         (i386_get_longjmp_target): New function.
8326         (default_struct_convention, pcc_struct_convention,
8327         reg_struct_convention, valid_conventions, struct_convention): New
8328         variables.
8329         (i386_use_struct_convention): New function.
8330         (i386v4_sigtramp_saved_pc): Renamed to
8331         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8332         (i386_pc_in_sigtramp): New function.
8333         (i386_abi_names): Removed.
8334         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8335         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8336         Removed.
8337         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8338         i386_gdbarch_register_os_abi): Removed.
8339         (struct i386_abi_handler): Removed.
8340         (i386_abi_handler_list): Removed.
8341         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8342         functions.
8343         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8344         i386_nw_init_abi): New functions.
8345         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8346         Use set_gdbarch_xxx() calls instead of relying on macros for a
8347         number of calls.
8348         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8349         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8350         Register the various architecture variants defined in this file.
8351
8352 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8353
8354         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8355         (struct main_type): Remove arg_types member.  Update comments for
8356         struct field.
8357         (TYPE_ARG_TYPES): Remove.
8358         (TYPE_FN_FIELD_ARGS): Update.
8359         (smash_to_method_type): Update prototype.
8360
8361         * c-typeprint.c (cp_type_print_method_args): Take method type
8362         instead of argument list.  Use new argument layout.  Simplify.
8363         (c_type_print_args): Use new argument layout.  Simplify.
8364         (c_type_print_base): Update call to cp_type_print_method_args.
8365         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8366         argument; use die->type instead.  Update call to
8367         smash_to_method_type.
8368         (read_structure_scope): Update call to dwarf2_add_member_fn.
8369         * gdbtypes.c (allocate_stub_method): Update comment.
8370         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8371         Use new argument layout.
8372         (check_stub_method): Use new argument layout.  Don't count
8373         void as an argument.
8374         (print_arg_types): Update comments.  Use new argument layout.
8375         (recursive_dump_type): Don't print arg_types member.
8376         * hpread.c (hpread_read_struct_type): Use new argument layout.
8377         (fixup_class_method_type): Likewise.
8378         (hpread_type_lookup): Likewise.
8379         * stabsread.c (read_type): Update calls to read_args and
8380         smash_to_method_type.
8381         (read_args): Use new argument layout.  Simplify.
8382         * valops.c (typecmp): Use new argument layout.  Update parameters
8383         and comments.  Simplify.
8384         (hand_function_call): Use new argument layout.
8385         (search_struct_method): Update call to typecmp.
8386         (find_overload_match): Use new argument layout.
8387
8388 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8389
8390         * NEWS: Mention multithreaded debug support for gdbserver.
8391
8392 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8393
8394         * MAINTAINERS: Mention NEWS.
8395
8396 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8397
8398         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8399         (struct mips_objfile_private, compare_pdr_entries): New.
8400         (non_heuristic_proc_desc): Read the ".pdr" section if it
8401         is present.
8402
8403 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8404
8405         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8406         (arm_debug): New static variable.
8407         (_initialize_arm_tdep): Add ``set debug arm'' command.
8408
8409 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8410
8411         * Makefile.in (sim_arm_h): Define.
8412         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8413         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8414         (arm_register_sim_regno): New function, map an internal REGNUM
8415         onto a simulator register number.
8416         (arm_gdbarch_init): Set register_sim_regno.
8417
8418 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8419
8420         * MAINTAINERS: Add self.
8421
8422 2002-06-11  Jim Blandy  <jimb@redhat.com>
8423
8424         * source.c (source_info): Mention whether the symtab has
8425         information about preprocessor macros.
8426
8427         Call the command `info macro', not `show macro'.
8428         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8429         Fix error message.
8430         (_initialize_macrocmd): Register `info_macro_command' in
8431         `infolist', not `showlist'.
8432
8433 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8434
8435         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8436         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8437         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8438         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8439         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8440         unconditionally.
8441         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8442         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8443         (_initialize_mips_tdep): Remove dead code.
8444         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8445         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8446         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8447         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8448         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8449         MIPS_LAST_FP_ARG_REGNUM): Remove.
8450
8451 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8452
8453         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8454         (unwind_tmp_obstack_free, parse_frame_info)
8455         (update_context, cfi_read_fp, cfi_write_fp)
8456         (cfi_frame_chain, cfi_init_extra_frame_info)
8457         (cfi_virtual_frame_pointer): Use the above function.
8458         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8459
8460 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8461
8462         * v850-tdep.c (v850_type_is_scalar): New function.
8463         (v850_use_struct_convention): Match current gcc implementation
8464         as close as possible.
8465         (v850_push_arguments): Fix stack_offset handling.  Don't write
8466         struct_addr into register.  This is done by v850_store_struct_return.
8467         (v850_extract_return_value): Care for structs.
8468         (v850_store_return_value): Ditto.
8469         (v850_store_struct_return): Actually write address.
8470
8471 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8472
8473         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8474         without debug information too.
8475
8476 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8477
8478         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8479         Make multi-arch pure.
8480         * gdbarch.h, gdbarch.c: Re-generate.
8481         * arm-tdep.c (arm_print_float_info): Update.
8482         * arch-utils.h (default_print_float_info): Update.
8483         * arch-utils.c (default_print_float_info): Update.
8484         * infcmd.c (float_info): Update call.
8485
8486 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8487
8488         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8489         the front of the initialize list.
8490
8491 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8492
8493         * infrun.c (struct inferior_status): Replace fields
8494         selected_frame_address and selected_level with field
8495         selected_frame_id.
8496         (save_inferior_status): Update.  Use get_frame_id.
8497         (struct restore_selected_frame_args): Delete.
8498         (restore_selected_frame): Update.  Use frame_find_by_id.
8499         (restore_inferior_status): Update.
8500
8501         * breakpoint.h (struct breakpoint): Change type of
8502         watchpoint_frame to frame_id.
8503         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8504         call to get_current_frame.
8505         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8506         get_current_frame.
8507         (watchpoint_check): Use frame_find_by_id.
8508
8509         * frame.h (record_selected_frame): Delete declaration.
8510         * stack.c (record_selected_frame): Delete function.
8511         
8512         * frame.h (struct frame_id): Define.
8513         (get_frame_id): Declare.
8514         (frame_find_by_id): Declare.
8515         * frame.c (frame_find_by_id): New function.
8516         (get_frame_id): New function.
8517
8518 2002-06-10  Andrey Volkov <avolkov@transas.com>
8519
8520         * ser-e7kpc.c: Fix duplicated define and call of 
8521         _initialize_ser_e7000pc
8522             
8523 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8524
8525         * signals/signals.c (target_signal_from_host): Fix #ifdef
8526         SIGRTMIN case.
8527         (do_target_signal_to_host): Likewise.
8528
8529 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8530
8531         * mips-tdep.c (mips_find_abi_section): New function.
8532         (mips_gdbarch_init): Call it.
8533
8534 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8535
8536         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8537         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8538         after Andrew's 2002-06-08 gdbarch change.
8539
8540 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8541
8542         * i386-linux-nat.c (suppy_gregset): Don't supply
8543         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8544         register cache.
8545         (fill_gregset): Don't fetch it under the same circumstances.
8546
8547 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8548
8549         * Makefile.in (callback_h): Define.
8550         (remote_sim_h): Update path to remote-sim.h.
8551         (remote-rdp.o): Add $(callback_h).
8552         (remote-sim.o): Use $(callback_h).
8553         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8554         * remote-rdp.c: Include "gdb/callback.h".
8555
8556 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8557
8558         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8559         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8560
8561 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8562
8563         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8564         * rdi-share/serpardr.c: Ditto.
8565         * rdi-share/unixcomm.c: Ditto.
8566         * rdi-share/serdrv.c: Ditto.
8567         * rdi-share/hostchan.h: Ditto.
8568         * rdi-share/hostchan.c: Ditto.
8569         * rdi-share/host.h: Ditto.
8570         * rdi-share/devsw.c: Ditto.
8571
8572         * objfiles.h: Change type of obj_private to void pointer.
8573         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8574         strcmp instead of STREQ, use LONGEST, do not use PTR
8575         * somsolib.c: Ditto.
8576
8577         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8578         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8579         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8580
8581 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8582
8583         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8584         (default_get_saved_register): Delete function.
8585         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8586         generic_unwind_get_saved_register.
8587         * gdbarch.h, gdbarch.c: Re-generate.
8588         
8589 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8590
8591         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8592         generic_func_frame_chain_valid.
8593         * gdbarch.h, gdbarch.c: Re-generate.
8594         * blockframe.c (generic_func_frame_chain_valid): Only check
8595         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8596         passing FP to PC_IN_CALL_DUMMY.
8597         Fix PR gdb/360.
8598
8599 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8600
8601         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8602         (register_gdbarch_data): Initialize init_p.
8603         (gdbarch_data): Initialize data pointer using the init function.
8604         (init_gdbarch_data): Delete function.
8605         (gdbarch_update_p): Update.
8606         (initialize_non_multiarch): Update.
8607         (struct gdbarch): Add field initialized_p.
8608         * gdbarch.h, gdbarch.c: Re-generate.
8609
8610 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8611
8612         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8613         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8614         better do the things actually here.
8615         * x86-64-tdep.c (x86_64_register_name2nr): New.
8616         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8617         (x86_64_gdbarch_init): Respect the above change.
8618         * x86-64-tdep.h (x86_64_register_name2nr)
8619         (x86_64_register_nr2name): Add prototypes.
8620         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8621
8622 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8623
8624         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8625         Delete extra braces and re-indent.
8626         (d10v_store_return_value): Char return values
8627         must be shifted over by one byte in R0.
8628         (d10v_extract_return_value): Delete extra braces, re-indent.
8629
8630 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8631
8632         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8633         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8634         (d10v_integer_to_address): Rewrite.
8635         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8636         the d10v specific functions which take care of converting to the
8637         correct space.
8638
8639 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8640
8641         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8642         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8643
8644 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8645
8646         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8647         includes.
8648         * config/tm-linux.h: Ditto.
8649         * config/alpha/tm-alphalinux.h: Ditto.
8650         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8651         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8652         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8653         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8654         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8655         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8656         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8657         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8658         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8659         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8660         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8661         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8662         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8663         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8664         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8665         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8666         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8667         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8668         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8669         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8670         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8671         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8672         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8673         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8674         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8675         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8676         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8677         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8678         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8679         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8680         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8681         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8682         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8683         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8684         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8685         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8686         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8687
8688 2002-05-04  Aidan Skinner <aidan@velvet.net>
8689
8690         * ada-exp.tab.c: New file
8691         * ada-exp.y: New file
8692         * ada-lang.c: New file
8693         * ada-lang.h: New file
8694         * ada-lex.c: New file
8695         * ada-lex.l: New file
8696         * ada-tasks.c: New file
8697         * ada-typeprint.c: New file
8698         * ada-valprint.c: New file
8699         
8700 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8701
8702         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8703         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8704
8705 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8706
8707         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8708         insetead of ppc-linux-tdep.o.
8709         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8710         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8711
8712 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8713
8714         2002-05-07 Christian Groessler <chris@groessler.org>
8715         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8716         bit register contents for little endian hosts.
8717
8718 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8719
8720         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8721         any maintainer.
8722
8723 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8724
8725         * gdbarch.h: Regenerate.
8726
8727 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8728
8729         * MAINTAINERS: Add everyone to write-after-approval list.
8730
8731 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8732
8733         * stack.c (frame_info): Use frame_register_unwind instead of
8734         saved_regs.  Mention when the SP is on the stack or in a register.
8735
8736         * frame.h (frame_register_unwind_ftype): Define.  Document.
8737         (struct frame_info): Add field register_unwind and
8738         register_unwind_cache.
8739         (frame_register_unwind): Declare.
8740         (generic_unwind_get_saved_register): Declare.
8741
8742         * frame.c (frame_register_unwind): New function.
8743         (generic_unwind_get_saved_register): New function.
8744
8745         * blockframe.c (generic_call_dummy_register_unwind): New function.
8746         (frame_saved_regs_register_unwind): New function.
8747         (set_unwind_by_pc): New function.
8748         (create_new_frame): New function.
8749         (get_prev_frame): New function.
8750
8751 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8752
8753         * a29k-share/: Delete directory.
8754         * remote-vx29k.c: Delete file.
8755
8756 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8757
8758         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8759         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8760
8761 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8762
8763         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8764         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8765         (sparc64nbsd-nat.o)
8766         (sparcnbsd-nat.o)
8767         (sparcnbsd-tdep.o): New dependency lists.
8768         * NEWS: Note new UltraSPARC NetBSD native configuration.
8769         * configure.host (sparc64-*-netbsd*): New host.
8770         * configure.tgt (sparc-*-netbsdelf*)
8771         (sparc-*-netbsd*): Set gdb_target to nbsd.
8772         (sparc64-*-netbsd*): New target.
8773         * sparc64nbsd-nat.c: New file.
8774         * sparcnbsd-nat.c: New file.
8775         * sparcnbsd-tdep.c: New file.
8776         * sparcnbsd-tdep.h: New file.
8777         * config/sparc/nbsd.mt: New file.
8778         * config/sparc/nbsd64.mh: New file.
8779         * config/sparc/nbsd64.mt: New file.
8780         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8781         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8782         (HOST_IPC): Remove.
8783         * config/sparc/nbsdaout.mt: Remove.
8784         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8785         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8786         (HOST_IPC): Remove.
8787         * config/sparc/nbsdelf.mt: Remove.
8788         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8789         sparc-nat.c compatiblity defines.
8790         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8791         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8792         * config/sparc/tm-nbsd64.h: New file.
8793         * config/sparc/tm-nbsdaout.h: Remove.
8794         * config/sparc/xm-nbsd.h: Remove.
8795
8796 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8797
8798         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8799         * sparc-tdep.c: Include osabi.h.
8800         (gdbarch_tdep): Add osabi member.
8801         (_initialize_sparc_tdep): Use gdbarch_register.
8802         (sparc_gdbarch_init): Use generic OS ABI framework.
8803         (sparc_dump_tdep): New function.
8804
8805 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8806
8807         * corefile.c (do_captured_read_memory_integer): Return non-zero
8808         result.
8809         (safe_read_memory_integer): Copy result of memory read when
8810         status is non-zero.  Also, add comments.
8811
8812 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8813
8814         * Makefile.in (ppc_tdep_h): Define.
8815         (ppc-linux-nat.o)
8816         (ppc-linux-tdep.o)
8817         (rs6000-tdep.o): Use $(ppc_tdep_h).
8818         (ppc-sysv-tdep.o)
8819         (ppcnbsd-nat.o)
8820         (ppcnbsd-tdep.o): New dependency lists.
8821         * ppc-tdep.h: Use generic OS ABI framework.
8822         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8823         (ppc_linux_init_abi): New functions.
8824         (ppc_sysv_abi_broken_use_struct_convention)
8825         (ppc_sysv_abi_use_struct_convention)
8826         (ppc_sysv_abi_push_arguments): Move to...
8827         * ppc-sysv-tdep.c: ...here.
8828         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8829         * rs6000-tdep.c (process_note_abi_tag_sections)
8830         (get_elfosabi): Remove.
8831         (rs6000_gdbarch_init): Use generic OS ABI framework.
8832         (rs6000_dump_tdep): New function.
8833         (_initialize_rs6000_tdep): Use gdbarch_register.
8834         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8835         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8836         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8837         of ppc-linux-tdep.o.
8838         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8839         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8840         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8841         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8842         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8843         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8844
8845 2002-05-29  Jim Blandy  <jimb@redhat.com>
8846
8847         * macroscope.c (default_macro_scope): Put `void' in empty argument
8848         list.
8849
8850 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8851
8852         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8853         * arch-utils.c: Include "sim-regno.h".
8854         * gdbarch.sh: Don't include "sim-regno.h".
8855         * gdbarch.h, gdbarch.c: Regenerate.
8856         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8857         here.
8858         * arch-utils.h (legacy_register_sim_regno): To here.
8859         * remote-sim.c (legacy_register_sim_regno): Move function from
8860         here.
8861         * arch-utils.c (legacy_register_sim_regno): To here.
8862
8863 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8864
8865         * sim-regno.h: New file.
8866         * Makefile.in (sim_regno_h): Define.
8867         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8868         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8869         (legacy_register_sim_regno): New function.
8870         (one2one_register_sim_regno): New function.
8871         (gdbsim_fetch_register): Rewrite.
8872         (gdbsim_store_register): Only store a register when
8873         REGISTER_SIM_REGNO is valid.
8874         * d10v-tdep.c: Include "sim-regno.h".
8875         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8876         (d10v_ts3_register_sim_regno): Ditto.
8877         * gdbarch.sh: Include "sim-regno.h".
8878         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8879         * gdbarch.h, gdbarch.c: Regenerate.
8880         * arch-utils.h (default_register_sim_regno): Delete declaration.
8881         * arch-utils.c (default_register_sim_regno): Delete function.
8882
8883 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8884
8885         * ppcnbsd-nat.c: Rewrite.
8886         * ppcnbsd-tdep.c: New file.
8887         * ppcnbsd-tdep.h: New file.
8888         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8889         solib.o, and solib-svr4.o.
8890         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8891         nbsd-tdep.o, and corelow.o.
8892
8893 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8894
8895         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8896         `tr' and `sed'.  Mention that `broken' targets are not expected to
8897         build.
8898
8899 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8900
8901         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8902         Let PC point right after the prologue before looking up symbols.
8903         
8904 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8905
8906         * i386-tdep.c (i386_register_virtual_type): Return 
8907         builtin_type_vec128i for SSE registers.
8908
8909         * gdbtypes.h (builtin_type_vec128i): Declare.
8910
8911         * gdbtypes.c (build_builtin_type_vec128i): New function.
8912         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8913         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8914         (build_gdbtypes): Initialize new builtin vector types.
8915         (_initialize_gdbtypes): Register new vector types with gdbarch.
8916
8917 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8918
8919         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8920         since it has been multi-arch'd.
8921         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8922         Move Alpha and VAX multi-arch news entries to same section
8923         as other multi-arch news.
8924
8925 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8926
8927         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8928         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
8929         static.  Rename some register numbers to put them in ns32k-tdep
8930         private namespace.
8931         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8932         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8933         functions.
8934         (_initialize_ns32k_tdep): Use gdbarch_register.
8935         * ns32k-tdep.h: New file.
8936         * ns32knbsd-tdep.c: New file.
8937         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8938         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8939         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8940         REGISTER_BYTES, REGISTER_BYTE): Remove.
8941         * config/ns32k/tm-ns32k.h: New file.
8942         * config/ns32k/tm-umax.h: Remove.
8943
8944 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8945
8946         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8947         ns32k_store_struct_return, ns32k_extract_return_value,
8948         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8949         functions.
8950         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8951         ns32k_saved_pc_after_call.
8952         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8953         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8954         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8955         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8956         ns32k_extract_struct_value_address.
8957
8958 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8959
8960         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8961         ns32k_fix_call_dummy): New.
8962         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8963         ns32k_call_dummy_words.
8964         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8965         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8966         CALL_DUMMY_NARGS): Remove.
8967         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8968
8969 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8970
8971         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8972         ns32k_frame_saved_pc, ns32k_frame_args_address,
8973         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8974         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8975         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8976         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8977         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8978         (BREAKPOINT): Remove..
8979         (FRAME_CHAIN): Define as ns32k_frame_chain.
8980         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8981         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8982         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8983         (FRAME_FIND_SAVED_REGS): Remove.
8984         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8985         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8986         (POP_FRAME): Define as ns32k_pop_frame.
8987
8988 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8989
8990         * ns32k-tdep.c (ns32k_register_byte_32082,
8991         ns32k_register_byte_32382, ns32k_register_raw_size,
8992         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8993         functions.
8994         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8995         ns32k_register_byte_32382.
8996         * config/ns32k/tm-umax.h: Update copyright years.
8997         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8998         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8999         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9000         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9001         (ns32k_get_enter_addr): Fix prototype.
9002
9003 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9004
9005         * ns32k-tdep.c: Update copyright years.
9006         (ns32k_register_name_32082): New function.
9007         (ns32k_register_name_32382): Ditto.
9008         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9009         (REGISTER_NAME): Define as ns32k_register_name_32382.
9010         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9011         (REGISTER_NAME): Define as ns32k_register_name_32082.
9012
9013 2002-05-24  Jim Blandy  <jimb@redhat.com>
9014
9015         * dwarf2read.c (free_line_header): Use xfree, not free.
9016
9017 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9018
9019         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9020         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9021
9022 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9023
9024         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9025
9026 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9027
9028         From Ross Alexander at NEC Europe:
9029         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9030
9031 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9032
9033         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9034         for input, rather than parse_and_eval_address.  
9035
9036 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9037
9038         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9039         * Makefile.in (sim_d10v_h): Update definition.
9040
9041 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9042
9043         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9044         change `2002-05-22 Michael Snyder' below.
9045         (d10v_push_arguments): Ditto.
9046         (d10v_extract_return_value): Ditto.
9047
9048 2002-05-23  Jim Blandy  <jimb@redhat.com>
9049
9050         * macrotab.c (check_for_redefinition): Don't complain if the new
9051         definition is the same as the previous one.  Take more arguments
9052         to allow the comparison.
9053         (macro_define_object, macro_define_function): Pass more arguments
9054         to check_for_redefinition.
9055
9056 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9057
9058         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9059         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9060         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9061         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9062         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9063         Add a temp variable to save a call (and a memory read).
9064         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9065         if possible (so that PC_IN_CALL_DUMMY will work).
9066
9067 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9068
9069         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9070
9071 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9072
9073         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9074         fde->cie_ptr.
9075         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9076         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9077         so that frames of shared libraries are mapped correctly.
9078         (execute_stack_op): Change type of 'result' from ULONGEST to
9079         CORE_ADDR.
9080         
9081 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9082
9083         * config/alpha/tm-nbsd.h: Include solib.h.
9084
9085 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9086
9087         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9088         assumptions about the host's byte order.
9089
9090 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9091
9092         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9093         to dependency list.
9094         * alphanbsd-tdep.c: Include solib-svr4.h.
9095         * shnbsd-tdep.c: Ditto.
9096
9097 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9098
9099         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9100         nbsd-tdep.h to dependency list.
9101         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9102         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9103         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9104         nbsdaout.mh and nbsdelf.mh consistently.
9105         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9106         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9107         nbsdaout.mt and nbsdelf.mh consistently.
9108         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9109         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9110         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9111         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9112         a.out shared library stuff from here...
9113         * config/nm-nbsdaout.h: ...to here.
9114         * config/tm-nbsd.h: Remove.
9115         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9116         * config/arm/nbsd.mh: Remove.
9117         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9118         nbsd-tdep.o.
9119         * config/arm/nbsdaout.mh: New file. 
9120         * config/arm/nbsdelf.mh: New file.
9121         * config/arm/nm-nbsdaout.h: New file.
9122         * config/i386/nbsd.mh: Remove.
9123         * config/i386/nbsd.mt: Remove.
9124         * config/i386/nbsdaout.mh: New file.
9125         * config/i386/nbsdaout.mt: New file.
9126         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9127         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9128         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9129         i386_register_u_addr): Remove.
9130         * config/i386/nm-nbsdaout.h: New file.
9131         * config/i386/nm-nbsdelf.h: Remove.
9132         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9133         (USE_STRUCT_CONVENTION): Remove.
9134         * config/i386/tm-nbsdaout.h: New file.
9135         * config/i386/tm-nbsdelf.h: Remove.
9136         * config/m68k/nbsd.mh: Remove.
9137         * config/m68k/nbsd.mt: Remove.
9138         * config/m68k/nbsdaout.mh: New file.
9139         * config/m68k/nbsdaout.mt: New file. 
9140         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9141         * config/m68k/nm-nbsdaout.h: New file.
9142         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9143         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9144         * config/ns32k/nbsd.mh: Remove.
9145         * config/ns32k/nbsd.mt: Remove. 
9146         * config/ns32k/nbsdaout.mh: New file.
9147         * config/ns32k/nbsdaout.mt: New file.
9148         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9149         * config/ns32k/nm-nbsdaout.h: New file.
9150         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9151         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9152         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9153         (SVR4_SHARED_LIBS): Remove.
9154         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9155         * config/sparc/nbsd.mh: Remove.
9156         * config/sparc/nbsd.mt: Remove.
9157         * config/sparc/nbsdaout.mh: New file.
9158         * config/sparc/nbsdaout.mt: New file.
9159         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9160         * config/sparc/nbsdelf.mt: New file.
9161         * config/sparc/nm-nbsdaout.h: New file.   
9162         * config/sparc/nm-nbsdelf.h: Remove.
9163         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9164         * config/sparc/tm-nbsdaout.h: New file.
9165
9166 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9167
9168         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9169         mipsnbsd-tdep.c
9170         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9171
9172 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9173
9174         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9175         shnbsd-nat.c.
9176         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9177
9178 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9179
9180         * NEWS: Note new MIPS NetBSD native configuration. 
9181         * configure.host (mips*-*-netbsd*): New host. 
9182         * configure.tgt (mips*-*-netbsd*): New target. 
9183         * mipsnbsd-nat.c: New file.
9184         * mipsnbsd-tdep.c: New file.
9185         * mipsnbsd-tdep.h: New file.
9186         * config/mips/nbsd.mh: New file.
9187         * config/mips/nbsd.mt: New file.
9188         * config/mips/nm-nbsd.h: New file.
9189         * config/mips/tm-nbsd.h: New file.
9190
9191 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9192
9193         * Makefile.in (SFILES): Add osabi.c.
9194         (COMMON_OBS): Add osabi.o.
9195         (osabi.o): New dependency list.
9196         * osabi.c: New file.
9197         * osabi.h: New file.
9198         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9199
9200         * Makefile.in (alpha_tdep_h): Define and use instead of
9201         alpha-tdep.h.
9202         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9203         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9204         Remove.
9205         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9206         * alpha-tdep.h: Include osabi.h.
9207         (alpha_abi): Remove.
9208         (gdbarch_tdep): Use generic OS ABI framework.
9209         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9210         gdbarch_register_osabi.
9211         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9212         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9213         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9214
9215         * Makefile.in (sh_tdep_h): Add osabi.h.
9216         * sh-tdep.h (sh_osabi): Remove.
9217         (gdbarch_tdep): Use generic OS ABI framework.
9218         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9219         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9220         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9221         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9222
9223         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9224         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9225         gdbarch_register_osabi.
9226         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9227         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9228         (get_elfosabi): Rename to...
9229         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9230         ABI framework support routines.
9231         (arm_gdbarch_init): Use generic OS ABI framework.
9232         (arm_dump_tdep): Likewise.
9233         (_initialize_arm_tdep): Likewise.
9234         * arm-tdep.h: Include osabi.h.
9235         (arm_abi): Remove.
9236         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9237         osabi member.
9238         (arm_gdbarch_register_os_abi): Remove prototype.
9239         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9240         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9241
9242         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9243         * mips-tdep.c: Include osabi.h.
9244         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9245         OS ABI framework.
9246
9247 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9248
9249         * h8300-tdep.c: Fix formatting.
9250
9251 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9252
9253         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9254         printing vector registers.
9255
9256 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9257
9258         From Fernando Nasser:
9259         * remote.c (remote_async_open_1): Re-throw the exception when the
9260         connection fails.
9261         (remote_cisco_open): Ditto.
9262         (remote_open_1): Ditto.
9263
9264 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9265
9266         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9267         (remote_start_remote): Add uiout parameter.  Pass through to
9268         remote_start_remote_dummy.
9269         (remote_open_1): Use catch_exception instead of catch_errors.
9270         (remote_async_open_1): Ditto.
9271         (remote_cisco_open): Ditto.
9272
9273 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9274
9275         * remote.c (remote_start_remote): Replace PTR with void pointer.
9276         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9277         static.
9278
9279 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9280
9281         * gdb_indent.sh: Allow the script to be run in the sim directory.
9282
9283 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9284
9285         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9286         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9287
9288         * corelow.c (core_open): Only call set_gdbarch_from_file if
9289         exec_bfd is NULL.
9290
9291 2002-05-17  Andrey Volkov <avolkov@transas.com>
9292
9293         * h8300-tdep.c: Add support of EXR register
9294         * config/h8300/tm-h8300.h: Ditto. 
9295         
9296 2002-05-17  Andrey Volkov <avolkov@transas.com>
9297
9298         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9299         
9300 2002-05-17  Andrey Volkov <avolkov@transas.com>
9301
9302         * h8300-tdep.c: Change literal regnums to REGNO.
9303         
9304 2002-05-17  Jim Blandy  <jimb@redhat.com>
9305
9306         * NEWS: Note addition of macro support.
9307
9308         Expand preprocessor macros in C expressions.
9309         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9310         (scan_macro_expansion, scanning_macro_expansion,
9311         finished_macro_expansion): New function declarations.
9312         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9313         variable declarations.
9314         * parser-defs.h (expression_context_pc): New declaration.
9315         * parse.c (expression_context_pc): New variable.
9316         (parse_exp_1): Set expression_context_pc, as well as
9317         expression_context_block.
9318         * c-exp.y (yylex): If we're not already reading the result of a
9319         macro expansion, try to macro-expand the next token.  When we're
9320         done scanning a macro expansion, switch back to the mainline text.
9321         Commas and `if's in a macro's expansion don't terminate the input.
9322         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9323         (macro_original_text, macro_expanded_text,
9324         expression_macro_lookup_func, expression_macro_lookup_baton): New
9325         variables.
9326         (scan_macro_expansion, scanning_macro_expansion,
9327         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9328         c_preprocess_and_parse): New functions.
9329         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9330         c_preprocess_and_parse, instead of c_parse.
9331         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9332         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9333
9334 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9335
9336         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9337         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9338         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9339
9340 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9341
9342         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9343
9344 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9345
9346         * Makefile.in (sh_tdep_h): Define and use.
9347         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9348         register enum): Move to...
9349         * * sh-tdep.h: ...here.
9350         * sh-tdep.c: Include sh-tdep.h.
9351         * sh3-rom.c: Likewise.
9352         * shnbsd-tdep.c: Likewise.
9353
9354 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9355
9356         * arm-tdep.c: Spelling fix in comment.
9357
9358 2002-05-16  Jim Blandy  <jimb@redhat.com>
9359
9360         Add commands for manually expanding macros and showing their
9361         definitions.
9362         * macrocmd.c, macroscope.c, macroscope.h: New files.
9363         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9364         (macroscope_h): New variable.
9365         (HFILES_NO_SRCDIR): Add macroscope.h.
9366         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9367         (macroscope.o, macrocmd.o): New rules.
9368
9369         Teach the Dwarf 2 reader to read macro information.
9370         * dwarf2read.c: #include "macrotab.h".
9371         (dwarf_macinfo_buffer): New variable.
9372         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9373         dwarf_macinfo_size.
9374         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9375         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9376         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9377         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9378         dwarf2_macro_spaces_in_definition): New complaints.
9379         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9380         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9381         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9382         the partial symbol table.
9383         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9384         from what's recorded in the partial symbol table.
9385         (read_file_scope): If the compilation unit has a
9386         `DW_AT_macro_info' attribute, read its macro information.
9387         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9388
9389 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9390
9391         Fix PR gdb/546
9392         * ser-tcp.c: Don't include <netinet/udp.h>.
9393
9394 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9395
9396         * MAINTAINERS: Update my email address.
9397
9398 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9399
9400         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9401         include file of the same name.
9402
9403 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9404
9405         * configure.tgt: Mark v850 as multi-arched.
9406         * config/v850/tm-v850.h: Remove file.
9407         * config/v850/v850.mt: Eliminate TM_FILE.
9408
9409 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9410
9411         * v850-tdep.c: Full multi-arch.
9412         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9413         Define GDB_MULTI_ARCH to 2.
9414
9415 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9416
9417         * p-exp.y (current_type): New static variable.
9418         Carries the type of the expression at the position that is parsed.
9419         (push_current_type, pop_current_type): Two new functions. Used
9420         to store/restore current_type in expression on specific tokens.
9421         (search_field): New static variable. Set to one after parsing a point
9422         as at that point only a FIELDNAME token should be searched.
9423         (FIELDNAME): New token. After a point only a token belonging to 
9424         current_type type definition is allowed.
9425         (all over token rules): reset and change current_type according
9426         to rules.
9427         (exp '[' rule): insert implicit array index field if
9428         exp is a pascal string type.
9429
9430 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9431
9432         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9433         frame info.  Use frame_info's saved_regs instead of matching member
9434         in extra_frame_info throughout.
9435         (v850_frame_init_saved_regs): New function.
9436         (v850_init_extra_frame_info): Move most functionality into
9437         v850_frame_init_saved_regs().
9438         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9439         (v850_frame_find_saved_regs): Remove declaration.
9440         (FRAME_FIND_SAVED_REGS): Remove definition.
9441         (v850_frame_init_saved_regs): Add declaration.
9442         (FRAME_INIT_SAVED_REGS): Add definition.
9443
9444 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9445
9446         * v850-tdep.c: Begin multi-arch'ing v850.
9447         (v850_target_architecture_hook): Remove function.
9448         (v850_gdbarch_init): New function.  Add code previously in
9449         v850_target_architecture_hook().
9450         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9451         Call register_gdbarch_init() instead.
9452
9453 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9454
9455         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9456         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9457         (fixup_class_method_type): Likewise.
9458
9459 2002-05-15  Jim Blandy  <jimb@redhat.com>
9460
9461         Add macro structures to GDB's symbol tables.  Nobody puts anything
9462         in them yet.
9463         * symtab.h (struct symtab): New member: `macro_table'.
9464         * buildsym.h (pending_macros): New global variable.
9465         * buildsym.c: #include "macrotab.h".
9466         (buildsym_init): Initialize `pending_macros'.
9467         (end_symtab): If we found macro information while reading a CU's
9468         debugging info, do build a symtab structure for it.  Make the
9469         symtab point to the macro information, and clear the
9470         `pending_macros' pointer which held it while we were reading the
9471         debug info.
9472         (really_free_pendings): Free any pending macro table.
9473         * objfiles.h (struct objfile): New member: `macro_cache'.
9474         * objfiles.c (allocate_objfile): Set allocate and free functions
9475         for the macro cache's objstack.
9476         (free_objfile): Empty the macro cache's obstack.
9477         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9478         set new allocate and free functions for it.
9479         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9480         free functions for the macro cache's objstack.  (Why is this
9481         function building its own objfile?)
9482         * symmisc.c (print_objfile_statistics): Print statistics on the
9483         macro bcache.
9484         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9485
9486 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9487
9488         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9489         (REGISTER_U_ADDR): Delete definition.
9490         (arm_register_u_addr): Delete declaration.
9491
9492 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9493
9494         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9495         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9496
9497 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9498
9499         * regcache.c (register_valid): Revise comments refering to "Not
9500         available" and "unavailable".
9501         * frame.c (frame_register_read): Ditto.
9502         * findvar.c (value_of_register): Ditto.
9503
9504 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9505
9506         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9507         (remote-sim.o): Update dependencies.
9508         (d10v-tdep.o): Specify dependencies.
9509         (sim_d10v_h): Define.
9510
9511 2002-05-14  Jim Blandy  <jimb@redhat.com>
9512
9513         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9514         * macrotab.c (macro_lookup_inclusion, find_definition,
9515         new_macro_table): Same.
9516         
9517         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9518         not `! strcmp ()'.  This is a dubious improvement.
9519         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9520
9521         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9522         although it's not necessary, to avoid a warning.
9523
9524 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9525
9526         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9527         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9528         TYPE_INSTANCE_FLAGS.
9529         (struct main_type): New.
9530         (struct type): Move most members to struct main_type.  Change
9531         cv_type and as_type to new type_chain member.  Add instance_flags.
9532         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9533         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9534         (finish_cv_type): Remove prototype.
9535         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9536         Set TYPE_CHAIN.
9537         (alloc_type_instance): New function.
9538         (smash_type): New function.
9539         (make_pointer_type, make_reference_type, make_function_type)
9540         (smash_to_member_type, smash_to_method_type): Call smash_type.
9541         (make_qualified_type): New function.
9542         (make_type_with_address_space): Call make_qualified_type.
9543         (make_cv_type): Likewise.
9544         (finish_cv_type): Remove unnecessary function.
9545         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9546         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9547         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9548         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9549         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9550         * hpread.c (hpread_read_struct_type): Likewise.
9551         * stabsread.c (read_struct_type): Likewise.
9552
9553 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9554
9555         * configure.tgt: Add a catch all sh* target, for cases like
9556         sh[2,3,4]-elf and sh-hms.
9557
9558 2002-05-14  Keith Seitz  <keiths@redhat.com>
9559
9560         * event-loop.c (create_file_handler): Don't do anything but
9561         update data when we are given a fd which we are already
9562         monitoring.
9563
9564 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9565
9566         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9567         (update_context): Use __func__ in warnings.
9568         
9569 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9570
9571         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9572         and tcp_close to net_open and net_close.
9573         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9574         using UDP if requested.  Don't try to disable Nagle on UDP
9575         sockets.
9576         * remote.c (remote_serial_open): New function.  Warn about UDP.
9577         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9578
9579 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9580
9581         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9582
9583 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9584
9585         * configure.tgt: Remove sh-hms target.
9586         * MAINTAINERS: Don't list sh-hms as a separate target.
9587
9588 2002-05-13  Jim Blandy  <jimb@redhat.com>
9589
9590         Add first preprocessor macro-expansion files.
9591         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9592         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9593         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9594         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9595         (COMMON_OBS): Add macrotab.o, macroexp.o.
9596         (macroexp.o, macrotab.o): New rules.
9597
9598 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9599
9600         * config/m88k/tm-m88k.h: Update copyright.
9601         (m88k_target_write_pc): Declare
9602         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9603         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9604         (SHIFT_INST_REGS): Update definition.
9605         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9606         using old definition of TARGET_WRITE_PC.
9607         * regcache.c (generic_target_write_pc): Delete code handling
9608         NNPC_REGNUM.
9609         * gdbarch.sh (NNPC_REGNUM): Delete.
9610         * gdbarch.h, gdbarch.c: Regenerate.
9611
9612 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9613
9614         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9615         builtin reg number.
9616
9617 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9618
9619         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9620         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9621         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9622         access macros.
9623         * c-typeprint.c (cp_type_print_method_args): Likewise.
9624         (c_type_print_args): Likewise.
9625         * d10v-tdep.c (d10v_push_arguments): Likewise.
9626         (d10v_extract_return_value): Likewise.
9627         * expprint.c (print_subexp): Likewise.
9628         * gdbtypes.c (lookup_primitive_typename): Likewise.
9629         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9630         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9631         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9632         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9633         (TYPE_VECTOR): Likewise.
9634         * hpread.c (hpread_read_struct_type)
9635         (fix_static_member_physnames, fixup_class_method_type)
9636         (hpread_type_lookup): Likewise.
9637         * mdebugread.c (parse_symbol, parse_type): Likewise.
9638         * p-lang.c (is_pascal_string_type): Likewise.
9639         * valops.c (hand_function_call): Likewise.
9640         * x86-64-tdep.c (classify_argument): Likewise.
9641
9642         * hpread.c (hpread_read_function_type)
9643         (hpread_read_doc_function_type): Call replace_type.
9644         * dstread.c (create_new_type): Delete.
9645         (decode_dst_structure, process_dst_function): Call alloc_type.
9646         Use type access macros.
9647
9648 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9649
9650         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9651         the're not supported by the current architecture.
9652         (i387_fill_fxsave): Likewise.
9653
9654 2002-05-12  Fred Fish  <fnf@redhat.com>
9655
9656         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9657         sect_index_xxx members to index the first slot in section_offsets
9658         if all of the section_offsets are zero.
9659
9660 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9661
9662         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9663         checked in with last change.
9664
9665 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9666
9667         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9668         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9669         config.sub.
9670
9671 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9672
9673         * Makefile.in: Update dependencies.
9674
9675 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9676
9677         * language.c (local_hex_string_custom): Simplify.  Do not depend
9678         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9679
9680         * memattr.c (mem_info_command): Replace calls to
9681         longest_local_hex_string and longest_local_hex_string_custom.
9682         * buildsym.c (make_blockvector): Ditto.
9683         * solib.c (info_sharedlibrary_command): Ditto.
9684         * tracepoint.c (tracepoints_info): Ditto.
9685         * symtab.c (print_msymbol_info): Ditto.
9686
9687         * language.c (local_hex_string): Delete.
9688         (local_hex_string_custom): Delete.
9689         (longest_local_hex_string): Rename to local_hex_string.
9690         (longest_local_hex_string_custom): Rename to
9691         local_hex_string_custom.
9692         * language.h (local_hex_string): Change parameter type to LONGEST.
9693         (local_hex_string_custom): Ditto.
9694         (longest_local_hex_string): Delete declaration.
9695         (longest_local_hex_string_custom): Ditto.
9696
9697         * solib.c: Update copyright.
9698         * memattr.c: Update copyright.
9699         
9700 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9701
9702         * arch-utils.h (legacy_register_to_value): Declare.
9703         (legacy_value_to_register): Declare.
9704         (legacy_convert_register_p): Declare.
9705         * arch-utils.c (legacy_register_to_value): New function.
9706         (legacy_value_to_register): New function.
9707         (legacy_convert_register_p): New function.
9708
9709         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9710         (VALUE_TO_REGISTER): Define.
9711         (CONVERT_REGISTER_P): Define.
9712         * gdbarch.h, gdbarch.c: Regenerate.
9713
9714         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9715         VALUE_TO_REGISTER.
9716         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9717         CONVERT_REGISTER_P.
9718
9719 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9720             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9721
9722         * Makefile.in: Update dependencies for valops.c.
9723         * valops.c: Include "gdb_assert.h".
9724         (typecmp): Skip THIS parameter to methods.
9725         (find_method_list): Remove static_memfuncp argument,
9726         update callers.  Check for stub methods.
9727         (find_value_oload_method_list): Don't set *static_memfuncp.
9728         (find_overload_match): Don't check for stub methods.  Assert
9729         that methods are not stubbed.  Handle static methods.
9730         (value_find_oload_method_list): Remove static_memfuncp argument.
9731         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9732         to the argument list for static stub methods.
9733         * value.h (value_find_oload_method_list): Update prototype.
9734
9735 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9736
9737         * arch-utils.h (generic_register_size): Declare.
9738         (generic_register_raw_size, generic_register_virtual_size): Delete
9739         declarations.
9740         * arch-utils.c (generic_register_raw_size): Delete.
9741         (generic_register_size): New function.
9742         (generic_register_virtual_size): Delete.
9743
9744         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9745         default generic_register_size.
9746         * gdbarch.h, gdbarch.c: Re-generate.
9747         
9748         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9749         register_virtual_size.
9750         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9751         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9752
9753 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9754
9755         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9756         * gdbarch.h, gdbarch.c: Regenerate.
9757         * gnu-v3-abi.c: Update copyright.
9758         (vtable_address_point_offset): Update.
9759         (gnuv3_rtti_type): Update.
9760         (gnuv3_baseclass_offset): Update.
9761         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9762         (init_fetch_link_map_offsets): Update.
9763         * remote.c (get_remote_state): Update.
9764         
9765 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9766
9767         * TODO: Remove value_headof/value_from_vtable_info comment.
9768         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9769         * values.c (value_headof, value_from_vtable_info): Delete.
9770         * value.h (value_from_vtable_info): Delete prototype.
9771
9772 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9773
9774         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9775         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9776         $(gdb_regex_h).
9777         (gdb_assert_h): Define.
9778         (gdb_wait_h): Define.
9779         (gdb_regex_h): Define.
9780
9781 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9782
9783         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9784         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9785
9786 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9787
9788         * nbsd-tdep.c: Fix comment.
9789
9790 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9791
9792         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9793         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9794         (nbsd-tdep.o): New dependency list.
9795         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9796         nbsd-tdep.h.
9797         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9798         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9799         * nbsd-tdep.c: New file.
9800         * nbsd-tdep.h: New file.
9801         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9802         nbsd-tdep.h.
9803         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9804         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9805         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9806         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9807
9808 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9809
9810         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9811         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9812         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9813         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9814         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9815         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9816
9817 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9818
9819         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9820         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9821         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9822         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9823         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9824         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9825         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9826
9827 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9828
9829         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9830         fetch_elfcore_registers to...
9831         * i386nbsd-tdep.c: ...here.
9832         (i386nbsd_use_struct_convention): Rename to...
9833         (i386nbsd_aout_use_struct_convention): ...this.
9834         (i386nbsd_supply_reg): New function.
9835         (i386nbsd_fill_reg): New function.
9836         (fetch_core_registers): Use i386nbsd_supply_reg.
9837         (fetch_elfcore_registers): Likewise.
9838         (_initialize_i386nbsd_tdep): New function.
9839         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9840         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9841         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9842         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9843         (i386nbsd_aout_use_struct_convention): ...this.
9844
9845 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9846
9847         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9848         (store_inferior_registers): Use shnbsd_fill_reg.
9849         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9850         sh_nbsd_supply_register): Collapse into...
9851         (shnbsd_supply_reg): ...this.
9852         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9853         (shnbsd_fill_reg): ...this.
9854         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9855         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9856         (fetch_core_registers): Use shnbsd_supply_reg.
9857         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9858         (sh_nbsd_core_fns): Rename to...
9859         (shnbsd_core_fns): ...this.
9860         (sh_nbsd_elfcore_fns): Rename to...
9861         (shnbsd_elfcore_fns): ...this.
9862         (sh_nbsd_init_abi): Rename to...
9863         (shnbsd_init_abi): ...this.
9864         (_initialize_sh_nbsd_tdep): Rename to...
9865         (_initialize_shnbsd_tdep): ...this.
9866         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9867         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9868         sh_nbsd_fill_register): Remove prototypes.
9869         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9870
9871 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9872
9873         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9874         (i387-nat.o): Delete dependency list.
9875         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9876         (x86-64-linux-nat.o): Likewise.
9877         * i387-nat.c: Delete file, moving contents to...
9878         * i387-tdep.c: ...here.
9879         * i387-nat.h: Rename...
9880         * i387-tdep.h: ...to this.
9881         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9882         * i386-linux-nat.c: Likewise.
9883         * i386bsd-nat.c: Likewise.
9884         * i386gnu-nat.c: Likewise.
9885         * i386nbsd-nat.c: Likewise.
9886         * i386v4-nat.c: Likewise.
9887         * x86-64-linux-nat.c: Likewise.
9888         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9889         * config/i386/go32.mh (NATDEPFILES): Likewise.
9890         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9891         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9892         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9893         * config/i386/linux.mh (NATDEPFILES): Likewise.
9894         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9895         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9896         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9897         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9898
9899 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9900
9901         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9902         (alphanbsd-nat.o): Remove dependency list.
9903         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9904         * alphanbsd-nat.c: Delete.  Contents moved to...
9905         * alphanbsd-tdep.c: ...here.
9906         (_initialize_alphanbsd_tdep): Register core functions.
9907         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9908
9909 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9910
9911         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9912         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9913         (alphanbsd-nat.o): Likewise.
9914         (alphabsd-tdep.o): New dependency list.
9915         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9916         (fill_gregset): Use alphabsd_fill_reg.
9917         (supply_fpregset): Use alphabsd_supply_fpreg.
9918         (fill_fpregset): Use alphabsd_fill_fpreg.
9919         (fetch_inferior_registers): Use struct reg and struct fpreg
9920         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9921         and alphabsd_supply_fpreg.
9922         (store_inferior_registers): Use struct reg and struct fpreg
9923         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9924         and alphabsd_fill_fpreg.
9925         * alphabsd-tdep.c: New file.
9926         * alphabsd-tdep.h: New file.
9927         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9928         (fetch_elfcore_registers): Use alphabsd_supply_reg and
9929         alphabsd_supply_fpreg.
9930         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9931         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9932
9933 2002-05-11  Eric Christopher  <echristo@redhat.com>
9934
9935         * mips-tdep.c (mips_double_register_type): Fix thinko.
9936         (mips_single_register_type): Ditto.
9937         * MAINTAINERS: Add self.
9938
9939 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
9940
9941         * i387-nat.c (i387_supply_register, i387_fill_fsave,
9942         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9943         right thing on architectures with different endianness and/or
9944         integer sizes.
9945
9946 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
9947
9948         From Christian Limpach <chris@Pin.LU>
9949         * configure.in: Change sed expression which comments out
9950         NATDEPFILES to also comment out continuation lines.
9951         * configure: Regenerate.
9952
9953 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9954
9955         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9956         big patch.
9957
9958 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9959
9960         * sh-tdep.c: Include correct file.
9961
9962 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
9963
9964         New support for sh64-elf (sh5) target.
9965
9966         * configure.tgt: For sh64-elf target, default to sh-elf.
9967
9968         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9969         (struct gdbarch_tdep): Add new fields for new registers and ABI
9970         info.
9971
9972         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9973         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9974         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9975         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9976         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9977         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9978         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9979         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9980         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9981         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9982         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9983         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9984         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9985         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9986         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9987         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9988         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9989         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9990         sign_extend, sh64_nofp_frame_init_saved_regs,
9991         sh64_init_extra_frame_info, sh64_get_saved_register,
9992         sh64_extract_struct_value_address, sh64_pop_frame,
9993         sh64_push_arguments, sh64_extract_return_value,
9994         sh64_store_return_value, sh64_show_media_regs,
9995         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9996         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9997         sh_sh64_register_virtual_type,
9998         sh_sh64_register_convert_to_virtual,
9999         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10000         sh64_register_read, sh64_pseudo_register_write,
10001         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10002         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10003         sh64_do_pseudo_register, sh_compact_do_registers_info,
10004         sh64_do_registers_info, sh_gdbarch_init): New functions.
10005
10006 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10007
10008         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10009
10010 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10011
10012         * linespec.c (decode_line_1): Check for a double quote after
10013         a filename correctly.
10014
10015 2002-05-10  Jim Blandy  <jimb@redhat.com>
10016
10017         Properly track the size of the current objfile's .debug_line section.
10018         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10019         (DWARF_LINE_SIZE): New macro.
10020         (dwarf2_build_psymtabs_hard): Record the line section's size in
10021         the partial symbol table.
10022         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10023         symbol table.
10024
10025 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10026
10027         * ia64-tdep.c: Handle breakpoints on L instruction type
10028         in MLX instruction bundle by moving the breakpoint to
10029         the third slot (X instruction type) as L holds only data.
10030
10031 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10032
10033         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10034         (process_one_symbol): Complain about discarding local symbols
10035         due to a misplaced N_LBRAC entry.
10036
10037 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10038
10039         From Daniel Berlin <dan@cgsoftware.com>
10040         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10041         decrease the depth we are at, in the case of templates.
10042
10043 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10044
10045         * mips-tdep.c (mips_float_register_type): New function.
10046         (mips_double_register_type): New function.
10047         (mips_print_register): Use them.
10048         (do_fp_register_row): Likewise.
10049
10050 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10051
10052         * signals/signals.c (signals): Remove conditional compilation around
10053         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10054         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10055
10056 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10057
10058         * remote-rdp.c (remote_rdp_can_run): Remove.
10059
10060 2002-05-09  Tom Tromey  <tromey@redhat.com>
10061
10062         * jv-valprint.c (java_val_print): Handle `char' as a special case
10063         of TYPE_CODE_INT.
10064
10065 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10066
10067         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10068         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10069         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10070         str r(0123),[sp,#nn].
10071         (arm_skip_prologue): Ditto.  Also make disassembly
10072         order-independent by placing it in a loop.
10073
10074 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10075
10076         * stabsread.c (read_type): Add recognition for new attribute:
10077         "@V;" means that an array type is actually a vector.
10078         This is analogous to the vector flag that's been added to dwarf2.
10079
10080 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10081
10082         * i386-tdep.h (i386_abi): New enum.
10083         (struct gdbarch_tdep): Replace os_ident member with abi.
10084         (i386_gdbarch_register_os_abi): New prototype.
10085         * i386-tdep.c (i386_abi_names): New array.
10086         (process_note_abi_tag_sections): Removed.
10087         (process_note_sections): New function.
10088         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10089         (struct i386_abi_handler): New struct.
10090         (i386_abi_handler_list): New variable.
10091         (i386_gdbarch_register_os_abi): New function.
10092         (i386_gdbarch_init): Adapt for the changes given above.
10093
10094 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10095
10096         * gregset.h: Say "GNU/Linux".
10097
10098 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10099
10100         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10101         (build_gdbtypes): Build builtin_type_v2_float.
10102         (_initialize_gdbtypes): Register new builtin type.
10103
10104 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10105
10106         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10107         (clear_gdbarch_swap): New function.
10108         (initialize_non_multiarch): Call.
10109         (gdbarch_update_p): Before calling init(), swap out and clear the
10110         existing architecture.
10111         * gdbarch.c: Regenerate.
10112
10113 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10114
10115         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10116         alphanbsd-tdep.c.
10117
10118 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10119
10120         * sh-nbsd-nat.c: Rename to...
10121         * shnbsd-nat.c: ...this.
10122         * sh-nbsd-tdep.c: Rename to...
10123         * shnbsd-tdep.c: ...this.
10124         * sh-nbsd-tdep.h: Rename to...
10125         * shnbsd-tdep.h: ...this.
10126         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10127         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10128
10129 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10130
10131         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10132         concatenation for command help messages.
10133
10134 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10135
10136         * NEWS: Note new sh*-*-netbsdelf* configuration.
10137         * configure.host: Set gdb_host_cpu to sh for all sh*.
10138         (sh*-*-netbsdelf*): New host.
10139         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10140         (sh*-*-netbsdelf*): New target.
10141         * sh-nbsd-nat.c: New file.
10142         * sh-nbsd-tdep.c: New file.
10143         * sh-nbsd-tdep.h: New file.
10144         * config/sh/nbsd.mh: New file.
10145         * config/sh/nbsd.mt: New file.
10146         * config/sh/nm-nbsd.h: New file.
10147         * config/sh/tm-nbsd.h: New file.
10148
10149 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10150
10151         * sh-tdep.c (sh_osabi_names): Declare.
10152         (process_note_abi_tag_sections): New function.
10153         (get_elfosabi): Ditto.
10154         (sh_gdbarch_register_os_abi): Ditto.
10155         (sh_dump_tdep): Ditto.
10156         _initialize_sh_tdep): Use gdbarch_register to register
10157         sh_gdbarch_init and sh_dump_tdep.
10158         * config/sh/tm-sh.h (sh_osabi): Declare.
10159         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10160
10161 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10162
10163         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10164         (thumb_scan_prologue): Ditto.
10165         (arm_find_callers_reg): Ditto.
10166         (arm_frame_chain): Ditto.
10167         (arm_init_extra_frame_info): Ditto.
10168         (arm_frame_saved_pc): Ditto.
10169         (arm_pop_frame): Ditto.
10170         (arm_push_return_address): New function.
10171         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10172         call_dummy_location, call_dummy_breakpoint_offset_p,
10173         call_dummy_breakpoint_offset, call_dummy_p,
10174         call_dummy_stack_adjust_p, call_dummy_words,
10175         sizeof_call_dummy_words, call_dummy_start_offset,
10176         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10177         call_dummy_address, push_return_address and push_dummy_frame for
10178         generic dummy frames.
10179
10180 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10181
10182         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10183         size computation for alloca.
10184         (sh_fp_frame_init_saved_regs): Likewise.
10185
10186 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10187
10188         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10189         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10190         * arm-tdep.c (arm_store_return_value): Use them.
10191         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10192         * remote-rdp.c (remote_rdp_fetch_register): Use
10193         ARM_MAX_REGISTER_RAW_SIZE.
10194         (remote_rdp_store_register): Likewise.
10195
10196 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10197
10198         * dwarf2cfi.c: Code cleanup, removed unused variables,
10199         added default labels to switch {} statements.
10200         * x86-64-tdep.c: Ditto.
10201         * x86-64-linux-nat.c: Ditto.
10202
10203 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10204
10205         * solib.h: Protect against multiple inclusion.
10206
10207 2002-05-06  Jim Blandy  <jimb@redhat.com>
10208
10209         Add first preprocessor macro-expansion files.
10210         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10211         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10212         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10213         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10214         (COMMON_OBS): Add macrotab.o, macroexp.o.
10215         (macroexp.o, macrotab.o): New rules.
10216
10217         Separate the job of reading the line number info statement program
10218         header (...expialidocious) out into its own function.
10219         * dwarf2read.c (struct line_head, struct filenames, struct
10220         directories): Replace with...
10221         (struct line_header): New structure, containing the full
10222         contents of the statement program header, including the
10223         include directory and file name tables.
10224         (read_file_scope): If we have line number info, instead of just
10225         calling dwarf_decode_lines to do all the work, call
10226         dwarf_decode_line_header first to get a `struct line_header'
10227         containing the data in the statement program header, and then
10228         pass that to dwarf_decode_lines, which will pick up where that
10229         left off.  Be sure to clean up the `struct line_header' object.
10230         (dwarf_decode_line_header, free_line_header, add_include_dir,
10231         add_file_name): New functions.
10232         (dwarf_decode_lines): Move all the code to read the statement
10233         program header into dwarf_decode_line_header.  Take the line
10234         header it built as the first argument, instead of the offset to
10235         the compilation unit's line number info.  Use the new `struct
10236         line_header' type instead of the old structures.  No need to do
10237         cleanups here now, since we don't allocate anything.
10238         (dwarf2_statement_list_fits_in_line_number_section,
10239         dwarf2_line_header_too_long): New complaints.
10240
10241 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10242
10243         * gdbtypes.c (init_vector_type): New function.
10244         (build_builtin_type_vec128): Simplify the representation of SIMD
10245         registers.
10246         (build_gdbtypes): Initialize new builtin vector types.
10247         (_initialize_gdbtypes): Register new vector types with gdbarch.
10248         (builtin_type_v4_float, builtin_type_v4_int32,
10249         builtin_type_v8_int16, builtin_type_v16_int8,
10250         builtin_type_v2_int32, builtin_type_v4_int16,
10251         builtin_type_v8_int8): New (renamed) SIMD types.
10252
10253 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10254
10255         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10256         (i387_fill_fxsave): Likewise.
10257
10258 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10259
10260         * alpha-tdep.c (alpha_extract_return_value): Don't use
10261         non-constant array size in prototype.
10262
10263 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10264
10265         From Brian Taylor <briant at model dot com>:
10266         * ui-out.c (ui_out_field_core_addr): Use the function
10267         longest_local_hex_string_custom'to format addresses > 32 bits
10268         wide.
10269
10270         * ui-out.c (ui_out_field_core_addr): Update comment.
10271
10272 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10273
10274         * stack.c (select_and_print_frame): Make static.  Delete the
10275         parameter `level'.
10276         (func_command): Update call.
10277         (select_frame_command): Delete code computing the frame level.
10278         * frame.h (select_and_print_frame): Delete declaration.
10279
10280 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10281
10282         * sparc-tdep.c (sparc_get_saved_register): Comment why
10283         get_prev_frame call is safe.
10284
10285 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10286
10287         * frame.h (select_frame): Delete level parameter.
10288         * stack.c (select_frame): Update.  Use frame_relative_level to
10289         obtain the frame's level.
10290         (select_and_print_frame): Update call.
10291         (select_frame_command): Ditto.
10292         (up_silently_base): Ditto.
10293         (down_silently_base): Ditto.
10294         * ocd.c (ocd_start_remote): Ditto.
10295         * remote-rdp.c (remote_rdp_open): Ditto.
10296         * remote-mips.c (mips_initialize): Ditto.
10297         (common_open): Ditto.
10298         * remote-e7000.c (e7000_start_remote): Ditto.
10299         * m3-nat.c (select_thread): Ditto.
10300         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10301         (child_get_current_exception_event): Ditto.
10302         * varobj.c (varobj_create): Ditto.
10303         (varobj_update): Ditto.
10304         (c_value_of_root): Ditto.
10305         * tracepoint.c (finish_tfind_command): Ditto.
10306         * corelow.c (core_open): Ditto.
10307         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10308         * thread.c (info_threads_command): Ditto.
10309         (switch_to_thread): Ditto.
10310         * infrun.c (normal_stop): Ditto.
10311         (restore_selected_frame): Ditto.
10312         (restore_inferior_status): Ditto.
10313         * breakpoint.c (insert_breakpoints): Ditto.
10314         (watchpoint_check): Ditto.
10315         (bpstat_stop_status): Ditto.
10316         (do_enable_breakpoint): Ditto.
10317         * blockframe.c (flush_cached_frames): Ditto.
10318         (reinit_frame_cache): Ditto.
10319
10320 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10321
10322         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10323         maintainer.
10324
10325 2002-05-04  Jim Blandy  <jimb@redhat.com>
10326
10327         * gdbtypes.c (replace_type): Doc fix.
10328
10329 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10330
10331         * valprint.c (strcat_longest): Delete commented out function.
10332         Update copyright.
10333
10334 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10335
10336         * MAINTAINERS: Mark a29k as deleted.
10337         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10338         Move new configurations to the top.
10339         * configure.tgt: Remove a29k.
10340         * config/a29k/tm-vx29k.h: Delete.
10341         * config/a29k/vx29k.mt: Delete.
10342         * config/a29k/tm-a29k.h: Delete.
10343         * config/a29k/a29k-udi.mt: Delete.
10344         * config/a29k/a29k.mt: Delete.
10345         * a29k-tdep.c: Delete.
10346         * remote-udi.c: Delete.
10347         * remote-mm.c: Delete.
10348         * remote-eb.c: Delete.
10349         * remote-adapt.c: Delete.
10350         * Makefile.in: Remove obsolete code.
10351         * config/s390/s390x.mt: Ditto.
10352         * config/s390/s390.mt: Ditto.
10353         * config/sparc/sparclynx.mh: Ditto.
10354         * config/sparc/linux.mh: Ditto.
10355         * config/pa/hppaosf.mh: Ditto.
10356         * config/pa/hppabsd.mh: Ditto.
10357         * config/ns32k/nbsd.mt: Ditto.
10358         * config/mips/vr5000.mt: Ditto.
10359         * config/m68k/sun3os4.mh: Ditto.
10360         * config/m68k/nbsd.mt: Ditto.
10361         * config/m68k/m68klynx.mh: Ditto.
10362         * config/m32r/m32r.mt: Ditto.
10363         * config/i386/x86-64linux.mt: Ditto.
10364         * config/i386/nbsdelf.mt: Ditto.
10365         * config/i386/nbsd.mt: Ditto.
10366         * config/i386/i386lynx.mh: Ditto.
10367
10368 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10369
10370         * target.c (debug_print_register): New function.  Handle oversize
10371         registers.
10372         (debug_to_fetch_registers): Call.
10373         (debug_to_store_registers): Call.
10374
10375 2002-05-03  Jim Blandy  <jimb@redhat.com>
10376
10377         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10378         (read_type): Doc fix.
10379         * gdbtypes.c (replace_type): Doc fix.
10380
10381         * stabsread.c (multiply_defined_struct): New complaint.
10382         (read_struct_type): If the type we were passed isn't empty, or
10383         incomplete, don't read the new struct type into it; complain,
10384         and return the original type unchanged.  Take a new `type_code'
10385         argument, which is the type code for the new type.
10386         (read_type): Rather than storing the type's type code here, pass
10387         it as an argument to read_struct_type, and let that take care of
10388         storing it.  That way, we don't overwrite the original type code,
10389         so read_struct_type can use it to decide whether we're overwriting
10390         something we shouldn't.
10391         (complain_about_struct_wipeout): New function.
10392
10393 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10394
10395         * gdbarch.sh: Assert that gdbarch is non-NULL.
10396         * gdbarch.c: Regenerate.
10397
10398 2002-05-03  Jason Merrill  <jason@redhat.com>
10399
10400         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10401         and return NULL.
10402
10403 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10404
10405         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10406         (x86_64_dwarf2gdb_regno_map_length),
10407         (x86_64_dwarf2_reg_to_regnum): Added.
10408         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10409         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10410         (_initialize_x86_64_tdep): Synced with the change above.
10411         (x86_64_skip_prologue): Reformulated message.
10412
10413 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10414
10415         * f-exp.y: Also use new prev_lexptr variable
10416         to improve error reporting. Based on Michael Snyder
10417         2002-04-24 dated patch to c-exp.y.
10418         * jv-exp.y: Likewise.
10419         * m2-exp.y: Likewise.
10420
10421 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10422
10423         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10424         we are dealing with vectors.
10425
10426 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10427
10428         * config/m68k/tm-nbsd.h: Obvious fix,
10429         correct machine name.
10430
10431 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10432
10433         * p-typeprint.c (pascal_type_print_base): Add support
10434         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10435
10436 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10437
10438         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10439         for fondamental pascal 'char' type.
10440
10441 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10442
10443         * p-lang.h (is_pascal_string_type): Declaration changed,
10444         new sixth argument of type char ** added.
10445         * p-lang.c (is_pascal_string_type): Implementation
10446         changed. Args length_pos, length_size, string_pos, char_size
10447         can now be NULL. New argument arrayname set to the field
10448         name of the char array. Return value set to char array
10449         field index plus one.
10450         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10451         is_pascal_string_type function.
10452
10453 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10454
10455         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10456         <cagney@redhat.com> change.
10457         * gdbarch.c: Regenerate.
10458
10459 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10460
10461         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10462         before probing for a new one.  Detect errorenous gdbarch_init
10463         functions.
10464         * gdbarch.c: Regenerate.
10465
10466 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10467
10468         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10469         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10470         * config/v850/tm-v850.h: Ditto.  Update copyright.
10471
10472 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10473
10474         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10475         current_gdbarch.
10476
10477 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10478
10479         * arm-tdep.c: Whitespace clean-ups.
10480         (arm_skip_prologue): Fix thinko; two lines
10481         should have been removed as part of 4/24 change.
10482
10483 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10484
10485         * rs6000-tdep.c: Added comment describing how fpscr register
10486         numbers were chosen.
10487
10488 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10489
10490         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10491
10492 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10493
10494         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10495         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10496         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10497
10498 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10499
10500         From Louis Hamilton <hamilton@redhat.com>:
10501         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10502         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10503         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10504         not bfd-private xcoff data, to determine wordsize.
10505         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10506
10507 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10508
10509         GDB 5.2 released from 5.2 branch.
10510
10511 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10512
10513         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10514         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10515         (x86_64_register_info_table): Added comments with register numbers.
10516
10517 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10518
10519         * rs6000-tdep.c (rs6000_extract_return_value,
10520         rs6000_store_return_value): Handle returning vectors.
10521         (rs6000_gdbarch_init): Use
10522         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10523         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10524         New function.
10525         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10526         vectors.
10527         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10528         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10529
10530 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10531
10532         * hpread.c (hpread_psymtab_to_symtab_1,
10533         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10534         with fprintf_unfiltered (gdb_stderr,...).
10535
10536 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10537
10538         * remote-array.c (printf_monitor, write_monitor,
10539         array_insert_breakpoint, array_remove_breakpoint ):
10540         Replace fprintf (stderr,...
10541         with fprintf_unfiltered (gdb_stderr,....
10542         * remote-es.c: Likewise.
10543         * remote-os9k.c: Likewise.
10544         * remote-st.c: Likewise.
10545
10546 2002-04-28  Andreas Schwab  <schwab@suse.de>
10547
10548         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10549         linux-proc.o and gcore.o.
10550
10551 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10552
10553         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10554         code without frame pointers.
10555
10556 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10557
10558         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10559         ON_STACK is needed.
10560
10561 2002-04-26  Ben Elliston  <bje@redhat.com>
10562
10563         * target.c (do_xfer_memory): Correct reference to the new option
10564         "trust-readonly-sections".
10565
10566 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10567
10568         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10569         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10570         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10571         vectors.
10572         (read_array_type): Record the fact that this array type is really a
10573         vector (i.e. are passed in by value).
10574
10575 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10576
10577         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10578         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10579         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10580         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10581         * alpha-linux-tdep.c: Include frame.h.
10582         (alpha_linux_sigcontext_addr): New function.
10583         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10584         alpha_linux_sigcontext_addr.
10585         * alpha-osf1-tdep.c: Include gdbcore.h.
10586         (alpha_osf1_sigcontext_addr): New function.
10587         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10588         alpha_osf1_sigcontext_addr.
10589         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10590         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10591
10592 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10593
10594         * stack.c (selected_frame_level):
10595         (select_frame): Do not set selected_frame_level.
10596         * frame.h (selected_frame_level): Delete declaration.
10597
10598 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10599
10600         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10601         convert_from_func_ptr-addr when AIX / PowerOpen.
10602
10603 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10604
10605         * valops.c (hand_function_call): Call
10606         generic_save_call_dummy_addr.
10607         * frame.h (generic_save_call_dummy_addr): Declare.
10608         * blockframe.c (struct dummy_frame): Add fields call_lo and
10609         call_hi.
10610         (generic_find_dummy_frame): Check for PC in range call_lo to
10611         call_hi instead of entry_point_address.
10612         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10613         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10614         (generic_save_call_dummy_addr): New function.
10615
10616 2002-04-24  David S. Miller  <davem@redhat.com>
10617
10618         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10619         sparc_skip_prologue.
10620         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10621         information to find prologue when possible.
10622         (sparc_prologue_frameless_p): Call examine_prologue directly.
10623         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10624         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10625         second argument.
10626         (SKIP_PROLOGUE): Likewise.
10627
10628 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10629
10630         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10631         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10632         indicate that the condition it was testing is always true.
10633         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10634         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10635         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10636
10637 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10638
10639         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10640         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10641         tdep->jb_pc and tdep->jb_elt_size.
10642         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10643         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10644         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10645         * alpha-nat.c (get_longjmp_target): Remove.
10646         (JB_ELEMENT_SIZE): Ditto.
10647         (JB_PC): Ditto.
10648         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10649         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10650         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10651         to alpha_get_longjmp_target.
10652         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10653         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10654         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10655
10656 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10657
10658         * README: Update to GDB 5.2.
10659
10660 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10661
10662         * gdbarch.sh (LC_ALL): Set to `c'.
10663
10664 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10665
10666         * avr-tdep.c: Ran through gdb_indent.sh.
10667
10668 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10669
10670         * MAINTAINERS: Add myself as AVR maintainer.
10671         * NEWS: Note new target avr.
10672
10673 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10674
10675         * Makefile.in: Add support for AVR target.
10676         * configure.tgt: Add support for AVR target.
10677         * avr-tdep.c: New file
10678         * config/avr/avr.mt: New file.
10679
10680 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10681
10682         * MAINTAINERS: Add myself to write-after-approval.
10683
10684 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10685
10686         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10687         with fprintf_unfiltered (gdb_stderr,....
10688
10689 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10690
10691         Fix PR gdb/508.
10692         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10693
10694 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10695
10696         * p-exp.y: Also use new prev_lexptr variable
10697         to improve error reporting. Based on Michael Snyder
10698         2002-04-24 dated patch to c-exp.y.
10699
10700 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10701
10702         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10703         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10704         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10705         to 0.
10706         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10707         and struct value.
10708         (FUNCTION_START_OFFSET): Remove.
10709         (BREAKPOINT): Ditto.
10710
10711 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10712
10713         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10714         * NEWS: Ditto.
10715
10716 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10717
10718         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10719         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10720         alpha_linux_pc_in_sigtramp.
10721         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10722         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10723         alpha_osf1_pc_in_sigtramp.
10724         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10725         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10726         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10727         alphafbsd_pc_in_sigtramp.
10728         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10729         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10730         alphanbsd_pc_in_sigtramp.
10731         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10732         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10733
10734 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10735
10736         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10737
10738 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10739
10740         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10741         alphanbsd-tdep.c.
10742         (alphanbsd-nat.o): New dependency list.
10743         (alphanbsd-tdep.o): Ditto.
10744         * NEWS: Note new native NetBSD/alpha configuration.
10745         * alphanbsd-nat.c: New file.
10746         * alphanbsd-tdep.c: Ditto.
10747         * configure.host (alpha*-*-netbsd*): New host.
10748         * configure.tgt (alpha*-*-netbsd*): New target.
10749         * config/alpha/nbsd.mh: New file.
10750         * config/alpha/nbsd.mt: Ditto.
10751         * config/alpha/nm-nbsd.h: Ditto.
10752         * config/alpha/tm-nbsd.h: Ditto.
10753
10754 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10755
10756         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10757         (alpha-osf1-tdep.o): New dependency list.
10758         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10759         and skip_sigtramp_frame members.
10760         * alpha-linux-tdep.c: Include gdbcore.h.
10761         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10762         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10763         * alpha-osf1-tdep.c: New file.
10764         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10765         alpha-osf1-dep.c.
10766         (alpha_frame_past_sigtramp_frame): New function.
10767         (alpha_dynamic_sigtramp_offset): Ditto.
10768         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10769         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10770         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10771         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10772         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10773         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10774         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10775         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10776         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10777         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10778         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10779         to find_solib_trampoline_target.
10780         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10781         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10782         (SKIP_TRAMPOLINE_CODE): Remove.
10783         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10784         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10785         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10786         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10787         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10788         (PROC_SIGTRAMP_MAGIC): Ditto.
10789         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10790         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10791         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10792         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10793         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10794
10795 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10796
10797         * NEWS: Note that Alpha targets are now multi-arch.
10798
10799 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10800
10801         * parser-defs.h (prev_lexptr): New external variable.
10802         * parse.c (parse_exp_1): Set prev_lexptr to null before
10803         calling the language-specific parser.
10804         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10805         (yyerror): Use prev_lexptr in error reporting.
10806
10807 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10808
10809         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10810         * gregset.h: If FILL_FPXREGSET is defined, provide
10811         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10812         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10813         is defined, call fill_fpxregset.
10814
10815 2002-04-24  Roland McGrath  <roland@frob.com>
10816
10817         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10818         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10819         (supply_gregset, supply_fpregset): New functions.
10820
10821         * gnu-nat.c (gnu_find_memory_regions): New function.
10822         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10823         (gnu_xfer_memory): Add a cast.
10824
10825 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10826
10827         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10828         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10829         of argument regs ("str r(0123), [r11, #-nn"]).
10830         (arm_skip_prologue): Better handling for frameless functions.
10831         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10832         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10833
10834 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10835
10836         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10837         NUM_PSEUDO_REGS can be used.
10838
10839 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10840
10841         * arch-utils.h: Update copyright.
10842
10843         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10844         * gdbarch.h, gdbarch.c: Re-generate.
10845
10846         * inferior.h (IN_SIGTRAMP): Delete definition.
10847         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10848         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10849
10850         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10851         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10852         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10853         (find_proc_framesize): Ditto.
10854         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10855         (alpha_init_extra_frame_info): Ditto.
10856         * infrun.c (handle_inferior_event): Ditto.
10857         (handle_inferior_event): Ditto.
10858         (check_sigtramp2): Ditto.
10859         * blockframe.c (create_new_frame): Ditto.
10860         (get_prev_frame): Ditto.
10861         * ppc-linux-tdep.c: Update comments.
10862         * i386-linux-tdep.c: Update comments.
10863         * breakpoint.c (bpstat_what): Update comment.
10864
10865 2002-04-24  David S. Miller  <davem@redhat.com>
10866
10867         * i960-tdep.c (register_in_window_p): New function.
10868         (i960_find_saved_register): Use it instead of
10869         REGISTER_IN_WINDOW_P.
10870         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10871
10872         * symtab.h (find_stab_function_addr): Kill extern.
10873         * minsyms.c (find_stab_function_addr): Remove from here...
10874         * dbxread.c: ... to here, and mark it static.
10875
10876 2002-04-20  David S. Miller  <davem@redhat.com>
10877
10878         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10879         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10880
10881 2002-04-21  David S. Miller  <davem@redhat.com>
10882
10883         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10884         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10885         (vx_write_register): Likewise.
10886
10887 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10888
10889         * source.c (is_regular_file): New function.
10890         (openp): Check wether file to open is a regular file
10891         to avoid opening directories.
10892
10893 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10894
10895         * findvar.c (extract_signed_integer): Cast printf argument
10896         to suppress format warning.
10897         (extract_unsigned_integer): Likewise.
10898         * infcmd.c (registers_info): Likewise.
10899         * top.c (get_prompt_1): Likewise.
10900         * valops.c (value_assign): Likewise.
10901         * valprint.c (print_decimal): Likewise.
10902
10903 2002-04-22  H.J. Lu  (hjl@gnu.org)
10904
10905         * c-exp.y (typebase): Support
10906
10907         [long|long long|short] [signed|unsigned] [int|]
10908
10909         and
10910
10911         signed [long|long long|short] int
10912
10913 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10914
10915         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10916         and vax-tdep.h.
10917         * vax-tdep.h: New file.
10918         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10919         Make several routines static.
10920         (vax_get_saved_register): New function.
10921         (vax_gdbarch_init): New function.
10922         (_initialize_vax_tdep): Register vax_gdbarch_init.
10923         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10924         Remove macros now under the control of gdbarch.
10925
10926 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10927
10928         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10929         Some whitespace and coding standards tweaks.
10930
10931 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10932
10933         * vax-tdep.c: Include regcache.h.
10934         (vax_call_dummy_words): New.
10935         (sizeof_vax_call_dummy_words): New.
10936         (vax_fix_call_dummy): New function.
10937         (vax_saved_pc_after_call): Ditto.
10938         * config/vax/tm-vax.h: Don't include regcache.h.
10939         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10940         (CALL_DUMMY): Remove.
10941         (CALL_DUMMY_WORDS): Define.
10942         (SIZEOF_CALL_DUMMY_WORDS): Define.
10943         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10944
10945 2002-04-18  Michael Snyder  <msnyder@redhat.com>
10946
10947         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10948
10949 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10950
10951         * vax-tdep.c (vax_frame_chain): New function.
10952         (vax_push_dummy_frame): Ditto.
10953         (vax_pop_frame): Ditto.
10954         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10955         (FRAMELESS_FUNCTION_INVOCATION): Use
10956         generic_frameless_function_invocation_not.
10957         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10958         (POP_FRAME): Use vax_pop_frame.
10959
10960 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10961
10962         * vax-tdep.c (vax_store_struct_return): New function.
10963         (vax_extract_return_value): Ditto.
10964         (vax_store_return_value): Ditto.
10965         (vax_extract_struct_value_address): Ditto.
10966         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10967         vax_store_struct_return.
10968         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10969         (STORE_RETURN_VALUE): Use vax_store_return_value.
10970         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10971
10972 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10973
10974         * vax-tdep.c (vax_frame_saved_pc): New function.
10975         (vax_frame_args_address_correct): Ditto.
10976         (vax_frame_args_address): Ditto.
10977         (vax_frame_locals_address): Ditto.
10978         (vax_frame_num_args): Move code to be in proximity to
10979         other frame-related functions.
10980         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10981         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10982         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10983         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10984         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10985
10986 2002-04-22  H.J. Lu  (hjl@gnu.org)
10987
10988         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10989         includedir.
10990
10991 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10992
10993         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10994         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10995         (FRAME_INIT_SAVED_REGS): New macro.
10996
10997 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10998
10999         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11000
11001 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11002
11003         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11004         where needed.
11005         (fetch_osf_core_registers): Likewise.
11006         (supply_gregset): Likewise.
11007
11008 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11009
11010         * symfile.h (get_section_index): Define.
11011         * symfile.c (get_section_index): New function.
11012         * mdebugread.c (SC_IS_SBSS): New macro.
11013         (SC_IS_BSS): Return true for the scBss storage class only, as
11014         the scSBss storage class refers to the .sbss section.
11015         (parse_partial_symbols): Discard the symbols which associated
11016         section does not exist.
11017         Make sure to use the .sbss section index for symbols which
11018         storage class is scBss, rather than using the .bss section index.
11019
11020 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11021
11022         * vax-tdep.c: Update copyright years.
11023         (vax_register_name): New function.
11024         (vax_register_byte): Ditto.
11025         (vax_register_raw_size): Ditto.
11026         (vax_register_virtual_size): Ditto.
11027         (vax_register_virtual_type): Ditto.
11028         * config/vax/tm-vax.h: Update copyright years.
11029         (REGISTER_NAMES): Remove.
11030         (REGISTER_NAME): Define.
11031         (REGISTER_BYTE): Use vax_register_byte.
11032         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11033         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11034         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11035
11036 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11037
11038         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11039         declaration
11040         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11041
11042 2002-04-21  David S. Miller  <davem@redhat.com>
11043
11044         * arch-utils.c (generic_prologue_frameless_p): Kill
11045         SKIP_PROLOGUE_FRAMELESS_P code.
11046         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11047         references.
11048         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11049         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11050         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11051         references.
11052         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11053         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11054         (sparc_gdbarch_init): Pass it to
11055         set_gdbarch_prologue_frameless_p.
11056
11057 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11058
11059         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11060         (alphabsd-nat.o): New dependency list.
11061
11062 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11063
11064         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11065         alphafbsd-tdep.c.
11066         (alpha-linux-tdep.o): New dependency list.
11067         (alphafbsd-tdep.o): Likewise.
11068
11069 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11070
11071         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11072         to here...
11073         * alpha-tdep.c: ...from here.
11074         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11075
11076 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11077
11078         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11079         prototype from here...
11080         * alpha-tdep.h: ...to here.
11081
11082 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11083
11084         * frame.h (selected_frame_level): Document as deprecated.
11085         (frame_relative_level): Declare.
11086         * stack.c (frame_relative_level): New function.
11087         (selected_frame_level): Document as deprecated.
11088         (select_frame): Do not set the selected_frame_level.
11089
11090         * stack.c (frame_info, record_selected_frame): Update.
11091         (frame_command, current_frame_command): Update.
11092         (up_silently_base, up_command, down_silently_base): Update.
11093         (down_command): Update.
11094         * inflow.c (kill_command): Update.
11095         * tracepoint.c (finish_tfind_command): Update.
11096         * corelow.c (core_open): Update.
11097         * thread.c (info_threads_command): Update.
11098         (do_captured_thread_select): Update.
11099         * infcmd.c (finish_command): Update.
11100         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11101
11102 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11103
11104         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11105
11106 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11107
11108         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11109         type const.
11110
11111 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11112
11113         * alphafbsd-tdep.c: Update copyright years.  Include
11114         alpha-tdep.h.
11115         (alphafbsd_use_struct_convention): Make static.
11116         (alphafbsd_init_abi): New function.
11117         (_initialize_alphafbsd_tdep): New function.
11118         * config/alpha/tm-fbsd.h: Update copyright years.
11119         (USE_STRUCT_CONVENTION): Remove.
11120
11121 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11122
11123         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11124         an Alpha ABI variant.
11125         (alpha_abi_handler_list): Declare.
11126         (alpha_gdbarch_register_os_abi): New function.
11127         (alpha_gdbarch_init): Give registered ABI variant handlers a
11128         chance to tweak the gdbarch once we have set up defaults.
11129         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11130
11131 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11132
11133         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11134         to standard_coerce_float_to_double.
11135         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11136
11137 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11138
11139         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11140         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11141         from gdbarch_tdep rather than a constant.
11142         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11143         the default text address for all Alpha Unix ABIs.
11144         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11145         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11146
11147 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11148
11149         * alpha-tdep.h: New file.  Includes several Alpha target constants
11150         taken from...
11151         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11152         let gdbarch deal with.
11153         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11154         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11155         to dependency list.
11156         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11157         Alpha target register names.
11158         * alphabsd-nat.c: Likewise.
11159         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11160         Alpha target register names.  Make serveral routines static.
11161         (alpha_get_saved_register): New function.
11162         (alpha_abi_names): New.
11163         (process_note_abi_tag_sections): New function.
11164         (get_elfosabi): New function.
11165         (alpha_gdbarch_init): New function.
11166         (alpha_dump_tdep): New function.
11167         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11168
11169 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11170
11171         * frame.c (find_saved_register): Delete #ifdef
11172         HAVE_REGISTER_WINDOWS code.
11173         * config/sparc/tm-sparc.h: Update comments.
11174         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11175
11176 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11177
11178         * i960-tdep.c (i960_find_saved_register): New function.
11179         (i960_get_saved_register): New function.
11180         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11181         (i960_get_saved_register): Declare.
11182         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11183
11184 2002-04-20  David S. Miller  <davem@redhat.com>
11185
11186         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11187
11188 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11189
11190         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11191         instead of NUM_PSEUDO_REGS.
11192
11193 2002-04-20  David S. Miller  <davem@redhat.com>
11194
11195         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11196         GDB_MULTI_ARCH_PARTIAL
11197         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11198         define, let tm-sp64.h do it.
11199
11200 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11201
11202         * frame.c (find_saved_register): Avoid a NULL pointer
11203         dereference and actually walk the frame list.
11204
11205 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11206
11207         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11208         sorted in most most-recent-used order.  Document.
11209         * gdbarch.h, gdbarch.c: Regenerate.
11210
11211 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11212
11213         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11214         instead of ->prev.
11215         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11216         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11217         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11218         instead of ->prev.
11219
11220 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11221
11222         Fix PR gdb/471.
11223         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11224         (build_builtin_type_vec128): Ditto.
11225         (append_composite_type_field): Fix calculation of type length in
11226         union case.
11227
11228 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11229
11230         * config/djgpp/README: Update.
11231
11232         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11233         compiler warnings.
11234
11235 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11236
11237         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11238         (alpha_setup_arbitrary_frame): ...to this.
11239         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11240         for alpha_setup_arbitrary_frame.
11241
11242 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11243
11244         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11245         * gdbarch.h, gdbarch.c: Regenerate.
11246
11247         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11248         * target.h (memory_breakpoint_from_pc): Update declaration.
11249         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11250
11251         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11252         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11253         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11254         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11255         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11256         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11257         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11258         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11259         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11260         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11261         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11262         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11263
11264         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11265         const pointer.
11266         * monitor.c (monitor_insert_breakpoint): Ditto.
11267         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11268
11269         * config/mcore/tm-mcore.h: Update copyright.
11270         * mem-break.c: Ditto.
11271         * xstormy16-tdep.c: Ditto.
11272
11273 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11274
11275         * p-exp.y: Add precedence rule for '^' token.
11276         This removes the shift/reduce conflicts.
11277         Remove the comment concerning these shift/reduce conflicts.
11278
11279 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11280
11281         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11282         (registers_powerpc_nofp): New register set for processors
11283         without floating point unit.
11284
11285 2002-04-18  David S. Miller  <davem@redhat.com>
11286
11287         * MAINTAINERS: Add myself to write-after-approval.
11288
11289 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11290
11291         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11292
11293 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11294
11295         * rs6000-tdep.c (frame_initial_stack_address): Use
11296         frame_register_read to read the alloca_reg.
11297
11298 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11299
11300         * frame.c (find_saved_register): Find saved registers in the next
11301         not prev frame.
11302         Fix PR gdb/365.
11303
11304 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11305
11306         * gdbarch.sh (LANG): Set to ``c''.
11307
11308 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11309
11310         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11311
11312 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11313
11314         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11315         Update copyright.
11316
11317         * hpread.c (hpread_get_lntt): Add declaration.
11318         Also fix PR gdb/391.
11319
11320 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11321
11322         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11323         * aclocal.m4, configure: Re-generate.
11324         Fix PR gdb/391.
11325
11326 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11327
11328         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11329         instead of tm_print_insn.
11330
11331 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11332
11333         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11334
11335 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11336
11337         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11338         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11339         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11340
11341 2002-04-12  Don Howard  <dhoward@redhat.com>
11342
11343         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11344         max_user_call_depth.
11345         (init_cmd_lists): Initialize the new value;
11346         * cli/cli-script.c (execute_user_command): Limit the call depth of
11347         user defined commands.  This avoids a core-dump when user commands
11348         are infinitly recursive.
11349
11350 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11351
11352         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11353         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11354         from tdep struct instead of DEFAULT_LR_SAVE.
11355         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11356         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11357         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11358
11359 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11360
11361         * Remote.c: Spelling fix.
11362         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11363         If no symbol found for "sbrk", try "_sbrk".
11364         (make_output_phdrs): Use bfd_section_name.
11365         (gcore_copy_callback): Use bfd_section_name.
11366         * eval.c: Indentation fix-ups.
11367         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11368         in case it gets applied to an address that is already
11369         in the instruction space.
11370         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11371         * symfile.c: Fix indentation, long lines.
11372         * source.c: White space fix-up.
11373
11374 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11375
11376         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11377         * frame.c (frame_register_read): New function.  Return non-zero on
11378         success.
11379         (read_relative_register_raw_bytes_for_frame): Delete.
11380         (read_relative_register_raw_bytes): Delete.
11381         * frame.h (frame_register_read): Declare.
11382         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11383         * sh-tdep.c: Ditto.
11384         * infcmd.c (do_registers_info): Ditto.
11385         * hppa-tdep.c: Ditto.
11386         * rs6000-tdep.c: Ditto.
11387         * h8500-tdep.c: Ditto.
11388         * mips-tdep.c: Ditto.
11389         * h8300-tdep.c: Ditto.
11390         * z8k-tdep.c: Ditto.
11391
11392 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11393
11394         From Jimi X <jimix@watson.ibm.com>:
11395         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11396         64-bit SysV ABI.
11397
11398 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11399
11400         From Jimi X <jimix@watson.ibm.com>:
11401         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11402         bfd info.
11403
11404 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11405
11406         From Jimi X <jimix@watson.ibm.com>:
11407         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11408         register sets for these processor variants.
11409
11410 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11411
11412         * regformats/reg-ppc.dat: Support FPSCR.
11413
11414 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11415
11416         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11417         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11418         Add fpscr as an invalid/unfetchable register.
11419         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11420         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11421         (fill_fpregset): Add support for register fpscr.
11422         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11423         (fill_gregset): Account for the fact that register ``mq'' might
11424         not exist.
11425         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11426         (registers_power): Add fpscr to register set at slot 71.
11427         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11428         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11429
11430 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11431
11432         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11433         * configure: Regenerate.
11434         * config.in: Regenerate.
11435         * acconfig.h: Add define for _SYSCALL32.
11436         * core-sol2.c: Remove #define _SYSCALL32.
11437         * solib-legacy.c: Remove #define _SYSCALL32.
11438
11439 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11440
11441         * stack.c (select_frame): Cleanup internal error message, do not
11442         use %p.
11443
11444 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11445
11446         * stack.c (select_frame): Check that selected_frame and the
11447         specified level are as expected.
11448         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11449         Update copyright.
11450         * frame.h (struct frame_info): Add field `level'.  Update
11451         copyright.
11452         Work-in-progress PR gdb/464.
11453
11454 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11455
11456         * maint.c (maint_print_section_info): Rename print_section_info.
11457         (print_bfd_section_info, print_objfile_section_info): Update.
11458         * inferior.h (struct gdbarch): Add opaque declaration.
11459         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11460         * gdbarch.h: Regenerate.
11461
11462 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11463
11464         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11465         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11466         (kernel_u_size): Added.
11467         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11468         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11469
11470 2002-04-04  Jim Ingham  <jingham@apple.com>
11471
11472        * valarith.c (find_size_for_pointer_math): New function, either returns
11473        the size for a pointer's target, returns 1 for void *, or errors for
11474        incomplete types.
11475        (value_add, value_sub): use find_size_for_pointer_math.
11476
11477 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11478
11479         * linux-low.c (linux_look_up_symbols): New hook.
11480         (linux_target_ops): Add linux_look_up_symbols.
11481         * remote-utils.c (decode_address): New function.
11482         (look_up_one_symbol): New function.
11483         * server.c (handle_query): Call target look_up_symbols hook.
11484         * server.h (look_up_one_symbol): Add prototype.
11485         * target.h (struct target_ops): Add look_up_symbols hook.
11486
11487 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11488
11489         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11490         override FP_REGNUM with frame->fp.  Update copyright.
11491         * parse.c (num_std_regs, std_regs): Delete.
11492         (target_map_name_to_register): Do not search std_regs.  Update
11493         function description.
11494         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11495         declarations.  Update copyright.
11496         Fix PR gdb/251.
11497
11498 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11499
11500         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11501         after the last symbol in a block.
11502
11503 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11504
11505         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11506         is non zero as a found symbol.
11507
11508 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11509
11510         * findvar.c: Include "builtin-regs.h".
11511         (value_of_register): Call value_of_builtin_reg when applicable.
11512         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11513         (target_map_name_to_register): Call
11514         builtin_reg_map_name_to_regnum.
11515         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11516         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11517         (builtin_regs_h): Define.
11518         (builtin-regs.o): New target.
11519         (findvar.o): Add $(builtin_regs_h).
11520         * builtin-regs.c, builtin-regs.h: New files.
11521         * std-regs.c: New file.
11522         Partial fix for PR gdb/251.
11523
11524 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11525
11526         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11527         it's no longer required.
11528
11529 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11530
11531         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11532
11533 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11534
11535         From Jimi X <jimix@watson.ibm.com>:
11536         * rs6000-tdep.c (rs6000_software_single_step): Use
11537         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11538         and size.  Use target_insert_breakpoint() and
11539         target_remove_breakpoint() to insert and remove breakpoints
11540         instead of explicit memory reads and writes.
11541
11542 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11543
11544         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11545         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11546         ELF_OBJECT_FORMAT ifdef.
11547
11548 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11549
11550         From Jimi X <jimix@watson.ibm.com>:
11551         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11552
11553 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11554
11555         From Jimi X <jimix@watson.ibm.com>:
11556         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11557         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11558
11559 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11560
11561         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11562         s/asprintf/xasprintf/.
11563         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11564
11565 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11566
11567         I believe Jeff Law denies responsability for this one:
11568         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11569         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11570         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11571         Work-around for PR gdb/366.
11572
11573 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11574
11575         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11576         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11577         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11578
11579 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11580
11581         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11582         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11583         information.
11584
11585 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11586
11587         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11588         maintainer.
11589
11590 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11591
11592         * README (Reporting Bugs in GDB): Document the bug web page as the
11593         prefered way of submitting bugs.
11594         Fix PR gdb/402.
11595
11596 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11597
11598         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11599         -1.  Update comment.
11600         * gdbarch.h, gdbarch.c: Re-generate.
11601
11602 2002-04-07  Andreas Schwab  <schwab@suse.de>
11603
11604         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11605         buffer to regcache_collect.
11606
11607 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11608
11609         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11610         * gdbarch.c, gdbarch.h: Re-generate.
11611
11612 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11613
11614         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11615         declaration.  Fix -Werror.
11616
11617 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11618
11619         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11620         * gdbarch.c: Regenerate.
11621
11622 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11623
11624         * breakpoint.c (clear_command): Rewrite middle section to
11625         combine two loops with identical control conditions.
11626         Add a cleanup to eliminate a memory leak.
11627         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11628
11629 2002-04-05  H.J. Lu  (hjl@gnu.org)
11630
11631         * solib-svr4.c (bkpt_names): Add "__start".
11632
11633 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11634
11635         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11636         as test for 64 bit target.
11637
11638 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11639
11640         * h8500-tdep.c (h8500_write_fp): Delete function.
11641         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11642         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11643         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11644         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11645         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11646         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11647         (s390_write_fp):
11648         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11649         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11650         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11651         (d10v_write_fp): Delete function.
11652         * inferior.h (write_fp, generic_target_write_fp): Delete
11653         declarations.
11654         * regcache.c (generic_target_write_fp): Delete function.
11655         (write_fp): Delete function.
11656         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11657         * gdbarch.h, gdbarch.c: Regenerate.
11658         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11659         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11660         (sparc64_write_fp): Delete declaration.
11661         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11662         (h8500_write_fp): Delete declaration.
11663
11664 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11665
11666         * sparc-tdep.c (sparc64_write_fp): Delete.
11667         (sparc_push_dummy_frame): Replace write_fp call with code to store
11668         the FP directly.
11669         (sparc_gdbarch_init): Do not initialize write_fp.
11670
11671 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11672
11673         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11674         clause.
11675
11676 2002-03-29  Jim Blandy  <jimb@redhat.com>
11677
11678         * stack.c (get_selected_block): Add new argument `addr_in_block',
11679         used to return the exact code address we used to select the block,
11680         not just the block.
11681         * blockframe.c (get_frame_block, get_current_block): Same.
11682         * frame.h (get_frame_block, get_current_block,
11683         get_selected_block): Update declarations.
11684         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11685         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11686
11687 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11688
11689         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11690         warning message.
11691
11692 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11693
11694         * utils.c (xfullpath): New function.
11695         * defs.h (xfullpath): Add declaration.
11696         * source.c (openp): Use xfullpath in place of gdb_realpath to
11697         avoid resolving the basename part of filenames when the
11698         associated file is a symbolic link. This fixes a potential
11699         inconsistency between the filenames known to GDB and the
11700         filenames it prints in the annotations.
11701         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11702         to be able to match a filename with either the real filename, or
11703         the name of any symbolic link to this file.
11704         (lookup_partial_symtab): Ditto.
11705
11706 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11707
11708         * breakpoint.c: Add support for hardware breakpoints in overlays.
11709         (overlay_events_enabled): New state variable.
11710         (insert_breakpoints): Use overlay_events_enabled to decide
11711         whether to attempt to set a breakpoint at the overlay load addr.
11712         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11713         (remove_breakpoint): Use overlay_events_enabled to decide
11714         whether breakpoints need to be removed from overlay load addr.
11715         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11716         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11717         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11718         disable_overlay_breakpoints): Update overlay_events_enabled.
11719
11720 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11721
11722         * dwarf2read.c (struct function_range): New.
11723         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11724         (check_cu_functions): New.
11725         (read_file_scope): Initialize global function lists.
11726         Call dwarf_decode_line after processing children.
11727         (read_func_scope): Add to global function list.
11728         (dwarf_decode_lines): Call check_cu_functions everywhere
11729         record_line is called.  Call record_line with a linenumber
11730         of 0 to mark sequence ends.
11731
11732 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11733
11734         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11735         change sync with glibc.
11736
11737 2002-04-03  Jim Blandy  <jimb@redhat.com>
11738
11739         * configure.in: Call AC_C_INLINE.
11740         * configure: Regenerated.
11741
11742 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11743
11744         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11745         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11746
11747 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11748
11749         * NEWS: Mention gcore support on FreeBSD/i386.
11750
11751         * fbsd-proc.c: New file.
11752         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11753         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11754
11755         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11756         while statement.
11757
11758 2002-03-29  Jim Blandy  <jimb@redhat.com>
11759
11760         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11761         unescaped newlines in string literals, but newer ones don't.  So
11762         escape them.
11763
11764 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11765             Andrew Cagney <cagney@redhat.com>
11766
11767         * cli/cli-dump.c: New file.  Dump memory to file,
11768         restore file to memory.
11769         * cli/cli-dump.h: New file.
11770         * Makefile.in: Add rules, dependencies for cli-dump.o.
11771         * NEWS: Mention new commands.
11772
11773 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11774
11775         * symfile.c (symbol_file_add): Move test for null symbols to later.
11776
11777 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11778
11779         From veksler at il.ibm.com:
11780         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11781         the xstrduped original path.
11782         Fix PR gdb/417.
11783
11784 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11785
11786         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11787         * infcmd.c (_initialize_infcmd): Ditto.
11788         * language.c (_initialize_language): Ditto.
11789         * symfile.c (_initialize_symfile): Ditto.
11790         * top.c (_init_main): Ditto.
11791         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11792
11793 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11794
11795         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11796         vector registers handling.
11797         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11798         fields of frame data.
11799         (frame_get_saved_regs): Fill in information for AltiVec registers.
11800
11801 2002-03-27  Jim Blandy  <jimb@redhat.com>
11802
11803         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11804         a function; leave this macro here to invoke that function.
11805         (symbol_init_mangled_name): Declaration for that function.
11806         * symtab.c (symbol_init_mangled_name): New function.
11807
11808 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11809
11810         * valarith.c: Replace strerror with safe_strerror.
11811         * tracepoint.c: Ditto.
11812         * lin-lwp.c: Ditto.
11813         * go32-nat.c: Ditto.
11814         * inflow.c: Ditto.
11815         * gnu-nat.c: Ditto.
11816
11817 2002-03-27  Andreas Schwab  <schwab@suse.de>
11818
11819         * event-top.c (command_line_handler): Remove useless if.
11820
11821 2002-03-27  Andreas Jaeger  <aj@suse.de>
11822
11823         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11824         comment.
11825
11826 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11827
11828         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11829         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11830         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11831         (x86_64_linux_dr_get_status, supply_gregset),
11832         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11833         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11834         (x86_64_register_info_table): Add.
11835         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11836         (x86_64_register_raw_size, x86_64_register_virtual_type),
11837         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11838         general x86_64_register_info_table.
11839         (i386_gdbarch_init): gdbarch_register_bytes is now set
11840         dynamicaly during initialization.
11841         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11842         * gdbserver/linux-x86-64-low.c: Ditto.
11843
11844 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11845
11846         * gdbserver/server.c (main): Call target_signal_to_host_p
11847         and target_signal_to_host on signals received from the remote.
11848         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11849         target_signal_from_host on signals sent to the remote.
11850         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11851         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11852
11853 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11854
11855         * signals/signals.c: Include "server.h" in gdbserver build.
11856         (target_signal_from_name): Don't use STREQ.
11857         (_initialize_signals): Likewise.  Don't include function in
11858         gdbserver build.
11859
11860 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11861
11862         * signals.c: Moved to...
11863         * signals/signals.c: Here.
11864         * Makefile (signals.o): Update.
11865
11866 2002-03-26  Jeff Law (law@redhat.com)
11867
11868         * somread.c (som_symtab_read): Remove some commented out code and
11869         updated related comments.  Do not set the minimal symbol table to
11870         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11871         in a dynamic executable.
11872         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11873         where we are unable to find the minimal symbol for the given
11874         PC value.
11875
11876 2002-03-25  Jeff Law (law@redhat.com)
11877
11878         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11879
11880 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11881
11882         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11883
11884 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11885
11886         * command.h: Update copyright.
11887         (struct cmd_list_element): Replace definition with opaque
11888         declaration.
11889         (enum cmd_types): Document that it will eventually be moved to
11890         cli/cli-decode.h
11891         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11892         (MALLOCED_REPLACEMENT): Delete macro.
11893         * Makefile.in (cli_decode_h): Add $(command_h).
11894         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11895         * top.c: Include "cli/cli-decode.h".
11896         * completer.c: Include "cli/cli-decode.h".
11897         * maint.c: Include "cli/cli-decode.h".
11898         * cli/cli-decode.h: Include "command.h".
11899         (enum command_class): Delete.
11900         (enum cmd_types): Comment out.
11901         (enum cmd_auto_boolean): Delete.
11902         (enum var_types): Delete.
11903
11904 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11905
11906         * cli/cli-decode.c: Include "gdb_assert.h".
11907         (add_set_or_show_cmd): New static function.
11908         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11909         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11910         all fields, such as func, from the set command.
11911
11912 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11913
11914         * MAINTAINERS (sh-elf): Change warning flag to -w.
11915
11916 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11917
11918         * defs.h (error): Add printf format attribute.
11919         * thread-db.c (thread_from_lwp): Fix error format string.
11920         * stack.c (parse_frame_specification): Ditto.
11921         * cli/cli-decode.c (undef_cmd_error): Ditto.
11922         * scm-lang.c (scm_lookup_name): Ditto.
11923         * tracepoint.c (trace_error): Ditto.
11924         * remote-utils.c (usage): Ditto.
11925         * remote.c (compare_sections_command): Ditto.
11926         Fix PR gdb/328.
11927
11928 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
11929
11930         * gdbtypes.c (append_composite_type_field): New function.
11931         (init_composite_type): New function.
11932         * gdbtypes.h (append_composite_type_field): Declare.
11933         (init_composite_type): Ditto.
11934
11935 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
11936
11937         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11938         function.
11939         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11940         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11941         structure returning convention for SYSV ABI case, but not
11942         for GNU/Linux, FreeBSD, or NetBSD.
11943
11944 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
11945
11946         * symtab.h (lookup_block_symbol): Add mangled_name argument
11947         to prototype.
11948
11949         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11950         with new mangled_name argument.
11951         * linespec.c (decode_line_1): Likewise.
11952         * valops (value_of_this): Likewise.
11953         * symtab.c (lookup_transparent_type): Likewise.
11954         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11955         (lookup_symbol): If we are given a mangled name, pass it down
11956         to lookup_symbol_aux.
11957         (lookup_block_symbol): If we are given a mangled name to check
11958         against, only return symbols which match it.
11959
11960 2002-03-22  Christopher Faylor  <cgf@redhat.com>
11961
11962         * win32-nat.c (child_create_inferior): Check for proper shell to use
11963         here, in case the user changes it on the fly.
11964         (_initialize_inftarg): Remove shell path considerations.
11965
11966 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
11967
11968         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11969         for gdbarch_max_register_raw_size and max_register_virtual_size.
11970         Adjust copyright year.
11971
11972 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
11973
11974          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11975          in a function to cover the entire beginning of the function
11976          as well if it does not already.
11977
11978 2002-03-21  Tom Rix  <trix@redhat.com>
11979
11980         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11981         (rs6000_ptrace64): Renamed from ptrace64.
11982
11983 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11984
11985         * gdbserver/remote-utils.c (remote_open): Don't call
11986         getprotobyname, we're all using TCP here so just use
11987         IPPROTO_TCP.
11988         * gdbserver/gdbreplay.c (remote_open): Ditto.
11989
11990 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
11991
11992         * regcache.c (_initialize_regcache): No need to call
11993         build_regcache() at this time; it gets called whenever
11994         the gdbarch changes.
11995
11996 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
11997
11998         * sparc-nat.c:  Include sys/param.h where possible.
11999
12000 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12001
12002         Fix PR gdb/422.
12003         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12004         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12005         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12006         complex types.
12007         * stabsread.c (rs6000_builtin_type): Likewise.
12008         (read_sun_floating_type): Likewise.
12009
12010 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12011
12012         * stabsread.c (read_member_functions): Remove skip code for duplicate
12013         constructor/destructor methods.  Use standard parsing for these
12014         methods and just do not chain them to the list of methods after
12015         parsing.
12016
12017 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12018
12019         * coffread.c: Remove redundant static declarations.  Replace
12020         occurrences of `PTR' with `void *'.
12021         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12022         * top.h (quit_cover): Likewise.
12023         * defs.h (catch_errors): Likewise.
12024
12025 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12026
12027         * defs.h (XMALLOC): Define.
12028         * gdb-events.sh (XMALLOC): Delete macro.
12029         * gdb-events.c, gdb-events.h: Regenerate.
12030         * gdbarch.sh (XMALLOC): Delete macro.
12031         * gdbarch.c: Regenerate.
12032         * serial.c (XMALLOC): Delete macro.
12033         * ui-file.c (XMALLOC): Ditto.
12034         * ser-unix.h (XMALLOC): Ditto.
12035         * sh-tdep.c (XMALLOC): Ditto.
12036         * ui-out.c (XMALLOC): Ditto.
12037         * utils.c (XMALLOC): Ditto.
12038         * i386-tdep.c (XMALLOC): Ditto.
12039         * gdb-events.c (XMALLOC): Ditto.
12040         * d10v-tdep.c (XMALLOC): Ditto.
12041         * cli-out.c (XMALLOC): Ditto.
12042
12043         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12044         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12045         * ui-file.c, ui-out.c: Ditto.
12046
12047 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12048
12049         * command.h (struct cmd_list_element): Add field context.
12050         (set_cmd_context, get_cmd_context): Declare.
12051         * cli/cli-decode.h: Ditto.
12052         * cli/cli-decode.c (get_cmd_context): New function.
12053         (set_cmd_context): New function.
12054         (add_cmd): Initialize context.
12055         Part of fixing PR gdb/145 and PR gdb/146.
12056
12057 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12058
12059         * cli/cli-decode.c (cmd_type): New function.
12060         * command.h (cmd_type): Declare.
12061         * infrun.c (set_schedlock_func): Call function cmd_type.
12062         * kod.c (kod_set_os): Call cmd_type.
12063         * cris-tdep.c (cris_version_update): Use function cmd_type.
12064         (cris_mode_update, cris_abi_update): Ditto.
12065
12066         * command.h: (execute_cmd_post_hook): Declare.
12067         (execute_cmd_pre_hook): Declare.
12068         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12069         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12070         functions. Execute pre/post hook while ensuring that afterwords
12071         hook_in is cleared.
12072         * top.c (execute_command): Use execute_cmd_post_hook, and
12073         execute_cmd_pre_hook to execute pre/post commands.
12074         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12075         hook_stop_stub.
12076         (hook_stop_stub): Call execute_cmd_pre_hook.
12077
12078 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12079
12080         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12081         set'' and this leads to a core dump.  Move xstrdup of
12082         operating_system to after check that it is not NULL.
12083
12084 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12085
12086         * kod.c (kod_set_os): Remove unnecessary check that
12087         ``command->type'' is set_cmd.
12088
12089         * valprint.c (set_input_radix): Use input_radix.
12090         (set_output_radix): Use output_radix.
12091         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12092         isn't reverted.
12093
12094 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12095
12096         * value.h (struct value): Delete field ``substring_addr''.  Change
12097         aligner fields to force_doublest_align, force_longest_align,
12098         force_core_addr_align and force_pointer_aligh.
12099
12100         * value.h (struct value): Fix typo in above change.
12101
12102 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12103
12104         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12105         to fix internal_error from ``maintenance print architecture''.
12106
12107 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12108
12109         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12110         for gcc versions after gcc-2.8.1.
12111
12112 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12113
12114         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12115         for method resolution.  Restore adjustment of ``this'' pointer after
12116         calling value_struct_elt, which was accidentally removed during the
12117         HP merge.
12118
12119 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12120
12121         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12122         value_of_register.
12123         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12124         get_saved_register.
12125         * value.h (value_of_register): Update.
12126
12127 2002-03-14  Richard Henderson  <rth@redhat.com>
12128
12129         * configure.in: Detect declaration for canonicalize_file_name.
12130         * utils.c (canonicalize_file_name): Declare, if needed.
12131         (gdb_realpath): Prefer realpath if available and usable.
12132         * config.in, configure: Rebuild.
12133
12134 2002-03-14  Richard Henderson  <rth@redhat.com>
12135
12136         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12137         a constant array bound.
12138
12139         * MAINTAINERS: Add myself to write-after-approval.
12140
12141 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12142
12143         * symfile.c (syms_from_objfile): Return immediately if no syms.
12144         (symbol_file_add): Return immediately if no syms.
12145         (find_sym_fns): Return immediately if no syms.
12146
12147 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12148
12149         * gdbserver/remote-util.c (remote_open): Print remote-side's
12150         IP address when remote debugging over the network.
12151
12152 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12153
12154         * config/sparc/fbsd.mh: Fix copyright.
12155         * config/sparc/fbsd.mt: Likewise.
12156
12157 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12158
12159         * MAINTAINERS: Fix typo in name of gdb warnings option.
12160         (x86-64): Fix formating so that this can be parsed by awk.
12161
12162 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12163
12164         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12165         * defs.h: Include "gdb/signals.h".
12166         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12167
12168 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12169
12170         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12171         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12172         from x86-64-tdep.h
12173
12174 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12175             Don Howard <dhoward@redhat.com>
12176
12177         * mips-tdep.c (ST0_FR): Define.
12178         (mips2_fp_compat): New function, temporarily disabled.
12179         (mips_read_fp_register_single): New function.
12180         (mips_read_fp_register_double): New function.
12181         (mips_print_register): Use them.
12182         (do_fp_register_row): Likewise.
12183
12184 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12185
12186         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12187         approval''.
12188
12189 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12190
12191         * stabsread.c (read_member_functions): Fix is_stub test for
12192         static member functions, improve comment.
12193
12194 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12195
12196         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12197         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12198         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12199         commands that set boolean values.
12200         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12201         (arm_rdi_resume): Always initialize PC.
12202         (arm_rdi_open): Don't use rslt as a boolean.
12203         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12204         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12205         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12206         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12207
12208 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12209
12210         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12211         * configure: Rebuilt.
12212
12213 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12214
12215         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12216         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12217
12218 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12219
12220         * cli/cli-decode.c (set_cmd_completer): New function.
12221         * command.h (set_cmd_completer): Declare.
12222         * cli/cli-decode.h (set_cmd_completer): Ditto.
12223
12224         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12225         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12226         * win32-nat.c (_initialize_inftarg): Ditto.
12227         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12228         * proc-api.c (_initialize_proc_api): Ditto.
12229         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12230         * source.c (_initialize_source): Ditto.
12231         * exec.c (_initialize_exec): Ditto.
12232         * solib.c (_initialize_solib): Ditto.
12233         * top.c (init_main): Ditto.
12234         * tracepoint.c (_initialize_tracepoint): Ditto.
12235         * symfile.c (_initialize_symfile): Ditto.
12236         * printcmd.c (_initialize_printcmd): Ditto.
12237         * infcmd.c (_initialize_infcmd): Ditto.
12238         * corefile.c (_initialize_core): Ditto.
12239
12240 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12241
12242         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12243
12244 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12245
12246         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12247
12248 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12249
12250         * NEWS: Update headings, 5.2 has branched.
12251
12252 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12253
12254         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12255         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12256         (register_addr, REGISTER_RAW_SIZE): Likewise.
12257         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12258         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12259
12260 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12261
12262         * MAINTAINERS (x86-64): Add myself.
12263         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12264         changed value_ptr -> struct value *
12265
12266 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12267
12268         * configure.host (sparc64-*-freebsd): Add.
12269         * configure.tgt: Likewise.
12270         * config/sparc/fbsd.mh: New file.
12271         * config/sparc/fbsd.mt: Likewise.
12272         * config/sparc/nm-fbsd.h: Likewise.
12273         * config/sparc/tm-fbsd.h: Likewise.
12274
12275 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12276
12277         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12278         regformats/reg-s390x.dat.
12279
12280 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12281
12282         * utils.c: Add FIXME explaining true/false problem.
12283
12284 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12285
12286         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12287
12288 2002-02-28  Michael Chastain  <mec@shout.net>
12289
12290         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12291
12292 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12293
12294         * gdbserver/linux-s390-low.c: New file.
12295         * regformats/reg-s390.dat: New file.
12296         * regformats/reg-s390x.dat: New file.
12297         * gdbserver/configure.srv: Add S/390.
12298         * gdbserver/Makefile.in: Add S/390.
12299         * configure.tgt: Enable gdbserver for S/390.
12300
12301 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12302
12303         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12304         first line of the doc string for "info dos", except at the end of
12305         the sentence, since the short help stops at the first period.
12306
12307 2002-02-28  Jason Merrill  <jason@redhat.com>
12308
12309         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12310
12311 2002-02-27  Fred Fish  <fnf@redhat.com>
12312
12313         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12314         comment (dumy -> dummy).
12315
12316 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12317
12318         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12319
12320 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12321
12322       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12323
12324 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12325
12326         * gdbserver/acconfig.h: New file.
12327         * gdbserver/i387-fp.c: New file.
12328         * gdbserver/i387-fp.h: New file.
12329         * gdbserver/linux-x86-64.c: New file.
12330         * regformats/reg-x86-64.dat: New file.
12331         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12332         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12333         * gdbserver/configure.in: Add support for regsets.
12334         * gdbserver/config.in: Regenerate.
12335         * gdbserver/configure: Regenerate.
12336         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12337         * gdbserver/linux-low.h: New file.
12338         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12339         for regsets.
12340         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12341         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12342         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12343         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12344         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12345         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12346         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12347         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12348         * gdbserver/regcache.c (supply_register): New function.
12349         (supply_register_by_name): New function.
12350         (collect_register): New function.
12351         (collect_register_by_name): New function.
12352
12353 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12354
12355         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12356         (config.status): Add configure.srv dependency.
12357         (server_h): Add config.h dependency.
12358
12359 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12360
12361         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12362         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12363         * gdbserver/configure.srv: Change i386-*-linux* to use
12364         reg-i386-linux.o.
12365
12366 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12367
12368         * x86-64-tdep.c: Re-indent.  Update copyright date.
12369
12370 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12371
12372         From Michal Ludvig <mludvig@suse.cz>:
12373         * x86-64-tdep.c (value.h): Delete.
12374         (gdb_assert.h): Include.
12375         (x86_64_register_convert_to_virtual,
12376         x86_64_register_convert_to_raw ): Add check which lets only
12377         floating-point values to be converted.
12378         (value_push): Delete.
12379         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12380         (i386_gdbarch_init): Number of register_bytes fixed.
12381
12382 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12383
12384         * MAINTAINERS: Add x86-64 target.
12385
12386 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12387
12388         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12389         * osfsolib.c (solib_map_sections): Ditto.
12390         * irix5-nat.c (solib_map_sections): Ditto.
12391         * corelow.c (gdb_check_format): Ditto.
12392         * symfile.c (symfile_bfd_open): Ditto.
12393         * solib.c (solib_map_sections): Ditto.
12394         Fix PR gdb/354.
12395
12396 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12397
12398         * remote.c (_initialize_remote): By default, disable ``e'' and
12399         ``E'' step out-of-range packets.
12400
12401 2002-02-26  Andreas Schwab  <schwab@suse.de>
12402
12403         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12404         m68k_linux_frame_saved_pc.
12405         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12406         in_sigtramp.
12407         (SIGCONTEXT_PC_OFFSET): Remove.
12408         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12409         m68k_linux_sigtramp_saved_pc): New functions.
12410         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12411         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12412         (UCONTEXT_PC_OFFSET): Define.
12413         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12414         non-RT and RT signal trampolines.
12415
12416 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12417
12418         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12419         (TARGET_NBPG, STACK_END_ADDR): Delete
12420         (VARIABLES_INSIDE_BLOCK): Delete.
12421
12422 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12423
12424         * utils.c (perror_with_name): Make string parameter constant.
12425         (print_sys_errmsg): Ditto.
12426         (query): Ditto.
12427         * defs.h (perror_with_name): Update.
12428         (print_sys_errmsg): Update.
12429         (query): Update.
12430
12431 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12432
12433         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12434         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12435
12436 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12437
12438         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12439         if it already matches the current architecture from the exec file.
12440         Include arch-utils.h for gdbarch_info_init prototype.
12441         * Makefile.in (rs6000-nat.o): Update dependencies.
12442
12443 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12444
12445         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12446          list of exported variables.
12447
12448 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12449
12450         * gdbserver/configure.srv: New file.
12451         * gdbserver/configure.in: Use configure.srv instead
12452         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12453         from it.
12454         * gdbserver/configure: Regenerated.
12455         * gdbserver/terminal.h: New file.
12456         * gdbserver/Makefile.in: Update for configure changes.  Remove
12457         more unneeded include paths.
12458
12459 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12460
12461         From wiz at danbala:
12462         * config/sparc/tm-sp64.h: Fix grammar and typos.
12463         Fix PR gdb/287.
12464
12465 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12466
12467         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12468         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12469         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12470         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12471         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12472         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12473         * s390-tdep.c: Ditto.
12474         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12475         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12476         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12477         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12478         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12479         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12480         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12481         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12482         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12483         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12484         Fix PR gdb/378.
12485
12486 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12487
12488         * lin-thread.c: Delete file.
12489         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12490         to gdb_proc_service.h.
12491         * configure: Re-generate.
12492
12493         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12494         * serial.c (serial_open): Delete check for "ocd".
12495         Fix PR gdb/349.
12496
12497         * Makefile.in (linux-thread.o): Delete target.
12498         * linux-thread.c: Delete file.
12499
12500         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12501         renamed SH files to be consistent.
12502
12503         * symtab.c (sort_search_symbols): Use xfree.
12504
12505 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12506
12507         * arm-linux-tdep.c (arm_linux_init_abi): Register
12508         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12509         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12510         definition with undef, since we don't want the sysvr4 definition.
12511         (SKIP_TRAMPOLINE_CODE): Likewise.
12512
12513 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12514
12515         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12516
12517         * configure.in: (AC_CHECK_FUNCS) Added test for
12518         canonicalize_file_name Regenerated.
12519         * config.in, configure: Regenerated.
12520         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12521         defined use canonicalize_file_name.
12522
12523 2002-02-23  Michael Chastain  <mec@shout.net>
12524
12525         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12526
12527 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12528
12529         * README: Remove references to cygnus.com.
12530         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12531         dot com'' form.  Remove references to cygnus.com and sourceware.
12532
12533 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12534
12535         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12536         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12537         1003.1-2001 no longer allows "head -1".
12538         * gdb/Makefile.in (version.c): Likewise.
12539         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12540         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12541         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12542
12543 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12544
12545         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12546         * command.h (cmd_cfunc_eq): Declare.
12547         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12548
12549         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12550         ``struct cmd_list_element *''.
12551         * cli/cli-cmds.c (is_complete_command): Update.  Use
12552         cmd_cfunc_eq.
12553         * top.c (execute_command): Pass the command to
12554         is_complete_command.
12555         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12556
12557 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12558
12559         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12560         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12561         architecture defines.
12562         * s390-tdep.c (s390_gdbarch_init): Likewise.
12563
12564 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12565
12566         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12567         (arm_linux_push_arguments): Likewise.
12568         (arm_linux_init_abi): Register them.  Also register linux-specific
12569         call_dummy_words.
12570         (find_minsym_and_objfile): Use strcmp, not STREQ.
12571         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12572         (arm_linux_call_dummy_words): Delete declaration.
12573         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12574         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12575         declarations.
12576         (LOWEST_PC): Delete.
12577
12578 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12579
12580         * maint.c (print_section_info): Do not prepend `0x' to filepos
12581         output, it will be handled by local_hex_string_custom.
12582
12583 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12584
12585         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12586         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12587         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12588
12589 2002-02-22  Jim Blandy  <jimb@redhat.com>
12590
12591         Indicate that the bcache functions don't change the strings
12592         they're passed.
12593         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12594         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12595
12596 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12597
12598         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12599
12600 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12601
12602         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12603         find the complete path to a loaded DLL.
12604
12605 2002-02-21  Fred Fish  <fnf@redhat.com>
12606
12607         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12608         that marks the end of the range of a function, enter a line number
12609         entry that has a line number of zero and a PC offset that matches
12610         the end of the function.  This starts a range of PC's for which no
12611         line number information is known.
12612         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12613         PC's for which no line number info is found (line number is zero)
12614         then we didn't find any valid line information.
12615         * symtab.h: Document use of zero line number entry.
12616
12617 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12618
12619         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12620         (have_ptrace_getvrregs): Define for run time checks.
12621         (gdb_vrregset_t): New type for Altivec register handling.
12622         (fetch_register, store_register): Fetch/store altivec register
12623         when needed.
12624         (fetch_altivec_register, store_altivec_register): New functions.
12625         (supply_vrregset, fill_vrregset): New functions.
12626         (fetch_altivec_registers, store_altivec_registers): New functions.
12627         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12628         registers as well.
12629
12630 2002-02-21  Jiri Smid  <smid@suse.cz>
12631
12632         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12633
12634 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12635
12636         * Makefile.in (armnbsd-nat.o): Update dependencies.
12637         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12638         supply the integer register set.
12639         (supply_fparegset): New function.  Similar for FPA registers.
12640         (fetch_regs, fetch_fp_regs): Use them.
12641         (fetch_core_registers): Likewise.
12642         (fetch_elfcore_registers): New function.
12643         (arm_netbsd_elfcore_fns): New core-file type specification.
12644         (_initialize_arm_netbsd_nat): Register it.
12645
12646 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12647
12648         * armnbsd-nat.c: Include gdbcore.h.
12649         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12650         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12651         'void' to declaration, to shut up ARI.
12652         (fetch_core_registers): Make static.  Rewrite using supply_register.
12653         (arm_netbsd_core_fns): New core-file type specification.
12654         (_initialize_arm_netbsd_nat): New function.
12655
12656 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12657
12658         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12659         value.
12660
12661 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12662
12663         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12664         fails.
12665
12666 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12667
12668         * jv-exp.y (parse_number): Change type of implicit longs
12669         to builtin_type_uint64.
12670
12671 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12672
12673         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12674         to be an integer instead of a `union wait'.
12675
12676 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12677
12678         * mips-linux-nat.c: Call the operating system GNU/Linux.
12679         * mips-linux-tdep.c: Likewise.
12680         * mips-tdep.c: Likewise.
12681
12682 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12683
12684         Fix PR gdb/265.
12685         * jv-exp.y (parse_number): Handle 64-bit integers.
12686
12687 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12688
12689         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12690         AC_STDC_HEADERS to AC_HEADER_STDC.
12691         * gdbserver/configure: Regenerated.
12692
12693 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12694
12695         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12696         is defined.
12697         * sparc-tdep.c (get_longjmp_target): Likewise.
12698
12699 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12700
12701         * News: Add news about ARM and Multi-arch.  Mention the new target
12702         arm*-*-netbsd*.
12703
12704 2002-02-19  Jim Blandy  <jimb@redhat.com>
12705
12706         * stabsread.c (error_type_complaint): Improve error message.
12707
12708 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12709
12710         * gdbserver/README: Update documentation.
12711         * gdbserver/configure.in: Update configury to match documentation.
12712         * gdbserver/Makefile.in: Likewise.
12713         * gdbserver/configure: Regenerated.
12714         * gdbserver/aclocal.m4: New file, generated by aclocal.
12715         * gdbserver/config.in: New file, generated by autoheader.
12716
12717 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12718
12719         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12720         armnbsd-nat.c.
12721
12722 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12723
12724         * arm-tdep.h (enum arm_float_model): New enum.
12725         (struct gdbarch_tdep): Add fp_model.
12726         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12727         up floating-point conversions until we know the floating-point model
12728         in use by the inferior.  Don't complain about being unable to
12729         determine the ABI of the inferior when we don't have one.
12730         (arm_extract_return_value): Support different floating-point models.
12731         (arm_store_return_value): Likewise.
12732         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12733         ARM_FLOAT_SOFT.
12734         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12735
12736 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12737
12738         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12739         of ``current_gdbarch''.
12740
12741 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12742
12743         * armnbsd-nat.c : ANSIfy all function declarations.
12744         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12745         (fetch_inferior_registers): Re-implement in terms of above.
12746         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12747         (store_inferior_registers): Re-implement in terms of above.
12748
12749 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12750
12751         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12752         kernel.
12753         * arm-linux-tdep.c: Likewise.
12754         * config/arm/tm-linux.h: Likewise.
12755
12756 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12757
12758         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12759         * config/arm/nbsd.mt (TM_FILE): Delete.
12760         * config/arm/tm-nbsd.h: Delete.
12761
12762 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12763
12764         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12765         Initialize CALL_DUMMY_LENGTH.
12766
12767 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12768
12769         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12770         function.
12771         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12772         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12773         defines one thing and that is incorrect for this port.
12774         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12775
12776 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12777
12778         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12779
12780 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12781
12782         * win32-nat.c (display_selector): New function. Displays information
12783         about the information returned by GetThreadSelectorEntry API function.
12784         (display_selectors): New function. Displays the infomation of
12785         the selector given as argument, or of CS, DS ans FS selectors
12786         if no argument is given.
12787         ( _initialize_inftarg): Add "w32" as info prefix command.
12788         Add "info w32 selector" as command calling display_selectors.
12789
12790 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12791
12792         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12793         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12794         if not defined.
12795
12796 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12797
12798         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12799
12800 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12801
12802         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12803         (arm_fix_call_dummy): Call it.
12804         (arm_call_dummy_breakpoint_offset): Delete.
12805         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12806         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12807
12808 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12809
12810         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12811         Default to func_frame_chain_valid.
12812         * gdbarch.h, gdbarch.c: Re-generate.
12813         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12814
12815 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12816
12817         * ppc-linux-nat.c: Update copyright.
12818         (fetch_register, store_register): Add tid parameter, don't compute
12819         tid here.
12820         (fetch_ppc_registers, store_ppc_registers): Add tid
12821         parameter. Pass it along to callees.
12822         (fetch_inferior_registers, store_inferior_registers): Compute tid
12823         here, and pass it to calleed functions.
12824         (fill_gregset, supply_fpregset): Clean up formatting.
12825
12826 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12827
12828         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12829         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12830
12831 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12832
12833         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12834         * gdbarch.c gdbarch.h: Regenerate.
12835         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12836         function.
12837         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12838         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12839         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12840
12841         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12842         * arm-tdep.c (arm_get_longjmp_target): New function.
12843         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12844         this to a positive value register arm_get_longjmp_target as the
12845         longjmp handler.
12846         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12847         (arm_linux_init_abi): Set up longjmp description in tdep.
12848         * armnbsd-nat.c (get_longjmp_target): Delete.
12849         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12850         description in tdep.
12851         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12852         (get_longjmp_target): Delete declaration.
12853         (GET_LONGJMP_TARGET): Delete.
12854         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12855         (GET_LONGJMP_TARGET): Delete.
12856
12857 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12858
12859         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12860         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12861         of ``current_gdbarch''.
12862
12863 2002-02-17  Tom Tromey  <tromey@redhat.com>
12864
12865         * cli/cli-cmds.c (compare_strings): New function.
12866         (complete_command): Only print each unique item once.
12867         * completer.h (complete_line): Declare.
12868         * completer.c (complete_line): New function.
12869         (line_completion_function): Use it.
12870
12871 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12872
12873         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12874         * gdbarch.h, gdbarch.c: Re-generate.
12875
12876 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12877
12878         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12879
12880 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12881
12882         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12883         * valops.c (value_arg_coerce): Don't take the address of a reference
12884         to convert an argument to a reference.
12885
12886 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12887
12888         * win32-nat.c (get_image_name): New function.
12889         (handle_load_dll): Use get_image_name function.
12890         (get_child_debug_event): Avoid registering debug events until possibly
12891         execed process is started.
12892         (child_create_inferior): Allow invocation via shell so that command
12893         line redirection, etc.  works ok.
12894         (_initialize_inftarg): Add new command: "set shell" to control whether
12895         a shell is used to start a process.
12896
12897 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12898
12899         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12900         instead of find_register_by_number.
12901         (cannot_store_register): Likewise.
12902
12903 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12904
12905         * dwarf2read.c: Replace fprintf (stderr, ...) by
12906         fprintf_unfiltered (gdb_stderr, ...).
12907
12908 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12909
12910         * gdbserver/gdbserver.1: Document --attach.
12911
12912 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12913
12914         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12915         descriptions.
12916         * arm-tdep.c (arm_default_arm_le_breakpoint)
12917         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12918         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12919         traditional breakpoint defines.
12920         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12921         (arm_gdbarch_init): Initialize new breakpoint variables.
12922         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12923         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12924         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12925         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12926         code out to ...
12927         (arm_netbsd_init_abi_common): ... here; new function.
12928         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12929         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12930         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12931         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12932
12933 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12934
12935         * arm-tdep.h (enum arm_abi): New enum.
12936         (struct gdbarch_tdep): New structure.
12937         (LOWEST_PC): Provide a default.
12938         (arm_gdbarch_register_os_abi): Declare new function.
12939         * arm-tdep.c (arm_abi_names): New array.
12940         (process_note_abi_tag_sections): New function.
12941         (get_elfosabi): New function.
12942         (arm_gdbarch_register_os_abi): New function.
12943         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12944         support for that ABI has been built in, then call the appropriate
12945         configuration routine.  Use gdbarch_num_regs() to get the number
12946         of registers.
12947         (arm_dump_tdep): New function.
12948         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12949         place-holder functions.
12950         (_initialize_arm_tdep): Register them.
12951         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12952
12953         * armnbsd-tdep.c: New file.
12954         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12955         * config/arm/nbsd.mt (TDEPFILES): Add it.
12956         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12957
12958         * armnbsd-nat.c: Include regcache.h.
12959         * Makefile.in (armnbsd-nat.o): Update dependency list.
12960
12961         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12962
12963 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12964
12965         * gdbserver/Makefile.in: Fix typos in target rules.
12966
12967 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
12968
12969         Fix part of PR gdb/267.
12970         * linespec.c (find_methods): Handle constructors specially for now.
12971
12972 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
12973
12974         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12975         handling.
12976         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12977         standard_coerce_float_to_double().
12978
12979 2002-02-14  Christopher Faylor  <cgf@redhat.com>
12980
12981         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12982         GDBINIT_FILENAME.
12983
12984 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
12985
12986         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12987         find_variant_by_name, because it confuses the multiarch
12988         framework. Return NULL if there isn't an architecture with the
12989         user supplied name, instead of forcing a different one without
12990         recording the change with the multiarch machinery.
12991         (find_variant_by_name): Delete.
12992
12993 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12994
12995         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12996         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12997
12998 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
12999
13000         * stack.c (print_frame_info_base): When calling
13001         print_frame_info_listing_hook, set current_source_symtab.
13002
13003 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13004
13005         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13006         and remove unused $(INCLUDE_DIR).
13007         Add regcache.c to OBS.
13008         Add generated register protocol files to clean target.
13009         Update dependencies for new objects, obsolete old target code.
13010
13011         * gdbserver/linux-low.c: Remove all platform-specific code to
13012         new files.  Remove various dead code.  Update to use regcache
13013         functionality.
13014         * gdbserver/remote-utils.c (fromhex): Add return statement
13015         to quiet warning.
13016         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13017         constant.
13018         (input_interrupt): Add integer parameter to match prototype
13019         of a signal handler.
13020         (outreg): Use register_data ().
13021         (prepare_resume_reply): Use gdbserver_expedite_regs.
13022         * gdbserver/server.c (main): Dynamically allocate own_buf because
13023         PBUFSIZ is no longer constant.  Use registers_to_string () and
13024         registers_from_string ().
13025         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13026         for error (), fatal (), and warning ().  Update definition of
13027         PBUFSIZ to use regcache functionality.  Add include guard.
13028         * gdbserver/utils.c (fatal): Add missing ``const''.
13029         (warning): New function.
13030
13031         * regformats/regdat.sh: Include "regcache.h" in generated files.
13032         Provide init_registers () function.
13033         * regformats/regdef.h: Add prototype for set_register_cache ().
13034         Add include guard.
13035
13036         * gdbserver/linux-arm-low.c: New file.
13037         * gdbserver/linux-i386-low.c: New file.
13038         * gdbserver/linux-ia64-low.c: New file.
13039         * gdbserver/linux-m68k-low.c: New file.
13040         * gdbserver/linux-mips-low.c: New file.
13041         * gdbserver/linux-ppc-low.c: New file.
13042         * gdbserver/linux-sh-low.c: New file.
13043
13044         * gdbserver/regcache.c: New file.
13045         * gdbserver/regcache.h: New file.
13046
13047         * gdbserver/low-linux.c: Removed obsolete file.
13048
13049 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13050
13051         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13052         * config/i386/linux.mt: Likewise.
13053         * config/ia64/linux.mt: Likewise.
13054         * config/m68k/linux.mh: Likewise.
13055         * config/powerpc/linux.mh: Likewise.
13056         * config/mips/linux.mt: Likewise.
13057
13058         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13059
13060         * config/i386/i386lynx.mh: Mark gdbserver variables
13061         as (currently) obsolete for this target.
13062         * config/i386/nbsd.mt: Likewise.
13063         * config/i386/nbsdelf.mt: Likewise.
13064         * config/m32r/m32r.mt: Likewise.
13065         * config/m68k/m68klynx.mh: Likewise.
13066         * config/m68k/nbsd.mt: Likewise.
13067         * config/m68k/sun3os4.mh: Likewise.
13068         * config/mips/vr5000.mt: Likewise.
13069         * config/ns32k/nbsd.mt: Likewise.
13070         * config/pa/hppabsd.mh: Likewise.
13071         * config/pa/hppaosf.mh: Likewise.
13072         * config/powerpc/nbsd.mt: Likewise.
13073         * config/rs6000/rs6000lynx.mh: Likewise.
13074         * config/s390/s390.mt: Likewise.
13075         * config/s390/s390x.mt: Likewise.
13076         * config/sparc/sparclynx.mh: Likewise.
13077         * config/sparc/sun4os4.mh: Likewise.
13078         * config/i386/x86-64linux.mt: Likewise.
13079         * config/sparc/linux.mh: Likewise.
13080
13081 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13082
13083         * configure.tgt: Configure gdbserver only for known working
13084         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13085         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13086         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13087         * configure: Regenerated.
13088
13089 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13090
13091         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13092
13093         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13094         (default_gcore_mach): Just return 0, work around a problem in bfd.
13095         (default_gcore_target): OK to return NULL if exec_bfd is null.
13096         (make_mem_sec): Use a cast, avoid a warning.
13097
13098         * procfs.c (find_memory_regions_callback): Use a cast instead of
13099         calling host_pointer_to_address (which complains if
13100         sizeof (host pointer) != sizeof (target pointer)).
13101         (procfs_make_note_section): Avoid overflow in psargs string.
13102
13103         * procfs.c (procfs_make_note_section): Make the default
13104         implementation return an error.
13105
13106 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13107
13108         * procfs.c (procfs_make_note_section): Provide a default definition
13109         (for alpha-dec-osf4.0f). Fix typos.
13110
13111 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13112
13113         * linux-proc.c: Add include of regcache.h.
13114         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13115
13116 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13117
13118         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13119         * memattr.c (create_mem_region): Disallow useless empty region.
13120         Regions are half-open intervals, so allow [A..B) [B..C) as
13121         non-overlapping.
13122
13123 2002-02-13  Michael Chastain <mec@shout.net>
13124
13125         * defs.h: Kill CONST_PTR.
13126         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13127         * c-lang.c (c_builtin_types): Likewise.
13128         * ch-lang.c (ch_builtin_types): Likewise.
13129         * f-lang.c (f_builtin_types): Likewise.
13130         * language.c (unknown_builtin_types): Likewise.
13131         * m2-lang.c (m2_builtin_types): Likewise.
13132         * p-lang.c (pascal_builtin_types): Likewise.
13133         * scm-lang.c (c_builtin_types): Likewise.
13134
13135 2002-02-13  Keith Seitz  <keiths@redhat.com>
13136
13137         * arm-tdep.h (arm_get_next_pc): Add declaration.
13138
13139 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13140
13141         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13142         with other related struct-returning functions.
13143         (arm_extract_struct_value_address): New function.
13144         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13145         initialize float_format, double_format and long_double_format as
13146         appropriate to the endianness of the target.
13147         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13148         (arm_use_struct_convention): Delete declaration.
13149         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13150
13151 2002-02-13  Keith Seitz  <keiths@redhat.com>
13152
13153         * defs.h (core_addr_to_string_nz): New function.
13154
13155 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13156
13157         Apply missing bits of 2002-01-15 patch.
13158         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13159         (fill_fpregset): Use i387_fill_fsave.
13160
13161 2002-02-12  Keith Seitz  <keiths@redhat.com>
13162
13163         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13164         (core_addr_to_string_nz): New function.
13165
13166 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13167
13168         * arm-linux-nat.c: Really include arm-tdep.h.
13169         * config/arm/tm-linux.h (struct type, struct value): Declare.
13170
13171 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13172
13173         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13174         (gcore section): Ifdef for Solaris and Unixware only.
13175         (procfs_do_thread_registers): Unixware needs one lwpstatus
13176         per thread (not one prstatus or pstatus).
13177         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13178         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13179         once before iterating over threads.
13180
13181 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13182
13183         * arm-tdep.h: New file.
13184         * arm-tdep.c: Include arm-tdep.h.
13185         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13186         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13187         (arm_print_float_info, arm_register_type, convert_to_extended)
13188         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13189         (arm_extract_return_value, arm_register_name): Make static.
13190         (arm_software_single_step): Similarly.  Fix types in declaration.
13191         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13192         (arm_store_return_value, arm_store_struct_return): New functions.
13193         (arm_gdbarch_init): Register the above functions.  Also register
13194         call_dummy_start_offset, sizeof_call_dummy_words,
13195         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13196         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13197         max_register_virtual_size, register_size.  Set up
13198         prologue_cache.saved_regs here, rather than ...
13199         (_initialize_arm_tdep): ... here.
13200         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13201         declarations.
13202         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13203         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13204         (arm_print_float_info, arm_register_type, convert_to_extended)
13205         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13206         (arm_extract_return_value, arm_register_name): Delete declarations.
13207         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13208         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13209         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13210         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13211         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13212         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13213         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13214         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13215         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13216         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13217         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13218         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13219         interface.
13220         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13221         * remote-rdi.c remote-rdp.c: Likewise.
13222         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13223         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13224         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13225         definition.
13226
13227         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13228         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13229         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13230         from non-ARM_ prefixed definitions.
13231         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13232         all uses of above.
13233         * remote-rdi.c remote-rdp.c: Likewise.
13234         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13235
13236 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13237
13238         * arm-tdep.c (arm_frameless_function_invocation)
13239         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13240         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13241         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13242         (arm_pop_frame, arm_get_next_pc): Make static.
13243         (arm_gdbarch_init): Register above in gdbarch structure.
13244         (arm_read_fp): Renamed from arm_target_read_fp.
13245         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13246         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13247         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13248         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13249         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13250         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13251         (arm_pc_is_thumb_dummy): Delete declarations.
13252         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13253         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13254         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13255         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13256
13257 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13258
13259         * symtab.c (compare_search_syms): New function.
13260         (sort_search_symbols): New function.
13261         (search_symbols): Sort symbols after searching rather than
13262         before.
13263
13264 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13265
13266         * NEWS: Linux -> GNU/Linux.
13267
13268 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13269
13270         * gdbarch.sh: For for level one methods, disallow a definition
13271         when partially multi-arched.  Add comments explaining rationale.
13272         * gdbarch.h: Re-generate.
13273
13274 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13275
13276         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13277         multi-arch partial.
13278
13279 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13280
13281         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13282         field.  Use diff -u.
13283         * gdbarch.c: Re-generate.
13284
13285 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13286
13287         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13288         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13289         partial.
13290
13291 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13292
13293         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13294         multi-arch partial.
13295         (PUSH_ARGUMENTS): Switch to using predefault.
13296         * gdbarch.c: Regenerate.
13297
13298 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13299
13300         * valops.c (PUSH_ARGUMENTS): Delete definition.
13301         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13302         partial.  Default to default_push_arguments.
13303         * gdbarch.h, gdbarch.c: Regenerate.
13304
13305 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13306
13307         * defs.h (throw_exception): Rename return_to_top_level.  Update
13308         comments.
13309         * utils.c (error_stream, internal_verror, quit): Ditto.
13310         * top.c (throw_exception, catcher): Ditto.
13311         * sparclet-rom.c (sparclet_load): Ditto.
13312         * remote.c (interrupt_query, minitelnet): Ditto.
13313         * remote-sds.c (interrupt_query): Ditto.
13314         * remote-mips.c (mips_error, mips_kill): Ditto.
13315         * ocd.c (interrupt_query): Ditto.
13316         * monitor.c (monitor_interrupt_query): Ditto.
13317         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13318         * target.h: Update comment.
13319
13320         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13321
13322 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13323
13324         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13325         default_double_format.
13326         * gdbarch.h, gdbarch.c: Re-generate.
13327         * findvar.c (floatformat_unknown): Delete variable definition.
13328         * doublest.h (floatformat_unknown): Delete variable declaration.
13329
13330 2002-02-09  Jim Blandy  <jimb@redhat.com>
13331
13332         * stabsread.c (read_type): Add code to parse Sun's syntax for
13333         prototyped function types.
13334
13335 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13336
13337         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13338         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13339
13340 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13341
13342         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13343         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13344         now _initialize_xcoffsolib gets called again and overrides the
13345         commands from solib.c in a native configuration.
13346
13347 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13348
13349         * doublest.c (store_typed_floating): Don't try to return a value.
13350         Fixes PR gdb/290.
13351
13352 2002-02-08  Jim Blandy  <jimb@redhat.com>
13353
13354         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13355         is prototyped and has no arguments, print its argument list as
13356         `(void)'.
13357
13358 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13359
13360         * MAINTAINERS (write-after-approval): Add myself.
13361         (paper-trail): I've escaped!
13362
13363 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13364
13365         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13366         changes.
13367         (_initialize_check_for_gdb_ini): Ditto.
13368
13369 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13370
13371         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13372         xaprintf -> xasprintf.
13373
13374 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13375
13376         * win32-nat.c: Remove use of printf and sprintf functions.
13377
13378 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13379
13380         * arm-tdep.c (arm_frame_chain_valid): Make static.
13381         (arm_push_arguments): Likewise.
13382         (arm_gdbarch_init): New function.
13383         (_initialize_arm_tdep): Call it.
13384         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13385         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13386         (FRAME_CHAIN_VALID): Delete.
13387         (arm_frame_chain_valid): Delete declaration.
13388         (PUSH_ARGUMENTS): Delete.
13389         (arm_push_arguments): Delete declaration.
13390         (CALL_DUMMY_P): Delete.
13391
13392 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13393             Corinna Vinschen  <vinschen@redhat.com>
13394
13395         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13396         on builtin float types.
13397
13398 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13399
13400         * utils.c: Include <curses.h> before "bfd.h".
13401         * tui/tui-hooks.c: Likewise.
13402         * tui/tui.c: Likewise.
13403         * tui/tuiCommand.c: Likewise.
13404         * tui/tuiData.c: Likewise.
13405         * tui/tuiDataWin.c: Likewise.
13406         * tui/tuiDisassem.c: Likewise.
13407         * tui/tuiGeneralWin.c: Likewise.
13408         * tui/tuiIO.c: Likewise.
13409         * tui/tuiLayout.c: Likewise.
13410         * tui/tuiRegs.c: Likewise.
13411         * tui/tuiSource.c: Likewise.
13412         * tui/tuiSourceWin.c: Likewise.
13413         * tui/tuiStack.c: Likewise.
13414         * tui/tuiWin.c: Likewise.
13415
13416 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13417
13418         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13419         to include space for pseudoregs as well. Update loops accordingly.
13420         (sh_fp_frame_init_saved_regs): Ditto.
13421         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13422
13423 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13424
13425         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13426         Add Richard Earnshaw to Arm maintainers.
13427
13428 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13429
13430         * defs.h (warning_begin): Delete declaration.
13431
13432         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13433         Delete macro.
13434
13435 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13436
13437         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13438         Logic bug, remove misplaced else.
13439
13440 2002-02-07  Klee Dienes  <klee@apple.com>
13441
13442         * fork-inferior.c (fork_inferior): Add '!' to the list of
13443         characters that need to be quoted when building a string for the
13444         shell.  Quote '!' specifically with a backslash, since CSH chokes
13445         when trying to evaluate "str!str".
13446
13447 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13448
13449         * rdi-share/host.h: Only provide a typedef for bool if it is not
13450         defined.
13451
13452 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13453
13454         * breakpoint.h (enum bptype): Add new overlay event bp type.
13455         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13456
13457         * breakpoint.c (create_internal_breakpoint): New function.
13458         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13459         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13460         (create_thread_event_breakpoint): Ditto.
13461         (create_solib_event_breakpoint): Ditto.
13462         (create_overlay_event_breakpoint): New function.
13463         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13464         (update_breakpoints_after_exec): Delete and re-initialize
13465         overlay event breakpoints after an exec.  Add FIXME comment
13466         about longjmp breakpoint.
13467         (print_it_typical): Ignore overlay event breakpoints.
13468         (print_one_breakpoint): Ditto.
13469         (mention): Ditto.
13470         (bpstat_what): Do not stop for overlay event breakpoints.
13471         (delete_breakpoint): Don't delete overlay event breakpoints.
13472         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13473         (breakpoint_re_set): Re-create overlay event breakpoint.
13474
13475         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13476         (overlay_manual_command): Disable overlay breakpoints.
13477         (overlay_off_command): Disable overlay breakpoints.
13478
13479 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13480
13481         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13482         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13483         to here from config/tm-arm.h.
13484         (coff_sym_is_thumb): Make static.
13485         (arm_elf_make_msymbol_special): New function.
13486         (arm_coff_make_msymbol_special): New function.
13487         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13488         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13489         (coff_sym_is_thumb): Delete declaration.
13490         (arm_elf_make_msymbol_special): Declare.
13491         (arm_coff_make_msymbol_special): Declare.
13492         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13493         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13494
13495 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13496
13497         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13498
13499 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13500
13501         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13502         * gdbarch.c gdbarch.h: Regenerate.
13503         * arch-utils.c (default_print_float_info): New function.
13504         * arch-utils.h (default_print_float_info): Prototype it.
13505         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13506         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13507         (PRINT_FLOAT_INFO): Document it.
13508
13509         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13510         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13511         (PRINT_FLOAT_INFO): Define.
13512
13513 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13514
13515         * win32-nat.c (_initialize_check_for_gdb_ini):
13516         Add typecast to sprintf argument to suppress a warning.
13517
13518 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13519
13520         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13521         to allow easier handling of pass state.
13522         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13523         that gives exception name and address.
13524         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13525         and set last_sig value to ourstatus->value.sig. Some missing
13526         exceptions added.
13527         (child_continue): Correctly report continue_status.
13528         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13529         TARGET_SIGNAL_0 (new default value).
13530         (child_resume): consider sig argument passed to decide if
13531         the exception should be passed to debuggee or not.
13532
13533 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13534
13535         * regcache.c (fetch_register): Call target_fetch_register
13536         only if we don't call FETCH_PSEUDO_REGISTER.
13537         (store_register): Call target_store_register only if we
13538         don't call STORE_PSEUDO_REGISTER.
13539
13540 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13541
13542         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13543         ELF_MAKE_MSYMBOL_SPECIAL.
13544         * gdbarch.c, gdbarch.h: Regenerate.
13545         * arch-utils.c (default_make_msymbol_special): New function.
13546         * arch-utils.h (default_make_msymbol_special): Export.
13547         * elfread.c (elf_symtab_read): Compile use of
13548         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13549         multiarched.
13550         * coffread.c (coff_symtab_read): Ditto, for
13551         COFF_MAKE_MSYMBOL_SPECIAL.
13552
13553 2002-02-05  Jim Blandy  <jimb@redhat.com>
13554
13555         * solib-svr4.c (svr4_truncate_ptr): New function.
13556         (svr4_relocate_section_addresses): Do the address arithmetic with
13557         the appropriate truncation for target addresses, even when
13558         CORE_ADDR is larger than a target address.
13559
13560 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13561
13562         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13563         to (int *).
13564
13565 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13566
13567         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13568         code.
13569
13570 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13571
13572         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13573
13574 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13575
13576         * gdbserver/linux-low.c: Remove unused include files.
13577
13578 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13579
13580         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13581         (read_inferior_memory): Use it.
13582         (write_inferior_memory): Likewise.
13583
13584 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13585
13586         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13587         grubbing through sys_errlist.
13588
13589 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13590
13591         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13592
13593 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13594         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13595
13596 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13597
13598         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13599         (do_sfunc, set_cmd_sfunc): New functions.
13600
13601         * command.h (struct cmd_list_element): Add field func.
13602         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13603         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13604         * cli/cli-decode.h: Ditto.
13605
13606         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13607         (help_all, help_cmd_list): Ditto.
13608         (find_cmd, complete_on_cmdlist): Ditto.
13609         * top.c (execute_command): Ditto.
13610
13611         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13612         function.sfunc.
13613
13614         * infcmd.c (notice_args_read): Fix function signature.
13615
13616         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13617         * cli/cli-decode.c (add_set_cmd): Ditto.
13618         * utils.c (initialize_utils): Ditto.
13619         * maint.c (_initialize_maint_cmds): Ditto.
13620         * infrun.c (_initialize_infrun): Ditto.
13621         * demangle.c (_initialize_demangler): Ditto.
13622         * remote.c (add_packet_config_cmd): Ditto.
13623         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13624         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13625         * proc-api.c (_initialize_proc_api): Ditto.
13626         * kod.c (_initialize_kod): Ditto.
13627         * valprint.c (_initialize_valprint): Ditto.
13628         * top.c (init_main): Ditto.
13629         * infcmd.c (_initialize_infcmd): Ditto.
13630         * corefile.c (_initialize_core): Ditto.
13631         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13632         * arch-utils.c (initialize_current_architecture): Ditto.
13633         (_initialize_gdbarch_utils): Ditto.
13634         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13635
13636         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13637         * wince.c (_initialize_inftarg): Ditto.
13638         * symfile.c (_initialize_symfile): Ditto.
13639         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13640         * language.c (_initialize_language): Ditto.
13641         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13642
13643 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13644
13645         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13646
13647 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13648
13649         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13650         Add rules for building the register data files.
13651
13652 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13653
13654         * regformats/regdat.sh: Add braces to the definition of
13655         expedite_regs_${arch}.
13656
13657 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13658
13659         * regformats/regdef.h (struct reg): Add comment describing the
13660         requirements for offset and size fields.
13661
13662 2002-02-04  Andreas Schwab  <schwab@suse.de>
13663
13664         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13665         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13666
13667 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13668
13669         * gdbarch.sh (copyright): Update years in generated header.
13670         (SMASH_TEXT_ADDRESS): Add rule.
13671         * gdbarch.h, gdbarch.c: Re-generate.
13672         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13673         * dbxread.c: Likewise.
13674         * dwarfread.c: Likewise.
13675         * elfread.c: Likewise.
13676         * somread.c: Likewise.
13677
13678         * arm-tdep.c (arm_smash_text_address): New function.
13679         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13680
13681 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13682
13683         Add support for hardware watchpoints on win32 native.
13684         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13685         CONTEXT_DEBUG_REGISTERS.
13686         (dr variable): New variable. Static array containing a local copy
13687         of debug registers.
13688         (debug_registers_changed): New variable.  Reflects when debug registers
13689         are changed and need to be written to inferior.
13690         (debug_registers_used): New variable. Reflects when any debug register
13691         was set, used when new threads are created.
13692         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13693         i386-nat code.
13694         (thread_rec): Set dr array if id is the thread of current_event .
13695         (child_continue, child_resume): Change the debug registers for all
13696         threads if debug_registers_changed.
13697         (child_add_thread): Change the debug registers if debug_registers_used.
13698         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13699         Link nm.h to new nm-cygwin.h file.
13700         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13701         of hardware registers.
13702
13703 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13704
13705         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13706         Restore behavour broken by 2002-01-20 Andrew Cagney
13707         <ac131313@redhat.com> IEEE_FLOAT removal.
13708
13709 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13710
13711         * c-valprint.c (c_val_print): Pass a proper valaddr to
13712         cp_print_class_method.
13713         * valops.c (search_struct_method): If there is only one method
13714         and args is NULL, return that method.
13715
13716 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13717
13718         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13719         accessing tag_name directly.
13720
13721 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13722
13723         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13724         of accessing tag_name directly.
13725
13726 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13727
13728         PR gdb/280
13729         * gdbtypes.c (replace_type): New function.
13730         * gdbtypes.h (replace_type): Add prototype.
13731         * stabsread.c (read_type): Use replace_type.
13732
13733 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13734
13735         * Makefile.in (memattr.o): Add missing dependencies rule.
13736
13737 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13738
13739         * breakpoint.c (break_at_finish_command): Really export.
13740         (break_at_finish_at_depth_command): Ditto.
13741         (tbreak_at_finish_command): Ditto.
13742         * hppa-tdep.c: Include completer.h.
13743         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13744         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13745
13746 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13747
13748         * utils.c (do_write): New function.
13749         (error_stream): Rewrite combining the code from error_begin and
13750         verror.
13751         (verror): Rewrite using error_stream.
13752         (error_begin): Delete function.
13753
13754 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13755
13756         * utils.c (error_begin): Make static.
13757         * defs.h (error_begin): Delete declaration.
13758
13759         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13760         (decode_line_1): Use cplusplus_error instead of error_begin,
13761         cplusplus_hint and return_to_top_level.
13762         * coffread.c (coff_symfile_read): Use error instead of error_begin
13763         and return_to_top_level.
13764         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13765
13766 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13767
13768         * language.h (type_error, range_error): Make string parameter
13769         constant.
13770         * language.c (warning_pre_print): Delete extern declaration.
13771         * dwarfread.c (warning_pre_print): Ditto.
13772         * language.c (type_error, range_error): Rewrite to use verror and
13773         vwarning instead of warning_begin.
13774
13775 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13776
13777         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13778         (set_ignore_count): Move misplaced comment back where it belongs.
13779
13780 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13781
13782         * command.h (NO_FUNCTION): Delete macro.
13783         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13784         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13785         * tracepoint.c (_initialize_tracepoint): Ditto.
13786         * cli/cli-decode.c (add_set_cmd): Ditto.
13787         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13788
13789 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13790
13791         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13792         Update ``this'' pointer when calling virtual functions.
13793
13794 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13795
13796         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13797         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13798
13799 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13800
13801         * regformats/reg-arm.dat: New file.
13802         * regformats/reg-i386.dat: New file.
13803         * regformats/reg-ia64.dat: New file.
13804         * regformats/reg-m68k.dat: New file.
13805         * regformats/reg-mips.dat: New file.
13806         * regformats/reg-ppc.dat: New file.
13807         * regformats/reg-sh.dat: New file.
13808         * regformats/regdef.h: New file.
13809         * regformats/regdat.sh: New file.
13810
13811 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13812
13813         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13814         (arm_frame_args_address, arm_frame_locals_address): New functions.
13815         (arm_frame_num_args): New function.
13816         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13817         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13818         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13819
13820 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13821
13822         * breakpoint.c (break_at_finish_command): Export.
13823         (break_at_finish_at_depth_command): Export.
13824         (tbreak_at_finish_command): Export.
13825         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13826         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13827         "txbreak" commands, which are HPPA specific.
13828
13829         * printcmd.c (disassemble_command): Remove an ancient
13830         artifact of an old merge.
13831
13832         * symfile.h (enum overlay_debugging_state):
13833         Define enum constant values for overlay mode.
13834         * symfile.c (overlay_debugging): Use enums instead of literals.
13835         (overlay_is_mapped, overlay_auto_command,
13836         overlay_manual_command): Ditto.
13837
13838         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13839         breakpoint_here_p, breakpoint_inserted_here_p,
13840         breakpoint_thread_match, bpstat_stop_status,
13841         describe_other_breakpoints, check_duplicates, clear_command):
13842         Coding standard fixes.
13843
13844         * target.c (target_xfer_memory): Add spaces, coding standard.
13845         (do_xfer_memory): Add missing line to trust-readonly
13846         code: check bfd SEC_READONLY flag for section.
13847
13848 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13849
13850         * PROBLEMS: Fix typo, 5.1->5.1.1.
13851
13852 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13853
13854         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13855         data symbols, since we search based on textlow and texthigh.
13856         (find_pc_sect_symtab): Likewise.
13857
13858 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13859
13860         * defs.h (vwarning): Declare.
13861         * utils.c (vwarning): New function.
13862         (warning): Call vwarning.
13863         (warning_begin): Delete function.
13864
13865         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13866         the warning message.
13867         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13868         warning_begin.
13869
13870 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13871
13872         * NEWS: Mention "set trust-readonly-sections" command.
13873         Mention generate-core-file command.
13874
13875 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13876
13877         * target.c: New command, "set trust-readonly-sections on".
13878         (do_xfer_memory): Honor the suggestion to trust readonly sections
13879         by reading them from the object file instead of from the target.
13880         (initialize_targets): Register command "set trust-readonly-sections".
13881
13882 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13883
13884         * parse.c (target_map_name_to_register): Simplify, search regs and
13885         pseudo-regs using a single loop.
13886
13887 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13888
13889         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13890
13891 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13892
13893         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13894         * config/i386/i386v42mp.mh: Add i387-nat.o .
13895         * i386v4-nat.c: Include i387-nat.h.
13896         (supply_fpregset): Use i387_supply_fsave.
13897         (fill_fpregset): Use i387_fill_fsave.
13898
13899 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13900
13901         * arm-tdep.c (arm_call_dummy_words): Define.
13902         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13903         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13904         (CALL_DUMMY_WORDS): Define.
13905         (arm_call_dummy_words): Declare.
13906         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13907         (arm_linux_call_dummy_words): Declare.
13908
13909 2002-01-30  Andreas Schwab  <schwab@suse.de>
13910
13911         * m68klinux-nat.c: Fix last change to use regcache_collect
13912         instead of referencing registers[] directly.
13913
13914 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13915
13916         * parse.c (target_map_name_to_register): Delete code wrapped in
13917         #ifdef REGISTER_NAME_ALIAS_HOOK.
13918
13919 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13920
13921         * regcache.c (legacy_read_register_gen): Need to be able to
13922         read pseudo-register as well as real register.
13923         (legacy_write_register_gen): Ditto.
13924
13925 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13926
13927         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13928         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13929         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13930         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13931         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13932         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13933         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13934         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13935         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13936         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13937         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13938         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13939         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13940         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13941         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13942         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13943         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13944         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13945         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13946         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13947
13948 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13949
13950         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13951         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13952         (initialize_current_architecture): Update target_byte_order using
13953         information from BFD.
13954         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13955         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13956
13957 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13958
13959         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13960         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13961
13962         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13963         #ifdef INVALID_FLOAT.
13964         * infcmd.c (do_registers_info): Ditto.
13965         * values.c (unpack_double): Ditto.  Add comment.
13966
13967         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13968         already commented out.
13969
13970 2002-01-26  Andreas Schwab  <schwab@suse.de>
13971
13972         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13973         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13974         registers and add support for PTRACE_GETREGS.
13975
13976 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
13977
13978         GDB 5.1.1 released from 5.1 branch.
13979         * NEWS: Add 5.1.1 news.
13980         * README: Sync with 5.1 branch.
13981
13982 2002-01-23  Fred Fish  <fnf@redhat.com>
13983
13984         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13985         stabstring on initial malloc.  Reallocing will copy it for us,
13986         if necessary.
13987
13988 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
13989
13990         * Makefile.in (hpread_h): Delete.
13991         (HFILES_NO_SRCDIR): Remove hpread.h.
13992         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13993         (hpread.o): Update dependencies.
13994         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13995
13996         * hp-psymtab-read.c: Remove file.
13997         * hp-symtab-read.c: Remove file.
13998         * hpread.h: Remove file.
13999
14000         * hpread.c: Merge all contents of hp-psymtab-read.c,
14001         hp-symtab-read.c and hpread.h into this file, as it was prior to
14002         January 1999.
14003
14004         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14005         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14006         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14007         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14008
14009 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14010
14011         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14012         fill_gregset): Call gdbarch_tdep() just once, assign result to
14013         variable and use that, instead of calling the function several
14014         times.
14015
14016 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14017
14018         * configure.host: Accept sparcv9 as alias for sparc64.
14019         * configure.tgt: Likewise.
14020
14021 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14022
14023         * solib-aix5.c (build_so_list_from_mapfile)
14024         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14025         arguments is not reversed.
14026         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14027         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14028
14029 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14030
14031         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14032         modified version of obsolete sh_fetch_pseudo_register.
14033         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14034         (sh4_register_read): New function.
14035         (sh_pseudo_register_write): New function. Renamed and modified
14036         version of obsolete sh_store_pseudo_register.
14037         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14038         (sh4_register_write): New function.
14039         (sh_gdbarch_init): Remove setting of gdbarch function
14040         fetch_pseudo_register and store_pseudo_register. Remove setting of
14041         register_convert_to_raw, register_convert_to_virtual,
14042         register_convertible.
14043         (sh_sh4_register_convertible): Delete. No longer needed. All is
14044         taken care by architecture specific functions
14045         register_read/register_write.
14046         (sh_sh4_register_convert_to_virtual): Make static.
14047         (sh_sh4_register_convert_to_raw): Ditto.
14048
14049 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14050
14051         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14052         (floatformat_is_nan, floatformat_mantissa): Ditto.
14053
14054         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14055         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14056         builtin_type_ieee_double_little,
14057         builtin_type_ieee_double_littlebyte_bigword,
14058         builtin_type_m68881_ext, builtin_type_i960_ext,
14059         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14060         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14061         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14062         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14063
14064 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14065
14066         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14067         parameter.  Set frameless flag if it exists and depended of
14068         whether the scanned function is frameless or not.
14069         (xstormy16_skip_prologue): If function is frameless, return
14070         result of xstormy16_scan_prologue().
14071         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14072         call.
14073
14074 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14075
14076         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14077         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14078         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14079         sh_sh4_register_byte, sh_sh4_register_raw_size,
14080         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14081         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14082         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14083         sh_store_pseudo_register, sh_do_pseudo_register): Call
14084         gdbarch_tdep() just once, assign result to variable and use that,
14085         instead of calling the function several times.
14086
14087 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14088
14089         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14090         macros instead of LAST_FPU_CTRL_REGNUM.
14091         (store_register): Likewise.
14092
14093 2002-01-21  Jim Blandy  <jimb@redhat.com>
14094
14095         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14096         is up-to-date before running the program, not just when a program
14097         exits.
14098
14099 2002-01-21  Fred Fish  <fnf@redhat.com>
14100
14101         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14102         when we have found all instructions we are looking for.
14103
14104 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14105
14106         * arm-tdep.c (arm_register_name): New function.
14107         (arm_registers_names): Make static.
14108         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14109         (arm_register_name): Declare.
14110         (REGISTER_NAME): Use it.
14111
14112 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14113             Kevin Buettner  <kevinb@redhat.com>
14114
14115         Convert arm targets to new FRAME interface.
14116         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14117         (arm_frame_find_save_regs): Delete.
14118         (arm_frame_init_saved_regs): New.
14119         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14120         Allocate extra_info as required.  Convert all uses of fsr.regs
14121         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14122         to use extra_info.
14123         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14124         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14125         (check_prologue_cache, save_prologue_cache): Likewise.
14126         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14127         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14128         (FRAME_FIND_SAVED_REGS): Delete.
14129         (arm_frame_find_saved_regs): Delete prototype.
14130         (arm_frame_init_saved_regs): New prototype.
14131         (FRAME_INIT_SAVED_REGS): Define.
14132
14133 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14134
14135         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14136
14137 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14138
14139         From Jeff Law <law@redhat.com>:
14140         * infttrace.c: Include <sys/pstat.h>.
14141         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14142         exec file if the ttrace equivalent fails.
14143
14144 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14145
14146         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14147         (closeLogFile): Ditto.
14148
14149 2002-01-20  Michael Chastain  <mec@shout.net>
14150
14151         * top.c (print_gdb_version): Bump copyright year to 2002.
14152
14153 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14154
14155         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14156         Zannoni and Eli Zaretskii.
14157
14158 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14159
14160         * buildsym.c: Update copyright years.
14161         * c-typeprint.c: Likewise.
14162         * dwarf2read.c: Likewise.
14163         * f-typeprint.c: Likewise.
14164         * gdbtypes.c: Likewise.
14165         * gdbtypes.h: Likewise.
14166         * hp-symtab-read.c: Likewise.
14167         * hpread.c: Likewise.
14168         * mdebugread.c: Likewise.
14169         * p-typeprint.c: Likewise.
14170
14171 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14172
14173         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14174         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14175         byte-order selectable.
14176         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14177         * arch-utils.c: Ditto.
14178         (set_endian): Ditto.
14179         (set_endian_from_file): Ditto.
14180         * gdbserver/low-sim.c (create_inferior): Ditto.
14181         * gdbarch.sh: Ditto.
14182         * gdbarch.h: Re-generate.
14183         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14184         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14185         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14186         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14187         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14188         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14189         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14190         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14191         macro definition.
14192         * config/mips/tm-wince.h: Remove #undef of macro
14193         TARGET_BYTE_ORDER_SELECTABLE.
14194         * config/sh/tm-wince.h: Ditto.
14195
14196 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14197
14198         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14199         member function fields.  Add accessor macro
14200         TYPE_FN_FIELD_ARTIFICIAL.
14201         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14202         * c-typeprint.c (c_type_print_base): Skip artificial member
14203         functions.
14204
14205 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14206
14207         * f-typeprint.c: Delete unused function f_type_print_args.
14208         * p-typeprint.c: Delete unused function pascal_type_print_args.
14209
14210 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14211
14212         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14213         comment.  Add ``artificial'' to ``union field_location''.
14214
14215         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14216
14217         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14218         * mdebugread.c (parse_symbol): Likewise.
14219         * stabsread.c (define_symbol): Likewise.
14220         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14221         initializing TYPE_FIELD_BITPOS to n (obsolete).
14222         (hpread_doc_function_type): Likewise.
14223         * hpread.c (hpread_function_type): Likewise.
14224
14225 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14226
14227         * configure.in (host_makefile_frag): Only require a host makefile
14228         fragment when a native build.
14229         * configure: Re-generate.
14230
14231 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14232
14233         * doublest.h (floatformat_from_type): Declare.
14234         * doublest.c (floatformat_from_type): New function.
14235         (convert_typed_floating): Use.
14236
14237         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14238         call to function floatformat_from_type.
14239
14240         * gdbarch.sh (IEEE_FLOAT): Delete.
14241         * gdbarch.h, gdbarch.c: Re-generate.
14242         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14243         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14244         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14245         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14246         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14247         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14248         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14249         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14250         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14251         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14252         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14253         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14254
14255         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14256         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14257         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14258         * sh-tdep.c (sh_gdbarch_init): Ditto.
14259         * mips-tdep.c (mips_gdbarch_init): Ditto.
14260         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14261         * cris-tdep.c (cris_gdbarch_init): Ditto.
14262
14263 2002-01-20  Jiri Smid  <smid@suse.cz>
14264
14265         * configure.host, configure.tgt: Support x86-64.
14266         * NEWS: Note new target x86-64.
14267
14268         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14269         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14270         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14271         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14272         x86-64-linux-nat.o): Fix dependencies.
14273
14274 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14275
14276         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14277         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14278         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14279         * config/sparc/xm-sun4os4.h: Delete file.
14280         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14281
14282 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14283
14284         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14285         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14286         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14287         * config/i386/i386lynx.mh (XM_FILE): Delete.
14288         * config/rs6000/xm-rs6000ly.h: Delete file.
14289         * config/sparc/xm-sparclynx.h: Delete file.
14290         * config/m68k/xm-m68klynx.h: Delete file.
14291         * config/i386/xm-i386lynx.h: Delete file.
14292         * config/xm-lynx.h: Delete file.
14293         * config/djgpp/fnchange.lst: Update.
14294
14295 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14296
14297         * alpha-tdep.c (alpha_register_byte): New function.
14298         (alpha_register_raw_size): Ditto.
14299         (alpha_register_virtual_size): Ditto.
14300         (alpha_skip_prologue_internal): Renamed from
14301         alpha_skip_prologue.
14302         (alpha_skip_prologue): New version that calls
14303         alpha_skip_prologue_internal.
14304         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14305         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14306         second argument from alpha_skip_prologue.
14307         (REGISTER_BYTE): Use alpha_register_byte.
14308         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14309         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14310         (FRAMELESS_FUNCTION_INVOCATION): Use
14311         generic_frameless_function_invocation_not.
14312         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14313         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14314
14315 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14316
14317         * config/mips/xm-news-mips.h: Delete file.
14318         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14319
14320         * config/m88k/xm-m88k.h: Delete file.
14321         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14322         * config/m88k/xm-delta88v4.h: Ditto.
14323         * config/m88k/xm-delta88.h: Ditto.
14324
14325         * config/alpha/xm-fbsd.h: Delete file.
14326         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14327
14328         * config/sparc/xm-sparc.h: Delete file.
14329         * Makefile.in (xm-sun4os4.h): Delete dependency.
14330         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14331         * config/sparc/xm-sun4os4.h: Ditto.
14332         * config/sparc/xm-linux.h: Ditto.
14333
14334         * config/i386/xm-windows.h: Delete file.
14335
14336 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14337
14338         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14339         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14340
14341 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14342
14343         * alpha-tdep.c (alpha_call_dummy_words): New.
14344         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14345         (CALL_DUMMY_P): Define.
14346         (CALL_DUMMY_WORDS): Define.
14347         (SIZEOF_CALL_DUMMY_WORDS): Define.
14348
14349 2002-01-19  Per Bothner  <per@bothner.com>
14350
14351         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14352         isn't NULL, which can happen with some gcj-3.x-produced code.
14353
14354 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14355
14356         * alpha-tdep.c (alpha_register_virtual_type): New function.
14357         (alpha_init_frame_pc_first): Ditto.
14358         (alpha_fix_call_dummy): Ditto.
14359         (alpha_store_struct_return): Ditto.
14360         (alpha_extract_struct_value_address): Ditto.
14361         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14362         alpha_register_virtual_type.
14363         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14364         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14365         alpha_extract_struct_value_address.
14366         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14367         (INIT_FRAME_PC): Use init_frame_pc_noop.
14368         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14369
14370 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14371
14372         * i386gnu-nat.c: Include "i386-tdep.h".
14373         (fetch_fpregs): Simplify code dealing with uninitialized floating
14374         point states such that it doesn't require FP7_REGNUM.
14375
14376 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14377
14378         * alpha-tdep.c (frame_extra_info): New.
14379         (alpha_find_saved_regs): Make static.  Use
14380         frame->extra_info.
14381         (alpha_frame_init_saved_regs): New function.
14382         (alpha_frame_saved_pc): Use frame->extra_info.
14383         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14384         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14385         (init_extra_frame_info): Rename to...
14386         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14387         (alpha_print_extra_frame_info): New function.
14388         (alpha_frame_locals_address): Ditto.
14389         (alpha_frame_args_address): Ditto.
14390         (alpha_pop_frame): Use frame->extra_info.
14391         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14392         alpha_frame_args_address.
14393         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14394         (alpha_find_saved_regs): Remove prototype.
14395         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14396         (EXTRA_FRAME_INFO): Remove.
14397         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14398         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14399
14400 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14401
14402         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14403         (alpha_cannot_fetch_register): Ditto.
14404         (alpha_cannot_store_register): Ditto.
14405         (alpha_register_convertible): Ditto.
14406         (alpha_use_struct_convention): Ditto.
14407         * config/alpha/tm-alpha.h: Update copyright years.
14408         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14409         (INNER_THAN): Use core_addr_lessthan.
14410         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14411         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14412         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14413         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14414         (FRAME_CHAIN): Remove unnecessary cast.
14415
14416 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14417
14418         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14419         obsolete.
14420
14421 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14422
14423         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14424         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14425         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14426         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14427         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14428         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14429         * x86-64-linux-nat.c: Ditto.
14430
14431 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14432
14433         * alpha-tdep.c (alpha_register_name): New function.
14434         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14435         (REGISTER_NAME): Define.
14436
14437 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14438
14439         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14440
14441 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14442
14443         * alpha-tdep.c: Update copyright years.
14444         (alpha_next_pc): New function.
14445         (alpha_software_single_step): Ditto.
14446         * config/alpha/tm-alpha.h: Add prototype for
14447         alpha_software_single_step.
14448
14449 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14450
14451         * alphabsd-nat.c: Update copyright years.
14452         (fill_gregset): Use regcache_collect.
14453         (fill_fpregset): Likewise.
14454         (fetch_inferior_registers): Only fetch integer registers
14455         if requested to do so.
14456         (store_inferior_registers): Only store integer registers
14457         if requested to do so.
14458
14459 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14460
14461         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14462         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14463         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14464         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14465         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14466         * config/arm/linux.mh (XDEPFILES): Delete.
14467         * config/arm/nbsd.mh (XDEPFILES): Delete.
14468         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14469         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14470         * config/i386/i386m3.mh (XDEPFILES): Delete.
14471         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14472         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14473         * config/i386/fbsd.mh (XDEPFILES): Delete.
14474         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14475         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14476         * config/i386/i386v4.mh (XDEPFILES): Delete.
14477         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14478         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14479         * config/i386/i386aix.mh (XDEPFILES): Delete.
14480         * config/i386/go32.mh (XDEPFILES): Delete.
14481         * config/i386/cygwin.mh (XDEPFILES): Delete.
14482         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14483         * config/i386/i386mach.mh (XDEPFILES): Delete.
14484         * config/i386/i386v32.mh (XDEPFILES): Delete.
14485         * config/i386/linux.mh (XDEPFILES): Delete.
14486         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14487         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14488         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14489         * config/i386/i386sco.mh (XDEPFILES): Delete.
14490         * config/i386/i386v.mh (XDEPFILES): Delete.
14491         * config/i386/nbsd.mh (XDEPFILES): Delete.
14492         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14493         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14494         * config/i386/symmetry.mh (XDEPFILES): Delete.
14495         * config/i386/obsd.mh (XDEPFILES): Delete.
14496         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14497         * config/ia64/linux.mh (XDEPFILES): Delete.
14498         * config/ia64/aix.mh (XDEPFILES): Delete.
14499         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14500         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14501         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14502         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14503         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14504         * config/m68k/linux.mh (XDEPFILES): Delete.
14505         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14506         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14507         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14508         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14509         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14510         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14511         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14512         * config/m88k/delta88.mh (XDEPFILES): Delete.
14513         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14514         * config/m88k/m88k.mh (XDEPFILES): Delete.
14515         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14516         * config/mips/linux.mh (XDEPFILES): Delete.
14517         * config/mips/irix6.mh (XDEPFILES): Delete.
14518         * config/mips/irix5.mh (XDEPFILES): Delete.
14519         * config/mips/irix4.mh (XDEPFILES): Delete.
14520         * config/mips/irix3.mh (XDEPFILES): Delete.
14521         * config/mips/decstation.mh (XDEPFILES): Delete.
14522         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14523         (NATDEPFILES): Move core-aout.o to here.
14524         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14525         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14526         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14527         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14528         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14529         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14530         * config/pa/hpux11.mh (XDEPFILES): Delete.
14531         * config/powerpc/aix.mh (XDEPFILES): Delete.
14532         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14533         * config/powerpc/linux.mh (XDEPFILES): Delete.
14534         * config/romp/rtbsd.mh: Rename XDEPFILES.
14535         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14536         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14537         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14538         * config/s390/s390.mh (XDEPFILES): Delete.
14539         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14540         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14541         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14542         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14543         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14544         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14545         * config/sparc/linux.mh (XDEPFILES): Delete.
14546         * config/vax/vaxult.mh (XDEPFILES): Delete.
14547         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14548         * Makefile.in (DEPFILES): Remove XDEPFILES.
14549
14550 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14551
14552         * utils.c (internal_verror): Fix comments, default is yes not no.
14553         Update queries to match.  Default to quit and dump core.
14554
14555 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14556
14557         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14558         copyright.
14559         * defs.h, event-top.c, gdbcmd.h: Ditto.
14560         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14561         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14562         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14563         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14564         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14565         * mi/mi-main.c:Ditto.
14566
14567         * stack.c, symfile.c: Update copyright.
14568
14569 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14570
14571         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14572         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14573         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14574         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14575
14576 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14577
14578         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14579         * gdbserver/low-lynx.c (myattach): Likewise.
14580         * gdbserver/low-nbsd.c (myattach): Likewise.
14581         * gdbserver/low-sim.c (myattach): Likewise.
14582         * gdbserver/low-sparc.c (myattach): Likewise.
14583         * gdbserver/low-sun3.c (myattach): Likewise.
14584
14585         * gdbserver/low-linux.c (myattach): New function.
14586
14587         * gdbserver/server.c (attach_inferior): New function.
14588         (main): Handle "--attach".
14589
14590 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14591
14592         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14593         maintainer.
14594
14595 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14596
14597         * c-typeprint.c (is_type_conversion_operator): Add additional
14598         check for non-conversion operators.
14599
14600 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14601
14602         * linux-proc.c: Add "info proc" command, a la procfs.c.
14603         (read_mapping): New function, abstract and re-use code.
14604         (linux_find_memory_regions): Use new func read_mapping.
14605         (linux_info_proc_cmd): New function, implement "info proc".
14606         (_initialize_linux_proc): Add new command "info proc".
14607
14608 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14609
14610         * symfile.c (generic_load): Use bfd_map_over_sections method
14611         instead of manipulating bfd structure members directly.
14612         (add_section_size_callback): New function, bfd sections callback
14613         used by generic_load.
14614         (load_sections_callback): New function, bfd sections callback
14615         used by generic_load.
14616
14617 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14618
14619         [Based on work by Jim Blandy]
14620         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14621         (builtin_type_vec128): Export.
14622         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14623         types.
14624         (builtin_type_vec128): New builtin type for 128 bit vector
14625         registers.
14626         (build_gdbtypes): Initialize builtin_type_v16qi and
14627         builtin_type_v8hi. Create the vec128 register builtin type
14628         structure.
14629         (build_builtin_type_vec128): New function.
14630         (_initialize_gdbtypes): Register builtin_type_v16qi and
14631         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14632         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14633         AltiVec register to new builtin type.
14634
14635 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14636
14637         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14638         to make_cv_type.
14639
14640 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14641
14642         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14643         CLEAN_UP_REGISTER_VALUE.
14644         * regcache.c (supply_register): Update only call.
14645
14646 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14647
14648         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14649         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14650         a29k-*-vxworks* targets as obsolete.
14651
14652 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14653
14654         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14655         until we can resolve portability issues.
14656         * gregset.h: Remove references to fpxregs.
14657         * gcore.c (gcore_command): Initialize note_sec to NULL.
14658
14659 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14660
14661         * signals.c (target_signal_to_name): Rewrite.  Only use
14662         signals[].name when in bounds and non-NULL.
14663
14664 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14665
14666         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14667         * signals.c (target_signal_to_name): Verify that SIG is within the
14668         bounds of the signals array.
14669
14670 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14671
14672         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14673
14674 2002-01-13  Keith Seitz  <keiths@redhat.com>
14675
14676         * stack.c (print_frame_info_base): Print the frame's pc
14677         only if when print_frame_info_listing_hook is not defined.
14678
14679 2002-01-13  Keith Seitz  <keiths@redhat.com>
14680
14681         * varobj.c (varobj_set_value): Make sure that there were no
14682         errors evaluating the object before attempting to set its
14683         value.
14684         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14685         so this offset adjustment is no longer necessary.
14686         (create_child): Don't set the error flag if the child is
14687         a CPLUS_FAKE_CHILD.
14688         (value_of_child): If value_fetch_lazy fails, return NULL
14689         so that callers will be notified that an error occurred.
14690         (c_value_of_variable): Delay check of variable's validity
14691         until later. We actually want all structs and unions to have
14692         the value "{...}".
14693         Do not return "???" for variables which could not be evaluated.
14694         This error condition must be returned to the caller so that it
14695         can get the error condition from gdb.
14696         (cplus_name_of_child): Adjust index for vptr before figuring
14697         out the name of the child.
14698         (cplus_value_of_child): If a child's (real) parent is not valid,
14699         don't even bother trying to give a value for it. Just return
14700         an error. Change all instances in this function.
14701         (cplus_type_of_child): If our parent is one of the "fake"
14702         parents, we need to get at the type of the real parent, and
14703         derive the child's true type using this information.
14704
14705 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14706
14707         From 2002-01-09 John Marshall <johnm@falch.net>:
14708         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14709         sources.redhat.com, and tweak some related URLs which had
14710         suffered from linkrot.
14711
14712 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14713
14714         From Jeff law:
14715         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14716         structures passed in registers.
14717
14718 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14719
14720         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14721         white space which prevented compilation.  Reported by DSK
14722         <dsk@student.unsw.edu.au>.
14723
14724 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14725
14726         * symfile.c (build_section_addr_info_from_section_tab):
14727         Use bfd access method instead of manipulating bfd directly.
14728         (syms_from_objfile): Ditto.
14729         (simple_overlay_update_1): Ditto.
14730         (simple_overlay_update): Ditto.
14731         (generic_load): Ditto.
14732         (overlay_unmapped_address): FIXME comment, bfd access methods.
14733         (sections_overlap): FIXME comment, bfd access methods.
14734         (pc_in_mapped_range): FIXME comment, bfd access methods.
14735         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14736         (section_is_mapped): FIXME comment, bfd access methods.
14737         (section_is_overlay): FIXME comment, bfd access methods.
14738
14739         * symfile.c (generic_load): Whitespace and long line cleanups.
14740         Remove duplicate variable, change several local variables to
14741         more appropriate data types.
14742         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14743
14744 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14745
14746         From Peter Schauer:
14747         * language.c (longest_local_hex_string_custom): Use phex_nz to
14748         convert NUM to a hex string.
14749
14750 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14751
14752         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14753         the function.
14754         Update Copyright year.
14755
14756 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14757
14758         * language.c (longest_raw_hex_string): Delete unused function.
14759
14760 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14761
14762         * MAINTAINERS (write-after-approval): Add myself.
14763         * dwarf2read.c (read_tag_string_type): Handling of
14764         DW_AT_byte_size.
14765         (read_tag_string_type): FORTRAN fix to prevent propagation of
14766         first string size.
14767         (set_cu_language): Handling of DW_LANG_Fortran95
14768
14769 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14770
14771         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14772         GETPID(inferior_ptid).
14773         (store_inferior_registers): Likewise.
14774
14775 2002-01-10  Jason Merrill  <jason@redhat.com>
14776
14777         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14778         Fix DW_OP_minus.
14779
14780 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14781
14782         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14783         and bfd/elf32-sh-nbsd.c.
14784
14785 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14786
14787         * NEWS: Mention --pid and corefile/proc-id behavior change.
14788
14789         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14790         * gcore.c: Include cli/cli-decode.h instead of command.h.
14791
14792         * main.c (captured_main): Add new command line option "--pid".
14793         If the second command line argument (following the symbol-file)
14794         begins with a digit, try to attach to it before trying to open
14795         it as a corefile.
14796         (print_gdb_help): Document the "--pid" argument.
14797
14798 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14799
14800         * completer.c (command_completer): New function.
14801
14802         * completer.h <command_completer>: Add prototype.
14803
14804         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14805         completer for the "help" command.
14806
14807 2002-01-09  Jason Merrill  <jason@redhat.com>
14808
14809         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14810
14811 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14812
14813         * i386-linux-nat.c (fill_fpxregset): Make global.
14814         (store_fpxregset): Ditto.
14815
14816         * gregset.h (gdb_fpxregset_t): Define.
14817         (supply_fpxregset): Prototype.
14818         (fill_fpxregset): Prototype.
14819
14820         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14821
14822 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14823
14824         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14825         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14826         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14827
14828 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14829
14830         * MAINTAINERS: Update target maintainer rules so that any
14831         Maintainer can approve a tested patch for a maintenance-only
14832         target.
14833
14834 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14835
14836         * MAINTAINERS (write-after-approval): Add myself.
14837
14838         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14839         IN_SIGTRAMP.
14840
14841 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14842
14843         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14844         real name of the executable, rather than the /proc name.
14845
14846 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14847
14848         Implement a "generate-core-file" command in gdb, save target state.
14849         * gcore.c: New file.  Implement new command 'generate-core-file'.
14850         Save a corefile image of the current state of the inferior.
14851         * linux-proc.c: Add linux-specific code for saving corefiles.
14852         * target.h (struct target_ops): Add new target vectors for saving
14853         corefiles; to_find_memory_regions and to_make_corefile_notes.
14854         (target_find_memory_regions): New macro.
14855         (target_make_corefile_notes): New macro.
14856         * target.c (update_current_target): Inherit new target methods.
14857         (dummy_find_memory_regions): New place-holder method.
14858         (dummy_make_corefile_notes): New place-holder method.
14859         (init_dummy_target): Initialize new dummy target vectors.
14860         * exec.c (exec_set_find_memory_regions): New function.
14861         Allow the exec_ops vector for memory regions to be taken over.
14862         (exec_make_note_section): New function, target vector method.
14863         * defs.h (exec_set_find_memory_regions): Export prototype.
14864         * procfs.c (proc_find_memory_regions): New function, corefile method.
14865         (procfs_make_note_section): New function, corefile method.
14866         (init_procfs_ops): Set new target vector pointers.
14867         (find_memory_regions_callback): New function.
14868         (procfs_do_thread_registers): New function.
14869         (procfs_corefile_thread_callback): New function.
14870         * sol-thread.c (sol_find_memory_regions): New function.
14871         (sol_make_note_section): New function.
14872         (init_sol_thread_ops): Initialize new target vectors.
14873         * inftarg.c (inftarg_set_find_memory_regions): New function.
14874         Allow to_find_memory_regions vector to be taken over.
14875         (inftarg_set_make_corefile_notes): New function.
14876         Allow to_make_corefile_notes vector to be taken over.
14877         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14878         interface layer if not target_has_execution (may be a corefile).
14879         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14880         * config/sparc/sun4sol2.mh: Ditto.
14881         * config/alpha/alpha-linux.mh: Ditto.
14882         * config/arm/linux.mh: Ditto.
14883         * config/i386/x86-64linux.mh: Ditto.
14884         * config/ia64/linux.mh: Ditto.
14885         * config/m68k/linux.mh: Ditto.
14886         * config/mips/linux.mh: Ditto.
14887         * config/powerpc/linux.mh: Ditto.
14888         * config/sparc/linux.mh: Ditto.
14889
14890 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14891
14892         * arm-linux-nat.c: Remove references to regcache.c internal data
14893         (registers[] and register_valid[]).
14894
14895 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14896
14897         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14898         so that attaching to a pid will automatically read the process's
14899         symbol file and shlibs.
14900         * Makefile.in: Add rule for linux-proc.o.
14901         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14902         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14903         * config/arm/linux.mh: Ditto.
14904         * config/i386/linux.mh: Ditto.
14905         * config/i386/x86-64linux.mh: Ditto.
14906         * config/ia64/linux.mh: Ditto.
14907         * config/m68k/linux.mh: Ditto.
14908         * config/mips/linux.mh: Ditto.
14909         * config/powerpc/linux.mh: Ditto.
14910         * config/sparc/linux.mh: Ditto.
14911
14912 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14913
14914         * win32-nat.c: Add i386-tdep.h dependency.
14915
14916 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14917
14918         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14919         instead of bfd_get_arch_size.  Don't bail out just because
14920         there's no exec_bfd.
14921
14922         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14923         * p-valprint.c (pascal_object_print_value): Ditto.
14924         * somread.c (som_symtab_read): Ditto.
14925         * symfile.c (simple_free_overlay_region_table): Ditto.
14926         * valops.c (value_assign): Ditto.
14927
14928         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14929         use tilde_expand and strerror for opening save-tracepoints file.
14930
14931         * thread-db.c (thread_db_new_objfile): Indendation fix.
14932
14933         * infptrace.c (GDB_MAX_ALLOCA): New define.
14934         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14935         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14936         can be overridden with whatever value is appropriate to the host).
14937         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14938         alloca to allocate potentially large buffer.
14939         * rs6000-nat.c (child_xfer_memory): Ditto.
14940         * symm-nat.c (child_xfer_memory): Ditto.
14941         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14942
14943 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
14944
14945         From Nick Clifton  <nickc@redhat.com>
14946         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14947
14948 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14949
14950         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14951         Don't use exec_bfd if it's NULL.
14952
14953 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
14954
14955         * valops.c (value_arg_coerce): Fix formatting.
14956
14957 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14958
14959         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14960         * gnu-nat.c: Ditto.
14961
14962 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14963
14964         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14965         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14966         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14967         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14968         z8k-coff have not been multi-arched.  Update z8k-coff build
14969         status.
14970
14971 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
14972
14973         * MAINTAINERS: Mark a29k target as obsolete.
14974         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14975         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14976         comments.
14977         * NEWS: Note that a29k targets are obsolete.
14978         * a29k-tdep.c: Mark as obsolete.
14979         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14980         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14981         a29k-*-vxworks* targets as obsolete.
14982         * remote-adapt.c: Obsolete.
14983         * remote-eb.c: Obsolete.
14984         * remote-mm.c: Obsolete.
14985         * remote-udi.c: Obsolete.
14986         * config/a29k/a29k-udi.mt: Obsolete.
14987         * config/a29k/a29k.mt: Obsolete.
14988         * config/a29k/tm-a29k.h: Obsolete.
14989         * config/a29k/tm-vx29k.h: Obsolete.
14990         * config/a29k/vx29k.mt: Obsolete.
14991
14992 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14993
14994         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14995         with BFD_ENDIAN_BIG.
14996
14997 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
14998
14999         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15000         * configure, config.in: Re-generate.
15001         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15002         * defs.h: Do not include <endian.h>.
15003
15004 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15005
15006         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15007         * config.in: Regenerate.
15008         * configure.in: Update copyright years.
15009         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15010         * configure: Regenerate.
15011         * i386bsd-nat.c: Update copyright years.
15012         (fill_gregset): Use regcache_collect.
15013         (fetch_inferior_registers): Only fetch integer registers
15014         if requested to do so.  Add support for XMM registers
15015         using PT_GETXMMREGS.
15016         (store_inferior_registers): Only store integer registers
15017         if requested to do so.  Add support for XMM registers
15018         using PT_SETXMMREGS.
15019         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15020         (store_inferior_registers): Remove.
15021         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15022         (fetch_elfcore_registers): New function.
15023         (i386nbsd_elfcore_fns): New.
15024         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15025         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15026         i386bsd-nat.o.
15027         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15028         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15029         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15030         * config/i386/tm-nbsd.h: Update copyright years.
15031         (HAVE_SSE_REGS): Define.
15032         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15033         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15034         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15035         (SIGCONTEXT_PC_OFFSET): Remove.
15036         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15037
15038 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15039
15040         * configure.tgt: Remove powerpc-*-macos* target.
15041         * config/m68k/xm-mpw.h: Delete file.
15042         * config/xm-mpw.h: Delete file.
15043         * ser-mac.c: Delete file.
15044         * mpw-make.sed: Delete file.
15045         * mpw-config.in: Delete file.
15046         * mac-xdep.c: Delete file.
15047         * mac-gdb.r: Delete file.
15048         * mac-defs.h: Delete file.
15049         * mac-nat.c: Delete file.
15050         * config/powerpc/macos.mh: Delete file.
15051         * config/powerpc/macos.mt: Delete file.
15052         * config/powerpc/nm-macos.h: Delete file.
15053         * config/powerpc/tm-macos.h: Delete file.
15054         * source.c (openp, open_source_file): Remove obsolete code.
15055         * top.c (gdb_readline): Ditto.
15056         * utils.c (query): Ditto.
15057         * event-top.c (display_gdb_prompt): Ditto.
15058         * Makefile.in (ser-mac.o): Delete obsolete target.
15059         * NEWS: Update.
15060
15061 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15062
15063         * defs.h (BIG_ENDIAN): Delete macro definition.
15064         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15065         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15066         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15067         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15068         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15069         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15070         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15071         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15072         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15073         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15074         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15075         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15076         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15077         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15078         * gdbarch.c: Re-generate.
15079
15080 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15081
15082         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15083         for core files.
15084
15085 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15086
15087         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15088
15089 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15090
15091         * value.h (value_ptr): Delete typedef.
15092
15093 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15094
15095         * i386nbsd-nat.c: Update copyright years.
15096         Include i386-tdep.h.
15097
15098 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15099
15100         * stabsread.c: Update copyright years.
15101
15102         From Debashis Mahata <debashis.mahata@wipro.com>:
15103         (read_struct_fields): Deal with Sun C compiler erroneous stab
15104         output for structs and unions.
15105         Fix PR gdb/269.
15106
15107 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15108
15109         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15110         prototype.
15111
15112 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15113
15114         * cp-abi.c: Fix whitespace.
15115         (baseclass_offset): New wrapper function.
15116         * cp-abi.h (baseclass_offset): Add prototype.
15117         (struct cp_abi_ops): Add baseclass_offset pointer.
15118
15119         * valops.c (vb_match): Move to...
15120         * gnu-v2-abi.c (vb_match): here.
15121         * valops.c (baseclass_offset): Move to...
15122         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15123
15124         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15125
15126         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15127         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15128         * hpacc-abi.c (init_hpacc_ops): Likewise.
15129
15130 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15131
15132         * valops.c (find_overload_match): Accept obj as a
15133         reference parameter.  Update it before returning.
15134         * value.h (find_overload_match): Update prototype.
15135         * eval.c (evaluate_subexp_standard): Pass object to
15136         find_overload_match by reference.
15137
15138 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15139
15140         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15141         register attribute from value declarations.
15142         * valops.c: Ditto.
15143         * value.h: Ditto.
15144         * scm-lang.c (scm_lookup_name): Ditto.
15145
15146 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15147
15148         Abstract the functionality of iterating over mapped memory
15149         regions into a general purpose iterator function.
15150         * procfs.c (iterate_over_mappings): New function, general purpose
15151         iterator for memory sections.
15152         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15153         (solib_mappings_callback): New function, callback for above.
15154         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15155         (info_mappings_callback): New function, callback for above.
15156
15157         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15158
15159 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15160
15161         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15162         * i386-tdep.c: Include "elf-bfd.h".
15163         (process_note_abi_tag_sections): New function.
15164         (i386_gdbarch_init): Add code to recognize various OS/ABI
15165         combinations.
15166
15167         * maint.c (_initialize_maint_cmds): Add missing \ in
15168         string-literal.
15169
15170 For older changes see ChangeLog-2001
15171 \f
15172 Local Variables:
15173 mode: change-log
15174 left-margin: 8
15175 fill-column: 74
15176 version-control: never
15177 End: