* configure.in: Remove code dealing with shared libraries.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
2
3         * configure.in: Remove code dealing with shared libraries.
4         * Makefile.in: Remove HLDFLAGS and HLDENV.
5         * configure: Regenerated.
6
7 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
8
9         * frame.c (deprecated_frame_xmalloc): New function.
10         (deprecated_set_frame_saved_regs_hack): New function.
11         (deprecated_set_frame_extra_info_hack): New function.
12         * frame.h (deprecated_frame_xmalloc): Declare.
13         (deprecated_set_frame_saved_regs_hack): Declare.
14         (deprecated_set_frame_extra_info_hack): Declare.
15
16 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
17
18         * configure.in: Move code that provides the --enable-gdbtk option
19         right after the code that handles the --enable-tui option, and
20         polish it somewhat.
21         * configure: Regenerated.
22
23         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
24         AC_CHECK_FUNCS and remove the old check for pread64.
25         * acinclude.m4 (AC_GNU_SOURCE): New macro.
26         * acconfig.h (_GNU_SOURCE): Add.
27         (HAVE_PREAD64): Remove.
28         * configure, aclocal.m4, config.in: Regenerated.
29
30 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
31
32         * alpha-tdep.c: Use get_frame_saved_regs.
33         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
34         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
35         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
36         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
37         * vax-tdep.c, xstormy16-tdep.c: Ditto.
38
39 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
40
41         * configure.in: Remove all use of the SUBDIRS variable; add
42         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
43         code providing the --enable-multi-ice option, and move it right in
44         front of the code that checks whether gdbserver is supported.
45         Polish that too.
46         * configure: Regenerated.
47         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
48         @SUBDIRS@.
49
50 2003-01-03  Andrew Cagney  <cagney@redhat.com>
51
52         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
53         * avr-tdep.c, cris-tdep.c: Ditto.
54         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
55         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
56         
57 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
58
59         * configure.in: Remove --enable-netrom option.
60         * configure: Regenerated.
61
62 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
63
64         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
65         declaration for `struct re_pattern_buffer' instead.
66         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
67
68 2003-01-03  J. Brobecker  <brobecker@gnat.com>
69
70         * mdebugread.c (parse_symbol): Count until the stEnd matching
71         the structure name.
72
73 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
74
75         * configure.in: Remove --with-cpu option.
76         subscripts.  Remove evil changequotes here.
77         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
78         * config.in, configure: Regenerated.
79         
80         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
81         * configure.in: Cleanup section that sources GDB and BFD configure
82         subscripts.  Remove evil changequotes here.
83         * config.in, configure: Regenerated.
84
85 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
86
87         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
88         frame accessor methods.
89         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
90         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
91         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
92         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
93         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
94         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
95         * z8k-tdep.c: Ditto.
96         
97 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
98
99         * configure.in: Remove UI_OUT configuration code.
100         * ada-lang.c: Update assuming UI_OUT is always true.
101         * Makefile.in (UIOUT_CFLAGS): Remove.
102         * configure: Regenerated.
103         * TODO: Remove blurb about elimination of -DUI_OUT.
104
105         * configure.in: Move code that provides the --enable-gdbcli,
106         --enable-gdbmi options right before the code that handles the
107         --enable-tui option.  Polish a bit.
108         * configure: Regenerated.
109
110         * configure.in: Rewrite check for GNU regex and the
111         --without-included regex option, and move it into the "Checks for
112         library functions" section.  This makes us use the system regex
113         again by default on systems with version 2 of the GNU C library.
114         This was apparently broken.
115         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
116         * acconfig.h (USE_INCLUDED_REGEX): Remove.
117         * config.in, configure: Regenerated.
118
119         * configure.in: Move code that provides the --enable-tui option
120         before the "Checks for libraries" section.  Polish the code
121         somewhat and set need_curses to yes if we build the TUI.  Rewrite
122         code that looks for a library providing termcap functionality to
123         match more closely what's done in the Readline library, and move
124         it into to the "Checks for libraries" section.
125         * configure: Regenerated.
126         * Makefile.in (TERMCAP): Remove variable.
127         * config/i386/go32.mh (TERMCAP): Remove variable.
128
129 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
130
131         * MAINTAINERS: Mention gdb_mbuild.sh.
132         * gdb_mbuild.sh: Rewrite.
133
134 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
135
136         * configure.in: Fix typo in last change.
137         * config.in, configure: Regenerated.
138
139 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
140
141         * valarith.c (value_binop): Delete obsolete code and comments.
142         * configure.host: Ditto.
143         * buildsym.h (make_blockvector): Ditto.
144         * buildsym.c (make_blockvector): Ditto.
145         * defs.h (enum language): Ditto.
146         (chill_demangle): Ditto.
147         * elfread.c (elf_symtab_read): Ditto.
148         * dwarfread.c (CHILL_PRODUCER): Ditto.
149         (set_cu_language): Ditto.
150         (handle_producer): Ditto.
151         * expprint.c (print_subexp): Ditto.
152         * gdbtypes.c (chill_varying_type): Ditto.
153         * gdbtypes.h (builtin_type_chill_bool): Ditto.
154         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
155         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
156         (chill_varying_type): Ditto.
157         * language.h (_LANG_chill): Ditto.
158         * language.c (binop_result_type, integral_type): Ditto.
159         (character_type, string_type, structured_type): Ditto.
160         (lang_bool_type, binop_type_check): Ditto.
161         * stabsread.h (os9k_stabs): Ditto.
162         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
163         (define_symbol, read_type, read_struct_fields): Ditto.
164         (read_array_type, read_enum_type, read_huge_number): Ditto.
165         (read_range_type, start_stabs): Ditto.
166         * symfile.c (init_filename_language_table): Ditto.
167         (add_psymbol_with_dem_name_to_list): Ditto.
168         * symtab.c (symbol_init_language_specific): Ditto.
169         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
170         * symtab.h (struct general_symbol_info): Ditto.
171         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
172         * typeprint.c (typedef_print): Ditto.
173         * utils.c (fprintf_symbol_filtered): Ditto.
174         * valops.c (value_cast, search_struct_field, value_slice): Delete
175         obsolete code.
176         (varying_to_slice): Delete function.
177         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
178         (varying_to_slice): Delete declaration.
179         * MAINTAINERS: Update.
180
181 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
182
183         * configure.in: Reorganize "Checks for library functions section"
184         a bit.  Remove check for `btowc' and `isascii' functions.
185         * configure: Regenerated.
186
187         * acconfig.h (_MSE_INT_H): Remove.
188         * configure.in: Create "Checks for header files" section, and move
189         appropriate tests there.  Don't check for objlist.h, wchar.h,
190         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
191         misdetection fix.  Also add "Checks for types", "Checks for
192         compiler characteristics" and "Checks for library functions"
193         sections.
194         * config.in, configure: Regenerated.
195
196         * configure.in: Create "Checks for programs" section, and move
197         appropriate tests there.
198
199 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
200
201         * configure.in: Create "Checks for libraries" section, and move
202         appropriate tests there.  Cleanup check for wctype in libw.  Use
203         AC_SEARCH_LIBS to see whether we need libsocket.
204         * configure: Regenerated.
205
206 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
207
208         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
209         * config.in, configure: Regenerated.
210
211 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
212
213         * gdb_dirent.h: Cleanup and update code to match the example in
214         the Autoconf manual.
215         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
216         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
217         * configure: Regenerated.
218
219 2002-12-30  Adam Fedor  <fedor@gnu.org>
220
221         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
222         (yylex): Initialize c to avoid uninitialized warning.
223
224 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
225
226         * doc/fdl.texi: Revert the last change.
227
228 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
229
230         * tracepoint.c (ISATTY): Removed.
231
232 2002-12-26  J. Brobecker  <brobecker@gnat.com>
233
234         Continuing work to convert the hppa targets to multiarch partil.
235
236         * hppa-tdep.c: Add some missing forward declarations.
237         (frameless_function_invocation): Prefix the function name
238         by "hppa_" to avoid polluting the namespace.  Update all calls
239         to use the new function name.
240         (saved_pc_after_call): Ditto.
241         (init_extra_frame_info): Ditto.
242         (frame_chain): Ditto.
243         (push_dummy_frame): Ditto.
244         (target_read_pc): Ditto.
245         (target_write_pc): Ditto.
246         (in_solib_call_trampoline): Ditto.
247         (in_solib_return_trampoline): Ditto.
248         (skip_trampoline_code): Ditto.
249         (hppa_read_fp): New function, renamed from target_read_fp.
250         (hppa_target_read_fp): New function, using hppa_read_fp.
251         This function conforms to the function profile for the
252         READ_FP gdbarch method.
253         (hppa_extract_struct_value_address): New function, extracted
254         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
255         macro.
256         (hppa_frame_num_args): New function.
257         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
258
259         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
260         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
261         for the switch to multiarch partial.
262         Update some of the macros definitions to match some changes
263         described above in the name of the function they are calling.
264         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
265         not be straightforward to convert. Do now wrap it inside
266         "#if !... #endif" to remember that this macro has still not
267         been taken care of.
268         (FIX_CALL_DUMMY): Likewise.
269
270 2002-12-26  J. Brobecker  <brobecker@gnat.com>
271
272         Continuing work to convert the hppa targets to multiarch partial.
273
274         * hppa-tdep.c (hppa_register_raw_size): New function replacing
275         the body of macro REGISTER_RAW_SIZE.
276         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
277         config/pa/tm-hppah.h. These functions will be used to initialize
278         the gdbarch structure.
279         (hppa_hpux_pc_in_sigtramp): New function.
280         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
281         (hppa_hpux_frame_base_before_sigtramp): New function.
282         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
283         Add gdbcore.h #include.
284         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
285         of this gdbarch-eligible macro to a call to the new associated
286         function.
287         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
288         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
289         into a call to the new associated function.
290         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
291         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
292         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
293
294 2002-12-24  David Carlton  <carlton@math.stanford.edu>
295
296         * config/sparc/tm-sparc.h: Delete duplicate definition of
297         DEPRECATED_PC_IN_CALL_DUMMY.
298
299 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
300
301         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
302         $(gdb_assert_h).
303         * configure.tgt: Recognize mips64*-*-linux*.
304         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
305         (supply_32_bit_reg): New function.
306         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
307         (fill_gregset): Use regcache_collect() instead of
308         deprecated_registers[].
309         (register_addr): Change name to mips_linux_register_addr().
310         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
311         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
312         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
313         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
314         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
315         (MIPS64_LINUX_JB_PC): New defines.
316         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
317         (mips64_elf_fpregset_t): New typedefs.
318         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
319         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
320         (mips64_linux_register_addr, set_mips_linux_register_addr)
321         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
322         (init_register_addr_data)
323         New functions.
324         (fetch_core_registers): Add support for core file formats with 64-bit
325         registers.
326         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
327         (register_addr_data): New static global variable.
328         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
329         gdbarch_register_osabi() for each MIPS machine.
330         * config/mips/linux64.mt: New file.
331         * config/mips/tm-linux64.h: New file.
332
333 2002-12-23  Adam Fedor  <fedor@gnu.org>
334
335         * maint.c (maintenance_demangle): Add switch to demangle
336         ObjC language symbols as well.
337
338 2002-12-23  Adam Fedor  <fedor@gnu.org>
339
340         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
341         last argument from complaint function call.
342
343 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
344
345         * exec.c (print_section_info): Add FIXME comments regarding format
346         string choices.
347
348 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
349
350         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
351         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
352
353 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
354
355         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
356
357 2002-12-23  David Carlton  <carlton@math.stanford.edu>
358
359         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
360         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
361         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
362         information associated to a minsym, not lookup_symbol.
363
364 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
365
366         * x86-64-tdep.h (x86_64_init_abi): New prototype.
367         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
368         (x86_64_init_abi): Make non-static.  Set number of pseudo
369         registers to 0.
370         (x86_64_gdbarch_init): Remove function.
371         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
372         Remove code dealing with dissambly.
373         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
374         (_initialize_x86_64_linux_tdep): New function.
375         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
376         i386-tdep.o.
377
378 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
379
380         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
381         (struct gdb_osabi_handler): Remove member `arch'.  Add member
382         `arch_info'.
383         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
384         construct a `struct bfd_arch_info' and store it in the `struct
385         gdb_osabi_handler' that is created.
386         (gdbarch_init_osabi): Check for compatibility based on machine
387         type and architecture.
388         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
389         comment.
390         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
391         second argument in call to gdbarch_register_osabi.
392         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
393         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
394         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
395         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
396         * arm-tdep.c (_initialize_arm_tdep): Likewise.
397         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
398         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
399         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
400         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
401         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
402         * i386-tdep.c (_initialize_i386_tdep): Likewise.
403         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
404         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
405         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
406         _initialize_i386bsd_tdep and updated likewise.
407         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
408         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
409         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
410         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
411         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
412         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
413         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
414         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
415         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
416         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
417
418 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
419
420         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
421         DT_MIPS_RLD_MAP case for 64-bit targets.
422
423 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
424
425         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
426         ``temp_saved_regs'', not the pointer or other storage contiguous
427         to this pointer.
428
429 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
430
431         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
432         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
433         (mips_linux_get_longjmp_target): Delete declarations.
434         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
435         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
436         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
437         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
438         (mips_linux_get_longjmp_target)
439         (mips_linux_svr4_fetch_link_map_offsets): Make static.
440         (mips_linux_init_abi): New function.
441         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
442
443 2002-12-19  Keith Seitz  <keiths@redhat.com>
444
445         patch committed by Elena Zannoni  <ezannoni@redhat.com>
446         * thread.c (do_captured_list_thread_ids): Call prune_threads and
447         target_find_new_threads. Fix for PR mi/669.
448
449 2002-12-19  David Carlton  <carlton@math.stanford.edu>
450
451         * linespec.c (decode_line_1): Move code into decode_all_digits.
452         (decode_all_digits): New function.
453
454 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
455
456         * exec.c (print_section_info): Select a format string to use with
457         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
458
459 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
460
461         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
462         deprecated_update_current_frame_pc_hack.
463         (deprecated_update_frame_base_hack): New function.
464         * frame.h (deprecated_update_frame_pc_hack): Replace
465         (deprecated_update_frame_base_hack): Declare.
466         * infrun.c (normal_stop): Update.
467
468 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
469
470         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
471         frame_extra_info_zalloc.
472         (rs6000_frame_args_address): Use get_frame_extra_info.
473         (frame_get_saved_regs): Use get_frame_saved_regs.
474         (frame_initial_stack_address): Use get_frame_saved_regs and
475         get_frame_extra_info.
476         (frame_initial_stack_address): Use get_frame_extra_info.
477
478 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
479
480         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
481         array size.
482         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
483         checks for r3900_regnames[].
484
485 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
486
487         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
488         All uses changed
489         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
490
491 2002-12-17  David Carlton  <carlton@math.stanford.edu>
492
493         * symtab.c (lookup_partial_symbol): Don't search past the end of
494         the partial symbols.
495
496 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
497
498         * stack.c (frame_info): Use get_frame_saved_regs.
499         * breakpoint.c (until_break_command): Use get_frame_pc.
500
501 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
502
503         * buildsym.c (block_end_complaint, anon_block_end_complaint)
504         (innerblock_complaint, innerblock_anon_complaint)
505         (blockvector_complaint): Delete deprecated complaint structs.
506         (finish_block, make_blockvector, end_symtab): Replace calls
507         to complain() with calls to complaint().
508         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
509         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
510         (unexpected_type_complaint, bad_sclass_complaint)
511         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
512         Delete deprecated complaint structs.
513         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
514         Replace calls to complain() with calls to complaint().
515         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
516         (unknown_symtype_complaint, unknown_symchar_complaint)
517         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
518         (lbrac_mismatch_complaint, repeated_header_complaint)
519         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
520         Delete deprecated complaint structs.
521         (unknown_symtype_complaint, lbrac_mismatch_complaint)
522         (repeated_header_complaint)
523         (function_outside_compiliation_unit_complaint): New functions.
524         (add_old_header_file, find_corresponding_bincl_psymtab)
525         (set_namestring, find_stab_function_addr, read_dbx_symtab)
526         (process_one_symbol): Replace calls to complain() with, possibly
527         indirect, calls to complaint().
528         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
529         (unknown_attribute_form, unknown_attribute_length)
530         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
531         (const_ignored, botched_modified_type, op_deref2, op_deref4)
532         (basereg_not_handled, dup_user_type_allocation)
533         (dup_user_type_definition, missing_tag, bad_array_element_type)
534         (subscript_data_items, unhandled_array_subscript_format)
535         (unknown_array_subscript_format, not_row_major)
536         (missing_at_name): Delete deprecated complaint structs.
537         (bad_die_ref_complaint, unknown_attribute_form_complaint)
538         (dup_user_type_definition_complaint)
539         (bad_array_element_type_complaint): New functions.
540         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
541         (decode_subscript_data_item, dwarf_read_array_type)
542         (read_tag_string_type, read_subroutine_type, read_func_scope)
543         (locval, scan_partial_symbols, decode_modified_type)
544         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
545         (attribute_size): Replace calls to complain() with, possibly
546         indirect, calls to complaint().
547         * elfread.c (section_info_complaint, section_info_dup_complaint)
548         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
549         Delete deprecated complaint structs.
550         (elf_symtab_read, elfstab_offset_sections): Replace calls to
551         complain() with calls to complaint().
552         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
553         struct.
554         (stub_noname_complaint): New function.
555         (check_typedef, add_mangled_type): Replace calls to complain()
556         with calls to complaint().
557         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
558         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
559         (hpread_unhandled_type_complaint, hpread_struct_complaint)
560         (hpread_array_complaint, hpread_type_lookup_complaint)
561         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
562         (hpread_unhandled_common_complaint)
563         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
564         struct definitions and declarations.
565         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
566         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
567         Replace calls to complain() with, possibly indirect, calls to
568         complaint().
569         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
570         Likewise.
571         * mdebugread.c (bad_file_number_complaint, index_complaint)
572         (aux_index_complaint, block_index_complaint)
573         (unknown_ext_complaint, unknown_sym_complaint)
574         (unknown_st_complaint, block_overflow_complaint)
575         (basic_type_complaint, unknown_type_qual_complaint)
576         (array_index_type_complaint, bad_tag_guess_complaint)
577         (block_member_complaint, stEnd_complaint)
578         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
579         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
580         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
581         (bad_continued_complaint, bad_rfd_entry_complaint)
582         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
583         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
584         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
585         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
586         complaint structs.
587         (index_complaint, unknown_ext_complaint, basic_type_complaint)
588         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
589         (unexpected_type_code_complaint)
590         (function_outside_compilation_unit_complaint): New functions.
591         (parse_symbol, parse_type, upgrade_type, parse_procedure)
592         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
593         Replace calls to complain() with, possibly indirect calls to
594         complaint().
595         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
596         Delete deprecated complaint structs.
597         (lookup__objc_class, lookup_child_selector): Replace complain()
598         with complaint().
599         * remote-vx.c (cant_contact_target): Delete deprecated complaint
600         struct.
601         (vx_lookup_symbol): Replace complain() with complaint().
602         * stabsread.c (invalid_cpp_abbrev_complaint)
603         (invalid_cpp_type_complaint, member_fn_complaint)
604         (const_vol_complaint, error_type_complaint)
605         (invalid_member_complaint, range_type_base_complaint)
606         (reg_value_complaint, vtbl_notfound_complaint)
607         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
608         (unresolved_sym_chain_complaint, stabs_general_complaint)
609         (lrs_general_complaint, multiply_defined_struct): Delete
610         deprecated complaint structs.
611         (invalid_cpp_abbrev_complaint, ref_value_complaint)
612         (stabs_general_complaint, lrs_general_complaint)
613         (msg_unknown_complaint): New functions.
614         (dbx_lookup_type, read_cfront_baseclasses)
615         (read_cfront_member_functions, resolve_symbol_reference)
616         (define_symbol, resolve_live_range, add_live_range, read_type)
617         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
618         (read_one_struct_field, read_baseclasses, read_tilde_fields)
619         (read_cfront_static_fields, attach_fields_to_type)
620         (complain_about_struct_wipeout, read_range_type)
621         (common_block_start, common_block_end, cleanup_undefined_types)
622         (scan_file_globals): Replace complain() with complaint().
623         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
624         Delete deprecated complaint struct declarations.
625         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
626         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
627         (bf_not_found_complaint, ef_complaint, eb_complaint)
628         (function_outside_compilation_unit_complaint): New functions.
629         (record_include_begin, record_include_end, enter_line_range)
630         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
631         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
632         complain() with complaint().
633
634 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
635
636         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
637         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
638         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
639         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
640         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
641         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
642         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
643         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
644         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
645         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
646         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
647         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
648         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
649         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
650         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
651         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
652         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
653         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
654         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
655         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
656         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
657         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
658         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
659         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
660         * config/m88k/xm-dgux.h: Delete.
661         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
662         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
663         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
664         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
665         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
666         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
667         * ch-valprint.c: Delete.
668         
669 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
670
671         * infrun.c (handle_inferior_event): Rearrange code to resume if
672         no catchpoint triggers for an event.
673
674 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
675
676         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
677         and TARGET_WAITKIND_VFORKED cases.
678
679 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
680
681         * infrun.c (handle_inferior_event): Assume that catchpoints
682         are not affected by DECR_PC_AFTER_BREAK.
683
684 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
685
686         * target.c (update_current_target): Don't inherit DONT_USE.
687         * target.h (struct target_ops): Remove DONT_USE.
688         (target_next): Remove macro.
689
690 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
691
692         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
693
694 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
695
696         * arm-tdep.c (convert_from_extended): New argument to hold the
697         type of floating point result we want to convert to.  Make input 
698         argument const.  Fix all callers.
699         (convert_to_extended): Similarly.
700         (arm_extract_return_value): Now takes a regcache argument.  Change
701         code to use regcache accessor functions.  Correctly extract 
702         smaller-than-word results on big-endian machines.
703         (arm_store_return_value): Now takes a regcache argument.  Change
704         code to use regcache accessor functions.  Correctly zero/sign extend
705         smaller than word results before storing into r0.
706         (arm_gdbarch_init): Register new-style extract_return_value and
707         store_return_value functions.
708
709 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
710
711         * thread-db.c (thread_from_lwp): Uniquify error msg.
712         (lwp_from_thread): Ditto.
713         (check_event): Ditto.
714         (find_new_threads_callback): Ditto.
715         (thread_db_pid_to_str): Ditto.
716
717 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
718
719         * frame.h (get_frame_saved_regs): Declare.
720         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
721         pointer.
722         * frame.c (get_frame_saved_regs): New function.
723         (frame_saved_regs_zalloc): Return the allocated saved_regs.
724
725 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
726
727         * frame.c (deprecated_update_current_frame_pc_hack): New
728         function.
729         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
730         * infrun.c (normal_stop): Use said function instead of directly
731         modifying the frame's PC.
732         
733 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
734
735         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
736
737 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
738
739         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
740         config/mips/tm-irix6.h (NUM_REGS): Delete.
741         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
742         (temp_saved_regs): Declare as a pointer rather than an array.
743         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
744         that ``temp_saved_regs'' has storage allocated to it and that
745         it's the correct size.
746
747 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
748
749         * defs.h (init_last_source_visited): New prototype.
750         (add_path): Ditto.
751         * source.c (add_path): New function that adds to a specified path.
752         (mod_path): Change to call add_path.
753         (init_last_source_visited): New function to allow interfaces to
754         initialize static variable: last_source_visited.  Part of fix
755         for PR gdb/741.
756         * Makefile.in: Add support for mi/mi-cmd-env.c.
757
758 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
759
760         * frame.h (frame_id_unwind): Declare.
761         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
762         id_unwind_cache.
763         (frame_id_unwind_ftype): Declare.
764         * frame.c (frame_id_unwind): New function.
765         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
766         (create_new_frame, get_prev_frame): Pass id_unwind to
767         set_unwind_by_pc.
768         (frame_saved_regs_id_unwind): New function.
769         (frame_saved_regs_id_unwind): New function.
770         * dummy-frame.c (dummy_frame_id_unwind): New function.
771         (struct dummy_frame): Add field id.
772         (generic_push_dummy_frame): Initialize `id'.
773         * dummy-frame.h (dummy_frame_id_unwind): Declare.
774
775 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
776
777         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
778         pass that to set_momentary_breakpoint.  Move comments to where they
779         belong.
780         * frame.h (set_current_frame): Delete declaration.
781         * frame.c (set_current_frame): Delete function.
782
783 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
784
785         * frame.c (frame_extra_info_zalloc): New function.
786         * frame.h (frame_extra_info_zalloc): Declare.
787
788 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
789
790         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
791         in the previous prototype change to set_momentary_breakpoint.
792
793 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
794
795         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
796         and saw_child_exec.
797         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
798         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
799         (stop_stepping): Remove outdated check for child vfork events.
800
801 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
802
803         * GDB 5.3 released from gdb_5_3-branch.
804
805 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
806
807         * corelow.c (init_core_ops): Delete references to to_require_attach
808         and to_require_detach.
809         * exec.c (init_exec_ops): Likewise.
810         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
811         hppa_require_detach directly.
812         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
813         * inftarg.c (child_detach): Remove.
814         (child_detach_from_process): Rename to child_detach, remove
815         after_fork argument.
816         (child_attach): Remove.
817         (child_attach_to_process): Rename to child_attach, remove after_fork
818         argument.
819         (init_child_ops): Delete references to to_require_attach
820         and to_require_detach.
821         * infttrace.c (hppa_require_attach): Update comment.
822         * target.c (cleanup_target, update_current_target)
823         (init_dummy_target, setup_target_debug): Delete references to
824         to_require_attach and to_require_detach.
825         (find_default_require_detach, find_default_require_attach)
826         (debug_to_require_attach, debug_to_require_detach): Remove
827         functions.
828         * target.h (struct target_ops): Remove to_require_attach
829         and to_require_detach.
830         (target_require_attach, target_require_detach): Delete macros.
831         (find_default_require_detach, find_default_require_attach): Delete
832         prototypes.
833         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
834
835 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
836
837         * frame.c (get_frame_extra_info): New function.
838         * frame.h (get_frame_extra_info): Declare.
839
840 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
841
842         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
843         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
844         with `struct frame_id'.
845         (set_longjmp_resume_breakpoint): Ditto.
846         * infrun.c (handle_inferior_event): Update.
847         * breakpoint.c (watch_command_1, until_break_command): Update.
848         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
849         (handle_inferior_event, step_over_function): Update.
850         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
851         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
852         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
853         * infcmd.c (finish_command, run_stack_dummy): Update.
854
855 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
856
857         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
858         (dwarf2_non_const_array_bound_ignored)
859         (dwarf2_missing_line_number_section)
860         (dwarf2_statement_list_fits_in_line_number_section)
861         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
862         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
863         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
864         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
865         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
866         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
867         (dwarf2_missing_member_fn_type_complaint)
868         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
869         (dwarf2_const_value_length_mismatch)
870         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
871         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
872         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
873         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
874         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
875         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
876         complaints using deprecated struct..
877         (dwarf2_non_const_array_bound_ignored_complaint)
878         (dwarf2_complex_location_expr_complaint)
879         (dwarf2_unsupported_at_frame_base_complaint)
880         (dwarf2_const_value_length_mismatch_complaint)
881         (dwarf2_macros_too_long_complaint)
882         (dwarf2_macro_malformed_definition_complaint)
883         (dwarf2_invalid_attrib_class_complaint): New functions.
884         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
885         (read_structure_scope, read_array_type, read_common_block)
886         (read_tag_pointer_type, read_base_type, read_partial_die)
887         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
888         (new_symbol, dwarf2_const_value, read_type_die)
889         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
890         (parse_macro_definition, dwarf_decode_macros): Replace calls to
891         complain() with, possibly indirect, calls to complaint().
892
893 2002-12-11  Andrew Cagney  <cagney@redhat.com>
894
895         * frame.c (deprecated_get_frame_saved_regs): Rename
896         get_frame_saved_regs.
897         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
898         * sparc-tdep.c: Update.
899         * hppa-tdep.c: Update.
900         * h8500-tdep.c: Update.
901
902 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
903
904         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
905         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
906         ``char *'' for return and parameter types.
907         * gdbarch.h, gdbarch.c: Regenerate.
908         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
909         return type from ``char *'' to ``const char *''.
910         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
911         const.
912
913 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
914
915         * i386-tdep.c: Include "dummy-frame.h".
916         (i386_frame_chain, i386_frame_saved_pc): Replace
917         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
918         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
919
920 2002-12-10  Andrew Cagney  <cagney@redhat.com>
921
922         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
923         Change to a function with predicate.
924         * gdbarch.h, gdbarch.c: Re-generate.
925         * frame.c (get_prev_frame): Update.  Test
926         DEPRECATED_INIT_FRAME_PC_P.
927         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
928         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
929         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
930         * alpha-tdep.c (alpha_gdbarch_init): Update.
931         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
932         * mips-tdep.c (mips_gdbarch_init): Update.
933         * i386-interix-tdep.c (i386_interix_init_abi): Update.
934         * arm-tdep.c: Update comments.
935         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
936         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
937         * frv-tdep.c (frv_gdbarch_init): Ditto.
938         * x86-64-tdep.c (x86_64_init_abi): Ditto.
939         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
940         * s390-tdep.c (s390_gdbarch_init): Ditto.
941         * v850-tdep.c (v850_gdbarch_init): Ditto.
942         * vax-tdep.c (vax_gdbarch_init): Ditto.
943         * sh-tdep.c (sh_gdbarch_init): Ditto.
944         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
945         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
946         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
947         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
948         * i386-tdep.c (i386_gdbarch_init): Ditto.
949         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
950         * cris-tdep.c (cris_gdbarch_init): Ditto.
951         * avr-tdep.c (avr_gdbarch_init): Ditto.
952         * arm-tdep.c (arm_gdbarch_init): Ditto.
953         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
954         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
955
956 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
957
958         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
959         CHILD_FOLLOW_FORK.
960         * hppah-nat.c (saved_vfork_pid): Add.
961         (child_post_follow_vfork): Remove.
962         (child_follow_fork): New function.
963         (child_wait): Call detach_breakpoints after receiving the child vfork.
964         Call child_resume directly instead of going through resume ().
965         Make sure we have the exec before reporting the vfork.
966         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
967         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
968         (follow_fork): New function.  Call target_follow_fork.
969         (follow_inferior_reset_breakpoints): New function broken out from
970         old follow_inferior_fork.
971         (resume): Remove hack to follow exec after vfork.
972         * inftarg.c (child_post_follow_vfork): Remove.
973         (child_follow_fork): New function.
974         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
975         * target.c (cleanup_target): Replace to_post_follow_vfork with
976         to_follow_fork.
977         (update_current_target): Likewise.
978         (setup_target_debug): Likewise.
979         (debug_to_post_follow_vfork): Remove.
980         (debug_to_follow_fork): New function.
981         * target.h (struct target_ops): Replace to_post_folow_vfork with
982         to_follow_fork.
983         (child_post_follow_vfork): Remove prototype.
984         (child_follow_fork): Add prototype.
985         (target_post_follow_vfork): Remove macro.
986         (target_follow_fork): Add macro.
987
988 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
989
990         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
991         (child_post_follow_vfork): Cancel pending exec event if we follow
992         the parent.
993         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
994         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
995         event at the following wait call if necessary.
996         * infrun.c (follow_vfork): Don't follow_exec here.
997         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
998         case about HP/UX 10.20.  Remove code pushed down to
999         hppah-nat.c:child_wait.
1000         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1001         vfork_in_flight is set.
1002
1003 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1004
1005         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1006         for the parent's fork event.
1007         * infrun.c (handle_inferior_event): Only expect one fork event.
1008         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1009         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1010
1011 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1012
1013         * PROBLEMS: Delete reference to PR gdb/725.
1014         
1015         * MAINTAINERS (gdb.c++): Add David Carlton.
1016
1017 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1018
1019         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1020         * cli/cli-cmds.c: Ditto.
1021
1022 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1023
1024         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1025         function address in <>.
1026         * gdbarch.c: Re-generate.
1027
1028 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1029
1030         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1031
1032 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1033
1034         * linespec.c (symtab_from_filename): New function.
1035         (decode_line_1): Move code into symtab_from_filename.
1036
1037 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1038
1039         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1040
1041 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1042
1043         * f-valprint.c (info_common_command): Use get_frame_pc.
1044         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1045         * ax-gdb.c (agent_command): Ditto.
1046         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1047         (rs6000_pop_frame): Ditto.
1048         (rs6000_frameless_function_invocation): Ditto.
1049         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1050         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1051         * macroscope.c (default_macro_scope): Ditto.
1052         * stack.c (print_frame_info_base): Ditto.
1053         (print_frame, frame_info, print_frame_label_vars): Ditto.
1054         (return_command, func_command, get_frame_language): Ditto.
1055         * infcmd.c (finish_command): Ditto.
1056         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1057         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1058         (break_at_finish_at_depth_command_1): Ditto.
1059         (break_at_finish_command_1): Ditto.
1060         (until_break_command, get_catch_sals): Ditto.
1061         * blockframe.c (func_frame_chain_valid): Ditto.
1062         (frameless_look_for_prologue): Ditto.
1063         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1064
1065 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1066
1067         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1068         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1069
1070 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1071
1072         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1073         to pure functions.
1074         * gdbarch.h, gdbarch.c: Re-generate.
1075         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1076         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1077
1078         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1079         declaration to a function returning a CORE_ADDR.
1080         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1081         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1082         (init_frame_pc_default): Ditto.
1083         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1084         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1085         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1086         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1087         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1088         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1089
1090         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1091         to init_frame_pc_noop.
1092         (i386_interix_init_frame_pc): Delete function.
1093         * z8k-tdep.c (init_frame_pc): Delete function.
1094         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1095         (INIT_FRAME_PC_FIRST): Ditto.
1096         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1097         (INIT_FRAME_PC_FIRST): Ditto.
1098         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1099         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1100         init_frame_pc_noop.
1101         (INIT_FRAME_PC_FIRST): Convert to an expression.
1102         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1103
1104 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1105
1106         * blockframe.c: Use get_frame_base instead of directly accessing
1107         the `struct frame_info' member frame.
1108         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1109         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1110
1111 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1112
1113         * Makefile.in (readline_h): Define.
1114         (completer.o): Depend on readline_h.
1115         (corelow.o): Ditto.
1116         (event-top.o): Ditto.
1117         (exec.o): Ditto.
1118         (solib.o): Ditto.
1119         (source.o): Ditto. 
1120         (symfile.o): Ditto. 
1121         (symmisc.o): Ditto. 
1122         (top.o): Ditto.
1123         (tracepoint.o): Ditto. 
1124         (utils.o): Ditto.
1125         (cli-dump.o): Ditto.
1126         (tui-hooks.o): Ditto. 
1127         (tuiWin.o): Ditto. 
1128
1129 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1130
1131         More cleanup from import of readline 4.3.
1132         * completer.h (complete_line, readline_line_completion_function):
1133         Update prototypes.
1134         (line_completion_function): Removed, not used outside of completer.c.
1135         * completer.c (readline_line_completion_function,
1136         complete_function, line_completion_function): Use const for first
1137         parameter.
1138         (line_completion_function): Make static.
1139         (filename_completer): filename_completion_function is now called
1140         rl_filename_completion_function
1141         * corelow.c: Include <readline/readline.h>.
1142         * exec.c: Ditto.
1143         * solib.c: Ditto.
1144         * source.c: Ditto.
1145         * symfile.c: Ditto.
1146         * symmisc.c: Ditto.
1147         * top.c (init_main): No need to coerce
1148         readline_line_completion_function anymore.
1149         * cli/cli-dump.c: Include <readline/readline.h>.
1150
1151 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1152
1153         * stack.c (frame_info): Use get_prev_frame.
1154         * blockframe.c (frame_address_in_block): Ditto.
1155         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1156         (rs6000_frameless_function_invocation): Ditto.
1157         (rs6000_frame_saved_pc): Ditto.
1158         (rs6000_frame_chain): Ditto.
1159         * arch-utils.c (init_frame_pc_default): Ditto.
1160
1161 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1162
1163         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1164         Delete redundant definition.
1165
1166 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1167
1168         Import of readline 4.3:
1169         * cli/cli-cmds.c: Include readline/tilde.h.
1170         * cli/cli-setshow.c: Ditto.
1171         * defs.h: Don't declare tilde_expand anymore, since readline
1172         exports it.
1173
1174 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1175
1176         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1177         -Werror on this file.
1178
1179 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1180
1181         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1182         the format name.
1183         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1184         * gdbarch.c: Regenerate.
1185         
1186 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1187
1188         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1189         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1190         provide a default value.
1191         * gdbarch.h, gdbarch.c: Regenerate.
1192         * frame.c (get_prev_frame): Update.  Check
1193         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1194         * s390-tdep.c (s390_gdbarch_init): Update.
1195         * mips-tdep.c (mips_gdbarch_init): Update.
1196         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1197         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1198         * alpha-tdep.c (alpha_gdbarch_init): Update.
1199         
1200 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1201
1202         * ia64-linux-nat.c: Include gdb_string.h.
1203         * alpha-nat.c: Ditto.
1204         * ppc-linux-nat.c: Ditto.
1205         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1206         Update dependencies.
1207
1208 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1209
1210         * gdbthread.h: Include "frame.h".
1211         (struct thread_info): Replace step_frame_address with
1212         step_frame_id.
1213         * inferior.h: Include "frame.h".
1214         (step_frame_id): Replace external variable step_frame_address.
1215         * gdbthread.h (save_infrun_state): Replace step_frame_address
1216         parameter with step_frame_id parameter.
1217         (load_infrun_state): Ditto.
1218         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1219         * infcmd.c (step_frame_id, step_1, step_once): Update.
1220         * thread.c (load_infrun_state, save_infrun_state): Update.
1221         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1222         (handle_inferior_event, step_over_function): Update.
1223         (normal_stop, context_switch, restore_inferior_status): Update.
1224         (struct inferior_status): Replace step_frame_address with
1225         step_frame_id.
1226
1227 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1228
1229         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1230         DW_TAG_member as well as a declaration as being a C++ static data
1231         member.
1232         (read_structure_scope): Combine tests for DW_TAG_member and
1233         DW_TAG_variable.
1234
1235 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1236
1237         * linespec.c (decode_compound): New function.
1238         (decode_line_1): Move code into decode_compound.
1239
1240 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1241
1242         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1243         argument.
1244         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1245         the static block.  See PR gdb/804.
1246
1247 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1248
1249         * symtab.c (lookup_symbol_aux_block): New function.
1250         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1251
1252 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1253
1254         * gdbarch.sh: Dump the predicate function and macro values.
1255         (read): Print error on standard error.
1256         * gdbarch.c: Regenerate.
1257         
1258 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1259
1260         * Makefile.in (mips_tdep_h): Define.
1261         (mips-tdep.o): Add mips_tdep_h to dependency list.
1262         * mips-tdep.h: New file.
1263         * mips-tdep.c (mips-tdep.h): Include.
1264         (enum mips_abi): Move to mips-tdep.h.
1265         (mips_abi): New function.
1266
1267 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1268
1269         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1270
1271 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1272
1273         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1274         function.
1275         (lookup_symbol_aux_minsyms): New function.
1276
1277 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1278
1279         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1280
1281 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1282
1283         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1284         which is an obsolete macro name.
1285
1286 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1287
1288         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1289         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1290
1291 2002-12-03  H.J. Lu  (hjl@gnu.org)
1292
1293         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1294         (create_breakpoints): Make sure the addr_string field is not
1295         NULL.
1296
1297 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1298
1299         * sparc-nat.c (fetch_inferior_registers)
1300         (store_inferior_registers): Add comment on problem of LWP vs
1301         threads.
1302         
1303         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1304         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1305         (lin_lwp_store_registers): Remove.
1306         (init_lin_lwp_ops): Use fetch_inferior_registers
1307         and store_inferior_registers directly.
1308         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1309         (store_inferior_registers): Likewise.
1310         Fix PR gdb/725.
1311
1312 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1313
1314         * frame.h (get_frame_id): Convert to a function.
1315         (null_frame_id, frame_id_p): Declare.
1316         (frame_id_eq, frame_id_inner): Declare.
1317         (frame_id_build): New function.
1318         * frame.c (get_frame_id): Update.  Use null_frame_id.
1319         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1320         frame_id_inner.
1321         (null_frame_id, frame_id_p): Define.
1322         (frame_id_eq, frame_id_inner): Define.
1323         (frame_id_build): New function.
1324         * varobj.c (varobj_create): Update.
1325         (varobj_update): Update.
1326         * valops.c (value_assign): Update.
1327         (new_root_variable): Update.
1328         * infrun.c (save_inferior_status): Update.
1329         * breakpoint.c (watch_command_1): Update.
1330
1331 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1332
1333         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1334         (SNAP2): Likewise.
1335
1336 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1337
1338         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1339         patch.
1340
1341         * PROBLEMS: Mention PR gdb/725.
1342
1343 2002-12-03  Andreas Schwab  <schwab@suse.de>
1344
1345         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1346
1347 2002-12-02  Adam Fedor  <fedor@gnu.org>
1348             Klee Dienes  <kdienes@apple.com>
1349
1350         * objc-lang.c (objc_printstr): Add width arg to match
1351         printstr prototype.
1352         (compare_selectors): Add 'const' to arg types.
1353         (compare_classes): Likewise.
1354         (find_imps): Cast msym pointer to avoid compiler warning.
1355         (print_object_command): Validate the address before
1356         passing it to the print routine.
1357         (find_objc_msgcall_submethod): Change function argument to
1358         return an int.
1359         * objc-lang.h: Add 'extern' to all function declarations.
1360         (value_nsstring): Add declaration.
1361
1362 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1363
1364         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1365         Fixes a build failure on HP/UX.
1366
1367         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1368         failure on HP/UX. 
1369         (hpread_has_name): Advance declaration to avoid a compilation warning.
1370         (pst_syms_count): Add missing variable type. By change, the compiler
1371         was defaulting to int, which seems a good choice. Fixes a compilation
1372         warning.
1373         (pst_syms_size): Likewise.
1374  
1375 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1376
1377         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1378         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1379         later to set the proper gdbarch methods depending on the osabi.
1380         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1381
1382 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1383
1384         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1385         * osabi.c (gdb_osabi_name): Add strings images for the two new
1386         enum values.
1387         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1388
1389 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1390
1391         * MAINTAINERS (Java): Global maintainers are responible for Java.
1392         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1393         part Java maintainers.
1394
1395 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1396
1397         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1398         Fixes a compilation failure on AiX.
1399
1400 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1401
1402         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1403         why aix-thread.o is not listed.
1404
1405 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1406
1407         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1408         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1409         * gdbarch.h, gdbarch.c: Re-generate.
1410         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1411         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1412         * config/pa/tm-hppa.h, frame.h: Update.
1413         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1414         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1415         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1416         * cris-tdep.c, alpha-tdep.c: Update.
1417         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1418         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1419         (get_prev_frame): Ditto.
1420
1421 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1422
1423         * exec.c (xfer_memory): Replace boolean with int.
1424         * p-exp.y: Use 0 instead of false.
1425         * corelow.c (gdb_check_format): Change return type to int from
1426         boolean.
1427         * utils.c: Don't include <curses.h> or <term.h> first.
1428
1429 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1430
1431         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1432         (m68hc11_register_byte): Remove.
1433         (m68hc11_gdbarch_init): Don't set the above.
1434
1435 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1436
1437         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1438         by calling get_selected_frame.
1439         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1440         set_current_frame, create_new_frame, select_frame and
1441         get_current_frame.
1442         * remote-e7000.c (e7000_start_remote): Ditto.
1443         * remote-mips.c (common_open): Ditto
1444         * remote-rdp.c (remote_rdp_open): Ditto.
1445
1446 2002-11-29  Andreas Schwab  <schwab@suse.de>
1447
1448         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1449         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1450         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1451         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1452         read_memory_unsigned_integer instead of read_memory_integer when
1453         dealing with addresses and instruction opcodes.
1454         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1455         (m68k_linux_frame_saved_pc): Likewise.
1456
1457 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1458
1459         * stack.c (selected_frame, select_frame): Move from here ...
1460         * frame.c (selected_frame, select_frame): ... to here.  Include
1461         "language.h".
1462         * Makefile.in (frame.o): Update dependencies.
1463         * frame.c (get_selected_frame): New function.
1464         * frame.h (get_selected_frame): Declare.
1465         (deprecated_selected_frame): Rename selected_frame.
1466         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1467         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1468         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1469         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1470         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1471         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1472         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1473         * z8k-tdep.c, cli/cli-cmds.c: Update.
1474         
1475 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1476
1477         * frame.h (get_selected_block): Add comments.
1478
1479 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1480
1481         * frame.c (pc_notcurrent): New function.
1482         (find_frame_sal): New function.
1483         * frame.h (find_frame_sal): Declare.
1484         (struct symtab_and_line): Add opaque declaration.
1485         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1486         find_pc_line.
1487         (frame_info): Ditto.
1488         * ada-lang.c (find_printable_frame): Ditto.
1489
1490 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1491
1492         * configure.in: Check that the pthdebug library is recent enough
1493         before enabling thread support on native AiX.
1494         * configure: Regenerate.
1495
1496         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1497         from the list of object files as it is now appended by configure
1498         if thread support is enabled.
1499         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1500         if thread support is enabled.
1501
1502 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1503
1504         * stack.c (get_selected_block): In-line get_current_block.
1505         * frame.h (get_current_block): Delete declaration.
1506         * blockframe.c (get_current_block): Delete function.
1507
1508 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1509
1510         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1511         USE_GENERIC_DUMMY_FRAMES.
1512         * gdbarch.h, gdbarch.c: Regenerate.
1513         * valops.c, frame.c: Update.
1514         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1515         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1516         * config/pa/tm-hppa.h, blockframe.c: Update.
1517         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1518         * m68k-tdep.c, alpha-tdep.c: Ditto.
1519
1520         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1521         * mips-tdep.c: Ditto.
1522
1523 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1524
1525         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1526         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1527         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1528         * gdbarch.c, gdbarch.h: Re-generate.
1529         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1530         (CALL_DUMMY_LOCATION): Delete macro definition.
1531         (PC_IN_CALL_DUMMY): Delete macro definitions.
1532         
1533         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1534         default is already generic_pc_in_call_dummy.
1535         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1536         * v850-tdep.c (v850_gdbarch_init): Ditto.
1537         * sh-tdep.c (sh_gdbarch_init): Ditto.
1538         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1539         * mips-tdep.c (mips_gdbarch_init): Ditto.
1540         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1541         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1542         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1543         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1544         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1545         * avr-tdep.c (avr_gdbarch_init): Ditto.
1546         
1547         * arm-tdep.c (arm_gdbarch_init): Do not set
1548         use_generic_dummy_frames, default is already 1.
1549         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1550         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1551         * v850-tdep.c (v850_gdbarch_init): Ditto.
1552         * sh-tdep.c (sh_gdbarch_init): Ditto.
1553         * s390-tdep.c (s390_gdbarch_init): Ditto.
1554         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1555         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1556         * mips-tdep.c (mips_gdbarch_init): Ditto.
1557         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1558         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1559         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1560         * i386-tdep.c (i386_gdbarch_init): Ditto.
1561         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1562         * frv-tdep.c (frv_gdbarch_init): Ditto.
1563         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1564         * cris-tdep.c (cris_gdbarch_init): Ditto.
1565         * avr-tdep.c (avr_gdbarch_init): Ditto.
1566
1567         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1568         call_dummy_location, default is already AT_ENTRY_POINT.
1569         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1570         * v850-tdep.c (v850_gdbarch_init): Ditto.
1571         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1572         * sh-tdep.c (sh_gdbarch_init): Ditto.
1573         * s390-tdep.c (s390_gdbarch_init): Ditto.
1574         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1575         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1576         * mips-tdep.c (mips_gdbarch_init): Ditto.
1577         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1578         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1579         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1580         * i386-tdep.c (i386_gdbarch_init): Ditto.
1581         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1582         * frv-tdep.c (frv_gdbarch_init): Ditto.
1583         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1584         * cris-tdep.c (cris_gdbarch_init): Ditto.
1585         * avr-tdep.c (avr_gdbarch_init): Ditto.
1586         * arm-tdep.c (arm_gdbarch_init): Ditto.
1587         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1588
1589 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1590
1591         * frame.h: Update comments on set_current_frame, create_new_frame,
1592         flush_cached_frames, reinit_frame_cache, select_frame and
1593         selected_frame.
1594         
1595 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1596
1597         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1598         deprecated pc_in_call_dummy function.
1599         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1600         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1601         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1602         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1603         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1604
1605 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1606
1607         * Makefile.in: Remove Tix dependencies.
1608         * acinclude.m4: Ditto.
1609         * aclocal.m4: Ditto.
1610         * configure.in: Ditto.
1611         * configure: Regenerated.
1612         
1613 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1614
1615         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1616         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1617         * gdbarch.c: Re-generate.
1618         
1619 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1620
1621         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1622         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1623         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1624         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1625         pc_in_call_dummy_at_entry_point.
1626         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1627         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1628         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1629         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1630         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1631         pc_in_call_dummy_on_stack.
1632         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1633         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1634         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1635         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1636         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1637         
1638 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
1639
1640         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1641         pc_in_call_dummy_before_text_end
1642         (deprecated_pc_in_call_dummy_after_text_end): Rename
1643         pc_in_call_dummy_after_text_end.
1644         (deprecated_pc_in_call_dummy_on_stack): Rename
1645         pc_in_call_dummy_on_stack.
1646         (deprecated_pc_in_call_dummy_at_entry_point): Rename
1647         pc_in_call_dummy_at_entry_point.
1648         * m68k-tdep.c (m68k_gdbarch_init): Update.
1649         * s390-tdep.c (s390_gdbarch_init): Update.
1650         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1651         * vax-tdep.c (vax_gdbarch_init): Update.
1652         * sparc-tdep.c (sparc_gdbarch_init): Update.
1653         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1654         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1655         * i386-tdep.c (i386_gdbarch_init): Update.
1656         * frv-tdep.c (frv_gdbarch_init): Update.
1657         * cris-tdep.c (cris_gdbarch_init): Update.
1658         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1659         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1660         (deprecated_pc_in_call_dummy_after_text_end)
1661         (deprecated_pc_in_call_dummy_on_stack)
1662         (deprecated_pc_in_call_dummy_at_entry_point): Update.
1663         * alpha-tdep.c (alpha_gdbarch_init): Update.
1664
1665 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
1666
1667         * acconfig.h (HAVE_PREAD64): Add.
1668         * configure.in: Check for pread64.
1669         * config.in: Regenerated.
1670         * configure: Regenerated.
1671         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1672         * linux-proc.c (linux_proc_xfer_memory): New function.
1673         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1674
1675 2002-11-25  David Carlton  <carlton@math.stanford.edu>
1676
1677         * dwarf2read.c (scan_partial_symbols): Descend into namespace
1678         pdi's with no name.
1679
1680 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
1681
1682         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
1683         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1684
1685 2002-11-25  Jim Blandy  <jimb@redhat.com>
1686
1687         * symfile.c (init_objfile_sect_indices): New function.
1688         (default_symfile_offsets): Move the section-index-initializing
1689         stuff into init_objfile_sect_indices, and call that.
1690
1691         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1692         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1693
1694         * symfile.c (syms_from_objfile): Adjust indentation.
1695
1696         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1697         || info_verbose isn't true.
1698
1699 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1700
1701         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1702         default to get_frame_base.
1703         * gdbarch.h, gdbarch.c: Regenerate.
1704         * arch-utils.c (default_frame_address): Delete function.
1705         * arch-utils.h (default_frame_address): Delete declaration
1706
1707 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
1708
1709         * varobj.c (find_frame_addr_in_frame_chain):
1710         Use get_frame_base instead of FRAME_FP,
1711         obvious fix.
1712
1713 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1714
1715         * frame.h (FRAME_FP): Delete macro.
1716         (get_frame_base): New function declaration.
1717         * frame.c (get_frame_base): New function.
1718         (get_frame_id): Use ->frame.
1719         (frame_find_by_id): Rewrite to use get_frame_id.
1720         * blockframe.c: Use get_frame_base instead of FRAME_FP.
1721         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1722         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1723         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1724         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1725         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1726         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1727
1728 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1729
1730         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1731
1732 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1733
1734         * frame.c (set_unwind_by_pc): Revert change below, use
1735         PC_IN_CALL_DUMMY.
1736         (get_prev_frame): Ditto.
1737
1738 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
1739
1740         * dummy-frame.c (pc_in_dummy_frame): New function.
1741         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1742         (find_dummy_frame): Update comment.
1743         (generic_pop_current_frame): Use get_frame_type.
1744         * dummy-frame.h (pc_in_dummy_frame): Declare.
1745         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1746         (create_new_frame): Use pc_in_dummy_frame.
1747         (get_prev_frame): Use pc_in_dummy_frame.
1748         (frame_saved_regs_register_unwind): Use get_prev_frame.
1749         (deprecated_generic_get_saved_register): Use get_prev_frame.
1750
1751 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1752
1753         * blockframe.c (find_frame_addr_in_frame_chain): Move function
1754         from here ...
1755         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1756         (varobj_create): Note that frame ID should be used.
1757         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1758
1759 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1760
1761         * breakpoint.c: Include "gdb_assert.h".
1762         (deprecated_frame_in_dummy): Assert that generic dummy frames are
1763         not being used.
1764         * Makefile.in (breakpoint.o): Update dependencies.
1765         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1766         deprecated_frame_in_dummy.
1767         * stack.c (print_frame_info_base): Ditto.
1768         (frame_info): Ditto.
1769         (print_frame_info_base): Ditto.  Delete dead code.
1770         
1771 2002-11-23  Andreas Schwab  <schwab@suse.de>
1772
1773         * Makefile.in (m68k_tdep_h): Define.
1774         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1775         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1776         * m68k-tdep.c: Move register number enum ...
1777         * m68k-tdep.h: ... to this new file and rename the constants from
1778         E_* to M68K_*.  All uses changed.
1779         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1780         * abug-rom.c: Include "m68k-tdep.h".  Use
1781         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1782         * cpu32bug-rom.c: Likewise.
1783         * dbug-rom.c: Likewise.
1784         * m68k-tdep.c: Likewise.
1785         * m68klinux-nat.c: Likewise.
1786         * remote-est.c: Likewise.
1787         * rom68k-rom.c: Likewise.
1788         * config/m68k/tm-linux.h: Likewise.
1789
1790 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
1791
1792         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1793         dummy frame initialization code.
1794         * mips-tdep.c (mips_gdbarch_init): Ditto.
1795
1796 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1797
1798         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1799         attach will hang.
1800
1801 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
1802
1803         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1804         to default_frame_address.
1805         * gdbarch.h, gdbarch.c: Re-generate.
1806
1807         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1808         or frame_locals_address to default_frame_address.
1809         * m68k-tdep.c (m68k_gdbarch_init): Update.
1810         * i386-tdep.c (i386_gdbarch_init): Update.
1811         * frv-tdep.c (frv_gdbarch_init): Update.
1812         * sh-tdep.c (sh_gdbarch_init): Update.
1813         * v850-tdep.c (v850_gdbarch_init): Update.
1814         * sparc-tdep.c (sparc_gdbarch_init): Update.
1815         * mips-tdep.c (mips_gdbarch_init): Update.
1816         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1817         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1818         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1819
1820         * cris-tdep.c (cris_frame_args_address): Delete function.
1821         (cris_frame_locals_address): Delete function.
1822         (cris_gdbarch_init): Do not set frame_args_address or
1823         frame_locals_address.
1824
1825 2002-11-22  Michael Snyder  <msnyder@redhat.com>
1826
1827         * thread-db.c (thread_db_load): Tell the user what's going on
1828         if dlopen fails on libthread_db.
1829
1830 2002-11-23  Andreas Schwab  <schwab@suse.de>
1831
1832         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1833         invariant return values.
1834
1835 2002-11-22  Andreas Schwab  <schwab@suse.de>
1836
1837         * valops.c (value_slice): Move declaration of `offset' to avoid
1838         warning.
1839
1840 2002-11-22  Christopher Faylor  <cgf@redhat.com>
1841
1842         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1843         (struct so_stuff): Add end_addr field.
1844         (register_loaded_dll): Calculate and store end address of loaded dll.
1845         (solib_address): New function.
1846         (child_solib_loaded_library_pathname): Pass carefully constructed
1847         section info to safe_symbol_file_add rather than ignoring it.
1848         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1849         DLL is loaded.
1850         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1851         (child_create_inferior): Fix a compiler warning.
1852         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1853         (solib_address): Declare new function.
1854
1855 2002-11-22  Andreas Schwab  <schwab@suse.de>
1856
1857         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1858         and FPS registers.
1859
1860 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
1861
1862         * maint.c (_initialize_maint_cmds): Fix typo.  From
1863         Francesco Potorti` <pot@gnu.org>.
1864
1865 2002-11-21  Andrew Cagney  <cagney@redhat.com>
1866
1867         * mips-tdep.c (mips_dump_tdep): Delete references to
1868         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1869         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1870         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1871         * printcmd.c (build_address_symbolic): Delete calls to
1872         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1873         (address_info): Ditto.
1874         Fix PR gdb/773.
1875         
1876 2002-11-19  Klee Dienes  <kdienes@apple.com>
1877             Adam Fedor  <fedor@gnu.org>
1878
1879         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
1880         the ability to explicitly specify the quote characters and word
1881         break characters; if NULL is specified for either, use the old
1882         behavior of using the characters used by the completer.
1883         (skip_chars): New function.  Convenience wrapper around
1884         skip_quoted_chars to provide the original skip_chars behavior.
1885         * completer.h (skip_quoted_chars): Add prototype.
1886
1887 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
1888
1889         Problems reported by Paul Eggert.
1890         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
1891
1892 2002-11-19  Andreas Schwab  <schwab@suse.de>
1893
1894         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
1895         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
1896         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
1897         (m68k_linux_frame_saved_pc): Move to ...
1898         * m68klinux-tdep.c: ... here.  New file.
1899         * Makefile.in (m68klinux-tdep.o): Add dependencies.
1900         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1901
1902 2002-11-19  Adam Fedor  <fedor@gnu.org>
1903
1904         * objc-exp.y: Revert to old skip_quoted usage.
1905
1906 2002-11-19  Adam Fedor  <fedor@gnu.org>
1907
1908         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1909         (objc_lang_h): Define.
1910         (YYFILES): Add objc-exp.tab.c.
1911         (local-maintainer-clean): Remove objc-exp.tab.c.
1912         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1913         
1914 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1915
1916         * p-exp.y (typecast rule): Add automatic dereference of
1917         pascal classes if needed.
1918         (THIS): Set current_type.
1919         Automatically dereference pascal classes. 
1920         (typebase rule): Add ^typebase recognition.
1921
1922 2002-11-18  Adam Fedor  <fedor@gnu.org>
1923
1924         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1925         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
1926         (op_name): Handle OP_OBJC_SELF.
1927         * Makefile.in (expprint.o): Add additional depends.
1928
1929 2002-11-18  Adam Fedor  <fedor@gnu.org>
1930
1931         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1932         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1933         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1934         * objc-exp.y: Likewise. 
1935
1936 2002-11-18  Adam Fedor  <fedor@gnu.org>
1937
1938         * gdb/parser-defs.h: (struct objc_class_str): New structure
1939         for parsing ObjC classes.
1940
1941 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1942
1943         * stack.c (frame_relative_level): Copy function from here ...
1944         * frame.c (frame_relative_level): ...to here.
1945
1946 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
1947
1948         * frame.h (enum frame_type): Define.
1949         (get_frame_type): Declare.
1950         (struct frame_info): Add field `type'.  Delete field
1951         signal_handler_caller.
1952         (deprecated_set_frame_signal_handler_caller): Declare.
1953         * frame.c (get_frame_type): New function.
1954         (deprecated_set_frame_type): New function.
1955         (create_new_frame): Set the frame's type.
1956         (get_prev_frame): Similar.
1957         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1958         * s390-tdep.c: Ditto.
1959         * m68klinux-nat.c: Ditto.
1960         * ns32k-tdep.c: Ditto.
1961         * x86-64-linux-tdep.c: Ditto.
1962         * vax-tdep.c: Ditto.
1963         * rs6000-tdep.c: Ditto.
1964         * ppc-linux-tdep.c: Ditto.
1965         * i386-interix-tdep.c: Ditto.
1966         * mips-tdep.c: Ditto.
1967         * m68k-tdep.c: Ditto.
1968         * hppa-tdep.c: Ditto.
1969         * ia64-tdep.c: Ditto.
1970         * cris-tdep.c: Ditto.
1971         * arm-tdep.c: Ditto.
1972         * alpha-tdep.c: Ditto.
1973         * i386-tdep.c: Ditto.
1974         * stack.c: Ditto.
1975         * ada-lang.c: Ditto.
1976         * blockframe.c: Update.
1977         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1978         deprecated_set_frame_type instead of signal_handler_caller.
1979         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1980         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1981         * breakpoint.h: Delete FIXME suggesting get_frame_type.
1982
1983 2002-11-18   Klee Dienes  <kdienes@apple.com>
1984
1985         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1986
1987 2002-11-18  Klee Dienes  <kdienes@apple.com>
1988
1989         * buildsym.c (pop_context): Add comment.
1990         
1991 2002-11-18  Klee Dienes  <kdienes@apple.com>
1992
1993         * buildsym.h (pop_context): Convert to function, defined in
1994         buildsym.c.
1995         * buildsym.c: Include gdb_assert.h.
1996         (pop_context): Implement as C function.  Add check for stack
1997         underflow.
1998         * dbxread.c (process_one_symbol): Complain and stop processing
1999         that symbol if we are already at the top of the context stack for
2000         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2001         when processing N_RBRAC.
2002
2003 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2004
2005         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2006         define.
2007         (struct target_waitstatus): Add opaque definition.
2008         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2009         * exec.c (init_exec_ops): Likewise.
2010         * fork-child.c (clone_and_follow_inferior): Remove.
2011         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2012         * inferior.h (clone_and_follow_inferior): Remove prototype.
2013         * infrun.c (follow_fork_mode_both): Remove.
2014         (follow_fork_mode_kind_names): Remove commented out "both".
2015         (follow_inferior_fork): Remove follow_fork_mode_both support.
2016         * inftarg.c (child_clone_and_follow_inferior): Remove.
2017         (child_post_follow_inferior_by_clone): Remove.
2018         (init_child_ops): Don't set to_clone_and_follow_inferior
2019         or to_post_follow_inferior_by_clone.
2020         * target.c (default_clone_and_follow_inferior): Remove.
2021         (cleanup_target): Don't set to_clone_and_follow_inferior
2022         or to_post_follow_inferior_by_clone.
2023         (find_default_clone_and_follow_inferior): Remove.
2024         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2025         (debug_to_clone_and_follow_inferior): Remove.
2026         (debug_to_post_follow_inferior_by_clone): Remove.
2027         (setup_target_debug): Don't set to_clone_and_follow_inferior
2028         or to_post_follow_inferior_by_clone.
2029         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2030         and to_post_follow_inferior_by_clone.
2031         (child_clone_and_follow_inferior): Remove prototype.
2032         (child_post_follow_inferior_by_clone): Remove prototype.
2033         (target_clone_and_follow_inferior): Remove macro.
2034         (target_post_follow_inferior_by_clone): Remove macro.
2035         (find_default_clone_and_follow_inferior): Remove prototype.
2036
2037 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2038
2039         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2040         inferior_has_vforked, and inferior_has_execd instead of
2041         target_has_forked, target_has_vforked, and target_has_execd.
2042         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2043         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2044         (CHILD_WAIT): Define.
2045         (child_wait): Add prototype.
2046         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2047         Add prototype.
2048         (hpux_has_vforked): Likewise, from child_has_vforked.
2049         (hpux_has_execd): Likewise, from child_has_execd.
2050         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2051         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2052         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2053         and hpux_has_syscall_event instead of the target hooks.
2054         * infrun.c (inferior_has_forked, inferior_has_vforked)
2055         (inferior_has_execd): New functions.
2056         * inftarg.c (not_same_real_pid): Remove.
2057         (child_wait): Remove references to not_same_real_pid,
2058         target_has_forked, target_has_vforked, target_has_execd,
2059         and target_has_syscall_event.
2060         (child_has_forked, child_has_vforked, child_has_execd)
2061         (child_has_syscall_event): Remove.
2062         (init_child_ops): Remove references to child_has_forked,
2063         child_has_vforked, child_has_execd, and child_has_syscall_event.
2064         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2065         (hpux_has_vforked): Likewise, from child_has_vforked.
2066         (hpux_has_execd): Likewise, from child_has_execd.
2067         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2068         * target.c (cleanup_target): Remove references to
2069         to_has_forked, to_has_vforked, to_has_execd, and
2070         to_has_syscall_event.
2071         (update_current_target): Likewise.
2072         (setup_target_debug): Likewise.
2073         (debug_to_has_forked): Remove.
2074         (debug_to_has_vforked): Remove.
2075         (debug_to_has_execd): Remove.
2076         (debug_to_has_syscall_event): Remove.
2077         * target.h (struct target_ops): Remove to_has_forked.
2078         to_has_vforked, to_has_execd, and to_has_syscall_event.
2079         (child_has_forked, child_has_vforked, child_has_execd)
2080         (child_has_syscall_event): Remove prototypes.
2081         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2082         prototypes.
2083         (target_has_forked, target_has_vforked, target_has_execd)
2084         (target_has_syscall_event): Remove macros.
2085
2086 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2087
2088         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2089         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2090         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2091         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2092         * target.c (cleanup_target): Remove reference to
2093         to_can_follow_vfork_prior_to_exec.
2094         (update_current_target): Likewise.
2095         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2096         (setup_target_debug): Remove reference to
2097         to_can_follow_vfork_prior_to_exec.
2098         * target.h (struct target_ops): Remove
2099         to_can_follow_vfork_prior_to_exec.
2100         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2101         (target_can_follow_vfork_prior_to_exec): Remove definition.
2102         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2103         define.
2104         * infrun.c (follow_vfork_when_exec): Remove.
2105         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2106         (follow_exec): Likewise.
2107         (handle_inferior_event): Likewise.
2108         (keep_going): Likewise.
2109
2110 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2111
2112         * frame.c (generic_unwind_get_saved_register): Make static.
2113         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2114         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2115         defaults to generic_unwind_get_saved_register.
2116         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2117         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2118         * frv-tdep.c (frv_gdbarch_init): Ditto.
2119         * i386-tdep.c (i386_gdbarch_init): Ditto.
2120         * s390-tdep.c (s390_gdbarch_init): Ditto.
2121         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2122         * v850-tdep.c (v850_gdbarch_init): Ditto.
2123         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2124         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2125         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2126
2127 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2128
2129         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2130         i386-tdep.c.
2131
2132 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2133
2134         * frame.h (sigtramp_saved_pc): Delete declaration.
2135         * blockframe.c (sigtramp_saved_pc): Delete function.
2136         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2137         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2138         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2139         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2140
2141 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2142
2143         * frame.c (frame_pc_unwind): New function.
2144         (frame_saved_regs_pc_unwind): New function.
2145         (frame_register_unwind): Pass unwind_cache instead of
2146         register_unwind_cache.
2147         (set_unwind_by_pc): Add unwind_pc parameter, set.
2148         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2149         (get_prev_frame): Ditto.
2150         * frame.h (frame_pc_unwind_ftype): Declare.
2151         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2152         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2153         (frame_pc_unwind): Declare.
2154         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2155         (struct dummy_frame): Add comment mentioning that values are for
2156         previous frame.
2157         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2158         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2159         (generic_file_frame_chain_valid): Ditto.
2160         * stack.c (frame_info): Ditto.
2161
2162 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2163
2164         * linespec.c (locate_first_half): New function.
2165         (decode_line_1): Move code into locate_first_half.
2166
2167 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2168
2169         * complaints.h: Add comment explaining how to eliminate a
2170         deprecated_complain call.
2171         * complaints.h: Fix spelling errors.
2172
2173 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2174
2175         * printcmd.c: Remove #include "disasm.h".
2176
2177 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2178
2179         * frame.h: Move the most relevant interface functions to the start
2180         of the file.
2181
2182 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2183
2184         * regcache.h (deprecated_registers): Rename registers.
2185         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2186         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2187         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2188         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2189         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2190         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2191         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2192         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2193         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2194         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2195         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2196         * v850ice.c: Update.
2197
2198 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2199
2200         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2201         NULL buffer.
2202
2203 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2204
2205         * regcache.h (deprecated_read_register_bytes): Rename
2206         read_register_bytes.
2207         (deprecated_write_register_bytes): Rename write_register_bytes.
2208         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2209         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2210         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2211         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2212         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2213         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2214         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2215         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2216         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2217         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2218         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2219         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2220         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2221         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2222
2223 2002-11-13  Jim Blandy  <jimb@redhat.com>
2224
2225         * findvar.c (read_var_value): Doc fix.
2226
2227 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2228
2229         * regcache.c (struct regcache): Replace passthough_p with
2230         readonly_p.
2231         (regcache_xmalloc): Initialize readonly_p.
2232         (build_regcache): Initialize readonly_p.
2233         (regcache_save): New function.
2234         (regcache_restore): New function.
2235         (regcache_cpy): Re-implement using regcache_save and
2236         regcache_restore.
2237         (regcache_raw_read): Update.
2238         (regcache_cooked_read): When a read-only cache, checked for cached
2239         pseudo register values.
2240         (regcache_raw_write): Assert that the cache is not read-only.
2241         Remove code handling a non-passthrough cache.
2242         * regcache.h (regcache_save): Declare.
2243         (regcache_restore): Declare.
2244
2245 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2246
2247         * regcache.c (struct regcache_descr): Add fields
2248         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2249         (init_legacy_regcache_descr): Compute the size of a cooked
2250         register cache and then assign that to sizeof_raw_registers.  Set
2251         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2252         (init_legacy_regcache_descr): Ditto.
2253
2254 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2255
2256         * regcache.c (register_buffer): Move to near start of file, update
2257         description.
2258         (regcache_raw_read): Use.
2259         (regcache_raw_write): Use.
2260         (struct regcache): Rename raw_registers to registers and
2261         raw_register_valid_p to register_valid_p.
2262         (regcache_xmalloc): Update.
2263         (regcache_xfree): Update.
2264         (register_buffer): Update.
2265         (regcache_cpy): Update.
2266         (regcache_cpy_no_passthrough): Update.
2267         (regcache_valid_p): Update.
2268         (deprecated_grub_regcache_for_registers): Update.
2269         (deprecated_grub_regcache_for_register_valid): Update.
2270         (set_register_cached): Update.
2271         (regcache_raw_write): Update.
2272
2273 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2274
2275         * p-exp.y (name_not_typename): Use copy_name to
2276         set current_type variable for fields of THIS.
2277
2278 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2279
2280         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2281         * monitor.c (init_base_monitor_ops): Likewise.
2282         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2283         * remote-array.c (init_array_ops): Likewise.
2284         * remote-e7000.c (init_e7000_ops): Likewise.
2285         * remote-es.c (init_es1800_ops): Likewise.
2286         (init_es1800_child_ops): Likewise.
2287         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2288         * remote-sim.c (init_gdbsim_ops): Likewise.
2289         * remote-st.c (init_st2000_ops): Likewise.
2290         * sol-thread.c (init_sol_core_ops): Likewise.
2291         (init_sol_thread_ops): Likewise.
2292         * v850ice.c (init_850ice_ops): Likewise.
2293         * win32-nat.c (init_child_ops): Likewise.
2294         * wince.c (init_child_ops): Likewise.
2295
2296 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2297
2298         * utils.c (gdb_realpath): Make rp a constant pointer.
2299
2300 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2301
2302         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2303         a constant buffer; cannonicalize_file_name(); realpath() with a
2304         pathconf() defined buffer, xstrdup().
2305
2306 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2307
2308         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2309         to hang2.C; hang3.c to hang3.C.
2310
2311 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2312
2313         * findvar.c (read_var_value): Reenable TLS code.
2314
2315 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2316             Jim Blandy  <jimb@redhat.com>
2317         
2318         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2319         * target.c (update_current_target): Add
2320         to_get_thread_local_address.
2321         * target.h (to_get_thread_local_address): Export.
2322         (target_get_thread_local_address): Define.
2323         (target_get_thread_local_address_p): Define.
2324         * thread-db.c: Include solib-svr4.h.
2325         (td_thr_tls_get_addr_p): Define.
2326         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2327         (thread_db_get_thread_local_address): New function.
2328         (init_thread_db_ops): Initialize to_get_thread_local_address.
2329         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2330         * configure: Regenerate.
2331         * config.in: Regenerate.
2332
2333 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2334
2335         * linespec.c (set_flags): New function.
2336         (decode_line_1): Move code into set_flags.
2337
2338 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2339
2340         * linespec.c (decode_line_1): Move chunks of code to separate
2341         functions.
2342         (initialize_defaults): New function.
2343         (decode_indirect): New function.
2344
2345 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2346
2347         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2348         instead of void_code_ptr.
2349         (sigtramp_saved_pc): Ditto.
2350
2351         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2352         i386_fp_regnum_p.
2353
2354 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2355
2356         * gdbtypes.h (struct main_type): Move artificial flag out of
2357         loc.  New member of ``struct field'' named static_kind.  Reduce
2358         overloaded meaning of bitsize.
2359         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2360         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2361         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2362
2363         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2364         new fields.
2365         (template_to_fixed_record_type, template_to_static_fixed_type)
2366         (to_record_with_fixed_variant_part): Likewise.
2367         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2368         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2369         * dwarfread.c (struct_type, enum_type): Likewise.
2370         * hpread.c (hpread_read_enum_type)
2371         (hpread_read_function_type, hpread_read_doc_function_type)
2372         (hpread_read_struct_type): Likewise.
2373         * mdebugread.c (parse_symbol): Likewise.
2374
2375 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2376
2377         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2378         * stack.c (print_frame_info_base): Update.
2379         (print_frame_info_base, frame_info): Update.
2380         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2381         (sparc_frame_saved_pc): Update.
2382         * ada-lang.c (find_printable_frame): Update.
2383         * breakpoint.c (deprecated_frame_in_dummy): Update.
2384         
2385 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2386
2387         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2388         defined.
2389         (regmap): Extend to cover all registers.
2390         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2391         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2392         definitions.
2393         (fetch_register, sore_register): Simplify.
2394         (old_fetch_inferior_registers, old_store_inferior_registers):
2395         Remove functions.
2396         (cannot_fetch_register, cannot_store_register): Change
2397         implementation to use regmap array to decide which registers
2398         cannot be fetched/stored.  This removes $orig_eax from the
2399         registers that cannot be fetched/stored.
2400         (fetch_inferior_registers): Call fetch_register directly instead
2401         of calling old_fetch_inferior_registers.
2402         (store_inferior_registers): Call store_register directly instead
2403         of calling old_store_inferior_registers.
2404         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2405         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2406         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2407
2408 2002-11-09  Klee Dienes  <kdienes@apple.com>
2409
2410         * i387-tdep.c (i387_supply_register): When called with NULL as a
2411         buffer, mark the register as not provided (to mirror the behavior
2412         of supply_register).
2413         (i387_supply_fxsave): Ditto.
2414         (i387_supply_fsave): Ditto (inherits the behavior from
2415         i387_supply_register).
2416
2417 2002-11-09  Klee Dienes  <kdienes@apple.com>
2418
2419         * blockframe.c (sigtramp_saved_pc): Use
2420         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2421         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2422         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2423         
2424 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2425
2426         * frame.c (get_prev_frame): Test prev_p to identify a previously
2427         unwound frame.  Initialize prev_p.
2428         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2429         comment.
2430
2431 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2432
2433         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2434         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2435         more comments.  Zap dead code.
2436
2437 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2438
2439         * infcmd.c (print_vector_info, print_float_info): Move code that
2440         checks whether the target has any registers and whether there is a
2441         selected frame up, such that it is also used if a target provides
2442         multi-arch definitions of these functions.
2443
2444 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2445
2446         * Makefile.in (DESTDIR): Define.
2447         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2448         prefix.
2449
2450         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2451         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2452
2453 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2454
2455         * i386-linux-tdep.c: Include "reggroups.h".
2456         (i386_linux_register_reggroup_p): New function.
2457         (i386_linux_init_abi): Set register_reggroup_p to
2458         i386_linux_register_reggroup_p.
2459         * i386-tdep.h (i386_register_reggroup_p): Declare.
2460         * i386-tdep.c: Include "reggroups.h".
2461         (i386_init_reggroups): New function.
2462         (i386_add_reggroups): New function.
2463         (i386_register_reggroup_p): New function.
2464         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2465         (_initialize_i386_tdep): Call i386_init_reggroups.
2466         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2467         specific reggroups.
2468
2469 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2470
2471         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2472         request that's available in *BSD.
2473
2474         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2475
2476         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2477         FDOFF_REGNUM.
2478
2479 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2480
2481         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2482         * dummy-frame.c (find_dummy_frame): Rename
2483         generic_find_dummy_frame, make static.  Return the dummy frame
2484         instead of the regcache.
2485         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2486         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2487         (dummy_frame_register_unwind): Rename
2488         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2489         * dummy-frame.h (dummy_frame_register_unwind): Rename
2490         generic_call_dummy_register_unwind.
2491
2492 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2493
2494         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2495         except the inclusion of "i386/tm-i386.h", to...
2496         * config/i386/nm-i386v42mp.h: ...here.
2497         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2498
2499 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2500
2501         * Makefile.in (frame.o): Update dependencies.
2502         * blockframe.c (current_frame, frame_obstack_alloc)
2503         (frame_saved_regs_zalloc, get_current_frame)
2504         (set_current_frame, create_new_frame)
2505         (set_unwind_by_pc, get_next_frame)
2506         (flush_cached_frames, reinit_frame_cache)
2507         (frame_saved_regs_register_unwind)
2508         (deprecated_generic_get_saved_register)
2509         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2510         (_initialize_blockframe): Move frame code from here...
2511         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2512         "annotate.h" and "dummy-frame.h".
2513         (_initialize_frame): New function.
2514
2515 2002-11-08  Jim Blandy  <jimb@redhat.com>
2516
2517         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2518         when we finish a function a context.
2519         * buildsym.h (outermost_context_p): New macro.
2520         (Bug analyzed by David Edelsohn.)
2521
2522 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2523
2524         * blockframe.c: Include "dummy-frame.h".
2525         (struct dummy_frame, dummy_frame_stack)
2526         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2527         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2528         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2529         (generic_save_call_dummy_addr, generic_pop_current_frame)
2530         (generic_pop_dummy_frame, generic_fix_call_dummy)
2531         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2532         dummy frame code from here...
2533         * dummy-frame.c: ...to here.  New file.
2534         * dummy-frame.h: New file.
2535         (generic_call_dummy_register_unwind): Declare.
2536         (generic_find_dummy_frame): Declare.
2537         * Makefile.in (SFILES): Add dummy-frame.c.
2538         (dummy-frame.o): Specify dependencies.
2539         (dummy_frame_h): Define.
2540         (COMMON_OBS): Add dummy-frame.o.
2541         (blockframe.o): Update dependencies.
2542
2543 2002-11-08  Jim Blandy  <jimb@redhat.com>
2544
2545         * dwarf2read.c (read_func_scope): Restore local_symbols and
2546         param_symbols after we finish the function context.  (Based on a
2547         patch from David Edelsohn.)
2548
2549 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2550
2551         * linespec.c (symbol_found): New function.
2552         (minsym_found): New function.
2553         (decode_line_1): Separate out some code into separate functions.
2554
2555 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2556
2557         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2558         the benefit of the interix target.
2559         * i386-tdep.h (i386_frameless_signal_p): Declare.
2560
2561 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2562
2563         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2564         declaration that snuck in from change below.
2565
2566 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2567
2568         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2569         all callers.
2570         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2571         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2572         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2573         (i386_mxcsr_regnum_p): new function.  Use instead of
2574         MXCSR_REGNUM_P.
2575         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2576         (i386_sse_regnum_p): Declare.
2577         (i386_mxcsr_regnum_p): Declare.
2578         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2579         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2580         (IS_FP_REGNUM): Update definition.
2581         (IS_FPU_CTRL_REGNUM): Update definition..
2582         (IS_SSE_REGNUM): Update definition..
2583         * i386v-nat.c (register_u_addr): Update.
2584         * go32-nat.c (fetch_register): Update.
2585         (store_register): Update.
2586
2587 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2588
2589         Preparation work to convert the hppa targets to multiarch partial.
2590
2591         * hppa-tdep.c: Add new functions replacing macro bodies from
2592         config/pa/tm-hppa.h. These function will be used to initialize
2593         the gdbarch structure. Import some comments from tm-hppa.h,
2594         and place them where appropriate, to avoid loosing them when
2595         we cleanup this file.
2596         (hppa_reg_struct_has_addr): New function.
2597         (hppa_inner_than): New function.
2598         (hppa_stack_align): New function.
2599         (hppa_pc_requires_run_before_use): New function.
2600         (hppa_instruction_nullified): New function.
2601         (hppa_register_byte): New function.
2602         (hppa_register_virtual_type): New function.
2603         (hppa_store_struct_return): New function.
2604         (hppa_cannot_store_register): New function.
2605         (hppa_frame_args_address): New function.
2606         (hppa_frame_locals_address): New function.
2607         (hppa_smash_text_address): New function.
2608         (hppa_coerce_float_to_double): New function. Requires the inclusion
2609         of "language.h".
2610
2611         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2612
2613         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2614         gdbarch-eligible macro to a call to the new associated function
2615         created in hppa-tdep.c.
2616         (INNER_THAN): Likewise.
2617         (STACK_ALIGN): Likewise.
2618         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2619         (INSTRUCTION_NULLIFIED): Likewise.
2620         (REGISTER_BYTE): Likewise.
2621         (REGISTER_VIRTUAL_TYPE): Likewise.
2622         (STORE_STRUCT_RETURN): Likewise.
2623         (CANNOT_STORE_REGISTER): Likewise.
2624         (FRAME_ARGS_ADDRESS): Likewise.
2625         (FRAME_LOCALS_ADDRESS): Likewise.
2626         (SMASH_TEXT_ADDRESS): Likewise.
2627         (COERCE_FLOAT_TO_DOUBLE): Likewise.
2628         (ABOUT_TO_RETURN): Delete, as no longer used.
2629
2630 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
2631
2632         * printcmd.c (disassemble_command): Remove obsolete function.
2633         (_initialize_printcmd): Do not create disassemble command here.
2634         * cli/cli-cmds.c (disassemble_command): New function.  Implements
2635         disassemble command.
2636         (init_cli_cmds): Create disassemble command here instead.
2637
2638 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2639
2640         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2641
2642 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2643
2644         * regcache.h (regcache_cooked_read_using_offset_hack)
2645         (regcache_cooked_write_using_offset_hack): Delete declarations.
2646         (register_changed): Delete declaration.
2647         * regcache.c (regcache_cooked_read_using_offset_hack)
2648         (regcache_cooked_write_using_offset_hack): Delete functions.
2649         (cooked_xfer_using_offset_hack): Delete function.
2650         (register_changed): Delete function.
2651
2652 2002-11-07  Jim Blandy  <jimb@redhat.com>
2653
2654         * macroscope.c: #include "complaints.h".
2655         (sal_macro_scope): Cope with filenames that appear in the symtabs,
2656         but not in the macro table.
2657         * Makefile.in (macroscope.o): Record dependency.
2658
2659 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2660
2661         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2662
2663 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
2664
2665         * regcache.c (deprecated_registers_fetched): Update.
2666         * regcache.h (deprecated_registers_fetched): Rename
2667         registers_fetched.
2668         * remote-vxsparc.c (vx_read_register): Update.
2669         * remote-vxmips.c (vx_read_register): Update.
2670         * remote-vx68.c (vx_read_register): Update.
2671         * irix5-nat.c (fetch_core_registers): Update.
2672         * mipsm3-nat.c (fetch_inferior_registers): Update.
2673         * sun3-nat.c (fetch_inferior_registers): Update.
2674         * symm-nat.c (fetch_inferior_registers): Update.
2675         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2676         (fetch_core_registers): Update.
2677         (fetch_kcore_registers): Update.
2678         * mips-nat.c (fetch_inferior_registers): Update.
2679         * corelow.c (get_core_registers): Update.
2680         * a68v-nat.c (fetch_inferior_registers): Update.
2681
2682 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2683
2684         Put in place the framework necessary for multiarching the hppa targets.
2685         * hppa-tdep.c (hppa_gdbarch_init): New function.
2686         (hppa_dump_tdep): New function.
2687         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2688         tdep structure dumper.
2689         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2690         until the multi-arching conversion has partially been completed.
2691
2692 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2693
2694         * valops.c (value_assign): Merge lval_register case into
2695         lval_reg_frame_relative.  Use frame_register and
2696         regcache_cooked_write instead of get_saved_register and
2697         write_register_bytes.  After flushing the register cache, try to
2698         re-select the selected frame.
2699
2700 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2701
2702         * regcache.h (deprecated_register_valid): Rename register_valid.
2703         * regcache.c: Update.
2704         * ia64-aix-nat.c: Update.
2705         * i386gnu-nat.c: Update.
2706         * alpha-nat.c: Update.
2707         * sparc-nat.c: Update.
2708         * lynx-nat.c: Update.
2709         * remote-mips.c: Update.
2710
2711 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
2712
2713         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2714         to end of file, to be more consistent with the pratice followed
2715         by other targets.
2716
2717 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
2718
2719         * infcmd.c: Include "reggroups.h" and <ctype.h>.
2720         (print_float_info): Print registers in float_reggroup.
2721         (print_vector_info): Print registers in vector_reggroup.
2722         (default_print_registers_info): When all, print registers in
2723         all_reggroup.  Otherwize, print registers in general_reggroup.
2724         (registers_info): Rewrite.  Add support for register groups.
2725         Eliminate a goto.
2726
2727 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
2728
2729         * symtab.c (methods_info): Delete. It has been ifdeffed out for
2730         ages.
2731         (symtab_symbol_info): Remove eons old ifdeffed out code.
2732         (_initialize_symtab): Remove prehistoric disabled 'info methods'
2733         command.
2734
2735 2002-11-06  Theodore A. Roth  <troth@openavr.org>
2736
2737         * c-exp.y: Add missing semi-colons.
2738         * f-exp.y: Add missing semi-colons.
2739         * m2-exp.y: Add missing semi-colons.
2740         * p-exp.y: Add missing semi-colons.
2741         Add empty action to start rule to avoid a type clash error when
2742         building with bison >= 1.50.
2743
2744 2002-11-06  Jim Blandy  <jimb@redhat.com>
2745
2746         * macrotab.h (struct macro_source_file): Doc fix.
2747
2748 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
2749
2750         * varobj.c (child_exists, cplus_number_of_children): Change
2751         STREQ macro references to strcmp.
2752         (cplus_name_of_child): Change code to handle the fact that
2753         fields are not necessarily contiguous with regards to their 
2754         access control. This is a fix for PR gdb/792.
2755
2756 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2757
2758         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2759         * gdbarch.h, gdbarch.c: Regnerate.
2760         * frame.h (frame_register): Declare.
2761         * frame.c (frame_register): New function.
2762         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2763         GET_SAVED_REGISTER, otherwize call
2764         generic_unwind_get_saved_register.
2765         (frame_register_read): Use frame_register instead of
2766         get_saved_register.
2767
2768 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2769         
2770         From Jim Ingham  <jingham@apple.com>:
2771         * event-top.c (gdb_disable_readline): New function.
2772         (_initialize_event_loop): Move comment.
2773
2774 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
2775
2776         * event-loop.c (start_event_loop): Add comment.
2777         Update copyright.
2778
2779 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2780
2781         * infcmd.c (default_print_registers_info): Do not call
2782         PRINT_REGISTER_HOOK.
2783
2784 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
2785
2786         * sparc-tdep.c (sparc_print_register_hook): Make static.
2787         (sparc_print_registers_info): New function.
2788         (sparc_do_registers_info): New function.
2789         (sparclet_print_registers_info): New function.
2790         (sparclet_do_registers_info): New function.
2791         (do_sparc_print_registers_info): New function.
2792         (sparc_print_registers): New static function, clone of infcmd.c's
2793         default_print_registers_info.
2794         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2795         (sparclet_do_registers_info): Declare.
2796         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2797         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2798         Re-define.
2799         (sparc_do_registers_info): Declare.
2800         (PRINT_REGISTER_HOOK): Delete macro.
2801         (sparc_print_register_hook): Delete declaration.
2802
2803 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2804
2805         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2806         functions.
2807         (lookup_symbol_aux_local): New function.
2808         (lookup_symbol_aux_symtabs): New function.
2809         (lookup_symbol_aux_psymtabs): New function.
2810
2811 2002-11-05  David Carlton  <carlton@math.stanford.edu>
2812
2813         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2814         previous values of 'objfile' and 'block'.
2815
2816 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2817
2818         * values.c (value_change_enclosing_type): Set 
2819         enclosing_type field correctly also for the case where 
2820         more memory needs to be allocated.
2821
2822 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
2823
2824         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2825         of puts_filtered.
2826
2827         * i387-tdep.c (i387_print_float_info): Replace calls to
2828         register_read and deprecated_read_register_gen with calls to
2829         frame_register_read, and make the necessary adjustments to the
2830         surrounding code.
2831
2832 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2833
2834         * gdbarch.sh (register_reggroup_p): Allow default value.
2835         * gdbarch.h, gdbarch.c: Regenerate.
2836
2837 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
2838
2839         * regcache.h: Add coment indicating replacements for deprecated
2840         functions.
2841
2842 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2843
2844         * reggroups.h, reggroups.c: New files.
2845         * regcache.c: Include "reggroups.h".
2846         (enum regcache_dump_what): Add `regcache_dump_groups'.
2847         (regcache_dump): Contract size of the "Type" column.  When
2848         specified, dump the register's groups.
2849         (maintenance_print_register_groups): New function.
2850         (_initialize_regcache): Add command `maint print register-groups'.
2851         * Makefile.in (COMMON_OBS): Add reggroups.o
2852         (SFILES): Add reggroups.c.
2853         (reggroups_h): Define.
2854         (regcache.o, gdbarch.o): Update dependencies.
2855         (reggroups.o): Specify dependencies.
2856         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2857         Add opaque declaration for `struct reggroup' in generated .h file.
2858         Include "reggroups.h" in generated .c file.
2859         gdbarch.h, gdbarch.c: Re-generate.
2860
2861 2002-11-02  Andrew Cagney  <cagney@redhat.com>
2862
2863         * regcache.h (deprecated_read_register_gen): Rename
2864         read_register_gen.
2865         (deprecated_write_register_gen): Rename write_register_gen.
2866         * i387-tdep.c: Update.
2867         * x86-64-linux-nat.c: Update
2868         * wince.c: Update.
2869         * thread-db.c: Update.
2870         * win32-nat.c: Update.
2871         * mips-tdep.c: Update.
2872         * d10v-tdep.c: Update.
2873         * cris-tdep.c: Update.
2874         * remote-sim.c: Update.
2875         * remote-rdi.c: Update.
2876         * remote-rdp.c: Update.
2877         * frame.c: Update.
2878         * target.c: Update.
2879         * blockframe.c: Update.
2880         * x86-64-tdep.c: Update.
2881         * xstormy16-tdep.c: Update.
2882         * sh-tdep.c: Update.
2883         * s390-tdep.c: Update.
2884         * rs6000-tdep.c: Update.
2885         * sparc-tdep.c: Update.
2886         * i386-tdep.c: Update.
2887         * dwarf2cfi.c: Update.
2888         * regcache.c: Update.
2889
2890 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
2891
2892         New interix-specific files:
2893         * config/i386/nm-interix.h: New file.
2894         * config/i386/interix.mh: New file.
2895         * config/i386/interix.mt: New file.
2896         * i386-interix-nat.c: New file.
2897         * i386-interix-tdep.c: New file.
2898
2899 2002-11-01  Andrew Cagney  <cagney@redhat.com>
2900
2901         * frame.h (deprecated_generic_get_saved_register): Rename
2902         generic_get_saved_register.
2903         * blockframe.c (deprecated_generic_get_saved_register): Update.
2904         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2905         (xstormy16_frame_saved_register): Update.
2906         * sh-tdep.c (sh_gdbarch_init): Update.
2907         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2908         * ia64-tdep.c (ia64_get_saved_register): Update.
2909         * cris-tdep.c (cris_gdbarch_init): Update.
2910         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2911         * arm-tdep.c (arm_gdbarch_init): Update.
2912
2913 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2914
2915         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2916
2917 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
2918
2919         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2920         trampolines in sigaction.
2921
2922 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2923
2924         * h8300-tdep.c: Include "gdb_assert.h".
2925         (h8300_print_register): Add gdbarch, file and frame parameters.
2926         Use frame_read_unsigned_register to read the register's value.
2927         Use fprintf_filtered to display output.
2928         (h8300_print_registers_info): Replace h8300_do_registers_info.
2929         (h8300_gdbarch_init): Set print_registers_info.
2930
2931 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2932
2933         * frame.c (frame_read_unsigned_register): New function.
2934         (frame_read_signed_register): New function.
2935         * frame.h (frame_read_unsigned_register): Declare.
2936         (frame_read_signed_register): Declare.
2937
2938 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2939
2940         * h8500-tdep.c (h8500_print_registers_info): New static function,
2941         clone of infcmd.c's default_print_registers_info.
2942         (h8500_do_registers_info): New funtion.
2943         (h8500_print_register_hook): Rename print_register_hook, make
2944         static.
2945
2946         * config/h8500/tm-h8500.h: Update copyright.
2947         (DEPRECATED_DO_REGISTERS_INFO): Define.
2948         (h8500_do_registers_info: Declare.
2949         (PRINT_REGISTER_HOOK): Delete macro.
2950         (print_register_hook): Delete function.
2951
2952 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2953
2954         * z8k-tdep.c (z8k_print_register_hook): Make static.
2955         (z8k_print_registers_info): New static function, clone of
2956         infcmd.c's default_print_registers_info.
2957         (z8k_do_registers_info): New function.  Wrap
2958         z8k_print_registers_info.
2959         * config/z8k/tm-z8k.h: Update copyright.
2960         (PRINT_REGISTER_HOOK): Delete macro.
2961         (z8k_print_register_hook): Delete declaration.
2962         (DEPRECATED_DO_REGISTERS_INFO): Define.
2963         (z8k_do_registers_info): Declare.
2964
2965 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
2966
2967         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2968         as this is already provided by value.h, and was actually causing
2969         a compilation error because of a conflict in parameter type
2970         declaration due to a missing const keyword.
2971         (low_text_segment_addres): Fix a compilation warning.
2972
2973 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
2974
2975         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2976         registers without a name.
2977         (mips_linux_cannot_store_register): Don't store registers without
2978         a name.
2979
2980 2002-10-28  David Carlton  <carlton@math.stanford.edu>
2981
2982         * symtab.c (find_addr_symbol): Delete.  (It was already commented
2983         out.)
2984         * symtab.h: Delete prototype for find_addr_symbol.
2985
2986 2002-10-26  Andrew Cagney  <cagney@redhat.com>
2987
2988         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2989         DO_REGISTERS_INFO.
2990         gdbarch.h, gdbarch.c: Re-generate.
2991         * infcmd.c (default_print_registers_info): Update reference.
2992         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2993         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2994         * sh-tdep.c (sh_gdbarch_init): Ditto.
2995         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2996         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2997
2998 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
2999
3000         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3001         cfi_init_extra_frame_info.
3002         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3003         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3004
3005         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3006         target where necessary.  Add more comments and remove the ones
3007         that don't provide any useful information.
3008
3009         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3010         deprecated_read_register_dummy with
3011         frame_unwind_unsigned_register.
3012
3013         * i386-tdep.c (i386_extract_struct_value_address): Use
3014         regcache_raw_read_unsigned instead of
3015         regcache_cooked_read_unsigned since we know that the register
3016         we're reading isn't a pseudo register.  Rename variable 'val' into
3017         the more descriptive 'addr'.
3018
3019         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3020         (x86_64_push_return_address): Add comment.
3021         (x86_64_pop_frame): Make static.
3022         (examine_argument): Clarify comment.
3023         (x86_64_skip_prologue): Make prolog_expact variable static.
3024
3025         * dwarf2cfi.c: Fix some formatting problems.
3026         (context_cpy, read_encoded_pointer): Clarify comments.
3027
3028         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3029         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3030         i386 target back into x86_64_gdbarch_init.  Add some comments and
3031         remove meaningless ones.
3032
3033 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3034
3035         * complaints.h (struct deprecated_complaint): Rename `struct
3036         complaint'.
3037         * complaints.c (complain): Update.
3038         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3039         incorrect comment indicating that "symfile.h" was being included
3040         for the `struct complaint' definition.
3041         * remote-vx.c: Update.
3042         * objc-lang.c: Update.
3043         * xcoffread.c: Update.
3044         * hpread.c: Update.
3045         * mdebugread.c: Update.
3046         * stabsread.c: Update.
3047         * dwarf2read.c: Update.
3048         * dwarfread.c: Update.
3049         * elfread.c: Update.
3050         * coffread.c: Update.
3051         * stabsread.h: Update.
3052         * dbxread.c: Update.
3053         * buildsym.c: Update.
3054         * gdbtypes.c: Update.
3055         * macrotab.c: Update.
3056
3057 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3058
3059         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3060         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3061         (x86_64_init_abi): ...new function.
3062
3063         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3064         * i386v-nat.c: Include "i386-tdep.h".
3065
3066 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3067
3068         * gdbtypes.c (address_space_name_to_int): Update.
3069         (address_space_int_to_name): Update.
3070         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3071         multi-arch predicate.
3072         (address_class_name_to_type_flags): Ditto.
3073         * gdbarch.h, gdbarch.c: Re-generate.
3074         
3075         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3076
3077 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3078
3079         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3080
3081 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3082
3083         * symtab.h (INIT_SAL): Delete macro.
3084         (init_sal): Export.
3085         * symtab.c (init_sal): New function.
3086
3087         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3088         to init_sal function call.
3089         (find_sal_from_funcs_and_line): Ditto.
3090         (all_sals_for_line): Ditto. 
3091         * breakpoint.c (create_internal_breakpoint): Ditto. 
3092         (create_fork_vfork_event_catchpoint): Ditto. 
3093         (create_exec_event_catchpoint): Ditto. 
3094         (parse_breakpoint_sals): Ditto. 
3095         (watch_command_1): Ditto. 
3096         (handle_gnu_4_16_catch_command): Ditto.
3097         (clear_command): Ditto. 
3098         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3099         * infcmd.c (run_stack_dummy): Ditto. 
3100         * infrun.c (process_event_stop_test): Ditto.
3101         (check_sigtramp2): Ditto.
3102         (step_over_function): Ditto. 
3103         * linespec.c (decode_line_2): Ditto. 
3104         (decode_line_1): Ditto. 
3105         * source.c (line_info): Ditto. 
3106         * symtab.c (find_pc_sect_line): Ditto.
3107
3108 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3109
3110         * dwarf2cfi.c (struct context)
3111         (struct context_reg): Moved to dwarf2cfi.h
3112         (context_alloc, frame_state_alloc, context_cpy):
3113         Made extern instead of static, removed prototypes.
3114         * dwarf2cfi.h (struct context)
3115         (struct context_reg): New, moved from dwarf2cfi.c
3116         (context_alloc, frame_state_alloc, context_cpy):
3117         New prototypes.
3118         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3119         Changed from static to extern.
3120         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3121         (LINUX_SIGCONTEXT_FP_OFFSET)
3122         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3123         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3124         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3125         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3126         set_gdbarch_*() calls now use x86-64 specific functions 
3127         instead of DWARF2 CFI ones.
3128         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3129         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3130         (x86_64_init_extra_frame_info): New prototypes.
3131         
3132 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3133
3134         * linespec.c: #include "parser-defs.h".
3135         Delete prototype for find_template_name_end.
3136         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3137
3138 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3139
3140         * NEWS: add recent mi fixes.
3141         * varobj.c (struct varobj): Add new "updated" flag.
3142         (new_variable): Default "updated" flag to 0.
3143         (varobj_set_value): Set "updated" flag to 1 if value
3144         changes.
3145         (varobj_update): Check varobj "updated" flag before
3146         comparing old and refreshed values.  Fix for
3147         PR gdb/702.
3148
3149 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3150
3151         * parse.c (parse_exp_1): Use BLOCK_START.
3152         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3153         SYMBOL_BLOCK_VALUE.
3154         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3155
3156 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3157
3158         * symtab.c: Delete cplusplus_hint.
3159         Delete prototype for find_template_name_end.
3160
3161 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3162
3163         * symtab.h: Update comment.
3164
3165 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3166
3167         * printcmd.c (address_info): Restore quotes in output.
3168         * valops.c (value_of_local): Restore quotes in error message.
3169
3170 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3171
3172         * symtab.c (symbol_demangled_name): New function.
3173         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3174         turning most of it into a function.
3175         (symbol_demangled_name): Export.
3176
3177 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3178
3179         * valops.c (value_of_local): Restore quotes in error message.
3180
3181 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3182
3183         * symtab.c (symbol_init_language_specific): New function.
3184         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3185         turning most of it into a function.
3186         (symbol_init_language_specific): Export.
3187
3188 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3189
3190         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3191         (dwarf_attr_name): Ditto.
3192         (dwarf_type_encoding_name): Ditto.
3193         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3194         (process_die): Handle DW_TAG_namespace,
3195         DW_TAG_imported_declaration, DW_TAG_imported_module.
3196         (read_namespace): New function.
3197
3198 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3199
3200         * configure.in: Define NEW_PROC_API on Interix too.
3201         * configure: Regenerate.
3202
3203 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3204
3205         * configure: Regenerate using the proper version of autoconf.
3206
3207 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3208
3209         * findvar.c (read_var_value): Temporarily disable TLS code, until
3210         complete TLS support is added.
3211
3212 2002-10-21  Jim Blandy  <jimb@redhat.com>
3213             Elena Zannoni  <ezannoni@redhat.com>
3214
3215         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3216         for thread local storage locations.
3217         (struct symbol): Add objfile field.
3218         (SYMBOL_OBJFILE): Define.
3219         * dwarf2read.c (is_thread_local): New static variable.
3220         (new_symbol): If variable is in thread local fill in address class
3221         and objfile appropriately.
3222         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3223         stack operation.
3224         * printcmd.c (address_info): Print the information for thread
3225         local storage variable.
3226         * findvar.c (read_var_value): In case of thread local variable,
3227         defer to the target vector code to compute address.
3228
3229 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3230
3231         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3232         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3233
3234 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3235
3236         * symtab.h (address_class):  Rename
3237         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3238         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3239         * printcmd.c (address_info): Ditto.
3240         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3241
3242 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3243
3244         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3245         DBREG_DRX macro to acces debug registers.
3246
3247         * Makefile.in (i386obsd-tdep.o): New target.
3248
3249         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3250         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3251
3252         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3253         * config/i386/obsd.mt: New file.
3254         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3255         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3256         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3257         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3258         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3259         * i386obsd-tdep.c: New file.
3260
3261 2002-10-19  Adam Fedor  <fedor@gnu.org>
3262
3263         * objc-exp.y (name_not_typename): Fix invalid comment.  
3264
3265 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3266
3267         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3268         to allocate partial syms and macro byte caches.
3269
3270 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3271
3272         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3273
3274 2002-10-18  Adam Fedor  <fedor@gnu.org>
3275
3276         * stabsread.c (find_name_end): New function.
3277         (define_symbol): Use it.
3278
3279 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3280
3281         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3282         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3283         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3284         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3285
3286 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3287
3288         * symfile.h: Add opaque declaration for struct obstack.
3289         Declare obsavestring to take a const char *.
3290         * symfile.c (obsavestring): Make first argument a const char *.
3291
3292 2002-10-16  Adam Fedor  <fedor@gnu.org>
3293
3294         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3295         names when matching breakpoints in current file.
3296
3297 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3298
3299         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3300         (read_tag_pointer_type): Add address class support.
3301         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3302         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3303         New methods.
3304         * gdbarch.h, gdbarch.c: Regenerate.
3305         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3306         (make_type_with_address_space, recursive_type_dump): Add address
3307         class support.
3308         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3309         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3310         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3311
3312 2002-10-16  Klee Dienes  <kdienes@apple.com>
3313
3314         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3315         to get the last character of a char[] buffer, not
3316         name[sizeof(vptr_name)-1].
3317
3318 2002-10-14  Adam Fedor  <fedor@gnu.org>
3319
3320         * symtab.h: New objc_specific struct.
3321         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3322         (SYMBOL_DEMANGLED_NAME): Likewise.
3323
3324 2002-10-14  Adam Fedor  <fedor@gnu.org>
3325
3326         * symfile.c (init_filename_language_table): Add ObjC file extension.
3327
3328 2002-10-14  Adam Fedor  <fedor@gnu.org>
3329
3330         * utils.c (puts_filtered_tabular): New function.
3331         (fprintf_symbol_filtered): Get ObjC demangled name.
3332         * defs.h (puts_filtered_tabular): Declared.
3333
3334 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3335
3336         * c-lang.h (c_type_print_varspec_prefix): Delete.
3337         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3338         ``need_post_space'' parameter.  Adjust all callers.
3339
3340 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3341  
3342         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3343         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3344         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3345         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3346
3347 2002-10-13  Adam Fedor  <fedor@gnu.org>
3348
3349         * source.c (print_source_lines): Update comments.
3350
3351 2002-10-13  Adam Fedor  <fedor@gnu.org>
3352
3353         * valops.c (value_of_local): New function.
3354         (value_of_this): Use it.
3355         * value.h (value_of_local): Declared.
3356
3357 2002-10-13  Adam Fedor  <fedor@gnu.org>
3358
3359         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3360         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3361
3362 2002-10-12  Adam Fedor  <fedor@gnu.org>
3363
3364         * language.c (binop_result_type): Add language_objc to case.
3365         (integral_type): Likewise.
3366         (character_type): Likewise.
3367         (string_type): Likewise.
3368         (boolean_type): Likewise.
3369         (structured_type): Likewise.
3370         (binop_type_check): Likewise.
3371
3372 2002-10-11  Adam Fedor  <fedor@gnu.org>
3373
3374         * printcmd.c (address_info): Print 'self' for ObjC.
3375
3376 2002-10-11  Adam Fedor  <fedor@gnu.org>
3377
3378         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3379         OP_SELF.
3380
3381 2002-10-11  Adam Fedor  <fedor@gnu.org>
3382
3383         * language.h (CAST_IS_CONVERSION): Add language_objc.
3384
3385 2002-10-11  Adam Fedor  <fedor@gnu.org>
3386
3387         * defs.h (enum language): Add language_objc.
3388
3389 2002-10-11  Klee Dienes  <kdienes@apple.com>
3390
3391         * corefile.c (read_memory_typed_address): New function.
3392         * gdbcore.h (read_memory_typed_address): Add prototype.
3393         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3394         to read a value destined for a CORE_ADDR, not read_memory_integer.
3395         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3396         (f77_get_dynamic_lowerbound): Ditto.
3397
3398 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3399
3400         * utils.c (string_to_core_addr): After turning string into
3401         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3402         which will do necessary sign-extension, etc.
3403
3404 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3405
3406         * c-exp.y (THIS): Delete token and grammar rule.
3407         (yylex): Don't return THIS.
3408         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3409         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3410         * demangle.c (cplus_markers): Update comment.  Put '$'
3411         first.  Remove CPLUS_MARKER.
3412         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3413         * jv-exp.y (THIS): Delete token and grammar rule.
3414         (yylex): Don't return THIS.
3415         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3416         * objc-exp.y (THIS): Delete token and grammar rule.
3417         (yylex): Don't return THIS.
3418         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3419         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3420         (read_member_functions): Likewise for opname.
3421         (read_tilde_fields): Use is_cplus_marker.
3422
3423         * defs.h (CPLUS_MARKER): Don't define.
3424         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3425         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3426         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3427         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3428         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3429
3430         * config/i386/tm-i386v4.h: Delete file.
3431         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3432         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3433         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3434         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3435         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3436         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3437         * config/i386/i386v4.mt (TM_FILE): Likewise.
3438         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3439
3440 2002-10-10  Marko Mlinar  <markom@opencores.org>
3441
3442         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3443         accidentially not commited 2002-10-09
3444         * gdbarch.h, gdbarch.c: Re-generate.
3445
3446 2002-10-09  Marko Mlinar  <markom@opencores.org>
3447
3448         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3449         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3450         * gdbarch.h, gdbarch.c: Re-generate.
3451
3452 2002-10-08  Petr Sorfa <petrs@caldera.com>
3453
3454         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3455
3456         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3457         so we can work on more than one compilation unit at a time.  This
3458         helps prepare GDB to handle inter-CU die references.
3459         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3460         the code to be defined before struct comp_unit_head.
3461         (comp_unit_head): Added new members - offset, cu_head,
3462         begin_die, next and dwarf2_abbrevs.
3463         (dwarf2_abbrevs): Removed single static var; now member of
3464         struct comp_unit_head.
3465         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3466         members.
3467         (psymtab_to_symtab_1): Changed to work with the new
3468         struct comp_unit_head.
3469         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3470         constructs the dwarf2_abbrevs[] inside the cu_header.
3471         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3472         dwarf2_abbrev table to clean up.
3473         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3474         handling of dwarf2_abbrevs inside the cu_header.
3475         (read_partial_die): Now supports the call to the new
3476         dwarf2_lookup_abbrev.
3477         (read_full_die): Now supports the call to the new
3478         dwarf2_lookup_abbrev.
3479
3480 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3481
3482         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3483         insure that shell variables, such as "transformed_name" are propagated
3484         to later shell statements in rule.
3485
3486 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3487
3488         * config/i386/nm-i386sco.h: Add protection against
3489         multiple-inclusion.  Include "i386/nm-i386v.h".
3490         (REGISTER_U_ADDR): Remove define.
3491         (i386_register_u_addr): Remove prototype.
3492
3493 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3494
3495         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3496         before treating it as a single-step event.
3497
3498 2002-10-03  Adam Fedor  <fedor@gnu.org>
3499
3500         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3501         (objc_demangle): Remove assignment in if statements, Replace
3502         free with xfree.
3503         (add_msglist): Likewise.
3504         (end_msglist): Likewise.
3505         (complare_selectors): Likewise.
3506         (selectors_info): Likewise.
3507         (compare_classes): Likewise.
3508         (classes_info): Likewise.
3509         (print_object_command): Likewise.
3510         (find_objc_msgcall_submethod): Replace PTR with void *.
3511         * objc-lang.h: Remove check for __STDC__.
3512
3513 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3514
3515         * ui-out.h (ui_out_field_fmt_int): New prototype.
3516         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3517         of field width and alignment.
3518         * stack.c (print_frame_info_base): When printing frame level, use
3519         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3520         PR gdb/192
3521
3522 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3523
3524         * MAINTAINERS: Add self to Write After Approval list.
3525
3526 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3527
3528         * infcmd.c (interrupt_target_command_wrapper): Delete.
3529         (interrupt_target_command): Make non static.
3530         (nofp_registers_info): Make static.
3531         * stack.c (return_command_wrapper): Delete.
3532         (return_command): Make non static.
3533
3534 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3535
3536         * event-top.c (gdb_setup_readline): New function. Code moved from
3537         _initialize_event_loop().
3538         (_initialize_event_loop): Call gdb_setup_readline().
3539
3540 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3541
3542         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3543         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3544         * gdbarch.h, gdbarch.c: Re-generate.
3545
3546 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3547
3548         Fix PR gdb/778
3549         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3550         before recursing.
3551         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3552         of fill_in_vptr_fieldno.
3553
3554 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3555
3556         * inferior.h (registers_info, stepi_command, nexti_command,
3557         continue_command, interrupt_target_command): Export from infcmd.c.
3558         * frame.h (args_info, selected_frame_level_changed_hook,
3559         return_command): Export from stack.c.
3560         * v850ice.c (stepi_command, nexti_command, continue_command): use
3561         prototypes from inferior.h.
3562         * tracepoint.c (registers_info, args_info, locals_info): Use
3563         prototypes from frame.h and inferior.h.
3564         * Makefile.in (mi-main.o): Add dependency on frame.h.
3565
3566 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3567
3568         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3569         value in register 3 adjusted by ppc_gp0_regnum.
3570
3571         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3572
3573 2002-10-02  Marko Mlinar <markom@opencores.org>
3574
3575         * MAINTAINERS: Add myself to the Write After Approval list.
3576
3577 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3578
3579         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3580         of the section for the N64 ABI, fixed.
3581
3582         * config/mips/tm-irix6.h: Include solib.h.
3583
3584 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3585
3586         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3587         GNU operators.
3588
3589 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3590
3591         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3592         and that "mi0" syntax has been removed.
3593
3594 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3595
3596         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3597         * ppc-sysv-tdep.c: #include "gdb_string.h".
3598         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3599         pacify GCC.
3600
3601 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3602
3603         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3604         "vrsave"'s register number.
3605
3606 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3607
3608         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3609         use frame_unwind_signed_register to obtain the PC.
3610         (mips_frame_chain): Handle a generic dummy frame.
3611         (mips_init_extra_frame_info): When a generic dummy frame, don't
3612         re-compute the frame base.
3613         (mips_pop_frame): Handle generic dummy frames.
3614         (mips_gdbarch_init): When generic dummy frames, set
3615         use_generic_dummy_frames, push_dummy_frame to
3616         generic_push_dummy_frame, pc_in_call_dummy to
3617         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3618         generic_save_dummy_frame_tos.
3619
3620 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3621
3622         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
3623         against TOP when TOP was explictly set.
3624         (generic_push_dummy_frame): Set TOP to zero.
3625
3626 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
3627
3628         * event-loop.c (start_event_loop): Rename variable 'result' to
3629         'gdb_result', to avoid conflicts with upcoming intepreters changes.
3630
3631 2002-09-30  Keith Seitz  <keiths@redhat.com>
3632
3633         * gdb-events.sh (selected_thread_changed): New event.
3634         * gdb-events.c: Regenerated.
3635         * gdb-events.h: Regenerated.
3636
3637 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3638
3639         * MAINTAINERS: Add self to Write After Approval list.
3640
3641 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
3642
3643         * disasm.c: New file.  
3644         * disasm.h: New file.  
3645         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3646         (compare_lines): Ditto.
3647         (dump_insns): Ditto.
3648         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3649         argument.
3650         (do_assembly_only): Ditto.
3651         (do_disassembly): Renamed to gdb_disassembly and moved to
3652         disasm.c.  Sdded uiout argument.
3653         * Makefile.in: Add new files.  Reorder SFILES list. Update
3654         dependencies.  Include libgdb.a later in the insight executable.
3655
3656 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3657
3658         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3659         bfd/elf64-alpha-fbsd.c.
3660
3661 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3662
3663         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3664         i386gnu-tdep.c.
3665
3666 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
3667
3668         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3669         __FUNCTION__.
3670         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3671         function name.
3672         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3673         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3674         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3675         (S_msg_sig_post_reply): Ditto.
3676         
3677 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
3678
3679         * sh-tdep.c (sh_use_struct_convention): Use definition according
3680         to ABI.
3681         (sh_push_arguments): Store in register with correct endianess.
3682         (sh_default_store_return_value): Ditto.
3683         (sh_gdbarch_init): Set sizeof long double to 8.
3684
3685 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
3686
3687         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3688         Fix some whitespace problems.
3689
3690 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3691
3692         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3693         (mcore-tdep.o): Ditto.
3694         (ns32k-tdep.o): Ditto.
3695         (ns32knbsd-tdep.o): Ditto.
3696         (sh3-rom.o): Ditto.
3697         (vax-tdep.o): Ditto.
3698         * cris-tdep.c: #include "gdb_string.h"
3699         * mcore-tdep.c: Ditto.
3700         * ns32k-tdep.c: Ditto.
3701         * ns32knbsd-tdep.c: Ditto.
3702         * sh3-rom.c: Ditto.
3703         * vax-tdep.c: Ditto.
3704
3705 2002-09-27  David Carlton  <carlton@math.stanford.edu>
3706
3707         * config/djgpp/fnchange.lst: Add entries for
3708         gdb/testsuite/gdb.c++/m-static files.
3709
3710 2002-09-27  Jim Wilson  <wilson@redhat.com>
3711
3712         * MAINTAINERS: Add myself to the Write After Approval list.
3713
3714 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
3715
3716         * mips-tdep.c (find_proc_desc): Initialize startaddr.
3717
3718
3719 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3720
3721         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3722         frame.
3723
3724 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3725
3726         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3727         (rs6000_struct_return_address): Delete variable.
3728         (rs6000_store_struct_return): Update.
3729         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3730         deprecated_extract_struct_value_address.
3731         (rs6000_frame_align): New function.
3732         (rs6000_gdbarch_init): Set frame_align.
3733
3734 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
3735
3736         From Grace Sainsbury <graces@redhat.com>:
3737         * Makefile.in (gdbtk-main.o): New target.
3738         (gdb.o): New target.
3739         (main_h): Define.
3740         (main.o): Update dependencies.
3741         (gdb$(EXEEXT)): Add gdb.o.
3742         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3743         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3744         (SUBDIR_GDBTK_CLEAN): Set.
3745         (install-gdbtk): Install the insight binary.
3746         (uninstall-gdbtk): New target.
3747         (all-gdbtk, clean-gdbtk): New rule.
3748         * top.c (use_windows): Default to zero.
3749         * main.c: Include "main.h".
3750         (main): Delete.
3751         (struct captured_main_args): Delete.
3752         (gdb_main): New function.
3753         * main.h: New file.
3754         * gdb.c: New File.
3755
3756 2002-09-25  Andrew Cagney  <cagney@redhat.com>
3757
3758         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3759         (frame_map_regnum_to_name): New function.
3760         (frame_map_name_to_regnum): New function.
3761         * frame.h (frame_map_name_to_regnum): Declare.
3762         (frame_map_regnum_to_name): Declare.
3763         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3764         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3765         * parse.c: Do not include "builtin-regs.h".
3766         (target_map_name_to_register): Delete function.
3767         (write_dollar_variable): Use frame_map_name_to_regnum.
3768         * parser-defs.h (target_map_name_to_register): Delete declaration.
3769         * expprint.c: Include "frame.h".
3770         (print_subexp): Use frame_map_regnum_to_name.
3771         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3772         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3773
3774 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
3775
3776         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3777         wasn't saved, and the next innermost frame is a dummy, return the
3778         dummy frame's link register.
3779
3780 2002-09-24  Jim Blandy  <jimb@redhat.com>
3781
3782         Fix from Paul Breed:
3783         * main.c (captured_main): Add a `break' after the case for 'b'.
3784
3785 2002-09-24  Keith Seitz  <keiths@redhat.com>
3786
3787         * varobj.c (c_type_of_child): Use get_target_type instead
3788         of TYPE_TARGET_TYPE.
3789
3790 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3791
3792         * source.c (get_current_or_default_source_symtab_and_line): Remove
3793         function.
3794         (set_default_source_symtab_and_line): New function. Attempts to
3795         determine a source file to list lines from if one is not currently
3796         defined.
3797         (get_current_source_symtab_and_line): Initialize sal.pc and
3798         sal.end fields.
3799         (set_current_source_symtab_and_line): Mark argument as const.
3800         * source.h: Update declarations and comments.
3801         * linespec.c (decode_line_1): Replace call to removed routine above.
3802         * stack.c (print_frame_info_base): Ditto.
3803         * cli/cli-cmds.c (edit_command): Ditto.
3804         (list_command): Ditto.
3805
3806 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
3807
3808         * source.c (get_current_or_default_source_symtab_and_line): Initialize
3809         sal.pc and sal.end fields.
3810         (get_current_or_default_source_symtab_and_line): Ditto.
3811         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3812         so we do not cause a new source symtab to be searched for (reverting an
3813         unintentional change from the 2002-09-20 patch).
3814         * scm-lang.c (scm_unpac): Ditto.
3815
3816 2002-09-21  Andrew Cagney  <cagney@redhat.com>
3817
3818         * complaints.c (symfile_explanations): Remove new-line from
3819         ``isolated_message''.
3820         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3821         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3822
3823 2002-09-20  Nick Clifton  <nickc@redhat.com>
3824         
3825         * NEWS: Announce that V850EA ISA is no longer supported.
3826         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3827
3828 2002-09-20  David Carlton  <carlton@math.stanford.edu>
3829
3830         * Makefile.in (c-lang.o): Correct dependencies.
3831         (utils.o): Gather dependencies.
3832         (charset.o): Move.
3833         * c-lang.c: #include "gdb_string.h"
3834
3835 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3836
3837         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
3838         * cli/cli-cmds.c (list_command): New function.  Implements the new
3839         cli edit command.
3840         (_init_cli_cmds): Add new command definition.
3841         * gdb.1: Document edit command.
3842         * doc/gdb.texinfo: Document edit command.
3843
3844 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
3845
3846         * source.c: Make global variables current_source_symtab and
3847         current_source_line static.
3848         (list_command): Moved to cli/cli-cmds.c.
3849         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3850         (get_first_line_listed): New accessor function.
3851         (get_lines_to_list): New accessor function.
3852         (get_current_source_symtab_and_line): New function. Retrieves the
3853         position in the source code that we consider current.
3854         (get_current_or_default_source_symtab_and_line): New function.
3855         Like the above but attempts to determine a default position if one
3856         is not currently defined.
3857         (set_current_source_symtab_and_line): New function. Sets the source
3858         code position considered current and returns the previously set one.
3859         (clear_current_source_symtab_and_line): Reset stored information about
3860         a current source line.
3861         (_initialize_source): Remove registration for the "list" command and
3862         its alias.
3863         * source.h: Add declarations for the new functions above.
3864         * symtab.h: Remove declarations for the global variables mentioned
3865         above.
3866         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3867         obtain current source line.
3868         * linespec.c (decode_line_1): Ditto.
3869         * macroscope.c (default_macro_scope): Ditto.
3870         * scm-lang.c (scm_unpac): Ditto.
3871         * stack.c (print_frame_info_base): Ditto.
3872         * symfile.c (clear_symtab_users): Ditto.
3873         * symtab.c (decode_line_spec): Ditto.
3874         * cli/cli-cmds.c (list_command): Moved here from source.c.
3875         (ambiguous_line_spec): Moved here from source.c.
3876         (_init_cli_cmds): Add definition for "list" and its alias.
3877         * Makefile.in: Update dependencies.
3878
3879 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3880
3881         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3882         with what gcc thinks is correct.
3883
3884 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
3885
3886         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3887         multiple register push instruction.
3888
3889 2002-09-19  Jim Blandy  <jimb@redhat.com>
3890
3891         Add support for distinct host and target character sets.
3892         * charset.c, charset.h: New files.
3893         * c-exp.y: #include "charset.h".
3894         (yylex): Convert character and string literals to the target
3895         character set, before returning them as the semantic value of the
3896         token.
3897         * c-lang.c: #include "charset.h".
3898         (c_emit_char): Use charset-specific methods to recognize
3899         characters with backslash escape forms, to decide which characters
3900         to print literally and which to print using numeric escape
3901         sequences, and to convert target characters to host characters
3902         before printing.
3903         * utils.c: #include "charset.h".
3904         (no_control_char_error): New function.
3905         (parse_escape): Use charset-specific methods to recognize
3906         backslash escapes, parse `control character' notation, and convert
3907         characters from the host character set to the target character set.
3908         * configure.in: Set the default host character set.
3909         Check where to find iconv, and what its argument types might be.
3910         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3911         * Makefile.in (SFILES): List charset.c.
3912         (COMMON_OBS): List charset.o.   
3913         (charset.o): New rule.
3914         (charset_h): New header dependency variable.
3915         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3916         (LIBICONV): New variable, set by configure.
3917         (CLIBS): Include $(LIBICONV) here.
3918         * aclocal.m4, config.in, configure: Regenerated.
3919
3920 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
3921
3922         * ada-exp.y: Add missing semicolons to end rules. Fixes a
3923         bison 1.35 warning.
3924
3925 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
3926
3927         * gdb_mbuild.sh: New file.
3928
3929 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
3930
3931         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3932
3933 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3934
3935         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3936         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3937         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3938         valops.c, value.h: Revert previous change.
3939         
3940 2002-09-18  Michael Snyder  <msnyder@redhat.com>
3941
3942         Preliminary support for Objective-C:
3943         * defs.h (language_objc): New enum value.
3944         (puts_filtered_tabular): Declaration only, exported from utils.c.
3945         (skip_quoted): Delete, declared in completer.h.
3946         * c-exp.y: Include completer.h.
3947         * p-exp.y: Ditto.
3948         * jv-exp.y: Ditto.
3949         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
3950         New operator enum values.
3951         * language.h (CAST_IS_CONVERSION): Test for language_objc.
3952         * language.c (binop_result_type): Handle language_objc case.
3953         (integral_type, character_type, string_type, boolean_type,
3954         structured_type, binop_type_check): Ditto.
3955         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3956         (struct objc_specific): Add to general_symbol_info.
3957         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3958         (SYMBOL_DEMANGLED_NAME): Handle objc case.
3959         * parser-defs.h (struct objc_class_str): New struct type.
3960         (start_msglist, end_msglist, add_msglist): Declaration only,
3961         exported from objc-lang.c.
3962         * value.h (value_of_local, value_nsstring, 
3963         call_function_by_hand_expecting_type): Exported from valops.c.
3964         * valops.c (find_function_addr): Export.
3965         (call_function_by_hand_expecting_type): New function.
3966         (value_of_local): New function.
3967         * symfile.c (init_filename_language_table): Add ".m" extension
3968         for Objective-C.
3969         * utils.c (puts_filtered_tabular): New function.
3970         (fprintf_symbol_filtered): Add objc demangling support (disabled).
3971         (set/show demangle): Extend help-string to refer to ObjC.
3972         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3973         * stabsread.c (symbol_reference_defined): Objective-C symbols
3974         may contain colons: make allowances when scanning stabs strings
3975         for colons.
3976         (objc_find_colon): New function.
3977         * printcmd.c (address_info): If language == objc then print
3978         "self" instead of "this".
3979         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3980         OP_NSSTRING, and OP_SELF.
3981         (prefixify_subexp): Ditto.
3982         * source.c (print_source_lines): Mention objc in comment.
3983         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3984         method names.
3985
3986 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
3987
3988         * complaints.h: Update copyright.
3989         (struct complaints): Declare.
3990         (struct complaint): Make `message' constant.
3991         (internal_complaint): Declare.
3992         (complaint): Declare.
3993         (complaint_root): Delete declaration.
3994         (symfile_complaints): Delete declaration.
3995         (struct complaints): Add opaque declaration.
3996         (clear_complaints): Add a complaints parameter.
3997         * complaints.c: Update copyright.
3998         (enum complaint_series): Define.
3999         (complaint_root): Delete.
4000         (struct complaints): Define.
4001         (complaint_sentinel, symfile_complaint_book): New variables.
4002         (symfile_explanations, symfile_complaints): New variables.
4003         New variables.
4004         (get_complaints): New function.
4005         (vcomplaint): New function.
4006         (complaint): New function.
4007         (internal_complaint): New function.
4008         (complain): Call vcomplain with symfile_complaint.
4009         (clear_complaints): Rewrite.
4010         (_initialize_complaints): Use add_setshow_command.
4011         * Makefile.in (complaints.o): Update dependencies.
4012         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4013         to call to clear_complaints.
4014         (new_symfile_objfile, reread_symbols): Ditto.
4015         (oldsyms_complaint): Delete.
4016         (empty_symtab_complaint, unknown_option_complaint): Delete.
4017         (free_named_symtabs): Use complaint instead of complain.
4018
4019 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4020
4021         Contributed by Apple Computer, Inc.  Merged with current sources
4022         by Adam Fedor <fedor@doc.com> [cagney].
4023         
4024         * objc-lang.c: First clean-up round: comments, indentation.
4025         * objc-lang.h: Ditto.
4026         * objc-lang.y: Ditto.
4027
4028 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4029
4030         * maint.c (maintenance_internal_error): Print the parameter as the
4031         error message.
4032         (maintenance_internal_warning): New function.
4033         (_initialize_maint_cmds): Add command `maint internal-warning'.
4034
4035         * defs.h (internal_warning, internal_vwarning): Declare.
4036         * utils.c (struct internal_problem): Define.
4037         (internal_vproblem): New function.
4038         (internal_warning): New function.
4039         (internal_vwarning): New function.
4040         (internal_warning_problem, internal_error_problem): New variables.
4041         (internal_verror): Just call internal_vproblem.
4042
4043 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4044
4045         * objc-lang.c: New file, support for Objective-C.
4046         Preliminary check-in, not yet integrated into gdb.
4047         * objc-lang.h: New file.
4048         * objc-exp.y:  New file.
4049
4050 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4051
4052         * infrun.c (signal_stop_update): Convert definition to ISO C.
4053         (signal_print_update): Ditto.
4054         (signal_pass_update): Ditto.
4055         * inflow.c (terminal_save_ours): Ditto.
4056
4057         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4058         comments.
4059         
4060         * config/djgpp/fnchange.lst: Handle name clashes between
4061         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4062         bfd/coff-tic80.c.
4063
4064         * i386-linux-tdep.h: Fix tipo.
4065
4066 2002-09-18  Adam Fedor  <fedor@gnu.org>
4067
4068         * MAINTAINERS: Add myself to the Write After Approval list.
4069
4070 2002-09-18  Jim Blandy  <jimb@redhat.com>
4071
4072         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4073         texthigh and textlow to reader-specific structs caused
4074         objfile_relocate to miss them.  This is fixable, but the work that
4075         the change was supposed to prepare GDB for never got done anyway.
4076
4077 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4078
4079         * MAINTAINERS: Alphabetize Write After Approval list.
4080
4081 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4082
4083         Fix PR gdb/709
4084         * values.c (value_static_field): Call read_var_value.
4085
4086 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4087
4088         * valops.c (hand_function_call): Align the initial stack pointer
4089         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4090         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4091         return value.
4092         * mips-tdep.c (mips_frame_align): New function.
4093         (mips_gdbarch_init): Set frame_align.
4094         * gdbarch.sh (FRAME_ALIGN): New method.
4095         * gdbarch.h, gdbarch.c: Re-generate.
4096
4097 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4098
4099         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4100         registers.
4101
4102 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4103
4104         * NEWS: Mention that MIPS $fp behavior changed.
4105         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4106         reference to FP_REGNUM.
4107         (mipsnbsd_cannot_store_register): Ditto.
4108         * mips-linux-nat.c: Update copyright.
4109         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4110         (mips_linux_cannot_store_register): Ditto.
4111         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4112         * config/mips/tm-mips.h: Update copyright.
4113         (FP_REGNUM): Delete macro.
4114         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4115         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4116         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4117         (mips_r3041_reg_names, mips_r3051_reg_names)
4118         (mips_r3081_reg_names): Replace "fp" with "".
4119         Fix PR gdb/480.
4120
4121 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4122
4123         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4124         generic_read_register_dummy() (PR gdb/703).
4125         (avr_push_return_address): #if 0 out unused vars.
4126         (avr_gdbarch_init): Enable use of avr_push_return_address().
4127
4128 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4129
4130         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4131         RTE will take care of it.
4132
4133 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4134
4135         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4136         invalid, return SP_REGNUM.
4137
4138 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4139
4140         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4141         point registers without sign extension.
4142
4143 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4144
4145         * blockframe.c (deprecated_read_register_dummy): Rename
4146         generic_read_register_dummy.
4147         * frame.c (frame_unwind_signed_register): New function.
4148         (frame_unwind_unsigned_register): New function.
4149         * frame.h (frame_unwind_signed_register): Declare.
4150         (frame_unwind_unsigned_register): Declare.
4151         (deprecated_read_register_dummy): Rename
4152         generic_read_register_dummy.
4153
4154         * h8300-tdep.c (h8300_frame_chain): Update.
4155         (h8300_frame_saved_pc): Update.
4156         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4157         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4158         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4159         (s390_frame_chain): Update.
4160         * v850-tdep.c (v850_find_callers_reg): Update.
4161         (v850_frame_saved_pc): Update.
4162         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4163         (m32r_find_callers_reg): Update.
4164         (m32r_frame_saved_pc): Update.
4165         * sh-tdep.c (sh_find_callers_reg): Update.
4166         (sh64_get_saved_pr): Update.
4167         (sh_init_extra_frame_info): Update.
4168         (sh_init_extra_frame_info): Update.
4169         (sh64_init_extra_frame_info): Update.
4170         (sh64_init_extra_frame_info): Update.
4171         * mcore-tdep.c (mcore_find_callers_reg): Update.
4172         (mcore_frame_saved_pc): Update.
4173         (mcore_init_extra_frame_info): Update.
4174         * i386-tdep.c (i386_frame_saved_pc): Update.
4175         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4176         (ia64_init_extra_frame_info): Update.
4177         (ia64_init_extra_frame_info): Update.
4178         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4179         * cris-tdep.c (cris_init_extra_frame_info): Update.
4180         * avr-tdep.c (avr_frame_chain): Update.
4181         (avr_init_extra_frame_info): Update.
4182         (avr_frame_saved_pc): Update.
4183         * arm-tdep.c (arm_find_callers_reg): Update.
4184         (arm_init_extra_frame_info): Update.
4185         (arm_frame_saved_pc): Update.
4186
4187 2002-09-17  Tom Tromey  <tromey@redhat.com>
4188
4189         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4190         is "'".
4191
4192 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4193
4194         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4195         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4196         NEXT_PROLOGUE_INSN.
4197         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4198         NEXT_PROLOGUE_INSN.
4199
4200 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4201
4202         * osfsolib.c: Remove file, replaced by solib-osf.c.
4203         * Makefile.in: Remove compilation rules for osfsolib.c.
4204
4205 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4206
4207         * cp-valprint.c (cp_print_class_method): Correct args to
4208         check_stub_method_group.
4209
4210 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4211
4212         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4213         `set architecture'.  Unify naming convention of functions.
4214         (h8300_skip_prologue): Improve prologue analysis.
4215         (h8300_push_arguments): Rewritten to more closely match GCC's
4216         bizarre argument-passing behavior, along with the comment describing
4217         said behavior.
4218         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4219         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4220         sim, remote-e7000.c, remote-hms.c and remote.c
4221
4222 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4223
4224         * i386-tdep.c (gdb_print_insn_i386): Removed.
4225         (i386_print_insn): New function.
4226         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4227         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4228         tm_print_insn_info.
4229
4230 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4231
4232         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4233         zero.
4234
4235 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4236
4237         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4238         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4239         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4240
4241 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4242
4243         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4244
4245 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4246
4247         * gdbtypes.c (check_stub_method): Make static.
4248         (check_stub_method_group): New function.
4249         * gdbtypes.h: Update prototypes.
4250         * cp-support.c: New file.
4251         * cp-support.h: New file.
4252
4253         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4254         (update_method_name_from_physname): New function.
4255         (read_member_functions): Correct method names for operators
4256         and v3 constructors/destructors.  Separate v2 constructors and
4257         destructors.
4258         * Makefile.in (stabsread.o): Update dependencies.
4259         (SFILES): Add cp-support.c.
4260         (COMMON_OBS): Add cp-support.o.
4261         (cp_support_h, cp-support.o): Add.
4262
4263         * cp-valprint.c (cp_print_class_method): Call
4264         check_stub_method_group instead of check_stub_method.  Remove
4265         extraneous QUITs.
4266         * p-valprint.c (pascal_object_print_class_method): Likewise.
4267         * valops.c (search_struct_method): Likewise.
4268         (find_method_list, value_struct_elt_for_reference): Likewise.
4269
4270 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4271
4272         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4273         * gdbarch.h, gdbarch.c: Regenerate.
4274
4275 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4276
4277         * frame.c (find_saved_register): Delete function.
4278         * frame.h (find_saved_register): Delete declaration.
4279         Fix PR gdb/631.
4280
4281 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4282
4283         * mips-tdep.c (read_next_frame_reg): Re-hack using
4284         frame_register_unwind.
4285
4286 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4287
4288         * mips-tdep.c (mips_get_saved_register): Re-hack using
4289         frame_register_unwind.
4290
4291 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4292
4293         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4294         vector. Will be useful for Interix.  
4295         * gdbarch.h, gdbarch.c: Regenerate.
4296
4297         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4298         name of the malloc function by NAME_OF_MALLOC.
4299
4300 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4301
4302         * value.h (find_function_in_inferior): Add const keyword to
4303         one of the parameters. Allows us to invoke this function with
4304         a const char *.
4305         * valops.c (find_function_in_inferior): Likewise.
4306
4307 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4308
4309         * exec.c (xfer_memory): Fix compilation warning with old versions
4310         of GCC.
4311         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4312
4313 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4314
4315         * symtab.h: Run through gdb_indent.h.
4316         Add 2002 to Copyright year list.
4317
4318 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4319
4320         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4321         mach constants.
4322         * MAINTAINERS: Add myself to write after approval list.
4323
4324 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4325
4326         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4327
4328 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4329
4330         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4331         Interix.
4332
4333 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4334
4335         * procfs.c (do_detach): Clear current signal, not just fault.
4336         Corrects problem with breakpoint trap signal leaking to detached
4337         process on Tru64.
4338
4339 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4340
4341         * buildsym.c (finish_block): Protect against null pointer.
4342
4343 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4344
4345         * infcmd.c (default_print_registers_info): Send all output to
4346         ``file'' instead of ``gdb_stdout''.
4347
4348 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4349
4350         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4351         LONGEST, and use signed register read (addresses are sign-
4352         extended for mips).
4353
4354 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4355
4356         * event-loop.c (gdb_do_one_event): Make public.
4357         * event-loop.h (gdb_do_one_event): Declare.
4358
4359 2002-09-10  Jeff Law  <law@redhat.com>
4360
4361         * infttrace.c (child_resume): Simplify and rework to avoid
4362         TT_PROC_CONTINUE.
4363
4364 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4365
4366         * printcmd.c (print_scalar_formatted): "len" is the number of
4367         target bytes, NOT the number of target bits.
4368
4369 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4370
4371         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4372         * top.c (init_main): Set rl_terminal_name.
4373
4374 2002-09-08  Aidan Skinner <aidan@velvet.net>
4375
4376         * ada-lang.c (ada_array_bound, ada_type_match,
4377         _initialize_ada_language): Fix K&R definitions.
4378         * ada-tasks.c (get_current_task): Fix K&R definitions.
4379         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4380                         
4381 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4382
4383         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4384         Add XP.
4385
4386 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4387
4388         * i386-tdep.c (i386_register_virtual_type,
4389         i386_register_convertible, i386_register_convert_to_virtual,
4390         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4391         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4392         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4393         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4394         Don't set push_arguments twice.
4395
4396         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4397         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4398         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4399         sigtramp_end to NULL.
4400         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4401         defines.
4402         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4403
4404         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4405         whitespace.
4406
4407         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4408         * gdbarch.h, gdbarch.c: Re-generate.
4409         * blockframe.c (find_pc_sect_partial_function): Convert to use
4410         SIGTRAMP_START_P predicate.
4411
4412 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4413
4414         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4415         generic_dummy_frame method and old method.  Also distinguish
4416         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4417         (arm_extract_return_value): Use new regcache method.
4418
4419         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4420         adjustment that doesn't conform to the ABI.
4421         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4422         saved regcache, not from current regcache.
4423
4424 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4425
4426         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4427         * README: Update.
4428
4429 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4430
4431         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4432         if arm_apcs_32 is false.
4433
4434 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4435
4436         GDB 5.3 branch created.
4437
4438 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4439
4440         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4441         generic_unwind_get_saved_register.
4442
4443 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4444
4445         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4446         argument (PR gdb/653).  Update call to smash_to_method_type.
4447         (read_structure_scope): Update call to dwarf2_add_member_fn.
4448
4449 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4450
4451         * x86-64-linux-tdep.c: Include gdb_string.h
4452         * x86-64-linux-nat.c: Ditto.
4453
4454 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4455
4456         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4457         when YYDEBUG is set to 1.  
4458         * c-exp.y: Likewise.
4459         * f-exp.y: Likewise.
4460         * jv-exp.y: Likewise.
4461         * m2-exp.y: Likewise.
4462         * p-exp.y: Likewise.
4463
4464 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4465
4466         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4467         dependency list.
4468         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4469         solib_svr4_fetch_link_map_offsets to
4470         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4471         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4472         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4473         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4474         solib-svr4.o, and solib-legacy.o.
4475         * config/i386/tm-nbsd.h: Include solib.h.
4476
4477 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4478
4479         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4480         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4481         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4482         comment noting that this needs its own target configuration.
4483         * config/i386/nbsd.mt: New file.
4484         * config/i386/nbsdaout.mt: Remove.
4485         * config/i386/nbsdelf.mt: Ditto.
4486         * config/i386/tm-nbsdaout.h: Ditto. 
4487
4488 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4489
4490         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4491         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4492         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4493         tdep->sigtramp_end.
4494         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4495         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4496         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4497
4498 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4499
4500         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4501         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4502         * i386-tdep.h (i386bsd_init_abi): New prototype.
4503         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4504         function declaration.
4505         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4506         for NetBSD-a.out or NetBSD-ELF.
4507         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4508         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4509         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4510         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4511         and nbsd-tdep.h.
4512         (i386nbsd_pc_in_sigtramp): New function.
4513         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4514         i386nbsd_pc_in_sigtramp.
4515         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4516         and i386nbsdelf_init_abi OS ABI handlers.
4517         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4518         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4519
4520 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4521
4522         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4523         registers if the target really has them.
4524
4525 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4526
4527         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4528         than nbsd-tdep.h.
4529
4530 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4531
4532         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4533         list.
4534         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4535         (alphanbsd_skip_sigtramp_frame): New functions. 
4536         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4537         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4538         to alphanbsd_sigcontext_addr. 
4539
4540 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4541
4542         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4543         list.
4544         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4545         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4546         nbsd_pc_in_sigtramp. 
4547         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4548         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4549         * nbsd-tdep.c: Include gdb_string.h.
4550         (nbsd_pc_in_sigtramp): New function. 
4551         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4552         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4553         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4554         ppcnbsd_pc_in_sigtramp. 
4555         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4556         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4557         shnbsd_pc_in_sigtramp. 
4558         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4559         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4560         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4561
4562 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4563
4564         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4565         watchpoints to NULL.
4566         (insert_breakpoints): set val field of watchpoints if NULL.
4567
4568
4569 2002-08-29  Jim Blandy  <jimb@redhat.com>
4570
4571         * symtab.c (lookup_symbol_aux): In the cases where we find a
4572         minimal symbol of an appropriate name and use its address to
4573         select a symtab to read and search, use `name' (as passed to us)
4574         as the demangled name when searching the symtab's global and
4575         static blocks, not the minsym's name.
4576
4577 2002-08-29  Keith Seitz  <keiths@redhat.com>
4578
4579         * stack.c (print_frame_info_base): Always set current_source_symtab
4580         and current_source_line.
4581
4582 2002-08-29  Donn Terry  <donnte@microsoft.com>
4583
4584         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4585
4586 2002-08-28  Keith Seitz  <keiths@redhat.com>
4587
4588         * stack.c (select_frame): Add FIXME concerning selected-frame
4589         events.
4590         (select_frame_command): Send selected-frame-level-changed
4591         event notification, but only if the level actually changed.
4592         (up_silently_base): Add selected-frame-level-changed event
4593         notification.
4594         (down_silently_base): Likewise.
4595
4596 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4597
4598         * Makefile.in: Update dependencies for all gdb/*.c files.
4599
4600 2002-08-27  Tom Tromey  <tromey@redhat.com>
4601
4602         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4603         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4604         Update dependencies.
4605         * i387-tdep.c: Include gdb_string.h.
4606         * osabi.c: Likewise.
4607         * i386-linux-nat.c: Likewise.
4608         * lin-lwp.c: Likewise.
4609         * ax-gdb.c: Likewise.
4610         * signals/signals.c: Likewise.
4611         * jv-valprint.c: Likewise.
4612         * p-lang.c: Likewise.
4613         * c-valprint.c: Likewise.
4614         * cp-abi.c: Likewise.
4615
4616 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
4617
4618         * cli/cli-script.h (copy_command_lines): Export.
4619         * breakpoint.c: Include cli/cli-script.h.
4620         * Makefile.in (breakpoint.o): Update dependencies.
4621
4622 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4623
4624         * breakpoint.c (insert_breakpoints): Protect all references
4625         to 'process_warning'.  Shorten long lines.
4626
4627 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
4628
4629         * cli/cli-script.c (copy_command_lines): New function.
4630         * defs.h (copy_command_lines): Export.
4631         * testsuite/gdb.base/commands.exp: New tests for commands
4632         attached to a temporary breakpoint, and for commands that
4633         delete the breakpoint they are attached to.
4634         
4635 2002-08-26  Michael Snyder  <msnyder@redhat.com>
4636
4637         * breakpoint.c (bpstat_stop_status): Instead of copying the 
4638         pointer to the breakpoint commands struct, make a new copy
4639         of the struct and point to that.
4640         (bpstat_clear): Free the commands struct.
4641         (bpstat_clear_actions): Free the commands struct.
4642         (bpstat_do_actions): Free the command actions.  Also execute
4643         the local cleanups, instead of deleting them.
4644         (delete_breakpoint): Leave the commands field of the bpstat
4645         chain alone -- it will be freed later.
4646
4647 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
4648
4649         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4650         deleted in 2002-08-20 commit.  This function is still used by
4651         ppc-linux-nat.c.
4652
4653 2002-08-26  Keith Seitz  <keiths@redhat.com>
4654
4655         * gdb-events.sh: Add selected-frame-level-changed event.
4656         * gdb-events.c: Regenerated.
4657         * gdb-events.h: Regenerated.
4658         
4659 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
4660
4661         Fix PR gdb/393:
4662         * inflow.c (terminal_save_ours): New function to save terminal
4663         settings.
4664         * inferior.h (terminal_save_ours): Declare.
4665         * target.c (debug_to_terminal_save_ours): New function.
4666         (cleanup_target): Defaults to_terminal_save_ours.
4667         (update_current_target): Inherit to_terminal_save_ours.
4668         (setup_target_debug): Set to_terminal_save_ours.
4669         * target.h (target_terminal_save_ours): New to save terminal settings.
4670         (target_ops): New member to_terminal_save_ours.
4671         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4672         * hpux-thread.c (init_hpux_thread_ops): Likewise.
4673         * inftarg.c (init_child_ops): Likewise.
4674         * m3-nat.c (init_m3_ops): Likewise.
4675         * procfs.c (init_procfs_ops): Likewise.
4676         * wince.c (init_child_ops): Likewise.
4677         * win32-nat.c (init_child_ops): Likewise.
4678         * sol-thread.c (init_sol_thread_ops): Likewise.
4679
4680 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
4681
4682         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
4683         use regcache_* functions.
4684         (i386_gdbarch_init): Set store_return_value instead of
4685         deprecated_store_return_value.
4686
4687         * regcache.c (regcache_raw_write_signed,
4688         regcache_raw_write_unsigned): New functions.
4689         * regcache.h (regcache_raw_write_signed,
4690         regcache_raw_write_unsigned): New prototypes.
4691
4692 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4693
4694         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4695         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4696         source file dependencies.  Cleanup corresponding generator rules.
4697
4698 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4699
4700         * regcache.h (register_offset_hack): Declare.
4701         (regcache_cooked_read_using_offset_hack): Declare.
4702         (regcache_cooked_write_using_offset_hack): Declare.
4703
4704         * regcache.c (register_offset_hack): New function.
4705         (regcache_cooked_read_using_offset_hack): New function.
4706         (regcache_cooked_write_using_offset_hack): New function.
4707         (regcache_dump): Check that the registers, according to their
4708         offset, are packed hard against each other.
4709         (cooked_xfer_using_offset_hack): New function.
4710
4711 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4712
4713         * regcache.c (struct regcache_descr): Add field register_type.
4714         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4715         in as a parameter
4716         (init_regcache_descr): Initialize register_type.  Pass the descr
4717         to init_legacy_regcache_descr.  Use register_type instead of
4718         REGISTER_VIRTUAL_TYPE.
4719         (register_type): New function.
4720         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4721         * regcache.h (register_type): Declare.
4722
4723 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4724
4725         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4726         instead of deprecated_store_return_value.  Fix fallout from
4727         2002-08-23 Andrew Cagney <cagney@redhat.com>.
4728
4729 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
4730
4731         * regcache.c (max_register_size): New function.
4732         (init_legacy_regcache_descr): Ensure that max_register_size is
4733         large enough for REGISTER_VIRTUAL_SIZE.
4734         * regcache.h (max_register_size): Declare.
4735
4736 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
4737
4738         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4739         store_return_value.
4740         (e500_extract_return_value): Change type of valbuf pointer to
4741         void.
4742
4743 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4744
4745         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4746         workaround.
4747
4748         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4749         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4750         long long) to prevent compiler warning on 64-bit systems.
4751
4752 2002-08-23  Andrew Cagney  <cagney@redhat.com>
4753
4754         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4755         (DEPRECATED_STORE_RETURN_VALUE): New method.
4756         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4757         * gdbarch.h, gdbarch.c: Re-generate.
4758
4759         * values.c (set_return_value): Pass current_regcache to
4760         STORE_RETURN_VALUE.
4761         * arch-utils.h (legacy_store_return_value): Declare.
4762         * arch-utils.c (legacy_store_return_value): New function.
4763         (legacy_extract_return_value): Update parameters.
4764
4765         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4766         STORE_RETURN_VALUE.
4767         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4768         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4769         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4770         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4771         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4772         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4773         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4774         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4775         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4776         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4777
4778         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4779         * i386-tdep.c (i386_extract_return_value): Update.
4780         * arch-utils.c (legacy_extract_return_value): Update.
4781         * frv-tdep.c (frv_gdbarch_init): Update.
4782         * cris-tdep.c (cris_gdbarch_init): Update.
4783         * d10v-tdep.c (d10v_gdbarch_init): Update.
4784         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4785         * m68k-tdep.c (m68k_gdbarch_init): Update.
4786         * mcore-tdep.c (mcore_gdbarch_init): Update.
4787         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4788         * s390-tdep.c (s390_gdbarch_init): Update.
4789         * sparc-tdep.c (sparc_gdbarch_init): Update.
4790         * sh-tdep.c (sh_gdbarch_init): Update.
4791         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4792         * v850-tdep.c (v850_gdbarch_init): Update.
4793         * avr-tdep.c (avr_gdbarch_init): Update.
4794         * ia64-tdep.c (ia64_gdbarch_init): Update.
4795         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4796         * vax-tdep.c (vax_gdbarch_init): Update.
4797         * alpha-tdep.c (alpha_gdbarch_init): Update.
4798         * arm-tdep.c (arm_gdbarch_init): Update.
4799         * mips-tdep.c (mips_gdbarch_init): Update.
4800         * i386-tdep.c (i386_gdbarch_init): Update.
4801
4802 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
4803
4804         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4805         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4806
4807 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
4808
4809         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
4810         problems.
4811
4812 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
4813
4814         * infrun.c (handle_inferior_event): Move a comment outside of a
4815         function call, in order to avoid indent reformatting this part
4816         of the code in an unreadable way.
4817
4818 2002-08-23  Grace Sainsbury  <graces@redhat.com>
4819
4820         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4821         when breakpoints fail. Move general breakpoint error messages to
4822         insert_breakpoints.  
4823         * breakpoint.c (insert_breakpoints): Change warnings when
4824         breakpoints are nto inserted to specify the type. Remove call to
4825         memory_error when hardware breakpoints can't be inserted. Remove
4826         multiple calls to warning so all messages are sent to the user at
4827         once.
4828         (delete_breakpoints): Make insert error messsages more explicit.
4829
4830 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
4831
4832         * ChangeLog: Move gdbserver entries after GDB 5.2 to
4833         gdbserver/ChangeLog.
4834
4835 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
4836
4837         * i386-tdep.c: Include "objfiles.h".
4838         (i386_svr4_init_abi): Set in_solib_call_trampoline and
4839         skip_trampoline_code.
4840         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4841         (CPLUS_MARKER): Define to '.'.
4842
4843         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4844         member.
4845         (linux_corefile_thread_callback): Increase args->num_notes.
4846         (linux_make_note_section): Initialize thread_args.num_notes, and
4847         use it to determine whether notes for any threads were created.
4848
4849 2002-08-23  Donn Terry  <donnte@microsoft.com>
4850
4851         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4852         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4853         and PCUNKILL.
4854         (write_with_trace): Conditionalize out the switch branch handling
4855         PCSHOLD if the corresponding macro is not defined. Likewise for
4856         PRSABORT and PRSTOP.
4857         This change will be needed by the Interix port.
4858
4859 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4860
4861         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4862         write_register wherever possible instead of manipulating the
4863         register bytes directly.
4864         Assign VALUE_CONTENTS to a variable and use that.
4865         The GPR numbers are now dependent on the architecture.
4866         
4867 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4868
4869         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4870         ev_offset fields.
4871         (skip_prologue): Add support for BookE/e500 instructions.
4872         (e500_extract_return_value): New function.
4873         (frame_get_saved_regs): Add support for saving ev registers and
4874         pseudo gpr's.
4875         (e500_store_return_value): New function.
4876         (rs6000_gdbarch_init): Move up default intializations of
4877         deprecated_extract_return_value and store_return_value.  Overwrite
4878         init of store_return_value with e500 specific version.
4879         Set extract_return_value for e500.
4880         
4881 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
4882
4883         * blockframe.c (generic_call_dummy_register_unwind): Use
4884         regcache_cooked_read to catch cases in which the variable is
4885         stored in a pseudo register.
4886
4887 2002-08-22  Andrew Cagney  <cagney@redhat.com>
4888
4889         * NEWS: Mention that the i960 has been made obsolete.
4890         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4891         i960-tdep.c
4892         (remote-nrom.o): Obsolete target.
4893         (remote-nindy.o, i960-tdep.o): Ditto.
4894         * remote-nrom.c: Make file obsolete.
4895         * remote-nindy.c, remote-vx960.c: Ditto.
4896         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4897         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4898         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4899         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4900         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4901         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4902         i960-*-vxworks* obsolete.
4903         * MAINTAINERS: Note that the i960 is obsolete.
4904
4905 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
4906
4907         * aix-thread.c (aix_thread_detach): Disable thread debugging on
4908         detach to allow reinitialization.
4909
4910 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
4911
4912         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4913         attempt).
4914
4915 2002-08-22  Jim Blandy  <jimb@redhat.com>
4916
4917         * coffread.c (coff_symfile_read): Don't try to read the line
4918         number table from disk if the image file doesn't have a symbol
4919         table; we'll never actually look at the info anyway, and Windows
4920         ships DLL's with bogus file offsets for the line number data.
4921
4922 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
4923
4924         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4925         an e500 executable.
4926
4927 2002-08-21  Michael Snyder  <msnyder@redhat.com>
4928
4929         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4930         (MSYMBOL_SIZE): Replace macro with function.
4931         (DEFAULT_MIPS_TYPE): Delete unused macro.
4932         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4933         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4934
4935 2002-08-21  Jim Blandy  <jimb@redhat.com>
4936
4937         * valops.c (value_cast): Simplify and correct logic for doing a
4938         static cast from a pointer to a base class to a pointer to a
4939         derived class.
4940
4941 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4942
4943         * infcmd.c (default_print_registers_info): Replace
4944         do_registers_info.
4945         (registers_info): Use gdbarch_print_registers_info instead of
4946         DO_REGISTERS_INFO.
4947         * inferior.h (default_print_registers_info): Replace
4948         do_registers_info.
4949         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4950         (DO_REGISTERS_INFO): Change to a predicate function.
4951         * gdbarch.h, gdbarch.c: Regenerate.
4952         
4953 2002-08-21  Keith Seitz  <keiths@redhat.com>
4954
4955         * gdb-events.sh: Add target-changed event.
4956         * gdb-events.c: Regenerated.
4957         * gdb-events.c: Regenerated.
4958         * valops.c (value_assign): Add target-changed event notification
4959         to inlval_register, lval_memory, and lval_reg_frame_relative.
4960
4961 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
4962
4963         * NEWS: Add an entry regarding the improvement of the next/step
4964         operation on Alpha Tru64 multi-processor machines.
4965
4966 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
4967
4968         * Makefile.in: Update dependencies for mi/ cli/ and tui/
4969         directores.
4970         * Makefile.in: Update all _h macro definitions.
4971         * Makefile.in (install-gdbtk): Move to install section.
4972         (rdi-share/libangsd.a): Move to end of file.
4973
4974 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
4975
4976         * frame.c (frame_register_unwind): When a register, set addrp to
4977         the register's byte.
4978
4979 2002-08-20  Michael Snyder  <msnyder@redhat.com>
4980
4981         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4982         used locally, so move them from the target machine header to here.
4983         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
4984         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
4985         Make static.
4986         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4987
4988 2002-08-20  Andrew Cagney  <cagney@redhat.com>
4989
4990         * NEWS: Mention that the Apollo line was made obsolete.
4991         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4992         m68*-hp-hpux* obsolete.
4993         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4994         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4995         * buildsym.c (make_blockvector): Make static.
4996         * buildsym.h (make_blockvector): Make extern declaration obsolete.
4997         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4998         (ALLDEPFILES): Remove dstread.c.
4999         (dstread.o): Obsolete make rule.
5000         * dstread.c: Makefile obsolete.
5001         * dst.h: Ditto.
5002         * config/m68k/hp300hpux.mt: Ditto.
5003         * config/m68k/hp300hpux.mh: Ditto.
5004         * config/m68k/hp300bsd.mt: Ditto.
5005         * config/m68k/hp300bsd.mh: Ditto.
5006         * config/m68k/apollo68b.mt: Ditto.
5007         * config/m68k/apollo68v.mh: Ditto.
5008         * config/m68k/apollo68b.mh: Ditto.
5009
5010 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5011
5012         * mips-tdep.c (mips_in_return_stub): Make static.
5013         (mips_gdbarch_init): Set in_solib_return_trampoline.
5014         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5015
5016 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5017
5018         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5019         * gdbarch.c, gdbarch.h: Regenerate.
5020         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5021         Add.
5022         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5023
5024 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5025
5026         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5027         (mips_gdbarch_init): Set skip_trampoline_code, 
5028         in_solib_call_trampoline.
5029         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5030         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5031
5032 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5033
5034         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5035
5036         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5037         vector type for ev registers.
5038         (e500_pseudo_register_read): New function.
5039         (e500_pseudo_register_write): New function.
5040         (e500_dwarf2_reg_to_regnum): New function.
5041         (PPC_UISA_NOFP_SPRS): New macro.
5042         (PPC_EV_REGS): New macro.
5043         (PPC_GPRS_PSEUDO_REGS): New macro.
5044         (registers_e500): New register set for e500.
5045         (variants): Add e500 variant.
5046         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5047         before setting architectural dependent variations.  Initialize ev
5048         registers numbers.  Add case for e500 architecture.  Set the
5049         number of pseudo registers.
5050
5051 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5052
5053         * rs6000-tdep.c: Clean up comments.
5054
5055 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5056
5057         * h8300-tdep.c: Re-indent file.
5058
5059 2002-08-20  Jim Blandy  <jimb@redhat.com>
5060
5061         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5062         default for this.
5063
5064 2002-08-20  Keith Seitz  <keiths@redhat.com>
5065
5066         * breakpoints.c (watch_command_1): Use internal breakpoint
5067         when setting a watchpoint_scope breakpoint.
5068
5069 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5070
5071         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5072         (build_builtin_type_vec64i): Ditto.
5073         (build_builtin_type_vec128): Ditto.
5074         (build_builtin_type_vec128i): Ditto.
5075
5076 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5077
5078         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5079         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5080         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5081         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5082         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5083         CALL_DUMMY_ADDRESS): Delete.
5084         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5085         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5086         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5087         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5088         push_return_address.
5089         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5090         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5091         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5092         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5093         mips_n32n64_push_arguments, mips_push_return_address,
5094         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5095         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5096
5097 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5098
5099         * mips-tdep.c (mips_frame_num_args): New function.
5100         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5101         frame_saved_pc, frame_args_address, frame_locals_address, 
5102         frame_num_args, and frame_args_skip.
5103         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5104         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5105         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5106         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5107
5108 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5109
5110         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5111         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5112         * mips-tdep.c (mips_store_struct_return): New function.
5113         (mips_extract_struct_value_address): New function.
5114         (mips_gdbarch_init): Set store_struct_return and
5115         extract_struct_value_address.
5116
5117 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5118
5119         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5120         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5121         (read_file_scope): Check that line_header is nonzero before
5122         decoding macro information.
5123
5124 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5125
5126         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5127         flag the general-purpose registers as floating-point on targets
5128         that don't support the floating-point registers.
5129
5130 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5131
5132         * rs6000-tdep.c (altivec_register_p): Delete.
5133         (rs6000_do_altivec_registers): Delete.
5134         (rs6000_altivec_registers_info): Delete.
5135         (rs6000_do_registers_info): Delete.
5136         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5137         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5138
5139 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5140
5141         * infcmd.c (do_registers_info): Print vector registers in hex
5142         format only.
5143         (print_vector_info): Check that printing registers
5144         makes sense.
5145         (print_float_info): Ditto.
5146
5147 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5148
5149         * mips-tdep.c (mips_gdbarch_init): Update.
5150         (mips_o32_extract_return_value): Rewrite.
5151         (mips_o32_store_return_value): Rewrite.
5152         (mips_o32_xfer_return_value): New function.
5153         (mips_xfer_register): Tweak debug print message.  Allow for
5154         buf_offset when dumping the value transfered.
5155
5156 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5157
5158         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5159         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5160         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5161         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5162         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5163
5164 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5165
5166         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5167
5168 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5169
5170         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5171         register.
5172         (P): New macro to define a register as a pseudo register.
5173         (R, R4, R8, R16, FR32, R64, R0): Updated.
5174         (struct variant): Add new fields for number of pseudo registers
5175         and number of total registers.
5176         (tot_num_registers): New macro replacing....
5177         (num_registers): ...deleted macro.
5178         (num_registers): New function.
5179         (num_pseudo_registers): New function.
5180         (variants): Update all variants to intialize new fields correctly.
5181         Postpone initialization of number of pseudo regs and real regs.
5182         (init_variants): New function.
5183         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5184         registers offsets.
5185
5186 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5187
5188         * valops.c (search_struct_field): Change error message to treat
5189         return value of 0 from value_static_field as meaning that field is
5190         optimized out.
5191         (value_struct_elt_for_reference): Ditto.
5192         * values.c (value_static_field): Treat an unresolved location the
5193         same as a nonexistent symbol.  Fix PR gdb/635.
5194         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5195         enclosed.  Fix PR gdb/574.
5196         * MAINTAINERS: Add self to Write After Approval list.
5197
5198 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5199
5200         * mips-tdep.c (mips_xfer_register): New function.
5201         (mips_n32n64_extract_return_value): Rewrite.
5202         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5203         instead of deprecated_extract_return_value.
5204
5205 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5206
5207         * rs6000-tdep.c (TDEP): Delete macro.
5208         (branch_dest): Replace use of TDEP macro with its body.
5209         (rs6000_pop_frame): Ditto.
5210         (rs6000_push_arguments): Ditto.
5211         (rs6000_skip_trampoline_code): Ditto.
5212         (rs6000_frame_saved_pc): Ditto.
5213         (rs6000_frame_chain): Ditto.
5214         (rs6000_register_name): Ditto.
5215         (rs6000_register_byte): Ditto.
5216         (rs6000_register_raw_size): Ditto.
5217         (rs6000_register_virtual_type): Ditto.
5218         (rs6000_register_convertible): Ditto.
5219         (rs6000_convert_from_func_ptr_addr): Ditto.
5220
5221 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5222
5223         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5224         conditionally.
5225         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5226         MIPS_LINUX_JB_ELEMENT_SIZE.
5227         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5228         for MAX_REGISTER_RAW_SIZE arrays.
5229         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5230         MIPS_LINUX_JB_ELEMENT_SIZE.
5231
5232 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5233
5234         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5235
5236 2002-08-19  Aidan Skinner <aidan@velvet.net>
5237
5238         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5239         ada-valprint.c ada-tasks.c.
5240         (YYFILES): Add ada-exp.y.
5241         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5242         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5243         (ada-exp.tab.o): New target.
5244                 
5245 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5246
5247         * regcache.c (regcache_xfer_part): New function.
5248         (regcache_raw_read_part): New function.
5249         (regcache_raw_write_part): New function.
5250         (regcache_cooked_read_part): New function.
5251         (regcache_cooked_write_part): New function.
5252         * regcache.h (regcache_raw_read_part): Declare.
5253         (regcache_raw_write_part): Declare.
5254         (regcache_cooked_read_part): Declare.
5255         (regcache_cooked_write_part): Declare.
5256
5257 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5258
5259         * remote.c (remote_open_1): Add async_p.
5260         (remote_async_open_1): Delete.
5261         (open_remote_target): Delete.
5262         (remote_open, extended_remote_open): Update calls to remote_open_1.
5263         (remote_async_open, extended_remote_async_open): Call
5264         remote_open_1 instead of remote_async_open_1.
5265
5266 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5267
5268         * blockframe.c: Fix a few coding standard violations.
5269
5270 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5271
5272         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5273         here from ...
5274         * config/i386/tm-i386sco5.h: ... here.  File removed.
5275         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5276
5277         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5278         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5279         (TM_FILE): Set to tm-i386.h.
5280         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5281         * config/i386/tm-i386v.h: Remove file.
5282         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5283         instead of "i386/tm-i386v.h".
5284         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5285         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5286         "i386/tm-i386v.h".
5287         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5288         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5289         "i386/tm-i386.h".
5290
5291 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5292
5293         * config/i386/nm-i386v.h: Add protection against
5294         multiple-inclusion.
5295         (i386_register_u_addr): Remove prototype.
5296         (register_u_addr): New prototype.
5297         (REGISTER_U_ADDR): Redefine accordingly.
5298         * i386v-nat.c: Improve several comments.
5299         (i386_register_u_addr): Change signature and rename to
5300         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5301         ubase variable.
5302
5303 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5304
5305         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5306         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5307         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5308         deprecated_extract_return_value.
5309         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5310         rename mips_o32o64_push_arguments.
5311         (mips_gdbarch_init): Update.
5312         (mips_extract_return_value): Delete.
5313         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5314         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5315         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5316         (mips_n32n64_extract_return_value): Clone
5317         mips_extract_return_value.
5318         (mips_store_return_value): Delete.
5319         (mips_o32_store_return_value): Clone mips_store_return_value.
5320         (mips_o64_store_return_value): Clone mips_store_return_value.
5321         (mips_eabi_store_return_value): Clone mips_store_return_value.
5322         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5323
5324 2002-08-18  Aidan Skinner <aidan@velvet.net>
5325
5326         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5327         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5328                 
5329 2002-08-18  Aidan Skinner <aidan@velvet.net>
5330
5331         * ada-lang.c: Run through gdb_indent.sh.
5332         * ada-lang.h: Run through gdb_indent.sh.
5333         * ada-tasks.c: Run through gdb_indent.sh.
5334         * ada-typeprint.c: Run through gdb_indent.sh.
5335         * ada-valprint.c: Run through gdb_indent.sh.
5336
5337 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5338
5339         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5340         ABI.
5341
5342 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5343
5344         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5345
5346         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5347         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5348
5349         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5350         write_register_gen instead of write_register_bytes.
5351
5352         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5353         i[3456]-*-osf1mk* configurations have been made obsolete.
5354         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5355         i[3456]86-*-osf1mk* hosts obsolete.
5356         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5357         targets obsolete.
5358         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5359         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5360         config/i386/i386m3.mt, config/i386/nm-m3.h,
5361         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5362         config/i386/i386mk.mh, config/i386/i386mk.mt,
5363         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5364         obsolete.
5365         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5366         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5367         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5368
5369 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5370
5371         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5372         (hppa_value_returned_from_stack): Declare.
5373         (hppa_extract_return_value): Declare.
5374         * config/pa/hppa.mt: New file.
5375         * configure.tgt: Recognize hppa*-*-*.
5376         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5377
5378 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5379
5380         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5381         comment.
5382
5383 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5384
5385         * top.c (gdb_rl_operate_and_get_next): Make sure
5386         operate-and-get-next functions correctly even when the history
5387         list is completely filled.
5388
5389 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5390
5391         * MAINTAINERS (Target Instruction Set Architectures): Rename
5392         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5393         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5394         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5395         already listed under Host/Native.
5396
5397         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5398         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5399         mips*-*-*.
5400
5401 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5402
5403         * config/ia64/ia64.mt: New file.
5404         * config/alpha/alpha.mt: New file.
5405         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5406         ia64-linux-gnu.  Mention that ia64-elf is broken.
5407         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5408
5409 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5410
5411         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5412         generic_func_frame_valid instead of func_frame_valid.
5413
5414 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5415
5416         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5417         procfs appears to be broken when debugging on multi-processor
5418         machines. So enable software single stepping in order to avoid
5419         using the procfs interface to do next/step operations, using
5420         internal breakpoints instead.
5421
5422         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5423         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5424         make this pc address equal to the value it would have if the
5425         system stepping capability was used. Also set a new flag used
5426         to ensure that we don't readjust the PC one more time later.
5427
5428         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5429         address by DECR_PC_AFTER_BREAK when software single step is
5430         in use for this architecture, as this has already been taken
5431         care of in handle_inferior_event().
5432
5433 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5434
5435         * infrun.c (handle_inferior_event): Minor reformatting, to make
5436         a rather long condition expression easier to read.
5437
5438 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5439
5440         * Makefile.in (gdbtk.o): Move to end of file.
5441         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5442         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5443         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5444         (gdbtk-wrapper.o, gdbres.o): Ditto.
5445
5446 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5447
5448         * Makefile.in (copying.o): Separate out compile rule.
5449         (hpux-thread.o, procfs.o, signals.o): Ditto.
5450         (v850ice.o, z8k-tdep.o): Ditto.
5451         (tui-file.o): Move to TUI section.
5452         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5453         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5454
5455 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5456
5457         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5458         skip_trampoline_code, for better namespace-proofing.   
5459
5460         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5461
5462 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5463
5464         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5465
5466 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5467
5468         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5469         signal, check whether we hit a breakpoint before checking for a
5470         single step breakpoint. Otherwise, GDB fails to notice that a
5471         breakpoint has been hit when stepping onto a breakpoint.
5472
5473 2002-08-16  Keith Seitz  <keiths@redhat.com>
5474
5475         * gdb-events.sh (clear_gdb_event_hooks): New function.
5476         * gdb-events.c: Regenerate.
5477         * gdb-events.h: Regenerate.
5478
5479 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5480
5481         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5482         not_a_sw_breakpoint.
5483         * breakpoint.h (bpstat_stop_status): Add parameter names.
5484
5485 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5486
5487         * remote.c (remote_insert_hw_breakpoint)
5488         (remote_remove_hw_breakpoint): Fix calculation of length field
5489         for Z-packet.
5490
5491 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5492
5493         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5494         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5495         (supply_fpregset): Ditto.
5496         
5497         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5498         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5499         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5500         (TARGET_READ_SP): Delete.
5501         (DO_REGISTERS_INFO): Delete.
5502         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5503         Delete.
5504         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5505         from macros to functions.
5506
5507         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5508         (mips_register_convertible, mips_register_convert_to_virtual,
5509         mips_register_convert_to_raw): Make static.
5510         (mips_read_sp): New function.
5511         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5512         (mips_do_registers_info): Make static.
5513         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5514         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5515         (mips_register_convert_from_type, mips_register_convert_to_type):
5516         New functions.
5517         (mips_gdbarch_init): Set up function_start_offset, 
5518         register_virtual_size, pc_in_sigtramp.
5519
5520 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5521
5522         * infcmd.c (vector_info): New function.
5523         (_initialize_infcmd): Add command "info vector".
5524         (print_vector_info): New function.
5525
5526         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5527         * gdbarch.h, gdbarch.c: Regenerate.
5528
5529 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5530
5531         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5532         ``print_all''.  Only print vector registers when ``print_all''.
5533
5534 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5535
5536         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5537         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5538
5539         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5540         Add `args' parameter.
5541         * gdbarch.h, gdbarch.c: Regenerate.
5542         
5543         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5544         
5545         * infcmd.c (float_info): Call print_float_info.
5546         (print_float_info): New function.  By default, print the
5547         floating-point registers.
5548
5549         * arch-utils.h (default_print_float_info): Delete declaration.
5550         * arch-utils.c (default_print_float_info): Delete function.
5551         
5552 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5553
5554         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5555         out define.
5556
5557         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5558         FRAME.
5559
5560         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5561         * configure.host: Make i[3456]86-*-aix host obsolete.
5562         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5563         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5564         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5565         config/i386/xm-i386aix.h: Make files obsolete.
5566         * i386aix-nat.c: Make file obsolete.
5567         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5568         (i386aix-nat.o): Make target obsolete.
5569
5570         * config/i386/nm-gnu.h: Removed.
5571         * config/i386/nm-i386gnu.h: New file.
5572         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5573         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5574         Moved here from ...
5575         * config/i386/tm-i386gnu.h: ... here.  Removed.
5576         * config/i386/xm-i386gnu.h: Removed.
5577         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5578         (NAT_FILE): Set to nm-i386gnu.h.
5579         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5580         * i386-tdep.c: New file.
5581         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5582         (i386gnu-tdep.o): Specify dependencies.
5583
5584 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5585
5586         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5587         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5588         Adjust a few comments to reflect reality a bit closer.
5589         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5590         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5591         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5592         target_insert_watchpoint, target_remove_watchpoint):
5593         Move defines to ...
5594         * config/i386/nm-i386sco5.h: ... here.
5595         (kernel_u_size): Add prototype.  Improve a few comments and add
5596         protection against multiple inclusion.
5597         
5598         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5599         out define.
5600
5601         * uw-thread.c (SP_ARG0): Define if not already defined.
5602         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5603
5604         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5605
5606         * config/i386/tm-i386.h: Don't include "regcache.h".
5607
5608         * i387-tdep.h (i387_print_float_info): New prototype.
5609         * i387-tdep.c (print_i387_value, print_i387_ext,
5610         print_i387_status_word, print_i387_control_word): Add `struct
5611         ui_file *' argument and use it for output.
5612         (i387_print_float_info): Renamed from i387_float_info.  Add
5613         `struct gdbarch *' and `struct ui_file *' arguments and use the
5614         latter for output.
5615         * i386-tdep.c: Include "i387-tdep.h".
5616         (i386_gdbarch_init): Set print_float_info.
5617         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5618         (FLOAT_INFO): Remove define.
5619
5620 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5621
5622         * mips-tdep.c (mips_push_arguments): Rename to
5623         mips_eabi_push_arguments, and tune for EABI.
5624         (MIPS_REGS_HAVE_HOME_P): Delete.
5625         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5626         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5627         Delete references to mips_regs_have_home_p.
5628
5629 2002-08-14  Keith Seitz  <keiths@redhat.com>
5630
5631         * Makefile.in (install-gdbtk): Create insight plugin directory.
5632         Install plugins.tcl file.
5633
5634 2002-08-14  Keith Seitz  <keiths@redhat.com>
5635
5636         * configure.in: Move SUBDIRS to near top of the file so that
5637         --enable options may add things to it.
5638         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5639         * configure: Regenerate.
5640
5641 2002-08-13  Michael Snyder  <msnyder@redhat.com>
5642
5643         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
5644         cloned from mips_push_arguments, tuned for o32/o64 ABI.
5645         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5646
5647 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
5648
5649         * vax-tdep.c (vax_get_saved_register): Delete function.
5650         (vax_gdbarch_init): Update.
5651         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5652         (ns32k_gdbarch_init): Update.
5653         * alpha-tdep.c (alpha_get_saved_register): Delete function.
5654         (alpha_gdbarch_init): Update.
5655
5656 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5657
5658         * regcache.c (init_regcache_descr): Overallocate the
5659         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5660         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5661         nr_raw_registers.
5662         (set_register_cached): Add range checking assertions.  Use
5663         current_regcache.
5664
5665 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
5666
5667         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5668         numbers for MMX registers.
5669
5670 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5671
5672         * i386-tdep.c (i386_gdbarch_init): Use
5673         generic_unwind_get_saved_register.
5674
5675 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
5676
5677         * procfs.c (procfs_can_use_hw_breakpoint): New function.
5678         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5679         target vector.
5680         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5681         Delete.  Add comment regarding this now-deleted target method.
5682
5683 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5684
5685         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5686         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5687         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5688         real PC and the page number (if it's within the memory bank window).
5689         (m68hc11_pseudo_register_write): Likewise when saving.
5690         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5691         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5692         (m68hc11_register_raw_size): And use 32-bit for it.
5693         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5694         16K memory bank is used by the prog; also use the virtual pc.
5695
5696 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5697
5698         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5699         (m68hc11_gdbarch_init): Install it in gdbarch.
5700         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5701         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5702         (MSYMBOL_SIZE): New for documentation.
5703         (insn_return_kind): Enum to specify how a function returns.
5704         (frame_extra_info): Cleanup and record the return mode.
5705         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
5706         register in address computation.
5707         (m68hc11_get_return_insn): New to obtain the return instruction used
5708         by the function.
5709         (m68hc11_frame_init_saved_regs): Take into account the return
5710         instruction used by the function for far and interrupt functions.
5711         (m68hc11_init_extra_frame_info): Take into account page register.
5712         (m68hc11_frame_args_address): Adjust according to the return mode.
5713         (show_regs): Print page register only when it's used.
5714
5715 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5716
5717         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5718         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5719         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5720         registers.
5721         (m68hc11_register_raw_size): Likewise.
5722
5723 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5724
5725         * i386-tdep.c (i386_register_name): Handle mmx registers.
5726         (mmx_regnum_p): New function.
5727         (i386_mmx_names): New array.
5728         (mmx_num_regs): New variable.
5729         (i386_pseudo_register_read): New function.
5730         (i386_pseudo_register_write): New function.
5731         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5732
5733         * regcache.c (regcache_raw_read_unsigned): New function.
5734         (regcache_raw_read_signed): New function.
5735         * regcache.h (regcache_raw_read_unsigned): Declare.
5736         (regcache_raw_read_signed): Declare.
5737
5738 2002-08-13  Andrew Cagney  <cagney@redhat.com>
5739
5740         * regcache.c (regcache_raw_read_as_address): Delete function.
5741         (regcache_cooked_read_signed): New function.
5742         (regcache_cooked_read_unsigned): New function.
5743         * regcache.h (regcache_cooked_read_signed): Declare.
5744         (regcache_cooked_read_unsigned): Declare.
5745         (regcache_raw_read_as_address): Delete declaration.
5746
5747         * blockframe.c (generic_read_register_dummy): Use
5748         regcache_cooked_read_unsigned.
5749         * i386-tdep.c (i386_extract_struct_value_address): Use
5750         regcache_cooked_read_unsigned.
5751
5752 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5753
5754         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5755         double sizes according to ELF ABI flags.
5756         (gdbarch_tdep): Record elf_flags.
5757
5758 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
5759
5760         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5761         (m6812_prolog): They can appear in 68HC12 function prologue.
5762         (m68hc11_frame_chain): Cleanup.
5763
5764 2002-08-12  Andrew Cagney  <cagney@redhat.com>
5765
5766         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5767         declarations.
5768         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5769         (i386_linux_register_raw_size): Delete function.
5770         (i386_linux_init_abi): Update.
5771         * i386-tdep.c (i386_register_raw_size): Delete function.
5772         (i386_register_byte): Delete function.
5773         (i386_gdbarch_init): Update.
5774         (i386_register_size): Delete array.
5775         (i386_register_offset): Delete array.
5776
5777         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5778         (REGISTER_RAW_SIZE): Delete macro.
5779         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5780         (REGISTER_BYTE): Delete macro.
5781
5782 2002-08-11  Aidan Skinner <aidan@velvet.net>
5783
5784         * ada-lang.c (ada_lookup_partial_symbol)
5785         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5786         prototype names so that grep ^func works properly.
5787
5788         * ada-lang.c (ada_array_element_type)
5789         (ada_lookup_partial_symbol): Fix typos in parameter list.
5790
5791         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5792         Fix prototype names so that grep ^func works properly.
5793         
5794 2002-08-10  Andrew Cagney  <cagney@redhat.com>
5795             Elena Zannoni  <ezannoni@redhat.com>
5796             Martin M. Hunt  <hunt@redhat.com>
5797
5798         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5799         (build_builtin_type_vec128i): Set the vector bit.
5800         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5801         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5802         (build_builtin_type_vec64): New function.
5803         (build_builtin_type_vec64i): New function.
5804         (build_gdbtypes): Initialize builtin_type_vec64 and
5805         builtin_type_vec64i.
5806
5807 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5808
5809         * regcache.c (regcache_dump): Compare the register offset
5810         with REGISTER_BYTE.
5811         * arch-utils.c (generic_register_byte): New function.
5812         * arch-utils.h (generic_register_byte): Declare.
5813         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5814         * gdbarch.h, gdbarch.c: Regenerate.
5815
5816 2002-08-09  Andrew Cagney  <cagney@redhat.com>
5817
5818         * regcache.c: Include "gdbcmd.h"
5819         (_initialize_regcache): Add commands "maintenance print
5820         registers", "maintenance print raw-registers" and "maintenance
5821         print cooked-registers".
5822         (enum regcache_dump_what): Define.
5823         (dump_endian_bytes): New function.
5824         (regcache_dump): New function.
5825         (regcache_print): New function.
5826         (maintenance_print_registers): New function.
5827         (maintenance_print_raw_registers): New function.
5828         (maintenance_print_cooked_registers): New function.
5829         * Makefile.in (regcache.o): Update dependencies.
5830
5831 2002-08-09  Michael Snyder  <msnyder@redhat.com>
5832
5833         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5834         (mips_push_arguments): Correct some comments.  Use paddr_nz
5835         for printing addresses in debug output.  Replace static
5836         allocation using MAX_REGISTER_RAW_SIZE with alloca.
5837         (mips_n32n64_push_arguments): New function, cloned from
5838         mips_push_arguments and tuned for the n32/n64 ABI.
5839         (mips_push_register): Buffer needs dynamic allocation.
5840         (mips_print_register): Ditto.
5841         (do_gp_register_row): Ditto.
5842         (mips_store_return_value): Ditto.
5843         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5844
5845 2002-08-09  Don Howard  <dhoward@redhat.com>
5846
5847         * memattr.c (mem_info_command): Print special case of upper bound
5848         as max CORE_ADDR + 1.
5849
5850 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5851
5852         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
5853         returns structs by ref if they're too big to fit in two registers.
5854
5855 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5856
5857         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5858         saved regs value.
5859         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5860         mips_find_saved_regs().
5861         (mips_pop_frame): Likewise.
5862
5863 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
5864
5865         * blockframe.c (frame_saved_regs_register_unwind): Revise
5866         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5867         frames are in use.
5868
5869 2002-08-09  Grace Sainsbury  <graces@redhat.com>
5870         
5871         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5872         T-packets; the 'a' is not taken as a register number.
5873         (remote_check_watch_resources, remote_stopped_by_watchpoint)
5874         (remote_stopped_data_address): New functions; add to target
5875         vector.
5876         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5877         prototypes to match other implementations of this
5878         function. replace integer argument with pointer -- the length
5879         field in the Z-packet is the length of what is pointed to or 1 if
5880         pointer is null. Add to target vector.
5881         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5882         target vector.
5883
5884         From Mark Salter:
5885         * remote.c (remote_wait): Add support to extract optional
5886         watchpoint information from T-packet. Ignore unrecognized
5887         optional info in T-packet.
5888         (remote_async_wait): Ditto.
5889
5890 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
5891
5892         * cli/cli-dump.c: Change fopen modes to use binary open modes
5893         as defined in include/fopen-bin.h throughout.
5894
5895 2002-08-08  Michael Snyder  <msnyder@redhat.com>
5896
5897         * mips-tdep.c: Minor whitespace and indentation clean-ups.
5898
5899 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5900
5901         * doublest.c (store_floating): Avoid floatformat_from_doublest()
5902         assertion failure by returning early after a warning.
5903
5904 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
5905
5906         * mips-tdep.c (mips_find_saved_regs): Make static.
5907         (mips_frame_init_saved_regs): New function.
5908         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5909         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5910         (mips_find_saved_regs): Delete declaration.
5911
5912 2002-08-08  Grace Sainsbury  <graces@redhat.com>
5913
5914         * remote.c (remote_wait, remote_async_wait): Change
5915         thread_num from int to ULONGEST.
5916         (unpack_varlen_hex): Change result parameter from
5917         int * to ULONGEST *.
5918
5919 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
5920
5921         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5922         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5923         powerpc*-*-*.
5924         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5925
5926 2002-08-08  Andrew Cagney  <cagney@redhat.com>
5927
5928         * gcore.c (override_derive_stack_segment): Delete variable.
5929         (preempt_derive_stack_segment): Delete function.
5930         (derive_stack_segment): Delete function.
5931         (default_derive_stack_segment): Renamed to derive_stack_segment.
5932         (override_derive_heap_segment): Delete variable.
5933         (preempt_derive_heap_segment): Delete function.
5934         (derive_heap_segment): Delete function.
5935         (default_derive_heap_segment): Rename to derive_heap_segment.
5936
5937 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5938
5939         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5940         * mips-tdep.c (mips_EABI_use_struct_convention, 
5941         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5942         New functions.  (mips_use_struct_convention): Delete.
5943         (mips_gdbarch_init): set use_gdbarch_convention.
5944
5945 2002-08-06  Michael Snyder  <msnyder@redhat.com>
5946
5947         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5948         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
5949         mips_o32_reg_struct_has_addr): New functions.
5950         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5951
5952 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
5953
5954         * regcache.c (pseudo_register): Delete function.
5955         (fetch_register): Delete function.
5956         (store_register): Delete function.
5957         (regcache_raw_read, legacy_read_register_gen): Use
5958         target_fetch_registers instead of fetch_register.
5959         (legacy_write_register_gen, regcache_raw_write): Use
5960         target_store_register instead of store_register.
5961         (write_register_bytes): Ditto.
5962
5963         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5964         (STORE_PSEUDO_REGISTER): Delete.
5965         * gdbarch.h, gdbarch.c: Regenerate.
5966
5967 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
5968
5969         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5970         write dump file binary.
5971
5972 2002-08-05  Michael Snyder  <msnyder@redhat.com>
5973
5974         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
5975         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
5976         (mips_gdbarch_init): Set N32 target to be mips64.
5977
5978 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5979
5980         * frame.c (find_saved_register): Break out of loop once saved
5981         register address is found.  Don't mention sparc in loop comment
5982         anymore.
5983
5984 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
5985
5986         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5987         mips_default_saved_regsize to 8.
5988
5989 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
5990
5991         * gcore.c: Do not include <sys/procfs.h>.
5992         * Makefile.in (gcore.o): Update dependencies.
5993
5994 2002-08-06  Andrew Cagney  <cagney@redhat.com>
5995
5996         * configure.tgt: Make arc-*-* obsolete.
5997         * NEWS: Mention that arc-*-* has been identifed as obsolete.
5998         * MAINTAINERS: Make arc-elf obsolete.
5999         * arc-tdep.c: Make file obsolete.
6000         * config/arc/arc.mt: Ditto.
6001         * config/arc/tm-arc.h: Ditto.
6002
6003 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6004
6005         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6006
6007 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6008
6009         * mcore-tdep.c (mcore_gdbarch_init): Use
6010         generic_unwind_get_saved_register instead of
6011         generic_get_saved_register.
6012         * v850-tdep.c (v850_gdbarch_init): Ditto.
6013         * frv-tdep.c (frv_gdbarch_init): Ditto.
6014         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6015         * s390-tdep.c (s390_gdbarch_init): Ditto.
6016         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6017         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6018         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6019
6020 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6021
6022         * objfiles.h: Add missing #include "symfile.h"
6023
6024         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6025
6026 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6027
6028         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6029         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6030         of FIELD_BITSIZE.
6031
6032 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6033
6034         * NEWS: Cleanup and nitpick.
6035
6036 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6037
6038         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6039
6040 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6041
6042         * Makefile.in (gdbtk-bp.o): Update dependencies.
6043         (gdbtk-register.o): Ditto.
6044         (gdbtk-varobj.o): Ditto.
6045
6046 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6047
6048         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6049         m68hc11_fetch_pseudo_register.
6050         (m68hc11_pseudo_register_write): Replace
6051         m68hc11_store_pseudo_register.
6052         (m68hc11_gdbarch_init): Update.
6053
6054 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6055
6056         * gdbarch.sh: Include "gdb_string.h".
6057         * gdbarch.c: Regenerate.
6058
6059         * regcache.c: Include "gdb_string.h".
6060         * ax-general.c: Ditto.
6061         * varobj.c: Ditto.
6062         * std-regs.c: Ditto.
6063         * fbsd-proc.c: Ditto.
6064         * thread.c: Ditto.
6065
6066         * Makefile.in (regcache.o): Update dependencies.
6067         (thread.o, gdbarch.o): Ditto.
6068         (ax-general.o, gdbarch.o): Ditto.
6069         (varobj.o, std-regs.o): Ditto.
6070         (fbsd-proc.o): Specify dependencies.
6071
6072 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6073
6074         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6075         regnum.
6076         (regcache_cooked_write): Ditto.
6077
6078 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6079
6080         * regcache.c (regcache_cooked_read): New function.
6081         (regcache_cooked_write): New function.
6082         (read_register_gen): Rewrite using regcache_cooked_read.
6083         (write_register_gen): Rewrite using regcache_cooked_write.
6084
6085         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6086         Declare.
6087
6088 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6089
6090         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6091         Replace the architecture methods register_read and register_write.
6092         * gdbarch.h, gdbarch.c: Regenerate.
6093         * regcache.c (init_regcache_descr): Update.
6094         (read_register_gen): Update.
6095         (write_register_gen): Update.
6096         (supply_register): Update comment.
6097
6098         * sh-tdep.c (sh_gdbarch_init): Update.
6099         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6100         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6101         pointer.  Update code.
6102         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6103         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6104         void pointer.  Update code.
6105         (sh64_register_write): Delete.
6106         (sh4_register_read): Delete.
6107         (sh64_register_read): Delete.
6108         (sh4_register_write): Delete.
6109         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6110         void pointer, `to' parameter a void pointer.
6111         (sh_sh64_register_convert_to_raw): Ditto.
6112
6113 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6114
6115         * mips-tdep.c (mips_register_virtual_type): Use architecture
6116         invariant return values.
6117
6118 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6119
6120         * linux-proc.c: Include "gdb_string.h".
6121         * Makefile.in (linux-proc.o): Update dependency list.
6122
6123 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6124
6125         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6126         comment.
6127
6128 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6129
6130         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6131         to_insert_watchpoint, to_remove_watchpoint,
6132         to_stopped_by_watchpoint, to_stopped_data_address,
6133         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6134         target vecctor. Define their corresponding macros so they call
6135         them.
6136         
6137         * target.c: Add default and debug versions of for
6138         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6139         to_insert_watchpoint, to_remove_watchpoint,
6140         to_stopped_by_watchpoint, to_stopped_data_address,
6141         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6142
6143 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6144
6145         * mips-tdep.c (mips_register_virtual_type): New function.
6146         (mips_gdbarch_init): Register mips_register_virtual_type()
6147         with gdbarch machinery.
6148         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6149         this file instead of tm-bigmips.h.
6150         (MIPS_REGSIZE): Delete this macro.
6151         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6152         multiarch version in mips-tdep.c will be found.
6153
6154 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6155
6156         * NEWS: Menion that CHILL has been made obsolete.
6157
6158         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6159         * stabsread.c (read_range_type): Ditto.
6160         * gdbtypes.h: Ditto.
6161         * language.c (binop_type_check): Ditto.
6162         (binop_result_type): Ditto.
6163         (integral_type): Ditto.
6164         (character_type): Ditto.
6165         (string_type): Ditto.
6166         (boolean_type): Ditto.
6167         (structured_type): Ditto.
6168         (lang_bool_type): Ditto.
6169         (binop_type_check): Ditto.
6170         * language.h (_LANG_chill): Ditto.
6171         * dwarfread.c (set_cu_language): Ditto.
6172         * dwarfread.c (CHILL_PRODUCER): Ditto.
6173         * dwarfread.c (handle_producer): Ditto.
6174         * expression.h (enum exp_opcode): Ditto.
6175         * eval.c: Ditto for comments.
6176         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6177         * expprint.c (print_subexp): Ditto.
6178         (print_subexp): Ditto.
6179         * valops.c (value_cast): Ditto.
6180         (search_struct_field): Ditto.
6181         * value.h (COERCE_VARYING_ARRAY): Ditto.
6182         * symfile.c (init_filename_language_table): Ditto.
6183         (add_psymbol_with_dem_name_to_list): Ditto.
6184         * valarith.c (value_binop): Ditto.
6185         (value_neg): Ditto.
6186         * valops.c (value_slice): Ditto.
6187         * symtab.h (union language_specific): Ditto.
6188         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6189         (SYMBOL_DEMANGLED_NAME): Ditto.
6190         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6191         * defs.h (enum language): Ditto.
6192         * symtab.c (got_symtab): Ditto.
6193         * utils.c (fprintf_symbol_filtered): Ditto.
6194
6195         * ch-typeprint.c: Make file obsolete.
6196         * ch-valprint.c: Make file obsolete.
6197         * ch-lang.h: Make file obsolete.
6198         * ch-exp.c: Make file obsolete.
6199         * ch-lang.c: Make file obsolete.
6200
6201         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6202         CHILL_LIB.
6203         (TARGET_FLAGS_TO_PASS): Ditto.
6204         (CHILLFLAGS): Obsolete.
6205         (CHILL): Obsolete.
6206         (CHILL_FOR_TARGET): Obsolete.
6207         (CHILL_LIB): Obsolete.
6208         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6209         ch-valprint.c.
6210         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6211         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6212         ch-lang.o.
6213         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6214         targets.
6215
6216 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6217
6218         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6219         This does not change anything at the moment, but will be helpful
6220         later when full Ada support is integrated.
6221
6222 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6223
6224         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6225         help message.
6226
6227 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6228
6229         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6230         and save it in a local variable.  Use variable in later test.
6231
6232 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6233
6234         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6235         test.  (Thanks to Daniel Jacobowitz.)
6236         
6237 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6238
6239         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6240         (mips_abi_strings): Add "n64".
6241         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6242
6243 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6244
6245         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6246         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6247
6248 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6249
6250         * utils.c (host_pointer_to_address, address_to_host_pointer):
6251         Use gdb_assert() instead of explicit call to internal_error().
6252
6253 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6254
6255         * Makefile.in (rs6000-nat.o): Update dependencies.
6256
6257         From Nicholas Duffek:
6258         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6259         (aix-thread.o): New rule.
6260         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6261         * config/powerpc/aix432.mh: New file.
6262
6263 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6264
6265         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6266         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6267         (fetch_core_registers, ppc_linux_supply_gregset)
6268         (ppc_linux_supply_fpregset): New functions.
6269         (ppc_linux_regset_core_fns): New.
6270         (_initialize_ppc_linux_tdep): Call add_core_fns.
6271         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6272         and ppc_linux_supply_gregset.
6273         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6274         (supply_fpregset): Call ppc_linux_supply_fpregset.
6275         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6276         corelow.o.
6277         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6278
6279 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6280
6281         * symtab.c (lookup_symbol): Demangle before lowercasing.
6282
6283 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6284
6285         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6286         declaration.
6287         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6288         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6289         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6290         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6291         "gdb_string.h".
6292         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6293         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6294         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6295         (avr-tdep.o, mon960-rom.o): Ditto.
6296         (aout_stabs_gnu_h): Define.
6297         (symtab_h): Remove $(gdb_obstack_h).
6298
6299 2002-07-30  Jim Blandy  <jimb@redhat.com>
6300
6301         Patch from David Carlton <carlton@math.stanford.edu>:
6302         * gdbinit.in: Move the `dir' commands that add GDB's own source
6303         directory to the search path to the end, so that the `gdb' source
6304         directory will be searched first.
6305
6306 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6307
6308         * gdb_obstack.h: New file.
6309         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6310         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6311         * objfiles.h: Include "gdb_obstack.h".
6312         * Makefile.in (gdb_obstack_h): Define.
6313         (symtab_h): Add $(gdb_obstack_h).
6314         (objfiles_h): Add $(gdb_obstack_h).
6315         
6316         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6317         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6318         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6319         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6320         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6321         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6322         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6323         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6324
6325         * Makefile.in (bcache.o): Update dependencies.
6326         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6327         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6328         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6329         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6330         (stabsread.o, symfile.o, symmisc.o): Ditto.
6331         (symtab.o, typeprint.o, macroexp.o): Ditto.
6332         (macrotab.o, mdebugread.o): Ditto.
6333         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6334         (coff_ecoff_h, aout_aout64_h): Define.
6335         (aout_stabs_gnu_h, libaout_h): Define.
6336
6337 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6338
6339         * regcache.c (struct regcache_descr): Rename nr_registers to
6340         nr_cooked_registers.  Revise comments describing the structure
6341         member fields.
6342         (init_regcache_descr): Update.
6343         (init_legacy_regcache_descr): Update.
6344         (read_register_gen, write_register_gen): When a cooked register in
6345         the raw register range, directly access the value from the raw
6346         register cache.
6347
6348 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6349
6350         * z8k-tdep.c: Do not include "obstack.h".
6351         * h8300-tdep.c, h8500-tdep.c: Ditto.
6352         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6353         * valprint.c, v850-tdep.c: Ditto.
6354         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6355         * mn10200-tdep.c: Ditto.
6356
6357         * Makefile.in (z8k-tdep.o): Update dependencies.
6358         (m68hc11-tdep.o, valprint.o): Ditto.
6359         (v850-tdep.o, d10v-tdep.o): Ditto.
6360         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6361         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6362         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6363         (sh_opc_h, gdb_sim_sh_h): Define.
6364         (elf_sh_h, elf_bfd_h): Define.
6365         (opcode_m68hc11_h): Define.
6366         (OPCODES_SRC, OPCODES_DIR): define.
6367         (OPCODES): Use $(OPCODES_DIR).
6368         (gdb_sim_d10v_h): Rename sim_d10v_h.
6369         (gdb_sim_arm_h): Rename sim_arm_h.
6370
6371 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6372
6373         * utils.c (host_pointer_to_address, address_to_host_pointer):
6374         Change internal_error() message to indicate function responsible
6375         for the error.
6376
6377 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6378
6379         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6380         calls to local_hex_string_custom().
6381
6382 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6383
6384         * irix5-nat.c: Move IRIX shared library support from here...
6385         * solib-irix.c: ...to here.  Revised substantially to work with
6386         generic solib framework.
6387
6388         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6389         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6390         * mips-irix-tdep.c: New file.
6391
6392         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6393         (mips-irix-tdep.o, solib-irix.o): New rules.
6394         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6395         solib-irix.o.
6396         * config/mips/irix6.mt (TDEPFILES): Likewise.
6397         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6398
6399 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6400
6401         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6402         disabled (via ``#if 0'') includes.
6403
6404 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6405
6406         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6407         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6408         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6409         Add support for the fpscr register.
6410         * rs6000-nat.c (regmap, fetch_inferior_registers)
6411         (store_inferior_registers, fetch_core_registers): Likewise.
6412
6413 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6414
6415         * rs6000-nat.c (language.h): Include.
6416         (special_regs): Delete this array.
6417         (regmap): New function.
6418         (fetch_register, store_register):  Use regmap() to map gdb
6419         register numbers to ptrace register numbers.  Also, use
6420         outputs from regmap() to make decisions regarding type of
6421         ptrace() call to make.  In particular, don't compare against
6422         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6423         (fetch_inferior_registers, store_inferior_registers): Where
6424         possible, obtain register numbers from tdep struct.  Don't
6425         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6426         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6427         (LAST_UISA_SP_REGNUM): Delete.
6428         
6429 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6430
6431         * rs6000-nat.c (ppc-tdep.h): Include.
6432         (fetch_registers, store_register, fetch_core_registers): Don't
6433         access registers[] directly.  Instead, use supply_register() or
6434         regcache_collect() as appropriate.
6435         (find_toc_address): Format hex address with local_hex_string().
6436
6437 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6438
6439         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6440         bfd/elf32-frv.c.
6441
6442 2002-07-24  Tom Tromey  <tromey@redhat.com>
6443
6444         * jv-exp.y: Marked all strings with _().
6445         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6446         internal_error.
6447         (MethodInvocation, CastExpression, parse_number, yyerror,
6448         java_type_from_name, push_expression_name, yylex): Typo fixes.
6449
6450 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6451
6452         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6453         (tee_file_flush, tee_file_write, tee_file_fputs)
6454         (tee_file_isatty): New.
6455         * ui-file.h (tee_file_new): Add prototype.
6456
6457 2002-07-24  Aidan Skinner <aidan@velvet.net>
6458
6459         * ada-lang.c: Change k&r style function definitions to prototyped
6460         form.
6461         * ada-typeprint.c: Change k&r style function definitions to prototyped
6462         form.
6463         * ada-valprint.c: Change k&r style function definitions to prototyped
6464         form.
6465         
6466 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6467
6468         * README: Remove reference to remote-bug.
6469         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6470         remote-bug.c.
6471         (m88k-nat.o): Delete rule.
6472         (m88k-tdep.o): Delete rule.
6473         (remote-bug.o): Delete rule.
6474         * MAINTAINERS: Mark as obsolete.
6475         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6476         * m88k-tdep.c: Make file obsolete.
6477         * config/m88k/m88k.mh: Ditto.
6478         * config/m88k/delta88v4.mh: Ditto.
6479         * config/m88k/delta88v4.mt: Ditto.
6480         * config/m88k/delta88.mt: Ditto.
6481         * config/m88k/delta88.mh: Ditto.
6482         * remote-bug.c: Ditto.
6483         * config/m88k/tm-delta88.h: Ditto.
6484         * config/m88k/nm-delta88v4.h: Ditto.
6485         * config/m88k/xm-delta88.h: Ditto.
6486         * config/m88k/xm-dgux.h: Ditto.
6487         * config/m88k/tm-m88k.h: Ditto.
6488         * config/m88k/nm-m88k.h: Ditto.
6489         * config/m88k/tm-delta88v4.h: Ditto.
6490         * m88k-nat.c: Ditto.
6491         * cxux-nat.c: Ditto.
6492         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6493         and m88*-*-* obsolete.
6494         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6495         m88*-*-* obsolete.
6496
6497 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6498
6499         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6500         constant.  Same for local pointer variables.
6501         (extract_signed_integer): Ditto.
6502         * defs.h (extract_unsigned_integer): Update.
6503         (extract_signed_integer): Update.
6504
6505 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6506
6507         * regcache.c (regcache_raw_write): Change buf parameter to a
6508         constant void pointer.
6509         (regcache_raw_read): Change buf parameter to a void pointer.
6510         (legacy_write_register_gen): Change myaddr parameter a constant
6511         void pointer.
6512         (supply_register): Change val parameter to a const void pointer.
6513         * regcache.h (regcache_raw_write): Update declaration.
6514         (regcache_raw_read): Update declaration.
6515         (supply_register): Update declaration.
6516
6517 2002-07-24  Tom Tromey  <tromey@redhat.com>
6518
6519         * defs.h (gdb_readline_wrapper): Declare.
6520         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6521         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6522         * top.c (gdb_readline_wrapper): New function.
6523         (command_line_input): Use it.
6524
6525 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6526
6527         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6528         regcache_read and regcache_write.
6529         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6530         * regcache.c: Update.
6531         * sh-tdep.c (sh64_push_arguments): Update comment.
6532         (sh_pseudo_register_read): Update.
6533         (sh_pseudo_register_write): Update.
6534         (sh4_register_read): Update.
6535         (sh4_register_write): Update.
6536         (sh64_pseudo_register_read): Update.
6537         (sh64_pseudo_register_write): Update.
6538         (sh64_register_read): Update.
6539         (sh64_register_write): Update.
6540         * i386-tdep.c (i386_extract_return_value): Update.
6541         (i386_extract_struct_value_address): Update.
6542         (i386_extract_return_value): Update.
6543         * blockframe.c (generic_read_register_dummy): Update.
6544         (generic_call_dummy_register_unwind): Update
6545         * infrun.c (write_inferior_status_register): Update.
6546
6547 2002-07-23  Jim Blandy  <jimb@redhat.com>
6548
6549         * parser-defs.h (expression_context_pc): Make this extern.
6550         (Thanks to Michael Snyder.)
6551
6552 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6553
6554         GDB 5.2.1 released from 5.2 branch.
6555         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6556         * README: Update to mention 5.2.1.
6557
6558 2002-07-23  Mark Salter  <msalter@redhat.com>
6559
6560         * remote.c (remote_read_bytes): Fix check for error.
6561
6562 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6563
6564         * aix-thread.c (language.h): Include.
6565         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6566         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6567         Print newlines at end of debug messages.
6568         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6569         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6570
6571 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6572
6573         * aix-thread.c (ppc-tdep.h): Include.
6574         (special_register_p): New function.
6575         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6576         (store_regs_user_thread): Use register number information from
6577         gdbarch_tdep struct instead of hardcoded offsets relative to
6578         FIRST_UISA_SP_REGNUM.
6579         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6580         special_register_p() instead of using FPLAST_REGNUM and
6581         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6582         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6583         will be MQ's register number.
6584
6585 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6586
6587         * aix-thread.c (ops): Rename to aix_thread_ops.
6588         (base_ops): Rename to base_target.
6589         (ops_attach): Rename to aix_thread_attach.
6590         (ops_detach): Rename to aix_thread_detach.
6591         (ops_resume): Rename to aix_thread_detach.
6592         (ops_wait):   Rename to aix_thread_wait.
6593         (ops_kill):   Rename to aix_thread_kill.
6594         (init_ops):   Rename to init_aix_thread_ops.
6595         (ops_fetch_register): Rename to aix_thread_fetch_register.
6596         (ops_store_register): Rename to aix_thread_store_register.
6597         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6598         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6599         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6600         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6601         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6602         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6603         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6604         (store_regs_lib):  Rename to store_regs_user_thread.
6605         (store_regs_kern): Rename to store_regs_kernel_thread.
6606
6607 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6608
6609         * aix-thread.c (ops_prepare_to_store): Eliminate.
6610         (init_ops): Don't initialize ops.prepare_to_store.
6611         (store_regs_kern): Pre-fetch register buffers from child, 
6612         because some registers may not be in the cache.  Copy
6613         regs from register cache only if they are cached.
6614         (store_regs_lib): Copy regs from register cache only
6615         if they are cached.
6616         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6617         fill_gprs64): Ditto.
6618
6619 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6620
6621         * aix-thread.c (gdb_assert.h): Include.
6622         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6623         register sizes (from register cache) match size of buffer holding
6624         register data.
6625         (fill_sprs32): Change parameter types to match those in the ptrace()
6626         buffer.
6627         (store_regs_lib): Likewise, but for 32-bit temporary variables.
6628         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6629
6630 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6631
6632         * aix-thread.c (supply_sprs64): Cosmetic change.
6633         (supply_sprs32): Cosmetic change.
6634         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6635         (fill_sprs64): Use regcache_collect instead of read_register.
6636         (store_regs_lib): Use regcache_collect instead of 
6637         read_register.  Use fill_sprs32 instead of fill_sprs64,
6638         if debugging a 32-bit architecture.
6639         (store_regs_kern): Use fill_gprs64 etc. to pull the values
6640         out of the register cache, instead of passing a pointer into
6641         the register cache directly to ptrace.  Use regcache_collect
6642         insteaad of read_register.
6643         (ops_prepare_to_store): Use target_read_registers instead
6644         of read_register_bytes.
6645
6646 2002-07-20  Aidan Skinner <aidan@velvet.net>
6647
6648         * MAINTAINERS: Add self under write after approval. 
6649                 
6650 2002-07-20  Aidan Skinner <aidan@velvet.net>
6651
6652         * ada-tasks.c: Change k&r style function definitions to prototyped
6653         form.
6654                 
6655 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
6656
6657         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6658         * x86-64-tdep.c: Include "objfiles.h".
6659         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6660         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6661
6662 2002-07-17  Michal Ludvig  <michal@suse.cz>
6663
6664         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6665         (update_context): Initialise cfa variable.
6666
6667 2002-07-17  Michael Snyder  <msnyder@redhat.com>
6668
6669         * aix-thread.c: Shorten some long lines.  
6670         Bring comments into line with code spec.
6671
6672 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6673
6674         * infrun.c: Re-indent using gdb_indent.sh.
6675
6676 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
6677
6678         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6679         Leave the indentation temporarily untouched, to minimize the diffs.
6680
6681 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
6682
6683         * stabsread.c: Make os9k sections of the code obsolete,
6684         for real this time.
6685         * stabsread.h: Make os9k sections of the code obsolete.
6686
6687 2002-07-18  Michal Ludvig <mludvig@suse.cz>
6688
6689         * linux-low.c (regsets_store_inferior_registers): Add free()
6690         at the end of a loop to prevent memory leak.
6691         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6692         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6693         * config/sparc/tm-sp64linux.h: Make the rest of #endif
6694         line a comment.
6695         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6696
6697 2002-07-17  Jim Blandy  <jimb@redhat.com>
6698
6699         * macrocmd.c (info_macro_command): Remove newline from error
6700         message.
6701
6702 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
6703
6704         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6705         (sh_gdbarch_init): Use it for sh-dsp.
6706
6707 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
6708
6709         * dwarf2read.c (read_initial_length): Handle older, non-standard,
6710         64-bit DWARF2 format.
6711
6712 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
6713
6714         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6715         <sys/proc.h> when not available.
6716
6717 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6718
6719         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6720         * stabsread.c: Make os9k sections of the code obsolete.
6721         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6722         * config/i386/i386os9k.mt: Make file obsolete.
6723         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6724         (COMMON_OBS): Remove os9kread.o
6725         (SFILES): Remove os9kread.c.
6726         (os9kread.o, remote-os9k.o): Make target obsolete.
6727         * remote-os9k.c: Make file obsolete.
6728         * os9kread.c: Make file obsolete.
6729         * Makefile.in
6730
6731 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
6732
6733         * NEWS: Mention that the FR30 has been made obsolete.
6734         * fr30-tdep.c: Make file obsolete.
6735         * config/fr30/tm-fr30.h: Ditto.
6736         * config/fr30/fr30.mt: Ditto.
6737         * configure.tgt: Make fr30-*-elf obsolete.
6738         * MAINTAINERS: Make fr30-elf obsolete.
6739
6740 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6741
6742         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6743         found is not inside a section.
6744
6745 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6746
6747         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6748         strerror().
6749         (pdc_realloc): Use xrealloc() instead of realloc().
6750
6751 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6752
6753         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6754         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6755         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6756         macros.
6757
6758 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6759
6760         * aix-thread.c (ptrace_check): Eliminate goto.
6761         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
6762         problem.
6763
6764 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
6765
6766         * aix-thread.c (gdbcmd.h): Include.
6767         (DEBUG, DBG, DBG2, dbg): Eliminate.
6768         (debug_aix_thread): New static global.
6769         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6770         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6771         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6772         invocations to DBG and DBG2 macros to test against
6773         ``debug_aix_thread'' and call fprintf_unfiltered().
6774         (_initialize_aix_thread): Add new command "set debug aix-thread".
6775
6776 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6777
6778         From Gerhard Tonn <TON@de.ibm.com>:
6779         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6780         instead of supply_register.
6781
6782 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
6783
6784         * dwarf2cfi.c: Include "gdb_assert.h".
6785         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6786         non-NULL.
6787         (update_context): Do not use __func__.  Add missing ``break''.
6788         (update_context): Do not use __func__.
6789
6790 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
6791
6792         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6793         and its setting.  Set gdbarch instruction printing functions
6794         directly.  For non-rs6000 case use new function
6795         gdb_print_insn_powerpc.
6796         (gdb_print_insn_powerpc): New function.
6797
6798 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
6799
6800         * NEWS: Mention that the d30v has been marked obsolete.
6801         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6802         * configure.tgt: Mark d30v-*-* as obsolete.
6803         * d30v-tdep.c: Mark file as obsolete.
6804         * config/d30v/d30v.mt: Ditto.
6805         * config/d30v/tm-d30v.h: Ditto.
6806
6807 2002-07-13  Aidan Skinner <aidan@velvet.net>
6808
6809         * ada-tasks.c (add_task_entry): replace calls to
6810         malloc() with xmalloc
6811         * ada-tasks.c (init_task_list): replace calls to free with xfree()
6812         
6813         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6814         ada_finish_decode_line_1, all_sals_for_line
6815         ada_breakpoint_rewrite): replace calls to free() with xfree()
6816                 
6817 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6818
6819         From Nicholas Duffek (with minor changes by Martin Hunt, 
6820         Louis Hamilton, and Kevin Buettner):
6821         * aix-thread.c: New file.
6822
6823 2002-07-12  Petr Sorfa <petrs@caldera.com>
6824
6825         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
6826         complaint for invalid attribute class or form.
6827         (read_func_scope): DW_AT_frame_base
6828         better handling of DW_AT_block*.
6829         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6830         better handling of DW_AT_block*.
6831         (read_common_block): DW_AT_location
6832         better handling of DW_AT_block*.
6833         (read_partial_die): DW_AT_location better handling
6834         of DW_AT_block*.
6835         (new_symbol): DW_AT_external better handling of
6836         DW_AT_block*. Proper initialization of variable
6837         "addr".
6838         (attr_form_is_block): New function that returns true
6839         if the attribute's form is of DW_FORM_block*.
6840
6841 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6842
6843         * valops.c (find_method_list): Remove comment about
6844         removed STATIC_MEMFUNCP argument.
6845         (value_find_oload_method_list): Likewise.
6846
6847 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6848
6849         From Nicholas Duffek:
6850         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6851         target_new_objfile_hook.
6852
6853 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
6854
6855         From Nicholas Duffek:
6856         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6857         csect.
6858
6859 2002-07-12  Andrew Cagney  <cagney@redhat.com>
6860
6861         * MAINTAINERS: Mention --enable-sim-build-warnings.
6862         (m68hc11-elf): Disable sim build warnings.
6863         (m32r-elf): Mark as broken obsolete candidate.
6864         (x86_64-linux-gnu): Mark as buildable with -Werror.
6865         (arm-elf): Change -w to ``,'' which enables warnings but not
6866         -Werror.
6867
6868 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
6869
6870         * bcache.h: Update copyright.
6871         (struct bstring, struct bcache): Move definition to "bcache.c".
6872         Replaced by opaque declaration.
6873         (bcache_xfree): Replace free_bcache.
6874         (bcache_xmalloc, bcache_memory_used): Declare.
6875         
6876         * bcache.c: Update copyright.
6877         (struct bstring, struct bcache): Moved to here from "bcache.h".
6878         Update comments.
6879         (bcache_xmalloc, bcache_memory_used): New functions.
6880         (bcache_xfree): Replace function free_bcache.
6881         
6882         * Makefile.in (objfiles.o): Add $(bcache_h).
6883         (objfiles_h): Remove $(bcache_h).
6884         (symfile.o): Add $(bcache_h).
6885
6886         * symmisc.c: Update copyright.
6887         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6888         (print_objfile_statistics): Use bcache_memory_used.
6889
6890         * symfile.c: Include "bcache.h".
6891         (reread_symbols): Use bcache_xfree.
6892         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6893         (add_psymbol_to_list): Pass psymbol_cache by value.
6894         (add_psymbol_with_dem_name_to_list): Ditto.
6895
6896         * objfiles.h: Update copyright.
6897         (struct bcache): Declare opaque.  Do not include "bcache.h".
6898         (struct objfile): Change psymbol_cache and macro_cache to ``struct
6899         bcache'' pointers.
6900         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6901
6902         * objfiles.c: Include "bcache.h".  Update copyright.
6903         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6904         macro_cache.
6905         (free_objfile): Use bcache_xfree.
6906
6907 2002-07-11  Grace Sainsbury  <graces@redhat.com>
6908
6909         * monitor.c (monitor_fetch_register): Make name a constant.
6910         (monitor_store_register): Same.
6911
6912 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
6913
6914         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6915         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6916         (finish_block) For non-function blocks, hash the symbol table.  For
6917         function blocks, mark the symbol table as unhashed.
6918         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6919         (msymbol_hash_iw): Likewise.
6920         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6921         value.
6922         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6923         (lookup_minimal_symbol): Likewise for both.
6924         * symtab.h (struct block): Add `hashtable' flag.  Comment the
6925         hashtable.
6926         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6927         (ALL_BLOCK_SYMBOLS): Update.
6928         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6929         (struct symbol): Add `hash_next' pointer.
6930         * symtab.c (lookup_block_symbol): Search using the hash table when
6931         possible.
6932         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6933         (search_symbols, find_addr_symbol): Likewise.
6934
6935         * dstread.c (process_dst_block): Clear hashtable bit for new block.
6936         (read_dst_symtab): Likewise.
6937         * jv-lang.c (get_java_class_symtab): Likewise.
6938         * mdebugread.c: Include "gdb_assert.h".
6939         (shrink_block): Assert that the block being modified is not hashed.
6940         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6941         * symmisc.c (free_symtab_block): Walk the hash table when freeing
6942         symbols.
6943         (dump_symtab): Recognize hashed blocks.
6944         * printcmd.c (print_frame_args):  Assert that function blocks do not
6945         have hashed symbol tables.
6946         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6947         (fill_in_ada_prototype, debug_print_block): Likewise.
6948         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
6949
6950 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
6951
6952         * stack.c (print_frame): Use result of frame_address_in_block()
6953         instead of fi->pc when evaluating symbols.
6954         (backtrace_command_1): Ditto.
6955
6956 2002-07-11  Andrew Cagney  <cagney@redhat.com>
6957
6958         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6959         Make static.
6960
6961         * arm-tdep.c (arm_register_name): Make return type constant.
6962
6963 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
6964
6965         * win32-nat.c (has_detach_ability): Convert to strict ISO C
6966         prototype.
6967         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6968         * s390-tdep.c (s390_fp_regnum): Ditto.
6969         (s390_read_fp): Ditto.
6970         (s390_pop_frame): Ditto.
6971         (_initialize_s390_tdep): Ditto.
6972         * remote.c (get_remote_state): Ditto.
6973         * procfs.c (mappingflags): Ditto.
6974         * memattr.c (_initialize_mem): Ditto.
6975         * mcore-tdep.c (mcore_pop_frame): Ditto.
6976         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6977         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6978         * language.c (set_case_str): Ditto.
6979         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6980         * frv-tdep.c (new_variant): Ditto.
6981         (frv_stopped_data_address): Ditto.
6982         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6983         (context_alloc): Ditto.
6984         (frame_state_alloc): Ditto.
6985         (unwind_tmp_obstack_init): Ditto.
6986         (unwind_tmp_obstack_free): Ditto.
6987         (cfi_read_fp): Ditto.
6988         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6989         (cris_pop_frame): Ditto.
6990         * c-lang.c (scanning_macro_expansion): Ditto.
6991         (finished_macro_expansion): Ditto.
6992         (c_preprocess_and_parse): Ditto.
6993         * gdbarch.sh: Ditto.
6994         * gdbarch.h, gdbarch.c: Regenerate.
6995         * config/mn10200/tm-mn10200.h: Adjust indentation.
6996         * target.c: Adjust indentation.
6997         * symtab.h: Adjust indentation.
6998         * stabsread.h: Adjust indentation.
6999         * remote-es.c: Adjust indentation.
7000         * os9kread.c: Adjust indentation.
7001
7002 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7003         
7004         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7005         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7006
7007 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7008         
7009         * NEWS: Mention m68k, mcore multi-arching.  
7010         * MAINTAINERS: Change status of m68k, mcore to reflect
7011         multi-arching.
7012
7013 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7014
7015         * valops.c (find_overload_match): Free oload_syms.
7016
7017 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7018
7019         Define HAVE_SYS_PROC_H if sys/proc.h exists
7020         * configure.in: Add check for sys/proc.h
7021         * config.in: Regenerate.
7022         * configure: Regenerate.
7023
7024 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7025
7026         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7027         #if !GDB_MULTI_ARCH. 
7028
7029 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7030
7031         * config.in, configure: Regenerate.
7032
7033 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7034
7035         * dwarf2cfi.c: Include "gcore.h".
7036         (execute_stack_op): Fix implementation of the
7037         DW_OP_deref and DW_OP_deref_size operators by letting do their
7038         lookup in the target.
7039
7040 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7041
7042         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7043         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7044         tdep->sc_sp_offset.
7045
7046 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7047
7048         Fix PR gdb/595, gdb/602
7049         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7050         Don't call value_cast, just read the vtable pointer; update comments
7051         to match.
7052
7053 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7054
7055         * config/mcore/tm-mcore.h: Remove file.
7056         * config/mcore/mcore.mt: Remove definition of TM_FILE
7057         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7058
7059 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7060
7061         * i386bsd-tdep.c: Include "gdb_string.h".
7062
7063 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7064
7065         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7066         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7067         mcore-tdep.
7068         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7069         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7070         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7071         (RETVAL_REGNUM): Move macros from tm-mcore.h
7072         (mcore_reg_struct_has_addr): New function.
7073         (mcore_gdbarch_init): Added initializations for the macros removed
7074         from tm-mcore.h.
7075
7076 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7077
7078         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7079         traditonal string branding within the ELF header.
7080
7081 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7082
7083         * symtab.c (remove_params): New function.
7084         (make_symbol_overload_list): Use it instead of cplus_demangle.
7085         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7086
7087 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7088
7089         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7090
7091         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7092         New variables.
7093         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7094         and tdep->sigtramp_end.
7095         * i386obsd-nat.c: New file.
7096         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7097
7098         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7099         Don't call get_current_frame().
7100
7101 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7102
7103         * i386-nat.c (child_post_startup_inferior): New function
7104         calling i386_cleanup_dregs if
7105         I386_USE_GENERIC_WATCHPOINTS is defined.
7106         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7107         conditional to acknowledge that i386-nat.c has its
7108         own child_post_startup_inferior function.
7109
7110 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7111
7112         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7113         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7114         instead of MAX_REGISTER_RAW_SIZE.
7115         (i386_extract_return_value, i386_extract_struct_value_address):
7116         Convert to use regcache.
7117         (i386_gdbarch_init): Set max_register_raw_size and
7118         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7119         Set extract_return_value and extract_struct_value_address instead
7120         of their deprecated variants.
7121
7122         Convert i386 target to generic dummy frames.
7123         * i386-tdep.c: Include "symfile.h".
7124         (i386_frameless_signal_p): Consider a function to be frameless if
7125         the pc points at the first instruction of the function.
7126         (i386_frame_chain): Handle (generic) call dummies.
7127         (i386_frame_saved_pc): Likewise.
7128         (i386_frame_init_saved_regs): Remove code dealing with call
7129         dummies on the stack.
7130         (i386_push_dummy_frame): Removed.
7131         (i386_call_dummy_words): Removed.
7132         (i386_fix_call_dummy): Removed.
7133         (i386_push_return_address): New function.
7134         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7135         parameter, and don't call get_current_frame.
7136         (i386_pop_frame): New function.
7137         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7138         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7139         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7140         call_dummy_length to 0, set call_dummy_words to NULL, set
7141         sizeof_call_dummy_words to 0, set fix_call_dummy to
7142         generic_fix_call_dummy, set pc_in_call_dummy to
7143         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7144         generic_push_dummy_frame, set push_return_address to
7145         i386_push_return_address and set frame_chain_valid to
7146         generic_file_frame_chain_valid.
7147
7148 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7149
7150         * gdbarch.sh (struct regcache): Add opaque declaration.
7151         (EXTRACT_RETURN_VALUE): New architecture method.
7152         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7153         * gdbarch.h, gdbarch.c: Regenerate.
7154         * arch-utils.c (legacy_extract_return_value): New function.
7155         * arch-utils.h (legacy_extract_return_value): Declare.
7156         * values.c (value_being_returned): Re-enable code handling
7157         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7158         deprecated_grub_regcache_for_registers call to block handling
7159         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7160         (EXTRACT_RETURN_VALUE): Do not define.
7161
7162 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7163
7164         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7165         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7166         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7167         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7168         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7169         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7170         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7171         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7172         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7173         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7174         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7175         argument so the function fits the prototype in the architecture
7176         vector.
7177         (mcore_pop_frame): Remove argument so the function fits the
7178         prototype. Use get_current_frame instead of the argument.
7179         (mcore_push_arguments): Change type of struct_return so the
7180         function can be used in the architecture vector.
7181         (mcore_store_struct_return): Add.
7182         (mcore_frame_init_saved_regs): Add.
7183         (mcore_gdbarch_init): Add function calls to replace the macros
7184         removed from tm-mcore.h
7185
7186 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7187
7188         * infcmd.c (print_return_value): Remove compatibility code calling
7189         deprecated_grub_regcache_for_registers.
7190         
7191         * values.c: Include "regcache.h".
7192         (value_being_returned): Update.  Use
7193         deprecated_grub_regcache_for_registers to extract the register
7194         buffer address.  
7195         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7196         ``struct regcache''.
7197         * Makefile.in (values.o): Add dependency on $(regcache_h).
7198
7199         * inferior.h (run_stack_dummy): Change type of second parameter to
7200         a ``struct regcache''.
7201         * valops.c (hand_function_call): Change type of retbuf to ``struct
7202         regcache''.  Allocate using regcache_xmalloc, clean using
7203         make_cleanup_regcache_xfree.
7204         * infcmd.c (run_stack_dummy): Update.  Use
7205         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7206
7207         * regcache.c (do_regcache_xfree): New function.
7208         (make_cleanup_regcache_xfree): New function.
7209         * regcache.h (make_cleanup_regcache_xfree): Declare.
7210
7211 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7212
7213         * event-top.c (command_line_handler): Don't read past
7214         beginning of buffer.
7215
7216 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7217         
7218         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7219         struct frame_id. 
7220         (varobj_create): Store frame_id for root.
7221         (varobj_gen_name): Use xasprintf.
7222         (varobj_update): Save and restore frame using get_frame_id() and
7223         frame_find_by_id().
7224         (create_child): Use xasprintf.
7225         (new_root_variable): Initialize frame_id.
7226         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7227         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7228         to prevent memory leak.
7229
7230 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7231
7232         * valops.c (hand_function_call): Move declaration of retbuf to
7233         start of function, allocate using malloc, add a cleanup but before
7234         the inf_status cleanup, cleanup the buffer.  Rename local variable
7235         old_chain to inf_status_cleanup.
7236
7237 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7238
7239         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7240
7241         * cli/cli-decode.c (cmd_func_p): New function.
7242         (cmd_func): New function.
7243
7244         * command.h: Add cmd_func() and cmd_func_p().   
7245         
7246 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7247
7248         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7249         (REGISTER_SIZE): Remove.
7250         (MAX_REGISTER_RAW_SIZE): Remove.
7251         (REGISTER_VIRTUAL_TYPE): Remove.
7252         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7253         (REGISTER_NAME): Remove.
7254         (USE_GENERIC_DUMMY_FRAMES): Remove.
7255         (CALL_DUMMY): Remove.
7256         (CALL_DUMMY_START_OFFSET): Remove.
7257         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7258         (CALL_DUMMY_LOCATION): Remove.
7259         (FIX_CALL_DUMMY): Remove.
7260         (CALL_DUMMY_ADDRESS): Remove.
7261         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7262         (SAVE_DUMMY_FRAME_TOS): Remove.
7263         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7264         (mcore_register_virtual_type): New function.
7265         (mcore_register_byte): New function.
7266         (mcore_register_size): New function.
7267         (mcore_register_name): New function.
7268         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7269         macros removed from tm-mcore.h.
7270         (mcore_dump_tdep): Add.
7271         (_initialize_mcore_tdep): Add gdbarch_register call.
7272
7273 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7274
7275         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7276         frameless_look_for_prologue, such that we actually call this
7277         function.
7278
7279 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7280
7281         * frame.h (frame_address_in_block): New function.
7282
7283         * blockframe.c (frame_address_in_block): New function extracted
7284         from get_frame_block().
7285         (get_frame_block): Use frame_address_in_block().
7286         (block_innermost_frame): Use frame_address_in_block() to match
7287         the frame pc address against the block boundaries rather than
7288         the frame pc directly. This prevents a failure when a frame pc
7289         is actually a return-address pointing immediately after the end
7290         of the given block. 
7291
7292 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7293
7294         * MAINTAINERS: Add self under write after approval. 
7295
7296 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7297
7298         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7299         used in architecture vector. The default is
7300         m68k_local_breakpoint_from_pc.
7301         (m68k_local_breakpoint_from_pc): Add.
7302         (enum): Add register numbers from tm-m68k.h.
7303         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7304         vector.  
7305         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7306         GDB_MULTI_ARCH_PARTIAL.
7307         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7308         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7309         m68k-tdep.c.
7310         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7311         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7312         to enum in m68k-tdep.c
7313
7314 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7315
7316         * solib-osf.c (open_map): Compute the list of shared libraries
7317         loaded by the inferior, rather than the list of libraries loaded
7318         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7319         the wrong shared libraries...
7320
7321 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7322
7323         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7324         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7325         macros.
7326         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7327         Remove functions.
7328         (FRAMELESS_SIGNAL): Remove function.
7329         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7330         i386_linux_saved_pc_after_call): Removed.
7331         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7332         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7333         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7334
7335         * i386-tdep.c (i386_frameless_signal_p): New function.
7336         (i386_frame_chain): Deal with frameless signals.
7337         (i386_sigtramp_saved_sp): New function.
7338         (i386_frame_saved_pc): Deal with frameless signals.
7339         (i386_saved_pc_after_call): Make sure the correct value is
7340         returned just after entry into a sigtramp.
7341         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7342         i386fbsd4_sc_sp_offset): New variables.
7343         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7344         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7345         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7346         similiar to what we already did for sc_pc_offset.
7347         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7348         tdep->sc_sp_offset.
7349
7350         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7351
7352 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7353
7354         * config/i386/tm-x86-64linux.h: New.
7355         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7356         definitions.
7357         * config/i386/nm-x86-64.h: Rename to ...
7358         * config/i386/nm-x86-64linux.h: ... this one.
7359         * config/i386/x86-64linux.mh: Reflect the above change.
7360         
7361 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7362
7363         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7364         with sigcontext_addr.  Add sc_sp_offset.
7365         (i386bsd_sigtramp_saved_pc): Remove prototype.
7366         (i386bsd_sicontext_addr): Add prototype.
7367         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7368         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7369         (i386_svr4_sigtramp_saved_pc): Removed.
7370         (i386_svr4_sigcontext_addr): New function.
7371         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7372         Initialize tdep->sigcontext_addr instead.  Initialize
7373         tdep->sc_pc_offset and tdep->sc_sp_offset.
7374         (i386_gdbarch_init): Likewise.
7375         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7376         any more.
7377         (i386bsd_sigtramp_saved_pc): Remove function.
7378         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7379         Initialize tdep->sigcontext_addr instead.  Initialize
7380         tdep->sc_pc_offset.
7381         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7382         of tdep->sigtramp_saved_pc.
7383         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7384         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7385         instead.
7386
7387         * i386-tdep.c (i386_frameless_function_invocation,
7388         i386_frame_num_args, i386_frame_init_saved_regs,
7389         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7390         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7391         i386_extract_return_value, i386_store_return_value,
7392         i386_extract_struct_value_address, i386_register_virtual_type,
7393         i386_register_convertible, i386_register_convert_to_virtual,
7394         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7395         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7396         static.
7397
7398 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7399
7400         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7401
7402         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7403         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7404         this macro.  Include "value.h".
7405
7406 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7407
7408         * ada-exp.tab.c: remove as it's a generated file
7409         * ada-lex.c: remove as it's a generated file
7410                 
7411 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7412
7413         * config/i386/tm-i386.h (struct frame_info, struct
7414         frame_saved_regs, struct value, struct type): Remove forward
7415         declarations.
7416
7417         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7418         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7419         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7420         (FILL_FPXREGSET): Define.
7421
7422         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7423
7424         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7425         i[3456]86-*-netbsd* case.
7426         * config/i386/tm-obsd.h: Removed.
7427         * config/i386/obsd.mt: Removed.
7428         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7429         core-aout.o.
7430         (MH_CFLAGS): Add -DYYDEBUG=0.
7431
7432         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7433         i386nbsd_sc_pc_offset on OpenBSD too.
7434
7435         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7436         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7437         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7438         define.
7439         * i386bsd-tdep.c: Include "arch-utils.h".
7440         (i386bsd_aout_in_solib_call_trampoline): New function.
7441         (i386bsd_init_abi): Set in_solib_call_trampoline to
7442         i386bsd_aout_in_solib_call_trampoline.
7443         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7444         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7445
7446 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7447
7448         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7449         (struct obstack, struct bcache): Add opaque declarations.
7450         * Makefile.in (macrotab_h): Update
7451
7452 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7453
7454         * blockframe.c (generic_find_dummy_frame): Change return type to
7455         ``struct regcache''.
7456         (struct dummy_frame): Replace field ``registers'' with regcache, a
7457         struct regcache object.
7458         (generic_find_dummy_frame): Update.
7459         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7460         regcache_xmalloc and regcache_cpy.
7461         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7462         regcache_xfree.
7463         (deprecated_generic_find_dummy_frame): Update.
7464         (generic_read_register_dummy): Update.  Use
7465         regcache_read_as_address.
7466         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7467         (generic_get_saved_register): Update.  Use regcache_read.
7468
7469 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7470
7471         * Makefile.in (objfiles_h): Add $(bcache_h).
7472         * objfiles.h: Include "bcache.h".
7473
7474         * Makefile.in (symtab_h): Remove $(bcache_h).
7475         * symtab.h: Do not include "bcache.h".
7476
7477 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7478
7479         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7480         generic_func_frame_chain_valid.
7481
7482 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7483
7484         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7485         * config/i386/tm-fbsd.h: Likewise.
7486
7487 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7488
7489         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7490         generic_unwind_get_saved_register.
7491
7492 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7493
7494         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7495         * regcache.c (supply_register): Add missing argument to
7496         register_buffer call.
7497
7498 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7499
7500         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7501         Solaris /bin/grep does not not like it.  From Peter Schauer.
7502
7503 2002-06-26  Tom Tromey  <tromey@redhat.com>
7504
7505         * command.h (add_setshow_cmd): Declare.
7506         (add_setshow_cmd_full): Declare.
7507         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7508         returns void.  Use add_setshow_cmd_full.
7509         (add_setshow_cmd_full): New function.
7510         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7511         (add_setshow_boolean_cmd): Likewise.
7512
7513 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7514
7515         * config/vax/tm-vax.h: Protect from multiple inclusion.
7516         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7517         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7518         * config/vax/tm-vaxbsd.h: ...here.  New file.
7519         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7520
7521 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7522
7523         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7524         (BELIEVE_PCC_PROMOTION): Remove.
7525         (AP_REGNUM): Move to...
7526         * config/vax/nm-vax.h: ...here.
7527         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7528         (vax_breakpoint_from_pc): New function.
7529         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7530         and gdbarch_believe_pcc_promotion.
7531
7532 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7533
7534         * Makefile.in (vax_tdep_h): Define.  
7535         (vax-tdep.o): Use $(vax_tdep_h).
7536         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7537         (vax_dump_tdep): New function. 
7538         (_initialize_vax_tdep): Register vax_dump_tdep.
7539         * vax-tdep.h: Include osabi.h.     
7540         (struct gdbarch_tdep): New. 
7541
7542 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7543
7544         * frame.h (deprecated_generic_find_dummy_frame): Rename
7545         generic_find_dummy_frame.
7546         * blockframe.c (generic_find_dummy_frame): Make static.
7547         (deprecated_generic_find_dummy_frame): New function.
7548         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7549         generic_find_dummy_frame with deprecated_find_dummy_frame.
7550         (sh64_nofp_frame_init_saved_regs): Ditto.
7551         (sh_fp_frame_init_saved_regs): Ditto.
7552         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7553         (s390_frame_chain): Ditto.
7554         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7555
7556 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7557
7558         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7559         gdbarch vector are at the top.
7560         (NUM_REGS): Remove.
7561         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7562         (FRAME_ARGS_ADDRESS): Remove.
7563         (FRAME_LOCALS_ADDRESS): Remove.
7564         (FRAME_NUM_ARGS): Remove.
7565         (FRAME_ARGS_SKIP): Remove.  
7566         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7567         (m68k_gdbarch_init): Add gdbarch initializations for macros
7568         undefined in tm-m68k.h
7569
7570 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7571
7572         * monitor.h: Add the function regname to monitor_ops
7573         structure. This way NUM_REGS does not have to be a constant.
7574         * monitor.c (monitor_fetch_register): Added support for regname
7575         function. The function is called if the array regnames is NULL.
7576         (monitor_store_register): Same.
7577         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7578         regnames array.
7579         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7580         cpu32bug_cmds.regname to point to new function.
7581         * abug-rom.c (abug_regname): Same as above.
7582         (init_abug_cmds): Same.
7583         * dbug-rom.c (dbug_regname): Same as above.
7584         (init_dbug_cmds): Same.
7585         * remote-est.c (est_regname): Same. 
7586         (init_est_cmds): Same.
7587         * rom68k-rom.c (rom68k_regname): Same. 
7588         (init_rom68k_cmds): Same.
7589
7590 2002-06-25  Tom Tromey  <tromey@redhat.com>
7591
7592         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7593
7594 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7595
7596         * infrun.c (stop_registers): Change variable's type to ``struct
7597         regcache'''.
7598         (xmalloc_inferior_status): Delete function.
7599         (free_inferior_status): Delete function.
7600         (normal_stop): Use regcache_cpy.
7601         (struct inferior_status): Change type of fields ``stop_registers''
7602         and ``registers'' to ``struct regcache''.
7603         (write_inferior_status_register): Use regcache_write.
7604         (save_inferior_status): Instead of calling
7605         xmalloc_inferior_status, allocate the inf_status buffer directly.
7606         Use regcache_dup_no_passthrough and regcache_dup to save the
7607         buffers.
7608         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7609         Replace the stop_registers regcache instead of overriding it.  Use
7610         regcache_xfree.  Instead of calling free_inferior_status, xfree
7611         the buffer directly.
7612         (discard_inferior_status): Use regcache_xfree.  Instead of calling
7613         free_inferior_status, xfree the buffer directly.
7614         (build_infrun): Use regcache_xmalloc.
7615         (_initialize_infrun): Delete redundant call to build_infrun.
7616
7617         * Makefile.in (infcmd.o): Add $(regcache_h).
7618
7619         * infcmd.c: Include "regcache.h".
7620         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7621         obtain the address of `stop_registers' register buffer.
7622         (print_return_value): Ditto.
7623
7624         * inferior.h (struct regcache): Add opaque declaration.
7625         (stop_registers): Change variable's declared type to ``struct
7626         regcache''.
7627
7628 2002-06-24  Tom Tromey  <tromey@redhat.com>
7629
7630         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7631         * target.c (initialize_targets): Fixed typo in
7632         trust-readonly-sections `show' documentation.
7633
7634         * main.c: Marked all strings with _().
7635
7636 2002-06-24  Don Howard  <dhoward@redhat.com>
7637
7638         * memattr.c (create_mem_region): Treat hi == 0 as a special case
7639         that means max CORE_ADDR+1.
7640         (lookup_mem_region): Ditto.
7641         (mem_info_command): Ditto.
7642
7643 2002-06-24  Grace Sainsbury  <graces@redhat.com>
7644
7645         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7646         (REGISTER_BYTES_OK): Remove.
7647         (REGISTER_BYTES): Remove.
7648         (STORE_STRUCT_RETURN): Remove.
7649         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7650         (STORE_RETURN_VALUE): Remove.
7651         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7652         (FRAME_CHAIN): Remove.
7653         (FRAMELESS_FUNCTION_INVOCATION): Remove.
7654         (FRAME_SAVED_PC): Remove.  
7655         * m68k-tdep.c (m68k_register_bytes_ok):Add.
7656         (m68k_store_struct_return): Add.
7657         (m68k_deprecated_extract_return_value): Add.
7658         (m68k_deprecated_extract_struct_value_address): Add.
7659         (m68k_store_return_value): Add.
7660         (m68k_frame_chain): Add.
7661         (m68k_frameless_function_invocation): Add.
7662         (m68k_frame_saved_pc): Add.
7663         (m68k_gdbarch_init): added set_gdbarch calls for new 
7664         functions and deleted macros.
7665
7666 2002-06-23  Tom Tromey  <tromey@redhat.com>
7667
7668         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7669         (ALLDEPFILES): Likewise.
7670         (udiheaders): Removed.
7671         (udip2soc.o): Likewise.
7672         (udi2go32.o): Likewise.
7673         (udr.o): Likewise.
7674         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7675
7676 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
7677
7678         * infrun.c (_initialize_infrun): Delete unnecessary call to
7679         build_infrun.
7680
7681         * regcache.h: Update comments describing the regcache_cpy family
7682         of functions.
7683         (regcache_save, regcache_restore): Delete declaration.
7684         (regcache_save_no_passthrough): Delete declaration.
7685         (regcache_restore_no_passthrough): Delete declaration.
7686         * regcache.c (regcache_save): Delete function.
7687         (regcache_save_no_passthrough): Delete function.
7688         (regcache_restore): Delete function.
7689         (regcache_restore_no_passthrough): Delete function.
7690
7691 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
7692
7693         * config/m68k/tm-m68k.h: Fix typo.
7694         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7695         (m68k_frame_init_saved_regs): Declare.
7696
7697 2002-06-21  Jim Blandy  <jimb@redhat.com>
7698
7699         Remove some vestiges of Harris 88k support.
7700         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7701         register numbering quirk.
7702         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7703         odd symbols occurring in Harris 88k ELF targets.
7704
7705 2002-06-21  Tom Tromey  <tromey@redhat.com>
7706
7707         * gdb_locale.h: New file.
7708         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7709         (defs_h): Added gdb_locale.h.
7710         * configure, config.in: Rebuilt.
7711         * configure.in (PACKAGE): Define.
7712         * defs.h: Include gdb_locale.h.
7713         * main.c (captured_main): Call setlocale, bindtextdomain,
7714         textdomain.
7715
7716 2002-06-21  Dave Brolley  <brolley@redhat.com>
7717
7718         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7719         * config/frv/frv.mt: New file.
7720         * config/frv/tm-frv.h: New file.
7721         * configure.tgt: Support frv-*-*.
7722         * Makefile.in (frv-tdep.o): New target.
7723         * frv-tdep.c: New file.
7724         * NEWS: Mention frv.
7725
7726 2002-06-21  Dave Brolley  <brolley@redhat.com>
7727
7728         * MAINTAINERS: Add self to "Write After Approval" list.
7729
7730 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7731
7732         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7733         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7734         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7735         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7736         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7737
7738         * m68k-tdep.c: Include arch-utils.h
7739         (m68k_register_raw_size): Add.
7740         (m68k_register_virtual_size): Add.
7741         (m68k_register_virtual_type): Add.
7742         (m68k_register_name): Add.
7743         (m68k_stack_align): Add.
7744         (m68k_register_byte): Add.
7745         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7746         tm-m68k.h.
7747
7748 2002-06-21  Grace Sainsbury  <graces@redhat.com>
7749
7750         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7751         m68k_find_saved_regs.
7752         (m68k_pop_frame): Removed saved_regs structure, and replaced
7753         references to it with frame->saved_regs.
7754         (m68k_gdbarch_init): Added function calls to initialize the
7755         gdbarch structure.
7756         (m68k_fix_call_dummy): Add. 
7757         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7758         (CALL_DUMMY): Remove.
7759         (CALL_DUMMY_LENGTH): Remove.
7760         (CALL_DUMMY_START_OFFSET): Remove.
7761         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7762         (FIX_CALL_DUMMY): Remove.
7763         (PUSH_DUMMY_FRAME): Remove.
7764         (POP_FRAME): Remove.
7765
7766 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7767
7768         * parse.c (parse_fprintf): New function used to avoid calls to
7769         fprintf in bison parser generated debug code.
7770         * parser-defs.h: Declaration of new parse_fprintf function.
7771         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7772         Set YYDEBUG to 1 by default.
7773         Set YYFPRINTF as parse_fprintf.
7774
7775 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
7776
7777         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
7778         encoding anymore.
7779         (pointer_encoding, enum ptr_encoding): New.
7780         (execute_cfa_program): Take care about pointer encoding.        
7781         (dwarf2_build_frame_info): Only call parse_frame_info for 
7782         .debug_frame and .eh_frame.
7783         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7784         fixed augmentation handling, added relative addressing, 
7785         ignore duplicate FDEs. Added comments.
7786         * dwarf2cfi.c: Reindented.
7787         
7788 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
7789
7790         * event-top.c (command_handler): Don't use space_at_cmd_start
7791         unless there is sbrk() on the host. Assign time and space data
7792         to union fields of the appropriate length.
7793
7794 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
7795
7796         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
7797         x86_64_register_name. Return type changed to 'const char *'.
7798         (x86_64_register_name2nr): Rename to x86_64_register_number.
7799         (x86_64_gdbarch_init): Update to reflect the change.
7800         * x86-64-tdep.h: Ditto.
7801         * x86-64-linux-nat.c (x86_64_fxsave_offset)
7802         (supply_fpregset): Ditto.
7803
7804 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7805
7806         * regcache.h: Update copyright.
7807         (struct regcache, struct gdbarch): Add opaque declarations.
7808         (current_regcache): Declare global variable.
7809         (regcache_read, regcache_write): Add gdbarch parameter.
7810         (regcache_save, regcache_save_no_passthrough)
7811         (regcache_restore, regcache_restore_no_passthrough)
7812         (regcache_dup, regcache_dup_no_passthrough)
7813         (regcache_cpy, regcache_cpy_no_passthrough)
7814         (deprecated_grub_regcache_for_registers)
7815         (deprecated_grub_regcache_for_register_valid)
7816         (regcache_valid_p): Add function declarations.
7817         
7818         * regcache.c: Update copyright.
7819         (regcache_descr_handle): New global variable.
7820         (struct regcache_descr): Define.
7821         (init_legacy_regcache_descr, init_regcache_descr): New functions.
7822         (regcache_descr, xfree_regcache_descr): New functions.
7823         (struct regcache): Define.
7824         (regcache_xmalloc, regcache_xfree): New functions.
7825         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7826         (regcache_dup, regcache_dup_no_passthrough): New functions.
7827         (regcache_valid_p, regcache_read_as_address): New functions.
7828         (deprecated_grub_regcache_for_registers): New function.
7829         (deprecated_grub_regcache_for_register_valid): New function.
7830         (current_regcache): New global variable.
7831         (register_buffer): Add regcache parameter.  Update calls.
7832         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
7833         (read_register_gen, write_register_gen): Update register_buffer
7834         call.  Test for legacy_p instead of gdbarch_register_read_p or
7835         gdbarch_register_write_p.
7836         (regcache_collect): Update register_buffer call.
7837         (build_regcache): Rewrite.  Use deprecated grub functions.
7838         (regcache_save, regcache_save_no_passthrough): New functions.
7839         (regcache_restore, regcache_restore_no_passthrough): New
7840         functions.
7841         (_initialize_regcache): Create the regcache_data_handle. Swap
7842         current_regcache global variable.
7843         
7844         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7845         parameter to regcache_read and regcache_write calls.
7846         (sh4_register_read): Ditto.
7847         (sh64_pseudo_register_read): Ditto.
7848         (sh64_register_read): Ditto.
7849         (sh_pseudo_register_write): Ditto.
7850         (sh4_register_write): Ditto.
7851         (sh64_pseudo_register_write): Ditto.
7852         (sh64_register_write): Ditto.
7853
7854         * defs.h (XCALLOC): Define.
7855
7856 2002-06-19  Grace Sainsbury  <graces@redhat.com>
7857
7858         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7859         * m68k-tdep.c (m68k_gdbarch_init): Added.
7860         (m68k_dump_tdep): Added.
7861
7862 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7863
7864         * ada-lang.c (fill_in_ada_prototype): Update comment.
7865
7866 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
7867
7868         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
7869         MIPS_ABI_LAST.
7870         (mips_abi_string, mips_abi_strings): New.
7871         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7872         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
7873         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
7874         O32 if no ABI is found.
7875         (mips_dump_tdep): Use mips_abi_strings.
7876         (mips_abi_update): New function.
7877         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
7878         ``set mips abi'' and ``show mips abi''.  Check the size of
7879         mips_abi_strings.
7880
7881 2002-06-19  Andrew Cagney  <cagney@redhat.com>
7882
7883         * i386-linux-tdep.c (i386_linux_register_name): Make return type
7884         constant.
7885
7886 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
7887
7888         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
7889         current frame using only the first stack size adjustment. All
7890         subsequent size adjustments are not considered to be part of
7891         the "static" part of the current frame.
7892         Compute the address of the saved registers relative to the
7893         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7894         in use in this frame.
7895
7896 2002-06-18  Don Howard  <dhoward@redhat.com>
7897  
7898         * valops.c (value_ind): Use value_at_lazy() when dereferencing
7899         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
7900         suggesting this solution.
7901
7902 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
7903
7904         * config/romp/xm-rtbsd.h: Delete file.
7905         * config/romp/rtbsd.mh: Delete file.
7906
7907 2002-06-18  Keith Seitz  <keiths@redhat.com>
7908
7909         * breakpoint.c (condition_command): Post breakpoint_modify
7910         when a condition is added to an existing breakpoint.
7911         (commands_command): Likewise for commands.
7912         (set_ignore_count): Likewise for ignore counts.
7913         If no tty, do not simply return, still need to send event
7914         notification.
7915         (ignore_command): Only print a newline if the command came
7916         from a tty.
7917         Don't call breakpoints_changed, since this is now properly
7918         handled by set_ignore_count.
7919
7920 2002-06-18  Andrew Cagney  <cagney@redhat.com>
7921
7922         * MAINTAINERS: Note that cris-elf target can be compiled with
7923         -Werror.
7924         * cris-tdep.c (cris_register_name): Make return type constant.
7925         (cris_breakpoint_from_pc): Ditto.
7926
7927 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
7928
7929         * frame.h (struct frame_info): Change type of context to 
7930         'struct context'.
7931
7932 2002-06-17  Andrew Cagney  <cagney@redhat.com>
7933
7934         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7935         pointer.
7936         * gdbarch.h, gdbarch.c: Regenerate.
7937         * config/mips/tm-mips.h (mips_register_name): Update.
7938         * i386-tdep.h (i386_register_name): Update.
7939         * mips-tdep.c (mips_register_name): Update
7940         * alpha-tdep.c (alpha_register_name): Update.
7941         * arch-utils.c (legacy_register_name): Update.
7942         * arch-utils.h (legacy_register_name): Update.
7943         * avr-tdep.c (avr_register_name): Update.
7944         * ia64-tdep.c (ia64_register_name): Update.
7945         * i386-tdep.c (i386_register_name): Update.
7946         * sparc-tdep.c (sparc32_register_name): Update.
7947         (sparc64_register_name): Update.
7948         (sparclite_register_name): Update.
7949         (sparclet_register_name): Update.
7950         * sh-tdep.c (sh_generic_register_name): Update.
7951         (sh_sh_register_name): Update.
7952         (sh_sh3_register_name): Update.
7953         (sh_sh3e_register_name): Update.
7954         (sh_sh_dsp_register_name): Update.
7955         (sh_sh3_dsp_register_name): Update.
7956         (sh_sh4_register_name): Update.
7957         (sh_sh64_register_name): Update.
7958         * s390-tdep.c (s390_register_name): Update.
7959         * rs6000-tdep.c (rs6000_register_name): Update.
7960         * ns32k-tdep.c (ns32k_register_name_32082): Update.
7961         (ns32k_register_name_32382): Update.
7962         * d10v-tdep.c (d10v_ts2_register_name): Update.
7963         (d10v_ts3_register_name): Update.
7964         * xstormy16-tdep.c (xstormy16_register_name): Update.
7965         * vax-tdep.c (vax_register_name): Update.
7966         * v850-tdep.c (v850_register_name): Update.
7967         * m68hc11-tdep.c (m68hc11_register_name): Update.
7968         * mn10300-tdep.c (mn10300_generic_register_name): Update.
7969         (am33_register_name): Update.
7970
7971 2002-06-17  Grace Sainsbury  <graces@redhat.com>
7972
7973         * m68k-tdep.c: Reindented.
7974
7975 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
7976
7977         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7978         list of predefined types.
7979
7980 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
7981
7982         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7983         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7984         REGISTER_CONVERT_TO_RAW): Remove defines.
7985         (i386_register_virtual_type, i386_register_convertible,
7986         i386_register_convert_to_virtual, i386_register_convert_to_raw):
7987         Remove prototypes.
7988         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7989         macros mentioned above.
7990
7991         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7992         (i386lynx_saved_pc_after_call): Remove prototype.
7993         * i386ly-tdep.c: Include "i386-tdep.h".
7994         (i386lynx_saved_pc_after_call): Make static.  Use
7995         read_memory_nobpt instead of read_memory.  Use
7996         read_memory_unsigned_integer instead of read_memory_integer.
7997         (i386lynx_init_abi): New function.
7998         (i386lynx_coff_osabi_sniffer): New function.
7999         (_initialize_i386bsd_tdep): New function.
8000
8001         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8002         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8003         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8004         (i386_fix_call_dummy): Remove prototype.
8005         * i386-tdep.c (i386_call_dummy_words): New variable.
8006         (i386_gdbarch_init): Adjust for removal of the
8007         macros mentioned above.
8008
8009 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8010
8011         * command.h (add_setshow_auto_boolean_cmd): Replace
8012         add_set_auto_boolean_cmd.
8013         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8014         add_set_auto_boolean_cmd.
8015         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8016         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8017         mask-address'' command.
8018         (show_mask_address): Add cmd parameter.
8019         * remote.c (add_packet_config_cmd): Update.  Change type of
8020         set_func and show_func to cmd_sfunc_ftype.
8021         (_initialize_remote): Update `set remote Z-packet'
8022         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8023         (show_remote_protocol_e_packet_cmd): Ditto.
8024         (show_remote_protocol_E_packet_cmd): Ditto.
8025         (show_remote_protocol_P_packet_cmd): Ditto.
8026         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8027         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8028         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8029         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8030         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8031         (show_remote_protocol_Z_packet_cmd): Ditto.
8032         (show_remote_protocol_binary_download_cmd): Ditto.
8033         (show_remote_cmd): Pass NULL to all of above.
8034
8035 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8036
8037         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8038         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8039         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8040         POP_FRAME): Remove defines.
8041         (i386_push_arguments, i386_store_struct_return,
8042         i386_extract_return_value, i386_store_return_value,
8043         i386_extract_struct_value_address, i386_push_dummy_frame,
8044         i386_pop_frame): Renove prototypes.
8045         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8046         macros mentioned above.
8047
8048 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8049
8050         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8051         add_set_boolean_cmd.
8052         (add_setshow_cmd): New function.
8053         * command.h (add_setshow_boolean_cmd): Replace
8054         add_set_boolean_cmd.
8055         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8056         and ``set rdiromatzero''.
8057         * maint.c (_initialize_maint_cmds): Update commented out code.
8058         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8059         * target.c (initialize_targets): Update `set
8060         trust-readonly-sections'.
8061         * remote.c (_initialize_remote): Update `set remotebreak'.
8062
8063 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8064
8065         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8066         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8067         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8068         fit into multi-arch framework.
8069         (i386_breakpoint_from_pc): New function.
8070         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8071         above.
8072
8073         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8074         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8075         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8076         (i386_frameless_function_invocation, i386_frame_num_args,
8077         i386_frame_init_saved_regs): Remove prototypes.
8078         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8079         macros mentioned above.
8080
8081 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8082
8083         * cli/cli-decode.c (set_cmd_cfunc): Update.
8084         (set_cmd_sfunc): Update.
8085         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8086         (set_cmd_sfunc, set_cmd_cfunc): Update.
8087         * cli/cli-decode.h: Update.
8088
8089 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8090
8091         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8092         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8093
8094 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8095
8096         * defs.h (auto_boolean): Declare enum.
8097         * command.h (cmd_auto_boolean): Delete enum.
8098         * mips-tdep.c (mask_address_var): Update.
8099         (mips_mask_address_p): Update.
8100         (show_mask_address): Update.
8101         * remote.c (struct packet_config): Update.
8102         (update_packet_config): Update.
8103         (show_packet_config_cmd): Update.
8104         (packet_ok): Update.
8105         (add_packet_config_cmd): Update.
8106         (_initialize_remote): 
8107         * command.h: Update.
8108         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8109         (do_setshow_command): Update.
8110         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8111         * cli/cli-decode.h: Update.
8112
8113 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8114
8115         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8116         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8117         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8118         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8119         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8120         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8121
8122         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8123         list of DJGPP COFF targets.
8124
8125         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8126         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8127         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8128         (FP0_REGNUM): Remove define.
8129         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8130         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8131         (i386_register_virtual_size): Remove protoype.
8132         * i386-tdep.c (i386_register_virtual_size): Removed.
8133         (i386_extract_return_value, i386_store_return_value): Use
8134         FP0_REGNUM instead of NUM_FREGS to determine whether the
8135         floating-point registers are available.
8136         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8137         Adjust for removal of macros mentioned above.
8138
8139 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8140
8141         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8142         comments.
8143         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8144         Remove prototypes.
8145         (supply_gregset, fill_gregset): Remove use of register keyword and
8146         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8147         NUM_REGS and NUM_FREGS.
8148         (FPREGSET_FSAVE_OFFSET): Remove.
8149         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8150         NUM_FREGS to determine whether the floating-point registers are
8151         available.
8152
8153         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8154         gnu_store_registers): Replace usage of NUM_GREGS with
8155         I386_NUM_GREGS.
8156
8157         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8158         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8159         usage of NUM_GREGS with I386_NUM_GREGS.
8160
8161         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8162
8163         * i386bsd-nat.c: Include "i386-tdep.h".
8164         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8165         I386_NUM_GREGS.
8166
8167         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8168         and associated comment.  They no longer make any sense, since we
8169         don't use this file anymore on Linux.
8170
8171         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8172         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8173         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8174         elements in these arrays.
8175         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8176         MAX_NUM_REGS.
8177
8178 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8179
8180         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8181         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8182
8183 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8184
8185         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8186         EXTRACT_RETURN_VALUE.
8187         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8188         EXTRACT_STRUCT_VALUE_ADDRESS.
8189         * gdbarch.h, gdbarch.c: Regenerate.
8190         
8191         * values.c (value_being_returned): Handle
8192         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8193         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8194
8195         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8196         * arm-tdep.c (arm_gdbarch_init): Update.
8197         * avr-tdep.c (avr_gdbarch_init): Update.
8198         * cris-tdep.c (cris_gdbarch_init): Update.
8199         * d10v-tdep.c (d10v_gdbarch_init): Update.
8200         * ia64-tdep.c (ia64_gdbarch_init): Update.
8201         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8202         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8203         * s390-tdep.c (s390_gdbarch_init): Update.
8204         * sh-tdep.c (sh_gdbarch_init): Update.
8205         * s390-tdep.c (s390_gdbarch_init): Update.
8206         * sparc-tdep.c (sparc_gdbarch_init): Update.
8207         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8208         * v850-tdep.c (v850_gdbarch_init): Update.
8209         * vax-tdep.c (vax_gdbarch_init): Update.
8210         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8211         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8212
8213         * config/arc/tm-arc.h: Update.
8214         * config/d30v/tm-d30v.h: Update.
8215         * config/fr30/tm-fr30.h: Update.
8216         * config/h8300/tm-h8300.h: Update.
8217         * config/h8500/tm-h8500.h: Update.
8218         * config/i386/tm-i386.h: Update.
8219         * config/i386/tm-ptx.h: Update.
8220         * config/i386/tm-symmetry.h: Update.
8221         * config/i960/tm-i960.h: Update.
8222         * config/m32r/tm-m32r.h: Update.
8223         * config/m68k/tm-delta68.h: Update.
8224         * config/m68k/tm-linux.h: Update.
8225         * config/m68k/tm-m68k.h: Update.
8226         * config/m88k/tm-m88k.h: Update.
8227         * config/mcore/tm-mcore.h: Update.
8228         * config/mips/tm-mips.h: Update.
8229         * config/mn10200/tm-mn10200.h: Update.
8230         * config/pa/tm-hppa.h: Update.
8231         * config/pa/tm-hppa64.h: Update.
8232         * config/sparc/tm-sp64.h: Update.
8233         * config/sparc/tm-sparc.h: Update.
8234         * config/sparc/tm-sparclet.h: Update.
8235         * config/z8k/tm-z8k.h: Update.
8236
8237 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8238
8239         * Makefile.in (i386_linux_tdep_h): Define.
8240         (i386_tdep_h, i387_tdep_h): Define.
8241         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8242         $(i386_tdep_h) and $(i387_tdep_h).
8243         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8244
8245 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8246
8247         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8248         Already covered by the default.
8249
8250         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8251         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8252         (i386_gdbarch_init): Initialize long_double_format and long_double
8253         bit.
8254
8255         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8256         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8257         Move these to ...
8258         * config/i386/i386sol2.mh: ... here.
8259         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8260         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8261         (SIGCONTEXT_PC_OFFSET): Remove define.
8262         (IN_SIGTRAMP): Remove define.
8263         * i386-sol2-tdep.c: New file.
8264         
8265         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8266         * config/i386/tm-i386nw.h: Removed.
8267
8268         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8269         USE_STRUCT_CONVENTION): Remove defines.
8270         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8271         (get_longjmp_target): Remove prototype.
8272         (IN_SIGTRAMP): Remove define.
8273         (i386bsd_in_sigtramp): Remove prototype.
8274         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8275         function.  Update comment accordingly
8276         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8277         (FRAME_SAVED_PC): Remove define.
8278         (i386bsd_frame_saved_pc): Remove prototype.
8279         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8280         GET_LONGJMP_TARGET): Remove defines.
8281         (get_longjmp_target): Remove prototype.
8282         (IN_SIGTRAMP): Remove define.
8283         (i386bsd_in_sigtramp): Remove prototype.
8284         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8285         function.  Update comment accordingly
8286         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8287         (FRAME_SAVED_PC): Remove define.
8288         (i386bsd_frame_saved_pc): Remove prototype.
8289         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8290         Remove prototype.
8291         (USE_STRUCT_CONVENTION): Remove prototype.
8292         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8293         declaration.
8294         (_initialize_i386bsd_nat): Revise logic to determine some
8295         constants at compile time when compiling a native GDB.  Warn if
8296         things don't match up with what we expect.
8297         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8298         Remove variables.
8299         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8300         to use date stored in `struct gdbarch_tdep'.
8301         (i386bsd_sigcontext_offset): Remove varaible.
8302         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8303         stored in `struct gdbarch_tdep'.
8304         (i386bsd_frame_saved_pc): Make static.
8305         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8306         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8307         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8308         i386fbsd4_sc_pc_offset): New variables.
8309         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8310         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8311         functions.
8312         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8313         functions.
8314         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8315         Modify the value of i386fbsd_sigtramp_start and
8316         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8317         i386fbsd_sigtramp_end.
8318         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8319         function.
8320
8321         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8322         define to i386-linux-tdep.h.
8323         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8324         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8325         defines.
8326         (i386_linux_register_name, i386_linux_register_byte,
8327         i386_linux_register_raw_size): Remove prototypes.
8328         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8329         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8330         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8331         TARGET_WRITE_PC): Remove defines.
8332         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8333         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8334         i386_linux_write_pc): Remove prototypes.
8335         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8336         (get_longjmp_target): Remove prototype.
8337         * i386-linux-tdep.h: New file.
8338         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8339         * i386-linux-tdep.c: Include "i386-tdep.h" and
8340         "i386-linux-tdep.h".
8341         (i386_linux_register_name, i386_linux_register_byte,
8342         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8343         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8344         Make static.
8345         (i386_linux_init_abi): New function.
8346         (_initialize_i386_linux_tdep): New function.
8347
8348         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8349         (i386_saved_pc_after_call): Remove prototype.
8350         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8351         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8352         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8353         (i386_register_name, i386_stab_reg_to_regnum,
8354         i386_dwarf_reg_to_regnum): Remove prototypes.
8355         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8356         SIZEOF_SSE_REGS): Remove defines.
8357         (REGISTER_BYTES): Remove define.
8358         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8359         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8360         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8361         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8362         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8363         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8364         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8365         (get_longjmp_target): Remove prototype.
8366         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8367         (sigtramp_saved_pc): Remove define.
8368         (i386v4_sigtramp_saved_pc): Remove prototype.
8369         * config/i386/tm-go32.h (FRAME_CHAIN,
8370         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8371         (i386go32_frame_saved_pc): Remove prototype.
8372         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8373         (get_longjmp_target): Remove prototype.
8374         * i386-tdep.h: Include "osabi.h".
8375         (enum i386_abi): Removed.
8376         (enum struct_return): New enum.
8377         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8378         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8379         sc_pc_offset members.
8380         (i386_gdbarch_register_os_abi): Remove prototype.
8381         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8382         I386_SSE_NUM_REGS): New defines.
8383         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8384         I386_SSE_SIZEOF_REGS): New defines.
8385         (i386_register_name, i386_register_byte, i386_register_raw_size):
8386         New prototypes.
8387         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8388         (i386bsd_sigtramp_saved_pc): New prototype.
8389         * i386-tdep.c: Don't include "elf-bfd.h".
8390         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8391         i386_frame_chain, i386_saved_pc_after_call): Make static.
8392         (i386_frame_saved_pc): Rewrite to call architecture dependent
8393         function to deal with signal handlers.  Make static.
8394         (i386go32_frame_saved_pc): Removed.
8395         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8396         Removed.
8397         (i386_get_longjmp_target): New function.
8398         (default_struct_convention, pcc_struct_convention,
8399         reg_struct_convention, valid_conventions, struct_convention): New
8400         variables.
8401         (i386_use_struct_convention): New function.
8402         (i386v4_sigtramp_saved_pc): Renamed to
8403         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8404         (i386_pc_in_sigtramp): New function.
8405         (i386_abi_names): Removed.
8406         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8407         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8408         Removed.
8409         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8410         i386_gdbarch_register_os_abi): Removed.
8411         (struct i386_abi_handler): Removed.
8412         (i386_abi_handler_list): Removed.
8413         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8414         functions.
8415         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8416         i386_nw_init_abi): New functions.
8417         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8418         Use set_gdbarch_xxx() calls instead of relying on macros for a
8419         number of calls.
8420         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8421         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8422         Register the various architecture variants defined in this file.
8423
8424 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8425
8426         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8427         (struct main_type): Remove arg_types member.  Update comments for
8428         struct field.
8429         (TYPE_ARG_TYPES): Remove.
8430         (TYPE_FN_FIELD_ARGS): Update.
8431         (smash_to_method_type): Update prototype.
8432
8433         * c-typeprint.c (cp_type_print_method_args): Take method type
8434         instead of argument list.  Use new argument layout.  Simplify.
8435         (c_type_print_args): Use new argument layout.  Simplify.
8436         (c_type_print_base): Update call to cp_type_print_method_args.
8437         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8438         argument; use die->type instead.  Update call to
8439         smash_to_method_type.
8440         (read_structure_scope): Update call to dwarf2_add_member_fn.
8441         * gdbtypes.c (allocate_stub_method): Update comment.
8442         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8443         Use new argument layout.
8444         (check_stub_method): Use new argument layout.  Don't count
8445         void as an argument.
8446         (print_arg_types): Update comments.  Use new argument layout.
8447         (recursive_dump_type): Don't print arg_types member.
8448         * hpread.c (hpread_read_struct_type): Use new argument layout.
8449         (fixup_class_method_type): Likewise.
8450         (hpread_type_lookup): Likewise.
8451         * stabsread.c (read_type): Update calls to read_args and
8452         smash_to_method_type.
8453         (read_args): Use new argument layout.  Simplify.
8454         * valops.c (typecmp): Use new argument layout.  Update parameters
8455         and comments.  Simplify.
8456         (hand_function_call): Use new argument layout.
8457         (search_struct_method): Update call to typecmp.
8458         (find_overload_match): Use new argument layout.
8459
8460 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8461
8462         * NEWS: Mention multithreaded debug support for gdbserver.
8463
8464 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8465
8466         * MAINTAINERS: Mention NEWS.
8467
8468 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8469
8470         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8471         (struct mips_objfile_private, compare_pdr_entries): New.
8472         (non_heuristic_proc_desc): Read the ".pdr" section if it
8473         is present.
8474
8475 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8476
8477         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8478         (arm_debug): New static variable.
8479         (_initialize_arm_tdep): Add ``set debug arm'' command.
8480
8481 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8482
8483         * Makefile.in (sim_arm_h): Define.
8484         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8485         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8486         (arm_register_sim_regno): New function, map an internal REGNUM
8487         onto a simulator register number.
8488         (arm_gdbarch_init): Set register_sim_regno.
8489
8490 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8491
8492         * MAINTAINERS: Add self.
8493
8494 2002-06-11  Jim Blandy  <jimb@redhat.com>
8495
8496         * source.c (source_info): Mention whether the symtab has
8497         information about preprocessor macros.
8498
8499         Call the command `info macro', not `show macro'.
8500         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8501         Fix error message.
8502         (_initialize_macrocmd): Register `info_macro_command' in
8503         `infolist', not `showlist'.
8504
8505 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8506
8507         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8508         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8509         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8510         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8511         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8512         unconditionally.
8513         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8514         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8515         (_initialize_mips_tdep): Remove dead code.
8516         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8517         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8518         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8519         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8520         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8521         MIPS_LAST_FP_ARG_REGNUM): Remove.
8522
8523 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8524
8525         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8526         (unwind_tmp_obstack_free, parse_frame_info)
8527         (update_context, cfi_read_fp, cfi_write_fp)
8528         (cfi_frame_chain, cfi_init_extra_frame_info)
8529         (cfi_virtual_frame_pointer): Use the above function.
8530         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8531
8532 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8533
8534         * v850-tdep.c (v850_type_is_scalar): New function.
8535         (v850_use_struct_convention): Match current gcc implementation
8536         as close as possible.
8537         (v850_push_arguments): Fix stack_offset handling.  Don't write
8538         struct_addr into register.  This is done by v850_store_struct_return.
8539         (v850_extract_return_value): Care for structs.
8540         (v850_store_return_value): Ditto.
8541         (v850_store_struct_return): Actually write address.
8542
8543 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8544
8545         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8546         without debug information too.
8547
8548 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8549
8550         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8551         Make multi-arch pure.
8552         * gdbarch.h, gdbarch.c: Re-generate.
8553         * arm-tdep.c (arm_print_float_info): Update.
8554         * arch-utils.h (default_print_float_info): Update.
8555         * arch-utils.c (default_print_float_info): Update.
8556         * infcmd.c (float_info): Update call.
8557
8558 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8559
8560         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8561         the front of the initialize list.
8562
8563 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8564
8565         * infrun.c (struct inferior_status): Replace fields
8566         selected_frame_address and selected_level with field
8567         selected_frame_id.
8568         (save_inferior_status): Update.  Use get_frame_id.
8569         (struct restore_selected_frame_args): Delete.
8570         (restore_selected_frame): Update.  Use frame_find_by_id.
8571         (restore_inferior_status): Update.
8572
8573         * breakpoint.h (struct breakpoint): Change type of
8574         watchpoint_frame to frame_id.
8575         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8576         call to get_current_frame.
8577         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8578         get_current_frame.
8579         (watchpoint_check): Use frame_find_by_id.
8580
8581         * frame.h (record_selected_frame): Delete declaration.
8582         * stack.c (record_selected_frame): Delete function.
8583         
8584         * frame.h (struct frame_id): Define.
8585         (get_frame_id): Declare.
8586         (frame_find_by_id): Declare.
8587         * frame.c (frame_find_by_id): New function.
8588         (get_frame_id): New function.
8589
8590 2002-06-10  Andrey Volkov <avolkov@transas.com>
8591
8592         * ser-e7kpc.c: Fix duplicated define and call of 
8593         _initialize_ser_e7000pc
8594             
8595 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8596
8597         * signals/signals.c (target_signal_from_host): Fix #ifdef
8598         SIGRTMIN case.
8599         (do_target_signal_to_host): Likewise.
8600
8601 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8602
8603         * mips-tdep.c (mips_find_abi_section): New function.
8604         (mips_gdbarch_init): Call it.
8605
8606 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8607
8608         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8609         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
8610         after Andrew's 2002-06-08 gdbarch change.
8611
8612 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8613
8614         * i386-linux-nat.c (suppy_gregset): Don't supply
8615         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8616         register cache.
8617         (fill_gregset): Don't fetch it under the same circumstances.
8618
8619 2002-06-09  Andrew Cagney  <cagney@redhat.com>
8620
8621         * Makefile.in (callback_h): Define.
8622         (remote_sim_h): Update path to remote-sim.h.
8623         (remote-rdp.o): Add $(callback_h).
8624         (remote-sim.o): Use $(callback_h).
8625         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8626         * remote-rdp.c: Include "gdb/callback.h".
8627
8628 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8629
8630         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8631         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8632
8633 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8634
8635         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8636         * rdi-share/serpardr.c: Ditto.
8637         * rdi-share/unixcomm.c: Ditto.
8638         * rdi-share/serdrv.c: Ditto.
8639         * rdi-share/hostchan.h: Ditto.
8640         * rdi-share/hostchan.c: Ditto.
8641         * rdi-share/host.h: Ditto.
8642         * rdi-share/devsw.c: Ditto.
8643
8644         * objfiles.h: Change type of obj_private to void pointer.
8645         * pa64solib.c: Update copyright.  Don't include "assert.h", use
8646         strcmp instead of STREQ, use LONGEST, do not use PTR
8647         * somsolib.c: Ditto.
8648
8649         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8650         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8651         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8652
8653 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8654
8655         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8656         (default_get_saved_register): Delete function.
8657         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8658         generic_unwind_get_saved_register.
8659         * gdbarch.h, gdbarch.c: Re-generate.
8660         
8661 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8662
8663         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8664         generic_func_frame_chain_valid.
8665         * gdbarch.h, gdbarch.c: Re-generate.
8666         * blockframe.c (generic_func_frame_chain_valid): Only check
8667         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
8668         passing FP to PC_IN_CALL_DUMMY.
8669         Fix PR gdb/360.
8670
8671 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
8672
8673         * gdbarch.sh (struct gdbarch_data): Add field init_p.
8674         (register_gdbarch_data): Initialize init_p.
8675         (gdbarch_data): Initialize data pointer using the init function.
8676         (init_gdbarch_data): Delete function.
8677         (gdbarch_update_p): Update.
8678         (initialize_non_multiarch): Update.
8679         (struct gdbarch): Add field initialized_p.
8680         * gdbarch.h, gdbarch.c: Re-generate.
8681
8682 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
8683
8684         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8685         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8686         better do the things actually here.
8687         * x86-64-tdep.c (x86_64_register_name2nr): New.
8688         (x86_64_register_name): Renamed to x86_64_register_nr2name.
8689         (x86_64_gdbarch_init): Respect the above change.
8690         * x86-64-tdep.h (x86_64_register_name2nr)
8691         (x86_64_register_nr2name): Add prototypes.
8692         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8693
8694 2002-06-06  Michael Snyder  <msnyder@redhat.com>
8695
8696         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8697         Delete extra braces and re-indent.
8698         (d10v_store_return_value): Char return values
8699         must be shifted over by one byte in R0.
8700         (d10v_extract_return_value): Delete extra braces, re-indent.
8701
8702 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8703
8704         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8705         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8706         (d10v_integer_to_address): Rewrite.
8707         (d10v_frame_init_saved_regs): When reading fp and sp registers use
8708         the d10v specific functions which take care of converting to the
8709         correct space.
8710
8711 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
8712
8713         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8714         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8715
8716 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8717
8718         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8719         includes.
8720         * config/tm-linux.h: Ditto.
8721         * config/alpha/tm-alphalinux.h: Ditto.
8722         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8723         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8724         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8725         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8726         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8727         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8728         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8729         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8730         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8731         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8732         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8733         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8734         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8735         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8736         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8737         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8738         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8739         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8740         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8741         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8742         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8743         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8744         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8745         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8746         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8747         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8748         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8749         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8750         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8751         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8752         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8753         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8754         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8755         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8756         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8757         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8758         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8759
8760 2002-05-04  Aidan Skinner <aidan@velvet.net>
8761
8762         * ada-exp.tab.c: New file
8763         * ada-exp.y: New file
8764         * ada-lang.c: New file
8765         * ada-lang.h: New file
8766         * ada-lex.c: New file
8767         * ada-lex.l: New file
8768         * ada-tasks.c: New file
8769         * ada-typeprint.c: New file
8770         * ada-valprint.c: New file
8771         
8772 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8773
8774         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8775         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8776
8777 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
8778
8779         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8780         insetead of ppc-linux-tdep.o.
8781         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8782         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8783
8784 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
8785
8786         2002-05-07 Christian Groessler <chris@groessler.org>
8787         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8788         bit register contents for little endian hosts.
8789
8790 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8791
8792         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8793         any maintainer.
8794
8795 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8796
8797         * gdbarch.h: Regenerate.
8798
8799 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8800
8801         * MAINTAINERS: Add everyone to write-after-approval list.
8802
8803 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
8804
8805         * stack.c (frame_info): Use frame_register_unwind instead of
8806         saved_regs.  Mention when the SP is on the stack or in a register.
8807
8808         * frame.h (frame_register_unwind_ftype): Define.  Document.
8809         (struct frame_info): Add field register_unwind and
8810         register_unwind_cache.
8811         (frame_register_unwind): Declare.
8812         (generic_unwind_get_saved_register): Declare.
8813
8814         * frame.c (frame_register_unwind): New function.
8815         (generic_unwind_get_saved_register): New function.
8816
8817         * blockframe.c (generic_call_dummy_register_unwind): New function.
8818         (frame_saved_regs_register_unwind): New function.
8819         (set_unwind_by_pc): New function.
8820         (create_new_frame): New function.
8821         (get_prev_frame): New function.
8822
8823 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
8824
8825         * a29k-share/: Delete directory.
8826         * remote-vx29k.c: Delete file.
8827
8828 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8829
8830         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8831         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8832
8833 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8834
8835         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8836         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8837         (sparc64nbsd-nat.o)
8838         (sparcnbsd-nat.o)
8839         (sparcnbsd-tdep.o): New dependency lists.
8840         * NEWS: Note new UltraSPARC NetBSD native configuration.
8841         * configure.host (sparc64-*-netbsd*): New host.
8842         * configure.tgt (sparc-*-netbsdelf*)
8843         (sparc-*-netbsd*): Set gdb_target to nbsd.
8844         (sparc64-*-netbsd*): New target.
8845         * sparc64nbsd-nat.c: New file.
8846         * sparcnbsd-nat.c: New file.
8847         * sparcnbsd-tdep.c: New file.
8848         * sparcnbsd-tdep.h: New file.
8849         * config/sparc/nbsd.mt: New file.
8850         * config/sparc/nbsd64.mh: New file.
8851         * config/sparc/nbsd64.mt: New file.
8852         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8853         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8854         (HOST_IPC): Remove.
8855         * config/sparc/nbsdaout.mt: Remove.
8856         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8857         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
8858         (HOST_IPC): Remove.
8859         * config/sparc/nbsdelf.mt: Remove.
8860         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
8861         sparc-nat.c compatiblity defines.
8862         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
8863         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8864         * config/sparc/tm-nbsd64.h: New file.
8865         * config/sparc/tm-nbsdaout.h: Remove.
8866         * config/sparc/xm-nbsd.h: Remove.
8867
8868 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
8869
8870         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8871         * sparc-tdep.c: Include osabi.h.
8872         (gdbarch_tdep): Add osabi member.
8873         (_initialize_sparc_tdep): Use gdbarch_register.
8874         (sparc_gdbarch_init): Use generic OS ABI framework.
8875         (sparc_dump_tdep): New function.
8876
8877 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
8878
8879         * corefile.c (do_captured_read_memory_integer): Return non-zero
8880         result.
8881         (safe_read_memory_integer): Copy result of memory read when
8882         status is non-zero.  Also, add comments.
8883
8884 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
8885
8886         * Makefile.in (ppc_tdep_h): Define.
8887         (ppc-linux-nat.o)
8888         (ppc-linux-tdep.o)
8889         (rs6000-tdep.o): Use $(ppc_tdep_h).
8890         (ppc-sysv-tdep.o)
8891         (ppcnbsd-nat.o)
8892         (ppcnbsd-tdep.o): New dependency lists.
8893         * ppc-tdep.h: Use generic OS ABI framework.
8894         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8895         (ppc_linux_init_abi): New functions.
8896         (ppc_sysv_abi_broken_use_struct_convention)
8897         (ppc_sysv_abi_use_struct_convention)
8898         (ppc_sysv_abi_push_arguments): Move to...
8899         * ppc-sysv-tdep.c: ...here.
8900         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8901         * rs6000-tdep.c (process_note_abi_tag_sections)
8902         (get_elfosabi): Remove.
8903         (rs6000_gdbarch_init): Use generic OS ABI framework.
8904         (rs6000_dump_tdep): New function.
8905         (_initialize_rs6000_tdep): Use gdbarch_register.
8906         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8907         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8908         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8909         of ppc-linux-tdep.o.
8910         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8911         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8912         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8913         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8914         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8915         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8916
8917 2002-05-29  Jim Blandy  <jimb@redhat.com>
8918
8919         * macroscope.c (default_macro_scope): Put `void' in empty argument
8920         list.
8921
8922 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
8923
8924         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8925         * arch-utils.c: Include "sim-regno.h".
8926         * gdbarch.sh: Don't include "sim-regno.h".
8927         * gdbarch.h, gdbarch.c: Regenerate.
8928         * sim-regno.h (legacy_register_sim_regno): Move declaration from
8929         here.
8930         * arch-utils.h (legacy_register_sim_regno): To here.
8931         * remote-sim.c (legacy_register_sim_regno): Move function from
8932         here.
8933         * arch-utils.c (legacy_register_sim_regno): To here.
8934
8935 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8936
8937         * sim-regno.h: New file.
8938         * Makefile.in (sim_regno_h): Define.
8939         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8940         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8941         (legacy_register_sim_regno): New function.
8942         (one2one_register_sim_regno): New function.
8943         (gdbsim_fetch_register): Rewrite.
8944         (gdbsim_store_register): Only store a register when
8945         REGISTER_SIM_REGNO is valid.
8946         * d10v-tdep.c: Include "sim-regno.h".
8947         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8948         (d10v_ts3_register_sim_regno): Ditto.
8949         * gdbarch.sh: Include "sim-regno.h".
8950         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8951         * gdbarch.h, gdbarch.c: Regenerate.
8952         * arch-utils.h (default_register_sim_regno): Delete declaration.
8953         * arch-utils.c (default_register_sim_regno): Delete function.
8954
8955 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
8956
8957         * ppcnbsd-nat.c: Rewrite.
8958         * ppcnbsd-tdep.c: New file.
8959         * ppcnbsd-tdep.h: New file.
8960         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8961         solib.o, and solib-svr4.o.
8962         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8963         nbsd-tdep.o, and corelow.o.
8964
8965 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
8966
8967         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8968         `tr' and `sed'.  Mention that `broken' targets are not expected to
8969         build.
8970
8971 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
8972
8973         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8974         Let PC point right after the prologue before looking up symbols.
8975         
8976 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
8977
8978         * i386-tdep.c (i386_register_virtual_type): Return 
8979         builtin_type_vec128i for SSE registers.
8980
8981         * gdbtypes.h (builtin_type_vec128i): Declare.
8982
8983         * gdbtypes.c (build_builtin_type_vec128i): New function.
8984         (builtin_type_v2_double, builtin_type_v4_int64): New types.
8985         (builtin_type_vec128i): New type for SSE2 128-bit registers.
8986         (build_gdbtypes): Initialize new builtin vector types.
8987         (_initialize_gdbtypes): Register new vector types with gdbarch.
8988
8989 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8990
8991         * MAINTAINERS: ns32k is not longer an obsolete candidate,
8992         since it has been multi-arch'd.
8993         * NEWS: Note that ns32k-*-* is now partial multi-arch.
8994         Move Alpha and VAX multi-arch news entries to same section
8995         as other multi-arch news.
8996
8997 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
8998
8999         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9000         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9001         static.  Rename some register numbers to put them in ns32k-tdep
9002         private namespace.
9003         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9004         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9005         functions.
9006         (_initialize_ns32k_tdep): Use gdbarch_register.
9007         * ns32k-tdep.h: New file.
9008         * ns32knbsd-tdep.c: New file.
9009         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9010         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9011         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9012         REGISTER_BYTES, REGISTER_BYTE): Remove.
9013         * config/ns32k/tm-ns32k.h: New file.
9014         * config/ns32k/tm-umax.h: Remove.
9015
9016 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9017
9018         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9019         ns32k_store_struct_return, ns32k_extract_return_value,
9020         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9021         functions.
9022         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9023         ns32k_saved_pc_after_call.
9024         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9025         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9026         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9027         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9028         ns32k_extract_struct_value_address.
9029
9030 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9031
9032         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9033         ns32k_fix_call_dummy): New.
9034         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9035         ns32k_call_dummy_words.
9036         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9037         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9038         CALL_DUMMY_NARGS): Remove.
9039         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9040
9041 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9042
9043         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9044         ns32k_frame_saved_pc, ns32k_frame_args_address,
9045         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9046         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9047         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9048         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9049         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9050         (BREAKPOINT): Remove..
9051         (FRAME_CHAIN): Define as ns32k_frame_chain.
9052         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9053         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9054         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9055         (FRAME_FIND_SAVED_REGS): Remove.
9056         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9057         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9058         (POP_FRAME): Define as ns32k_pop_frame.
9059
9060 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9061
9062         * ns32k-tdep.c (ns32k_register_byte_32082,
9063         ns32k_register_byte_32382, ns32k_register_raw_size,
9064         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9065         functions.
9066         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9067         ns32k_register_byte_32382.
9068         * config/ns32k/tm-umax.h: Update copyright years.
9069         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9070         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9071         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9072         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9073         (ns32k_get_enter_addr): Fix prototype.
9074
9075 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9076
9077         * ns32k-tdep.c: Update copyright years.
9078         (ns32k_register_name_32082): New function.
9079         (ns32k_register_name_32382): Ditto.
9080         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9081         (REGISTER_NAME): Define as ns32k_register_name_32382.
9082         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9083         (REGISTER_NAME): Define as ns32k_register_name_32082.
9084
9085 2002-05-24  Jim Blandy  <jimb@redhat.com>
9086
9087         * dwarf2read.c (free_line_header): Use xfree, not free.
9088
9089 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9090
9091         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9092         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9093
9094 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9095
9096         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9097
9098 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9099
9100         From Ross Alexander at NEC Europe:
9101         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9102
9103 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9104
9105         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9106         for input, rather than parse_and_eval_address.  
9107
9108 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9109
9110         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9111         * Makefile.in (sim_d10v_h): Update definition.
9112
9113 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9114
9115         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9116         change `2002-05-22 Michael Snyder' below.
9117         (d10v_push_arguments): Ditto.
9118         (d10v_extract_return_value): Ditto.
9119
9120 2002-05-23  Jim Blandy  <jimb@redhat.com>
9121
9122         * macrotab.c (check_for_redefinition): Don't complain if the new
9123         definition is the same as the previous one.  Take more arguments
9124         to allow the comparison.
9125         (macro_define_object, macro_define_function): Pass more arguments
9126         to check_for_redefinition.
9127
9128 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9129
9130         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9131         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9132         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9133         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9134         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9135         Add a temp variable to save a call (and a memory read).
9136         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9137         if possible (so that PC_IN_CALL_DUMMY will work).
9138
9139 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9140
9141         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9142
9143 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9144
9145         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9146         fde->cie_ptr.
9147         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9148         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9149         so that frames of shared libraries are mapped correctly.
9150         (execute_stack_op): Change type of 'result' from ULONGEST to
9151         CORE_ADDR.
9152         
9153 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9154
9155         * config/alpha/tm-nbsd.h: Include solib.h.
9156
9157 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9158
9159         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9160         assumptions about the host's byte order.
9161
9162 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9163
9164         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9165         to dependency list.
9166         * alphanbsd-tdep.c: Include solib-svr4.h.
9167         * shnbsd-tdep.c: Ditto.
9168
9169 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9170
9171         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9172         nbsd-tdep.h to dependency list.
9173         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9174         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9175         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9176         nbsdaout.mh and nbsdelf.mh consistently.
9177         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9178         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9179         nbsdaout.mt and nbsdelf.mh consistently.
9180         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9181         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9182         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9183         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9184         a.out shared library stuff from here...
9185         * config/nm-nbsdaout.h: ...to here.
9186         * config/tm-nbsd.h: Remove.
9187         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9188         * config/arm/nbsd.mh: Remove.
9189         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9190         nbsd-tdep.o.
9191         * config/arm/nbsdaout.mh: New file. 
9192         * config/arm/nbsdelf.mh: New file.
9193         * config/arm/nm-nbsdaout.h: New file.
9194         * config/i386/nbsd.mh: Remove.
9195         * config/i386/nbsd.mt: Remove.
9196         * config/i386/nbsdaout.mh: New file.
9197         * config/i386/nbsdaout.mt: New file.
9198         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9199         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9200         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9201         i386_register_u_addr): Remove.
9202         * config/i386/nm-nbsdaout.h: New file.
9203         * config/i386/nm-nbsdelf.h: Remove.
9204         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9205         (USE_STRUCT_CONVENTION): Remove.
9206         * config/i386/tm-nbsdaout.h: New file.
9207         * config/i386/tm-nbsdelf.h: Remove.
9208         * config/m68k/nbsd.mh: Remove.
9209         * config/m68k/nbsd.mt: Remove.
9210         * config/m68k/nbsdaout.mh: New file.
9211         * config/m68k/nbsdaout.mt: New file. 
9212         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9213         * config/m68k/nm-nbsdaout.h: New file.
9214         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9215         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9216         * config/ns32k/nbsd.mh: Remove.
9217         * config/ns32k/nbsd.mt: Remove. 
9218         * config/ns32k/nbsdaout.mh: New file.
9219         * config/ns32k/nbsdaout.mt: New file.
9220         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9221         * config/ns32k/nm-nbsdaout.h: New file.
9222         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9223         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9224         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9225         (SVR4_SHARED_LIBS): Remove.
9226         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9227         * config/sparc/nbsd.mh: Remove.
9228         * config/sparc/nbsd.mt: Remove.
9229         * config/sparc/nbsdaout.mh: New file.
9230         * config/sparc/nbsdaout.mt: New file.
9231         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9232         * config/sparc/nbsdelf.mt: New file.
9233         * config/sparc/nm-nbsdaout.h: New file.   
9234         * config/sparc/nm-nbsdelf.h: Remove.
9235         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9236         * config/sparc/tm-nbsdaout.h: New file.
9237
9238 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9239
9240         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9241         mipsnbsd-tdep.c
9242         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9243
9244 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9245
9246         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9247         shnbsd-nat.c.
9248         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9249
9250 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9251
9252         * NEWS: Note new MIPS NetBSD native configuration. 
9253         * configure.host (mips*-*-netbsd*): New host. 
9254         * configure.tgt (mips*-*-netbsd*): New target. 
9255         * mipsnbsd-nat.c: New file.
9256         * mipsnbsd-tdep.c: New file.
9257         * mipsnbsd-tdep.h: New file.
9258         * config/mips/nbsd.mh: New file.
9259         * config/mips/nbsd.mt: New file.
9260         * config/mips/nm-nbsd.h: New file.
9261         * config/mips/tm-nbsd.h: New file.
9262
9263 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9264
9265         * Makefile.in (SFILES): Add osabi.c.
9266         (COMMON_OBS): Add osabi.o.
9267         (osabi.o): New dependency list.
9268         * osabi.c: New file.
9269         * osabi.h: New file.
9270         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9271
9272         * Makefile.in (alpha_tdep_h): Define and use instead of
9273         alpha-tdep.h.
9274         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9275         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9276         Remove.
9277         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9278         * alpha-tdep.h: Include osabi.h.
9279         (alpha_abi): Remove.
9280         (gdbarch_tdep): Use generic OS ABI framework.
9281         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9282         gdbarch_register_osabi.
9283         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9284         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9285         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9286
9287         * Makefile.in (sh_tdep_h): Add osabi.h.
9288         * sh-tdep.h (sh_osabi): Remove.
9289         (gdbarch_tdep): Use generic OS ABI framework.
9290         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9291         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9292         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9293         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9294
9295         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9296         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9297         gdbarch_register_osabi.
9298         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9299         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9300         (get_elfosabi): Rename to...
9301         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9302         ABI framework support routines.
9303         (arm_gdbarch_init): Use generic OS ABI framework.
9304         (arm_dump_tdep): Likewise.
9305         (_initialize_arm_tdep): Likewise.
9306         * arm-tdep.h: Include osabi.h.
9307         (arm_abi): Remove.
9308         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9309         osabi member.
9310         (arm_gdbarch_register_os_abi): Remove prototype.
9311         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9312         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9313
9314         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9315         * mips-tdep.c: Include osabi.h.
9316         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9317         OS ABI framework.
9318
9319 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9320
9321         * h8300-tdep.c: Fix formatting.
9322
9323 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9324
9325         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9326         printing vector registers.
9327
9328 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9329
9330         From Fernando Nasser:
9331         * remote.c (remote_async_open_1): Re-throw the exception when the
9332         connection fails.
9333         (remote_cisco_open): Ditto.
9334         (remote_open_1): Ditto.
9335
9336 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9337
9338         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9339         (remote_start_remote): Add uiout parameter.  Pass through to
9340         remote_start_remote_dummy.
9341         (remote_open_1): Use catch_exception instead of catch_errors.
9342         (remote_async_open_1): Ditto.
9343         (remote_cisco_open): Ditto.
9344
9345 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9346
9347         * remote.c (remote_start_remote): Replace PTR with void pointer.
9348         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9349         static.
9350
9351 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9352
9353         * gdb_indent.sh: Allow the script to be run in the sim directory.
9354
9355 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9356
9357         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9358         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9359
9360         * corelow.c (core_open): Only call set_gdbarch_from_file if
9361         exec_bfd is NULL.
9362
9363 2002-05-17  Andrey Volkov <avolkov@transas.com>
9364
9365         * h8300-tdep.c: Add support of EXR register
9366         * config/h8300/tm-h8300.h: Ditto. 
9367         
9368 2002-05-17  Andrey Volkov <avolkov@transas.com>
9369
9370         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9371         
9372 2002-05-17  Andrey Volkov <avolkov@transas.com>
9373
9374         * h8300-tdep.c: Change literal regnums to REGNO.
9375         
9376 2002-05-17  Jim Blandy  <jimb@redhat.com>
9377
9378         * NEWS: Note addition of macro support.
9379
9380         Expand preprocessor macros in C expressions.
9381         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9382         (scan_macro_expansion, scanning_macro_expansion,
9383         finished_macro_expansion): New function declarations.
9384         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9385         variable declarations.
9386         * parser-defs.h (expression_context_pc): New declaration.
9387         * parse.c (expression_context_pc): New variable.
9388         (parse_exp_1): Set expression_context_pc, as well as
9389         expression_context_block.
9390         * c-exp.y (yylex): If we're not already reading the result of a
9391         macro expansion, try to macro-expand the next token.  When we're
9392         done scanning a macro expansion, switch back to the mainline text.
9393         Commas and `if's in a macro's expansion don't terminate the input.
9394         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9395         (macro_original_text, macro_expanded_text,
9396         expression_macro_lookup_func, expression_macro_lookup_baton): New
9397         variables.
9398         (scan_macro_expansion, scanning_macro_expansion,
9399         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9400         c_preprocess_and_parse): New functions.
9401         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9402         c_preprocess_and_parse, instead of c_parse.
9403         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9404         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9405
9406 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9407
9408         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9409         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9410         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9411
9412 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9413
9414         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9415
9416 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9417
9418         * Makefile.in (sh_tdep_h): Define and use.
9419         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9420         register enum): Move to...
9421         * * sh-tdep.h: ...here.
9422         * sh-tdep.c: Include sh-tdep.h.
9423         * sh3-rom.c: Likewise.
9424         * shnbsd-tdep.c: Likewise.
9425
9426 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9427
9428         * arm-tdep.c: Spelling fix in comment.
9429
9430 2002-05-16  Jim Blandy  <jimb@redhat.com>
9431
9432         Add commands for manually expanding macros and showing their
9433         definitions.
9434         * macrocmd.c, macroscope.c, macroscope.h: New files.
9435         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9436         (macroscope_h): New variable.
9437         (HFILES_NO_SRCDIR): Add macroscope.h.
9438         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9439         (macroscope.o, macrocmd.o): New rules.
9440
9441         Teach the Dwarf 2 reader to read macro information.
9442         * dwarf2read.c: #include "macrotab.h".
9443         (dwarf_macinfo_buffer): New variable.
9444         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9445         dwarf_macinfo_size.
9446         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9447         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9448         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9449         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9450         dwarf2_macro_spaces_in_definition): New complaints.
9451         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9452         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9453         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9454         the partial symbol table.
9455         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9456         from what's recorded in the partial symbol table.
9457         (read_file_scope): If the compilation unit has a
9458         `DW_AT_macro_info' attribute, read its macro information.
9459         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9460
9461 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9462
9463         Fix PR gdb/546
9464         * ser-tcp.c: Don't include <netinet/udp.h>.
9465
9466 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9467
9468         * MAINTAINERS: Update my email address.
9469
9470 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9471
9472         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9473         include file of the same name.
9474
9475 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9476
9477         * configure.tgt: Mark v850 as multi-arched.
9478         * config/v850/tm-v850.h: Remove file.
9479         * config/v850/v850.mt: Eliminate TM_FILE.
9480
9481 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9482
9483         * v850-tdep.c: Full multi-arch.
9484         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9485         Define GDB_MULTI_ARCH to 2.
9486
9487 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9488
9489         * p-exp.y (current_type): New static variable.
9490         Carries the type of the expression at the position that is parsed.
9491         (push_current_type, pop_current_type): Two new functions. Used
9492         to store/restore current_type in expression on specific tokens.
9493         (search_field): New static variable. Set to one after parsing a point
9494         as at that point only a FIELDNAME token should be searched.
9495         (FIELDNAME): New token. After a point only a token belonging to 
9496         current_type type definition is allowed.
9497         (all over token rules): reset and change current_type according
9498         to rules.
9499         (exp '[' rule): insert implicit array index field if
9500         exp is a pascal string type.
9501
9502 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9503
9504         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9505         frame info.  Use frame_info's saved_regs instead of matching member
9506         in extra_frame_info throughout.
9507         (v850_frame_init_saved_regs): New function.
9508         (v850_init_extra_frame_info): Move most functionality into
9509         v850_frame_init_saved_regs().
9510         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9511         (v850_frame_find_saved_regs): Remove declaration.
9512         (FRAME_FIND_SAVED_REGS): Remove definition.
9513         (v850_frame_init_saved_regs): Add declaration.
9514         (FRAME_INIT_SAVED_REGS): Add definition.
9515
9516 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9517
9518         * v850-tdep.c: Begin multi-arch'ing v850.
9519         (v850_target_architecture_hook): Remove function.
9520         (v850_gdbarch_init): New function.  Add code previously in
9521         v850_target_architecture_hook().
9522         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9523         Call register_gdbarch_init() instead.
9524
9525 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9526
9527         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9528         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9529         (fixup_class_method_type): Likewise.
9530
9531 2002-05-15  Jim Blandy  <jimb@redhat.com>
9532
9533         Add macro structures to GDB's symbol tables.  Nobody puts anything
9534         in them yet.
9535         * symtab.h (struct symtab): New member: `macro_table'.
9536         * buildsym.h (pending_macros): New global variable.
9537         * buildsym.c: #include "macrotab.h".
9538         (buildsym_init): Initialize `pending_macros'.
9539         (end_symtab): If we found macro information while reading a CU's
9540         debugging info, do build a symtab structure for it.  Make the
9541         symtab point to the macro information, and clear the
9542         `pending_macros' pointer which held it while we were reading the
9543         debug info.
9544         (really_free_pendings): Free any pending macro table.
9545         * objfiles.h (struct objfile): New member: `macro_cache'.
9546         * objfiles.c (allocate_objfile): Set allocate and free functions
9547         for the macro cache's objstack.
9548         (free_objfile): Empty the macro cache's obstack.
9549         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9550         set new allocate and free functions for it.
9551         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9552         free functions for the macro cache's objstack.  (Why is this
9553         function building its own objfile?)
9554         * symmisc.c (print_objfile_statistics): Print statistics on the
9555         macro bcache.
9556         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9557
9558 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9559
9560         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9561         (REGISTER_U_ADDR): Delete definition.
9562         (arm_register_u_addr): Delete declaration.
9563
9564 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9565
9566         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9567         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9568
9569 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9570
9571         * regcache.c (register_valid): Revise comments refering to "Not
9572         available" and "unavailable".
9573         * frame.c (frame_register_read): Ditto.
9574         * findvar.c (value_of_register): Ditto.
9575
9576 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9577
9578         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9579         (remote-sim.o): Update dependencies.
9580         (d10v-tdep.o): Specify dependencies.
9581         (sim_d10v_h): Define.
9582
9583 2002-05-14  Jim Blandy  <jimb@redhat.com>
9584
9585         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9586         * macrotab.c (macro_lookup_inclusion, find_definition,
9587         new_macro_table): Same.
9588         
9589         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9590         not `! strcmp ()'.  This is a dubious improvement.
9591         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9592
9593         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9594         although it's not necessary, to avoid a warning.
9595
9596 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9597
9598         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9599         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9600         TYPE_INSTANCE_FLAGS.
9601         (struct main_type): New.
9602         (struct type): Move most members to struct main_type.  Change
9603         cv_type and as_type to new type_chain member.  Add instance_flags.
9604         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9605         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9606         (finish_cv_type): Remove prototype.
9607         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9608         Set TYPE_CHAIN.
9609         (alloc_type_instance): New function.
9610         (smash_type): New function.
9611         (make_pointer_type, make_reference_type, make_function_type)
9612         (smash_to_member_type, smash_to_method_type): Call smash_type.
9613         (make_qualified_type): New function.
9614         (make_type_with_address_space): Call make_qualified_type.
9615         (make_cv_type): Likewise.
9616         (finish_cv_type): Remove unnecessary function.
9617         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
9618         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9619         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9620         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9621         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9622         * hpread.c (hpread_read_struct_type): Likewise.
9623         * stabsread.c (read_struct_type): Likewise.
9624
9625 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
9626
9627         * configure.tgt: Add a catch all sh* target, for cases like
9628         sh[2,3,4]-elf and sh-hms.
9629
9630 2002-05-14  Keith Seitz  <keiths@redhat.com>
9631
9632         * event-loop.c (create_file_handler): Don't do anything but
9633         update data when we are given a fd which we are already
9634         monitoring.
9635
9636 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
9637
9638         * dwarf2cfi.c (context_cpy): Copy registers correctly.
9639         (update_context): Use __func__ in warnings.
9640         
9641 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9642
9643         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
9644         and tcp_close to net_open and net_close.
9645         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
9646         using UDP if requested.  Don't try to disable Nagle on UDP
9647         sockets.
9648         * remote.c (remote_serial_open): New function.  Warn about UDP.
9649         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9650
9651 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9652
9653         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9654
9655 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
9656
9657         * configure.tgt: Remove sh-hms target.
9658         * MAINTAINERS: Don't list sh-hms as a separate target.
9659
9660 2002-05-13  Jim Blandy  <jimb@redhat.com>
9661
9662         Add first preprocessor macro-expansion files.
9663         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9664         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9665         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9666         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9667         (COMMON_OBS): Add macrotab.o, macroexp.o.
9668         (macroexp.o, macrotab.o): New rules.
9669
9670 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
9671
9672         * config/m88k/tm-m88k.h: Update copyright.
9673         (m88k_target_write_pc): Declare
9674         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9675         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9676         (SHIFT_INST_REGS): Update definition.
9677         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
9678         using old definition of TARGET_WRITE_PC.
9679         * regcache.c (generic_target_write_pc): Delete code handling
9680         NNPC_REGNUM.
9681         * gdbarch.sh (NNPC_REGNUM): Delete.
9682         * gdbarch.h, gdbarch.c: Regenerate.
9683
9684 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
9685
9686         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9687         builtin reg number.
9688
9689 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
9690
9691         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9692         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9693         (gen_address_of, gen_struct_ref, gen_repeat): Use type
9694         access macros.
9695         * c-typeprint.c (cp_type_print_method_args): Likewise.
9696         (c_type_print_args): Likewise.
9697         * d10v-tdep.c (d10v_push_arguments): Likewise.
9698         (d10v_extract_return_value): Likewise.
9699         * expprint.c (print_subexp): Likewise.
9700         * gdbtypes.c (lookup_primitive_typename): Likewise.
9701         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9702         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9703         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9704         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9705         (TYPE_VECTOR): Likewise.
9706         * hpread.c (hpread_read_struct_type)
9707         (fix_static_member_physnames, fixup_class_method_type)
9708         (hpread_type_lookup): Likewise.
9709         * mdebugread.c (parse_symbol, parse_type): Likewise.
9710         * p-lang.c (is_pascal_string_type): Likewise.
9711         * valops.c (hand_function_call): Likewise.
9712         * x86-64-tdep.c (classify_argument): Likewise.
9713
9714         * hpread.c (hpread_read_function_type)
9715         (hpread_read_doc_function_type): Call replace_type.
9716         * dstread.c (create_new_type): Delete.
9717         (decode_dst_structure, process_dst_function): Call alloc_type.
9718         Use type access macros.
9719
9720 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9721
9722         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9723         the're not supported by the current architecture.
9724         (i387_fill_fxsave): Likewise.
9725
9726 2002-05-12  Fred Fish  <fnf@redhat.com>
9727
9728         * symfile.c (default_symfile_offsets): Arrange for uninitialized
9729         sect_index_xxx members to index the first slot in section_offsets
9730         if all of the section_offsets are zero.
9731
9732 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9733
9734         * configure.tgt (sparc-*openbsd): Remove entry accidentially
9735         checked in with last change.
9736
9737 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
9738
9739         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9740         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
9741         config.sub.
9742
9743 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
9744
9745         * Makefile.in: Update dependencies.
9746
9747 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9748
9749         * language.c (local_hex_string_custom): Simplify.  Do not depend
9750         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9751
9752         * memattr.c (mem_info_command): Replace calls to
9753         longest_local_hex_string and longest_local_hex_string_custom.
9754         * buildsym.c (make_blockvector): Ditto.
9755         * solib.c (info_sharedlibrary_command): Ditto.
9756         * tracepoint.c (tracepoints_info): Ditto.
9757         * symtab.c (print_msymbol_info): Ditto.
9758
9759         * language.c (local_hex_string): Delete.
9760         (local_hex_string_custom): Delete.
9761         (longest_local_hex_string): Rename to local_hex_string.
9762         (longest_local_hex_string_custom): Rename to
9763         local_hex_string_custom.
9764         * language.h (local_hex_string): Change parameter type to LONGEST.
9765         (local_hex_string_custom): Ditto.
9766         (longest_local_hex_string): Delete declaration.
9767         (longest_local_hex_string_custom): Ditto.
9768
9769         * solib.c: Update copyright.
9770         * memattr.c: Update copyright.
9771         
9772 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9773
9774         * arch-utils.h (legacy_register_to_value): Declare.
9775         (legacy_value_to_register): Declare.
9776         (legacy_convert_register_p): Declare.
9777         * arch-utils.c (legacy_register_to_value): New function.
9778         (legacy_value_to_register): New function.
9779         (legacy_convert_register_p): New function.
9780
9781         * gdbarch.sh (REGISTER_TO_VALUE): Define.
9782         (VALUE_TO_REGISTER): Define.
9783         (CONVERT_REGISTER_P): Define.
9784         * gdbarch.h, gdbarch.c: Regenerate.
9785
9786         * valops.c (value_assign): Use CONVERT_REGISTER_P and
9787         VALUE_TO_REGISTER.
9788         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9789         CONVERT_REGISTER_P.
9790
9791 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
9792             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9793
9794         * Makefile.in: Update dependencies for valops.c.
9795         * valops.c: Include "gdb_assert.h".
9796         (typecmp): Skip THIS parameter to methods.
9797         (find_method_list): Remove static_memfuncp argument,
9798         update callers.  Check for stub methods.
9799         (find_value_oload_method_list): Don't set *static_memfuncp.
9800         (find_overload_match): Don't check for stub methods.  Assert
9801         that methods are not stubbed.  Handle static methods.
9802         (value_find_oload_method_list): Remove static_memfuncp argument.
9803         * gdbtypes.c (check_stub_method): Do not add THIS pointer
9804         to the argument list for static stub methods.
9805         * value.h (value_find_oload_method_list): Update prototype.
9806
9807 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9808
9809         * arch-utils.h (generic_register_size): Declare.
9810         (generic_register_raw_size, generic_register_virtual_size): Delete
9811         declarations.
9812         * arch-utils.c (generic_register_raw_size): Delete.
9813         (generic_register_size): New function.
9814         (generic_register_virtual_size): Delete.
9815
9816         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9817         default generic_register_size.
9818         * gdbarch.h, gdbarch.c: Re-generate.
9819         
9820         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9821         register_virtual_size.
9822         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9823         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9824
9825 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9826
9827         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9828         * gdbarch.h, gdbarch.c: Regenerate.
9829         * gnu-v3-abi.c: Update copyright.
9830         (vtable_address_point_offset): Update.
9831         (gnuv3_rtti_type): Update.
9832         (gnuv3_baseclass_offset): Update.
9833         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9834         (init_fetch_link_map_offsets): Update.
9835         * remote.c (get_remote_state): Update.
9836         
9837 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
9838
9839         * TODO: Remove value_headof/value_from_vtable_info comment.
9840         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9841         * values.c (value_headof, value_from_vtable_info): Delete.
9842         * value.h (value_from_vtable_info): Delete prototype.
9843
9844 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
9845
9846         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9847         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9848         $(gdb_regex_h).
9849         (gdb_assert_h): Define.
9850         (gdb_wait_h): Define.
9851         (gdb_regex_h): Define.
9852
9853 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
9854
9855         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9856         * linespec.c (find_methods): Handle GCC 3.x template constructors.
9857
9858 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9859
9860         * nbsd-tdep.c: Fix comment.
9861
9862 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9863
9864         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9865         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9866         (nbsd-tdep.o): New dependency list.
9867         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
9868         nbsd-tdep.h.
9869         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9870         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9871         * nbsd-tdep.c: New file.
9872         * nbsd-tdep.h: New file.
9873         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
9874         nbsd-tdep.h.
9875         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9876         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9877         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9878         * config/sh/nbsd.mt (TDEPFILES): Ditto.
9879
9880 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9881
9882         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9883         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9884         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9885         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9886         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9887         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9888
9889 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9890
9891         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9892         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9893         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9894         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9895         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9896         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9897         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9898
9899 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9900
9901         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
9902         fetch_elfcore_registers to...
9903         * i386nbsd-tdep.c: ...here.
9904         (i386nbsd_use_struct_convention): Rename to...
9905         (i386nbsd_aout_use_struct_convention): ...this.
9906         (i386nbsd_supply_reg): New function.
9907         (i386nbsd_fill_reg): New function.
9908         (fetch_core_registers): Use i386nbsd_supply_reg.
9909         (fetch_elfcore_registers): Likewise.
9910         (_initialize_i386nbsd_tdep): New function.
9911         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9912         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9913         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9914         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9915         (i386nbsd_aout_use_struct_convention): ...this.
9916
9917 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9918
9919         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9920         (store_inferior_registers): Use shnbsd_fill_reg.
9921         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
9922         sh_nbsd_supply_register): Collapse into...
9923         (shnbsd_supply_reg): ...this.
9924         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9925         (shnbsd_fill_reg): ...this.
9926         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9927         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9928         (fetch_core_registers): Use shnbsd_supply_reg.
9929         (fetch_elfcore_registers): Use shnbsd_supply_reg.
9930         (sh_nbsd_core_fns): Rename to...
9931         (shnbsd_core_fns): ...this.
9932         (sh_nbsd_elfcore_fns): Rename to...
9933         (shnbsd_elfcore_fns): ...this.
9934         (sh_nbsd_init_abi): Rename to...
9935         (shnbsd_init_abi): ...this.
9936         (_initialize_sh_nbsd_tdep): Rename to...
9937         (_initialize_shnbsd_tdep): ...this.
9938         * shnbsd-tdep.h (sh_nbsd_supply_registers,
9939         sh_nbsd_supply_register, sh_nbsd_fill_registers,
9940         sh_nbsd_fill_register): Remove prototypes.
9941         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9942
9943 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9944
9945         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9946         (i387-nat.o): Delete dependency list.
9947         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9948         (x86-64-linux-nat.o): Likewise.
9949         * i387-nat.c: Delete file, moving contents to...
9950         * i387-tdep.c: ...here.
9951         * i387-nat.h: Rename...
9952         * i387-tdep.h: ...to this.
9953         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9954         * i386-linux-nat.c: Likewise.
9955         * i386bsd-nat.c: Likewise.
9956         * i386gnu-nat.c: Likewise.
9957         * i386nbsd-nat.c: Likewise.
9958         * i386v4-nat.c: Likewise.
9959         * x86-64-linux-nat.c: Likewise.
9960         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9961         * config/i386/go32.mh (NATDEPFILES): Likewise.
9962         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9963         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9964         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9965         * config/i386/linux.mh (NATDEPFILES): Likewise.
9966         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9967         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9968         * config/i386/obsd.mh (NATDEPFILES): Likewise.
9969         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9970
9971 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9972
9973         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9974         (alphanbsd-nat.o): Remove dependency list.
9975         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9976         * alphanbsd-nat.c: Delete.  Contents moved to...
9977         * alphanbsd-tdep.c: ...here.
9978         (_initialize_alphanbsd_tdep): Register core functions.
9979         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9980
9981 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
9982
9983         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9984         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9985         (alphanbsd-nat.o): Likewise.
9986         (alphabsd-tdep.o): New dependency list.
9987         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9988         (fill_gregset): Use alphabsd_fill_reg.
9989         (supply_fpregset): Use alphabsd_supply_fpreg.
9990         (fill_fpregset): Use alphabsd_fill_fpreg.
9991         (fetch_inferior_registers): Use struct reg and struct fpreg
9992         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
9993         and alphabsd_supply_fpreg.
9994         (store_inferior_registers): Use struct reg and struct fpreg
9995         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
9996         and alphabsd_fill_fpreg.
9997         * alphabsd-tdep.c: New file.
9998         * alphabsd-tdep.h: New file.
9999         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10000         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10001         alphabsd_supply_fpreg.
10002         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10003         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10004
10005 2002-05-11  Eric Christopher  <echristo@redhat.com>
10006
10007         * mips-tdep.c (mips_double_register_type): Fix thinko.
10008         (mips_single_register_type): Ditto.
10009         * MAINTAINERS: Add self.
10010
10011 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10012
10013         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10014         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10015         right thing on architectures with different endianness and/or
10016         integer sizes.
10017
10018 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10019
10020         From Christian Limpach <chris@Pin.LU>
10021         * configure.in: Change sed expression which comments out
10022         NATDEPFILES to also comment out continuation lines.
10023         * configure: Regenerate.
10024
10025 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10026
10027         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10028         big patch.
10029
10030 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10031
10032         * sh-tdep.c: Include correct file.
10033
10034 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10035
10036         New support for sh64-elf (sh5) target.
10037
10038         * configure.tgt: For sh64-elf target, default to sh-elf.
10039
10040         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10041         (struct gdbarch_tdep): Add new fields for new registers and ABI
10042         info.
10043
10044         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10045         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10046         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10047         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10048         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10049         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10050         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10051         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10052         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10053         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10054         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10055         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10056         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10057         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10058         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10059         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10060         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10061         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10062         sign_extend, sh64_nofp_frame_init_saved_regs,
10063         sh64_init_extra_frame_info, sh64_get_saved_register,
10064         sh64_extract_struct_value_address, sh64_pop_frame,
10065         sh64_push_arguments, sh64_extract_return_value,
10066         sh64_store_return_value, sh64_show_media_regs,
10067         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10068         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10069         sh_sh64_register_virtual_type,
10070         sh_sh64_register_convert_to_virtual,
10071         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10072         sh64_register_read, sh64_pseudo_register_write,
10073         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10074         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10075         sh64_do_pseudo_register, sh_compact_do_registers_info,
10076         sh64_do_registers_info, sh_gdbarch_init): New functions.
10077
10078 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10079
10080         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10081
10082 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10083
10084         * linespec.c (decode_line_1): Check for a double quote after
10085         a filename correctly.
10086
10087 2002-05-10  Jim Blandy  <jimb@redhat.com>
10088
10089         Properly track the size of the current objfile's .debug_line section.
10090         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10091         (DWARF_LINE_SIZE): New macro.
10092         (dwarf2_build_psymtabs_hard): Record the line section's size in
10093         the partial symbol table.
10094         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10095         symbol table.
10096
10097 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10098
10099         * ia64-tdep.c: Handle breakpoints on L instruction type
10100         in MLX instruction bundle by moving the breakpoint to
10101         the third slot (X instruction type) as L holds only data.
10102
10103 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10104
10105         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10106         (process_one_symbol): Complain about discarding local symbols
10107         due to a misplaced N_LBRAC entry.
10108
10109 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10110
10111         From Daniel Berlin <dan@cgsoftware.com>
10112         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10113         decrease the depth we are at, in the case of templates.
10114
10115 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10116
10117         * mips-tdep.c (mips_float_register_type): New function.
10118         (mips_double_register_type): New function.
10119         (mips_print_register): Use them.
10120         (do_fp_register_row): Likewise.
10121
10122 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10123
10124         * signals/signals.c (signals): Remove conditional compilation around
10125         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10126         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10127
10128 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10129
10130         * remote-rdp.c (remote_rdp_can_run): Remove.
10131
10132 2002-05-09  Tom Tromey  <tromey@redhat.com>
10133
10134         * jv-valprint.c (java_val_print): Handle `char' as a special case
10135         of TYPE_CODE_INT.
10136
10137 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10138
10139         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10140         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10141         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10142         str r(0123),[sp,#nn].
10143         (arm_skip_prologue): Ditto.  Also make disassembly
10144         order-independent by placing it in a loop.
10145
10146 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10147
10148         * stabsread.c (read_type): Add recognition for new attribute:
10149         "@V;" means that an array type is actually a vector.
10150         This is analogous to the vector flag that's been added to dwarf2.
10151
10152 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10153
10154         * i386-tdep.h (i386_abi): New enum.
10155         (struct gdbarch_tdep): Replace os_ident member with abi.
10156         (i386_gdbarch_register_os_abi): New prototype.
10157         * i386-tdep.c (i386_abi_names): New array.
10158         (process_note_abi_tag_sections): Removed.
10159         (process_note_sections): New function.
10160         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10161         (struct i386_abi_handler): New struct.
10162         (i386_abi_handler_list): New variable.
10163         (i386_gdbarch_register_os_abi): New function.
10164         (i386_gdbarch_init): Adapt for the changes given above.
10165
10166 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10167
10168         * gregset.h: Say "GNU/Linux".
10169
10170 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10171
10172         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10173         (build_gdbtypes): Build builtin_type_v2_float.
10174         (_initialize_gdbtypes): Register new builtin type.
10175
10176 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10177
10178         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10179         (clear_gdbarch_swap): New function.
10180         (initialize_non_multiarch): Call.
10181         (gdbarch_update_p): Before calling init(), swap out and clear the
10182         existing architecture.
10183         * gdbarch.c: Regenerate.
10184
10185 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10186
10187         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10188         alphanbsd-tdep.c.
10189
10190 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10191
10192         * sh-nbsd-nat.c: Rename to...
10193         * shnbsd-nat.c: ...this.
10194         * sh-nbsd-tdep.c: Rename to...
10195         * shnbsd-tdep.c: ...this.
10196         * sh-nbsd-tdep.h: Rename to...
10197         * shnbsd-tdep.h: ...this.
10198         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10199         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10200
10201 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10202
10203         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10204         concatenation for command help messages.
10205
10206 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10207
10208         * NEWS: Note new sh*-*-netbsdelf* configuration.
10209         * configure.host: Set gdb_host_cpu to sh for all sh*.
10210         (sh*-*-netbsdelf*): New host.
10211         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10212         (sh*-*-netbsdelf*): New target.
10213         * sh-nbsd-nat.c: New file.
10214         * sh-nbsd-tdep.c: New file.
10215         * sh-nbsd-tdep.h: New file.
10216         * config/sh/nbsd.mh: New file.
10217         * config/sh/nbsd.mt: New file.
10218         * config/sh/nm-nbsd.h: New file.
10219         * config/sh/tm-nbsd.h: New file.
10220
10221 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10222
10223         * sh-tdep.c (sh_osabi_names): Declare.
10224         (process_note_abi_tag_sections): New function.
10225         (get_elfosabi): Ditto.
10226         (sh_gdbarch_register_os_abi): Ditto.
10227         (sh_dump_tdep): Ditto.
10228         _initialize_sh_tdep): Use gdbarch_register to register
10229         sh_gdbarch_init and sh_dump_tdep.
10230         * config/sh/tm-sh.h (sh_osabi): Declare.
10231         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10232
10233 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10234
10235         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10236         (thumb_scan_prologue): Ditto.
10237         (arm_find_callers_reg): Ditto.
10238         (arm_frame_chain): Ditto.
10239         (arm_init_extra_frame_info): Ditto.
10240         (arm_frame_saved_pc): Ditto.
10241         (arm_pop_frame): Ditto.
10242         (arm_push_return_address): New function.
10243         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10244         call_dummy_location, call_dummy_breakpoint_offset_p,
10245         call_dummy_breakpoint_offset, call_dummy_p,
10246         call_dummy_stack_adjust_p, call_dummy_words,
10247         sizeof_call_dummy_words, call_dummy_start_offset,
10248         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10249         call_dummy_address, push_return_address and push_dummy_frame for
10250         generic dummy frames.
10251
10252 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10253
10254         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10255         size computation for alloca.
10256         (sh_fp_frame_init_saved_regs): Likewise.
10257
10258 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10259
10260         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10261         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10262         * arm-tdep.c (arm_store_return_value): Use them.
10263         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10264         * remote-rdp.c (remote_rdp_fetch_register): Use
10265         ARM_MAX_REGISTER_RAW_SIZE.
10266         (remote_rdp_store_register): Likewise.
10267
10268 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10269
10270         * dwarf2cfi.c: Code cleanup, removed unused variables,
10271         added default labels to switch {} statements.
10272         * x86-64-tdep.c: Ditto.
10273         * x86-64-linux-nat.c: Ditto.
10274
10275 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10276
10277         * solib.h: Protect against multiple inclusion.
10278
10279 2002-05-06  Jim Blandy  <jimb@redhat.com>
10280
10281         Add first preprocessor macro-expansion files.
10282         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10283         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10284         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10285         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10286         (COMMON_OBS): Add macrotab.o, macroexp.o.
10287         (macroexp.o, macrotab.o): New rules.
10288
10289         Separate the job of reading the line number info statement program
10290         header (...expialidocious) out into its own function.
10291         * dwarf2read.c (struct line_head, struct filenames, struct
10292         directories): Replace with...
10293         (struct line_header): New structure, containing the full
10294         contents of the statement program header, including the
10295         include directory and file name tables.
10296         (read_file_scope): If we have line number info, instead of just
10297         calling dwarf_decode_lines to do all the work, call
10298         dwarf_decode_line_header first to get a `struct line_header'
10299         containing the data in the statement program header, and then
10300         pass that to dwarf_decode_lines, which will pick up where that
10301         left off.  Be sure to clean up the `struct line_header' object.
10302         (dwarf_decode_line_header, free_line_header, add_include_dir,
10303         add_file_name): New functions.
10304         (dwarf_decode_lines): Move all the code to read the statement
10305         program header into dwarf_decode_line_header.  Take the line
10306         header it built as the first argument, instead of the offset to
10307         the compilation unit's line number info.  Use the new `struct
10308         line_header' type instead of the old structures.  No need to do
10309         cleanups here now, since we don't allocate anything.
10310         (dwarf2_statement_list_fits_in_line_number_section,
10311         dwarf2_line_header_too_long): New complaints.
10312
10313 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10314
10315         * gdbtypes.c (init_vector_type): New function.
10316         (build_builtin_type_vec128): Simplify the representation of SIMD
10317         registers.
10318         (build_gdbtypes): Initialize new builtin vector types.
10319         (_initialize_gdbtypes): Register new vector types with gdbarch.
10320         (builtin_type_v4_float, builtin_type_v4_int32,
10321         builtin_type_v8_int16, builtin_type_v16_int8,
10322         builtin_type_v2_int32, builtin_type_v4_int16,
10323         builtin_type_v8_int8): New (renamed) SIMD types.
10324
10325 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10326
10327         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10328         (i387_fill_fxsave): Likewise.
10329
10330 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10331
10332         * alpha-tdep.c (alpha_extract_return_value): Don't use
10333         non-constant array size in prototype.
10334
10335 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10336
10337         From Brian Taylor <briant at model dot com>:
10338         * ui-out.c (ui_out_field_core_addr): Use the function
10339         longest_local_hex_string_custom'to format addresses > 32 bits
10340         wide.
10341
10342         * ui-out.c (ui_out_field_core_addr): Update comment.
10343
10344 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10345
10346         * stack.c (select_and_print_frame): Make static.  Delete the
10347         parameter `level'.
10348         (func_command): Update call.
10349         (select_frame_command): Delete code computing the frame level.
10350         * frame.h (select_and_print_frame): Delete declaration.
10351
10352 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10353
10354         * sparc-tdep.c (sparc_get_saved_register): Comment why
10355         get_prev_frame call is safe.
10356
10357 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10358
10359         * frame.h (select_frame): Delete level parameter.
10360         * stack.c (select_frame): Update.  Use frame_relative_level to
10361         obtain the frame's level.
10362         (select_and_print_frame): Update call.
10363         (select_frame_command): Ditto.
10364         (up_silently_base): Ditto.
10365         (down_silently_base): Ditto.
10366         * ocd.c (ocd_start_remote): Ditto.
10367         * remote-rdp.c (remote_rdp_open): Ditto.
10368         * remote-mips.c (mips_initialize): Ditto.
10369         (common_open): Ditto.
10370         * remote-e7000.c (e7000_start_remote): Ditto.
10371         * m3-nat.c (select_thread): Ditto.
10372         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10373         (child_get_current_exception_event): Ditto.
10374         * varobj.c (varobj_create): Ditto.
10375         (varobj_update): Ditto.
10376         (c_value_of_root): Ditto.
10377         * tracepoint.c (finish_tfind_command): Ditto.
10378         * corelow.c (core_open): Ditto.
10379         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10380         * thread.c (info_threads_command): Ditto.
10381         (switch_to_thread): Ditto.
10382         * infrun.c (normal_stop): Ditto.
10383         (restore_selected_frame): Ditto.
10384         (restore_inferior_status): Ditto.
10385         * breakpoint.c (insert_breakpoints): Ditto.
10386         (watchpoint_check): Ditto.
10387         (bpstat_stop_status): Ditto.
10388         (do_enable_breakpoint): Ditto.
10389         * blockframe.c (flush_cached_frames): Ditto.
10390         (reinit_frame_cache): Ditto.
10391
10392 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10393
10394         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10395         maintainer.
10396
10397 2002-05-04  Jim Blandy  <jimb@redhat.com>
10398
10399         * gdbtypes.c (replace_type): Doc fix.
10400
10401 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10402
10403         * valprint.c (strcat_longest): Delete commented out function.
10404         Update copyright.
10405
10406 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10407
10408         * MAINTAINERS: Mark a29k as deleted.
10409         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10410         Move new configurations to the top.
10411         * configure.tgt: Remove a29k.
10412         * config/a29k/tm-vx29k.h: Delete.
10413         * config/a29k/vx29k.mt: Delete.
10414         * config/a29k/tm-a29k.h: Delete.
10415         * config/a29k/a29k-udi.mt: Delete.
10416         * config/a29k/a29k.mt: Delete.
10417         * a29k-tdep.c: Delete.
10418         * remote-udi.c: Delete.
10419         * remote-mm.c: Delete.
10420         * remote-eb.c: Delete.
10421         * remote-adapt.c: Delete.
10422         * Makefile.in: Remove obsolete code.
10423         * config/s390/s390x.mt: Ditto.
10424         * config/s390/s390.mt: Ditto.
10425         * config/sparc/sparclynx.mh: Ditto.
10426         * config/sparc/linux.mh: Ditto.
10427         * config/pa/hppaosf.mh: Ditto.
10428         * config/pa/hppabsd.mh: Ditto.
10429         * config/ns32k/nbsd.mt: Ditto.
10430         * config/mips/vr5000.mt: Ditto.
10431         * config/m68k/sun3os4.mh: Ditto.
10432         * config/m68k/nbsd.mt: Ditto.
10433         * config/m68k/m68klynx.mh: Ditto.
10434         * config/m32r/m32r.mt: Ditto.
10435         * config/i386/x86-64linux.mt: Ditto.
10436         * config/i386/nbsdelf.mt: Ditto.
10437         * config/i386/nbsd.mt: Ditto.
10438         * config/i386/i386lynx.mh: Ditto.
10439
10440 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10441
10442         * target.c (debug_print_register): New function.  Handle oversize
10443         registers.
10444         (debug_to_fetch_registers): Call.
10445         (debug_to_store_registers): Call.
10446
10447 2002-05-03  Jim Blandy  <jimb@redhat.com>
10448
10449         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10450         (read_type): Doc fix.
10451         * gdbtypes.c (replace_type): Doc fix.
10452
10453         * stabsread.c (multiply_defined_struct): New complaint.
10454         (read_struct_type): If the type we were passed isn't empty, or
10455         incomplete, don't read the new struct type into it; complain,
10456         and return the original type unchanged.  Take a new `type_code'
10457         argument, which is the type code for the new type.
10458         (read_type): Rather than storing the type's type code here, pass
10459         it as an argument to read_struct_type, and let that take care of
10460         storing it.  That way, we don't overwrite the original type code,
10461         so read_struct_type can use it to decide whether we're overwriting
10462         something we shouldn't.
10463         (complain_about_struct_wipeout): New function.
10464
10465 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10466
10467         * gdbarch.sh: Assert that gdbarch is non-NULL.
10468         * gdbarch.c: Regenerate.
10469
10470 2002-05-03  Jason Merrill  <jason@redhat.com>
10471
10472         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10473         and return NULL.
10474
10475 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10476
10477         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10478         (x86_64_dwarf2gdb_regno_map_length),
10479         (x86_64_dwarf2_reg_to_regnum): Added.
10480         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10481         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10482         (_initialize_x86_64_tdep): Synced with the change above.
10483         (x86_64_skip_prologue): Reformulated message.
10484
10485 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10486
10487         * f-exp.y: Also use new prev_lexptr variable
10488         to improve error reporting. Based on Michael Snyder
10489         2002-04-24 dated patch to c-exp.y.
10490         * jv-exp.y: Likewise.
10491         * m2-exp.y: Likewise.
10492
10493 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10494
10495         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10496         we are dealing with vectors.
10497
10498 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10499
10500         * config/m68k/tm-nbsd.h: Obvious fix,
10501         correct machine name.
10502
10503 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10504
10505         * p-typeprint.c (pascal_type_print_base): Add support
10506         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10507
10508 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10509
10510         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10511         for fondamental pascal 'char' type.
10512
10513 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10514
10515         * p-lang.h (is_pascal_string_type): Declaration changed,
10516         new sixth argument of type char ** added.
10517         * p-lang.c (is_pascal_string_type): Implementation
10518         changed. Args length_pos, length_size, string_pos, char_size
10519         can now be NULL. New argument arrayname set to the field
10520         name of the char array. Return value set to char array
10521         field index plus one.
10522         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10523         is_pascal_string_type function.
10524
10525 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10526
10527         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10528         <cagney@redhat.com> change.
10529         * gdbarch.c: Regenerate.
10530
10531 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10532
10533         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10534         before probing for a new one.  Detect errorenous gdbarch_init
10535         functions.
10536         * gdbarch.c: Regenerate.
10537
10538 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10539
10540         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10541         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10542         * config/v850/tm-v850.h: Ditto.  Update copyright.
10543
10544 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10545
10546         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10547         current_gdbarch.
10548
10549 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10550
10551         * arm-tdep.c: Whitespace clean-ups.
10552         (arm_skip_prologue): Fix thinko; two lines
10553         should have been removed as part of 4/24 change.
10554
10555 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10556
10557         * rs6000-tdep.c: Added comment describing how fpscr register
10558         numbers were chosen.
10559
10560 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10561
10562         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10563
10564 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10565
10566         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10567         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10568         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10569
10570 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10571
10572         From Louis Hamilton <hamilton@redhat.com>:
10573         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10574         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10575         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10576         not bfd-private xcoff data, to determine wordsize.
10577         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10578
10579 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10580
10581         GDB 5.2 released from 5.2 branch.
10582
10583 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10584
10585         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10586         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10587         (x86_64_register_info_table): Added comments with register numbers.
10588
10589 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10590
10591         * rs6000-tdep.c (rs6000_extract_return_value,
10592         rs6000_store_return_value): Handle returning vectors.
10593         (rs6000_gdbarch_init): Use
10594         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10595         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10596         New function.
10597         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10598         vectors.
10599         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10600         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10601
10602 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10603
10604         * hpread.c (hpread_psymtab_to_symtab_1,
10605         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10606         with fprintf_unfiltered (gdb_stderr,...).
10607
10608 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10609
10610         * remote-array.c (printf_monitor, write_monitor,
10611         array_insert_breakpoint, array_remove_breakpoint ):
10612         Replace fprintf (stderr,...
10613         with fprintf_unfiltered (gdb_stderr,....
10614         * remote-es.c: Likewise.
10615         * remote-os9k.c: Likewise.
10616         * remote-st.c: Likewise.
10617
10618 2002-04-28  Andreas Schwab  <schwab@suse.de>
10619
10620         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10621         linux-proc.o and gcore.o.
10622
10623 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
10624
10625         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10626         code without frame pointers.
10627
10628 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10629
10630         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10631         ON_STACK is needed.
10632
10633 2002-04-26  Ben Elliston  <bje@redhat.com>
10634
10635         * target.c (do_xfer_memory): Correct reference to the new option
10636         "trust-readonly-sections".
10637
10638 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
10639
10640         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10641         * gdbtypes.c (recursive_dump_type): Output the vector flag.
10642         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10643         vectors.
10644         (read_array_type): Record the fact that this array type is really a
10645         vector (i.e. are passed in by value).
10646
10647 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
10648
10649         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10650         * alpha-tdep.c (alpha_sigcontext_addr): New function.
10651         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10652         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10653         * alpha-linux-tdep.c: Include frame.h.
10654         (alpha_linux_sigcontext_addr): New function.
10655         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10656         alpha_linux_sigcontext_addr.
10657         * alpha-osf1-tdep.c: Include gdbcore.h.
10658         (alpha_osf1_sigcontext_addr): New function.
10659         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10660         alpha_osf1_sigcontext_addr.
10661         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10662         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10663
10664 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10665
10666         * stack.c (selected_frame_level):
10667         (select_frame): Do not set selected_frame_level.
10668         * frame.h (selected_frame_level): Delete declaration.
10669
10670 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
10671
10672         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10673         convert_from_func_ptr-addr when AIX / PowerOpen.
10674
10675 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10676
10677         * valops.c (hand_function_call): Call
10678         generic_save_call_dummy_addr.
10679         * frame.h (generic_save_call_dummy_addr): Declare.
10680         * blockframe.c (struct dummy_frame): Add fields call_lo and
10681         call_hi.
10682         (generic_find_dummy_frame): Check for PC in range call_lo to
10683         call_hi instead of entry_point_address.
10684         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10685         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
10686         (generic_save_call_dummy_addr): New function.
10687
10688 2002-04-24  David S. Miller  <davem@redhat.com>
10689
10690         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10691         sparc_skip_prologue.
10692         (sparc_skip_prologue): Kill frameless_p arg, and use line number
10693         information to find prologue when possible.
10694         (sparc_prologue_frameless_p): Call examine_prologue directly.
10695         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10696         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10697         second argument.
10698         (SKIP_PROLOGUE): Likewise.
10699
10700 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10701
10702         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10703         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10704         indicate that the condition it was testing is always true.
10705         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10706         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10707         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10708
10709 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10710
10711         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10712         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10713         tdep->jb_pc and tdep->jb_elt_size.
10714         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10715         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10716         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10717         * alpha-nat.c (get_longjmp_target): Remove.
10718         (JB_ELEMENT_SIZE): Ditto.
10719         (JB_PC): Ditto.
10720         * alpha-tdep.c (alpha_get_longjmp_target): New function.
10721         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
10722         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10723         to alpha_get_longjmp_target.
10724         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10725         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10726         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10727
10728 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10729
10730         * README: Update to GDB 5.2.
10731
10732 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
10733
10734         * gdbarch.sh (LC_ALL): Set to `c'.
10735
10736 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10737
10738         * avr-tdep.c: Ran through gdb_indent.sh.
10739
10740 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10741
10742         * MAINTAINERS: Add myself as AVR maintainer.
10743         * NEWS: Note new target avr.
10744
10745 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10746
10747         * Makefile.in: Add support for AVR target.
10748         * configure.tgt: Add support for AVR target.
10749         * avr-tdep.c: New file
10750         * config/avr/avr.mt: New file.
10751
10752 2002-04-25  Theodore A. Roth  <troth@verinet.com>
10753
10754         * MAINTAINERS: Add myself to write-after-approval.
10755
10756 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10757
10758         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10759         with fprintf_unfiltered (gdb_stderr,....
10760
10761 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10762
10763         Fix PR gdb/508.
10764         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10765
10766 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
10767
10768         * p-exp.y: Also use new prev_lexptr variable
10769         to improve error reporting. Based on Michael Snyder
10770         2002-04-24 dated patch to c-exp.y.
10771
10772 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10773
10774         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10775         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10776         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
10777         to 0.
10778         * config/alpha/tm-alpha.h: Remove forward decls of struct type
10779         and struct value.
10780         (FUNCTION_START_OFFSET): Remove.
10781         (BREAKPOINT): Ditto.
10782
10783 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
10784
10785         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10786         * NEWS: Ditto.
10787
10788 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10789
10790         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10791         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10792         alpha_linux_pc_in_sigtramp.
10793         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10794         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10795         alpha_osf1_pc_in_sigtramp.
10796         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10797         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10798         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10799         alphafbsd_pc_in_sigtramp.
10800         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10801         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10802         alphanbsd_pc_in_sigtramp.
10803         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10804         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10805
10806 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10807
10808         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10809
10810 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10811
10812         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10813         alphanbsd-tdep.c.
10814         (alphanbsd-nat.o): New dependency list.
10815         (alphanbsd-tdep.o): Ditto.
10816         * NEWS: Note new native NetBSD/alpha configuration.
10817         * alphanbsd-nat.c: New file.
10818         * alphanbsd-tdep.c: Ditto.
10819         * configure.host (alpha*-*-netbsd*): New host.
10820         * configure.tgt (alpha*-*-netbsd*): New target.
10821         * config/alpha/nbsd.mh: New file.
10822         * config/alpha/nbsd.mt: Ditto.
10823         * config/alpha/nm-nbsd.h: Ditto.
10824         * config/alpha/tm-nbsd.h: Ditto.
10825
10826 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10827
10828         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10829         (alpha-osf1-tdep.o): New dependency list.
10830         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10831         and skip_sigtramp_frame members.
10832         * alpha-linux-tdep.c: Include gdbcore.h.
10833         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10834         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10835         * alpha-osf1-tdep.c: New file.
10836         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10837         alpha-osf1-dep.c.
10838         (alpha_frame_past_sigtramp_frame): New function.
10839         (alpha_dynamic_sigtramp_offset): Ditto.
10840         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10841         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10842         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10843         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10844         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10845         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10846         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10847         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10848         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10849         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10850         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
10851         to find_solib_trampoline_target.
10852         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10853         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10854         (SKIP_TRAMPOLINE_CODE): Remove.
10855         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10856         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10857         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10858         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10859         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10860         (PROC_SIGTRAMP_MAGIC): Ditto.
10861         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10862         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10863         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10864         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10865         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10866
10867 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
10868
10869         * NEWS: Note that Alpha targets are now multi-arch.
10870
10871 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10872
10873         * parser-defs.h (prev_lexptr): New external variable.
10874         * parse.c (parse_exp_1): Set prev_lexptr to null before
10875         calling the language-specific parser.
10876         * c-exp.y (yylex): Set prev_lexptr to start of current token.
10877         (yyerror): Use prev_lexptr in error reporting.
10878
10879 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
10880
10881         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10882         * gregset.h: If FILL_FPXREGSET is defined, provide
10883         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10884         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10885         is defined, call fill_fpxregset.
10886
10887 2002-04-24  Roland McGrath  <roland@frob.com>
10888
10889         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10890         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10891         (supply_gregset, supply_fpregset): New functions.
10892
10893         * gnu-nat.c (gnu_find_memory_regions): New function.
10894         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10895         (gnu_xfer_memory): Add a cast.
10896
10897 2002-04-24  Michael Snyder  <msnyder@redhat.com>
10898
10899         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10900         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
10901         of argument regs ("str r(0123), [r11, #-nn"]).
10902         (arm_skip_prologue): Better handling for frameless functions.
10903         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
10904         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10905
10906 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
10907
10908         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10909         NUM_PSEUDO_REGS can be used.
10910
10911 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
10912
10913         * arch-utils.h: Update copyright.
10914
10915         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10916         * gdbarch.h, gdbarch.c: Re-generate.
10917
10918         * inferior.h (IN_SIGTRAMP): Delete definition.
10919         * arch-utils.c (legacy_pc_in_sigtramp): New function.
10920         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10921
10922         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10923         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10924         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
10925         (find_proc_framesize): Ditto.
10926         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10927         (alpha_init_extra_frame_info): Ditto.
10928         * infrun.c (handle_inferior_event): Ditto.
10929         (handle_inferior_event): Ditto.
10930         (check_sigtramp2): Ditto.
10931         * blockframe.c (create_new_frame): Ditto.
10932         (get_prev_frame): Ditto.
10933         * ppc-linux-tdep.c: Update comments.
10934         * i386-linux-tdep.c: Update comments.
10935         * breakpoint.c (bpstat_what): Update comment.
10936
10937 2002-04-24  David S. Miller  <davem@redhat.com>
10938
10939         * i960-tdep.c (register_in_window_p): New function.
10940         (i960_find_saved_register): Use it instead of
10941         REGISTER_IN_WINDOW_P.
10942         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10943
10944         * symtab.h (find_stab_function_addr): Kill extern.
10945         * minsyms.c (find_stab_function_addr): Remove from here...
10946         * dbxread.c: ... to here, and mark it static.
10947
10948 2002-04-20  David S. Miller  <davem@redhat.com>
10949
10950         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10951         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10952
10953 2002-04-21  David S. Miller  <davem@redhat.com>
10954
10955         * remote-vxsparc.c (vx_read_register): Fix typo, we want
10956         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10957         (vx_write_register): Likewise.
10958
10959 2002-04-23  J. Brobecker  <brobecker@gnat.com>
10960
10961         * source.c (is_regular_file): New function.
10962         (openp): Check wether file to open is a regular file
10963         to avoid opening directories.
10964
10965 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10966
10967         * findvar.c (extract_signed_integer): Cast printf argument
10968         to suppress format warning.
10969         (extract_unsigned_integer): Likewise.
10970         * infcmd.c (registers_info): Likewise.
10971         * top.c (get_prompt_1): Likewise.
10972         * valops.c (value_assign): Likewise.
10973         * valprint.c (print_decimal): Likewise.
10974
10975 2002-04-22  H.J. Lu  (hjl@gnu.org)
10976
10977         * c-exp.y (typebase): Support
10978
10979         [long|long long|short] [signed|unsigned] [int|]
10980
10981         and
10982
10983         signed [long|long long|short] int
10984
10985 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
10986
10987         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10988         and vax-tdep.h.
10989         * vax-tdep.h: New file.
10990         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10991         Make several routines static.
10992         (vax_get_saved_register): New function.
10993         (vax_gdbarch_init): New function.
10994         (_initialize_vax_tdep): Register vax_gdbarch_init.
10995         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10996         Remove macros now under the control of gdbarch.
10997
10998 2002-04-22  Michael Snyder  <msnyder@redhat.com>
10999
11000         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11001         Some whitespace and coding standards tweaks.
11002
11003 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11004
11005         * vax-tdep.c: Include regcache.h.
11006         (vax_call_dummy_words): New.
11007         (sizeof_vax_call_dummy_words): New.
11008         (vax_fix_call_dummy): New function.
11009         (vax_saved_pc_after_call): Ditto.
11010         * config/vax/tm-vax.h: Don't include regcache.h.
11011         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11012         (CALL_DUMMY): Remove.
11013         (CALL_DUMMY_WORDS): Define.
11014         (SIZEOF_CALL_DUMMY_WORDS): Define.
11015         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11016
11017 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11018
11019         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11020
11021 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11022
11023         * vax-tdep.c (vax_frame_chain): New function.
11024         (vax_push_dummy_frame): Ditto.
11025         (vax_pop_frame): Ditto.
11026         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11027         (FRAMELESS_FUNCTION_INVOCATION): Use
11028         generic_frameless_function_invocation_not.
11029         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11030         (POP_FRAME): Use vax_pop_frame.
11031
11032 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11033
11034         * vax-tdep.c (vax_store_struct_return): New function.
11035         (vax_extract_return_value): Ditto.
11036         (vax_store_return_value): Ditto.
11037         (vax_extract_struct_value_address): Ditto.
11038         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11039         vax_store_struct_return.
11040         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11041         (STORE_RETURN_VALUE): Use vax_store_return_value.
11042         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11043
11044 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11045
11046         * vax-tdep.c (vax_frame_saved_pc): New function.
11047         (vax_frame_args_address_correct): Ditto.
11048         (vax_frame_args_address): Ditto.
11049         (vax_frame_locals_address): Ditto.
11050         (vax_frame_num_args): Move code to be in proximity to
11051         other frame-related functions.
11052         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11053         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11054         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11055         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11056         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11057
11058 2002-04-22  H.J. Lu  (hjl@gnu.org)
11059
11060         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11061         includedir.
11062
11063 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11064
11065         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11066         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11067         (FRAME_INIT_SAVED_REGS): New macro.
11068
11069 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11070
11071         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11072
11073 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11074
11075         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11076         where needed.
11077         (fetch_osf_core_registers): Likewise.
11078         (supply_gregset): Likewise.
11079
11080 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11081
11082         * symfile.h (get_section_index): Define.
11083         * symfile.c (get_section_index): New function.
11084         * mdebugread.c (SC_IS_SBSS): New macro.
11085         (SC_IS_BSS): Return true for the scBss storage class only, as
11086         the scSBss storage class refers to the .sbss section.
11087         (parse_partial_symbols): Discard the symbols which associated
11088         section does not exist.
11089         Make sure to use the .sbss section index for symbols which
11090         storage class is scBss, rather than using the .bss section index.
11091
11092 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11093
11094         * vax-tdep.c: Update copyright years.
11095         (vax_register_name): New function.
11096         (vax_register_byte): Ditto.
11097         (vax_register_raw_size): Ditto.
11098         (vax_register_virtual_size): Ditto.
11099         (vax_register_virtual_type): Ditto.
11100         * config/vax/tm-vax.h: Update copyright years.
11101         (REGISTER_NAMES): Remove.
11102         (REGISTER_NAME): Define.
11103         (REGISTER_BYTE): Use vax_register_byte.
11104         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11105         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11106         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11107
11108 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11109
11110         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11111         declaration
11112         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11113
11114 2002-04-21  David S. Miller  <davem@redhat.com>
11115
11116         * arch-utils.c (generic_prologue_frameless_p): Kill
11117         SKIP_PROLOGUE_FRAMELESS_P code.
11118         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11119         references.
11120         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11121         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11122         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11123         references.
11124         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11125         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11126         (sparc_gdbarch_init): Pass it to
11127         set_gdbarch_prologue_frameless_p.
11128
11129 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11130
11131         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11132         (alphabsd-nat.o): New dependency list.
11133
11134 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11135
11136         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11137         alphafbsd-tdep.c.
11138         (alpha-linux-tdep.o): New dependency list.
11139         (alphafbsd-tdep.o): Likewise.
11140
11141 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11142
11143         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11144         to here...
11145         * alpha-tdep.c: ...from here.
11146         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11147
11148 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11149
11150         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11151         prototype from here...
11152         * alpha-tdep.h: ...to here.
11153
11154 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11155
11156         * frame.h (selected_frame_level): Document as deprecated.
11157         (frame_relative_level): Declare.
11158         * stack.c (frame_relative_level): New function.
11159         (selected_frame_level): Document as deprecated.
11160         (select_frame): Do not set the selected_frame_level.
11161
11162         * stack.c (frame_info, record_selected_frame): Update.
11163         (frame_command, current_frame_command): Update.
11164         (up_silently_base, up_command, down_silently_base): Update.
11165         (down_command): Update.
11166         * inflow.c (kill_command): Update.
11167         * tracepoint.c (finish_tfind_command): Update.
11168         * corelow.c (core_open): Update.
11169         * thread.c (info_threads_command): Update.
11170         (do_captured_thread_select): Update.
11171         * infcmd.c (finish_command): Update.
11172         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11173
11174 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11175
11176         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11177
11178 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11179
11180         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11181         type const.
11182
11183 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11184
11185         * alphafbsd-tdep.c: Update copyright years.  Include
11186         alpha-tdep.h.
11187         (alphafbsd_use_struct_convention): Make static.
11188         (alphafbsd_init_abi): New function.
11189         (_initialize_alphafbsd_tdep): New function.
11190         * config/alpha/tm-fbsd.h: Update copyright years.
11191         (USE_STRUCT_CONVENTION): Remove.
11192
11193 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11194
11195         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11196         an Alpha ABI variant.
11197         (alpha_abi_handler_list): Declare.
11198         (alpha_gdbarch_register_os_abi): New function.
11199         (alpha_gdbarch_init): Give registered ABI variant handlers a
11200         chance to tweak the gdbarch once we have set up defaults.
11201         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11202
11203 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11204
11205         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11206         to standard_coerce_float_to_double.
11207         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11208
11209 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11210
11211         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11212         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11213         from gdbarch_tdep rather than a constant.
11214         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11215         the default text address for all Alpha Unix ABIs.
11216         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11217         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11218
11219 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11220
11221         * alpha-tdep.h: New file.  Includes several Alpha target constants
11222         taken from...
11223         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11224         let gdbarch deal with.
11225         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11226         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11227         to dependency list.
11228         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11229         Alpha target register names.
11230         * alphabsd-nat.c: Likewise.
11231         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11232         Alpha target register names.  Make serveral routines static.
11233         (alpha_get_saved_register): New function.
11234         (alpha_abi_names): New.
11235         (process_note_abi_tag_sections): New function.
11236         (get_elfosabi): New function.
11237         (alpha_gdbarch_init): New function.
11238         (alpha_dump_tdep): New function.
11239         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11240
11241 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11242
11243         * frame.c (find_saved_register): Delete #ifdef
11244         HAVE_REGISTER_WINDOWS code.
11245         * config/sparc/tm-sparc.h: Update comments.
11246         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11247
11248 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11249
11250         * i960-tdep.c (i960_find_saved_register): New function.
11251         (i960_get_saved_register): New function.
11252         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11253         (i960_get_saved_register): Declare.
11254         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11255
11256 2002-04-20  David S. Miller  <davem@redhat.com>
11257
11258         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11259
11260 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11261
11262         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11263         instead of NUM_PSEUDO_REGS.
11264
11265 2002-04-20  David S. Miller  <davem@redhat.com>
11266
11267         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11268         GDB_MULTI_ARCH_PARTIAL
11269         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11270         define, let tm-sp64.h do it.
11271
11272 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11273
11274         * frame.c (find_saved_register): Avoid a NULL pointer
11275         dereference and actually walk the frame list.
11276
11277 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11278
11279         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11280         sorted in most most-recent-used order.  Document.
11281         * gdbarch.h, gdbarch.c: Regenerate.
11282
11283 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11284
11285         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11286         instead of ->prev.
11287         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11288         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11289         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11290         instead of ->prev.
11291
11292 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11293
11294         Fix PR gdb/471.
11295         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11296         (build_builtin_type_vec128): Ditto.
11297         (append_composite_type_field): Fix calculation of type length in
11298         union case.
11299
11300 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11301
11302         * config/djgpp/README: Update.
11303
11304         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11305         compiler warnings.
11306
11307 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11308
11309         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11310         (alpha_setup_arbitrary_frame): ...to this.
11311         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11312         for alpha_setup_arbitrary_frame.
11313
11314 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11315
11316         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11317         * gdbarch.h, gdbarch.c: Regenerate.
11318
11319         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11320         * target.h (memory_breakpoint_from_pc): Update declaration.
11321         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11322
11323         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11324         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11325         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11326         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11327         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11328         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11329         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11330         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11331         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11332         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11333         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11334         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11335
11336         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11337         const pointer.
11338         * monitor.c (monitor_insert_breakpoint): Ditto.
11339         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11340
11341         * config/mcore/tm-mcore.h: Update copyright.
11342         * mem-break.c: Ditto.
11343         * xstormy16-tdep.c: Ditto.
11344
11345 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11346
11347         * p-exp.y: Add precedence rule for '^' token.
11348         This removes the shift/reduce conflicts.
11349         Remove the comment concerning these shift/reduce conflicts.
11350
11351 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11352
11353         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11354         (registers_powerpc_nofp): New register set for processors
11355         without floating point unit.
11356
11357 2002-04-18  David S. Miller  <davem@redhat.com>
11358
11359         * MAINTAINERS: Add myself to write-after-approval.
11360
11361 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11362
11363         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11364
11365 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11366
11367         * rs6000-tdep.c (frame_initial_stack_address): Use
11368         frame_register_read to read the alloca_reg.
11369
11370 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11371
11372         * frame.c (find_saved_register): Find saved registers in the next
11373         not prev frame.
11374         Fix PR gdb/365.
11375
11376 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11377
11378         * gdbarch.sh (LANG): Set to ``c''.
11379
11380 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11381
11382         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11383
11384 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11385
11386         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11387         Update copyright.
11388
11389         * hpread.c (hpread_get_lntt): Add declaration.
11390         Also fix PR gdb/391.
11391
11392 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11393
11394         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11395         * aclocal.m4, configure: Re-generate.
11396         Fix PR gdb/391.
11397
11398 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11399
11400         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11401         instead of tm_print_insn.
11402
11403 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11404
11405         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11406
11407 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11408
11409         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11410         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11411         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11412
11413 2002-04-12  Don Howard  <dhoward@redhat.com>
11414
11415         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11416         max_user_call_depth.
11417         (init_cmd_lists): Initialize the new value;
11418         * cli/cli-script.c (execute_user_command): Limit the call depth of
11419         user defined commands.  This avoids a core-dump when user commands
11420         are infinitly recursive.
11421
11422 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11423
11424         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11425         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11426         from tdep struct instead of DEFAULT_LR_SAVE.
11427         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11428         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11429         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11430
11431 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11432
11433         * Remote.c: Spelling fix.
11434         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11435         If no symbol found for "sbrk", try "_sbrk".
11436         (make_output_phdrs): Use bfd_section_name.
11437         (gcore_copy_callback): Use bfd_section_name.
11438         * eval.c: Indentation fix-ups.
11439         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11440         in case it gets applied to an address that is already
11441         in the instruction space.
11442         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11443         * symfile.c: Fix indentation, long lines.
11444         * source.c: White space fix-up.
11445
11446 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11447
11448         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11449         * frame.c (frame_register_read): New function.  Return non-zero on
11450         success.
11451         (read_relative_register_raw_bytes_for_frame): Delete.
11452         (read_relative_register_raw_bytes): Delete.
11453         * frame.h (frame_register_read): Declare.
11454         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11455         * sh-tdep.c: Ditto.
11456         * infcmd.c (do_registers_info): Ditto.
11457         * hppa-tdep.c: Ditto.
11458         * rs6000-tdep.c: Ditto.
11459         * h8500-tdep.c: Ditto.
11460         * mips-tdep.c: Ditto.
11461         * h8300-tdep.c: Ditto.
11462         * z8k-tdep.c: Ditto.
11463
11464 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11465
11466         From Jimi X <jimix@watson.ibm.com>:
11467         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11468         64-bit SysV ABI.
11469
11470 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11471
11472         From Jimi X <jimix@watson.ibm.com>:
11473         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11474         bfd info.
11475
11476 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11477
11478         From Jimi X <jimix@watson.ibm.com>:
11479         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11480         register sets for these processor variants.
11481
11482 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11483
11484         * regformats/reg-ppc.dat: Support FPSCR.
11485
11486 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11487
11488         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11489         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11490         Add fpscr as an invalid/unfetchable register.
11491         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11492         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11493         (fill_fpregset): Add support for register fpscr.
11494         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11495         (fill_gregset): Account for the fact that register ``mq'' might
11496         not exist.
11497         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11498         (registers_power): Add fpscr to register set at slot 71.
11499         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11500         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11501
11502 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11503
11504         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11505         * configure: Regenerate.
11506         * config.in: Regenerate.
11507         * acconfig.h: Add define for _SYSCALL32.
11508         * core-sol2.c: Remove #define _SYSCALL32.
11509         * solib-legacy.c: Remove #define _SYSCALL32.
11510
11511 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11512
11513         * stack.c (select_frame): Cleanup internal error message, do not
11514         use %p.
11515
11516 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11517
11518         * stack.c (select_frame): Check that selected_frame and the
11519         specified level are as expected.
11520         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11521         Update copyright.
11522         * frame.h (struct frame_info): Add field `level'.  Update
11523         copyright.
11524         Work-in-progress PR gdb/464.
11525
11526 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11527
11528         * maint.c (maint_print_section_info): Rename print_section_info.
11529         (print_bfd_section_info, print_objfile_section_info): Update.
11530         * inferior.h (struct gdbarch): Add opaque declaration.
11531         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11532         * gdbarch.h: Regenerate.
11533
11534 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11535
11536         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11537         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11538         (kernel_u_size): Added.
11539         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11540         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11541
11542 2002-04-04  Jim Ingham  <jingham@apple.com>
11543
11544        * valarith.c (find_size_for_pointer_math): New function, either returns
11545        the size for a pointer's target, returns 1 for void *, or errors for
11546        incomplete types.
11547        (value_add, value_sub): use find_size_for_pointer_math.
11548
11549 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11550
11551         * linux-low.c (linux_look_up_symbols): New hook.
11552         (linux_target_ops): Add linux_look_up_symbols.
11553         * remote-utils.c (decode_address): New function.
11554         (look_up_one_symbol): New function.
11555         * server.c (handle_query): Call target look_up_symbols hook.
11556         * server.h (look_up_one_symbol): Add prototype.
11557         * target.h (struct target_ops): Add look_up_symbols hook.
11558
11559 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11560
11561         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11562         override FP_REGNUM with frame->fp.  Update copyright.
11563         * parse.c (num_std_regs, std_regs): Delete.
11564         (target_map_name_to_register): Do not search std_regs.  Update
11565         function description.
11566         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11567         declarations.  Update copyright.
11568         Fix PR gdb/251.
11569
11570 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11571
11572         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11573         after the last symbol in a block.
11574
11575 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11576
11577         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11578         is non zero as a found symbol.
11579
11580 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11581
11582         * findvar.c: Include "builtin-regs.h".
11583         (value_of_register): Call value_of_builtin_reg when applicable.
11584         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11585         (target_map_name_to_register): Call
11586         builtin_reg_map_name_to_regnum.
11587         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11588         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11589         (builtin_regs_h): Define.
11590         (builtin-regs.o): New target.
11591         (findvar.o): Add $(builtin_regs_h).
11592         * builtin-regs.c, builtin-regs.h: New files.
11593         * std-regs.c: New file.
11594         Partial fix for PR gdb/251.
11595
11596 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11597
11598         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11599         it's no longer required.
11600
11601 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11602
11603         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11604
11605 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11606
11607         From Jimi X <jimix@watson.ibm.com>:
11608         * rs6000-tdep.c (rs6000_software_single_step): Use
11609         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11610         and size.  Use target_insert_breakpoint() and
11611         target_remove_breakpoint() to insert and remove breakpoints
11612         instead of explicit memory reads and writes.
11613
11614 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11615
11616         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11617         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11618         ELF_OBJECT_FORMAT ifdef.
11619
11620 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11621
11622         From Jimi X <jimix@watson.ibm.com>:
11623         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11624
11625 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11626
11627         From Jimi X <jimix@watson.ibm.com>:
11628         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11629         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11630
11631 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
11632
11633         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11634         s/asprintf/xasprintf/.
11635         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11636
11637 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11638
11639         I believe Jeff Law denies responsability for this one:
11640         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11641         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11642         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11643         Work-around for PR gdb/366.
11644
11645 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11646
11647         * remote-e7000.c (write_small, e7000_read_inferior_memory,
11648         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11649         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11650
11651 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
11652
11653         * sh-tdep.c (sh_fp_frame_init_saved_regs,
11654         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11655         information.
11656
11657 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11658
11659         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11660         maintainer.
11661
11662 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
11663
11664         * README (Reporting Bugs in GDB): Document the bug web page as the
11665         prefered way of submitting bugs.
11666         Fix PR gdb/402.
11667
11668 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11669
11670         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11671         -1.  Update comment.
11672         * gdbarch.h, gdbarch.c: Re-generate.
11673
11674 2002-04-07  Andreas Schwab  <schwab@suse.de>
11675
11676         * m68klinux-nat.c (fill_fpregset): Properly pass address of
11677         buffer to regcache_collect.
11678
11679 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11680
11681         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
11682         * gdbarch.c, gdbarch.h: Re-generate.
11683
11684 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
11685
11686         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11687         declaration.  Fix -Werror.
11688
11689 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
11690
11691         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11692         * gdbarch.c: Regenerate.
11693
11694 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11695
11696         * breakpoint.c (clear_command): Rewrite middle section to
11697         combine two loops with identical control conditions.
11698         Add a cleanup to eliminate a memory leak.
11699         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11700
11701 2002-04-05  H.J. Lu  (hjl@gnu.org)
11702
11703         * solib-svr4.c (bkpt_names): Add "__start".
11704
11705 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11706
11707         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11708         as test for 64 bit target.
11709
11710 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
11711
11712         * h8500-tdep.c (h8500_write_fp): Delete function.
11713         * dwarf2cfi.c (cfi_write_fp): Document as not used.
11714         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11715         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11716         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11717         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11718         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11719         (s390_write_fp):
11720         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11721         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11722         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11723         (d10v_write_fp): Delete function.
11724         * inferior.h (write_fp, generic_target_write_fp): Delete
11725         declarations.
11726         * regcache.c (generic_target_write_fp): Delete function.
11727         (write_fp): Delete function.
11728         * gdbarch.sh (TARGET_WRITE_FP): Delete.
11729         * gdbarch.h, gdbarch.c: Regenerate.
11730         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11731         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11732         (sparc64_write_fp): Delete declaration.
11733         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11734         (h8500_write_fp): Delete declaration.
11735
11736 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
11737
11738         * sparc-tdep.c (sparc64_write_fp): Delete.
11739         (sparc_push_dummy_frame): Replace write_fp call with code to store
11740         the FP directly.
11741         (sparc_gdbarch_init): Do not initialize write_fp.
11742
11743 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
11744
11745         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11746         clause.
11747
11748 2002-03-29  Jim Blandy  <jimb@redhat.com>
11749
11750         * stack.c (get_selected_block): Add new argument `addr_in_block',
11751         used to return the exact code address we used to select the block,
11752         not just the block.
11753         * blockframe.c (get_frame_block, get_current_block): Same.
11754         * frame.h (get_frame_block, get_current_block,
11755         get_selected_block): Update declarations.
11756         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11757         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11758
11759 2002-04-05  Michael Snyder  <msnyder@redhat.com>
11760
11761         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11762         warning message.
11763
11764 2002-04-05  J. Brobecker  <brobecker@gnat.com>
11765
11766         * utils.c (xfullpath): New function.
11767         * defs.h (xfullpath): Add declaration.
11768         * source.c (openp): Use xfullpath in place of gdb_realpath to
11769         avoid resolving the basename part of filenames when the
11770         associated file is a symbolic link. This fixes a potential
11771         inconsistency between the filenames known to GDB and the
11772         filenames it prints in the annotations.
11773         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11774         to be able to match a filename with either the real filename, or
11775         the name of any symbolic link to this file.
11776         (lookup_partial_symtab): Ditto.
11777
11778 2002-04-04  Michael Snyder  <msnyder@redhat.com>
11779
11780         * breakpoint.c: Add support for hardware breakpoints in overlays.
11781         (overlay_events_enabled): New state variable.
11782         (insert_breakpoints): Use overlay_events_enabled to decide
11783         whether to attempt to set a breakpoint at the overlay load addr.
11784         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11785         (remove_breakpoint): Use overlay_events_enabled to decide
11786         whether breakpoints need to be removed from overlay load addr.
11787         Handle bp_hardware_breakpoint as well as bp_breakpoint.
11788         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11789         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11790         disable_overlay_breakpoints): Update overlay_events_enabled.
11791
11792 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
11793
11794         * dwarf2read.c (struct function_range): New.
11795         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11796         (check_cu_functions): New.
11797         (read_file_scope): Initialize global function lists.
11798         Call dwarf_decode_line after processing children.
11799         (read_func_scope): Add to global function list.
11800         (dwarf_decode_lines): Call check_cu_functions everywhere
11801         record_line is called.  Call record_line with a linenumber
11802         of 0 to mark sequence ends.
11803
11804 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
11805
11806         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11807         change sync with glibc.
11808
11809 2002-04-03  Jim Blandy  <jimb@redhat.com>
11810
11811         * configure.in: Call AC_C_INLINE.
11812         * configure: Regenerated.
11813
11814 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
11815
11816         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11817         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11818
11819 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
11820
11821         * NEWS: Mention gcore support on FreeBSD/i386.
11822
11823         * fbsd-proc.c: New file.
11824         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11825         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11826
11827         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11828         while statement.
11829
11830 2002-03-29  Jim Blandy  <jimb@redhat.com>
11831
11832         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11833         unescaped newlines in string literals, but newer ones don't.  So
11834         escape them.
11835
11836 2002-03-26  Michael Snyder  <msnyder@redhat.com>
11837             Andrew Cagney <cagney@redhat.com>
11838
11839         * cli/cli-dump.c: New file.  Dump memory to file,
11840         restore file to memory.
11841         * cli/cli-dump.h: New file.
11842         * Makefile.in: Add rules, dependencies for cli-dump.o.
11843         * NEWS: Mention new commands.
11844
11845 2002-03-28  Michael Snyder  <msnyder@redhat.com>
11846
11847         * symfile.c (symbol_file_add): Move test for null symbols to later.
11848
11849 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11850
11851         From veksler at il.ibm.com:
11852         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11853         the xstrduped original path.
11854         Fix PR gdb/417.
11855
11856 2002-03-27  Michael Snyder  <msnyder@redhat.com>
11857
11858         * breakpoint.c (_initialize_breakpoint): Clean up help string.
11859         * infcmd.c (_initialize_infcmd): Ditto.
11860         * language.c (_initialize_language): Ditto.
11861         * symfile.c (_initialize_symfile): Ditto.
11862         * top.c (_init_main): Ditto.
11863         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11864
11865 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
11866
11867         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11868         vector registers handling.
11869         (skip_prologue): Handle new AltiVec instructions.  Fill in new
11870         fields of frame data.
11871         (frame_get_saved_regs): Fill in information for AltiVec registers.
11872
11873 2002-03-27  Jim Blandy  <jimb@redhat.com>
11874
11875         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11876         a function; leave this macro here to invoke that function.
11877         (symbol_init_mangled_name): Declaration for that function.
11878         * symtab.c (symbol_init_mangled_name): New function.
11879
11880 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
11881
11882         * valarith.c: Replace strerror with safe_strerror.
11883         * tracepoint.c: Ditto.
11884         * lin-lwp.c: Ditto.
11885         * go32-nat.c: Ditto.
11886         * inflow.c: Ditto.
11887         * gnu-nat.c: Ditto.
11888
11889 2002-03-27  Andreas Schwab  <schwab@suse.de>
11890
11891         * event-top.c (command_line_handler): Remove useless if.
11892
11893 2002-03-27  Andreas Jaeger  <aj@suse.de>
11894
11895         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11896         comment.
11897
11898 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
11899
11900         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11901         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11902         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11903         (x86_64_linux_dr_get_status, supply_gregset),
11904         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11905         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11906         (x86_64_register_info_table): Add.
11907         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11908         (x86_64_register_raw_size, x86_64_register_virtual_type),
11909         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11910         general x86_64_register_info_table.
11911         (i386_gdbarch_init): gdbarch_register_bytes is now set
11912         dynamicaly during initialization.
11913         * regformats/reg-x86-64.dat: Synced with changes to registers above.
11914         * gdbserver/linux-x86-64-low.c: Ditto.
11915
11916 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11917
11918         * gdbserver/server.c (main): Call target_signal_to_host_p
11919         and target_signal_to_host on signals received from the remote.
11920         * gdbserver/remote-utils.c (prepare_resume_reply): Call
11921         target_signal_from_host on signals sent to the remote.
11922         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
11923         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
11924
11925 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11926
11927         * signals/signals.c: Include "server.h" in gdbserver build.
11928         (target_signal_from_name): Don't use STREQ.
11929         (_initialize_signals): Likewise.  Don't include function in
11930         gdbserver build.
11931
11932 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
11933
11934         * signals.c: Moved to...
11935         * signals/signals.c: Here.
11936         * Makefile (signals.o): Update.
11937
11938 2002-03-26  Jeff Law (law@redhat.com)
11939
11940         * somread.c (som_symtab_read): Remove some commented out code and
11941         updated related comments.  Do not set the minimal symbol table to
11942         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11943         in a dynamic executable.
11944         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11945         where we are unable to find the minimal symbol for the given
11946         PC value.
11947
11948 2002-03-25  Jeff Law (law@redhat.com)
11949
11950         * linux-proc.c (read_mapping): Scan up to end of line for filename.
11951
11952 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
11953
11954         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11955
11956 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11957
11958         * command.h: Update copyright.
11959         (struct cmd_list_element): Replace definition with opaque
11960         declaration.
11961         (enum cmd_types): Document that it will eventually be moved to
11962         cli/cli-decode.h
11963         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11964         (MALLOCED_REPLACEMENT): Delete macro.
11965         * Makefile.in (cli_decode_h): Add $(command_h).
11966         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11967         * top.c: Include "cli/cli-decode.h".
11968         * completer.c: Include "cli/cli-decode.h".
11969         * maint.c: Include "cli/cli-decode.h".
11970         * cli/cli-decode.h: Include "command.h".
11971         (enum command_class): Delete.
11972         (enum cmd_types): Comment out.
11973         (enum cmd_auto_boolean): Delete.
11974         (enum var_types): Delete.
11975
11976 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11977
11978         * cli/cli-decode.c: Include "gdb_assert.h".
11979         (add_set_or_show_cmd): New static function.
11980         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
11981         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
11982         all fields, such as func, from the set command.
11983
11984 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11985
11986         * MAINTAINERS (sh-elf): Change warning flag to -w.
11987
11988 2002-03-23  Andrew Cagney  <cagney@redhat.com>
11989
11990         * defs.h (error): Add printf format attribute.
11991         * thread-db.c (thread_from_lwp): Fix error format string.
11992         * stack.c (parse_frame_specification): Ditto.
11993         * cli/cli-decode.c (undef_cmd_error): Ditto.
11994         * scm-lang.c (scm_lookup_name): Ditto.
11995         * tracepoint.c (trace_error): Ditto.
11996         * remote-utils.c (usage): Ditto.
11997         * remote.c (compare_sections_command): Ditto.
11998         Fix PR gdb/328.
11999
12000 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12001
12002         * gdbtypes.c (append_composite_type_field): New function.
12003         (init_composite_type): New function.
12004         * gdbtypes.h (append_composite_type_field): Declare.
12005         (init_composite_type): Ditto.
12006
12007 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12008
12009         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12010         function.
12011         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12012         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12013         structure returning convention for SYSV ABI case, but not
12014         for GNU/Linux, FreeBSD, or NetBSD.
12015
12016 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12017
12018         * symtab.h (lookup_block_symbol): Add mangled_name argument
12019         to prototype.
12020
12021         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12022         with new mangled_name argument.
12023         * linespec.c (decode_line_1): Likewise.
12024         * valops (value_of_this): Likewise.
12025         * symtab.c (lookup_transparent_type): Likewise.
12026         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12027         (lookup_symbol): If we are given a mangled name, pass it down
12028         to lookup_symbol_aux.
12029         (lookup_block_symbol): If we are given a mangled name to check
12030         against, only return symbols which match it.
12031
12032 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12033
12034         * win32-nat.c (child_create_inferior): Check for proper shell to use
12035         here, in case the user changes it on the fly.
12036         (_initialize_inftarg): Remove shell path considerations.
12037
12038 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12039
12040         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12041         for gdbarch_max_register_raw_size and max_register_virtual_size.
12042         Adjust copyright year.
12043
12044 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12045
12046          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12047          in a function to cover the entire beginning of the function
12048          as well if it does not already.
12049
12050 2002-03-21  Tom Rix  <trix@redhat.com>
12051
12052         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12053         (rs6000_ptrace64): Renamed from ptrace64.
12054
12055 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12056
12057         * gdbserver/remote-utils.c (remote_open): Don't call
12058         getprotobyname, we're all using TCP here so just use
12059         IPPROTO_TCP.
12060         * gdbserver/gdbreplay.c (remote_open): Ditto.
12061
12062 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12063
12064         * regcache.c (_initialize_regcache): No need to call
12065         build_regcache() at this time; it gets called whenever
12066         the gdbarch changes.
12067
12068 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12069
12070         * sparc-nat.c:  Include sys/param.h where possible.
12071
12072 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12073
12074         Fix PR gdb/422.
12075         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12076         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12077         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12078         complex types.
12079         * stabsread.c (rs6000_builtin_type): Likewise.
12080         (read_sun_floating_type): Likewise.
12081
12082 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12083
12084         * stabsread.c (read_member_functions): Remove skip code for duplicate
12085         constructor/destructor methods.  Use standard parsing for these
12086         methods and just do not chain them to the list of methods after
12087         parsing.
12088
12089 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12090
12091         * coffread.c: Remove redundant static declarations.  Replace
12092         occurrences of `PTR' with `void *'.
12093         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12094         * top.h (quit_cover): Likewise.
12095         * defs.h (catch_errors): Likewise.
12096
12097 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12098
12099         * defs.h (XMALLOC): Define.
12100         * gdb-events.sh (XMALLOC): Delete macro.
12101         * gdb-events.c, gdb-events.h: Regenerate.
12102         * gdbarch.sh (XMALLOC): Delete macro.
12103         * gdbarch.c: Regenerate.
12104         * serial.c (XMALLOC): Delete macro.
12105         * ui-file.c (XMALLOC): Ditto.
12106         * ser-unix.h (XMALLOC): Ditto.
12107         * sh-tdep.c (XMALLOC): Ditto.
12108         * ui-out.c (XMALLOC): Ditto.
12109         * utils.c (XMALLOC): Ditto.
12110         * i386-tdep.c (XMALLOC): Ditto.
12111         * gdb-events.c (XMALLOC): Ditto.
12112         * d10v-tdep.c (XMALLOC): Ditto.
12113         * cli-out.c (XMALLOC): Ditto.
12114
12115         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12116         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12117         * ui-file.c, ui-out.c: Ditto.
12118
12119 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12120
12121         * command.h (struct cmd_list_element): Add field context.
12122         (set_cmd_context, get_cmd_context): Declare.
12123         * cli/cli-decode.h: Ditto.
12124         * cli/cli-decode.c (get_cmd_context): New function.
12125         (set_cmd_context): New function.
12126         (add_cmd): Initialize context.
12127         Part of fixing PR gdb/145 and PR gdb/146.
12128
12129 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12130
12131         * cli/cli-decode.c (cmd_type): New function.
12132         * command.h (cmd_type): Declare.
12133         * infrun.c (set_schedlock_func): Call function cmd_type.
12134         * kod.c (kod_set_os): Call cmd_type.
12135         * cris-tdep.c (cris_version_update): Use function cmd_type.
12136         (cris_mode_update, cris_abi_update): Ditto.
12137
12138         * command.h: (execute_cmd_post_hook): Declare.
12139         (execute_cmd_pre_hook): Declare.
12140         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12141         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12142         functions. Execute pre/post hook while ensuring that afterwords
12143         hook_in is cleared.
12144         * top.c (execute_command): Use execute_cmd_post_hook, and
12145         execute_cmd_pre_hook to execute pre/post commands.
12146         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12147         hook_stop_stub.
12148         (hook_stop_stub): Call execute_cmd_pre_hook.
12149
12150 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12151
12152         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12153         set'' and this leads to a core dump.  Move xstrdup of
12154         operating_system to after check that it is not NULL.
12155
12156 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12157
12158         * kod.c (kod_set_os): Remove unnecessary check that
12159         ``command->type'' is set_cmd.
12160
12161         * valprint.c (set_input_radix): Use input_radix.
12162         (set_output_radix): Use output_radix.
12163         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12164         isn't reverted.
12165
12166 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12167
12168         * value.h (struct value): Delete field ``substring_addr''.  Change
12169         aligner fields to force_doublest_align, force_longest_align,
12170         force_core_addr_align and force_pointer_aligh.
12171
12172         * value.h (struct value): Fix typo in above change.
12173
12174 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12175
12176         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12177         to fix internal_error from ``maintenance print architecture''.
12178
12179 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12180
12181         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12182         for gcc versions after gcc-2.8.1.
12183
12184 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12185
12186         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12187         for method resolution.  Restore adjustment of ``this'' pointer after
12188         calling value_struct_elt, which was accidentally removed during the
12189         HP merge.
12190
12191 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12192
12193         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12194         value_of_register.
12195         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12196         get_saved_register.
12197         * value.h (value_of_register): Update.
12198
12199 2002-03-14  Richard Henderson  <rth@redhat.com>
12200
12201         * configure.in: Detect declaration for canonicalize_file_name.
12202         * utils.c (canonicalize_file_name): Declare, if needed.
12203         (gdb_realpath): Prefer realpath if available and usable.
12204         * config.in, configure: Rebuild.
12205
12206 2002-03-14  Richard Henderson  <rth@redhat.com>
12207
12208         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12209         a constant array bound.
12210
12211         * MAINTAINERS: Add myself to write-after-approval.
12212
12213 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12214
12215         * symfile.c (syms_from_objfile): Return immediately if no syms.
12216         (symbol_file_add): Return immediately if no syms.
12217         (find_sym_fns): Return immediately if no syms.
12218
12219 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12220
12221         * gdbserver/remote-util.c (remote_open): Print remote-side's
12222         IP address when remote debugging over the network.
12223
12224 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12225
12226         * config/sparc/fbsd.mh: Fix copyright.
12227         * config/sparc/fbsd.mt: Likewise.
12228
12229 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12230
12231         * MAINTAINERS: Fix typo in name of gdb warnings option.
12232         (x86-64): Fix formating so that this can be parsed by awk.
12233
12234 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12235
12236         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12237         * defs.h: Include "gdb/signals.h".
12238         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12239
12240 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12241
12242         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12243         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12244         from x86-64-tdep.h
12245
12246 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12247             Don Howard <dhoward@redhat.com>
12248
12249         * mips-tdep.c (ST0_FR): Define.
12250         (mips2_fp_compat): New function, temporarily disabled.
12251         (mips_read_fp_register_single): New function.
12252         (mips_read_fp_register_double): New function.
12253         (mips_print_register): Use them.
12254         (do_fp_register_row): Likewise.
12255
12256 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12257
12258         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12259         approval''.
12260
12261 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12262
12263         * stabsread.c (read_member_functions): Fix is_stub test for
12264         static member functions, improve comment.
12265
12266 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12267
12268         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12269         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12270         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12271         commands that set boolean values.
12272         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12273         (arm_rdi_resume): Always initialize PC.
12274         (arm_rdi_open): Don't use rslt as a boolean.
12275         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12276         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12277         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12278         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12279
12280 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12281
12282         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12283         * configure: Rebuilt.
12284
12285 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12286
12287         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12288         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12289
12290 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12291
12292         * cli/cli-decode.c (set_cmd_completer): New function.
12293         * command.h (set_cmd_completer): Declare.
12294         * cli/cli-decode.h (set_cmd_completer): Ditto.
12295
12296         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12297         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12298         * win32-nat.c (_initialize_inftarg): Ditto.
12299         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12300         * proc-api.c (_initialize_proc_api): Ditto.
12301         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12302         * source.c (_initialize_source): Ditto.
12303         * exec.c (_initialize_exec): Ditto.
12304         * solib.c (_initialize_solib): Ditto.
12305         * top.c (init_main): Ditto.
12306         * tracepoint.c (_initialize_tracepoint): Ditto.
12307         * symfile.c (_initialize_symfile): Ditto.
12308         * printcmd.c (_initialize_printcmd): Ditto.
12309         * infcmd.c (_initialize_infcmd): Ditto.
12310         * corefile.c (_initialize_core): Ditto.
12311
12312 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12313
12314         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12315
12316 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12317
12318         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12319
12320 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12321
12322         * NEWS: Update headings, 5.2 has branched.
12323
12324 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12325
12326         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12327         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12328         (register_addr, REGISTER_RAW_SIZE): Likewise.
12329         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12330         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12331
12332 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12333
12334         * MAINTAINERS (x86-64): Add myself.
12335         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12336         changed value_ptr -> struct value *
12337
12338 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12339
12340         * configure.host (sparc64-*-freebsd): Add.
12341         * configure.tgt: Likewise.
12342         * config/sparc/fbsd.mh: New file.
12343         * config/sparc/fbsd.mt: Likewise.
12344         * config/sparc/nm-fbsd.h: Likewise.
12345         * config/sparc/tm-fbsd.h: Likewise.
12346
12347 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12348
12349         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12350         regformats/reg-s390x.dat.
12351
12352 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12353
12354         * utils.c: Add FIXME explaining true/false problem.
12355
12356 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12357
12358         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12359
12360 2002-02-28  Michael Chastain  <mec@shout.net>
12361
12362         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12363
12364 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12365
12366         * gdbserver/linux-s390-low.c: New file.
12367         * regformats/reg-s390.dat: New file.
12368         * regformats/reg-s390x.dat: New file.
12369         * gdbserver/configure.srv: Add S/390.
12370         * gdbserver/Makefile.in: Add S/390.
12371         * configure.tgt: Enable gdbserver for S/390.
12372
12373 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12374
12375         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12376         first line of the doc string for "info dos", except at the end of
12377         the sentence, since the short help stops at the first period.
12378
12379 2002-02-28  Jason Merrill  <jason@redhat.com>
12380
12381         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12382
12383 2002-02-27  Fred Fish  <fnf@redhat.com>
12384
12385         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12386         comment (dumy -> dummy).
12387
12388 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12389
12390         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12391
12392 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12393
12394       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12395
12396 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12397
12398         * gdbserver/acconfig.h: New file.
12399         * gdbserver/i387-fp.c: New file.
12400         * gdbserver/i387-fp.h: New file.
12401         * gdbserver/linux-x86-64.c: New file.
12402         * regformats/reg-x86-64.dat: New file.
12403         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12404         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12405         * gdbserver/configure.in: Add support for regsets.
12406         * gdbserver/config.in: Regenerate.
12407         * gdbserver/configure: Regenerate.
12408         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12409         * gdbserver/linux-low.h: New file.
12410         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12411         for regsets.
12412         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12413         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12414         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12415         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12416         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12417         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12418         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12419         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12420         * gdbserver/regcache.c (supply_register): New function.
12421         (supply_register_by_name): New function.
12422         (collect_register): New function.
12423         (collect_register_by_name): New function.
12424
12425 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12426
12427         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12428         (config.status): Add configure.srv dependency.
12429         (server_h): Add config.h dependency.
12430
12431 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12432
12433         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12434         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12435         * gdbserver/configure.srv: Change i386-*-linux* to use
12436         reg-i386-linux.o.
12437
12438 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12439
12440         * x86-64-tdep.c: Re-indent.  Update copyright date.
12441
12442 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12443
12444         From Michal Ludvig <mludvig@suse.cz>:
12445         * x86-64-tdep.c (value.h): Delete.
12446         (gdb_assert.h): Include.
12447         (x86_64_register_convert_to_virtual,
12448         x86_64_register_convert_to_raw ): Add check which lets only
12449         floating-point values to be converted.
12450         (value_push): Delete.
12451         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12452         (i386_gdbarch_init): Number of register_bytes fixed.
12453
12454 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12455
12456         * MAINTAINERS: Add x86-64 target.
12457
12458 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12459
12460         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12461         * osfsolib.c (solib_map_sections): Ditto.
12462         * irix5-nat.c (solib_map_sections): Ditto.
12463         * corelow.c (gdb_check_format): Ditto.
12464         * symfile.c (symfile_bfd_open): Ditto.
12465         * solib.c (solib_map_sections): Ditto.
12466         Fix PR gdb/354.
12467
12468 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12469
12470         * remote.c (_initialize_remote): By default, disable ``e'' and
12471         ``E'' step out-of-range packets.
12472
12473 2002-02-26  Andreas Schwab  <schwab@suse.de>
12474
12475         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12476         m68k_linux_frame_saved_pc.
12477         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12478         in_sigtramp.
12479         (SIGCONTEXT_PC_OFFSET): Remove.
12480         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12481         m68k_linux_sigtramp_saved_pc): New functions.
12482         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12483         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12484         (UCONTEXT_PC_OFFSET): Define.
12485         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12486         non-RT and RT signal trampolines.
12487
12488 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12489
12490         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12491         (TARGET_NBPG, STACK_END_ADDR): Delete
12492         (VARIABLES_INSIDE_BLOCK): Delete.
12493
12494 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12495
12496         * utils.c (perror_with_name): Make string parameter constant.
12497         (print_sys_errmsg): Ditto.
12498         (query): Ditto.
12499         * defs.h (perror_with_name): Update.
12500         (print_sys_errmsg): Update.
12501         (query): Update.
12502
12503 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12504
12505         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12506         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12507
12508 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12509
12510         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12511         if it already matches the current architecture from the exec file.
12512         Include arch-utils.h for gdbarch_info_init prototype.
12513         * Makefile.in (rs6000-nat.o): Update dependencies.
12514
12515 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12516
12517         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12518          list of exported variables.
12519
12520 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12521
12522         * gdbserver/configure.srv: New file.
12523         * gdbserver/configure.in: Use configure.srv instead
12524         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12525         from it.
12526         * gdbserver/configure: Regenerated.
12527         * gdbserver/terminal.h: New file.
12528         * gdbserver/Makefile.in: Update for configure changes.  Remove
12529         more unneeded include paths.
12530
12531 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12532
12533         From wiz at danbala:
12534         * config/sparc/tm-sp64.h: Fix grammar and typos.
12535         Fix PR gdb/287.
12536
12537 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12538
12539         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12540         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12541         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12542         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12543         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12544         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12545         * s390-tdep.c: Ditto.
12546         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12547         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12548         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12549         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12550         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12551         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12552         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12553         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12554         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12555         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12556         Fix PR gdb/378.
12557
12558 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12559
12560         * lin-thread.c: Delete file.
12561         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12562         to gdb_proc_service.h.
12563         * configure: Re-generate.
12564
12565         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12566         * serial.c (serial_open): Delete check for "ocd".
12567         Fix PR gdb/349.
12568
12569         * Makefile.in (linux-thread.o): Delete target.
12570         * linux-thread.c: Delete file.
12571
12572         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12573         renamed SH files to be consistent.
12574
12575         * symtab.c (sort_search_symbols): Use xfree.
12576
12577 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12578
12579         * arm-linux-tdep.c (arm_linux_init_abi): Register
12580         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12581         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12582         definition with undef, since we don't want the sysvr4 definition.
12583         (SKIP_TRAMPOLINE_CODE): Likewise.
12584
12585 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12586
12587         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12588
12589         * configure.in: (AC_CHECK_FUNCS) Added test for
12590         canonicalize_file_name Regenerated.
12591         * config.in, configure: Regenerated.
12592         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12593         defined use canonicalize_file_name.
12594
12595 2002-02-23  Michael Chastain  <mec@shout.net>
12596
12597         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12598
12599 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12600
12601         * README: Remove references to cygnus.com.
12602         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12603         dot com'' form.  Remove references to cygnus.com and sourceware.
12604
12605 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12606
12607         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12608         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12609         1003.1-2001 no longer allows "head -1".
12610         * gdb/Makefile.in (version.c): Likewise.
12611         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12612         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12613         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
12614
12615 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12616
12617         * cli/cli-decode.c (cmd_cfunc_eq): New function.
12618         * command.h (cmd_cfunc_eq): Declare.
12619         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12620
12621         * cli/cli-cmds.h (is_complete_command): Change parameter to a
12622         ``struct cmd_list_element *''.
12623         * cli/cli-cmds.c (is_complete_command): Update.  Use
12624         cmd_cfunc_eq.
12625         * top.c (execute_command): Pass the command to
12626         is_complete_command.
12627         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12628
12629 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12630
12631         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12632         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12633         architecture defines.
12634         * s390-tdep.c (s390_gdbarch_init): Likewise.
12635
12636 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12637
12638         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12639         (arm_linux_push_arguments): Likewise.
12640         (arm_linux_init_abi): Register them.  Also register linux-specific
12641         call_dummy_words.
12642         (find_minsym_and_objfile): Use strcmp, not STREQ.
12643         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12644         (arm_linux_call_dummy_words): Delete declaration.
12645         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12646         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12647         declarations.
12648         (LOWEST_PC): Delete.
12649
12650 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12651
12652         * maint.c (print_section_info): Do not prepend `0x' to filepos
12653         output, it will be handled by local_hex_string_custom.
12654
12655 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12656
12657         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12658         (store_newfpe_double, store_newfpe_extended, store_fpregister)
12659         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12660
12661 2002-02-22  Jim Blandy  <jimb@redhat.com>
12662
12663         Indicate that the bcache functions don't change the strings
12664         they're passed.
12665         * bcache.h (bcache, hash): Add `const' keywords to declarations.
12666         * bcache.c (bcache, hash): Add `const' keywords to definitions.
12667
12668 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
12669
12670         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12671
12672 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12673
12674         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12675         find the complete path to a loaded DLL.
12676
12677 2002-02-21  Fred Fish  <fnf@redhat.com>
12678
12679         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12680         that marks the end of the range of a function, enter a line number
12681         entry that has a line number of zero and a PC offset that matches
12682         the end of the function.  This starts a range of PC's for which no
12683         line number information is known.
12684         * symtab.c (find_pc_sect_line): If our best fit is in a range of
12685         PC's for which no line number info is found (line number is zero)
12686         then we didn't find any valid line information.
12687         * symtab.h: Document use of zero line number entry.
12688
12689 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
12690
12691         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12692         (have_ptrace_getvrregs): Define for run time checks.
12693         (gdb_vrregset_t): New type for Altivec register handling.
12694         (fetch_register, store_register): Fetch/store altivec register
12695         when needed.
12696         (fetch_altivec_register, store_altivec_register): New functions.
12697         (supply_vrregset, fill_vrregset): New functions.
12698         (fetch_altivec_registers, store_altivec_registers): New functions.
12699         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12700         registers as well.
12701
12702 2002-02-21  Jiri Smid  <smid@suse.cz>
12703
12704         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12705
12706 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12707
12708         * Makefile.in (armnbsd-nat.o): Update dependencies.
12709         * armnbsd-nat.c (supply_gregset): New function.  Common code to
12710         supply the integer register set.
12711         (supply_fparegset): New function.  Similar for FPA registers.
12712         (fetch_regs, fetch_fp_regs): Use them.
12713         (fetch_core_registers): Likewise.
12714         (fetch_elfcore_registers): New function.
12715         (arm_netbsd_elfcore_fns): New core-file type specification.
12716         (_initialize_arm_netbsd_nat): Register it.
12717
12718 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
12719
12720         * armnbsd-nat.c: Include gdbcore.h.
12721         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12722         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12723         'void' to declaration, to shut up ARI.
12724         (fetch_core_registers): Make static.  Rewrite using supply_register.
12725         (arm_netbsd_core_fns): New core-file type specification.
12726         (_initialize_arm_netbsd_nat): New function.
12727
12728 2002-02-21  Christopher Faylor  <cgf@redhat.com>
12729
12730         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12731         value.
12732
12733 2002-02-20  Christopher Faylor  <cgf@redhat.com>
12734
12735         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12736         fails.
12737
12738 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12739
12740         * jv-exp.y (parse_number): Change type of implicit longs
12741         to builtin_type_uint64.
12742
12743 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12744
12745         * gdbserver/linux-low.c (mywait): Change argument to waitpid
12746         to be an integer instead of a `union wait'.
12747
12748 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12749
12750         * mips-linux-nat.c: Call the operating system GNU/Linux.
12751         * mips-linux-tdep.c: Likewise.
12752         * mips-tdep.c: Likewise.
12753
12754 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12755
12756         Fix PR gdb/265.
12757         * jv-exp.y (parse_number): Handle 64-bit integers.
12758
12759 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12760
12761         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
12762         AC_STDC_HEADERS to AC_HEADER_STDC.
12763         * gdbserver/configure: Regenerated.
12764
12765 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12766
12767         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12768         is defined.
12769         * sparc-tdep.c (get_longjmp_target): Likewise.
12770
12771 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
12772
12773         * News: Add news about ARM and Multi-arch.  Mention the new target
12774         arm*-*-netbsd*.
12775
12776 2002-02-19  Jim Blandy  <jimb@redhat.com>
12777
12778         * stabsread.c (error_type_complaint): Improve error message.
12779
12780 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
12781
12782         * gdbserver/README: Update documentation.
12783         * gdbserver/configure.in: Update configury to match documentation.
12784         * gdbserver/Makefile.in: Likewise.
12785         * gdbserver/configure: Regenerated.
12786         * gdbserver/aclocal.m4: New file, generated by aclocal.
12787         * gdbserver/config.in: New file, generated by autoheader.
12788
12789 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12790
12791         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12792         armnbsd-nat.c.
12793
12794 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12795
12796         * arm-tdep.h (enum arm_float_model): New enum.
12797         (struct gdbarch_tdep): Add fp_model.
12798         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
12799         up floating-point conversions until we know the floating-point model
12800         in use by the inferior.  Don't complain about being unable to
12801         determine the ABI of the inferior when we don't have one.
12802         (arm_extract_return_value): Support different floating-point models.
12803         (arm_store_return_value): Likewise.
12804         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12805         ARM_FLOAT_SOFT.
12806         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12807
12808 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12809
12810         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12811         of ``current_gdbarch''.
12812
12813 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12814
12815         * armnbsd-nat.c : ANSIfy all function declarations.
12816         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12817         (fetch_inferior_registers): Re-implement in terms of above.
12818         (store_register, store_regs, store_fp_register, store_fp_regs): New.
12819         (store_inferior_registers): Re-implement in terms of above.
12820
12821 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12822
12823         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12824         kernel.
12825         * arm-linux-tdep.c: Likewise.
12826         * config/arm/tm-linux.h: Likewise.
12827
12828 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12829
12830         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12831         * config/arm/nbsd.mt (TM_FILE): Delete.
12832         * config/arm/tm-nbsd.h: Delete.
12833
12834 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12835
12836         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12837         Initialize CALL_DUMMY_LENGTH.
12838
12839 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
12840
12841         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12842         function.
12843         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12844         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12845         defines one thing and that is incorrect for this port.
12846         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12847
12848 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12849
12850         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12851
12852 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
12853
12854         * win32-nat.c (display_selector): New function. Displays information
12855         about the information returned by GetThreadSelectorEntry API function.
12856         (display_selectors): New function. Displays the infomation of
12857         the selector given as argument, or of CS, DS ans FS selectors
12858         if no argument is given.
12859         ( _initialize_inftarg): Add "w32" as info prefix command.
12860         Add "info w32 selector" as command calling display_selectors.
12861
12862 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
12863
12864         * i386-tdep.c (get_longjmp_target): Fix compilation failure
12865         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12866         if not defined.
12867
12868 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12869
12870         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12871
12872 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12873
12874         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12875         (arm_fix_call_dummy): Call it.
12876         (arm_call_dummy_breakpoint_offset): Delete.
12877         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12878         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12879
12880 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
12881
12882         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12883         Default to func_frame_chain_valid.
12884         * gdbarch.h, gdbarch.c: Re-generate.
12885         * frame.h (FRAME_CHAIN_VALID): Delete definition.
12886
12887 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
12888
12889         * ppc-linux-nat.c: Update copyright.
12890         (fetch_register, store_register): Add tid parameter, don't compute
12891         tid here.
12892         (fetch_ppc_registers, store_ppc_registers): Add tid
12893         parameter. Pass it along to callees.
12894         (fetch_inferior_registers, store_inferior_registers): Compute tid
12895         here, and pass it to calleed functions.
12896         (fill_gregset, supply_fpregset): Clean up formatting.
12897
12898 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12899
12900         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12901         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12902
12903 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
12904
12905         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12906         * gdbarch.c gdbarch.h: Regenerate.
12907         * breakpoint.c (create_longjmp_breakpoint): Always compile this
12908         function.
12909         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12910         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12911         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12912
12913         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12914         * arm-tdep.c (arm_get_longjmp_target): New function.
12915         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
12916         this to a positive value register arm_get_longjmp_target as the
12917         longjmp handler.
12918         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12919         (arm_linux_init_abi): Set up longjmp description in tdep.
12920         * armnbsd-nat.c (get_longjmp_target): Delete.
12921         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12922         description in tdep.
12923         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12924         (get_longjmp_target): Delete declaration.
12925         (GET_LONGJMP_TARGET): Delete.
12926         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12927         (GET_LONGJMP_TARGET): Delete.
12928
12929 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
12930
12931         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
12932         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12933         of ``current_gdbarch''.
12934
12935 2002-02-17  Tom Tromey  <tromey@redhat.com>
12936
12937         * cli/cli-cmds.c (compare_strings): New function.
12938         (complete_command): Only print each unique item once.
12939         * completer.h (complete_line): Declare.
12940         * completer.c (complete_line): New function.
12941         (line_completion_function): Use it.
12942
12943 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12944
12945         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12946         * gdbarch.h, gdbarch.c: Re-generate.
12947
12948 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12949
12950         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12951
12952 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
12953
12954         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12955         * valops.c (value_arg_coerce): Don't take the address of a reference
12956         to convert an argument to a reference.
12957
12958 2002-02-15  Christopher Faylor  <cgf@redhat.com>
12959
12960         * win32-nat.c (get_image_name): New function.
12961         (handle_load_dll): Use get_image_name function.
12962         (get_child_debug_event): Avoid registering debug events until possibly
12963         execed process is started.
12964         (child_create_inferior): Allow invocation via shell so that command
12965         line redirection, etc.  works ok.
12966         (_initialize_inftarg): Add new command: "set shell" to control whether
12967         a shell is used to start a process.
12968
12969 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12970
12971         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12972         instead of find_register_by_number.
12973         (cannot_store_register): Likewise.
12974
12975 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
12976
12977         * dwarf2read.c: Replace fprintf (stderr, ...) by
12978         fprintf_unfiltered (gdb_stderr, ...).
12979
12980 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
12981
12982         * gdbserver/gdbserver.1: Document --attach.
12983
12984 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
12985
12986         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12987         descriptions.
12988         * arm-tdep.c (arm_default_arm_le_breakpoint)
12989         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12990         (arm_default_thumb_be_breakpoint): New.  Initialize them from
12991         traditional breakpoint defines.
12992         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12993         (arm_gdbarch_init): Initialize new breakpoint variables.
12994         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12995         (arm_linux_init_abi): Initialize linux-specific breakpoint.
12996         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12997         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12998         code out to ...
12999         (arm_netbsd_init_abi_common): ... here; new function.
13000         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13001         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13002         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13003         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13004
13005 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13006
13007         * arm-tdep.h (enum arm_abi): New enum.
13008         (struct gdbarch_tdep): New structure.
13009         (LOWEST_PC): Provide a default.
13010         (arm_gdbarch_register_os_abi): Declare new function.
13011         * arm-tdep.c (arm_abi_names): New array.
13012         (process_note_abi_tag_sections): New function.
13013         (get_elfosabi): New function.
13014         (arm_gdbarch_register_os_abi): New function.
13015         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13016         support for that ABI has been built in, then call the appropriate
13017         configuration routine.  Use gdbarch_num_regs() to get the number
13018         of registers.
13019         (arm_dump_tdep): New function.
13020         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13021         place-holder functions.
13022         (_initialize_arm_tdep): Register them.
13023         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13024
13025         * armnbsd-tdep.c: New file.
13026         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13027         * config/arm/nbsd.mt (TDEPFILES): Add it.
13028         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13029
13030         * armnbsd-nat.c: Include regcache.h.
13031         * Makefile.in (armnbsd-nat.o): Update dependency list.
13032
13033         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13034
13035 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13036
13037         * gdbserver/Makefile.in: Fix typos in target rules.
13038
13039 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13040
13041         Fix part of PR gdb/267.
13042         * linespec.c (find_methods): Handle constructors specially for now.
13043
13044 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13045
13046         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13047         handling.
13048         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13049         standard_coerce_float_to_double().
13050
13051 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13052
13053         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13054         GDBINIT_FILENAME.
13055
13056 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13057
13058         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13059         find_variant_by_name, because it confuses the multiarch
13060         framework. Return NULL if there isn't an architecture with the
13061         user supplied name, instead of forcing a different one without
13062         recording the change with the multiarch machinery.
13063         (find_variant_by_name): Delete.
13064
13065 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13066
13067         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13068         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13069
13070 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13071
13072         * stack.c (print_frame_info_base): When calling
13073         print_frame_info_listing_hook, set current_source_symtab.
13074
13075 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13076
13077         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13078         and remove unused $(INCLUDE_DIR).
13079         Add regcache.c to OBS.
13080         Add generated register protocol files to clean target.
13081         Update dependencies for new objects, obsolete old target code.
13082
13083         * gdbserver/linux-low.c: Remove all platform-specific code to
13084         new files.  Remove various dead code.  Update to use regcache
13085         functionality.
13086         * gdbserver/remote-utils.c (fromhex): Add return statement
13087         to quiet warning.
13088         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13089         constant.
13090         (input_interrupt): Add integer parameter to match prototype
13091         of a signal handler.
13092         (outreg): Use register_data ().
13093         (prepare_resume_reply): Use gdbserver_expedite_regs.
13094         * gdbserver/server.c (main): Dynamically allocate own_buf because
13095         PBUFSIZ is no longer constant.  Use registers_to_string () and
13096         registers_from_string ().
13097         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13098         for error (), fatal (), and warning ().  Update definition of
13099         PBUFSIZ to use regcache functionality.  Add include guard.
13100         * gdbserver/utils.c (fatal): Add missing ``const''.
13101         (warning): New function.
13102
13103         * regformats/regdat.sh: Include "regcache.h" in generated files.
13104         Provide init_registers () function.
13105         * regformats/regdef.h: Add prototype for set_register_cache ().
13106         Add include guard.
13107
13108         * gdbserver/linux-arm-low.c: New file.
13109         * gdbserver/linux-i386-low.c: New file.
13110         * gdbserver/linux-ia64-low.c: New file.
13111         * gdbserver/linux-m68k-low.c: New file.
13112         * gdbserver/linux-mips-low.c: New file.
13113         * gdbserver/linux-ppc-low.c: New file.
13114         * gdbserver/linux-sh-low.c: New file.
13115
13116         * gdbserver/regcache.c: New file.
13117         * gdbserver/regcache.h: New file.
13118
13119         * gdbserver/low-linux.c: Removed obsolete file.
13120
13121 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13122
13123         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13124         * config/i386/linux.mt: Likewise.
13125         * config/ia64/linux.mt: Likewise.
13126         * config/m68k/linux.mh: Likewise.
13127         * config/powerpc/linux.mh: Likewise.
13128         * config/mips/linux.mt: Likewise.
13129
13130         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13131
13132         * config/i386/i386lynx.mh: Mark gdbserver variables
13133         as (currently) obsolete for this target.
13134         * config/i386/nbsd.mt: Likewise.
13135         * config/i386/nbsdelf.mt: Likewise.
13136         * config/m32r/m32r.mt: Likewise.
13137         * config/m68k/m68klynx.mh: Likewise.
13138         * config/m68k/nbsd.mt: Likewise.
13139         * config/m68k/sun3os4.mh: Likewise.
13140         * config/mips/vr5000.mt: Likewise.
13141         * config/ns32k/nbsd.mt: Likewise.
13142         * config/pa/hppabsd.mh: Likewise.
13143         * config/pa/hppaosf.mh: Likewise.
13144         * config/powerpc/nbsd.mt: Likewise.
13145         * config/rs6000/rs6000lynx.mh: Likewise.
13146         * config/s390/s390.mt: Likewise.
13147         * config/s390/s390x.mt: Likewise.
13148         * config/sparc/sparclynx.mh: Likewise.
13149         * config/sparc/sun4os4.mh: Likewise.
13150         * config/i386/x86-64linux.mt: Likewise.
13151         * config/sparc/linux.mh: Likewise.
13152
13153 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13154
13155         * configure.tgt: Configure gdbserver only for known working
13156         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13157         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13158         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13159         * configure: Regenerated.
13160
13161 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13162
13163         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13164
13165         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13166         (default_gcore_mach): Just return 0, work around a problem in bfd.
13167         (default_gcore_target): OK to return NULL if exec_bfd is null.
13168         (make_mem_sec): Use a cast, avoid a warning.
13169
13170         * procfs.c (find_memory_regions_callback): Use a cast instead of
13171         calling host_pointer_to_address (which complains if
13172         sizeof (host pointer) != sizeof (target pointer)).
13173         (procfs_make_note_section): Avoid overflow in psargs string.
13174
13175         * procfs.c (procfs_make_note_section): Make the default
13176         implementation return an error.
13177
13178 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13179
13180         * procfs.c (procfs_make_note_section): Provide a default definition
13181         (for alpha-dec-osf4.0f). Fix typos.
13182
13183 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13184
13185         * linux-proc.c: Add include of regcache.h.
13186         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13187
13188 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13189
13190         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13191         * memattr.c (create_mem_region): Disallow useless empty region.
13192         Regions are half-open intervals, so allow [A..B) [B..C) as
13193         non-overlapping.
13194
13195 2002-02-13  Michael Chastain <mec@shout.net>
13196
13197         * defs.h: Kill CONST_PTR.
13198         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13199         * c-lang.c (c_builtin_types): Likewise.
13200         * ch-lang.c (ch_builtin_types): Likewise.
13201         * f-lang.c (f_builtin_types): Likewise.
13202         * language.c (unknown_builtin_types): Likewise.
13203         * m2-lang.c (m2_builtin_types): Likewise.
13204         * p-lang.c (pascal_builtin_types): Likewise.
13205         * scm-lang.c (c_builtin_types): Likewise.
13206
13207 2002-02-13  Keith Seitz  <keiths@redhat.com>
13208
13209         * arm-tdep.h (arm_get_next_pc): Add declaration.
13210
13211 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13212
13213         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13214         with other related struct-returning functions.
13215         (arm_extract_struct_value_address): New function.
13216         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13217         initialize float_format, double_format and long_double_format as
13218         appropriate to the endianness of the target.
13219         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13220         (arm_use_struct_convention): Delete declaration.
13221         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13222
13223 2002-02-13  Keith Seitz  <keiths@redhat.com>
13224
13225         * defs.h (core_addr_to_string_nz): New function.
13226
13227 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13228
13229         Apply missing bits of 2002-01-15 patch.
13230         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13231         (fill_fpregset): Use i387_fill_fsave.
13232
13233 2002-02-12  Keith Seitz  <keiths@redhat.com>
13234
13235         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13236         (core_addr_to_string_nz): New function.
13237
13238 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13239
13240         * arm-linux-nat.c: Really include arm-tdep.h.
13241         * config/arm/tm-linux.h (struct type, struct value): Declare.
13242
13243 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13244
13245         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13246         (gcore section): Ifdef for Solaris and Unixware only.
13247         (procfs_do_thread_registers): Unixware needs one lwpstatus
13248         per thread (not one prstatus or pstatus).
13249         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13250         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13251         once before iterating over threads.
13252
13253 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13254
13255         * arm-tdep.h: New file.
13256         * arm-tdep.c: Include arm-tdep.h.
13257         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13258         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13259         (arm_print_float_info, arm_register_type, convert_to_extended)
13260         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13261         (arm_extract_return_value, arm_register_name): Make static.
13262         (arm_software_single_step): Similarly.  Fix types in declaration.
13263         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13264         (arm_store_return_value, arm_store_struct_return): New functions.
13265         (arm_gdbarch_init): Register the above functions.  Also register
13266         call_dummy_start_offset, sizeof_call_dummy_words,
13267         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13268         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13269         max_register_virtual_size, register_size.  Set up
13270         prologue_cache.saved_regs here, rather than ...
13271         (_initialize_arm_tdep): ... here.
13272         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13273         declarations.
13274         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13275         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13276         (arm_print_float_info, arm_register_type, convert_to_extended)
13277         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13278         (arm_extract_return_value, arm_register_name): Delete declarations.
13279         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13280         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13281         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13282         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13283         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13284         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13285         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13286         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13287         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13288         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13289         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13290         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13291         interface.
13292         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13293         * remote-rdi.c remote-rdp.c: Likewise.
13294         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13295         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13296         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13297         definition.
13298
13299         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13300         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13301         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13302         from non-ARM_ prefixed definitions.
13303         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13304         all uses of above.
13305         * remote-rdi.c remote-rdp.c: Likewise.
13306         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13307
13308 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13309
13310         * arm-tdep.c (arm_frameless_function_invocation)
13311         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13312         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13313         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13314         (arm_pop_frame, arm_get_next_pc): Make static.
13315         (arm_gdbarch_init): Register above in gdbarch structure.
13316         (arm_read_fp): Renamed from arm_target_read_fp.
13317         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13318         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13319         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13320         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13321         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13322         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13323         (arm_pc_is_thumb_dummy): Delete declarations.
13324         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13325         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13326         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13327         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13328
13329 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13330
13331         * symtab.c (compare_search_syms): New function.
13332         (sort_search_symbols): New function.
13333         (search_symbols): Sort symbols after searching rather than
13334         before.
13335
13336 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13337
13338         * NEWS: Linux -> GNU/Linux.
13339
13340 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13341
13342         * gdbarch.sh: For for level one methods, disallow a definition
13343         when partially multi-arched.  Add comments explaining rationale.
13344         * gdbarch.h: Re-generate.
13345
13346 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13347
13348         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13349         multi-arch partial.
13350
13351 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13352
13353         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13354         field.  Use diff -u.
13355         * gdbarch.c: Re-generate.
13356
13357 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13358
13359         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13360         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13361         partial.
13362
13363 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13364
13365         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13366         multi-arch partial.
13367         (PUSH_ARGUMENTS): Switch to using predefault.
13368         * gdbarch.c: Regenerate.
13369
13370 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13371
13372         * valops.c (PUSH_ARGUMENTS): Delete definition.
13373         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13374         partial.  Default to default_push_arguments.
13375         * gdbarch.h, gdbarch.c: Regenerate.
13376
13377 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13378
13379         * defs.h (throw_exception): Rename return_to_top_level.  Update
13380         comments.
13381         * utils.c (error_stream, internal_verror, quit): Ditto.
13382         * top.c (throw_exception, catcher): Ditto.
13383         * sparclet-rom.c (sparclet_load): Ditto.
13384         * remote.c (interrupt_query, minitelnet): Ditto.
13385         * remote-sds.c (interrupt_query): Ditto.
13386         * remote-mips.c (mips_error, mips_kill): Ditto.
13387         * ocd.c (interrupt_query): Ditto.
13388         * monitor.c (monitor_interrupt_query): Ditto.
13389         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13390         * target.h: Update comment.
13391
13392         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13393
13394 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13395
13396         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13397         default_double_format.
13398         * gdbarch.h, gdbarch.c: Re-generate.
13399         * findvar.c (floatformat_unknown): Delete variable definition.
13400         * doublest.h (floatformat_unknown): Delete variable declaration.
13401
13402 2002-02-09  Jim Blandy  <jimb@redhat.com>
13403
13404         * stabsread.c (read_type): Add code to parse Sun's syntax for
13405         prototyped function types.
13406
13407 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13408
13409         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13410         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13411
13412 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13413
13414         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13415         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13416         now _initialize_xcoffsolib gets called again and overrides the
13417         commands from solib.c in a native configuration.
13418
13419 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13420
13421         * doublest.c (store_typed_floating): Don't try to return a value.
13422         Fixes PR gdb/290.
13423
13424 2002-02-08  Jim Blandy  <jimb@redhat.com>
13425
13426         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13427         is prototyped and has no arguments, print its argument list as
13428         `(void)'.
13429
13430 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13431
13432         * MAINTAINERS (write-after-approval): Add myself.
13433         (paper-trail): I've escaped!
13434
13435 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13436
13437         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13438         changes.
13439         (_initialize_check_for_gdb_ini): Ditto.
13440
13441 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13442
13443         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13444         xaprintf -> xasprintf.
13445
13446 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13447
13448         * win32-nat.c: Remove use of printf and sprintf functions.
13449
13450 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13451
13452         * arm-tdep.c (arm_frame_chain_valid): Make static.
13453         (arm_push_arguments): Likewise.
13454         (arm_gdbarch_init): New function.
13455         (_initialize_arm_tdep): Call it.
13456         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13457         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13458         (FRAME_CHAIN_VALID): Delete.
13459         (arm_frame_chain_valid): Delete declaration.
13460         (PUSH_ARGUMENTS): Delete.
13461         (arm_push_arguments): Delete declaration.
13462         (CALL_DUMMY_P): Delete.
13463
13464 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13465             Corinna Vinschen  <vinschen@redhat.com>
13466
13467         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13468         on builtin float types.
13469
13470 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13471
13472         * utils.c: Include <curses.h> before "bfd.h".
13473         * tui/tui-hooks.c: Likewise.
13474         * tui/tui.c: Likewise.
13475         * tui/tuiCommand.c: Likewise.
13476         * tui/tuiData.c: Likewise.
13477         * tui/tuiDataWin.c: Likewise.
13478         * tui/tuiDisassem.c: Likewise.
13479         * tui/tuiGeneralWin.c: Likewise.
13480         * tui/tuiIO.c: Likewise.
13481         * tui/tuiLayout.c: Likewise.
13482         * tui/tuiRegs.c: Likewise.
13483         * tui/tuiSource.c: Likewise.
13484         * tui/tuiSourceWin.c: Likewise.
13485         * tui/tuiStack.c: Likewise.
13486         * tui/tuiWin.c: Likewise.
13487
13488 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13489
13490         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13491         to include space for pseudoregs as well. Update loops accordingly.
13492         (sh_fp_frame_init_saved_regs): Ditto.
13493         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13494
13495 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13496
13497         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13498         Add Richard Earnshaw to Arm maintainers.
13499
13500 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13501
13502         * defs.h (warning_begin): Delete declaration.
13503
13504         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13505         Delete macro.
13506
13507 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13508
13509         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13510         Logic bug, remove misplaced else.
13511
13512 2002-02-07  Klee Dienes  <klee@apple.com>
13513
13514         * fork-inferior.c (fork_inferior): Add '!' to the list of
13515         characters that need to be quoted when building a string for the
13516         shell.  Quote '!' specifically with a backslash, since CSH chokes
13517         when trying to evaluate "str!str".
13518
13519 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13520
13521         * rdi-share/host.h: Only provide a typedef for bool if it is not
13522         defined.
13523
13524 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13525
13526         * breakpoint.h (enum bptype): Add new overlay event bp type.
13527         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13528
13529         * breakpoint.c (create_internal_breakpoint): New function.
13530         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13531         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13532         (create_thread_event_breakpoint): Ditto.
13533         (create_solib_event_breakpoint): Ditto.
13534         (create_overlay_event_breakpoint): New function.
13535         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13536         (update_breakpoints_after_exec): Delete and re-initialize
13537         overlay event breakpoints after an exec.  Add FIXME comment
13538         about longjmp breakpoint.
13539         (print_it_typical): Ignore overlay event breakpoints.
13540         (print_one_breakpoint): Ditto.
13541         (mention): Ditto.
13542         (bpstat_what): Do not stop for overlay event breakpoints.
13543         (delete_breakpoint): Don't delete overlay event breakpoints.
13544         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13545         (breakpoint_re_set): Re-create overlay event breakpoint.
13546
13547         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13548         (overlay_manual_command): Disable overlay breakpoints.
13549         (overlay_off_command): Disable overlay breakpoints.
13550
13551 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13552
13553         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13554         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13555         to here from config/tm-arm.h.
13556         (coff_sym_is_thumb): Make static.
13557         (arm_elf_make_msymbol_special): New function.
13558         (arm_coff_make_msymbol_special): New function.
13559         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13560         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13561         (coff_sym_is_thumb): Delete declaration.
13562         (arm_elf_make_msymbol_special): Declare.
13563         (arm_coff_make_msymbol_special): Declare.
13564         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13565         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13566
13567 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13568
13569         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13570
13571 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13572
13573         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13574         * gdbarch.c gdbarch.h: Regenerate.
13575         * arch-utils.c (default_print_float_info): New function.
13576         * arch-utils.h (default_print_float_info): Prototype it.
13577         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13578         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13579         (PRINT_FLOAT_INFO): Document it.
13580
13581         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13582         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13583         (PRINT_FLOAT_INFO): Define.
13584
13585 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13586
13587         * win32-nat.c (_initialize_check_for_gdb_ini):
13588         Add typecast to sprintf argument to suppress a warning.
13589
13590 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13591
13592         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13593         to allow easier handling of pass state.
13594         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13595         that gives exception name and address.
13596         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13597         and set last_sig value to ourstatus->value.sig. Some missing
13598         exceptions added.
13599         (child_continue): Correctly report continue_status.
13600         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13601         TARGET_SIGNAL_0 (new default value).
13602         (child_resume): consider sig argument passed to decide if
13603         the exception should be passed to debuggee or not.
13604
13605 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13606
13607         * regcache.c (fetch_register): Call target_fetch_register
13608         only if we don't call FETCH_PSEUDO_REGISTER.
13609         (store_register): Call target_store_register only if we
13610         don't call STORE_PSEUDO_REGISTER.
13611
13612 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
13613
13614         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13615         ELF_MAKE_MSYMBOL_SPECIAL.
13616         * gdbarch.c, gdbarch.h: Regenerate.
13617         * arch-utils.c (default_make_msymbol_special): New function.
13618         * arch-utils.h (default_make_msymbol_special): Export.
13619         * elfread.c (elf_symtab_read): Compile use of
13620         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13621         multiarched.
13622         * coffread.c (coff_symtab_read): Ditto, for
13623         COFF_MAKE_MSYMBOL_SPECIAL.
13624
13625 2002-02-05  Jim Blandy  <jimb@redhat.com>
13626
13627         * solib-svr4.c (svr4_truncate_ptr): New function.
13628         (svr4_relocate_section_addresses): Do the address arithmetic with
13629         the appropriate truncation for target addresses, even when
13630         CORE_ADDR is larger than a target address.
13631
13632 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13633
13634         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13635         to (int *).
13636
13637 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13638
13639         * gdbserver/linux-low.c (kill_inferior): Remove commented out
13640         code.
13641
13642 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13643
13644         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13645
13646 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13647
13648         * gdbserver/linux-low.c: Remove unused include files.
13649
13650 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13651
13652         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13653         (read_inferior_memory): Use it.
13654         (write_inferior_memory): Likewise.
13655
13656 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13657
13658         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13659         grubbing through sys_errlist.
13660
13661 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
13662
13663         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13664
13665 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13666         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13667
13668 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
13669
13670         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13671         (do_sfunc, set_cmd_sfunc): New functions.
13672
13673         * command.h (struct cmd_list_element): Add field func.
13674         * cli/cli-decode.h (struct cmd_list_element): Ditto.
13675         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13676         * cli/cli-decode.h: Ditto.
13677
13678         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13679         (help_all, help_cmd_list): Ditto.
13680         (find_cmd, complete_on_cmdlist): Ditto.
13681         * top.c (execute_command): Ditto.
13682
13683         * cli/cli-setshow.c (do_setshow_command): Call func instead of
13684         function.sfunc.
13685
13686         * infcmd.c (notice_args_read): Fix function signature.
13687
13688         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13689         * cli/cli-decode.c (add_set_cmd): Ditto.
13690         * utils.c (initialize_utils): Ditto.
13691         * maint.c (_initialize_maint_cmds): Ditto.
13692         * infrun.c (_initialize_infrun): Ditto.
13693         * demangle.c (_initialize_demangler): Ditto.
13694         * remote.c (add_packet_config_cmd): Ditto.
13695         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13696         * cris-tdep.c (_initialize_cris_tdep): Ditto.
13697         * proc-api.c (_initialize_proc_api): Ditto.
13698         * kod.c (_initialize_kod): Ditto.
13699         * valprint.c (_initialize_valprint): Ditto.
13700         * top.c (init_main): Ditto.
13701         * infcmd.c (_initialize_infcmd): Ditto.
13702         * corefile.c (_initialize_core): Ditto.
13703         * arm-tdep.c (_initialize_arm_tdep): Ditto.
13704         * arch-utils.c (initialize_current_architecture): Ditto.
13705         (_initialize_gdbarch_utils): Ditto.
13706         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13707
13708         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13709         * wince.c (_initialize_inftarg): Ditto.
13710         * symfile.c (_initialize_symfile): Ditto.
13711         * mips-tdep.c (_initialize_mips_tdep): Ditto.
13712         * language.c (_initialize_language): Ditto.
13713         * arc-tdep.c (_initialize_arc_tdep): Ditto.
13714
13715 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13716
13717         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13718
13719 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13720
13721         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13722         Add rules for building the register data files.
13723
13724 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13725
13726         * regformats/regdat.sh: Add braces to the definition of
13727         expedite_regs_${arch}.
13728
13729 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
13730
13731         * regformats/regdef.h (struct reg): Add comment describing the
13732         requirements for offset and size fields.
13733
13734 2002-02-04  Andreas Schwab  <schwab@suse.de>
13735
13736         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13737         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13738
13739 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
13740
13741         * gdbarch.sh (copyright): Update years in generated header.
13742         (SMASH_TEXT_ADDRESS): Add rule.
13743         * gdbarch.h, gdbarch.c: Re-generate.
13744         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13745         * dbxread.c: Likewise.
13746         * dwarfread.c: Likewise.
13747         * elfread.c: Likewise.
13748         * somread.c: Likewise.
13749
13750         * arm-tdep.c (arm_smash_text_address): New function.
13751         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13752
13753 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
13754
13755         Add support for hardware watchpoints on win32 native.
13756         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13757         CONTEXT_DEBUG_REGISTERS.
13758         (dr variable): New variable. Static array containing a local copy
13759         of debug registers.
13760         (debug_registers_changed): New variable.  Reflects when debug registers
13761         are changed and need to be written to inferior.
13762         (debug_registers_used): New variable. Reflects when any debug register
13763         was set, used when new threads are created.
13764         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13765         i386-nat code.
13766         (thread_rec): Set dr array if id is the thread of current_event .
13767         (child_continue, child_resume): Change the debug registers for all
13768         threads if debug_registers_changed.
13769         (child_add_thread): Change the debug registers if debug_registers_used.
13770         * config/i386/cygwin.mh: Add use of i386-nat.o file.
13771         Link nm.h to new nm-cygwin.h file.
13772         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13773         of hardware registers.
13774
13775 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
13776
13777         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13778         Restore behavour broken by 2002-01-20 Andrew Cagney
13779         <ac131313@redhat.com> IEEE_FLOAT removal.
13780
13781 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13782
13783         * c-valprint.c (c_val_print): Pass a proper valaddr to
13784         cp_print_class_method.
13785         * valops.c (search_struct_method): If there is only one method
13786         and args is NULL, return that method.
13787
13788 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13789
13790         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13791         accessing tag_name directly.
13792
13793 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13794
13795         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13796         of accessing tag_name directly.
13797
13798 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
13799
13800         PR gdb/280
13801         * gdbtypes.c (replace_type): New function.
13802         * gdbtypes.h (replace_type): Add prototype.
13803         * stabsread.c (read_type): Use replace_type.
13804
13805 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
13806
13807         * Makefile.in (memattr.o): Add missing dependencies rule.
13808
13809 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13810
13811         * breakpoint.c (break_at_finish_command): Really export.
13812         (break_at_finish_at_depth_command): Ditto.
13813         (tbreak_at_finish_command): Ditto.
13814         * hppa-tdep.c: Include completer.h.
13815         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13816         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13817
13818 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13819
13820         * utils.c (do_write): New function.
13821         (error_stream): Rewrite combining the code from error_begin and
13822         verror.
13823         (verror): Rewrite using error_stream.
13824         (error_begin): Delete function.
13825
13826 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13827
13828         * utils.c (error_begin): Make static.
13829         * defs.h (error_begin): Delete declaration.
13830
13831         * linespec.c (cplusplus_error): Replace cplusplus_hint.
13832         (decode_line_1): Use cplusplus_error instead of error_begin,
13833         cplusplus_hint and return_to_top_level.
13834         * coffread.c (coff_symfile_read): Use error instead of error_begin
13835         and return_to_top_level.
13836         * infrun.c (default_skip_permanent_breakpoint): Ditto.
13837
13838 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13839
13840         * language.h (type_error, range_error): Make string parameter
13841         constant.
13842         * language.c (warning_pre_print): Delete extern declaration.
13843         * dwarfread.c (warning_pre_print): Ditto.
13844         * language.c (type_error, range_error): Rewrite to use verror and
13845         vwarning instead of warning_begin.
13846
13847 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13848
13849         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13850         (set_ignore_count): Move misplaced comment back where it belongs.
13851
13852 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
13853
13854         * command.h (NO_FUNCTION): Delete macro.
13855         * cli/cli-decode.h (NO_FUNCTION): Ditto.
13856         * top.c (execute_command): Replace NO_FUNCTION with NULL.
13857         * tracepoint.c (_initialize_tracepoint): Ditto.
13858         * cli/cli-decode.c (add_set_cmd): Ditto.
13859         * cli/cli-cmds.c (init_cli_cmds): Ditto.
13860
13861 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13862
13863         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13864         Update ``this'' pointer when calling virtual functions.
13865
13866 2002-02-01  Michael Snyder  <msnyder@redhat.com>
13867
13868         * breakpoint.c (create_temp_exception_breakpoint): Delete.
13869         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13870
13871 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
13872
13873         * regformats/reg-arm.dat: New file.
13874         * regformats/reg-i386.dat: New file.
13875         * regformats/reg-ia64.dat: New file.
13876         * regformats/reg-m68k.dat: New file.
13877         * regformats/reg-mips.dat: New file.
13878         * regformats/reg-ppc.dat: New file.
13879         * regformats/reg-sh.dat: New file.
13880         * regformats/regdef.h: New file.
13881         * regformats/regdat.sh: New file.
13882
13883 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
13884
13885         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13886         (arm_frame_args_address, arm_frame_locals_address): New functions.
13887         (arm_frame_num_args): New function.
13888         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13889         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13890         (FRMA_NUM_ARGS): Call arm_frame_num_args.
13891
13892 2002-01-31  Michael Snyder  <msnyder@redhat.com>
13893
13894         * breakpoint.c (break_at_finish_command): Export.
13895         (break_at_finish_at_depth_command): Export.
13896         (tbreak_at_finish_command): Export.
13897         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13898         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13899         "txbreak" commands, which are HPPA specific.
13900
13901         * printcmd.c (disassemble_command): Remove an ancient
13902         artifact of an old merge.
13903
13904         * symfile.h (enum overlay_debugging_state):
13905         Define enum constant values for overlay mode.
13906         * symfile.c (overlay_debugging): Use enums instead of literals.
13907         (overlay_is_mapped, overlay_auto_command,
13908         overlay_manual_command): Ditto.
13909
13910         * breakpoint.c (insert_breakpoints, remove_breakpoint,
13911         breakpoint_here_p, breakpoint_inserted_here_p,
13912         breakpoint_thread_match, bpstat_stop_status,
13913         describe_other_breakpoints, check_duplicates, clear_command):
13914         Coding standard fixes.
13915
13916         * target.c (target_xfer_memory): Add spaces, coding standard.
13917         (do_xfer_memory): Add missing line to trust-readonly
13918         code: check bfd SEC_READONLY flag for section.
13919
13920 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
13921
13922         * PROBLEMS: Fix typo, 5.1->5.1.1.
13923
13924 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
13925
13926         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13927         data symbols, since we search based on textlow and texthigh.
13928         (find_pc_sect_symtab): Likewise.
13929
13930 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13931
13932         * defs.h (vwarning): Declare.
13933         * utils.c (vwarning): New function.
13934         (warning): Call vwarning.
13935         (warning_begin): Delete function.
13936
13937         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13938         the warning message.
13939         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13940         warning_begin.
13941
13942 2002-01-30  Michael Snyder  <msnyder@redhat.com>
13943
13944         * NEWS: Mention "set trust-readonly-sections" command.
13945         Mention generate-core-file command.
13946
13947 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13948
13949         * target.c: New command, "set trust-readonly-sections on".
13950         (do_xfer_memory): Honor the suggestion to trust readonly sections
13951         by reading them from the object file instead of from the target.
13952         (initialize_targets): Register command "set trust-readonly-sections".
13953
13954 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13955
13956         * parse.c (target_map_name_to_register): Simplify, search regs and
13957         pseudo-regs using a single loop.
13958
13959 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
13960
13961         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13962
13963 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
13964
13965         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13966         * config/i386/i386v42mp.mh: Add i387-nat.o .
13967         * i386v4-nat.c: Include i387-nat.h.
13968         (supply_fpregset): Use i387_supply_fsave.
13969         (fill_fpregset): Use i387_fill_fsave.
13970
13971 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
13972
13973         * arm-tdep.c (arm_call_dummy_words): Define.
13974         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13975         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13976         (CALL_DUMMY_WORDS): Define.
13977         (arm_call_dummy_words): Declare.
13978         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13979         (arm_linux_call_dummy_words): Declare.
13980
13981 2002-01-30  Andreas Schwab  <schwab@suse.de>
13982
13983         * m68klinux-nat.c: Fix last change to use regcache_collect
13984         instead of referencing registers[] directly.
13985
13986 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
13987
13988         * parse.c (target_map_name_to_register): Delete code wrapped in
13989         #ifdef REGISTER_NAME_ALIAS_HOOK.
13990
13991 2002-01-28  Michael Snyder  <msnyder@redhat.com>
13992
13993         * regcache.c (legacy_read_register_gen): Need to be able to
13994         read pseudo-register as well as real register.
13995         (legacy_write_register_gen): Ditto.
13996
13997 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
13998
13999         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14000         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14001         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14002         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14003         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14004         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14005         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14006         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14007         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14008         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14009         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14010         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14011         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14012         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14013         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14014         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14015         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14016         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14017         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14018         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14019
14020 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14021
14022         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14023         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14024         (initialize_current_architecture): Update target_byte_order using
14025         information from BFD.
14026         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14027         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14028
14029 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14030
14031         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14032         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14033
14034         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14035         #ifdef INVALID_FLOAT.
14036         * infcmd.c (do_registers_info): Ditto.
14037         * values.c (unpack_double): Ditto.  Add comment.
14038
14039         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14040         already commented out.
14041
14042 2002-01-26  Andreas Schwab  <schwab@suse.de>
14043
14044         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14045         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14046         registers and add support for PTRACE_GETREGS.
14047
14048 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14049
14050         GDB 5.1.1 released from 5.1 branch.
14051         * NEWS: Add 5.1.1 news.
14052         * README: Sync with 5.1 branch.
14053
14054 2002-01-23  Fred Fish  <fnf@redhat.com>
14055
14056         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14057         stabstring on initial malloc.  Reallocing will copy it for us,
14058         if necessary.
14059
14060 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14061
14062         * Makefile.in (hpread_h): Delete.
14063         (HFILES_NO_SRCDIR): Remove hpread.h.
14064         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14065         (hpread.o): Update dependencies.
14066         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14067
14068         * hp-psymtab-read.c: Remove file.
14069         * hp-symtab-read.c: Remove file.
14070         * hpread.h: Remove file.
14071
14072         * hpread.c: Merge all contents of hp-psymtab-read.c,
14073         hp-symtab-read.c and hpread.h into this file, as it was prior to
14074         January 1999.
14075
14076         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14077         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14078         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14079         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14080
14081 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14082
14083         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14084         fill_gregset): Call gdbarch_tdep() just once, assign result to
14085         variable and use that, instead of calling the function several
14086         times.
14087
14088 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14089
14090         * configure.host: Accept sparcv9 as alias for sparc64.
14091         * configure.tgt: Likewise.
14092
14093 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14094
14095         * solib-aix5.c (build_so_list_from_mapfile)
14096         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14097         arguments is not reversed.
14098         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14099         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14100
14101 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14102
14103         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14104         modified version of obsolete sh_fetch_pseudo_register.
14105         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14106         (sh4_register_read): New function.
14107         (sh_pseudo_register_write): New function. Renamed and modified
14108         version of obsolete sh_store_pseudo_register.
14109         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14110         (sh4_register_write): New function.
14111         (sh_gdbarch_init): Remove setting of gdbarch function
14112         fetch_pseudo_register and store_pseudo_register. Remove setting of
14113         register_convert_to_raw, register_convert_to_virtual,
14114         register_convertible.
14115         (sh_sh4_register_convertible): Delete. No longer needed. All is
14116         taken care by architecture specific functions
14117         register_read/register_write.
14118         (sh_sh4_register_convert_to_virtual): Make static.
14119         (sh_sh4_register_convert_to_raw): Ditto.
14120
14121 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14122
14123         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14124         (floatformat_is_nan, floatformat_mantissa): Ditto.
14125
14126         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14127         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14128         builtin_type_ieee_double_little,
14129         builtin_type_ieee_double_littlebyte_bigword,
14130         builtin_type_m68881_ext, builtin_type_i960_ext,
14131         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14132         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14133         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14134         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14135
14136 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14137
14138         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14139         parameter.  Set frameless flag if it exists and depended of
14140         whether the scanned function is frameless or not.
14141         (xstormy16_skip_prologue): If function is frameless, return
14142         result of xstormy16_scan_prologue().
14143         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14144         call.
14145
14146 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14147
14148         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14149         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14150         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14151         sh_sh4_register_byte, sh_sh4_register_raw_size,
14152         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14153         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14154         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14155         sh_store_pseudo_register, sh_do_pseudo_register): Call
14156         gdbarch_tdep() just once, assign result to variable and use that,
14157         instead of calling the function several times.
14158
14159 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14160
14161         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14162         macros instead of LAST_FPU_CTRL_REGNUM.
14163         (store_register): Likewise.
14164
14165 2002-01-21  Jim Blandy  <jimb@redhat.com>
14166
14167         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14168         is up-to-date before running the program, not just when a program
14169         exits.
14170
14171 2002-01-21  Fred Fish  <fnf@redhat.com>
14172
14173         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14174         when we have found all instructions we are looking for.
14175
14176 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14177
14178         * arm-tdep.c (arm_register_name): New function.
14179         (arm_registers_names): Make static.
14180         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14181         (arm_register_name): Declare.
14182         (REGISTER_NAME): Use it.
14183
14184 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14185             Kevin Buettner  <kevinb@redhat.com>
14186
14187         Convert arm targets to new FRAME interface.
14188         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14189         (arm_frame_find_save_regs): Delete.
14190         (arm_frame_init_saved_regs): New.
14191         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14192         Allocate extra_info as required.  Convert all uses of fsr.regs
14193         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14194         to use extra_info.
14195         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14196         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14197         (check_prologue_cache, save_prologue_cache): Likewise.
14198         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14199         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14200         (FRAME_FIND_SAVED_REGS): Delete.
14201         (arm_frame_find_saved_regs): Delete prototype.
14202         (arm_frame_init_saved_regs): New prototype.
14203         (FRAME_INIT_SAVED_REGS): Define.
14204
14205 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14206
14207         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14208
14209 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14210
14211         From Jeff Law <law@redhat.com>:
14212         * infttrace.c: Include <sys/pstat.h>.
14213         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14214         exec file if the ttrace equivalent fails.
14215
14216 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14217
14218         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14219         (closeLogFile): Ditto.
14220
14221 2002-01-20  Michael Chastain  <mec@shout.net>
14222
14223         * top.c (print_gdb_version): Bump copyright year to 2002.
14224
14225 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14226
14227         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14228         Zannoni and Eli Zaretskii.
14229
14230 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14231
14232         * buildsym.c: Update copyright years.
14233         * c-typeprint.c: Likewise.
14234         * dwarf2read.c: Likewise.
14235         * f-typeprint.c: Likewise.
14236         * gdbtypes.c: Likewise.
14237         * gdbtypes.h: Likewise.
14238         * hp-symtab-read.c: Likewise.
14239         * hpread.c: Likewise.
14240         * mdebugread.c: Likewise.
14241         * p-typeprint.c: Likewise.
14242
14243 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14244
14245         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14246         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14247         byte-order selectable.
14248         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14249         * arch-utils.c: Ditto.
14250         (set_endian): Ditto.
14251         (set_endian_from_file): Ditto.
14252         * gdbserver/low-sim.c (create_inferior): Ditto.
14253         * gdbarch.sh: Ditto.
14254         * gdbarch.h: Re-generate.
14255         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14256         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14257         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14258         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14259         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14260         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14261         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14262         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14263         macro definition.
14264         * config/mips/tm-wince.h: Remove #undef of macro
14265         TARGET_BYTE_ORDER_SELECTABLE.
14266         * config/sh/tm-wince.h: Ditto.
14267
14268 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14269
14270         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14271         member function fields.  Add accessor macro
14272         TYPE_FN_FIELD_ARTIFICIAL.
14273         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14274         * c-typeprint.c (c_type_print_base): Skip artificial member
14275         functions.
14276
14277 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14278
14279         * f-typeprint.c: Delete unused function f_type_print_args.
14280         * p-typeprint.c: Delete unused function pascal_type_print_args.
14281
14282 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14283
14284         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14285         comment.  Add ``artificial'' to ``union field_location''.
14286
14287         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14288
14289         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14290         * mdebugread.c (parse_symbol): Likewise.
14291         * stabsread.c (define_symbol): Likewise.
14292         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14293         initializing TYPE_FIELD_BITPOS to n (obsolete).
14294         (hpread_doc_function_type): Likewise.
14295         * hpread.c (hpread_function_type): Likewise.
14296
14297 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14298
14299         * configure.in (host_makefile_frag): Only require a host makefile
14300         fragment when a native build.
14301         * configure: Re-generate.
14302
14303 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14304
14305         * doublest.h (floatformat_from_type): Declare.
14306         * doublest.c (floatformat_from_type): New function.
14307         (convert_typed_floating): Use.
14308
14309         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14310         call to function floatformat_from_type.
14311
14312         * gdbarch.sh (IEEE_FLOAT): Delete.
14313         * gdbarch.h, gdbarch.c: Re-generate.
14314         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14315         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14316         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14317         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14318         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14319         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14320         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14321         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14322         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14323         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14324         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14325         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14326
14327         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14328         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14329         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14330         * sh-tdep.c (sh_gdbarch_init): Ditto.
14331         * mips-tdep.c (mips_gdbarch_init): Ditto.
14332         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14333         * cris-tdep.c (cris_gdbarch_init): Ditto.
14334
14335 2002-01-20  Jiri Smid  <smid@suse.cz>
14336
14337         * configure.host, configure.tgt: Support x86-64.
14338         * NEWS: Note new target x86-64.
14339
14340         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14341         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14342         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14343         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14344         x86-64-linux-nat.o): Fix dependencies.
14345
14346 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14347
14348         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14349         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14350         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14351         * config/sparc/xm-sun4os4.h: Delete file.
14352         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14353
14354 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14355
14356         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14357         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14358         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14359         * config/i386/i386lynx.mh (XM_FILE): Delete.
14360         * config/rs6000/xm-rs6000ly.h: Delete file.
14361         * config/sparc/xm-sparclynx.h: Delete file.
14362         * config/m68k/xm-m68klynx.h: Delete file.
14363         * config/i386/xm-i386lynx.h: Delete file.
14364         * config/xm-lynx.h: Delete file.
14365         * config/djgpp/fnchange.lst: Update.
14366
14367 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14368
14369         * alpha-tdep.c (alpha_register_byte): New function.
14370         (alpha_register_raw_size): Ditto.
14371         (alpha_register_virtual_size): Ditto.
14372         (alpha_skip_prologue_internal): Renamed from
14373         alpha_skip_prologue.
14374         (alpha_skip_prologue): New version that calls
14375         alpha_skip_prologue_internal.
14376         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14377         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14378         second argument from alpha_skip_prologue.
14379         (REGISTER_BYTE): Use alpha_register_byte.
14380         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14381         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14382         (FRAMELESS_FUNCTION_INVOCATION): Use
14383         generic_frameless_function_invocation_not.
14384         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14385         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14386
14387 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14388
14389         * config/mips/xm-news-mips.h: Delete file.
14390         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14391
14392         * config/m88k/xm-m88k.h: Delete file.
14393         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14394         * config/m88k/xm-delta88v4.h: Ditto.
14395         * config/m88k/xm-delta88.h: Ditto.
14396
14397         * config/alpha/xm-fbsd.h: Delete file.
14398         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14399
14400         * config/sparc/xm-sparc.h: Delete file.
14401         * Makefile.in (xm-sun4os4.h): Delete dependency.
14402         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14403         * config/sparc/xm-sun4os4.h: Ditto.
14404         * config/sparc/xm-linux.h: Ditto.
14405
14406         * config/i386/xm-windows.h: Delete file.
14407
14408 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14409
14410         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14411         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14412
14413 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14414
14415         * alpha-tdep.c (alpha_call_dummy_words): New.
14416         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14417         (CALL_DUMMY_P): Define.
14418         (CALL_DUMMY_WORDS): Define.
14419         (SIZEOF_CALL_DUMMY_WORDS): Define.
14420
14421 2002-01-19  Per Bothner  <per@bothner.com>
14422
14423         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14424         isn't NULL, which can happen with some gcj-3.x-produced code.
14425
14426 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14427
14428         * alpha-tdep.c (alpha_register_virtual_type): New function.
14429         (alpha_init_frame_pc_first): Ditto.
14430         (alpha_fix_call_dummy): Ditto.
14431         (alpha_store_struct_return): Ditto.
14432         (alpha_extract_struct_value_address): Ditto.
14433         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14434         alpha_register_virtual_type.
14435         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14436         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14437         alpha_extract_struct_value_address.
14438         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14439         (INIT_FRAME_PC): Use init_frame_pc_noop.
14440         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14441
14442 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14443
14444         * i386gnu-nat.c: Include "i386-tdep.h".
14445         (fetch_fpregs): Simplify code dealing with uninitialized floating
14446         point states such that it doesn't require FP7_REGNUM.
14447
14448 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14449
14450         * alpha-tdep.c (frame_extra_info): New.
14451         (alpha_find_saved_regs): Make static.  Use
14452         frame->extra_info.
14453         (alpha_frame_init_saved_regs): New function.
14454         (alpha_frame_saved_pc): Use frame->extra_info.
14455         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14456         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14457         (init_extra_frame_info): Rename to...
14458         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14459         (alpha_print_extra_frame_info): New function.
14460         (alpha_frame_locals_address): Ditto.
14461         (alpha_frame_args_address): Ditto.
14462         (alpha_pop_frame): Use frame->extra_info.
14463         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14464         alpha_frame_args_address.
14465         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14466         (alpha_find_saved_regs): Remove prototype.
14467         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14468         (EXTRA_FRAME_INFO): Remove.
14469         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14470         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14471
14472 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14473
14474         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14475         (alpha_cannot_fetch_register): Ditto.
14476         (alpha_cannot_store_register): Ditto.
14477         (alpha_register_convertible): Ditto.
14478         (alpha_use_struct_convention): Ditto.
14479         * config/alpha/tm-alpha.h: Update copyright years.
14480         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14481         (INNER_THAN): Use core_addr_lessthan.
14482         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14483         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14484         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14485         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14486         (FRAME_CHAIN): Remove unnecessary cast.
14487
14488 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14489
14490         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14491         obsolete.
14492
14493 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14494
14495         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14496         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14497         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14498         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14499         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14500         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14501         * x86-64-linux-nat.c: Ditto.
14502
14503 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14504
14505         * alpha-tdep.c (alpha_register_name): New function.
14506         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14507         (REGISTER_NAME): Define.
14508
14509 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14510
14511         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14512
14513 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14514
14515         * alpha-tdep.c: Update copyright years.
14516         (alpha_next_pc): New function.
14517         (alpha_software_single_step): Ditto.
14518         * config/alpha/tm-alpha.h: Add prototype for
14519         alpha_software_single_step.
14520
14521 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14522
14523         * alphabsd-nat.c: Update copyright years.
14524         (fill_gregset): Use regcache_collect.
14525         (fill_fpregset): Likewise.
14526         (fetch_inferior_registers): Only fetch integer registers
14527         if requested to do so.
14528         (store_inferior_registers): Only store integer registers
14529         if requested to do so.
14530
14531 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14532
14533         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14534         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14535         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14536         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14537         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14538         * config/arm/linux.mh (XDEPFILES): Delete.
14539         * config/arm/nbsd.mh (XDEPFILES): Delete.
14540         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14541         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14542         * config/i386/i386m3.mh (XDEPFILES): Delete.
14543         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14544         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14545         * config/i386/fbsd.mh (XDEPFILES): Delete.
14546         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14547         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14548         * config/i386/i386v4.mh (XDEPFILES): Delete.
14549         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14550         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14551         * config/i386/i386aix.mh (XDEPFILES): Delete.
14552         * config/i386/go32.mh (XDEPFILES): Delete.
14553         * config/i386/cygwin.mh (XDEPFILES): Delete.
14554         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14555         * config/i386/i386mach.mh (XDEPFILES): Delete.
14556         * config/i386/i386v32.mh (XDEPFILES): Delete.
14557         * config/i386/linux.mh (XDEPFILES): Delete.
14558         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14559         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14560         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14561         * config/i386/i386sco.mh (XDEPFILES): Delete.
14562         * config/i386/i386v.mh (XDEPFILES): Delete.
14563         * config/i386/nbsd.mh (XDEPFILES): Delete.
14564         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14565         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14566         * config/i386/symmetry.mh (XDEPFILES): Delete.
14567         * config/i386/obsd.mh (XDEPFILES): Delete.
14568         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14569         * config/ia64/linux.mh (XDEPFILES): Delete.
14570         * config/ia64/aix.mh (XDEPFILES): Delete.
14571         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14572         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14573         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14574         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14575         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14576         * config/m68k/linux.mh (XDEPFILES): Delete.
14577         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14578         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14579         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14580         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14581         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14582         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14583         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14584         * config/m88k/delta88.mh (XDEPFILES): Delete.
14585         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14586         * config/m88k/m88k.mh (XDEPFILES): Delete.
14587         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14588         * config/mips/linux.mh (XDEPFILES): Delete.
14589         * config/mips/irix6.mh (XDEPFILES): Delete.
14590         * config/mips/irix5.mh (XDEPFILES): Delete.
14591         * config/mips/irix4.mh (XDEPFILES): Delete.
14592         * config/mips/irix3.mh (XDEPFILES): Delete.
14593         * config/mips/decstation.mh (XDEPFILES): Delete.
14594         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14595         (NATDEPFILES): Move core-aout.o to here.
14596         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14597         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14598         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14599         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14600         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14601         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14602         * config/pa/hpux11.mh (XDEPFILES): Delete.
14603         * config/powerpc/aix.mh (XDEPFILES): Delete.
14604         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14605         * config/powerpc/linux.mh (XDEPFILES): Delete.
14606         * config/romp/rtbsd.mh: Rename XDEPFILES.
14607         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14608         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14609         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14610         * config/s390/s390.mh (XDEPFILES): Delete.
14611         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14612         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14613         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14614         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14615         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14616         * config/sparc/nbsd.mh (XDEPFILES): Delete.
14617         * config/sparc/linux.mh (XDEPFILES): Delete.
14618         * config/vax/vaxult.mh (XDEPFILES): Delete.
14619         * config/vax/vaxult2.mh (XDEPFILES): Delete.
14620         * Makefile.in (DEPFILES): Remove XDEPFILES.
14621
14622 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14623
14624         * utils.c (internal_verror): Fix comments, default is yes not no.
14625         Update queries to match.  Default to quit and dump core.
14626
14627 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14628
14629         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
14630         copyright.
14631         * defs.h, event-top.c, gdbcmd.h: Ditto.
14632         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14633         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14634         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14635         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14636         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14637         * mi/mi-main.c:Ditto.
14638
14639         * stack.c, symfile.c: Update copyright.
14640
14641 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14642
14643         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14644         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14645         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14646         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14647
14648 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
14649
14650         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14651         * gdbserver/low-lynx.c (myattach): Likewise.
14652         * gdbserver/low-nbsd.c (myattach): Likewise.
14653         * gdbserver/low-sim.c (myattach): Likewise.
14654         * gdbserver/low-sparc.c (myattach): Likewise.
14655         * gdbserver/low-sun3.c (myattach): Likewise.
14656
14657         * gdbserver/low-linux.c (myattach): New function.
14658
14659         * gdbserver/server.c (attach_inferior): New function.
14660         (main): Handle "--attach".
14661
14662 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
14663
14664         * MAINTAINERS (language support): Daniel Jacobwitz is C++
14665         maintainer.
14666
14667 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
14668
14669         * c-typeprint.c (is_type_conversion_operator): Add additional
14670         check for non-conversion operators.
14671
14672 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14673
14674         * linux-proc.c: Add "info proc" command, a la procfs.c.
14675         (read_mapping): New function, abstract and re-use code.
14676         (linux_find_memory_regions): Use new func read_mapping.
14677         (linux_info_proc_cmd): New function, implement "info proc".
14678         (_initialize_linux_proc): Add new command "info proc".
14679
14680 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14681
14682         * symfile.c (generic_load): Use bfd_map_over_sections method
14683         instead of manipulating bfd structure members directly.
14684         (add_section_size_callback): New function, bfd sections callback
14685         used by generic_load.
14686         (load_sections_callback): New function, bfd sections callback
14687         used by generic_load.
14688
14689 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
14690
14691         [Based on work by Jim Blandy]
14692         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14693         (builtin_type_vec128): Export.
14694         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14695         types.
14696         (builtin_type_vec128): New builtin type for 128 bit vector
14697         registers.
14698         (build_gdbtypes): Initialize builtin_type_v16qi and
14699         builtin_type_v8hi. Create the vec128 register builtin type
14700         structure.
14701         (build_builtin_type_vec128): New function.
14702         (_initialize_gdbtypes): Register builtin_type_v16qi and
14703         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14704         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14705         AltiVec register to new builtin type.
14706
14707 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
14708
14709         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14710         to make_cv_type.
14711
14712 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14713
14714         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14715         CLEAN_UP_REGISTER_VALUE.
14716         * regcache.c (supply_register): Update only call.
14717
14718 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
14719
14720         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14721         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14722         a29k-*-vxworks* targets as obsolete.
14723
14724 2002-01-14  Michael Snyder  <msnyder@redhat.com>
14725
14726         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14727         until we can resolve portability issues.
14728         * gregset.h: Remove references to fpxregs.
14729         * gcore.c (gcore_command): Initialize note_sec to NULL.
14730
14731 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14732
14733         * signals.c (target_signal_to_name): Rewrite.  Only use
14734         signals[].name when in bounds and non-NULL.
14735
14736 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14737
14738         From Petr Ledvina <ledvinap@kae.zcu.cz>:
14739         * signals.c (target_signal_to_name): Verify that SIG is within the
14740         bounds of the signals array.
14741
14742 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14743
14744         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14745
14746 2002-01-13  Keith Seitz  <keiths@redhat.com>
14747
14748         * stack.c (print_frame_info_base): Print the frame's pc
14749         only if when print_frame_info_listing_hook is not defined.
14750
14751 2002-01-13  Keith Seitz  <keiths@redhat.com>
14752
14753         * varobj.c (varobj_set_value): Make sure that there were no
14754         errors evaluating the object before attempting to set its
14755         value.
14756         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14757         so this offset adjustment is no longer necessary.
14758         (create_child): Don't set the error flag if the child is
14759         a CPLUS_FAKE_CHILD.
14760         (value_of_child): If value_fetch_lazy fails, return NULL
14761         so that callers will be notified that an error occurred.
14762         (c_value_of_variable): Delay check of variable's validity
14763         until later. We actually want all structs and unions to have
14764         the value "{...}".
14765         Do not return "???" for variables which could not be evaluated.
14766         This error condition must be returned to the caller so that it
14767         can get the error condition from gdb.
14768         (cplus_name_of_child): Adjust index for vptr before figuring
14769         out the name of the child.
14770         (cplus_value_of_child): If a child's (real) parent is not valid,
14771         don't even bother trying to give a value for it. Just return
14772         an error. Change all instances in this function.
14773         (cplus_type_of_child): If our parent is one of the "fake"
14774         parents, we need to get at the type of the real parent, and
14775         derive the child's true type using this information.
14776
14777 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14778
14779         From 2002-01-09 John Marshall <johnm@falch.net>:
14780         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14781         sources.redhat.com, and tweak some related URLs which had
14782         suffered from linkrot.
14783
14784 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
14785
14786         From Jeff law:
14787         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14788         structures passed in registers.
14789
14790 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
14791
14792         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14793         white space which prevented compilation.  Reported by DSK
14794         <dsk@student.unsw.edu.au>.
14795
14796 2002-01-11  Michael Snyder  <msnyder@redhat.com>
14797
14798         * symfile.c (build_section_addr_info_from_section_tab):
14799         Use bfd access method instead of manipulating bfd directly.
14800         (syms_from_objfile): Ditto.
14801         (simple_overlay_update_1): Ditto.
14802         (simple_overlay_update): Ditto.
14803         (generic_load): Ditto.
14804         (overlay_unmapped_address): FIXME comment, bfd access methods.
14805         (sections_overlap): FIXME comment, bfd access methods.
14806         (pc_in_mapped_range): FIXME comment, bfd access methods.
14807         (pc_in_unmapped_range): FIXME comment, bfd access methods.
14808         (section_is_mapped): FIXME comment, bfd access methods.
14809         (section_is_overlay): FIXME comment, bfd access methods.
14810
14811         * symfile.c (generic_load): Whitespace and long line cleanups.
14812         Remove duplicate variable, change several local variables to
14813         more appropriate data types.
14814         (print_transfer_performance): Use %lu instead of %ld for ulongs.
14815
14816 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14817
14818         From Peter Schauer:
14819         * language.c (longest_local_hex_string_custom): Use phex_nz to
14820         convert NUM to a hex string.
14821
14822 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
14823
14824         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14825         the function.
14826         Update Copyright year.
14827
14828 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
14829
14830         * language.c (longest_raw_hex_string): Delete unused function.
14831
14832 2002-01-11  Petr Sorfa  <petrs@caldera.com>
14833
14834         * MAINTAINERS (write-after-approval): Add myself.
14835         * dwarf2read.c (read_tag_string_type): Handling of
14836         DW_AT_byte_size.
14837         (read_tag_string_type): FORTRAN fix to prevent propagation of
14838         first string size.
14839         (set_cu_language): Handling of DW_LANG_Fortran95
14840
14841 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
14842
14843         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14844         GETPID(inferior_ptid).
14845         (store_inferior_registers): Likewise.
14846
14847 2002-01-10  Jason Merrill  <jason@redhat.com>
14848
14849         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14850         Fix DW_OP_minus.
14851
14852 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
14853
14854         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14855         and bfd/elf32-sh-nbsd.c.
14856
14857 2002-01-10  Michael Snyder  <msnyder@redhat.com>
14858
14859         * NEWS: Mention --pid and corefile/proc-id behavior change.
14860
14861         * Makefile.in: Add rules for gcore.o and linux-proc.o.
14862         * gcore.c: Include cli/cli-decode.h instead of command.h.
14863
14864         * main.c (captured_main): Add new command line option "--pid".
14865         If the second command line argument (following the symbol-file)
14866         begins with a digit, try to attach to it before trying to open
14867         it as a corefile.
14868         (print_gdb_help): Document the "--pid" argument.
14869
14870 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
14871
14872         * completer.c (command_completer): New function.
14873
14874         * completer.h <command_completer>: Add prototype.
14875
14876         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14877         completer for the "help" command.
14878
14879 2002-01-09  Jason Merrill  <jason@redhat.com>
14880
14881         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14882
14883 2002-01-09  Michael Snyder  <msnyder@redhat.com>
14884
14885         * i386-linux-nat.c (fill_fpxregset): Make global.
14886         (store_fpxregset): Ditto.
14887
14888         * gregset.h (gdb_fpxregset_t): Define.
14889         (supply_fpxregset): Prototype.
14890         (fill_fpxregset): Prototype.
14891
14892         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14893
14894 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14895
14896         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14897         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14898         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14899
14900 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
14901
14902         * MAINTAINERS: Update target maintainer rules so that any
14903         Maintainer can approve a tested patch for a maintenance-only
14904         target.
14905
14906 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
14907
14908         * MAINTAINERS (write-after-approval): Add myself.
14909
14910         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14911         IN_SIGTRAMP.
14912
14913 2002-01-08  Michael Snyder  <msnyder@redhat.com>
14914
14915         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14916         real name of the executable, rather than the /proc name.
14917
14918 2002-01-03  Michael Snyder  <msnyder@redhat.com>
14919
14920         Implement a "generate-core-file" command in gdb, save target state.
14921         * gcore.c: New file.  Implement new command 'generate-core-file'.
14922         Save a corefile image of the current state of the inferior.
14923         * linux-proc.c: Add linux-specific code for saving corefiles.
14924         * target.h (struct target_ops): Add new target vectors for saving
14925         corefiles; to_find_memory_regions and to_make_corefile_notes.
14926         (target_find_memory_regions): New macro.
14927         (target_make_corefile_notes): New macro.
14928         * target.c (update_current_target): Inherit new target methods.
14929         (dummy_find_memory_regions): New place-holder method.
14930         (dummy_make_corefile_notes): New place-holder method.
14931         (init_dummy_target): Initialize new dummy target vectors.
14932         * exec.c (exec_set_find_memory_regions): New function.
14933         Allow the exec_ops vector for memory regions to be taken over.
14934         (exec_make_note_section): New function, target vector method.
14935         * defs.h (exec_set_find_memory_regions): Export prototype.
14936         * procfs.c (proc_find_memory_regions): New function, corefile method.
14937         (procfs_make_note_section): New function, corefile method.
14938         (init_procfs_ops): Set new target vector pointers.
14939         (find_memory_regions_callback): New function.
14940         (procfs_do_thread_registers): New function.
14941         (procfs_corefile_thread_callback): New function.
14942         * sol-thread.c (sol_find_memory_regions): New function.
14943         (sol_make_note_section): New function.
14944         (init_sol_thread_ops): Initialize new target vectors.
14945         * inftarg.c (inftarg_set_find_memory_regions): New function.
14946         Allow to_find_memory_regions vector to be taken over.
14947         (inftarg_set_make_corefile_notes): New function.
14948         Allow to_make_corefile_notes vector to be taken over.
14949         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14950         interface layer if not target_has_execution (may be a corefile).
14951         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14952         * config/sparc/sun4sol2.mh: Ditto.
14953         * config/alpha/alpha-linux.mh: Ditto.
14954         * config/arm/linux.mh: Ditto.
14955         * config/i386/x86-64linux.mh: Ditto.
14956         * config/ia64/linux.mh: Ditto.
14957         * config/m68k/linux.mh: Ditto.
14958         * config/mips/linux.mh: Ditto.
14959         * config/powerpc/linux.mh: Ditto.
14960         * config/sparc/linux.mh: Ditto.
14961
14962 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14963
14964         * arm-linux-nat.c: Remove references to regcache.c internal data
14965         (registers[] and register_valid[]).
14966
14967 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14968
14969         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
14970         so that attaching to a pid will automatically read the process's
14971         symbol file and shlibs.
14972         * Makefile.in: Add rule for linux-proc.o.
14973         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14974         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14975         * config/arm/linux.mh: Ditto.
14976         * config/i386/linux.mh: Ditto.
14977         * config/i386/x86-64linux.mh: Ditto.
14978         * config/ia64/linux.mh: Ditto.
14979         * config/m68k/linux.mh: Ditto.
14980         * config/mips/linux.mh: Ditto.
14981         * config/powerpc/linux.mh: Ditto.
14982         * config/sparc/linux.mh: Ditto.
14983
14984 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
14985
14986         * win32-nat.c: Add i386-tdep.h dependency.
14987
14988 2002-01-07  Michael Snyder  <msnyder@redhat.com>
14989
14990         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14991         instead of bfd_get_arch_size.  Don't bail out just because
14992         there's no exec_bfd.
14993
14994         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14995         * p-valprint.c (pascal_object_print_value): Ditto.
14996         * somread.c (som_symtab_read): Ditto.
14997         * symfile.c (simple_free_overlay_region_table): Ditto.
14998         * valops.c (value_assign): Ditto.
14999
15000         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15001         use tilde_expand and strerror for opening save-tracepoints file.
15002
15003         * thread-db.c (thread_db_new_objfile): Indendation fix.
15004
15005         * infptrace.c (GDB_MAX_ALLOCA): New define.
15006         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15007         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15008         can be overridden with whatever value is appropriate to the host).
15009         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15010         alloca to allocate potentially large buffer.
15011         * rs6000-nat.c (child_xfer_memory): Ditto.
15012         * symm-nat.c (child_xfer_memory): Ditto.
15013         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15014
15015 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15016
15017         From Nick Clifton  <nickc@redhat.com>
15018         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15019
15020 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15021
15022         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15023         Don't use exec_bfd if it's NULL.
15024
15025 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15026
15027         * valops.c (value_arg_coerce): Fix formatting.
15028
15029 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15030
15031         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15032         * gnu-nat.c: Ditto.
15033
15034 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15035
15036         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15037         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15038         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15039         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15040         z8k-coff have not been multi-arched.  Update z8k-coff build
15041         status.
15042
15043 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15044
15045         * MAINTAINERS: Mark a29k target as obsolete.
15046         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15047         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15048         comments.
15049         * NEWS: Note that a29k targets are obsolete.
15050         * a29k-tdep.c: Mark as obsolete.
15051         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15052         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15053         a29k-*-vxworks* targets as obsolete.
15054         * remote-adapt.c: Obsolete.
15055         * remote-eb.c: Obsolete.
15056         * remote-mm.c: Obsolete.
15057         * remote-udi.c: Obsolete.
15058         * config/a29k/a29k-udi.mt: Obsolete.
15059         * config/a29k/a29k.mt: Obsolete.
15060         * config/a29k/tm-a29k.h: Obsolete.
15061         * config/a29k/tm-vx29k.h: Obsolete.
15062         * config/a29k/vx29k.mt: Obsolete.
15063
15064 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15065
15066         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15067         with BFD_ENDIAN_BIG.
15068
15069 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15070
15071         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15072         * configure, config.in: Re-generate.
15073         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15074         * defs.h: Do not include <endian.h>.
15075
15076 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15077
15078         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15079         * config.in: Regenerate.
15080         * configure.in: Update copyright years.
15081         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15082         * configure: Regenerate.
15083         * i386bsd-nat.c: Update copyright years.
15084         (fill_gregset): Use regcache_collect.
15085         (fetch_inferior_registers): Only fetch integer registers
15086         if requested to do so.  Add support for XMM registers
15087         using PT_GETXMMREGS.
15088         (store_inferior_registers): Only store integer registers
15089         if requested to do so.  Add support for XMM registers
15090         using PT_SETXMMREGS.
15091         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15092         (store_inferior_registers): Remove.
15093         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15094         (fetch_elfcore_registers): New function.
15095         (i386nbsd_elfcore_fns): New.
15096         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15097         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15098         i386bsd-nat.o.
15099         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15100         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15101         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15102         * config/i386/tm-nbsd.h: Update copyright years.
15103         (HAVE_SSE_REGS): Define.
15104         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15105         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15106         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15107         (SIGCONTEXT_PC_OFFSET): Remove.
15108         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15109
15110 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15111
15112         * configure.tgt: Remove powerpc-*-macos* target.
15113         * config/m68k/xm-mpw.h: Delete file.
15114         * config/xm-mpw.h: Delete file.
15115         * ser-mac.c: Delete file.
15116         * mpw-make.sed: Delete file.
15117         * mpw-config.in: Delete file.
15118         * mac-xdep.c: Delete file.
15119         * mac-gdb.r: Delete file.
15120         * mac-defs.h: Delete file.
15121         * mac-nat.c: Delete file.
15122         * config/powerpc/macos.mh: Delete file.
15123         * config/powerpc/macos.mt: Delete file.
15124         * config/powerpc/nm-macos.h: Delete file.
15125         * config/powerpc/tm-macos.h: Delete file.
15126         * source.c (openp, open_source_file): Remove obsolete code.
15127         * top.c (gdb_readline): Ditto.
15128         * utils.c (query): Ditto.
15129         * event-top.c (display_gdb_prompt): Ditto.
15130         * Makefile.in (ser-mac.o): Delete obsolete target.
15131         * NEWS: Update.
15132
15133 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15134
15135         * defs.h (BIG_ENDIAN): Delete macro definition.
15136         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15137         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15138         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15139         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15140         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15141         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15142         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15143         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15144         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15145         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15146         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15147         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15148         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15149         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15150         * gdbarch.c: Re-generate.
15151
15152 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15153
15154         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15155         for core files.
15156
15157 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15158
15159         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15160
15161 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15162
15163         * value.h (value_ptr): Delete typedef.
15164
15165 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15166
15167         * i386nbsd-nat.c: Update copyright years.
15168         Include i386-tdep.h.
15169
15170 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15171
15172         * stabsread.c: Update copyright years.
15173
15174         From Debashis Mahata <debashis.mahata@wipro.com>:
15175         (read_struct_fields): Deal with Sun C compiler erroneous stab
15176         output for structs and unions.
15177         Fix PR gdb/269.
15178
15179 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15180
15181         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15182         prototype.
15183
15184 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15185
15186         * cp-abi.c: Fix whitespace.
15187         (baseclass_offset): New wrapper function.
15188         * cp-abi.h (baseclass_offset): Add prototype.
15189         (struct cp_abi_ops): Add baseclass_offset pointer.
15190
15191         * valops.c (vb_match): Move to...
15192         * gnu-v2-abi.c (vb_match): here.
15193         * valops.c (baseclass_offset): Move to...
15194         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15195
15196         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15197
15198         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15199         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15200         * hpacc-abi.c (init_hpacc_ops): Likewise.
15201
15202 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15203
15204         * valops.c (find_overload_match): Accept obj as a
15205         reference parameter.  Update it before returning.
15206         * value.h (find_overload_match): Update prototype.
15207         * eval.c (evaluate_subexp_standard): Pass object to
15208         find_overload_match by reference.
15209
15210 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15211
15212         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15213         register attribute from value declarations.
15214         * valops.c: Ditto.
15215         * value.h: Ditto.
15216         * scm-lang.c (scm_lookup_name): Ditto.
15217
15218 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15219
15220         Abstract the functionality of iterating over mapped memory
15221         regions into a general purpose iterator function.
15222         * procfs.c (iterate_over_mappings): New function, general purpose
15223         iterator for memory sections.
15224         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15225         (solib_mappings_callback): New function, callback for above.
15226         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15227         (info_mappings_callback): New function, callback for above.
15228
15229         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15230
15231 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15232
15233         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15234         * i386-tdep.c: Include "elf-bfd.h".
15235         (process_note_abi_tag_sections): New function.
15236         (i386_gdbarch_init): Add code to recognize various OS/ABI
15237         combinations.
15238
15239         * maint.c (_initialize_maint_cmds): Add missing \ in
15240         string-literal.
15241
15242 For older changes see ChangeLog-2001
15243 \f
15244 Local Variables:
15245 mode: change-log
15246 left-margin: 8
15247 fill-column: 74
15248 version-control: never
15249 End: